Documentation ¶
Index ¶
- func PossibleValuesForDedicatedHostLicenseTypes() []string
- func PossibleValuesForInstanceViewTypes() []string
- func PossibleValuesForStatusLevelTypes() []string
- type CreateOrUpdateOperationResponse
- type DedicatedHost
- type DedicatedHostAllocatableVM
- type DedicatedHostAvailableCapacity
- type DedicatedHostInstanceView
- type DedicatedHostLicenseTypes
- type DedicatedHostProperties
- func (o *DedicatedHostProperties) GetProvisioningTimeAsTime() (*time.Time, error)
- func (o *DedicatedHostProperties) GetTimeCreatedAsTime() (*time.Time, error)
- func (o *DedicatedHostProperties) SetProvisioningTimeAsTime(input time.Time)
- func (o *DedicatedHostProperties) SetTimeCreatedAsTime(input time.Time)
- type DedicatedHostUpdate
- type DedicatedHostsClient
- func (c DedicatedHostsClient) CreateOrUpdate(ctx context.Context, id commonids.DedicatedHostId, input DedicatedHost) (result CreateOrUpdateOperationResponse, err error)
- func (c DedicatedHostsClient) CreateOrUpdateThenPoll(ctx context.Context, id commonids.DedicatedHostId, input DedicatedHost) error
- func (c DedicatedHostsClient) Delete(ctx context.Context, id commonids.DedicatedHostId) (result DeleteOperationResponse, err error)
- func (c DedicatedHostsClient) DeleteThenPoll(ctx context.Context, id commonids.DedicatedHostId) error
- func (c DedicatedHostsClient) Get(ctx context.Context, id commonids.DedicatedHostId, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c DedicatedHostsClient) Update(ctx context.Context, id commonids.DedicatedHostId, input DedicatedHostUpdate) (result UpdateOperationResponse, err error)
- func (c DedicatedHostsClient) UpdateThenPoll(ctx context.Context, id commonids.DedicatedHostId, input DedicatedHostUpdate) error
- type DeleteOperationResponse
- type GetOperationOptions
- type GetOperationResponse
- type InstanceViewStatus
- type InstanceViewTypes
- type Sku
- type StatusLevelTypes
- type SubResourceReadOnly
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForDedicatedHostLicenseTypes ¶
func PossibleValuesForDedicatedHostLicenseTypes() []string
func PossibleValuesForInstanceViewTypes ¶
func PossibleValuesForInstanceViewTypes() []string
func PossibleValuesForStatusLevelTypes ¶
func PossibleValuesForStatusLevelTypes() []string
Types ¶
type DedicatedHost ¶
type DedicatedHost struct { Id *string `json:"id,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties *DedicatedHostProperties `json:"properties,omitempty"` Sku Sku `json:"sku"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type DedicatedHostAvailableCapacity ¶
type DedicatedHostAvailableCapacity struct {
AllocatableVMs *[]DedicatedHostAllocatableVM `json:"allocatableVMs,omitempty"`
}
type DedicatedHostInstanceView ¶
type DedicatedHostInstanceView struct { AssetId *string `json:"assetId,omitempty"` AvailableCapacity *DedicatedHostAvailableCapacity `json:"availableCapacity,omitempty"` Statuses *[]InstanceViewStatus `json:"statuses,omitempty"` }
type DedicatedHostLicenseTypes ¶
type DedicatedHostLicenseTypes string
const ( DedicatedHostLicenseTypesNone DedicatedHostLicenseTypes = "None" DedicatedHostLicenseTypesWindowsServerHybrid DedicatedHostLicenseTypes = "Windows_Server_Hybrid" DedicatedHostLicenseTypesWindowsServerPerpetual DedicatedHostLicenseTypes = "Windows_Server_Perpetual" )
func (*DedicatedHostLicenseTypes) UnmarshalJSON ¶ added in v0.20230808.1103829
func (s *DedicatedHostLicenseTypes) UnmarshalJSON(bytes []byte) error
type DedicatedHostProperties ¶
type DedicatedHostProperties struct { AutoReplaceOnFailure *bool `json:"autoReplaceOnFailure,omitempty"` HostId *string `json:"hostId,omitempty"` InstanceView *DedicatedHostInstanceView `json:"instanceView,omitempty"` LicenseType *DedicatedHostLicenseTypes `json:"licenseType,omitempty"` PlatformFaultDomain *int64 `json:"platformFaultDomain,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` ProvisioningTime *string `json:"provisioningTime,omitempty"` TimeCreated *string `json:"timeCreated,omitempty"` VirtualMachines *[]SubResourceReadOnly `json:"virtualMachines,omitempty"` }
func (*DedicatedHostProperties) GetProvisioningTimeAsTime ¶
func (o *DedicatedHostProperties) GetProvisioningTimeAsTime() (*time.Time, error)
func (*DedicatedHostProperties) GetTimeCreatedAsTime ¶
func (o *DedicatedHostProperties) GetTimeCreatedAsTime() (*time.Time, error)
func (*DedicatedHostProperties) SetProvisioningTimeAsTime ¶
func (o *DedicatedHostProperties) SetProvisioningTimeAsTime(input time.Time)
func (*DedicatedHostProperties) SetTimeCreatedAsTime ¶
func (o *DedicatedHostProperties) SetTimeCreatedAsTime(input time.Time)
type DedicatedHostUpdate ¶
type DedicatedHostUpdate struct { Properties *DedicatedHostProperties `json:"properties,omitempty"` Sku *Sku `json:"sku,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type DedicatedHostsClient ¶
type DedicatedHostsClient struct {
Client *resourcemanager.Client
}
func NewDedicatedHostsClientWithBaseURI ¶
func NewDedicatedHostsClientWithBaseURI(sdkApi sdkEnv.Api) (*DedicatedHostsClient, error)
func (DedicatedHostsClient) CreateOrUpdate ¶
func (c DedicatedHostsClient) CreateOrUpdate(ctx context.Context, id commonids.DedicatedHostId, input DedicatedHost) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (DedicatedHostsClient) CreateOrUpdateThenPoll ¶
func (c DedicatedHostsClient) CreateOrUpdateThenPoll(ctx context.Context, id commonids.DedicatedHostId, input DedicatedHost) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (DedicatedHostsClient) Delete ¶
func (c DedicatedHostsClient) Delete(ctx context.Context, id commonids.DedicatedHostId) (result DeleteOperationResponse, err error)
Delete ...
func (DedicatedHostsClient) DeleteThenPoll ¶
func (c DedicatedHostsClient) DeleteThenPoll(ctx context.Context, id commonids.DedicatedHostId) error
DeleteThenPoll performs Delete then polls until it's completed
func (DedicatedHostsClient) Get ¶
func (c DedicatedHostsClient) Get(ctx context.Context, id commonids.DedicatedHostId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (DedicatedHostsClient) Update ¶
func (c DedicatedHostsClient) Update(ctx context.Context, id commonids.DedicatedHostId, input DedicatedHostUpdate) (result UpdateOperationResponse, err error)
Update ...
func (DedicatedHostsClient) UpdateThenPoll ¶
func (c DedicatedHostsClient) UpdateThenPoll(ctx context.Context, id commonids.DedicatedHostId, input DedicatedHostUpdate) error
UpdateThenPoll performs Update then polls until it's completed
type DeleteOperationResponse ¶
type GetOperationOptions ¶
type GetOperationOptions struct {
Expand *InstanceViewTypes
}
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 *DedicatedHost }
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 InstanceViewTypes ¶
type InstanceViewTypes string
const ( InstanceViewTypesInstanceView InstanceViewTypes = "instanceView" InstanceViewTypesUserData InstanceViewTypes = "userData" )
func (*InstanceViewTypes) UnmarshalJSON ¶ added in v0.20230808.1103829
func (s *InstanceViewTypes) UnmarshalJSON(bytes []byte) error
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"`
}
Source Files ¶
- client.go
- constants.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_update.go
- model_dedicatedhost.go
- model_dedicatedhostallocatablevm.go
- model_dedicatedhostavailablecapacity.go
- model_dedicatedhostinstanceview.go
- model_dedicatedhostproperties.go
- model_dedicatedhostupdate.go
- model_instanceviewstatus.go
- model_sku.go
- model_subresourcereadonly.go
- version.go
Click to show internal directories.
Click to hide internal directories.