Skip to content

Commit

Permalink
CodeGen from PR 3485 in test-repo-billy/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 8a902f8809c8533025263b1641caf63032db8e5b into c221294c903b4bcbe7b1ee4bce901322a7056943
  • Loading branch information
SDKAuto committed Aug 23, 2024
1 parent d0f7cdb commit 334fdb6
Show file tree
Hide file tree
Showing 6 changed files with 280 additions and 280 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21671,7 +21671,7 @@ public Mono<Response<Void>> getTaskFilePropertiesWithResponse(String jobId, Stri
* properties (Optional): {
* creationTime: OffsetDateTime (Optional)
* lastModified: OffsetDateTime (Required)
* contentLength: long (Required)
* contentLength: String (Required)
* contentType: String (Optional)
* fileMode: String (Optional)
* }
Expand Down Expand Up @@ -23790,7 +23790,7 @@ public Mono<Response<Void>> getNodeFilePropertiesWithResponse(String poolId, Str
* properties (Optional): {
* creationTime: OffsetDateTime (Optional)
* lastModified: OffsetDateTime (Required)
* contentLength: long (Required)
* contentLength: String (Required)
* contentType: String (Optional)
* fileMode: String (Optional)
* }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21502,7 +21502,7 @@ public Response<Void> getTaskFilePropertiesWithResponse(String jobId, String tas
* properties (Optional): {
* creationTime: OffsetDateTime (Optional)
* lastModified: OffsetDateTime (Required)
* contentLength: long (Required)
* contentLength: String (Required)
* contentType: String (Optional)
* fileMode: String (Optional)
* }
Expand Down Expand Up @@ -23610,7 +23610,7 @@ public Response<Void> getNodeFilePropertiesWithResponse(String poolId, String no
* properties (Optional): {
* creationTime: OffsetDateTime (Optional)
* lastModified: OffsetDateTime (Required)
* contentLength: long (Required)
* contentLength: String (Required)
* contentType: String (Optional)
* fileMode: String (Optional)
* }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24705,7 +24705,7 @@ public Response<Void> getTaskFilePropertiesInternalWithResponse(String jobId, St
* properties (Optional): {
* creationTime: OffsetDateTime (Optional)
* lastModified: OffsetDateTime (Required)
* contentLength: long (Required)
* contentLength: String (Required)
* contentType: String (Optional)
* fileMode: String (Optional)
* }
Expand Down Expand Up @@ -24763,7 +24763,7 @@ private Mono<PagedResponse<BinaryData>> listTaskFilesInternalSinglePageAsync(Str
* properties (Optional): {
* creationTime: OffsetDateTime (Optional)
* lastModified: OffsetDateTime (Required)
* contentLength: long (Required)
* contentLength: String (Required)
* contentType: String (Optional)
* fileMode: String (Optional)
* }
Expand Down Expand Up @@ -24840,7 +24840,7 @@ public PagedFlux<BinaryData> listTaskFilesInternalAsync(String jobId, String tas
* properties (Optional): {
* creationTime: OffsetDateTime (Optional)
* lastModified: OffsetDateTime (Required)
* contentLength: long (Required)
* contentLength: String (Required)
* contentType: String (Optional)
* fileMode: String (Optional)
* }
Expand Down Expand Up @@ -24897,7 +24897,7 @@ private PagedResponse<BinaryData> listTaskFilesInternalSinglePage(String jobId,
* properties (Optional): {
* creationTime: OffsetDateTime (Optional)
* lastModified: OffsetDateTime (Required)
* contentLength: long (Required)
* contentLength: String (Required)
* contentType: String (Optional)
* fileMode: String (Optional)
* }
Expand Down Expand Up @@ -27541,7 +27541,7 @@ public Response<Void> getNodeFilePropertiesInternalWithResponse(String poolId, S
* properties (Optional): {
* creationTime: OffsetDateTime (Optional)
* lastModified: OffsetDateTime (Required)
* contentLength: long (Required)
* contentLength: String (Required)
* contentType: String (Optional)
* fileMode: String (Optional)
* }
Expand Down Expand Up @@ -27597,7 +27597,7 @@ private Mono<PagedResponse<BinaryData>> listNodeFilesInternalSinglePageAsync(Str
* properties (Optional): {
* creationTime: OffsetDateTime (Optional)
* lastModified: OffsetDateTime (Required)
* contentLength: long (Required)
* contentLength: String (Required)
* contentType: String (Optional)
* fileMode: String (Optional)
* }
Expand Down Expand Up @@ -27672,7 +27672,7 @@ public PagedFlux<BinaryData> listNodeFilesInternalAsync(String poolId, String no
* properties (Optional): {
* creationTime: OffsetDateTime (Optional)
* lastModified: OffsetDateTime (Required)
* contentLength: long (Required)
* contentLength: String (Required)
* contentType: String (Optional)
* fileMode: String (Optional)
* }
Expand Down Expand Up @@ -27727,7 +27727,7 @@ private PagedResponse<BinaryData> listNodeFilesInternalSinglePage(String poolId,
* properties (Optional): {
* creationTime: OffsetDateTime (Optional)
* lastModified: OffsetDateTime (Required)
* contentLength: long (Required)
* contentLength: String (Required)
* contentType: String (Optional)
* fileMode: String (Optional)
* }
Expand Down Expand Up @@ -32071,7 +32071,7 @@ private PagedResponse<BinaryData> listSubTasksInternalNextSinglePage(String next
* properties (Optional): {
* creationTime: OffsetDateTime (Optional)
* lastModified: OffsetDateTime (Required)
* contentLength: long (Required)
* contentLength: String (Required)
* contentType: String (Optional)
* fileMode: String (Optional)
* }
Expand Down Expand Up @@ -32111,7 +32111,7 @@ private Mono<PagedResponse<BinaryData>> listTaskFilesInternalNextSinglePageAsync
* properties (Optional): {
* creationTime: OffsetDateTime (Optional)
* lastModified: OffsetDateTime (Required)
* contentLength: long (Required)
* contentLength: String (Required)
* contentType: String (Optional)
* fileMode: String (Optional)
* }
Expand Down Expand Up @@ -32614,7 +32614,7 @@ private PagedResponse<BinaryData> listNodeExtensionsInternalNextSinglePage(Strin
* properties (Optional): {
* creationTime: OffsetDateTime (Optional)
* lastModified: OffsetDateTime (Required)
* contentLength: long (Required)
* contentLength: String (Required)
* contentType: String (Optional)
* fileMode: String (Optional)
* }
Expand Down Expand Up @@ -32654,7 +32654,7 @@ private Mono<PagedResponse<BinaryData>> listNodeFilesInternalNextSinglePageAsync
* properties (Optional): {
* creationTime: OffsetDateTime (Optional)
* lastModified: OffsetDateTime (Required)
* contentLength: long (Required)
* contentLength: String (Required)
* contentType: String (Optional)
* fileMode: String (Optional)
* }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public final class FileProperties implements JsonSerializable<FileProperties> {
* The length of the file.
*/
@Generated
private final long contentLength;
private final String contentLength;

/*
* The content type of the file.
Expand Down Expand Up @@ -76,7 +76,7 @@ public OffsetDateTime getLastModified() {
* @return the contentLength value.
*/
@Generated
public long getContentLength() {
public String getContentLength() {
return this.contentLength;
}

Expand All @@ -101,18 +101,6 @@ public String getFileMode() {
return this.fileMode;
}

/**
* Creates an instance of FileProperties class.
*
* @param lastModified the lastModified value to set.
* @param contentLength the contentLength value to set.
*/
@Generated
private FileProperties(OffsetDateTime lastModified, long contentLength) {
this.lastModified = lastModified;
this.contentLength = contentLength;
}

/**
* {@inheritDoc}
*/
Expand All @@ -122,7 +110,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("lastModified",
this.lastModified == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.lastModified));
jsonWriter.writeLongField("contentLength", this.contentLength);
jsonWriter.writeStringField("contentLength", this.contentLength);
jsonWriter.writeStringField("creationTime",
this.creationTime == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.creationTime));
jsonWriter.writeStringField("contentType", this.contentType);
Expand Down Expand Up @@ -182,4 +170,16 @@ public static FileProperties fromJson(JsonReader jsonReader) throws IOException
return deserializedFileProperties;
});
}

/**
* Creates an instance of FileProperties class.
*
* @param lastModified the lastModified value to set.
* @param contentLength the contentLength value to set.
*/
@Generated
private FileProperties(OffsetDateTime lastModified, String contentLength) {
this.lastModified = lastModified;
this.contentLength = contentLength;
}
}
Loading

0 comments on commit 334fdb6

Please sign in to comment.