Documentation ¶
Index ¶
- func PossibleValuesForDedicatedHostLicenseTypes() []string
- func PossibleValuesForStatusLevelTypes() []string
- type DedicatedHost
- type DedicatedHostAllocatableVM
- type DedicatedHostAvailableCapacity
- type DedicatedHostClient
- func (c DedicatedHostClient) ListByHostGroup(ctx context.Context, id commonids.DedicatedHostGroupId) (result ListByHostGroupOperationResponse, err error)
- func (c DedicatedHostClient) ListByHostGroupComplete(ctx context.Context, id commonids.DedicatedHostGroupId) (ListByHostGroupCompleteResult, error)
- func (c DedicatedHostClient) ListByHostGroupCompleteMatchingPredicate(ctx context.Context, id commonids.DedicatedHostGroupId, ...) (result ListByHostGroupCompleteResult, err error)
- func (c DedicatedHostClient) Restart(ctx context.Context, id commonids.DedicatedHostId) (result RestartOperationResponse, err error)
- func (c DedicatedHostClient) RestartThenPoll(ctx context.Context, id commonids.DedicatedHostId) error
- type DedicatedHostInstanceView
- type DedicatedHostLicenseTypes
- type DedicatedHostOperationPredicate
- 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 InstanceViewStatus
- type ListByHostGroupCompleteResult
- type ListByHostGroupCustomPager
- type ListByHostGroupOperationResponse
- type RestartOperationResponse
- type Sku
- type StatusLevelTypes
- type SubResourceReadOnly
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForDedicatedHostLicenseTypes ¶
func PossibleValuesForDedicatedHostLicenseTypes() []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 DedicatedHostClient ¶
type DedicatedHostClient struct {
Client *resourcemanager.Client
}
func NewDedicatedHostClientWithBaseURI ¶
func NewDedicatedHostClientWithBaseURI(sdkApi sdkEnv.Api) (*DedicatedHostClient, error)
func (DedicatedHostClient) ListByHostGroup ¶
func (c DedicatedHostClient) ListByHostGroup(ctx context.Context, id commonids.DedicatedHostGroupId) (result ListByHostGroupOperationResponse, err error)
ListByHostGroup ...
func (DedicatedHostClient) ListByHostGroupComplete ¶
func (c DedicatedHostClient) ListByHostGroupComplete(ctx context.Context, id commonids.DedicatedHostGroupId) (ListByHostGroupCompleteResult, error)
ListByHostGroupComplete retrieves all the results into a single object
func (DedicatedHostClient) ListByHostGroupCompleteMatchingPredicate ¶
func (c DedicatedHostClient) ListByHostGroupCompleteMatchingPredicate(ctx context.Context, id commonids.DedicatedHostGroupId, predicate DedicatedHostOperationPredicate) (result ListByHostGroupCompleteResult, err error)
ListByHostGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (DedicatedHostClient) Restart ¶
func (c DedicatedHostClient) Restart(ctx context.Context, id commonids.DedicatedHostId) (result RestartOperationResponse, err error)
Restart ...
func (DedicatedHostClient) RestartThenPoll ¶
func (c DedicatedHostClient) RestartThenPoll(ctx context.Context, id commonids.DedicatedHostId) error
RestartThenPoll performs Restart then polls until it's completed
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 ¶
func (s *DedicatedHostLicenseTypes) UnmarshalJSON(bytes []byte) error
type DedicatedHostOperationPredicate ¶
type DedicatedHostOperationPredicate struct { Id *string Location *string Name *string Type *string }
func (DedicatedHostOperationPredicate) Matches ¶
func (p DedicatedHostOperationPredicate) Matches(input DedicatedHost) bool
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 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 ListByHostGroupCompleteResult ¶
type ListByHostGroupCompleteResult struct { LatestHttpResponse *http.Response Items []DedicatedHost }
type ListByHostGroupCustomPager ¶ added in v0.20240628.1153531
func (*ListByHostGroupCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListByHostGroupCustomPager) NextPageLink() *odata.Link
type ListByHostGroupOperationResponse ¶
type ListByHostGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]DedicatedHost }
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
- method_listbyhostgroup.go
- method_restart.go
- model_dedicatedhost.go
- model_dedicatedhostallocatablevm.go
- model_dedicatedhostavailablecapacity.go
- model_dedicatedhostinstanceview.go
- model_dedicatedhostproperties.go
- model_instanceviewstatus.go
- model_sku.go
- model_subresourcereadonly.go
- predicates.go
- version.go
Click to show internal directories.
Click to hide internal directories.