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) (result 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, ...) (result 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 DeleteOperationResponse ¶
type DetachDiskProperties ¶
type DetachDiskProperties struct {
LeasedByLabVMId *string `json:"leasedByLabVmId,omitempty"`
}
type DetachOperationResponse ¶
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) FromParseResult ¶
func (id *DiskId) FromParseResult(input resourceids.ParseResult) error
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 ¶
type DisksClient struct {
Client *resourcemanager.Client
}
func NewDisksClientWithBaseURI ¶
func NewDisksClientWithBaseURI(sdkApi sdkEnv.Api) (*DisksClient, error)
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) (result ListOperationResponse, err error)
List ...
func (DisksClient) ListComplete ¶
func (c DisksClient) ListComplete(ctx context.Context, id UserId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (DisksClient) ListCompleteMatchingPredicate ¶
func (c DisksClient) ListCompleteMatchingPredicate(ctx context.Context, id UserId, options ListOperationOptions, predicate DiskOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies 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
func (GetOperationOptions) ToHeaders ¶
func (o GetOperationOptions) ToHeaders() *client.Headers
func (GetOperationOptions) ToOData ¶
func (o GetOperationOptions) ToOData() *odata.Query
func (GetOperationOptions) ToQuery ¶
func (o GetOperationOptions) ToQuery() *client.QueryParams
type GetOperationResponse ¶
type ListCompleteResult ¶
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type StorageType ¶
type StorageType string
const ( StorageTypePremium StorageType = "Premium" StorageTypeStandard StorageType = "Standard" StorageTypeStandardSSD StorageType = "StandardSSD" )
func (*StorageType) UnmarshalJSON ¶
func (s *StorageType) UnmarshalJSON(bytes []byte) error
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) FromParseResult ¶
func (id *UserId) FromParseResult(input resourceids.ParseResult) error
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.go
- method_createorupdate.go
- method_delete.go
- method_detach.go
- method_get.go
- method_list.go
- method_update.go
- model_attachdiskproperties.go
- model_detachdiskproperties.go
- model_disk.go
- model_diskproperties.go
- model_updateresource.go
- predicates.go
- version.go