Skip to content

Commit

Permalink
CodeGen from PR 16961 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 0c3010a9e0ce06d3185da77754139232a411d3a5 into a42f1b58607091c4f255ead152a8ef323fa0b280
  • Loading branch information
SDKAuto committed Dec 6, 2021
1 parent b024887 commit 07d2f51
Show file tree
Hide file tree
Showing 13 changed files with 319 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sdk/batch/arm-batch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.6.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/batch/arm-batch",
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/batch/arm-batch",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
Expand Down
2 changes: 1 addition & 1 deletion sdk/batch/arm-batch/src/batchManagementClientContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class BatchManagementClientContext extends msRestAzure.AzureServiceClient

super(credentials, options);

this.apiVersion = '2021-06-01';
this.apiVersion = '2022-01-01';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export {
DataDisk,
DeleteCertificateError,
DeploymentConfiguration,
DetectorResponse,
DiffDiskSettings,
DiskEncryptionConfiguration,
EncryptionProperties,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export {
DataDisk,
DeleteCertificateError,
DeploymentConfiguration,
DetectorResponse,
DiffDiskSettings,
DiskEncryptionConfiguration,
EncryptionProperties,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ export {
DataDisk,
DeleteCertificateError,
DeploymentConfiguration,
DetectorListResult,
DetectorResponse,
DiffDiskSettings,
DiskEncryptionConfiguration,
EncryptionProperties,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export {
DataDisk,
DeleteCertificateError,
DeploymentConfiguration,
DetectorResponse,
DiffDiskSettings,
DiskEncryptionConfiguration,
EncryptionProperties,
Expand Down
84 changes: 83 additions & 1 deletion sdk/batch/arm-batch/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,16 @@ export interface CertificateCreateOrUpdateParameters extends ProxyResource {
password?: string;
}

/**
* Contains the information for a detector.
*/
export interface DetectorResponse extends ProxyResource {
/**
* A base64 encoded string that represents the content of a detector.
*/
value?: string;
}

/**
* Contains information about a private link resource.
*/
Expand Down Expand Up @@ -743,7 +753,7 @@ export interface ImageReference {
offer?: string;
/**
* The SKU of the Azure Virtual Machines Marketplace image. For example, 18.04-LTS or
* 2019-Datacenter.
* 2022-datacenter.
*/
sku?: string;
/**
Expand Down Expand Up @@ -2759,6 +2769,18 @@ export interface BatchAccountListResult extends Array<BatchAccount> {
nextLink?: string;
}

/**
* @interface
* Values returned by the List operation.
* @extends Array<DetectorResponse>
*/
export interface DetectorListResult extends Array<DetectorResponse> {
/**
* The URL to get the next set of results.
*/
nextLink?: string;
}

/**
* @interface
* Values returned by the List operation.
Expand Down Expand Up @@ -3299,6 +3321,46 @@ export type BatchAccountGetKeysResponse = BatchAccountKeys & {
};
};

/**
* Contains response data for the listDetectors operation.
*/
export type BatchAccountListDetectorsResponse = DetectorListResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: DetectorListResult;
};
};

/**
* Contains response data for the getDetector operation.
*/
export type BatchAccountGetDetectorResponse = DetectorResponse & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: DetectorResponse;
};
};

/**
* Contains response data for the listOutboundNetworkDependenciesEndpoints operation.
*/
Expand Down Expand Up @@ -3359,6 +3421,26 @@ export type BatchAccountListByResourceGroupNextResponse = BatchAccountListResult
};
};

/**
* Contains response data for the listDetectorsNext operation.
*/
export type BatchAccountListDetectorsNextResponse = DetectorListResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: DetectorListResult;
};
};

/**
* Contains response data for the listOutboundNetworkDependenciesEndpointsNext operation.
*/
Expand Down
45 changes: 45 additions & 0 deletions sdk/batch/arm-batch/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1128,6 +1128,23 @@ export const CertificateCreateOrUpdateParameters: msRest.CompositeMapper = {
}
};

export const DetectorResponse: msRest.CompositeMapper = {
serializedName: "DetectorResponse",
type: {
name: "Composite",
className: "DetectorResponse",
modelProperties: {
...ProxyResource.type.modelProperties,
value: {
serializedName: "properties.value",
type: {
name: "String"
}
}
}
}
};

export const PrivateLinkResource: msRest.CompositeMapper = {
serializedName: "PrivateLinkResource",
type: {
Expand Down Expand Up @@ -3560,6 +3577,34 @@ export const BatchAccountListResult: msRest.CompositeMapper = {
}
};

export const DetectorListResult: msRest.CompositeMapper = {
serializedName: "DetectorListResult",
type: {
name: "Composite",
className: "DetectorListResult",
modelProperties: {
value: {
serializedName: "",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "DetectorResponse"
}
}
}
},
nextLink: {
serializedName: "nextLink",
type: {
name: "String"
}
}
}
}
};

export const OutboundEnvironmentEndpointCollection: msRest.CompositeMapper = {
serializedName: "OutboundEnvironmentEndpointCollection",
type: {
Expand Down
10 changes: 10 additions & 0 deletions sdk/batch/arm-batch/src/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,16 @@ export const certificateName: msRest.OperationURLParameter = {
}
}
};
export const detectorId: msRest.OperationURLParameter = {
parameterPath: "detectorId",
mapper: {
required: true,
serializedName: "detectorId",
type: {
name: "String"
}
}
};
export const filter: msRest.OperationQueryParameter = {
parameterPath: [
"options",
Expand Down
1 change: 1 addition & 0 deletions sdk/batch/arm-batch/src/models/poolOperationsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export {
DataDisk,
DeleteCertificateError,
DeploymentConfiguration,
DetectorResponse,
DiffDiskSettings,
DiskEncryptionConfiguration,
EncryptionProperties,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export {
DataDisk,
DeleteCertificateError,
DeploymentConfiguration,
DetectorResponse,
DiffDiskSettings,
DiskEncryptionConfiguration,
EncryptionProperties,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export {
DataDisk,
DeleteCertificateError,
DeploymentConfiguration,
DetectorResponse,
DiffDiskSettings,
DiskEncryptionConfiguration,
EncryptionProperties,
Expand Down
Loading

0 comments on commit 07d2f51

Please sign in to comment.