Documentation ¶
Index ¶
- func PossibleValuesForDiskFileFormat() []string
- func PossibleValuesForExtendedLocationTypes() []string
- func PossibleValuesForHyperVGeneration() []string
- func PossibleValuesForProvisioningStateEnum() []string
- func PossibleValuesForStatus() []string
- func ValidateVirtualHardDiskID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type DiskFileFormat
- type ExtendedLocation
- type ExtendedLocationTypes
- type GetOperationResponse
- type HyperVGeneration
- type ListAllCompleteResult
- type ListAllCustomPager
- type ListAllOperationResponse
- type ListCompleteResult
- type ListCustomPager
- type ListOperationResponse
- type ProvisioningStateEnum
- type Status
- type UpdateOperationResponse
- type VirtualHardDiskId
- type VirtualHardDiskProperties
- type VirtualHardDiskStatus
- type VirtualHardDiskStatusProvisioningStatus
- type VirtualHardDisks
- type VirtualHardDisksClient
- func (c VirtualHardDisksClient) CreateOrUpdate(ctx context.Context, id VirtualHardDiskId, input VirtualHardDisks) (result CreateOrUpdateOperationResponse, err error)
- func (c VirtualHardDisksClient) CreateOrUpdateThenPoll(ctx context.Context, id VirtualHardDiskId, input VirtualHardDisks) error
- func (c VirtualHardDisksClient) Delete(ctx context.Context, id VirtualHardDiskId) (result DeleteOperationResponse, err error)
- func (c VirtualHardDisksClient) DeleteThenPoll(ctx context.Context, id VirtualHardDiskId) error
- func (c VirtualHardDisksClient) Get(ctx context.Context, id VirtualHardDiskId) (result GetOperationResponse, err error)
- func (c VirtualHardDisksClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error)
- func (c VirtualHardDisksClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error)
- func (c VirtualHardDisksClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error)
- func (c VirtualHardDisksClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListAllCompleteResult, err error)
- func (c VirtualHardDisksClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error)
- func (c VirtualHardDisksClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListCompleteResult, err error)
- func (c VirtualHardDisksClient) Update(ctx context.Context, id VirtualHardDiskId, input VirtualHardDisksUpdateRequest) (result UpdateOperationResponse, err error)
- func (c VirtualHardDisksClient) UpdateThenPoll(ctx context.Context, id VirtualHardDiskId, input VirtualHardDisksUpdateRequest) error
- type VirtualHardDisksOperationPredicate
- type VirtualHardDisksUpdateRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForDiskFileFormat ¶
func PossibleValuesForDiskFileFormat() []string
func PossibleValuesForExtendedLocationTypes ¶
func PossibleValuesForExtendedLocationTypes() []string
func PossibleValuesForHyperVGeneration ¶
func PossibleValuesForHyperVGeneration() []string
func PossibleValuesForProvisioningStateEnum ¶
func PossibleValuesForProvisioningStateEnum() []string
func PossibleValuesForStatus ¶
func PossibleValuesForStatus() []string
func ValidateVirtualHardDiskID ¶
ValidateVirtualHardDiskID checks that 'input' can be parsed as a Virtual Hard Disk ID
Types ¶
type DeleteOperationResponse ¶
type DiskFileFormat ¶
type DiskFileFormat string
const ( DiskFileFormatVhd DiskFileFormat = "vhd" DiskFileFormatVhdx DiskFileFormat = "vhdx" )
func (*DiskFileFormat) UnmarshalJSON ¶
func (s *DiskFileFormat) UnmarshalJSON(bytes []byte) error
type ExtendedLocation ¶
type ExtendedLocation struct { Name *string `json:"name,omitempty"` Type *ExtendedLocationTypes `json:"type,omitempty"` }
type ExtendedLocationTypes ¶
type ExtendedLocationTypes string
const (
ExtendedLocationTypesCustomLocation ExtendedLocationTypes = "CustomLocation"
)
func (*ExtendedLocationTypes) UnmarshalJSON ¶
func (s *ExtendedLocationTypes) UnmarshalJSON(bytes []byte) error
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *VirtualHardDisks }
type HyperVGeneration ¶
type HyperVGeneration string
const ( HyperVGenerationVOne HyperVGeneration = "V1" HyperVGenerationVTwo HyperVGeneration = "V2" )
func (*HyperVGeneration) UnmarshalJSON ¶
func (s *HyperVGeneration) UnmarshalJSON(bytes []byte) error
type ListAllCompleteResult ¶
type ListAllCompleteResult struct { LatestHttpResponse *http.Response Items []VirtualHardDisks }
type ListAllCustomPager ¶ added in v0.20240628.1153531
func (*ListAllCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListAllCustomPager) NextPageLink() *odata.Link
type ListAllOperationResponse ¶
type ListAllOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]VirtualHardDisks }
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []VirtualHardDisks }
type ListCustomPager ¶ added in v0.20240628.1153531
func (*ListCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]VirtualHardDisks }
type ProvisioningStateEnum ¶
type ProvisioningStateEnum string
const ( ProvisioningStateEnumAccepted ProvisioningStateEnum = "Accepted" ProvisioningStateEnumCanceled ProvisioningStateEnum = "Canceled" ProvisioningStateEnumDeleting ProvisioningStateEnum = "Deleting" ProvisioningStateEnumFailed ProvisioningStateEnum = "Failed" ProvisioningStateEnumInProgress ProvisioningStateEnum = "InProgress" ProvisioningStateEnumSucceeded ProvisioningStateEnum = "Succeeded" )
func (*ProvisioningStateEnum) UnmarshalJSON ¶
func (s *ProvisioningStateEnum) UnmarshalJSON(bytes []byte) error
type UpdateOperationResponse ¶
type VirtualHardDiskId ¶
type VirtualHardDiskId struct { SubscriptionId string ResourceGroupName string VirtualHardDiskName string }
VirtualHardDiskId is a struct representing the Resource ID for a Virtual Hard Disk
func NewVirtualHardDiskID ¶
func NewVirtualHardDiskID(subscriptionId string, resourceGroupName string, virtualHardDiskName string) VirtualHardDiskId
NewVirtualHardDiskID returns a new VirtualHardDiskId struct
func ParseVirtualHardDiskID ¶
func ParseVirtualHardDiskID(input string) (*VirtualHardDiskId, error)
ParseVirtualHardDiskID parses 'input' into a VirtualHardDiskId
func ParseVirtualHardDiskIDInsensitively ¶
func ParseVirtualHardDiskIDInsensitively(input string) (*VirtualHardDiskId, error)
ParseVirtualHardDiskIDInsensitively parses 'input' case-insensitively into a VirtualHardDiskId note: this method should only be used for API response data and not user input
func (*VirtualHardDiskId) FromParseResult ¶
func (id *VirtualHardDiskId) FromParseResult(input resourceids.ParseResult) error
func (VirtualHardDiskId) ID ¶
func (id VirtualHardDiskId) ID() string
ID returns the formatted Virtual Hard Disk ID
func (VirtualHardDiskId) Segments ¶
func (id VirtualHardDiskId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Virtual Hard Disk ID
func (VirtualHardDiskId) String ¶
func (id VirtualHardDiskId) String() string
String returns a human-readable description of this Virtual Hard Disk ID
type VirtualHardDiskProperties ¶
type VirtualHardDiskProperties struct { BlockSizeBytes *int64 `json:"blockSizeBytes,omitempty"` ContainerId *string `json:"containerId,omitempty"` DiskFileFormat *DiskFileFormat `json:"diskFileFormat,omitempty"` DiskSizeGB *int64 `json:"diskSizeGB,omitempty"` Dynamic *bool `json:"dynamic,omitempty"` HyperVGeneration *HyperVGeneration `json:"hyperVGeneration,omitempty"` LogicalSectorBytes *int64 `json:"logicalSectorBytes,omitempty"` PhysicalSectorBytes *int64 `json:"physicalSectorBytes,omitempty"` ProvisioningState *ProvisioningStateEnum `json:"provisioningState,omitempty"` Status *VirtualHardDiskStatus `json:"status,omitempty"` }
type VirtualHardDiskStatus ¶
type VirtualHardDiskStatus struct { ErrorCode *string `json:"errorCode,omitempty"` ErrorMessage *string `json:"errorMessage,omitempty"` ProvisioningStatus *VirtualHardDiskStatusProvisioningStatus `json:"provisioningStatus,omitempty"` }
type VirtualHardDisks ¶
type VirtualHardDisks struct { ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` Id *string `json:"id,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties *VirtualHardDiskProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type VirtualHardDisksClient ¶
type VirtualHardDisksClient struct {
Client *resourcemanager.Client
}
func NewVirtualHardDisksClientWithBaseURI ¶
func NewVirtualHardDisksClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualHardDisksClient, error)
func (VirtualHardDisksClient) CreateOrUpdate ¶
func (c VirtualHardDisksClient) CreateOrUpdate(ctx context.Context, id VirtualHardDiskId, input VirtualHardDisks) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (VirtualHardDisksClient) CreateOrUpdateThenPoll ¶
func (c VirtualHardDisksClient) CreateOrUpdateThenPoll(ctx context.Context, id VirtualHardDiskId, input VirtualHardDisks) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (VirtualHardDisksClient) Delete ¶
func (c VirtualHardDisksClient) Delete(ctx context.Context, id VirtualHardDiskId) (result DeleteOperationResponse, err error)
Delete ...
func (VirtualHardDisksClient) DeleteThenPoll ¶
func (c VirtualHardDisksClient) DeleteThenPoll(ctx context.Context, id VirtualHardDiskId) error
DeleteThenPoll performs Delete then polls until it's completed
func (VirtualHardDisksClient) Get ¶
func (c VirtualHardDisksClient) Get(ctx context.Context, id VirtualHardDiskId) (result GetOperationResponse, err error)
Get ...
func (VirtualHardDisksClient) List ¶
func (c VirtualHardDisksClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error)
List ...
func (VirtualHardDisksClient) ListAll ¶
func (c VirtualHardDisksClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error)
ListAll ...
func (VirtualHardDisksClient) ListAllComplete ¶
func (c VirtualHardDisksClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error)
ListAllComplete retrieves all the results into a single object
func (VirtualHardDisksClient) ListAllCompleteMatchingPredicate ¶
func (c VirtualHardDisksClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate VirtualHardDisksOperationPredicate) (result ListAllCompleteResult, err error)
ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (VirtualHardDisksClient) ListComplete ¶
func (c VirtualHardDisksClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (VirtualHardDisksClient) ListCompleteMatchingPredicate ¶
func (c VirtualHardDisksClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate VirtualHardDisksOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (VirtualHardDisksClient) Update ¶
func (c VirtualHardDisksClient) Update(ctx context.Context, id VirtualHardDiskId, input VirtualHardDisksUpdateRequest) (result UpdateOperationResponse, err error)
Update ...
func (VirtualHardDisksClient) UpdateThenPoll ¶
func (c VirtualHardDisksClient) UpdateThenPoll(ctx context.Context, id VirtualHardDiskId, input VirtualHardDisksUpdateRequest) error
UpdateThenPoll performs Update then polls until it's completed
type VirtualHardDisksOperationPredicate ¶
type VirtualHardDisksOperationPredicate struct { Id *string Location *string Name *string Type *string }
func (VirtualHardDisksOperationPredicate) Matches ¶
func (p VirtualHardDisksOperationPredicate) Matches(input VirtualHardDisks) bool
Source Files ¶
- client.go
- constants.go
- id_virtualharddisk.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_list.go
- method_listall.go
- method_update.go
- model_extendedlocation.go
- model_virtualharddiskproperties.go
- model_virtualharddisks.go
- model_virtualharddiskstatus.go
- model_virtualharddiskstatusprovisioningstatus.go
- model_virtualharddisksupdaterequest.go
- predicates.go
- version.go