Documentation ¶
Index ¶
- func PossibleValuesForEnabledProtocols() []string
- func PossibleValuesForLeaseDuration() []string
- func PossibleValuesForLeaseShareAction() []string
- func PossibleValuesForLeaseState() []string
- func PossibleValuesForLeaseStatus() []string
- func PossibleValuesForRootSquashType() []string
- func PossibleValuesForShareAccessTier() []string
- func ValidateShareID(input interface{}, key string) (warnings []string, errors []error)
- type AccessPolicy
- type CreateOperationOptions
- type CreateOperationResponse
- type DeleteOperationOptions
- type DeleteOperationResponse
- type DeletedShare
- type EnabledProtocols
- type FileShare
- type FileShareItem
- type FileShareItemOperationPredicate
- type FileShareProperties
- func (o *FileShareProperties) GetAccessTierChangeTimeAsTime() (*time.Time, error)
- func (o *FileShareProperties) GetDeletedTimeAsTime() (*time.Time, error)
- func (o *FileShareProperties) GetLastModifiedTimeAsTime() (*time.Time, error)
- func (o *FileShareProperties) GetSnapshotTimeAsTime() (*time.Time, error)
- func (o *FileShareProperties) SetAccessTierChangeTimeAsTime(input time.Time)
- func (o *FileShareProperties) SetDeletedTimeAsTime(input time.Time)
- func (o *FileShareProperties) SetLastModifiedTimeAsTime(input time.Time)
- func (o *FileShareProperties) SetSnapshotTimeAsTime(input time.Time)
- type FileSharesClient
- func (c FileSharesClient) Create(ctx context.Context, id ShareId, input FileShare, ...) (result CreateOperationResponse, err error)
- func (c FileSharesClient) Delete(ctx context.Context, id ShareId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
- func (c FileSharesClient) Get(ctx context.Context, id ShareId, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c FileSharesClient) Lease(ctx context.Context, id ShareId, input LeaseShareRequest, ...) (result LeaseOperationResponse, err error)
- func (c FileSharesClient) List(ctx context.Context, id commonids.StorageAccountId, ...) (result ListOperationResponse, err error)
- func (c FileSharesClient) ListComplete(ctx context.Context, id commonids.StorageAccountId, ...) (ListCompleteResult, error)
- func (c FileSharesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.StorageAccountId, ...) (result ListCompleteResult, err error)
- func (c FileSharesClient) Restore(ctx context.Context, id ShareId, input DeletedShare) (result RestoreOperationResponse, err error)
- func (c FileSharesClient) Update(ctx context.Context, id ShareId, input FileShare) (result UpdateOperationResponse, err error)
- type GetOperationOptions
- type GetOperationResponse
- type LeaseDuration
- type LeaseOperationOptions
- type LeaseOperationResponse
- type LeaseShareAction
- type LeaseShareRequest
- type LeaseShareResponse
- type LeaseState
- type LeaseStatus
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type RestoreOperationResponse
- type RootSquashType
- type ShareAccessTier
- type ShareId
- type SignedIdentifier
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForEnabledProtocols ¶
func PossibleValuesForEnabledProtocols() []string
func PossibleValuesForLeaseDuration ¶
func PossibleValuesForLeaseDuration() []string
func PossibleValuesForLeaseShareAction ¶
func PossibleValuesForLeaseShareAction() []string
func PossibleValuesForLeaseState ¶
func PossibleValuesForLeaseState() []string
func PossibleValuesForLeaseStatus ¶
func PossibleValuesForLeaseStatus() []string
func PossibleValuesForRootSquashType ¶
func PossibleValuesForRootSquashType() []string
func PossibleValuesForShareAccessTier ¶
func PossibleValuesForShareAccessTier() []string
func ValidateShareID ¶
ValidateShareID checks that 'input' can be parsed as a Share ID
Types ¶
type AccessPolicy ¶
type AccessPolicy struct { ExpiryTime *string `json:"expiryTime,omitempty"` Permission *string `json:"permission,omitempty"` StartTime *string `json:"startTime,omitempty"` }
func (*AccessPolicy) GetExpiryTimeAsTime ¶
func (o *AccessPolicy) GetExpiryTimeAsTime() (*time.Time, error)
func (*AccessPolicy) GetStartTimeAsTime ¶
func (o *AccessPolicy) GetStartTimeAsTime() (*time.Time, error)
func (*AccessPolicy) SetExpiryTimeAsTime ¶
func (o *AccessPolicy) SetExpiryTimeAsTime(input time.Time)
func (*AccessPolicy) SetStartTimeAsTime ¶
func (o *AccessPolicy) SetStartTimeAsTime(input time.Time)
type CreateOperationOptions ¶
type CreateOperationOptions struct {
Expand *string
}
func DefaultCreateOperationOptions ¶
func DefaultCreateOperationOptions() CreateOperationOptions
func (CreateOperationOptions) ToHeaders ¶ added in v0.20231114.1115341
func (o CreateOperationOptions) ToHeaders() *client.Headers
func (CreateOperationOptions) ToOData ¶ added in v0.20231114.1115341
func (o CreateOperationOptions) ToOData() *odata.Query
func (CreateOperationOptions) ToQuery ¶ added in v0.20231114.1115341
func (o CreateOperationOptions) ToQuery() *client.QueryParams
type CreateOperationResponse ¶
type DeleteOperationOptions ¶
func DefaultDeleteOperationOptions ¶
func DefaultDeleteOperationOptions() DeleteOperationOptions
func (DeleteOperationOptions) ToHeaders ¶ added in v0.20231114.1115341
func (o DeleteOperationOptions) ToHeaders() *client.Headers
func (DeleteOperationOptions) ToOData ¶ added in v0.20231114.1115341
func (o DeleteOperationOptions) ToOData() *odata.Query
func (DeleteOperationOptions) ToQuery ¶ added in v0.20231114.1115341
func (o DeleteOperationOptions) ToQuery() *client.QueryParams
type DeleteOperationResponse ¶
type DeletedShare ¶
type DeletedShare struct {}
type EnabledProtocols ¶
type EnabledProtocols string
const ( EnabledProtocolsNFS EnabledProtocols = "NFS" EnabledProtocolsSMB EnabledProtocols = "SMB" )
func (*EnabledProtocols) UnmarshalJSON ¶ added in v0.20231114.1115341
func (s *EnabledProtocols) UnmarshalJSON(bytes []byte) error
type FileShareItem ¶
type FileShareItem struct {}
type FileShareItemOperationPredicate ¶
type FileShareItemOperationPredicate struct {}
func (FileShareItemOperationPredicate) Matches ¶
func (p FileShareItemOperationPredicate) Matches(input FileShareItem) bool
type FileShareProperties ¶
type FileShareProperties struct {}
func (*FileShareProperties) GetAccessTierChangeTimeAsTime ¶
func (o *FileShareProperties) GetAccessTierChangeTimeAsTime() (*time.Time, error)
func (*FileShareProperties) GetDeletedTimeAsTime ¶
func (o *FileShareProperties) GetDeletedTimeAsTime() (*time.Time, error)
func (*FileShareProperties) GetLastModifiedTimeAsTime ¶
func (o *FileShareProperties) GetLastModifiedTimeAsTime() (*time.Time, error)
func (*FileShareProperties) GetSnapshotTimeAsTime ¶
func (o *FileShareProperties) GetSnapshotTimeAsTime() (*time.Time, error)
func (*FileShareProperties) SetAccessTierChangeTimeAsTime ¶
func (o *FileShareProperties) SetAccessTierChangeTimeAsTime(input time.Time)
func (*FileShareProperties) SetDeletedTimeAsTime ¶
func (o *FileShareProperties) SetDeletedTimeAsTime(input time.Time)
func (*FileShareProperties) SetLastModifiedTimeAsTime ¶
func (o *FileShareProperties) SetLastModifiedTimeAsTime(input time.Time)
func (*FileShareProperties) SetSnapshotTimeAsTime ¶
func (o *FileShareProperties) SetSnapshotTimeAsTime(input time.Time)
type FileSharesClient ¶
type FileSharesClient struct {
}func NewFileSharesClientWithBaseURI ¶
func NewFileSharesClientWithBaseURI(sdkApi sdkEnv.Api) (*FileSharesClient, error)
func (FileSharesClient) Create ¶
func (c FileSharesClient) Create(ctx context.Context, id ShareId, input FileShare, options CreateOperationOptions) (result CreateOperationResponse, err error)
Create ...
func (FileSharesClient) Delete ¶
func (c FileSharesClient) Delete(ctx context.Context, id ShareId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
Delete ...
func (FileSharesClient) Get ¶
func (c FileSharesClient) Get(ctx context.Context, id ShareId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (FileSharesClient) Lease ¶
func (c FileSharesClient) Lease(ctx context.Context, id ShareId, input LeaseShareRequest, options LeaseOperationOptions) (result LeaseOperationResponse, err error)
Lease ...
func (FileSharesClient) List ¶
func (c FileSharesClient) List(ctx context.Context, id commonids.StorageAccountId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (FileSharesClient) ListComplete ¶
func (c FileSharesClient) ListComplete(ctx context.Context, id commonids.StorageAccountId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (FileSharesClient) ListCompleteMatchingPredicate ¶
func (c FileSharesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.StorageAccountId, options ListOperationOptions, predicate FileShareItemOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (FileSharesClient) Restore ¶
func (c FileSharesClient) Restore(ctx context.Context, id ShareId, input DeletedShare) (result RestoreOperationResponse, err error)
Restore ...
func (FileSharesClient) Update ¶
func (c FileSharesClient) Update(ctx context.Context, id ShareId, input FileShare) (result UpdateOperationResponse, err error)
Update ...
type GetOperationOptions ¶
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
func (GetOperationOptions) ToHeaders ¶ added in v0.20231114.1115341
func (o GetOperationOptions) ToHeaders() *client.Headers
func (GetOperationOptions) ToOData ¶ added in v0.20231114.1115341
func (o GetOperationOptions) ToOData() *odata.Query
func (GetOperationOptions) ToQuery ¶ added in v0.20231114.1115341
func (o GetOperationOptions) ToQuery() *client.QueryParams
type GetOperationResponse ¶
type LeaseDuration ¶
type LeaseDuration string
const ( LeaseDurationFixed LeaseDuration = "Fixed" LeaseDurationInfinite LeaseDuration = "Infinite" )
func (*LeaseDuration) UnmarshalJSON ¶ added in v0.20231114.1115341
func (s *LeaseDuration) UnmarshalJSON(bytes []byte) error
type LeaseOperationOptions ¶
type LeaseOperationOptions struct {
XMsSnapshot *string
}
func DefaultLeaseOperationOptions ¶
func DefaultLeaseOperationOptions() LeaseOperationOptions
func (LeaseOperationOptions) ToHeaders ¶ added in v0.20231114.1115341
func (o LeaseOperationOptions) ToHeaders() *client.Headers
func (LeaseOperationOptions) ToOData ¶ added in v0.20231114.1115341
func (o LeaseOperationOptions) ToOData() *odata.Query
func (LeaseOperationOptions) ToQuery ¶ added in v0.20231114.1115341
func (o LeaseOperationOptions) ToQuery() *client.QueryParams
type LeaseOperationResponse ¶
type LeaseOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *LeaseShareResponse }
type LeaseShareAction ¶
type LeaseShareAction string
const ()
func (*LeaseShareAction) UnmarshalJSON ¶ added in v0.20231114.1115341
func (s *LeaseShareAction) UnmarshalJSON(bytes []byte) error
type LeaseShareRequest ¶
type LeaseShareRequest struct {}
type LeaseShareResponse ¶
type LeaseShareResponse struct {}
type LeaseState ¶
type LeaseState string
const ( LeaseStateAvailable LeaseState = "Available" LeaseStateBreaking LeaseState = "Breaking" LeaseStateBroken LeaseState = "Broken" LeaseStateExpired LeaseState = "Expired" LeaseStateLeased LeaseState = "Leased" )
func (*LeaseState) UnmarshalJSON ¶ added in v0.20231114.1115341
func (s *LeaseState) UnmarshalJSON(bytes []byte) error
type LeaseStatus ¶
type LeaseStatus string
const ( LeaseStatusLocked LeaseStatus = "Locked" LeaseStatusUnlocked LeaseStatus = "Unlocked" )
func (*LeaseStatus) UnmarshalJSON ¶ added in v0.20231114.1115341
func (s *LeaseStatus) UnmarshalJSON(bytes []byte) error
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []FileShareItem
}
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶ added in v0.20231114.1115341
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶ added in v0.20231114.1115341
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶ added in v0.20231114.1115341
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]FileShareItem }
type RootSquashType ¶
type RootSquashType string
const ( RootSquashTypeAllSquash RootSquashType = "AllSquash" RootSquashTypeNoRootSquash RootSquashType = "NoRootSquash" RootSquashTypeRootSquash RootSquashType = "RootSquash" )
func (*RootSquashType) UnmarshalJSON ¶ added in v0.20231114.1115341
func (s *RootSquashType) UnmarshalJSON(bytes []byte) error
type ShareAccessTier ¶
type ShareAccessTier string
const ()
func (*ShareAccessTier) UnmarshalJSON ¶ added in v0.20231114.1115341
func (s *ShareAccessTier) UnmarshalJSON(bytes []byte) error
type ShareId ¶
type ShareId struct {}
ShareId is a struct representing the Resource ID for a Share
func NewShareID ¶
func NewShareID(subscriptionId string, resourceGroupName string, storageAccountName string, shareName string) ShareId
NewShareID returns a new ShareId struct
func ParseShareID ¶
ParseShareID parses 'input' into a ShareId
func ParseShareIDInsensitively ¶
ParseShareIDInsensitively parses 'input' case-insensitively into a ShareId note: this method should only be used for API response data and not user input
func (*ShareId) FromParseResult ¶ added in v0.20231127.1171502
func (id *ShareId) FromParseResult(input resourceids.ParseResult) error
func (ShareId) Segments ¶
func (id ShareId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Share ID
type SignedIdentifier ¶
type SignedIdentifier struct { AccessPolicy *AccessPolicy `json:"accessPolicy,omitempty"` Id *string `json:"id,omitempty"` }
Source Files ¶
- client.go
- constants.go
- id_share.go
- method_create.go
- method_delete.go
- method_get.go
- method_lease.go
- method_list.go
- method_restore.go
- method_update.go
- model_accesspolicy.go
- model_deletedshare.go
- model_fileshare.go
- model_fileshareitem.go
- model_fileshareproperties.go
- model_leasesharerequest.go
- model_leaseshareresponse.go
- model_signedidentifier.go
- predicates.go
- version.go