Documentation ¶
Index ¶
- func PossibleValuesForStorageType() []string
- func ValidateDiskID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateUserID(input interface{}, key string) (warnings []string, errors []error)
- type AttachDiskProperties
- type AttachOperationResponse
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type DetachDiskProperties
- type DetachOperationResponse
- type Disk
- type DiskId
- type DiskOperationPredicate
- type DiskProperties
- type DisksClient
- func (c DisksClient) Attach(ctx context.Context, id DiskId, input AttachDiskProperties) (result AttachOperationResponse, err error)
- func (c DisksClient) AttachThenPoll(ctx context.Context, id DiskId, input AttachDiskProperties) error
- func (c DisksClient) CreateOrUpdate(ctx context.Context, id DiskId, input Disk) (result CreateOrUpdateOperationResponse, err error)
- func (c DisksClient) CreateOrUpdateThenPoll(ctx context.Context, id DiskId, input Disk) error
- func (c DisksClient) Delete(ctx context.Context, id DiskId) (result DeleteOperationResponse, err error)
- func (c DisksClient) DeleteThenPoll(ctx context.Context, id DiskId) error
- func (c DisksClient) Detach(ctx context.Context, id DiskId, input DetachDiskProperties) (result DetachOperationResponse, err error)
- func (c DisksClient) DetachThenPoll(ctx context.Context, id DiskId, input DetachDiskProperties) error
- func (c DisksClient) Get(ctx context.Context, id DiskId, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c DisksClient) List(ctx context.Context, id UserId, options ListOperationOptions) (resp ListOperationResponse, err error)
- func (c DisksClient) ListComplete(ctx context.Context, id UserId, options ListOperationOptions) (ListCompleteResult, error)
- func (c DisksClient) ListCompleteMatchingPredicate(ctx context.Context, id UserId, options ListOperationOptions, ...) (resp ListCompleteResult, err error)
- func (c DisksClient) Update(ctx context.Context, id DiskId, input UpdateResource) (result UpdateOperationResponse, err error)
- type GetOperationOptions
- type GetOperationResponse
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type StorageType
- type UpdateOperationResponse
- type UpdateResource
- type UserId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForStorageType ¶
func PossibleValuesForStorageType() []string
func ValidateDiskID ¶
ValidateDiskID checks that 'input' can be parsed as a Disk ID
func ValidateUserID ¶
ValidateUserID checks that 'input' can be parsed as a User ID
Types ¶
type AttachDiskProperties ¶
type AttachDiskProperties struct {
LeasedByLabVMId *string `json:"leasedByLabVmId,omitempty"`
}
type AttachOperationResponse ¶
type AttachOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type DeleteOperationResponse ¶
type DeleteOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type DetachDiskProperties ¶
type DetachDiskProperties struct {
LeasedByLabVMId *string `json:"leasedByLabVmId,omitempty"`
}
type DetachOperationResponse ¶
type DetachOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type DiskId ¶
type DiskId struct { SubscriptionId string ResourceGroupName string LabName string UserName string DiskName string }
DiskId is a struct representing the Resource ID for a Disk
func NewDiskID ¶
func NewDiskID(subscriptionId string, resourceGroupName string, labName string, userName string, diskName string) DiskId
NewDiskID returns a new DiskId struct
func ParseDiskID ¶
ParseDiskID parses 'input' into a DiskId
func ParseDiskIDInsensitively ¶
ParseDiskIDInsensitively parses 'input' case-insensitively into a DiskId note: this method should only be used for API response data and not user input
func (DiskId) Segments ¶
func (id DiskId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Disk ID
type DiskOperationPredicate ¶
func (DiskOperationPredicate) Matches ¶
func (p DiskOperationPredicate) Matches(input Disk) bool
type DiskProperties ¶
type DiskProperties struct { CreatedDate *string `json:"createdDate,omitempty"` DiskBlobName *string `json:"diskBlobName,omitempty"` DiskSizeGiB *int64 `json:"diskSizeGiB,omitempty"` DiskType *StorageType `json:"diskType,omitempty"` DiskUri *string `json:"diskUri,omitempty"` HostCaching *string `json:"hostCaching,omitempty"` LeasedByLabVMId *string `json:"leasedByLabVmId,omitempty"` ManagedDiskId *string `json:"managedDiskId,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` StorageAccountId *string `json:"storageAccountId,omitempty"` UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"` }
func (*DiskProperties) GetCreatedDateAsTime ¶
func (o *DiskProperties) GetCreatedDateAsTime() (*time.Time, error)
func (*DiskProperties) SetCreatedDateAsTime ¶
func (o *DiskProperties) SetCreatedDateAsTime(input time.Time)
type DisksClient ¶
func NewDisksClientWithBaseURI ¶
func NewDisksClientWithBaseURI(endpoint string) DisksClient
func (DisksClient) Attach ¶
func (c DisksClient) Attach(ctx context.Context, id DiskId, input AttachDiskProperties) (result AttachOperationResponse, err error)
Attach ...
func (DisksClient) AttachThenPoll ¶
func (c DisksClient) AttachThenPoll(ctx context.Context, id DiskId, input AttachDiskProperties) error
AttachThenPoll performs Attach then polls until it's completed
func (DisksClient) CreateOrUpdate ¶
func (c DisksClient) CreateOrUpdate(ctx context.Context, id DiskId, input Disk) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (DisksClient) CreateOrUpdateThenPoll ¶
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (DisksClient) Delete ¶
func (c DisksClient) Delete(ctx context.Context, id DiskId) (result DeleteOperationResponse, err error)
Delete ...
func (DisksClient) DeleteThenPoll ¶
func (c DisksClient) DeleteThenPoll(ctx context.Context, id DiskId) error
DeleteThenPoll performs Delete then polls until it's completed
func (DisksClient) Detach ¶
func (c DisksClient) Detach(ctx context.Context, id DiskId, input DetachDiskProperties) (result DetachOperationResponse, err error)
Detach ...
func (DisksClient) DetachThenPoll ¶
func (c DisksClient) DetachThenPoll(ctx context.Context, id DiskId, input DetachDiskProperties) error
DetachThenPoll performs Detach then polls until it's completed
func (DisksClient) Get ¶
func (c DisksClient) Get(ctx context.Context, id DiskId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (DisksClient) List ¶
func (c DisksClient) List(ctx context.Context, id UserId, options ListOperationOptions) (resp ListOperationResponse, err error)
List ...
func (DisksClient) ListComplete ¶
func (c DisksClient) ListComplete(ctx context.Context, id UserId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (DisksClient) ListCompleteMatchingPredicate ¶
func (c DisksClient) ListCompleteMatchingPredicate(ctx context.Context, id UserId, options ListOperationOptions, predicate DiskOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (DisksClient) Update ¶
func (c DisksClient) Update(ctx context.Context, id DiskId, input UpdateResource) (result UpdateOperationResponse, err error)
Update ...
type GetOperationOptions ¶
type GetOperationOptions struct {
Expand *string
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
type GetOperationResponse ¶
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []Disk
}
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]Disk // 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 StorageType ¶
type StorageType string
const ( StorageTypePremium StorageType = "Premium" StorageTypeStandard StorageType = "Standard" StorageTypeStandardSSD StorageType = "StandardSSD" )
type UpdateOperationResponse ¶
type UpdateResource ¶
type UserId ¶
type UserId struct { SubscriptionId string ResourceGroupName string LabName string UserName string }
UserId is a struct representing the Resource ID for a User
func NewUserID ¶
func NewUserID(subscriptionId string, resourceGroupName string, labName string, userName string) UserId
NewUserID returns a new UserId struct
func ParseUserID ¶
ParseUserID parses 'input' into a UserId
func ParseUserIDInsensitively ¶
ParseUserIDInsensitively parses 'input' case-insensitively into a UserId note: this method should only be used for API response data and not user input
func (UserId) Segments ¶
func (id UserId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this User ID
Source Files ¶
- client.go
- constants.go
- id_disk.go
- id_user.go
- method_attach_autorest.go
- method_createorupdate_autorest.go
- method_delete_autorest.go
- method_detach_autorest.go
- method_get_autorest.go
- method_list_autorest.go
- method_update_autorest.go
- model_attachdiskproperties.go
- model_detachdiskproperties.go
- model_disk.go
- model_diskproperties.go
- model_updateresource.go
- predicates.go
- version.go