Skip to content

Commit

Permalink
CodeGen from PR 13468 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 117e91d3c299e17d6f9b7c6ad9c48842a29a6a9c into 872b7da6fe27183d4e0150f5c07055a21a6e4f27
  • Loading branch information
SDKAuto committed Apr 12, 2021
1 parent c56ae1d commit b83b73d
Show file tree
Hide file tree
Showing 19 changed files with 166 additions and 122 deletions.
6 changes: 3 additions & 3 deletions sdk/compute/arm-compute/src/computeManagementClientContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class ComputeManagementClientContext extends msRestAzure.AzureServiceClie
if (!options) {
options = {};
}
if (!options.userAgent) {
if(!options.userAgent) {
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
}
Expand All @@ -50,10 +50,10 @@ export class ComputeManagementClientContext extends msRestAzure.AzureServiceClie
this.credentials = credentials;
this.subscriptionId = subscriptionId;

if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
}
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
}
}
Expand Down
32 changes: 32 additions & 0 deletions sdk/compute/arm-compute/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2005,6 +2005,14 @@ export interface PatchSettings {
* 'AutomaticByPlatform'.
*/
enableHotpatching?: boolean;
/**
* Specifies the mode of VM Guest patch assessment for the IaaS virtual machine.<br /><br />
* Possible values are:<br /><br /> **ImageDefault** - You control the timing of patch
* assessments on a virtual machine.<br /><br /> **AutomaticByPlatform** - The platform will
* trigger periodic patch assessments. The property provisionVMAgent must be true. Possible
* values include: 'ImageDefault', 'AutomaticByPlatform'
*/
assessmentMode?: WindowsPatchAssessmentMode;
}

/**
Expand Down Expand Up @@ -2088,6 +2096,14 @@ export interface LinuxPatchSettings {
* 'ImageDefault', 'AutomaticByPlatform'
*/
patchMode?: LinuxVMGuestPatchMode;
/**
* Specifies the mode of VM Guest Patch Assessment for the IaaS virtual machine.<br /><br />
* Possible values are:<br /><br /> **ImageDefault** - You control the timing of patch
* assessments on a virtual machine. <br /><br /> **AutomaticByPlatform** - The platform will
* trigger periodic patch assessments. The property provisionVMAgent must be true. Possible
* values include: 'ImageDefault', 'AutomaticByPlatform'
*/
assessmentMode?: LinuxPatchAssessmentMode;
}

/**
Expand Down Expand Up @@ -9430,6 +9446,14 @@ export type ProtocolTypes = 'Http' | 'Https';
*/
export type WindowsVMGuestPatchMode = 'Manual' | 'AutomaticByOS' | 'AutomaticByPlatform';

/**
* Defines values for WindowsPatchAssessmentMode.
* Possible values include: 'ImageDefault', 'AutomaticByPlatform'
* @readonly
* @enum {string}
*/
export type WindowsPatchAssessmentMode = 'ImageDefault' | 'AutomaticByPlatform';

/**
* Defines values for LinuxVMGuestPatchMode.
* Possible values include: 'ImageDefault', 'AutomaticByPlatform'
Expand All @@ -9438,6 +9462,14 @@ export type WindowsVMGuestPatchMode = 'Manual' | 'AutomaticByOS' | 'AutomaticByP
*/
export type LinuxVMGuestPatchMode = 'ImageDefault' | 'AutomaticByPlatform';

/**
* Defines values for LinuxPatchAssessmentMode.
* Possible values include: 'ImageDefault', 'AutomaticByPlatform'
* @readonly
* @enum {string}
*/
export type LinuxPatchAssessmentMode = 'ImageDefault' | 'AutomaticByPlatform';

/**
* Defines values for VirtualMachinePriorityTypes.
* Possible values include: 'Regular', 'Low', 'Spot'
Expand Down
12 changes: 12 additions & 0 deletions sdk/compute/arm-compute/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3051,6 +3051,12 @@ export const PatchSettings: msRest.CompositeMapper = {
type: {
name: "Boolean"
}
},
assessmentMode: {
serializedName: "assessmentMode",
type: {
name: "String"
}
}
}
}
Expand Down Expand Up @@ -3165,6 +3171,12 @@ export const LinuxPatchSettings: msRest.CompositeMapper = {
type: {
name: "String"
}
},
assessmentMode: {
serializedName: "assessmentMode",
type: {
name: "String"
}
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions sdk/compute/arm-compute/src/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const apiVersion0: msRest.OperationQueryParameter = {
required: true,
isConstant: true,
serializedName: "api-version",
defaultValue: '2020-12-01',
defaultValue: '2021-03-01',
type: {
name: "String"
}
Expand All @@ -49,7 +49,7 @@ export const apiVersion2: msRest.OperationQueryParameter = {
required: true,
isConstant: true,
serializedName: "api-version",
defaultValue: '2019-12-01',
defaultValue: '2020-12-01',
type: {
name: "String"
}
Expand All @@ -61,7 +61,7 @@ export const apiVersion3: msRest.OperationQueryParameter = {
required: true,
isConstant: true,
serializedName: "api-version",
defaultValue: '2021-03-01',
defaultValue: '2019-12-01',
type: {
name: "String"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ const getOSVersionOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion3
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -247,7 +247,7 @@ const listOSVersionsOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion3
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -272,7 +272,7 @@ const getOSFamilyOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion3
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -296,7 +296,7 @@ const listOSFamiliesOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion3
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -320,7 +320,7 @@ const listOSVersionsNextOperationSpec: msRest.OperationSpec = {
Parameters.nextPageLink
],
queryParameters: [
Parameters.apiVersion3
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -344,7 +344,7 @@ const listOSFamiliesNextOperationSpec: msRest.OperationSpec = {
Parameters.nextPageLink
],
queryParameters: [
Parameters.apiVersion3
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ const getOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion3,
Parameters.apiVersion0,
Parameters.expand1
],
headerParameters: [
Expand All @@ -378,7 +378,7 @@ const getInstanceViewOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion3
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -403,7 +403,7 @@ const listOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion3,
Parameters.apiVersion0,
Parameters.expand1
],
headerParameters: [
Expand All @@ -430,7 +430,7 @@ const getRemoteDesktopFileOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion3
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
Expand Down Expand Up @@ -461,7 +461,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion3
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -487,7 +487,7 @@ const beginRestartOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion3
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -512,7 +512,7 @@ const beginReimageOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion3
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -537,7 +537,7 @@ const beginRebuildOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion3
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -560,7 +560,7 @@ const listNextOperationSpec: msRest.OperationSpec = {
Parameters.nextPageLink
],
queryParameters: [
Parameters.apiVersion3,
Parameters.apiVersion0,
Parameters.expand1
],
headerParameters: [
Expand Down
6 changes: 3 additions & 3 deletions sdk/compute/arm-compute/src/operations/cloudServiceRoles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const getOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion3
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -161,7 +161,7 @@ const listOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion3
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -185,7 +185,7 @@ const listNextOperationSpec: msRest.OperationSpec = {
Parameters.nextPageLink
],
queryParameters: [
Parameters.apiVersion3
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
Expand Down
Loading

0 comments on commit b83b73d

Please sign in to comment.