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) (resp ListOperationResponse, err error)
- func (c ImagesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (resp 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, ...) (resp 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, ...) (resp 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" )
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type DeleteOperationResponse ¶
type DeleteOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type GetOperationOptions ¶
type GetOperationOptions struct {
Expand *string
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
type GetOperationResponse ¶
type HyperVGenerationTypes ¶
type HyperVGenerationTypes string
const ( HyperVGenerationTypesVOne HyperVGenerationTypes = "V1" HyperVGenerationTypesVTwo HyperVGenerationTypes = "V2" )
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) 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 ¶
func NewImagesClientWithBaseURI ¶
func NewImagesClientWithBaseURI(endpoint string) ImagesClient
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) (resp ListOperationResponse, err error)
List ...
func (ImagesClient) ListByResourceGroup ¶
func (c ImagesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (resp ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (ImagesClient) ListByResourceGroupComplete ¶
func (c ImagesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all of the results into a single object
func (ImagesClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c ImagesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ImageOperationPredicate) (resp ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (ImagesClient) ListComplete ¶
func (c ImagesClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (ImagesClient) ListCompleteMatchingPredicate ¶
func (c ImagesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ImageOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied 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 ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response Model *[]Image // contains filtered or unexported fields }
func (ListByResourceGroupOperationResponse) HasMore ¶
func (r ListByResourceGroupOperationResponse) HasMore() bool
func (ListByResourceGroupOperationResponse) LoadMore ¶
func (r ListByResourceGroupOperationResponse) LoadMore(ctx context.Context) (resp ListByResourceGroupOperationResponse, err error)
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []Image
}
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]Image // contains filtered or unexported fields }
func (ListOperationResponse) HasMore ¶
func (r ListOperationResponse) HasMore() bool
func (ListOperationResponse) LoadMore ¶
func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)
type OperatingSystemStateTypes ¶
type OperatingSystemStateTypes string
const ( OperatingSystemStateTypesGeneralized OperatingSystemStateTypes = "Generalized" OperatingSystemStateTypesSpecialized OperatingSystemStateTypes = "Specialized" )
type OperatingSystemTypes ¶
type OperatingSystemTypes string
const ( OperatingSystemTypesLinux OperatingSystemTypes = "Linux" OperatingSystemTypesWindows OperatingSystemTypes = "Windows" )
type StorageAccountTypes ¶
type StorageAccountTypes string
const ( StorageAccountTypesPremiumLRS StorageAccountTypes = "Premium_LRS" StorageAccountTypesPremiumZRS StorageAccountTypes = "Premium_ZRS" StorageAccountTypesStandardLRS StorageAccountTypes = "Standard_LRS" StorageAccountTypesStandardSSDLRS StorageAccountTypes = "StandardSSD_LRS" StorageAccountTypesStandardSSDZRS StorageAccountTypes = "StandardSSD_ZRS" StorageAccountTypesUltraSSDLRS StorageAccountTypes = "UltraSSD_LRS" )
type SubResource ¶
type SubResource struct {
Id *string `json:"id,omitempty"`
}
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
Source Files ¶
- client.go
- constants.go
- id_image.go
- method_createorupdate_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_list_autorest.go
- method_listbyresourcegroup_autorest.go
- method_update_autorest.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