Skip to content

Commit 91ebaa1

Browse files
author
SDKAuto
committed
CodeGen from PR 16961 in Azure/azure-rest-api-specs
Merge 6f5d67a663fbf532a8ee72feaccea8566a7d6d7b into d710fb7f40338ca6ef00e0a9680be0a3d4cf5059
1 parent b024887 commit 91ebaa1

13 files changed

+319
-3
lines changed

sdk/batch/arm-batch/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"rollup-plugin-sourcemaps": "^0.4.2",
2828
"uglify-js": "^3.6.0"
2929
},
30-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/batch/arm-batch",
30+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/batch/arm-batch",
3131
"repository": {
3232
"type": "git",
3333
"url": "https://github.com/Azure/azure-sdk-for-js.git"

sdk/batch/arm-batch/src/batchManagementClientContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class BatchManagementClientContext extends msRestAzure.AzureServiceClient
5050

5151
super(credentials, options);
5252

53-
this.apiVersion = '2021-06-01';
53+
this.apiVersion = '2022-01-01';
5454
this.acceptLanguage = 'en-US';
5555
this.longRunningOperationRetryTimeout = 30;
5656
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";

sdk/batch/arm-batch/src/models/applicationOperationsMappers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export {
3434
DataDisk,
3535
DeleteCertificateError,
3636
DeploymentConfiguration,
37+
DetectorResponse,
3738
DiffDiskSettings,
3839
DiskEncryptionConfiguration,
3940
EncryptionProperties,

sdk/batch/arm-batch/src/models/applicationPackageOperationsMappers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export {
3535
DataDisk,
3636
DeleteCertificateError,
3737
DeploymentConfiguration,
38+
DetectorResponse,
3839
DiffDiskSettings,
3940
DiskEncryptionConfiguration,
4041
EncryptionProperties,

sdk/batch/arm-batch/src/models/batchAccountOperationsMappers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ export {
4141
DataDisk,
4242
DeleteCertificateError,
4343
DeploymentConfiguration,
44+
DetectorListResult,
45+
DetectorResponse,
4446
DiffDiskSettings,
4547
DiskEncryptionConfiguration,
4648
EncryptionProperties,

sdk/batch/arm-batch/src/models/certificateOperationsMappers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export {
3939
DataDisk,
4040
DeleteCertificateError,
4141
DeploymentConfiguration,
42+
DetectorResponse,
4243
DiffDiskSettings,
4344
DiskEncryptionConfiguration,
4445
EncryptionProperties,

sdk/batch/arm-batch/src/models/index.ts

Lines changed: 83 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,16 @@ export interface CertificateCreateOrUpdateParameters extends ProxyResource {
681681
password?: string;
682682
}
683683

684+
/**
685+
* Contains the information for a detector.
686+
*/
687+
export interface DetectorResponse extends ProxyResource {
688+
/**
689+
* A base64 encoded string that represents the content of a detector.
690+
*/
691+
value?: string;
692+
}
693+
684694
/**
685695
* Contains information about a private link resource.
686696
*/
@@ -743,7 +753,7 @@ export interface ImageReference {
743753
offer?: string;
744754
/**
745755
* The SKU of the Azure Virtual Machines Marketplace image. For example, 18.04-LTS or
746-
* 2019-Datacenter.
756+
* 2022-datacenter.
747757
*/
748758
sku?: string;
749759
/**
@@ -2759,6 +2769,18 @@ export interface BatchAccountListResult extends Array<BatchAccount> {
27592769
nextLink?: string;
27602770
}
27612771

2772+
/**
2773+
* @interface
2774+
* Values returned by the List operation.
2775+
* @extends Array<DetectorResponse>
2776+
*/
2777+
export interface DetectorListResult extends Array<DetectorResponse> {
2778+
/**
2779+
* The URL to get the next set of results.
2780+
*/
2781+
nextLink?: string;
2782+
}
2783+
27622784
/**
27632785
* @interface
27642786
* Values returned by the List operation.
@@ -3299,6 +3321,46 @@ export type BatchAccountGetKeysResponse = BatchAccountKeys & {
32993321
};
33003322
};
33013323

3324+
/**
3325+
* Contains response data for the listDetectors operation.
3326+
*/
3327+
export type BatchAccountListDetectorsResponse = DetectorListResult & {
3328+
/**
3329+
* The underlying HTTP response.
3330+
*/
3331+
_response: msRest.HttpResponse & {
3332+
/**
3333+
* The response body as text (string format)
3334+
*/
3335+
bodyAsText: string;
3336+
3337+
/**
3338+
* The response body as parsed JSON or XML
3339+
*/
3340+
parsedBody: DetectorListResult;
3341+
};
3342+
};
3343+
3344+
/**
3345+
* Contains response data for the getDetector operation.
3346+
*/
3347+
export type BatchAccountGetDetectorResponse = DetectorResponse & {
3348+
/**
3349+
* The underlying HTTP response.
3350+
*/
3351+
_response: msRest.HttpResponse & {
3352+
/**
3353+
* The response body as text (string format)
3354+
*/
3355+
bodyAsText: string;
3356+
3357+
/**
3358+
* The response body as parsed JSON or XML
3359+
*/
3360+
parsedBody: DetectorResponse;
3361+
};
3362+
};
3363+
33023364
/**
33033365
* Contains response data for the listOutboundNetworkDependenciesEndpoints operation.
33043366
*/
@@ -3359,6 +3421,26 @@ export type BatchAccountListByResourceGroupNextResponse = BatchAccountListResult
33593421
};
33603422
};
33613423

3424+
/**
3425+
* Contains response data for the listDetectorsNext operation.
3426+
*/
3427+
export type BatchAccountListDetectorsNextResponse = DetectorListResult & {
3428+
/**
3429+
* The underlying HTTP response.
3430+
*/
3431+
_response: msRest.HttpResponse & {
3432+
/**
3433+
* The response body as text (string format)
3434+
*/
3435+
bodyAsText: string;
3436+
3437+
/**
3438+
* The response body as parsed JSON or XML
3439+
*/
3440+
parsedBody: DetectorListResult;
3441+
};
3442+
};
3443+
33623444
/**
33633445
* Contains response data for the listOutboundNetworkDependenciesEndpointsNext operation.
33643446
*/

sdk/batch/arm-batch/src/models/mappers.ts

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,6 +1128,23 @@ export const CertificateCreateOrUpdateParameters: msRest.CompositeMapper = {
11281128
}
11291129
};
11301130

1131+
export const DetectorResponse: msRest.CompositeMapper = {
1132+
serializedName: "DetectorResponse",
1133+
type: {
1134+
name: "Composite",
1135+
className: "DetectorResponse",
1136+
modelProperties: {
1137+
...ProxyResource.type.modelProperties,
1138+
value: {
1139+
serializedName: "properties.value",
1140+
type: {
1141+
name: "String"
1142+
}
1143+
}
1144+
}
1145+
}
1146+
};
1147+
11311148
export const PrivateLinkResource: msRest.CompositeMapper = {
11321149
serializedName: "PrivateLinkResource",
11331150
type: {
@@ -3560,6 +3577,34 @@ export const BatchAccountListResult: msRest.CompositeMapper = {
35603577
}
35613578
};
35623579

3580+
export const DetectorListResult: msRest.CompositeMapper = {
3581+
serializedName: "DetectorListResult",
3582+
type: {
3583+
name: "Composite",
3584+
className: "DetectorListResult",
3585+
modelProperties: {
3586+
value: {
3587+
serializedName: "",
3588+
type: {
3589+
name: "Sequence",
3590+
element: {
3591+
type: {
3592+
name: "Composite",
3593+
className: "DetectorResponse"
3594+
}
3595+
}
3596+
}
3597+
},
3598+
nextLink: {
3599+
serializedName: "nextLink",
3600+
type: {
3601+
name: "String"
3602+
}
3603+
}
3604+
}
3605+
}
3606+
};
3607+
35633608
export const OutboundEnvironmentEndpointCollection: msRest.CompositeMapper = {
35643609
serializedName: "OutboundEnvironmentEndpointCollection",
35653610
type: {

sdk/batch/arm-batch/src/models/parameters.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,16 @@ export const certificateName: msRest.OperationURLParameter = {
8989
}
9090
}
9191
};
92+
export const detectorId: msRest.OperationURLParameter = {
93+
parameterPath: "detectorId",
94+
mapper: {
95+
required: true,
96+
serializedName: "detectorId",
97+
type: {
98+
name: "String"
99+
}
100+
}
101+
};
92102
export const filter: msRest.OperationQueryParameter = {
93103
parameterPath: [
94104
"options",

sdk/batch/arm-batch/src/models/poolOperationsMappers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export {
3434
DataDisk,
3535
DeleteCertificateError,
3636
DeploymentConfiguration,
37+
DetectorResponse,
3738
DiffDiskSettings,
3839
DiskEncryptionConfiguration,
3940
EncryptionProperties,

0 commit comments

Comments
 (0)