Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-compute] Add repair action to automatic repairs api #6553

Draft
wants to merge 1 commit into
base: feature/v4
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/compute/arm-compute/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/main/sdk/compute/arm-compute",
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/compute/arm-compute",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ export {
RestorePointCollection,
RestorePointCollectionSourceProperties,
RestorePointCollectionUpdate,
RestorePointProvisioningDetails,
RestorePointSourceMetadata,
RestorePointSourceVMDataDisk,
RestorePointSourceVMOSDisk,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ export {
RestorePointCollection,
RestorePointCollectionSourceProperties,
RestorePointCollectionUpdate,
RestorePointProvisioningDetails,
RestorePointSourceMetadata,
RestorePointSourceVMDataDisk,
RestorePointSourceVMOSDisk,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ export {
RestorePointCollection,
RestorePointCollectionSourceProperties,
RestorePointCollectionUpdate,
RestorePointProvisioningDetails,
RestorePointSourceMetadata,
RestorePointSourceVMDataDisk,
RestorePointSourceVMOSDisk,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ export {
RestorePoint,
RestorePointCollection,
RestorePointCollectionSourceProperties,
RestorePointProvisioningDetails,
RestorePointSourceMetadata,
RestorePointSourceVMDataDisk,
RestorePointSourceVMOSDisk,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ export {
RestorePoint,
RestorePointCollection,
RestorePointCollectionSourceProperties,
RestorePointProvisioningDetails,
RestorePointSourceMetadata,
RestorePointSourceVMDataDisk,
RestorePointSourceVMOSDisk,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ export {
RestorePointCollection,
RestorePointCollectionSourceProperties,
RestorePointCollectionUpdate,
RestorePointProvisioningDetails,
RestorePointSourceMetadata,
RestorePointSourceVMDataDisk,
RestorePointSourceVMOSDisk,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ export {
RestorePointCollection,
RestorePointCollectionSourceProperties,
RestorePointCollectionUpdate,
RestorePointProvisioningDetails,
RestorePointSourceMetadata,
RestorePointSourceVMDataDisk,
RestorePointSourceVMOSDisk,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ export {
RestorePoint,
RestorePointCollection,
RestorePointCollectionSourceProperties,
RestorePointProvisioningDetails,
RestorePointSourceMetadata,
RestorePointSourceVMDataDisk,
RestorePointSourceVMOSDisk,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ export {
RestorePoint,
RestorePointCollection,
RestorePointCollectionSourceProperties,
RestorePointProvisioningDetails,
RestorePointSourceMetadata,
RestorePointSourceVMDataDisk,
RestorePointSourceVMOSDisk,
Expand Down
1 change: 0 additions & 1 deletion sdk/compute/arm-compute/src/models/disksMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ export {
RestorePoint,
RestorePointCollection,
RestorePointCollectionSourceProperties,
RestorePointProvisioningDetails,
RestorePointSourceMetadata,
RestorePointSourceVMDataDisk,
RestorePointSourceVMOSDisk,
Expand Down
1 change: 0 additions & 1 deletion sdk/compute/arm-compute/src/models/galleriesMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ export {
RestorePoint,
RestorePointCollection,
RestorePointCollectionSourceProperties,
RestorePointProvisioningDetails,
RestorePointSourceMetadata,
RestorePointSourceVMDataDisk,
RestorePointSourceVMOSDisk,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ export {
RestorePoint,
RestorePointCollection,
RestorePointCollectionSourceProperties,
RestorePointProvisioningDetails,
RestorePointSourceMetadata,
RestorePointSourceVMDataDisk,
RestorePointSourceVMOSDisk,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ export {
RestorePoint,
RestorePointCollection,
RestorePointCollectionSourceProperties,
RestorePointProvisioningDetails,
RestorePointSourceMetadata,
RestorePointSourceVMDataDisk,
RestorePointSourceVMOSDisk,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ export {
RestorePoint,
RestorePointCollection,
RestorePointCollectionSourceProperties,
RestorePointProvisioningDetails,
RestorePointSourceMetadata,
RestorePointSourceVMDataDisk,
RestorePointSourceVMOSDisk,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ export {
RestorePoint,
RestorePointCollection,
RestorePointCollectionSourceProperties,
RestorePointProvisioningDetails,
RestorePointSourceMetadata,
RestorePointSourceVMDataDisk,
RestorePointSourceVMOSDisk,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ export {
RestorePoint,
RestorePointCollection,
RestorePointCollectionSourceProperties,
RestorePointProvisioningDetails,
RestorePointSourceMetadata,
RestorePointSourceVMDataDisk,
RestorePointSourceVMOSDisk,
Expand Down
1 change: 0 additions & 1 deletion sdk/compute/arm-compute/src/models/imagesMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ export {
RestorePointCollection,
RestorePointCollectionSourceProperties,
RestorePointCollectionUpdate,
RestorePointProvisioningDetails,
RestorePointSourceMetadata,
RestorePointSourceVMDataDisk,
RestorePointSourceVMOSDisk,
Expand Down
44 changes: 14 additions & 30 deletions sdk/compute/arm-compute/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -641,8 +641,10 @@ export interface BootDiagnostics {
export interface DiagnosticsProfile {
/**
* Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot
* to diagnose VM status. <br><br> You can easily view the output of your console log. <br><br>
* Azure also enables you to see a screenshot of the VM from the hypervisor.
* to diagnose VM status. <br>**NOTE**: If storageUri is being specified then ensure that the
* storage account is in the same region and subscription as the VM. <br><br> You can easily view
* the output of your console log. <br><br> Azure also enables you to see a screenshot of the VM
* from the hypervisor.
*/
bootDiagnostics?: BootDiagnostics;
}
Expand Down Expand Up @@ -728,28 +730,6 @@ export interface RestorePointSourceMetadata {
location?: string;
}

/**
* Restore Point Provisioning details.
*/
export interface RestorePointProvisioningDetails {
/**
* Gets the creation time of the restore point.
*/
creationTime?: Date;
/**
* Gets the total size of the data in all the disks which are part of the restore point.
*/
totalUsedSizeInBytes?: number;
/**
* Gets the status of the Create restore point operation.
*/
statusCode?: number;
/**
* Gets the status message of the Create restore point operation.
*/
statusMessage?: string;
}

/**
* The resource model definition for an Azure Resource Manager proxy resource. It will not have
* tags and a location
Expand Down Expand Up @@ -799,10 +779,9 @@ export interface RestorePoint extends ProxyResource {
*/
readonly consistencyMode?: ConsistencyModeTypes;
/**
* Gets the provisioning details set by the server during Create restore point operation.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
* Gets the creation time of the restore point.
*/
readonly provisioningDetails?: RestorePointProvisioningDetails;
timeCreated?: Date;
}

/**
Expand Down Expand Up @@ -2887,10 +2866,15 @@ export interface AutomaticRepairsPolicy {
* The amount of time for which automatic repairs are suspended due to a state change on VM. The
* grace time starts after the state change has completed. This helps avoid premature or
* accidental repairs. The time duration should be specified in ISO 8601 format. The minimum
* allowed grace period is 30 minutes (PT30M), which is also the default value. The maximum
* allowed grace period is 10 minutes (PT10M), which is also the default value. The maximum
* allowed grace period is 90 minutes (PT90M).
*/
gracePeriod?: string;
/**
* Type of repair action (replace, restart, reimage) that will be used for repairing unhealthy
* virtual machines in the scale set. Default value is replace.
*/
repairAction?: string;
}

/**
Expand Down Expand Up @@ -9249,7 +9233,7 @@ export interface VirtualMachineImagesEdgeZoneListOptionalParams extends msRest.R
*/
export interface VirtualMachinesDeleteMethodOptionalParams extends msRest.RequestOptionsBase {
/**
* Optional parameter to force delete virtual machines.(Feature in Preview)
* Optional parameter to force delete virtual machines.
*/
forceDeletion?: boolean;
}
Expand Down Expand Up @@ -9327,7 +9311,7 @@ export interface VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams extend
*/
export interface VirtualMachinesBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase {
/**
* Optional parameter to force delete virtual machines.(Feature in Preview)
* Optional parameter to force delete virtual machines.
*/
forceDeletion?: boolean;
}
Expand Down
48 changes: 9 additions & 39 deletions sdk/compute/arm-compute/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -921,40 +921,6 @@ export const RestorePointSourceMetadata: msRest.CompositeMapper = {
}
};

export const RestorePointProvisioningDetails: msRest.CompositeMapper = {
serializedName: "RestorePointProvisioningDetails",
type: {
name: "Composite",
className: "RestorePointProvisioningDetails",
modelProperties: {
creationTime: {
serializedName: "creationTime",
type: {
name: "DateTime"
}
},
totalUsedSizeInBytes: {
serializedName: "totalUsedSizeInBytes",
type: {
name: "Number"
}
},
statusCode: {
serializedName: "statusCode",
type: {
name: "Number"
}
},
statusMessage: {
serializedName: "statusMessage",
type: {
name: "String"
}
}
}
}
};

export const ProxyResource: msRest.CompositeMapper = {
serializedName: "ProxyResource",
type: {
Expand Down Expand Up @@ -1027,12 +993,10 @@ export const RestorePoint: msRest.CompositeMapper = {
name: "String"
}
},
provisioningDetails: {
readOnly: true,
serializedName: "properties.provisioningDetails",
timeCreated: {
serializedName: "properties.timeCreated",
type: {
name: "Composite",
className: "RestorePointProvisioningDetails"
name: "DateTime"
}
}
}
Expand Down Expand Up @@ -4322,6 +4286,12 @@ export const AutomaticRepairsPolicy: msRest.CompositeMapper = {
type: {
name: "String"
}
},
repairAction: {
serializedName: "repairAction",
type: {
name: "String"
}
}
}
}
Expand Down
16 changes: 14 additions & 2 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: '2021-07-01',
defaultValue: '2021-11-01',
type: {
name: "String"
}
Expand All @@ -37,13 +37,25 @@ export const apiVersion1: msRest.OperationQueryParameter = {
required: true,
isConstant: true,
serializedName: "api-version",
defaultValue: '2021-04-01',
defaultValue: '2021-07-01',
type: {
name: "String"
}
}
};
export const apiVersion2: msRest.OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
required: true,
isConstant: true,
serializedName: "api-version",
defaultValue: '2021-04-01',
type: {
name: "String"
}
}
};
export const apiVersion3: msRest.OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
required: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ export {
RestorePointCollection,
RestorePointCollectionSourceProperties,
RestorePointCollectionUpdate,
RestorePointProvisioningDetails,
RestorePointSourceMetadata,
RestorePointSourceVMDataDisk,
RestorePointSourceVMOSDisk,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ export {
RestorePointCollectionListResult,
RestorePointCollectionSourceProperties,
RestorePointCollectionUpdate,
RestorePointProvisioningDetails,
RestorePointSourceMetadata,
RestorePointSourceVMDataDisk,
RestorePointSourceVMOSDisk,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ export {
RestorePoint,
RestorePointCollection,
RestorePointCollectionSourceProperties,
RestorePointProvisioningDetails,
RestorePointSourceMetadata,
RestorePointSourceVMDataDisk,
RestorePointSourceVMOSDisk,
Expand Down
1 change: 0 additions & 1 deletion sdk/compute/arm-compute/src/models/snapshotsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ export {
RestorePoint,
RestorePointCollection,
RestorePointCollectionSourceProperties,
RestorePointProvisioningDetails,
RestorePointSourceMetadata,
RestorePointSourceVMDataDisk,
RestorePointSourceVMOSDisk,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ export {
RestorePointCollection,
RestorePointCollectionSourceProperties,
RestorePointCollectionUpdate,
RestorePointProvisioningDetails,
RestorePointSourceMetadata,
RestorePointSourceVMDataDisk,
RestorePointSourceVMOSDisk,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ export {
RestorePoint,
RestorePointCollection,
RestorePointCollectionSourceProperties,
RestorePointProvisioningDetails,
RestorePointSourceMetadata,
RestorePointSourceVMDataDisk,
RestorePointSourceVMOSDisk,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ export {
RestorePointCollection,
RestorePointCollectionSourceProperties,
RestorePointCollectionUpdate,
RestorePointProvisioningDetails,
RestorePointSourceMetadata,
RestorePointSourceVMDataDisk,
RestorePointSourceVMOSDisk,
Expand Down
Loading