Documentation ¶
Index ¶
- func PossibleValuesForCapacityReservationGroupInstanceViewTypes() []string
- func PossibleValuesForExpandTypesForGetCapacityReservationGroups() []string
- func PossibleValuesForStatusLevelTypes() []string
- func ValidateCapacityReservationGroupID(input interface{}, key string) (warnings []string, errors []error)
- type CapacityReservationGroup
- type CapacityReservationGroupId
- func NewCapacityReservationGroupID(subscriptionId string, resourceGroupName string, ...) CapacityReservationGroupId
- func ParseCapacityReservationGroupID(input string) (*CapacityReservationGroupId, error)
- func ParseCapacityReservationGroupIDInsensitively(input string) (*CapacityReservationGroupId, error)
- type CapacityReservationGroupInstanceView
- type CapacityReservationGroupInstanceViewTypes
- type CapacityReservationGroupOperationPredicate
- type CapacityReservationGroupProperties
- type CapacityReservationGroupUpdate
- type CapacityReservationGroupsClient
- func (c CapacityReservationGroupsClient) CreateOrUpdate(ctx context.Context, id CapacityReservationGroupId, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c CapacityReservationGroupsClient) Delete(ctx context.Context, id CapacityReservationGroupId) (result DeleteOperationResponse, err error)
- func (c CapacityReservationGroupsClient) Get(ctx context.Context, id CapacityReservationGroupId, ...) (result GetOperationResponse, err error)
- func (c CapacityReservationGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, ...) (resp ListByResourceGroupOperationResponse, err error)
- func (c CapacityReservationGroupsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId, ...) (ListByResourceGroupCompleteResult, error)
- func (c CapacityReservationGroupsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (resp ListByResourceGroupCompleteResult, err error)
- func (c CapacityReservationGroupsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, ...) (resp ListBySubscriptionOperationResponse, err error)
- func (c CapacityReservationGroupsClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId, ...) (ListBySubscriptionCompleteResult, error)
- func (c CapacityReservationGroupsClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (resp ListBySubscriptionCompleteResult, err error)
- func (c CapacityReservationGroupsClient) Update(ctx context.Context, id CapacityReservationGroupId, ...) (result UpdateOperationResponse, err error)
- type CapacityReservationInstanceViewWithName
- type CapacityReservationUtilization
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type ExpandTypesForGetCapacityReservationGroups
- type GetOperationOptions
- type GetOperationResponse
- type InstanceViewStatus
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupOperationOptions
- type ListByResourceGroupOperationResponse
- type ListBySubscriptionCompleteResult
- type ListBySubscriptionOperationOptions
- type ListBySubscriptionOperationResponse
- type StatusLevelTypes
- type SubResourceReadOnly
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCapacityReservationGroupInstanceViewTypes ¶
func PossibleValuesForCapacityReservationGroupInstanceViewTypes() []string
func PossibleValuesForExpandTypesForGetCapacityReservationGroups ¶
func PossibleValuesForExpandTypesForGetCapacityReservationGroups() []string
func PossibleValuesForStatusLevelTypes ¶
func PossibleValuesForStatusLevelTypes() []string
func ValidateCapacityReservationGroupID ¶
func ValidateCapacityReservationGroupID(input interface{}, key string) (warnings []string, errors []error)
ValidateCapacityReservationGroupID checks that 'input' can be parsed as a Capacity Reservation Group ID
Types ¶
type CapacityReservationGroup ¶
type CapacityReservationGroup struct { Id *string `json:"id,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties *CapacityReservationGroupProperties `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` Zones *zones.Schema `json:"zones,omitempty"` }
type CapacityReservationGroupId ¶
type CapacityReservationGroupId struct { SubscriptionId string ResourceGroupName string CapacityReservationGroupName string }
CapacityReservationGroupId is a struct representing the Resource ID for a Capacity Reservation Group
func NewCapacityReservationGroupID ¶
func NewCapacityReservationGroupID(subscriptionId string, resourceGroupName string, capacityReservationGroupName string) CapacityReservationGroupId
NewCapacityReservationGroupID returns a new CapacityReservationGroupId struct
func ParseCapacityReservationGroupID ¶
func ParseCapacityReservationGroupID(input string) (*CapacityReservationGroupId, error)
ParseCapacityReservationGroupID parses 'input' into a CapacityReservationGroupId
func ParseCapacityReservationGroupIDInsensitively ¶
func ParseCapacityReservationGroupIDInsensitively(input string) (*CapacityReservationGroupId, error)
ParseCapacityReservationGroupIDInsensitively parses 'input' case-insensitively into a CapacityReservationGroupId note: this method should only be used for API response data and not user input
func (CapacityReservationGroupId) ID ¶
func (id CapacityReservationGroupId) ID() string
ID returns the formatted Capacity Reservation Group ID
func (CapacityReservationGroupId) Segments ¶
func (id CapacityReservationGroupId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Capacity Reservation Group ID
func (CapacityReservationGroupId) String ¶
func (id CapacityReservationGroupId) String() string
String returns a human-readable description of this Capacity Reservation Group ID
type CapacityReservationGroupInstanceView ¶
type CapacityReservationGroupInstanceView struct {
CapacityReservations *[]CapacityReservationInstanceViewWithName `json:"capacityReservations,omitempty"`
}
type CapacityReservationGroupInstanceViewTypes ¶
type CapacityReservationGroupInstanceViewTypes string
const (
CapacityReservationGroupInstanceViewTypesInstanceView CapacityReservationGroupInstanceViewTypes = "instanceView"
)
type CapacityReservationGroupOperationPredicate ¶
type CapacityReservationGroupOperationPredicate struct { Id *string Location *string Name *string Type *string }
func (CapacityReservationGroupOperationPredicate) Matches ¶
func (p CapacityReservationGroupOperationPredicate) Matches(input CapacityReservationGroup) bool
type CapacityReservationGroupProperties ¶
type CapacityReservationGroupProperties struct { CapacityReservations *[]SubResourceReadOnly `json:"capacityReservations,omitempty"` InstanceView *CapacityReservationGroupInstanceView `json:"instanceView,omitempty"` VirtualMachinesAssociated *[]SubResourceReadOnly `json:"virtualMachinesAssociated,omitempty"` }
type CapacityReservationGroupUpdate ¶
type CapacityReservationGroupUpdate struct { Properties *CapacityReservationGroupProperties `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type CapacityReservationGroupsClient ¶
type CapacityReservationGroupsClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewCapacityReservationGroupsClientWithBaseURI ¶
func NewCapacityReservationGroupsClientWithBaseURI(endpoint string) CapacityReservationGroupsClient
func (CapacityReservationGroupsClient) CreateOrUpdate ¶
func (c CapacityReservationGroupsClient) CreateOrUpdate(ctx context.Context, id CapacityReservationGroupId, input CapacityReservationGroup) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (CapacityReservationGroupsClient) Delete ¶
func (c CapacityReservationGroupsClient) Delete(ctx context.Context, id CapacityReservationGroupId) (result DeleteOperationResponse, err error)
Delete ...
func (CapacityReservationGroupsClient) Get ¶
func (c CapacityReservationGroupsClient) Get(ctx context.Context, id CapacityReservationGroupId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (CapacityReservationGroupsClient) ListByResourceGroup ¶
func (c CapacityReservationGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (resp ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (CapacityReservationGroupsClient) ListByResourceGroupComplete ¶
func (c CapacityReservationGroupsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all of the results into a single object
func (CapacityReservationGroupsClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c CapacityReservationGroupsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions, predicate CapacityReservationGroupOperationPredicate) (resp ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (CapacityReservationGroupsClient) ListBySubscription ¶
func (c CapacityReservationGroupsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (resp ListBySubscriptionOperationResponse, err error)
ListBySubscription ...
func (CapacityReservationGroupsClient) ListBySubscriptionComplete ¶
func (c CapacityReservationGroupsClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (ListBySubscriptionCompleteResult, error)
ListBySubscriptionComplete retrieves all of the results into a single object
func (CapacityReservationGroupsClient) ListBySubscriptionCompleteMatchingPredicate ¶
func (c CapacityReservationGroupsClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions, predicate CapacityReservationGroupOperationPredicate) (resp ListBySubscriptionCompleteResult, err error)
ListBySubscriptionCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (CapacityReservationGroupsClient) Update ¶
func (c CapacityReservationGroupsClient) Update(ctx context.Context, id CapacityReservationGroupId, input CapacityReservationGroupUpdate) (result UpdateOperationResponse, err error)
Update ...
type CapacityReservationInstanceViewWithName ¶
type CapacityReservationInstanceViewWithName struct { Name *string `json:"name,omitempty"` Statuses *[]InstanceViewStatus `json:"statuses,omitempty"` UtilizationInfo *CapacityReservationUtilization `json:"utilizationInfo,omitempty"` }
type CapacityReservationUtilization ¶
type CapacityReservationUtilization struct { CurrentCapacity *int64 `json:"currentCapacity,omitempty"` VirtualMachinesAllocated *[]SubResourceReadOnly `json:"virtualMachinesAllocated,omitempty"` }
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response Model *CapacityReservationGroup }
type DeleteOperationResponse ¶
type ExpandTypesForGetCapacityReservationGroups ¶
type ExpandTypesForGetCapacityReservationGroups string
const ( ExpandTypesForGetCapacityReservationGroupsVirtualMachineScaleSetVMsRef ExpandTypesForGetCapacityReservationGroups = "virtualMachineScaleSetVMs/$ref" ExpandTypesForGetCapacityReservationGroupsVirtualMachinesRef ExpandTypesForGetCapacityReservationGroups = "virtualMachines/$ref" )
type GetOperationOptions ¶
type GetOperationOptions struct {
Expand *CapacityReservationGroupInstanceViewTypes
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *CapacityReservationGroup }
type InstanceViewStatus ¶
type InstanceViewStatus struct { Code *string `json:"code,omitempty"` DisplayStatus *string `json:"displayStatus,omitempty"` Level *StatusLevelTypes `json:"level,omitempty"` Message *string `json:"message,omitempty"` Time *string `json:"time,omitempty"` }
func (*InstanceViewStatus) GetTimeAsTime ¶
func (o *InstanceViewStatus) GetTimeAsTime() (*time.Time, error)
func (*InstanceViewStatus) SetTimeAsTime ¶
func (o *InstanceViewStatus) SetTimeAsTime(input time.Time)
type ListByResourceGroupCompleteResult ¶
type ListByResourceGroupCompleteResult struct {
Items []CapacityReservationGroup
}
type ListByResourceGroupOperationOptions ¶
type ListByResourceGroupOperationOptions struct {
Expand *ExpandTypesForGetCapacityReservationGroups
}
func DefaultListByResourceGroupOperationOptions ¶
func DefaultListByResourceGroupOperationOptions() ListByResourceGroupOperationOptions
type ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response Model *[]CapacityReservationGroup // contains filtered or unexported fields }
func (ListByResourceGroupOperationResponse) HasMore ¶
func (r ListByResourceGroupOperationResponse) HasMore() bool
func (ListByResourceGroupOperationResponse) LoadMore ¶
func (r ListByResourceGroupOperationResponse) LoadMore(ctx context.Context) (resp ListByResourceGroupOperationResponse, err error)
type ListBySubscriptionCompleteResult ¶
type ListBySubscriptionCompleteResult struct {
Items []CapacityReservationGroup
}
type ListBySubscriptionOperationOptions ¶
type ListBySubscriptionOperationOptions struct {
Expand *ExpandTypesForGetCapacityReservationGroups
}
func DefaultListBySubscriptionOperationOptions ¶
func DefaultListBySubscriptionOperationOptions() ListBySubscriptionOperationOptions
type ListBySubscriptionOperationResponse ¶
type ListBySubscriptionOperationResponse struct { HttpResponse *http.Response Model *[]CapacityReservationGroup // contains filtered or unexported fields }
func (ListBySubscriptionOperationResponse) HasMore ¶
func (r ListBySubscriptionOperationResponse) HasMore() bool
func (ListBySubscriptionOperationResponse) LoadMore ¶
func (r ListBySubscriptionOperationResponse) LoadMore(ctx context.Context) (resp ListBySubscriptionOperationResponse, err error)
type StatusLevelTypes ¶
type StatusLevelTypes string
const ( StatusLevelTypesError StatusLevelTypes = "Error" StatusLevelTypesInfo StatusLevelTypes = "Info" StatusLevelTypesWarning StatusLevelTypes = "Warning" )
type SubResourceReadOnly ¶
type SubResourceReadOnly struct {
Id *string `json:"id,omitempty"`
}
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response Model *CapacityReservationGroup }
Source Files ¶
- client.go
- constants.go
- id_capacityreservationgroup.go
- method_createorupdate_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_listbyresourcegroup_autorest.go
- method_listbysubscription_autorest.go
- method_update_autorest.go
- model_capacityreservationgroup.go
- model_capacityreservationgroupinstanceview.go
- model_capacityreservationgroupproperties.go
- model_capacityreservationgroupupdate.go
- model_capacityreservationinstanceviewwithname.go
- model_capacityreservationutilization.go
- model_instanceviewstatus.go
- model_subresourcereadonly.go
- predicates.go
- version.go