Documentation ¶
Index ¶
- func PossibleValuesForCapacityProvisioningState() []string
- func PossibleValuesForCapacitySkuTier() []string
- func PossibleValuesForMode() []string
- func PossibleValuesForState() []string
- func ValidateCapacityID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateLocationID(input interface{}, key string) (warnings []string, errors []error)
- type CapacitiesClient
- func (c CapacitiesClient) CheckNameAvailability(ctx context.Context, id LocationId, ...) (result CheckNameAvailabilityOperationResponse, err error)
- func (c CapacitiesClient) Create(ctx context.Context, id CapacityId, input DedicatedCapacity) (result CreateOperationResponse, err error)
- func (c CapacitiesClient) CreateThenPoll(ctx context.Context, id CapacityId, input DedicatedCapacity) error
- func (c CapacitiesClient) Delete(ctx context.Context, id CapacityId) (result DeleteOperationResponse, err error)
- func (c CapacitiesClient) DeleteThenPoll(ctx context.Context, id CapacityId) error
- func (c CapacitiesClient) GetDetails(ctx context.Context, id CapacityId) (result GetDetailsOperationResponse, err error)
- func (c CapacitiesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
- func (c CapacitiesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
- func (c CapacitiesClient) ListSkusForCapacity(ctx context.Context, id CapacityId) (result ListSkusForCapacityOperationResponse, err error)
- func (c CapacitiesClient) Resume(ctx context.Context, id CapacityId) (result ResumeOperationResponse, err error)
- func (c CapacitiesClient) ResumeThenPoll(ctx context.Context, id CapacityId) error
- func (c CapacitiesClient) Suspend(ctx context.Context, id CapacityId) (result SuspendOperationResponse, err error)
- func (c CapacitiesClient) SuspendThenPoll(ctx context.Context, id CapacityId) error
- func (c CapacitiesClient) Update(ctx context.Context, id CapacityId, input DedicatedCapacityUpdateParameters) (result UpdateOperationResponse, err error)
- func (c CapacitiesClient) UpdateThenPoll(ctx context.Context, id CapacityId, input DedicatedCapacityUpdateParameters) error
- type CapacityId
- type CapacityProvisioningState
- type CapacitySku
- type CapacitySkuTier
- type CheckCapacityNameAvailabilityParameters
- type CheckCapacityNameAvailabilityResult
- type CheckNameAvailabilityOperationResponse
- type CreateOperationResponse
- type DedicatedCapacities
- type DedicatedCapacity
- type DedicatedCapacityAdministrators
- type DedicatedCapacityMutableProperties
- type DedicatedCapacityProperties
- type DedicatedCapacityUpdateParameters
- type DeleteOperationResponse
- type GetDetailsOperationResponse
- type ListByResourceGroupOperationResponse
- type ListOperationResponse
- type ListSkusForCapacityOperationResponse
- type LocationId
- type Mode
- type ResumeOperationResponse
- type SkuDetailsForExistingResource
- type SkuEnumerationForExistingResourceResult
- type State
- type SuspendOperationResponse
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCapacityProvisioningState ¶
func PossibleValuesForCapacityProvisioningState() []string
func PossibleValuesForCapacitySkuTier ¶
func PossibleValuesForCapacitySkuTier() []string
func PossibleValuesForMode ¶
func PossibleValuesForMode() []string
func PossibleValuesForState ¶
func PossibleValuesForState() []string
func ValidateCapacityID ¶
ValidateCapacityID checks that 'input' can be parsed as a Capacity ID
func ValidateLocationID ¶
ValidateLocationID checks that 'input' can be parsed as a Location ID
Types ¶
type CapacitiesClient ¶
type CapacitiesClient struct {
Client *resourcemanager.Client
}
func NewCapacitiesClientWithBaseURI ¶
func NewCapacitiesClientWithBaseURI(sdkApi sdkEnv.Api) (*CapacitiesClient, error)
func (CapacitiesClient) CheckNameAvailability ¶
func (c CapacitiesClient) CheckNameAvailability(ctx context.Context, id LocationId, input CheckCapacityNameAvailabilityParameters) (result CheckNameAvailabilityOperationResponse, err error)
CheckNameAvailability ...
func (CapacitiesClient) Create ¶
func (c CapacitiesClient) Create(ctx context.Context, id CapacityId, input DedicatedCapacity) (result CreateOperationResponse, err error)
Create ...
func (CapacitiesClient) CreateThenPoll ¶
func (c CapacitiesClient) CreateThenPoll(ctx context.Context, id CapacityId, input DedicatedCapacity) error
CreateThenPoll performs Create then polls until it's completed
func (CapacitiesClient) Delete ¶
func (c CapacitiesClient) Delete(ctx context.Context, id CapacityId) (result DeleteOperationResponse, err error)
Delete ...
func (CapacitiesClient) DeleteThenPoll ¶
func (c CapacitiesClient) DeleteThenPoll(ctx context.Context, id CapacityId) error
DeleteThenPoll performs Delete then polls until it's completed
func (CapacitiesClient) GetDetails ¶
func (c CapacitiesClient) GetDetails(ctx context.Context, id CapacityId) (result GetDetailsOperationResponse, err error)
GetDetails ...
func (CapacitiesClient) List ¶
func (c CapacitiesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
List ...
func (CapacitiesClient) ListByResourceGroup ¶
func (c CapacitiesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (CapacitiesClient) ListSkusForCapacity ¶
func (c CapacitiesClient) ListSkusForCapacity(ctx context.Context, id CapacityId) (result ListSkusForCapacityOperationResponse, err error)
ListSkusForCapacity ...
func (CapacitiesClient) Resume ¶
func (c CapacitiesClient) Resume(ctx context.Context, id CapacityId) (result ResumeOperationResponse, err error)
Resume ...
func (CapacitiesClient) ResumeThenPoll ¶
func (c CapacitiesClient) ResumeThenPoll(ctx context.Context, id CapacityId) error
ResumeThenPoll performs Resume then polls until it's completed
func (CapacitiesClient) Suspend ¶
func (c CapacitiesClient) Suspend(ctx context.Context, id CapacityId) (result SuspendOperationResponse, err error)
Suspend ...
func (CapacitiesClient) SuspendThenPoll ¶
func (c CapacitiesClient) SuspendThenPoll(ctx context.Context, id CapacityId) error
SuspendThenPoll performs Suspend then polls until it's completed
func (CapacitiesClient) Update ¶
func (c CapacitiesClient) Update(ctx context.Context, id CapacityId, input DedicatedCapacityUpdateParameters) (result UpdateOperationResponse, err error)
Update ...
func (CapacitiesClient) UpdateThenPoll ¶
func (c CapacitiesClient) UpdateThenPoll(ctx context.Context, id CapacityId, input DedicatedCapacityUpdateParameters) error
UpdateThenPoll performs Update then polls until it's completed
type CapacityId ¶
CapacityId is a struct representing the Resource ID for a Capacity
func NewCapacityID ¶
func NewCapacityID(subscriptionId string, resourceGroupName string, capacityName string) CapacityId
NewCapacityID returns a new CapacityId struct
func ParseCapacityID ¶
func ParseCapacityID(input string) (*CapacityId, error)
ParseCapacityID parses 'input' into a CapacityId
func ParseCapacityIDInsensitively ¶
func ParseCapacityIDInsensitively(input string) (*CapacityId, error)
ParseCapacityIDInsensitively parses 'input' case-insensitively into a CapacityId note: this method should only be used for API response data and not user input
func (*CapacityId) FromParseResult ¶
func (id *CapacityId) FromParseResult(input resourceids.ParseResult) error
func (CapacityId) Segments ¶
func (id CapacityId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Capacity ID
func (CapacityId) String ¶
func (id CapacityId) String() string
String returns a human-readable description of this Capacity ID
type CapacityProvisioningState ¶
type CapacityProvisioningState string
const ( CapacityProvisioningStateDeleting CapacityProvisioningState = "Deleting" CapacityProvisioningStateFailed CapacityProvisioningState = "Failed" CapacityProvisioningStatePaused CapacityProvisioningState = "Paused" CapacityProvisioningStatePausing CapacityProvisioningState = "Pausing" CapacityProvisioningStatePreparing CapacityProvisioningState = "Preparing" CapacityProvisioningStateProvisioning CapacityProvisioningState = "Provisioning" CapacityProvisioningStateResuming CapacityProvisioningState = "Resuming" CapacityProvisioningStateScaling CapacityProvisioningState = "Scaling" CapacityProvisioningStateSucceeded CapacityProvisioningState = "Succeeded" CapacityProvisioningStateSuspended CapacityProvisioningState = "Suspended" CapacityProvisioningStateSuspending CapacityProvisioningState = "Suspending" CapacityProvisioningStateUpdating CapacityProvisioningState = "Updating" )
func (*CapacityProvisioningState) UnmarshalJSON ¶
func (s *CapacityProvisioningState) UnmarshalJSON(bytes []byte) error
type CapacitySku ¶
type CapacitySku struct { Capacity *int64 `json:"capacity,omitempty"` Name string `json:"name"` Tier *CapacitySkuTier `json:"tier,omitempty"` }
type CapacitySkuTier ¶
type CapacitySkuTier string
const ( CapacitySkuTierAutoPremiumHost CapacitySkuTier = "AutoPremiumHost" CapacitySkuTierPBIEAzure CapacitySkuTier = "PBIE_Azure" CapacitySkuTierPremium CapacitySkuTier = "Premium" )
func (*CapacitySkuTier) UnmarshalJSON ¶
func (s *CapacitySkuTier) UnmarshalJSON(bytes []byte) error
type CheckNameAvailabilityOperationResponse ¶
type CheckNameAvailabilityOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *CheckCapacityNameAvailabilityResult }
type CreateOperationResponse ¶
type DedicatedCapacities ¶
type DedicatedCapacities struct {
Value []DedicatedCapacity `json:"value"`
}
type DedicatedCapacity ¶
type DedicatedCapacity struct { Id *string `json:"id,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties *DedicatedCapacityProperties `json:"properties,omitempty"` Sku CapacitySku `json:"sku"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type DedicatedCapacityAdministrators ¶
type DedicatedCapacityAdministrators struct {
Members *[]string `json:"members,omitempty"`
}
type DedicatedCapacityMutableProperties ¶
type DedicatedCapacityMutableProperties struct { Administration *DedicatedCapacityAdministrators `json:"administration,omitempty"` FriendlyName *string `json:"friendlyName,omitempty"` Mode *Mode `json:"mode,omitempty"` TenantId *string `json:"tenantId,omitempty"` }
type DedicatedCapacityProperties ¶
type DedicatedCapacityProperties struct { Administration *DedicatedCapacityAdministrators `json:"administration,omitempty"` FriendlyName *string `json:"friendlyName,omitempty"` Mode *Mode `json:"mode,omitempty"` ProvisioningState *CapacityProvisioningState `json:"provisioningState,omitempty"` State *State `json:"state,omitempty"` TenantId *string `json:"tenantId,omitempty"` }
type DedicatedCapacityUpdateParameters ¶
type DedicatedCapacityUpdateParameters struct { Properties *DedicatedCapacityMutableProperties `json:"properties,omitempty"` Sku *CapacitySku `json:"sku,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type DeleteOperationResponse ¶
type GetDetailsOperationResponse ¶
type GetDetailsOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *DedicatedCapacity }
type ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *DedicatedCapacities }
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *DedicatedCapacities }
type ListSkusForCapacityOperationResponse ¶
type ListSkusForCapacityOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SkuEnumerationForExistingResourceResult }
type LocationId ¶
LocationId is a struct representing the Resource ID for a Location
func NewLocationID ¶
func NewLocationID(subscriptionId string, locationName string) LocationId
NewLocationID returns a new LocationId struct
func ParseLocationID ¶
func ParseLocationID(input string) (*LocationId, error)
ParseLocationID parses 'input' into a LocationId
func ParseLocationIDInsensitively ¶
func ParseLocationIDInsensitively(input string) (*LocationId, error)
ParseLocationIDInsensitively parses 'input' case-insensitively into a LocationId note: this method should only be used for API response data and not user input
func (*LocationId) FromParseResult ¶
func (id *LocationId) FromParseResult(input resourceids.ParseResult) error
func (LocationId) Segments ¶
func (id LocationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Location ID
func (LocationId) String ¶
func (id LocationId) String() string
String returns a human-readable description of this Location ID
type ResumeOperationResponse ¶
type SkuDetailsForExistingResource ¶
type SkuDetailsForExistingResource struct { ResourceType *string `json:"resourceType,omitempty"` Sku *CapacitySku `json:"sku,omitempty"` }
type SkuEnumerationForExistingResourceResult ¶
type SkuEnumerationForExistingResourceResult struct {
Value *[]SkuDetailsForExistingResource `json:"value,omitempty"`
}
type State ¶
type State string
const ( StateDeleting State = "Deleting" StateFailed State = "Failed" StatePaused State = "Paused" StatePausing State = "Pausing" StatePreparing State = "Preparing" StateProvisioning State = "Provisioning" StateResuming State = "Resuming" StateScaling State = "Scaling" StateSucceeded State = "Succeeded" StateSuspended State = "Suspended" StateSuspending State = "Suspending" StateUpdating State = "Updating" )
func (*State) UnmarshalJSON ¶
type UpdateOperationResponse ¶
Source Files ¶
- client.go
- constants.go
- id_capacity.go
- id_location.go
- method_checknameavailability.go
- method_create.go
- method_delete.go
- method_getdetails.go
- method_list.go
- method_listbyresourcegroup.go
- method_listskusforcapacity.go
- method_resume.go
- method_suspend.go
- method_update.go
- model_capacitysku.go
- model_checkcapacitynameavailabilityparameters.go
- model_checkcapacitynameavailabilityresult.go
- model_dedicatedcapacities.go
- model_dedicatedcapacity.go
- model_dedicatedcapacityadministrators.go
- model_dedicatedcapacitymutableproperties.go
- model_dedicatedcapacityproperties.go
- model_dedicatedcapacityupdateparameters.go
- model_skudetailsforexistingresource.go
- model_skuenumerationforexistingresourceresult.go
- version.go