Skip to content

Commit

Permalink
CodeGen from PR 12796 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
DiskRP Swagger changes for 2020-12-01 (Azure#12796)

* Initial commit

* add autorotation properties

* supportsHibernation property added

* Update disk.json and add examples to support SSD ZRS managed disks.

* Add a ref to the example.

* adding new property - SecurityProfile

* separate definition of SecurityType enum

* fix identation

* remove enum description

* Improve descriptions for zrs.

* address comments

* added description for TrustedLaunch

* using eastus2euap region in example

* Revised descriptions of ssd zrs accounts

* Add new property for Live tier change

Adding a struct so that custoemrs can get the pending property updates for their managed disk.

* Update example to use region west us

* Updated example to add tier in 202 response.

* address comment

* changing region to NorthCentralUS

* Addressed comments and updated the example

* fix region in example file

* Fixing some validation errors

* Renaming SecurityProfile to DiskSecurityProfile in Definitions

* Missed a $ sign before ref for an example

* Fixing validation errors

* adding identity to diskencrpytionset update props

* Adding location in response

* fixing validation errors due to SecurityType enum

* Changing PurchasePlan to DiskPurchasePlan

* adding SecurityProfile in GetManagerDiskInfo example file

* fix tests by adding SecurityProfile in diskUpdateProperties

* Changed ASSDZRS to SSDZRS

* renamed the test to CreateAManagedDiskWithSSDZRSAccountType

* Fix securitytype enum

* addressing comment

* fix typo

* create enum def

* Changing name from DiskSecurityProfile to ResourceSecurityProfile

* Removing required from DiskSecurityProfile for securityType

* Adding readOnly flag to true for privateEndpoint

* reverted package-lock.json

* reverting DiskPurchasePlan to PurchasePlan

* Moving identity below tags in DiskEncryptionSetUpdate

* Removing the extra ','

* changing PurchasePlan to DiskPurchasePlan and adding x-ms-client-name tag

* Reverting back from DiskPurchasePlan to PurchasePlan

Co-authored-by: Meet Shah <[email protected]>
Co-authored-by: Hyuk Jun Park <[email protected]>
Co-authored-by: LU WU <[email protected]>
Co-authored-by: Anshul <[email protected]>
Co-authored-by: rahul602 <[email protected]>
  • Loading branch information
6 people committed Mar 16, 2021
1 parent ca6fcf0 commit e057207
Show file tree
Hide file tree
Showing 42 changed files with 8,067 additions and 1,820 deletions.
10 changes: 10 additions & 0 deletions sdk/compute/arm-compute/src/computeManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ class ComputeManagementClient extends ComputeManagementClientContext {
galleryImageVersions: operations.GalleryImageVersions;
galleryApplications: operations.GalleryApplications;
galleryApplicationVersions: operations.GalleryApplicationVersions;
cloudServiceRoleInstances: operations.CloudServiceRoleInstances;
cloudServiceRoles: operations.CloudServiceRoles;
cloudServices: operations.CloudServices;
cloudServicesUpdateDomain: operations.CloudServicesUpdateDomain;
cloudServiceOperatingSystems: operations.CloudServiceOperatingSystems;

/**
* Initializes a new instance of the ComputeManagementClient class.
Expand Down Expand Up @@ -92,6 +97,11 @@ class ComputeManagementClient extends ComputeManagementClientContext {
this.galleryImageVersions = new operations.GalleryImageVersions(this);
this.galleryApplications = new operations.GalleryApplications(this);
this.galleryApplicationVersions = new operations.GalleryApplicationVersions(this);
this.cloudServiceRoleInstances = new operations.CloudServiceRoleInstances(this);
this.cloudServiceRoles = new operations.CloudServiceRoles(this);
this.cloudServices = new operations.CloudServices(this);
this.cloudServicesUpdateDomain = new operations.CloudServicesUpdateDomain(this);
this.cloudServiceOperatingSystems = new operations.CloudServiceOperatingSystems(this);
}
}

Expand Down
17 changes: 17 additions & 0 deletions sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ export {
BootDiagnostics,
BootDiagnosticsInstanceView,
CloudError,
CloudService,
CloudServiceExtensionProfile,
CloudServiceExtensionProperties,
CloudServiceNetworkProfile,
CloudServiceOsProfile,
CloudServiceProperties,
CloudServiceRoleProfile,
CloudServiceRoleProfileProperties,
CloudServiceRoleSku,
CloudServiceVaultAndSecretReference,
CloudServiceVaultCertificate,
CloudServiceVaultSecretGroup,
CreationData,
DataDisk,
DataDiskImage,
Expand Down Expand Up @@ -55,6 +67,7 @@ export {
EncryptionSettingsCollection,
EncryptionSettingsElement,
ExtendedLocation,
Extension,
Gallery,
GalleryApplication,
GalleryApplicationUpdate,
Expand Down Expand Up @@ -95,6 +108,10 @@ export {
LastPatchInstallationSummary,
LinuxConfiguration,
LinuxPatchSettings,
LoadBalancerConfiguration,
LoadBalancerConfigurationProperties,
LoadBalancerFrontendIPConfiguration,
LoadBalancerFrontendIPConfigurationProperties,
MaintenanceRedeployStatus,
ManagedDiskParameters,
NetworkInterfaceReference,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
ApiError,
ApiErrorBase,
CloudError,
InnerError,
OSFamily,
OSFamilyListResult,
OSFamilyProperties,
OSVersion,
OSVersionListResult,
OSVersionProperties,
OSVersionPropertiesBase
} from "../models/mappers";
216 changes: 216 additions & 0 deletions sdk/compute/arm-compute/src/models/cloudServiceRoleInstancesMappers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,216 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
AdditionalCapabilities,
AdditionalUnattendContent,
ApiEntityReference,
ApiError,
ApiErrorBase,
AutomaticOSUpgradePolicy,
AutomaticOSUpgradeProperties,
AutomaticRepairsPolicy,
AvailabilitySet,
AvailablePatchSummary,
BaseResource,
BillingProfile,
BootDiagnostics,
BootDiagnosticsInstanceView,
CloudError,
CloudService,
CloudServiceExtensionProfile,
CloudServiceExtensionProperties,
CloudServiceNetworkProfile,
CloudServiceOsProfile,
CloudServiceProperties,
CloudServiceRoleProfile,
CloudServiceRoleProfileProperties,
CloudServiceRoleSku,
CloudServiceVaultAndSecretReference,
CloudServiceVaultCertificate,
CloudServiceVaultSecretGroup,
CreationData,
DataDisk,
DataDiskImage,
DataDiskImageEncryption,
DedicatedHost,
DedicatedHostAllocatableVM,
DedicatedHostAvailableCapacity,
DedicatedHostGroup,
DedicatedHostGroupInstanceView,
DedicatedHostInstanceView,
DedicatedHostInstanceViewWithName,
DiagnosticsProfile,
DiffDiskSettings,
Disallowed,
DisallowedConfiguration,
Disk,
DiskAccess,
DiskEncryptionSet,
DiskEncryptionSetParameters,
DiskEncryptionSettings,
DiskImageEncryption,
DiskInstanceView,
DiskSku,
Encryption,
EncryptionImages,
EncryptionSetIdentity,
EncryptionSettingsCollection,
EncryptionSettingsElement,
ExtendedLocation,
Extension,
Gallery,
GalleryApplication,
GalleryApplicationUpdate,
GalleryApplicationVersion,
GalleryApplicationVersionPublishingProfile,
GalleryApplicationVersionUpdate,
GalleryArtifactPublishingProfileBase,
GalleryArtifactVersionSource,
GalleryDataDiskImage,
GalleryDiskImage,
GalleryIdentifier,
GalleryImage,
GalleryImageIdentifier,
GalleryImageUpdate,
GalleryImageVersion,
GalleryImageVersionPublishingProfile,
GalleryImageVersionStorageProfile,
GalleryImageVersionUpdate,
GalleryOSDiskImage,
GalleryUpdate,
HardwareProfile,
Image,
ImageDataDisk,
ImageDisk,
ImageDiskReference,
ImageOSDisk,
ImagePurchasePlan,
ImageReference,
ImageStorageProfile,
InnerError,
InstanceSku,
InstanceViewStatus,
KeyForDiskEncryptionSet,
KeyVaultAndKeyReference,
KeyVaultAndSecretReference,
KeyVaultKeyReference,
KeyVaultSecretReference,
LastPatchInstallationSummary,
LinuxConfiguration,
LinuxPatchSettings,
LoadBalancerConfiguration,
LoadBalancerConfigurationProperties,
LoadBalancerFrontendIPConfiguration,
LoadBalancerFrontendIPConfigurationProperties,
MaintenanceRedeployStatus,
ManagedDiskParameters,
NetworkInterfaceReference,
NetworkProfile,
OSDisk,
OSDiskImage,
OSDiskImageEncryption,
OSProfile,
PatchSettings,
Plan,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateLinkServiceConnectionState,
ProximityPlacementGroup,
PurchasePlan,
RecommendedMachineConfiguration,
RegionalReplicationStatus,
ReplicationStatus,
Resource,
ResourceInstanceViewStatus,
ResourceRange,
RoleInstance,
RoleInstanceInstanceView,
RoleInstanceListResult,
RoleInstanceNetworkProfile,
RoleInstanceProperties,
RollingUpgradePolicy,
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
RunCommandInputParameter,
ScaleInPolicy,
ScheduledEventsProfile,
SecurityProfile,
ShareInfoElement,
Sku,
Snapshot,
SnapshotSku,
SourceVault,
SshConfiguration,
SshPublicKey,
SshPublicKeyResource,
StorageProfile,
SubResource,
SubResourceReadOnly,
SubResourceWithColocationStatus,
TargetRegion,
TerminateNotificationProfile,
UefiSettings,
UpdateResourceDefinition,
UpgradePolicy,
UserArtifactManage,
UserArtifactSource,
VaultCertificate,
VaultSecretGroup,
VirtualHardDisk,
VirtualMachine,
VirtualMachineAgentInstanceView,
VirtualMachineCaptureResult,
VirtualMachineExtension,
VirtualMachineExtensionHandlerInstanceView,
VirtualMachineExtensionImage,
VirtualMachineExtensionInstanceView,
VirtualMachineHealthStatus,
VirtualMachineIdentity,
VirtualMachineIdentityUserAssignedIdentitiesValue,
VirtualMachineImage,
VirtualMachineImageFeature,
VirtualMachineImageResource,
VirtualMachineInstanceView,
VirtualMachinePatchStatus,
VirtualMachineRunCommand,
VirtualMachineRunCommandInstanceView,
VirtualMachineRunCommandScriptSource,
VirtualMachineScaleSet,
VirtualMachineScaleSetDataDisk,
VirtualMachineScaleSetExtension,
VirtualMachineScaleSetExtensionProfile,
VirtualMachineScaleSetExtensionUpdate,
VirtualMachineScaleSetIdentity,
VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue,
VirtualMachineScaleSetIPConfiguration,
VirtualMachineScaleSetIpTag,
VirtualMachineScaleSetManagedDiskParameters,
VirtualMachineScaleSetNetworkConfiguration,
VirtualMachineScaleSetNetworkConfigurationDnsSettings,
VirtualMachineScaleSetNetworkProfile,
VirtualMachineScaleSetOSDisk,
VirtualMachineScaleSetOSProfile,
VirtualMachineScaleSetPublicIPAddressConfiguration,
VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings,
VirtualMachineScaleSetStorageProfile,
VirtualMachineScaleSetUpdateIPConfiguration,
VirtualMachineScaleSetUpdateNetworkConfiguration,
VirtualMachineScaleSetUpdatePublicIPAddressConfiguration,
VirtualMachineScaleSetVM,
VirtualMachineScaleSetVMExtension,
VirtualMachineScaleSetVMExtensionUpdate,
VirtualMachineScaleSetVMInstanceView,
VirtualMachineScaleSetVMNetworkProfileConfiguration,
VirtualMachineScaleSetVMProfile,
VirtualMachineScaleSetVMProtectionPolicy,
WindowsConfiguration,
WinRMConfiguration,
WinRMListener
} from "../models/mappers";
18 changes: 18 additions & 0 deletions sdk/compute/arm-compute/src/models/cloudServiceRolesMappers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
ApiError,
ApiErrorBase,
CloudError,
CloudServiceRole,
CloudServiceRoleListResult,
CloudServiceRoleProperties,
CloudServiceRoleSku,
InnerError
} from "../models/mappers";
Loading

0 comments on commit e057207

Please sign in to comment.