Skip to content

Commit

Permalink
[AutoPR compute/resource-manager] [Compute] Add new API Version and f…
Browse files Browse the repository at this point in the history
…ield (StorageAccountType) to SharedImageGallery swagger spec (Azure#4458)

* Generated from 8a9dfc34f43f5035afdb5bf322bff33a2d0866bb

add new api version and field for Shared Image Gallery

* Generated from fc4ece6c6f7cbfaf46d0c93d350d6c773b03ac28

fixed example json
  • Loading branch information
AutorestCI authored and jhendrixMSFT committed Apr 9, 2019
1 parent f6372e0 commit 6ea1dc2
Show file tree
Hide file tree
Showing 30 changed files with 23,534 additions and 10 deletions.
2 changes: 1 addition & 1 deletion profiles/latest/compute/mgmt/compute/computeapi/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

package computeapi

import original "github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-10-01/compute/computeapi"
import original "github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2019-03-01/compute/computeapi"

type AvailabilitySetsClientAPI = original.AvailabilitySetsClientAPI
type ContainerServicesClientAPI = original.ContainerServicesClientAPI
Expand Down
45 changes: 41 additions & 4 deletions profiles/latest/compute/mgmt/compute/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ package compute
import (
"context"

original "github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-10-01/compute"
original "github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2019-03-01/compute"
)

const (
Expand All @@ -32,8 +32,9 @@ const (
type AccessLevel = original.AccessLevel

const (
None AccessLevel = original.None
Read AccessLevel = original.Read
None AccessLevel = original.None
Read AccessLevel = original.Read
Write AccessLevel = original.Write
)

type AggregatedReplicationState = original.AggregatedReplicationState
Expand Down Expand Up @@ -142,6 +143,7 @@ const (
FromImage DiskCreateOption = original.FromImage
Import DiskCreateOption = original.Import
Restore DiskCreateOption = original.Restore
Upload DiskCreateOption = original.Upload
)

type DiskCreateOptionTypes = original.DiskCreateOptionTypes
Expand All @@ -152,6 +154,17 @@ const (
DiskCreateOptionTypesFromImage DiskCreateOptionTypes = original.DiskCreateOptionTypesFromImage
)

type DiskState = original.DiskState

const (
ActiveSAS DiskState = original.ActiveSAS
ActiveUpload DiskState = original.ActiveUpload
Attached DiskState = original.Attached
ReadyToUpload DiskState = original.ReadyToUpload
Reserved DiskState = original.Reserved
Unattached DiskState = original.Unattached
)

type DiskStorageAccountTypes = original.DiskStorageAccountTypes

const (
Expand All @@ -169,6 +182,13 @@ const (
HostCachingReadWrite HostCaching = original.HostCachingReadWrite
)

type HyperVGeneration = original.HyperVGeneration

const (
V1 HyperVGeneration = original.V1
V2 HyperVGeneration = original.V2
)

type IPVersion = original.IPVersion

const (
Expand Down Expand Up @@ -345,6 +365,13 @@ const (
Warning StatusLevelTypes = original.Warning
)

type StorageAccountType = original.StorageAccountType

const (
StorageAccountTypeStandardLRS StorageAccountType = original.StorageAccountTypeStandardLRS
StorageAccountTypeStandardZRS StorageAccountType = original.StorageAccountTypeStandardZRS
)

type StorageAccountTypes = original.StorageAccountTypes

const (
Expand Down Expand Up @@ -631,7 +658,8 @@ type DisksDeleteFuture = original.DisksDeleteFuture
type DisksGrantAccessFuture = original.DisksGrantAccessFuture
type DisksRevokeAccessFuture = original.DisksRevokeAccessFuture
type DisksUpdateFuture = original.DisksUpdateFuture
type EncryptionSettings = original.EncryptionSettings
type EncryptionSettingsCollection = original.EncryptionSettingsCollection
type EncryptionSettingsElement = original.EncryptionSettingsElement
type GalleriesClient = original.GalleriesClient
type GalleriesCreateOrUpdateFuture = original.GalleriesCreateOrUpdateFuture
type GalleriesDeleteFuture = original.GalleriesDeleteFuture
Expand Down Expand Up @@ -1213,12 +1241,18 @@ func PossibleDiskCreateOptionTypesValues() []DiskCreateOptionTypes {
func PossibleDiskCreateOptionValues() []DiskCreateOption {
return original.PossibleDiskCreateOptionValues()
}
func PossibleDiskStateValues() []DiskState {
return original.PossibleDiskStateValues()
}
func PossibleDiskStorageAccountTypesValues() []DiskStorageAccountTypes {
return original.PossibleDiskStorageAccountTypesValues()
}
func PossibleHostCachingValues() []HostCaching {
return original.PossibleHostCachingValues()
}
func PossibleHyperVGenerationValues() []HyperVGeneration {
return original.PossibleHyperVGenerationValues()
}
func PossibleIPVersionValues() []IPVersion {
return original.PossibleIPVersionValues()
}
Expand Down Expand Up @@ -1285,6 +1319,9 @@ func PossibleSnapshotStorageAccountTypesValues() []SnapshotStorageAccountTypes {
func PossibleStatusLevelTypesValues() []StatusLevelTypes {
return original.PossibleStatusLevelTypesValues()
}
func PossibleStorageAccountTypeValues() []StorageAccountType {
return original.PossibleStorageAccountTypeValues()
}
func PossibleStorageAccountTypesValues() []StorageAccountTypes {
return original.PossibleStorageAccountTypesValues()
}
Expand Down
2 changes: 1 addition & 1 deletion profiles/preview/compute/mgmt/compute/computeapi/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

package computeapi

import original "github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-10-01/compute/computeapi"
import original "github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2019-03-01/compute/computeapi"

type AvailabilitySetsClientAPI = original.AvailabilitySetsClientAPI
type ContainerServicesClientAPI = original.ContainerServicesClientAPI
Expand Down
45 changes: 41 additions & 4 deletions profiles/preview/compute/mgmt/compute/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ package compute
import (
"context"

original "github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-10-01/compute"
original "github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2019-03-01/compute"
)

const (
Expand All @@ -32,8 +32,9 @@ const (
type AccessLevel = original.AccessLevel

const (
None AccessLevel = original.None
Read AccessLevel = original.Read
None AccessLevel = original.None
Read AccessLevel = original.Read
Write AccessLevel = original.Write
)

type AggregatedReplicationState = original.AggregatedReplicationState
Expand Down Expand Up @@ -142,6 +143,7 @@ const (
FromImage DiskCreateOption = original.FromImage
Import DiskCreateOption = original.Import
Restore DiskCreateOption = original.Restore
Upload DiskCreateOption = original.Upload
)

type DiskCreateOptionTypes = original.DiskCreateOptionTypes
Expand All @@ -152,6 +154,17 @@ const (
DiskCreateOptionTypesFromImage DiskCreateOptionTypes = original.DiskCreateOptionTypesFromImage
)

type DiskState = original.DiskState

const (
ActiveSAS DiskState = original.ActiveSAS
ActiveUpload DiskState = original.ActiveUpload
Attached DiskState = original.Attached
ReadyToUpload DiskState = original.ReadyToUpload
Reserved DiskState = original.Reserved
Unattached DiskState = original.Unattached
)

type DiskStorageAccountTypes = original.DiskStorageAccountTypes

const (
Expand All @@ -169,6 +182,13 @@ const (
HostCachingReadWrite HostCaching = original.HostCachingReadWrite
)

type HyperVGeneration = original.HyperVGeneration

const (
V1 HyperVGeneration = original.V1
V2 HyperVGeneration = original.V2
)

type IPVersion = original.IPVersion

const (
Expand Down Expand Up @@ -345,6 +365,13 @@ const (
Warning StatusLevelTypes = original.Warning
)

type StorageAccountType = original.StorageAccountType

const (
StorageAccountTypeStandardLRS StorageAccountType = original.StorageAccountTypeStandardLRS
StorageAccountTypeStandardZRS StorageAccountType = original.StorageAccountTypeStandardZRS
)

type StorageAccountTypes = original.StorageAccountTypes

const (
Expand Down Expand Up @@ -631,7 +658,8 @@ type DisksDeleteFuture = original.DisksDeleteFuture
type DisksGrantAccessFuture = original.DisksGrantAccessFuture
type DisksRevokeAccessFuture = original.DisksRevokeAccessFuture
type DisksUpdateFuture = original.DisksUpdateFuture
type EncryptionSettings = original.EncryptionSettings
type EncryptionSettingsCollection = original.EncryptionSettingsCollection
type EncryptionSettingsElement = original.EncryptionSettingsElement
type GalleriesClient = original.GalleriesClient
type GalleriesCreateOrUpdateFuture = original.GalleriesCreateOrUpdateFuture
type GalleriesDeleteFuture = original.GalleriesDeleteFuture
Expand Down Expand Up @@ -1213,12 +1241,18 @@ func PossibleDiskCreateOptionTypesValues() []DiskCreateOptionTypes {
func PossibleDiskCreateOptionValues() []DiskCreateOption {
return original.PossibleDiskCreateOptionValues()
}
func PossibleDiskStateValues() []DiskState {
return original.PossibleDiskStateValues()
}
func PossibleDiskStorageAccountTypesValues() []DiskStorageAccountTypes {
return original.PossibleDiskStorageAccountTypesValues()
}
func PossibleHostCachingValues() []HostCaching {
return original.PossibleHostCachingValues()
}
func PossibleHyperVGenerationValues() []HyperVGeneration {
return original.PossibleHyperVGenerationValues()
}
func PossibleIPVersionValues() []IPVersion {
return original.PossibleIPVersionValues()
}
Expand Down Expand Up @@ -1285,6 +1319,9 @@ func PossibleSnapshotStorageAccountTypesValues() []SnapshotStorageAccountTypes {
func PossibleStatusLevelTypesValues() []StatusLevelTypes {
return original.PossibleStatusLevelTypesValues()
}
func PossibleStorageAccountTypeValues() []StorageAccountType {
return original.PossibleStorageAccountTypeValues()
}
func PossibleStorageAccountTypesValues() []StorageAccountTypes {
return original.PossibleStorageAccountTypesValues()
}
Expand Down
Loading

0 comments on commit 6ea1dc2

Please sign in to comment.