From 6b2332a5c523f4ed42e9bd8bc6c824d847e6a224 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 21 Jun 2021 03:03:03 +0000 Subject: [PATCH] CodeGen from PR 14782 in Azure/azure-rest-api-specs Fix PublicIP Sku property names (#14782) * Fix public IP sku name and Tier property names * remove required property to match NRP swagger spec * update example file Co-authored-by: Bashar Gharaibeh --- .../mgmt/2019-03-01/compute/CHANGELOG.md | 62 ++++++------------- .../mgmt/2019-03-01/compute/_meta.json | 2 +- .../compute/galleryapplicationversions.go | 8 ++- .../compute/mgmt/2019-03-01/compute/models.go | 29 ++++++--- 4 files changed, 45 insertions(+), 56 deletions(-) diff --git a/services/compute/mgmt/2019-03-01/compute/CHANGELOG.md b/services/compute/mgmt/2019-03-01/compute/CHANGELOG.md index 4d66b8edac10..2316a7bf5807 100644 --- a/services/compute/mgmt/2019-03-01/compute/CHANGELOG.md +++ b/services/compute/mgmt/2019-03-01/compute/CHANGELOG.md @@ -1,45 +1,23 @@ -# Change History +# Unreleased + +## Breaking Changes + +### Struct Changes + +#### Removed Struct Fields + +1. GalleryApplicationVersionPublishingProfile.ContentType +1. UserArtifactSource.FileName ## Additive Changes -### New Funcs - -1. AccessURI.MarshalJSON() ([]byte, error) -1. BootDiagnosticsInstanceView.MarshalJSON() ([]byte, error) -1. DataDiskImage.MarshalJSON() ([]byte, error) -1. GalleryDataDiskImage.MarshalJSON() ([]byte, error) -1. GalleryDiskImage.MarshalJSON() ([]byte, error) -1. GalleryIdentifier.MarshalJSON() ([]byte, error) -1. GalleryImageVersionStorageProfile.MarshalJSON() ([]byte, error) -1. GalleryOSDiskImage.MarshalJSON() ([]byte, error) -1. LogAnalyticsOperationResult.MarshalJSON() ([]byte, error) -1. LogAnalyticsOutput.MarshalJSON() ([]byte, error) -1. OperationListResult.MarshalJSON() ([]byte, error) -1. OperationValueDisplay.MarshalJSON() ([]byte, error) -1. RecoveryWalkResponse.MarshalJSON() ([]byte, error) -1. RegionalReplicationStatus.MarshalJSON() ([]byte, error) -1. ReplicationStatus.MarshalJSON() ([]byte, error) -1. ResourceSku.MarshalJSON() ([]byte, error) -1. ResourceSkuCapabilities.MarshalJSON() ([]byte, error) -1. ResourceSkuCapacity.MarshalJSON() ([]byte, error) -1. ResourceSkuCosts.MarshalJSON() ([]byte, error) -1. ResourceSkuLocationInfo.MarshalJSON() ([]byte, error) -1. ResourceSkuRestrictionInfo.MarshalJSON() ([]byte, error) -1. ResourceSkuRestrictions.MarshalJSON() ([]byte, error) -1. ResourceSkuZoneDetails.MarshalJSON() ([]byte, error) -1. RollbackStatusInfo.MarshalJSON() ([]byte, error) -1. RollingUpgradeProgressInfo.MarshalJSON() ([]byte, error) -1. RollingUpgradeRunningStatus.MarshalJSON() ([]byte, error) -1. RollingUpgradeStatusInfoProperties.MarshalJSON() ([]byte, error) -1. SubResourceReadOnly.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoricalStatusInfo.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoricalStatusInfoProperties.MarshalJSON() ([]byte, error) -1. UpgradeOperationHistoryStatus.MarshalJSON() ([]byte, error) -1. VirtualMachineHealthStatus.MarshalJSON() ([]byte, error) -1. VirtualMachineIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetInstanceViewStatusesSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSku.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetSkuCapacity.MarshalJSON() ([]byte, error) -1. VirtualMachineScaleSetVMExtensionsSummary.MarshalJSON() ([]byte, error) -1. VirtualMachineStatusCodeCount.MarshalJSON() ([]byte, error) +### Struct Changes + +#### New Structs + +1. UserArtifactManage + +#### New Struct Fields + +1. GalleryApplicationVersionPublishingProfile.ManageActions +1. UserArtifactSource.DefaultConfigurationLink diff --git a/services/compute/mgmt/2019-03-01/compute/_meta.json b/services/compute/mgmt/2019-03-01/compute/_meta.json index eac3db5703fa..0aacfc92ea73 100644 --- a/services/compute/mgmt/2019-03-01/compute/_meta.json +++ b/services/compute/mgmt/2019-03-01/compute/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "d92047595da0e0410925301c7d1174c3296e3ebe", "readme": "/_/azure-rest-api-specs/specification/compute/resource-manager/readme.md", "tag": "package-2019-03-01", "use": "@microsoft.azure/autorest.go@2.1.183", diff --git a/services/compute/mgmt/2019-03-01/compute/galleryapplicationversions.go b/services/compute/mgmt/2019-03-01/compute/galleryapplicationversions.go index c7e8e73ff957..c50926939548 100644 --- a/services/compute/mgmt/2019-03-01/compute/galleryapplicationversions.go +++ b/services/compute/mgmt/2019-03-01/compute/galleryapplicationversions.go @@ -59,9 +59,11 @@ func (client GalleryApplicationVersionsClient) CreateOrUpdate(ctx context.Contex Constraints: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile", Name: validation.Null, Rule: true, Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.Source", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.Source.FileName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.Source.MediaLink", Name: validation.Null, Rule: true, Chain: nil}, - }}, + Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.Source.MediaLink", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.ManageActions", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.ManageActions.Install", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "galleryApplicationVersion.GalleryApplicationVersionProperties.PublishingProfile.ManageActions.Remove", Name: validation.Null, Rule: true, Chain: nil}, + }}, }}, }}}}}); err != nil { return result, validation.NewError("compute.GalleryApplicationVersionsClient", "CreateOrUpdate", err.Error()) diff --git a/services/compute/mgmt/2019-03-01/compute/models.go b/services/compute/mgmt/2019-03-01/compute/models.go index 58810d3afb5e..c945b65b677a 100644 --- a/services/compute/mgmt/2019-03-01/compute/models.go +++ b/services/compute/mgmt/2019-03-01/compute/models.go @@ -3523,11 +3523,10 @@ func (gavp GalleryApplicationVersionProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// GalleryApplicationVersionPublishingProfile the publishing profile of a gallery Image Version. +// GalleryApplicationVersionPublishingProfile the publishing profile of a gallery image version. type GalleryApplicationVersionPublishingProfile struct { - Source *UserArtifactSource `json:"source,omitempty"` - // ContentType - Optional. May be used to help process this file. The type of file contained in the source, e.g. zip, json, etc. - ContentType *string `json:"contentType,omitempty"` + Source *UserArtifactSource `json:"source,omitempty"` + ManageActions *UserArtifactManage `json:"manageActions,omitempty"` // EnableHealthCheck - Optional. Whether or not this application reports health. EnableHealthCheck *bool `json:"enableHealthCheck,omitempty"` // TargetRegions - The target regions where the Image Version is going to be replicated to. This property is updatable. @@ -3550,8 +3549,8 @@ func (gavpp GalleryApplicationVersionPublishingProfile) MarshalJSON() ([]byte, e if gavpp.Source != nil { objectMap["source"] = gavpp.Source } - if gavpp.ContentType != nil { - objectMap["contentType"] = gavpp.ContentType + if gavpp.ManageActions != nil { + objectMap["manageActions"] = gavpp.ManageActions } if gavpp.EnableHealthCheck != nil { objectMap["enableHealthCheck"] = gavpp.EnableHealthCheck @@ -7908,12 +7907,22 @@ type UsageName struct { LocalizedValue *string `json:"localizedValue,omitempty"` } +// UserArtifactManage ... +type UserArtifactManage struct { + // Install - Required. The path and arguments to install the gallery application. This is limited to 4096 characters. + Install *string `json:"install,omitempty"` + // Remove - Required. The path and arguments to remove the gallery application. This is limited to 4096 characters. + Remove *string `json:"remove,omitempty"` + // Update - Optional. The path and arguments to update the gallery application. If not present, then update operation will invoke remove command on the previous version and install command on the current version of the gallery application. This is limited to 4096 characters. + Update *string `json:"update,omitempty"` +} + // UserArtifactSource the source image from which the Image Version is going to be created. type UserArtifactSource struct { - // FileName - Required. The fileName of the artifact. - FileName *string `json:"fileName,omitempty"` - // MediaLink - Required. The mediaLink of the artifact, must be a readable storage blob. + // MediaLink - Required. The mediaLink of the artifact, must be a readable storage page blob. MediaLink *string `json:"mediaLink,omitempty"` + // DefaultConfigurationLink - Optional. The defaultConfigurationLink of the artifact, must be a readable storage page blob. + DefaultConfigurationLink *string `json:"defaultConfigurationLink,omitempty"` } // VaultCertificate describes a single certificate reference in a Key Vault, and where the certificate @@ -10442,7 +10451,7 @@ func NewVirtualMachineScaleSetListWithLinkResultPage(cur VirtualMachineScaleSetL // VirtualMachineScaleSetManagedDiskParameters describes the parameters of a ScaleSet managed disk. type VirtualMachineScaleSetManagedDiskParameters struct { - // StorageAccountType - Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS' + // StorageAccountType - Specifies the storage account type for the managed disk. Managed OS disk storage account type can only be set when you create the scale set. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS' StorageAccountType StorageAccountTypes `json:"storageAccountType,omitempty"` }