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) (result ListByCapacityReservationGroupOperationResponse, err error)
- func (c CapacityReservationClient) ListByCapacityReservationGroupComplete(ctx context.Context, id CapacityReservationGroupId) (ListByCapacityReservationGroupCompleteResult, error)
- func (c CapacityReservationClient) ListByCapacityReservationGroupCompleteMatchingPredicate(ctx context.Context, id CapacityReservationGroupId, ...) (result 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
- type CapacityReservationUtilization
- type InstanceViewStatus
- type ListByCapacityReservationGroupCompleteResult
- type ListByCapacityReservationGroupCustomPager
- 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 *zones.Schema `json:"zones,omitempty"` }
type CapacityReservationClient ¶
type CapacityReservationClient struct {
Client *resourcemanager.Client
}
func NewCapacityReservationClientWithBaseURI ¶
func NewCapacityReservationClientWithBaseURI(sdkApi sdkEnv.Api) (*CapacityReservationClient, error)
func (CapacityReservationClient) ListByCapacityReservationGroup ¶
func (c CapacityReservationClient) ListByCapacityReservationGroup(ctx context.Context, id CapacityReservationGroupId) (result ListByCapacityReservationGroupOperationResponse, err error)
ListByCapacityReservationGroup ...
func (CapacityReservationClient) ListByCapacityReservationGroupComplete ¶
func (c CapacityReservationClient) ListByCapacityReservationGroupComplete(ctx context.Context, id CapacityReservationGroupId) (ListByCapacityReservationGroupCompleteResult, error)
ListByCapacityReservationGroupComplete retrieves all the results into a single object
func (CapacityReservationClient) ListByCapacityReservationGroupCompleteMatchingPredicate ¶
func (c CapacityReservationClient) ListByCapacityReservationGroupCompleteMatchingPredicate(ctx context.Context, id CapacityReservationGroupId, predicate CapacityReservationOperationPredicate) (result ListByCapacityReservationGroupCompleteResult, err error)
ListByCapacityReservationGroupCompleteMatchingPredicate retrieves all the results and then applies 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) FromParseResult ¶
func (id *CapacityReservationGroupId) FromParseResult(input resourceids.ParseResult) error
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"` VirtualMachinesAssociated *[]SubResourceReadOnly `json:"virtualMachinesAssociated,omitempty"` }
func (*CapacityReservationProperties) GetProvisioningTimeAsTime ¶
func (o *CapacityReservationProperties) GetProvisioningTimeAsTime() (*time.Time, error)
func (*CapacityReservationProperties) SetProvisioningTimeAsTime ¶
func (o *CapacityReservationProperties) SetProvisioningTimeAsTime(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 { LatestHttpResponse *http.Response Items []CapacityReservation }
type ListByCapacityReservationGroupCustomPager ¶ added in v0.20240628.1153531
func (*ListByCapacityReservationGroupCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListByCapacityReservationGroupCustomPager) NextPageLink() *odata.Link
type ListByCapacityReservationGroupOperationResponse ¶
type ListByCapacityReservationGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]CapacityReservation }
type StatusLevelTypes ¶
type StatusLevelTypes string
const ( StatusLevelTypesError StatusLevelTypes = "Error" StatusLevelTypesInfo StatusLevelTypes = "Info" StatusLevelTypesWarning StatusLevelTypes = "Warning" )
func (*StatusLevelTypes) UnmarshalJSON ¶
func (s *StatusLevelTypes) UnmarshalJSON(bytes []byte) error
type SubResourceReadOnly ¶
type SubResourceReadOnly struct {
Id *string `json:"id,omitempty"`
}
Source Files ¶
- client.go
- constants.go
- id_capacityreservationgroup.go
- method_listbycapacityreservationgroup.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