Documentation ¶
Index ¶
- func PossibleValuesForProvisioningState() []string
- func ValidateDataStoreID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOperationResponse
- type DataStoreId
- type DataStoresClient
- func (c DataStoresClient) Create(ctx context.Context, id DataStoreId, input Datastore) (result CreateOperationResponse, err error)
- func (c DataStoresClient) CreateThenPoll(ctx context.Context, id DataStoreId, input Datastore) error
- func (c DataStoresClient) Delete(ctx context.Context, id DataStoreId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
- func (c DataStoresClient) DeleteThenPoll(ctx context.Context, id DataStoreId, options DeleteOperationOptions) error
- func (c DataStoresClient) Get(ctx context.Context, id DataStoreId) (result GetOperationResponse, err error)
- func (c DataStoresClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
- func (c DataStoresClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
- func (c DataStoresClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
- func (c DataStoresClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListByResourceGroupCompleteResult, err error)
- func (c DataStoresClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
- func (c DataStoresClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListCompleteResult, err error)
- func (c DataStoresClient) Update(ctx context.Context, id DataStoreId, input ResourcePatch) (result UpdateOperationResponse, err error)
- type Datastore
- type DatastoreOperationPredicate
- type DatastoreProperties
- type DeleteOperationOptions
- type DeleteOperationResponse
- type ExtendedLocation
- type GetOperationResponse
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type ProvisioningState
- type ResourcePatch
- type ResourceStatus
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func ValidateDataStoreID ¶
ValidateDataStoreID checks that 'input' can be parsed as a Data Store ID
Types ¶
type CreateOperationResponse ¶
type DataStoreId ¶
DataStoreId is a struct representing the Resource ID for a Data Store
func NewDataStoreID ¶
func NewDataStoreID(subscriptionId string, resourceGroupName string, dataStoreName string) DataStoreId
NewDataStoreID returns a new DataStoreId struct
func ParseDataStoreID ¶
func ParseDataStoreID(input string) (*DataStoreId, error)
ParseDataStoreID parses 'input' into a DataStoreId
func ParseDataStoreIDInsensitively ¶
func ParseDataStoreIDInsensitively(input string) (*DataStoreId, error)
ParseDataStoreIDInsensitively parses 'input' case-insensitively into a DataStoreId note: this method should only be used for API response data and not user input
func (*DataStoreId) FromParseResult ¶ added in v0.20231127.1171502
func (id *DataStoreId) FromParseResult(input resourceids.ParseResult) error
func (DataStoreId) Segments ¶
func (id DataStoreId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Data Store ID
func (DataStoreId) String ¶
func (id DataStoreId) String() string
String returns a human-readable description of this Data Store ID
type DataStoresClient ¶
type DataStoresClient struct {
Client *resourcemanager.Client
}
func NewDataStoresClientWithBaseURI ¶
func NewDataStoresClientWithBaseURI(sdkApi sdkEnv.Api) (*DataStoresClient, error)
func (DataStoresClient) Create ¶
func (c DataStoresClient) Create(ctx context.Context, id DataStoreId, input Datastore) (result CreateOperationResponse, err error)
Create ...
func (DataStoresClient) CreateThenPoll ¶
func (c DataStoresClient) CreateThenPoll(ctx context.Context, id DataStoreId, input Datastore) error
CreateThenPoll performs Create then polls until it's completed
func (DataStoresClient) Delete ¶
func (c DataStoresClient) Delete(ctx context.Context, id DataStoreId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
Delete ...
func (DataStoresClient) DeleteThenPoll ¶
func (c DataStoresClient) DeleteThenPoll(ctx context.Context, id DataStoreId, options DeleteOperationOptions) error
DeleteThenPoll performs Delete then polls until it's completed
func (DataStoresClient) Get ¶
func (c DataStoresClient) Get(ctx context.Context, id DataStoreId) (result GetOperationResponse, err error)
Get ...
func (DataStoresClient) List ¶
func (c DataStoresClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
List ...
func (DataStoresClient) ListByResourceGroup ¶
func (c DataStoresClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (DataStoresClient) ListByResourceGroupComplete ¶
func (c DataStoresClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all the results into a single object
func (DataStoresClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c DataStoresClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate DatastoreOperationPredicate) (result ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (DataStoresClient) ListComplete ¶
func (c DataStoresClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (DataStoresClient) ListCompleteMatchingPredicate ¶
func (c DataStoresClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate DatastoreOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (DataStoresClient) Update ¶
func (c DataStoresClient) Update(ctx context.Context, id DataStoreId, input ResourcePatch) (result UpdateOperationResponse, err error)
Update ...
type Datastore ¶
type Datastore struct { ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` Id *string `json:"id,omitempty"` Kind *string `json:"kind,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties DatastoreProperties `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type DatastoreOperationPredicate ¶
type DatastoreOperationPredicate struct { Id *string Kind *string Location *string Name *string Type *string }
func (DatastoreOperationPredicate) Matches ¶
func (p DatastoreOperationPredicate) Matches(input Datastore) bool
type DatastoreProperties ¶
type DatastoreProperties struct { CapacityGB *int64 `json:"capacityGB,omitempty"` CustomResourceName *string `json:"customResourceName,omitempty"` FreeSpaceGB *int64 `json:"freeSpaceGB,omitempty"` InventoryItemId *string `json:"inventoryItemId,omitempty"` MoName *string `json:"moName,omitempty"` MoRefId *string `json:"moRefId,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Statuses *[]ResourceStatus `json:"statuses,omitempty"` Uuid *string `json:"uuid,omitempty"` VCenterId *string `json:"vCenterId,omitempty"` }
type DeleteOperationOptions ¶
type DeleteOperationOptions struct {
Force *bool
}
func DefaultDeleteOperationOptions ¶
func DefaultDeleteOperationOptions() DeleteOperationOptions
func (DeleteOperationOptions) ToHeaders ¶
func (o DeleteOperationOptions) ToHeaders() *client.Headers
func (DeleteOperationOptions) ToOData ¶
func (o DeleteOperationOptions) ToOData() *odata.Query
func (DeleteOperationOptions) ToQuery ¶
func (o DeleteOperationOptions) ToQuery() *client.QueryParams
type DeleteOperationResponse ¶
type ExtendedLocation ¶
type GetOperationResponse ¶
type ListByResourceGroupCompleteResult ¶
type ListByResourceGroupCompleteResult struct {
Items []Datastore
}
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []Datastore
}
type ListOperationResponse ¶
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateAccepted ProvisioningState = "Accepted" ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreated ProvisioningState = "Created" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateProvisioning ProvisioningState = "Provisioning" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func (*ProvisioningState) UnmarshalJSON ¶
func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error
type ResourcePatch ¶
type ResourceStatus ¶
type ResourceStatus struct { LastUpdatedAt *string `json:"lastUpdatedAt,omitempty"` Message *string `json:"message,omitempty"` Reason *string `json:"reason,omitempty"` Severity *string `json:"severity,omitempty"` Status *string `json:"status,omitempty"` Type *string `json:"type,omitempty"` }
func (*ResourceStatus) GetLastUpdatedAtAsTime ¶
func (o *ResourceStatus) GetLastUpdatedAtAsTime() (*time.Time, error)
func (*ResourceStatus) SetLastUpdatedAtAsTime ¶
func (o *ResourceStatus) SetLastUpdatedAtAsTime(input time.Time)