Documentation ¶
Index ¶
- func ValidateResourcePoolID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOperationResponse
- type DeleteOperationOptions
- type DeleteOperationResponse
- type ExtendedLocation
- type GetOperationResponse
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type ResourcePatch
- type ResourcePool
- type ResourcePoolId
- type ResourcePoolOperationPredicate
- type ResourcePoolProperties
- type ResourcePoolsClient
- func (c ResourcePoolsClient) Create(ctx context.Context, id ResourcePoolId, input ResourcePool) (result CreateOperationResponse, err error)
- func (c ResourcePoolsClient) CreateThenPoll(ctx context.Context, id ResourcePoolId, input ResourcePool) error
- func (c ResourcePoolsClient) Delete(ctx context.Context, id ResourcePoolId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
- func (c ResourcePoolsClient) DeleteThenPoll(ctx context.Context, id ResourcePoolId, options DeleteOperationOptions) error
- func (c ResourcePoolsClient) Get(ctx context.Context, id ResourcePoolId) (result GetOperationResponse, err error)
- func (c ResourcePoolsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
- func (c ResourcePoolsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
- func (c ResourcePoolsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
- func (c ResourcePoolsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListByResourceGroupCompleteResult, err error)
- func (c ResourcePoolsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
- func (c ResourcePoolsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListCompleteResult, err error)
- func (c ResourcePoolsClient) Update(ctx context.Context, id ResourcePoolId, input ResourcePatch) (result UpdateOperationResponse, err error)
- type ResourceStatus
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateResourcePoolID ¶
ValidateResourcePoolID checks that 'input' can be parsed as a Resource Pool ID
Types ¶
type CreateOperationResponse ¶
type DeleteOperationOptions ¶
type DeleteOperationOptions struct {
Force *bool
}
func DefaultDeleteOperationOptions ¶
func DefaultDeleteOperationOptions() DeleteOperationOptions
func (DeleteOperationOptions) ToHeaders ¶ added in v0.20230404.1155830
func (o DeleteOperationOptions) ToHeaders() *client.Headers
func (DeleteOperationOptions) ToOData ¶ added in v0.20230404.1155830
func (o DeleteOperationOptions) ToOData() *odata.Query
func (DeleteOperationOptions) ToQuery ¶ added in v0.20230404.1155830
func (o DeleteOperationOptions) ToQuery() *client.QueryParams
type DeleteOperationResponse ¶
type ExtendedLocation ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ResourcePool }
type ListByResourceGroupCompleteResult ¶
type ListByResourceGroupCompleteResult struct {
Items []ResourcePool
}
type ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ResourcePool }
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []ResourcePool
}
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ResourcePool }
type ResourcePatch ¶
type ResourcePool ¶
type ResourcePool 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 ResourcePoolProperties `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type ResourcePoolId ¶
type ResourcePoolId struct { SubscriptionId string ResourceGroupName string ResourcePoolName string }
ResourcePoolId is a struct representing the Resource ID for a Resource Pool
func NewResourcePoolID ¶
func NewResourcePoolID(subscriptionId string, resourceGroupName string, resourcePoolName string) ResourcePoolId
NewResourcePoolID returns a new ResourcePoolId struct
func ParseResourcePoolID ¶
func ParseResourcePoolID(input string) (*ResourcePoolId, error)
ParseResourcePoolID parses 'input' into a ResourcePoolId
func ParseResourcePoolIDInsensitively ¶
func ParseResourcePoolIDInsensitively(input string) (*ResourcePoolId, error)
ParseResourcePoolIDInsensitively parses 'input' case-insensitively into a ResourcePoolId note: this method should only be used for API response data and not user input
func (ResourcePoolId) ID ¶
func (id ResourcePoolId) ID() string
ID returns the formatted Resource Pool ID
func (ResourcePoolId) Segments ¶
func (id ResourcePoolId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Resource Pool ID
func (ResourcePoolId) String ¶
func (id ResourcePoolId) String() string
String returns a human-readable description of this Resource Pool ID
type ResourcePoolOperationPredicate ¶
type ResourcePoolOperationPredicate struct { Id *string Kind *string Location *string Name *string Type *string }
func (ResourcePoolOperationPredicate) Matches ¶
func (p ResourcePoolOperationPredicate) Matches(input ResourcePool) bool
type ResourcePoolProperties ¶
type ResourcePoolProperties struct { CpuLimitMHz *int64 `json:"cpuLimitMHz,omitempty"` CpuReservationMHz *int64 `json:"cpuReservationMHz,omitempty"` CustomResourceName *string `json:"customResourceName,omitempty"` InventoryItemId *string `json:"inventoryItemId,omitempty"` MemLimitMB *int64 `json:"memLimitMB,omitempty"` MemReservationMB *int64 `json:"memReservationMB,omitempty"` MoName *string `json:"moName,omitempty"` MoRefId *string `json:"moRefId,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` Statuses *[]ResourceStatus `json:"statuses,omitempty"` Uuid *string `json:"uuid,omitempty"` VCenterId *string `json:"vCenterId,omitempty"` }
type ResourcePoolsClient ¶
type ResourcePoolsClient struct {
Client *resourcemanager.Client
}
func NewResourcePoolsClientWithBaseURI ¶
func NewResourcePoolsClientWithBaseURI(sdkApi sdkEnv.Api) (*ResourcePoolsClient, error)
func (ResourcePoolsClient) Create ¶
func (c ResourcePoolsClient) Create(ctx context.Context, id ResourcePoolId, input ResourcePool) (result CreateOperationResponse, err error)
Create ...
func (ResourcePoolsClient) CreateThenPoll ¶
func (c ResourcePoolsClient) CreateThenPoll(ctx context.Context, id ResourcePoolId, input ResourcePool) error
CreateThenPoll performs Create then polls until it's completed
func (ResourcePoolsClient) Delete ¶
func (c ResourcePoolsClient) Delete(ctx context.Context, id ResourcePoolId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
Delete ...
func (ResourcePoolsClient) DeleteThenPoll ¶
func (c ResourcePoolsClient) DeleteThenPoll(ctx context.Context, id ResourcePoolId, options DeleteOperationOptions) error
DeleteThenPoll performs Delete then polls until it's completed
func (ResourcePoolsClient) Get ¶
func (c ResourcePoolsClient) Get(ctx context.Context, id ResourcePoolId) (result GetOperationResponse, err error)
Get ...
func (ResourcePoolsClient) List ¶
func (c ResourcePoolsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
List ...
func (ResourcePoolsClient) ListByResourceGroup ¶
func (c ResourcePoolsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (ResourcePoolsClient) ListByResourceGroupComplete ¶
func (c ResourcePoolsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all the results into a single object
func (ResourcePoolsClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c ResourcePoolsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ResourcePoolOperationPredicate) (result ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ResourcePoolsClient) ListComplete ¶
func (c ResourcePoolsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (ResourcePoolsClient) ListCompleteMatchingPredicate ¶
func (c ResourcePoolsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ResourcePoolOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ResourcePoolsClient) Update ¶
func (c ResourcePoolsClient) Update(ctx context.Context, id ResourcePoolId, input ResourcePatch) (result UpdateOperationResponse, err error)
Update ...
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)
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ResourcePool }