Documentation ¶
Index ¶
- func PossibleValuesForStatusLevelTypes() []string
- func ValidateCapacityReservationGroupID(input interface{}, key string) (warnings []string, errors []error)
- type CapacityReservation
- type CapacityReservationClient
- func (c CapacityReservationClient) ListByCapacityReservationGroup(ctx context.Context, id CapacityReservationGroupId) (resp ListByCapacityReservationGroupOperationResponse, err error)
- func (c CapacityReservationClient) ListByCapacityReservationGroupComplete(ctx context.Context, id CapacityReservationGroupId) (ListByCapacityReservationGroupCompleteResult, error)
- func (c CapacityReservationClient) ListByCapacityReservationGroupCompleteMatchingPredicate(ctx context.Context, id CapacityReservationGroupId, ...) (resp ListByCapacityReservationGroupCompleteResult, err error)
- type CapacityReservationGroupId
- func NewCapacityReservationGroupID(subscriptionId string, resourceGroupName string, ...) CapacityReservationGroupId
- func ParseCapacityReservationGroupID(input string) (*CapacityReservationGroupId, error)
- func ParseCapacityReservationGroupIDInsensitively(input string) (*CapacityReservationGroupId, error)
- type CapacityReservationInstanceView
- type CapacityReservationOperationPredicate
- type CapacityReservationProperties
- func (o *CapacityReservationProperties) GetProvisioningTimeAsTime() (*time.Time, error)
- func (o *CapacityReservationProperties) GetTimeCreatedAsTime() (*time.Time, error)
- func (o *CapacityReservationProperties) SetProvisioningTimeAsTime(input time.Time)
- func (o *CapacityReservationProperties) SetTimeCreatedAsTime(input time.Time)
- type CapacityReservationUtilization
- type InstanceViewStatus
- type ListByCapacityReservationGroupCompleteResult
- type ListByCapacityReservationGroupOperationResponse
- type Sku
- type StatusLevelTypes
- type SubResourceReadOnly
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 CapacityReservation ¶
type CapacityReservation struct { Id *string `json:"id,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties *CapacityReservationProperties `json:"properties,omitempty"` Sku Sku `json:"sku"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` Zones *[]string `json:"zones,omitempty"` }
type CapacityReservationClient ¶
type CapacityReservationClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewCapacityReservationClientWithBaseURI ¶
func NewCapacityReservationClientWithBaseURI(endpoint string) CapacityReservationClient
func (CapacityReservationClient) ListByCapacityReservationGroup ¶
func (c CapacityReservationClient) ListByCapacityReservationGroup(ctx context.Context, id CapacityReservationGroupId) (resp ListByCapacityReservationGroupOperationResponse, err error)
ListByCapacityReservationGroup ...
func (CapacityReservationClient) ListByCapacityReservationGroupComplete ¶
func (c CapacityReservationClient) ListByCapacityReservationGroupComplete(ctx context.Context, id CapacityReservationGroupId) (ListByCapacityReservationGroupCompleteResult, error)
ListByCapacityReservationGroupComplete retrieves all of the results into a single object
func (CapacityReservationClient) ListByCapacityReservationGroupCompleteMatchingPredicate ¶
func (c CapacityReservationClient) ListByCapacityReservationGroupCompleteMatchingPredicate(ctx context.Context, id CapacityReservationGroupId, predicate CapacityReservationOperationPredicate) (resp ListByCapacityReservationGroupCompleteResult, err error)
ListByCapacityReservationGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate
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 CapacityReservationInstanceView ¶
type CapacityReservationInstanceView struct { Statuses *[]InstanceViewStatus `json:"statuses,omitempty"` UtilizationInfo *CapacityReservationUtilization `json:"utilizationInfo,omitempty"` }
type CapacityReservationOperationPredicate ¶
type CapacityReservationOperationPredicate struct { Id *string Location *string Name *string Type *string }
func (CapacityReservationOperationPredicate) Matches ¶
func (p CapacityReservationOperationPredicate) Matches(input CapacityReservation) bool
type CapacityReservationProperties ¶
type CapacityReservationProperties struct { InstanceView *CapacityReservationInstanceView `json:"instanceView,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` ProvisioningTime *string `json:"provisioningTime,omitempty"` ReservationId *string `json:"reservationId,omitempty"` TimeCreated *string `json:"timeCreated,omitempty"` VirtualMachinesAssociated *[]SubResourceReadOnly `json:"virtualMachinesAssociated,omitempty"` }
func (*CapacityReservationProperties) GetProvisioningTimeAsTime ¶
func (o *CapacityReservationProperties) GetProvisioningTimeAsTime() (*time.Time, error)
func (*CapacityReservationProperties) GetTimeCreatedAsTime ¶
func (o *CapacityReservationProperties) GetTimeCreatedAsTime() (*time.Time, error)
func (*CapacityReservationProperties) SetProvisioningTimeAsTime ¶
func (o *CapacityReservationProperties) SetProvisioningTimeAsTime(input time.Time)
func (*CapacityReservationProperties) SetTimeCreatedAsTime ¶
func (o *CapacityReservationProperties) SetTimeCreatedAsTime(input time.Time)
type CapacityReservationUtilization ¶
type CapacityReservationUtilization struct {
VirtualMachinesAllocated *[]SubResourceReadOnly `json:"virtualMachinesAllocated,omitempty"`
}
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 ListByCapacityReservationGroupCompleteResult ¶
type ListByCapacityReservationGroupCompleteResult struct {
Items []CapacityReservation
}
type ListByCapacityReservationGroupOperationResponse ¶
type ListByCapacityReservationGroupOperationResponse struct { HttpResponse *http.Response Model *[]CapacityReservation // contains filtered or unexported fields }
func (ListByCapacityReservationGroupOperationResponse) HasMore ¶
func (r ListByCapacityReservationGroupOperationResponse) HasMore() bool
func (ListByCapacityReservationGroupOperationResponse) LoadMore ¶
func (r ListByCapacityReservationGroupOperationResponse) LoadMore(ctx context.Context) (resp ListByCapacityReservationGroupOperationResponse, 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"`
}
Source Files ¶
- client.go
- constants.go
- id_capacityreservationgroup.go
- method_listbycapacityreservationgroup_autorest.go
- model_capacityreservation.go
- model_capacityreservationinstanceview.go
- model_capacityreservationproperties.go
- model_capacityreservationutilization.go
- model_instanceviewstatus.go
- model_sku.go
- model_subresourcereadonly.go
- predicates.go
- version.go