Documentation ¶
Index ¶
- func PossibleValuesForCapacityReservationInstanceViewTypes() []string
- func PossibleValuesForStatusLevelTypes() []string
- func ValidateCapacityReservationID(input interface{}, key string) (warnings []string, errors []error)
- type CapacityReservation
- type CapacityReservationId
- type CapacityReservationInstanceView
- type CapacityReservationInstanceViewTypes
- 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 CapacityReservationUpdate
- type CapacityReservationUtilization
- type CapacityReservationsClient
- func (c CapacityReservationsClient) CreateOrUpdate(ctx context.Context, id CapacityReservationId, input CapacityReservation) (result CreateOrUpdateOperationResponse, err error)
- func (c CapacityReservationsClient) CreateOrUpdateThenPoll(ctx context.Context, id CapacityReservationId, input CapacityReservation) error
- func (c CapacityReservationsClient) Delete(ctx context.Context, id CapacityReservationId) (result DeleteOperationResponse, err error)
- func (c CapacityReservationsClient) DeleteThenPoll(ctx context.Context, id CapacityReservationId) error
- func (c CapacityReservationsClient) Get(ctx context.Context, id CapacityReservationId, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c CapacityReservationsClient) Update(ctx context.Context, id CapacityReservationId, input CapacityReservationUpdate) (result UpdateOperationResponse, err error)
- func (c CapacityReservationsClient) UpdateThenPoll(ctx context.Context, id CapacityReservationId, input CapacityReservationUpdate) error
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationOptions
- type GetOperationResponse
- type InstanceViewStatus
- type Sku
- type StatusLevelTypes
- type SubResourceReadOnly
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCapacityReservationInstanceViewTypes ¶
func PossibleValuesForCapacityReservationInstanceViewTypes() []string
func PossibleValuesForStatusLevelTypes ¶
func PossibleValuesForStatusLevelTypes() []string
func ValidateCapacityReservationID ¶
func ValidateCapacityReservationID(input interface{}, key string) (warnings []string, errors []error)
ValidateCapacityReservationID checks that 'input' can be parsed as a Capacity Reservation 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 CapacityReservationId ¶
type CapacityReservationId struct { SubscriptionId string ResourceGroupName string CapacityReservationGroupName string CapacityReservationName string }
CapacityReservationId is a struct representing the Resource ID for a Capacity Reservation
func NewCapacityReservationID ¶
func NewCapacityReservationID(subscriptionId string, resourceGroupName string, capacityReservationGroupName string, capacityReservationName string) CapacityReservationId
NewCapacityReservationID returns a new CapacityReservationId struct
func ParseCapacityReservationID ¶
func ParseCapacityReservationID(input string) (*CapacityReservationId, error)
ParseCapacityReservationID parses 'input' into a CapacityReservationId
func ParseCapacityReservationIDInsensitively ¶
func ParseCapacityReservationIDInsensitively(input string) (*CapacityReservationId, error)
ParseCapacityReservationIDInsensitively parses 'input' case-insensitively into a CapacityReservationId note: this method should only be used for API response data and not user input
func (*CapacityReservationId) FromParseResult ¶ added in v0.20231127.1171502
func (id *CapacityReservationId) FromParseResult(input resourceids.ParseResult) error
func (CapacityReservationId) ID ¶
func (id CapacityReservationId) ID() string
ID returns the formatted Capacity Reservation ID
func (CapacityReservationId) Segments ¶
func (id CapacityReservationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Capacity Reservation ID
func (CapacityReservationId) String ¶
func (id CapacityReservationId) String() string
String returns a human-readable description of this Capacity Reservation ID
type CapacityReservationInstanceView ¶
type CapacityReservationInstanceView struct { Statuses *[]InstanceViewStatus `json:"statuses,omitempty"` UtilizationInfo *CapacityReservationUtilization `json:"utilizationInfo,omitempty"` }
type CapacityReservationInstanceViewTypes ¶
type CapacityReservationInstanceViewTypes string
const (
CapacityReservationInstanceViewTypesInstanceView CapacityReservationInstanceViewTypes = "instanceView"
)
func (*CapacityReservationInstanceViewTypes) UnmarshalJSON ¶ added in v0.20230808.1103829
func (s *CapacityReservationInstanceViewTypes) UnmarshalJSON(bytes []byte) error
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 CapacityReservationUpdate ¶
type CapacityReservationUpdate struct { Properties *CapacityReservationProperties `json:"properties,omitempty"` Sku *Sku `json:"sku,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type CapacityReservationUtilization ¶
type CapacityReservationUtilization struct {
VirtualMachinesAllocated *[]SubResourceReadOnly `json:"virtualMachinesAllocated,omitempty"`
}
type CapacityReservationsClient ¶
type CapacityReservationsClient struct {
Client *resourcemanager.Client
}
func NewCapacityReservationsClientWithBaseURI ¶
func NewCapacityReservationsClientWithBaseURI(sdkApi sdkEnv.Api) (*CapacityReservationsClient, error)
func (CapacityReservationsClient) CreateOrUpdate ¶
func (c CapacityReservationsClient) CreateOrUpdate(ctx context.Context, id CapacityReservationId, input CapacityReservation) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (CapacityReservationsClient) CreateOrUpdateThenPoll ¶
func (c CapacityReservationsClient) CreateOrUpdateThenPoll(ctx context.Context, id CapacityReservationId, input CapacityReservation) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (CapacityReservationsClient) Delete ¶
func (c CapacityReservationsClient) Delete(ctx context.Context, id CapacityReservationId) (result DeleteOperationResponse, err error)
Delete ...
func (CapacityReservationsClient) DeleteThenPoll ¶
func (c CapacityReservationsClient) DeleteThenPoll(ctx context.Context, id CapacityReservationId) error
DeleteThenPoll performs Delete then polls until it's completed
func (CapacityReservationsClient) Get ¶
func (c CapacityReservationsClient) Get(ctx context.Context, id CapacityReservationId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (CapacityReservationsClient) Update ¶
func (c CapacityReservationsClient) Update(ctx context.Context, id CapacityReservationId, input CapacityReservationUpdate) (result UpdateOperationResponse, err error)
Update ...
func (CapacityReservationsClient) UpdateThenPoll ¶
func (c CapacityReservationsClient) UpdateThenPoll(ctx context.Context, id CapacityReservationId, input CapacityReservationUpdate) error
UpdateThenPoll performs Update then polls until it's completed
type DeleteOperationResponse ¶
type GetOperationOptions ¶
type GetOperationOptions struct {
Expand *CapacityReservationInstanceViewTypes
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
func (GetOperationOptions) ToHeaders ¶ added in v0.20230808.1103829
func (o GetOperationOptions) ToHeaders() *client.Headers
func (GetOperationOptions) ToOData ¶ added in v0.20230808.1103829
func (o GetOperationOptions) ToOData() *odata.Query
func (GetOperationOptions) ToQuery ¶ added in v0.20230808.1103829
func (o GetOperationOptions) ToQuery() *client.QueryParams
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *CapacityReservation }
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 StatusLevelTypes ¶
type StatusLevelTypes string
const ( StatusLevelTypesError StatusLevelTypes = "Error" StatusLevelTypesInfo StatusLevelTypes = "Info" StatusLevelTypesWarning StatusLevelTypes = "Warning" )
func (*StatusLevelTypes) UnmarshalJSON ¶ added in v0.20230808.1103829
func (s *StatusLevelTypes) UnmarshalJSON(bytes []byte) error
type SubResourceReadOnly ¶
type SubResourceReadOnly struct {
Id *string `json:"id,omitempty"`
}
type UpdateOperationResponse ¶
Source Files ¶
- client.go
- constants.go
- id_capacityreservation.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_update.go
- model_capacityreservation.go
- model_capacityreservationinstanceview.go
- model_capacityreservationproperties.go
- model_capacityreservationupdate.go
- model_capacityreservationutilization.go
- model_instanceviewstatus.go
- model_sku.go
- model_subresourcereadonly.go
- version.go