Skip to content

Commit

Permalink
Generated from f003219ebf81157465997aec758afefd32971785 (#3748)
Browse files Browse the repository at this point in the history
Fixed SpecPath batch
  • Loading branch information
AutorestCI authored Jun 12, 2019
1 parent cdf431a commit 1b39333
Show file tree
Hide file tree
Showing 15 changed files with 2,341 additions and 2,209 deletions.
2 changes: 1 addition & 1 deletion sdk/batch/batch/src/batchServiceClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class BatchServiceClient extends BatchServiceClientContext {
* @param batchUrl The base URL for all Azure Batch service requests.
* @param [options] The parameter options
*/
constructor(credentials: msRest.ServiceClientCredentials, batchUrl: string, options?: msRestAzure.AzureServiceClientOptions) {
constructor(credentials: msRest.ServiceClientCredentials, batchUrl: string, options?: msRest.AzureServiceClientOptions) {
super(credentials, batchUrl, options);
this.application = new operations.Application(this);
this.pool = new operations.Pool(this);
Expand Down
2 changes: 1 addition & 1 deletion sdk/batch/batch/src/batchServiceClientContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class BatchServiceClientContext extends msRestAzure.AzureServiceClient {

super(credentials, options);

this.apiVersion = '2018-12-01.8.0';
this.apiVersion = '2019-06-01.9.0';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = "{batchUrl}";
Expand Down
6 changes: 3 additions & 3 deletions sdk/batch/batch/src/models/accountMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
*/

export {
AccountListNodeAgentSkusHeaders,
AccountListNodeAgentSkusResult,
AccountListPoolNodeCountsHeaders,
AccountListSupportedImagesHeaders,
AccountListSupportedImagesResult,
BatchError,
BatchErrorDetail,
ErrorMessage,
ImageInformation,
ImageReference,
NodeAgentSku,
NodeCounts,
PoolNodeCounts,
PoolNodeCountsListResult
Expand Down
3,223 changes: 1,652 additions & 1,571 deletions sdk/batch/batch/src/models/index.ts

Large diffs are not rendered by default.

95 changes: 71 additions & 24 deletions sdk/batch/batch/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,37 +97,63 @@ export const ImageReference: msRest.CompositeMapper = {
}
};

export const NodeAgentSku: msRest.CompositeMapper = {
serializedName: "NodeAgentSku",
export const ImageInformation: msRest.CompositeMapper = {
serializedName: "ImageInformation",
type: {
name: "Composite",
className: "NodeAgentSku",
className: "ImageInformation",
modelProperties: {
id: {
serializedName: "id",
nodeAgentSKUId: {
required: true,
serializedName: "nodeAgentSKUId",
type: {
name: "String"
}
},
verifiedImageReferences: {
serializedName: "verifiedImageReferences",
imageReference: {
required: true,
serializedName: "imageReference",
type: {
name: "Composite",
className: "ImageReference"
}
},
osType: {
required: true,
serializedName: "osType",
type: {
name: "Enum",
allowedValues: [
"linux",
"windows"
]
}
},
capabilities: {
serializedName: "capabilities",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "ImageReference"
name: "String"
}
}
}
},
osType: {
serializedName: "osType",
batchSupportEndOfLife: {
serializedName: "batchSupportEndOfLife",
type: {
name: "DateTime"
}
},
verificationType: {
required: true,
serializedName: "verificationType",
type: {
name: "Enum",
allowedValues: [
"linux",
"windows"
"verified",
"unverified"
]
}
}
Expand Down Expand Up @@ -886,6 +912,16 @@ export const TaskContainerSettings: msRest.CompositeMapper = {
name: "Composite",
className: "ContainerRegistry"
}
},
workingDirectory: {
serializedName: "workingDirectory",
type: {
name: "Enum",
allowedValues: [
"taskWorkingDirectory",
"containerImageDefault"
]
}
}
}
}
Expand Down Expand Up @@ -2033,6 +2069,17 @@ export const NetworkSecurityGroupRule: msRest.CompositeMapper = {
type: {
name: "String"
}
},
sourcePortRanges: {
serializedName: "sourcePortRanges",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
}
}
}
Expand Down Expand Up @@ -7081,10 +7128,10 @@ export const PoolRemoveNodesOptions: msRest.CompositeMapper = {
}
};

export const AccountListNodeAgentSkusOptions: msRest.CompositeMapper = {
export const AccountListSupportedImagesOptions: msRest.CompositeMapper = {
type: {
name: "Composite",
className: "AccountListNodeAgentSkusOptions",
className: "AccountListSupportedImagesOptions",
modelProperties: {
filter: {
type: {
Expand Down Expand Up @@ -9656,10 +9703,10 @@ export const PoolListNextOptions: msRest.CompositeMapper = {
}
};

export const AccountListNodeAgentSkusNextOptions: msRest.CompositeMapper = {
export const AccountListSupportedImagesNextOptions: msRest.CompositeMapper = {
type: {
name: "Composite",
className: "AccountListNodeAgentSkusNextOptions",
className: "AccountListSupportedImagesNextOptions",
modelProperties: {
clientRequestId: {
type: {
Expand Down Expand Up @@ -10033,11 +10080,11 @@ export const PoolListUsageMetricsHeaders: msRest.CompositeMapper = {
}
};

export const AccountListNodeAgentSkusHeaders: msRest.CompositeMapper = {
serializedName: "account-listnodeagentskus-headers",
export const AccountListSupportedImagesHeaders: msRest.CompositeMapper = {
serializedName: "account-listsupportedimages-headers",
type: {
name: "Composite",
className: "AccountListNodeAgentSkusHeaders",
className: "AccountListSupportedImagesHeaders",
modelProperties: {
clientRequestId: {
serializedName: "client-request-id",
Expand Down Expand Up @@ -12815,11 +12862,11 @@ export const CloudPoolListResult: msRest.CompositeMapper = {
}
};

export const AccountListNodeAgentSkusResult: msRest.CompositeMapper = {
serializedName: "AccountListNodeAgentSkusResult",
export const AccountListSupportedImagesResult: msRest.CompositeMapper = {
serializedName: "AccountListSupportedImagesResult",
type: {
name: "Composite",
className: "AccountListNodeAgentSkusResult",
className: "AccountListSupportedImagesResult",
modelProperties: {
value: {
serializedName: "",
Expand All @@ -12828,7 +12875,7 @@ export const AccountListNodeAgentSkusResult: msRest.CompositeMapper = {
element: {
type: {
name: "Composite",
className: "NodeAgentSku"
className: "ImageInformation"
}
}
}
Expand Down
18 changes: 9 additions & 9 deletions sdk/batch/batch/src/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export const clientRequestId2: msRest.OperationParameter = {
export const clientRequestId20: msRest.OperationParameter = {
parameterPath: [
"options",
"accountListNodeAgentSkusOptions",
"accountListSupportedImagesOptions",
"clientRequestId"
],
mapper: {
Expand All @@ -250,7 +250,7 @@ export const clientRequestId21: msRest.OperationParameter = {
export const clientRequestId22: msRest.OperationParameter = {
parameterPath: [
"options",
"accountListNodeAgentSkusNextOptions",
"accountListSupportedImagesNextOptions",
"clientRequestId"
],
mapper: {
Expand Down Expand Up @@ -1430,7 +1430,7 @@ export const filter12: msRest.OperationQueryParameter = {
export const filter2: msRest.OperationQueryParameter = {
parameterPath: [
"options",
"accountListNodeAgentSkusOptions",
"accountListSupportedImagesOptions",
"filter"
],
mapper: {
Expand Down Expand Up @@ -3240,7 +3240,7 @@ export const maxResults2: msRest.OperationQueryParameter = {
export const maxResults3: msRest.OperationQueryParameter = {
parameterPath: [
"options",
"accountListNodeAgentSkusOptions",
"accountListSupportedImagesOptions",
"maxResults"
],
mapper: {
Expand Down Expand Up @@ -3556,7 +3556,7 @@ export const ocpDate2: msRest.OperationParameter = {
export const ocpDate20: msRest.OperationParameter = {
parameterPath: [
"options",
"accountListNodeAgentSkusOptions",
"accountListSupportedImagesOptions",
"ocpDate"
],
mapper: {
Expand All @@ -3582,7 +3582,7 @@ export const ocpDate21: msRest.OperationParameter = {
export const ocpDate22: msRest.OperationParameter = {
parameterPath: [
"options",
"accountListNodeAgentSkusNextOptions",
"accountListSupportedImagesNextOptions",
"ocpDate"
],
mapper: {
Expand Down Expand Up @@ -4787,7 +4787,7 @@ export const returnClientRequestId2: msRest.OperationParameter = {
export const returnClientRequestId20: msRest.OperationParameter = {
parameterPath: [
"options",
"accountListNodeAgentSkusOptions",
"accountListSupportedImagesOptions",
"returnClientRequestId"
],
mapper: {
Expand Down Expand Up @@ -4815,7 +4815,7 @@ export const returnClientRequestId21: msRest.OperationParameter = {
export const returnClientRequestId22: msRest.OperationParameter = {
parameterPath: [
"options",
"accountListNodeAgentSkusNextOptions",
"accountListSupportedImagesNextOptions",
"returnClientRequestId"
],
mapper: {
Expand Down Expand Up @@ -6229,7 +6229,7 @@ export const timeout16: msRest.OperationQueryParameter = {
export const timeout17: msRest.OperationQueryParameter = {
parameterPath: [
"options",
"accountListNodeAgentSkusOptions",
"accountListSupportedImagesOptions",
"timeout"
],
mapper: {
Expand Down
Loading

0 comments on commit 1b39333

Please sign in to comment.