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 *[]string `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) 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"
)
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 autorest.Client // contains filtered or unexported fields }
func NewCapacityReservationsClientWithBaseURI ¶
func NewCapacityReservationsClientWithBaseURI(endpoint string) CapacityReservationsClient
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 CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type DeleteOperationResponse ¶
type DeleteOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type GetOperationOptions ¶
type GetOperationOptions struct {
Expand *CapacityReservationInstanceViewTypes
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response 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" )
type SubResourceReadOnly ¶
type SubResourceReadOnly struct {
Id *string `json:"id,omitempty"`
}
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
Source Files ¶
- client.go
- constants.go
- id_capacityreservation.go
- method_createorupdate_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_update_autorest.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