Documentation ¶
Index ¶
- func PossibleValuesForCachingTypes() []string
- func PossibleValuesForHyperVGenerationTypes() []string
- func PossibleValuesForOperatingSystemStateTypes() []string
- func PossibleValuesForOperatingSystemTypes() []string
- func PossibleValuesForStorageAccountTypes() []string
- func ValidateImageID(input interface{}, key string) (warnings []string, errors []error)
- type CachingTypes
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationOptions
- type GetOperationResponse
- type HyperVGenerationTypes
- type Image
- type ImageDataDisk
- type ImageId
- type ImageOSDisk
- type ImageOperationPredicate
- type ImageProperties
- type ImageStorageProfile
- type ImageUpdate
- type ImagesClient
- func (c ImagesClient) CreateOrUpdate(ctx context.Context, id ImageId, input Image) (result CreateOrUpdateOperationResponse, err error)
- func (c ImagesClient) CreateOrUpdateThenPoll(ctx context.Context, id ImageId, input Image) error
- func (c ImagesClient) Delete(ctx context.Context, id ImageId) (result DeleteOperationResponse, err error)
- func (c ImagesClient) DeleteThenPoll(ctx context.Context, id ImageId) error
- func (c ImagesClient) Get(ctx context.Context, id ImageId, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c ImagesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
- func (c ImagesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
- func (c ImagesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
- func (c ImagesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListByResourceGroupCompleteResult, err error)
- func (c ImagesClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
- func (c ImagesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListCompleteResult, err error)
- func (c ImagesClient) Update(ctx context.Context, id ImageId, input ImageUpdate) (result UpdateOperationResponse, err error)
- func (c ImagesClient) UpdateThenPoll(ctx context.Context, id ImageId, input ImageUpdate) error
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type OperatingSystemStateTypes
- type OperatingSystemTypes
- type StorageAccountTypes
- type SubResource
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCachingTypes ¶
func PossibleValuesForCachingTypes() []string
func PossibleValuesForHyperVGenerationTypes ¶
func PossibleValuesForHyperVGenerationTypes() []string
func PossibleValuesForOperatingSystemStateTypes ¶
func PossibleValuesForOperatingSystemStateTypes() []string
func PossibleValuesForOperatingSystemTypes ¶
func PossibleValuesForOperatingSystemTypes() []string
func PossibleValuesForStorageAccountTypes ¶
func PossibleValuesForStorageAccountTypes() []string
func ValidateImageID ¶
ValidateImageID checks that 'input' can be parsed as a Image ID
Types ¶
type CachingTypes ¶
type CachingTypes string
const ( CachingTypesNone CachingTypes = "None" CachingTypesReadOnly CachingTypes = "ReadOnly" CachingTypesReadWrite CachingTypes = "ReadWrite" )
func (*CachingTypes) UnmarshalJSON ¶ added in v0.20230808.1103829
func (s *CachingTypes) UnmarshalJSON(bytes []byte) error
type DeleteOperationResponse ¶
type GetOperationOptions ¶
type GetOperationOptions struct {
Expand *string
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
func (GetOperationOptions) ToHeaders ¶ added in v0.20230808.1103829
func (o GetOperationOptions) ToHeaders() *client.Headers
func (GetOperationOptions) ToOData ¶ added in v0.20230808.1103829
func (o GetOperationOptions) ToOData() *odata.Query
func (GetOperationOptions) ToQuery ¶ added in v0.20230808.1103829
func (o GetOperationOptions) ToQuery() *client.QueryParams
type GetOperationResponse ¶
type HyperVGenerationTypes ¶
type HyperVGenerationTypes string
const ( HyperVGenerationTypesVOne HyperVGenerationTypes = "V1" HyperVGenerationTypesVTwo HyperVGenerationTypes = "V2" )
func (*HyperVGenerationTypes) UnmarshalJSON ¶ added in v0.20230808.1103829
func (s *HyperVGenerationTypes) UnmarshalJSON(bytes []byte) error
type Image ¶
type Image struct { ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` Id *string `json:"id,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties *ImageProperties `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type ImageDataDisk ¶
type ImageDataDisk struct { BlobUri *string `json:"blobUri,omitempty"` Caching *CachingTypes `json:"caching,omitempty"` DiskEncryptionSet *SubResource `json:"diskEncryptionSet,omitempty"` DiskSizeGB *int64 `json:"diskSizeGB,omitempty"` Lun int64 `json:"lun"` ManagedDisk *SubResource `json:"managedDisk,omitempty"` Snapshot *SubResource `json:"snapshot,omitempty"` StorageAccountType *StorageAccountTypes `json:"storageAccountType,omitempty"` }
type ImageId ¶
ImageId is a struct representing the Resource ID for a Image
func NewImageID ¶
NewImageID returns a new ImageId struct
func ParseImageID ¶
ParseImageID parses 'input' into a ImageId
func ParseImageIDInsensitively ¶
ParseImageIDInsensitively parses 'input' case-insensitively into a ImageId note: this method should only be used for API response data and not user input
func (*ImageId) FromParseResult ¶ added in v0.20231127.1171502
func (id *ImageId) FromParseResult(input resourceids.ParseResult) error
func (ImageId) Segments ¶
func (id ImageId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Image ID
type ImageOSDisk ¶
type ImageOSDisk struct { BlobUri *string `json:"blobUri,omitempty"` Caching *CachingTypes `json:"caching,omitempty"` DiskEncryptionSet *SubResource `json:"diskEncryptionSet,omitempty"` DiskSizeGB *int64 `json:"diskSizeGB,omitempty"` ManagedDisk *SubResource `json:"managedDisk,omitempty"` OsState OperatingSystemStateTypes `json:"osState"` OsType OperatingSystemTypes `json:"osType"` Snapshot *SubResource `json:"snapshot,omitempty"` StorageAccountType *StorageAccountTypes `json:"storageAccountType,omitempty"` }
type ImageOperationPredicate ¶
func (ImageOperationPredicate) Matches ¶
func (p ImageOperationPredicate) Matches(input Image) bool
type ImageProperties ¶
type ImageProperties struct { HyperVGeneration *HyperVGenerationTypes `json:"hyperVGeneration,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` SourceVirtualMachine *SubResource `json:"sourceVirtualMachine,omitempty"` StorageProfile *ImageStorageProfile `json:"storageProfile,omitempty"` }
type ImageStorageProfile ¶
type ImageStorageProfile struct { DataDisks *[]ImageDataDisk `json:"dataDisks,omitempty"` OsDisk *ImageOSDisk `json:"osDisk,omitempty"` ZoneResilient *bool `json:"zoneResilient,omitempty"` }
type ImageUpdate ¶
type ImageUpdate struct { Properties *ImageProperties `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type ImagesClient ¶
type ImagesClient struct {
Client *resourcemanager.Client
}
func NewImagesClientWithBaseURI ¶
func NewImagesClientWithBaseURI(sdkApi sdkEnv.Api) (*ImagesClient, error)
func (ImagesClient) CreateOrUpdate ¶
func (c ImagesClient) CreateOrUpdate(ctx context.Context, id ImageId, input Image) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ImagesClient) CreateOrUpdateThenPoll ¶
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (ImagesClient) Delete ¶
func (c ImagesClient) Delete(ctx context.Context, id ImageId) (result DeleteOperationResponse, err error)
Delete ...
func (ImagesClient) DeleteThenPoll ¶
func (c ImagesClient) DeleteThenPoll(ctx context.Context, id ImageId) error
DeleteThenPoll performs Delete then polls until it's completed
func (ImagesClient) Get ¶
func (c ImagesClient) Get(ctx context.Context, id ImageId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (ImagesClient) List ¶
func (c ImagesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
List ...
func (ImagesClient) ListByResourceGroup ¶
func (c ImagesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (ImagesClient) ListByResourceGroupComplete ¶
func (c ImagesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all the results into a single object
func (ImagesClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c ImagesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ImageOperationPredicate) (result ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ImagesClient) ListComplete ¶
func (c ImagesClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (ImagesClient) ListCompleteMatchingPredicate ¶
func (c ImagesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ImageOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ImagesClient) Update ¶
func (c ImagesClient) Update(ctx context.Context, id ImageId, input ImageUpdate) (result UpdateOperationResponse, err error)
Update ...
func (ImagesClient) UpdateThenPoll ¶
func (c ImagesClient) UpdateThenPoll(ctx context.Context, id ImageId, input ImageUpdate) error
UpdateThenPoll performs Update then polls until it's completed
type ListByResourceGroupCompleteResult ¶
type ListByResourceGroupCompleteResult struct {
Items []Image
}
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []Image
}
type ListOperationResponse ¶
type OperatingSystemStateTypes ¶
type OperatingSystemStateTypes string
const ( OperatingSystemStateTypesGeneralized OperatingSystemStateTypes = "Generalized" OperatingSystemStateTypesSpecialized OperatingSystemStateTypes = "Specialized" )
func (*OperatingSystemStateTypes) UnmarshalJSON ¶ added in v0.20230808.1103829
func (s *OperatingSystemStateTypes) UnmarshalJSON(bytes []byte) error
type OperatingSystemTypes ¶
type OperatingSystemTypes string
const ( OperatingSystemTypesLinux OperatingSystemTypes = "Linux" OperatingSystemTypesWindows OperatingSystemTypes = "Windows" )
func (*OperatingSystemTypes) UnmarshalJSON ¶ added in v0.20230808.1103829
func (s *OperatingSystemTypes) UnmarshalJSON(bytes []byte) error
type StorageAccountTypes ¶
type StorageAccountTypes string
const ( StorageAccountTypesPremiumLRS StorageAccountTypes = "Premium_LRS" StorageAccountTypesPremiumVTwoLRS StorageAccountTypes = "PremiumV2_LRS" StorageAccountTypesPremiumZRS StorageAccountTypes = "Premium_ZRS" StorageAccountTypesStandardLRS StorageAccountTypes = "Standard_LRS" StorageAccountTypesStandardSSDLRS StorageAccountTypes = "StandardSSD_LRS" StorageAccountTypesStandardSSDZRS StorageAccountTypes = "StandardSSD_ZRS" StorageAccountTypesUltraSSDLRS StorageAccountTypes = "UltraSSD_LRS" )
func (*StorageAccountTypes) UnmarshalJSON ¶ added in v0.20230808.1103829
func (s *StorageAccountTypes) UnmarshalJSON(bytes []byte) error
type SubResource ¶
type SubResource struct {
Id *string `json:"id,omitempty"`
}
Source Files ¶
- client.go
- constants.go
- id_image.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_list.go
- method_listbyresourcegroup.go
- method_update.go
- model_image.go
- model_imagedatadisk.go
- model_imageosdisk.go
- model_imageproperties.go
- model_imagestorageprofile.go
- model_imageupdate.go
- model_subresource.go
- predicates.go
- version.go