Documentation ¶
Index ¶
- func PossibleValuesForProvisioningState() []string
- func ValidateHostID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOperationResponse
- type DeleteOperationOptions
- type DeleteOperationResponse
- type ExtendedLocation
- type GetOperationResponse
- type Host
- type HostId
- type HostOperationPredicate
- type HostProperties
- type HostsClient
- func (c HostsClient) Create(ctx context.Context, id HostId, input Host) (result CreateOperationResponse, err error)
- func (c HostsClient) CreateThenPoll(ctx context.Context, id HostId, input Host) error
- func (c HostsClient) Delete(ctx context.Context, id HostId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
- func (c HostsClient) DeleteThenPoll(ctx context.Context, id HostId, options DeleteOperationOptions) error
- func (c HostsClient) Get(ctx context.Context, id HostId) (result GetOperationResponse, err error)
- func (c HostsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
- func (c HostsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
- func (c HostsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
- func (c HostsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListByResourceGroupCompleteResult, err error)
- func (c HostsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
- func (c HostsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListCompleteResult, err error)
- func (c HostsClient) Update(ctx context.Context, id HostId, input ResourcePatch) (result UpdateOperationResponse, err error)
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupCustomPager
- type ListByResourceGroupOperationResponse
- type ListCompleteResult
- type ListCustomPager
- type ListOperationResponse
- type ProvisioningState
- type ResourcePatch
- type ResourceStatus
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func ValidateHostID ¶
ValidateHostID checks that 'input' can be parsed as a Host ID
Types ¶
type CreateOperationResponse ¶
type DeleteOperationOptions ¶
type DeleteOperationOptions struct {
Force *bool
}
func DefaultDeleteOperationOptions ¶
func DefaultDeleteOperationOptions() DeleteOperationOptions
func (DeleteOperationOptions) ToHeaders ¶
func (o DeleteOperationOptions) ToHeaders() *client.Headers
func (DeleteOperationOptions) ToOData ¶
func (o DeleteOperationOptions) ToOData() *odata.Query
func (DeleteOperationOptions) ToQuery ¶
func (o DeleteOperationOptions) ToQuery() *client.QueryParams
type DeleteOperationResponse ¶
type ExtendedLocation ¶
type GetOperationResponse ¶
type Host ¶
type Host struct { ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` Id *string `json:"id,omitempty"` Kind *string `json:"kind,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties HostProperties `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type HostId ¶
HostId is a struct representing the Resource ID for a Host
func ParseHostID ¶
ParseHostID parses 'input' into a HostId
func ParseHostIDInsensitively ¶
ParseHostIDInsensitively parses 'input' case-insensitively into a HostId note: this method should only be used for API response data and not user input
func (*HostId) FromParseResult ¶
func (id *HostId) FromParseResult(input resourceids.ParseResult) error
func (HostId) Segments ¶
func (id HostId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Host ID
type HostOperationPredicate ¶
type HostOperationPredicate struct { Id *string Kind *string Location *string Name *string Type *string }
func (HostOperationPredicate) Matches ¶
func (p HostOperationPredicate) Matches(input Host) bool
type HostProperties ¶
type HostProperties struct { CpuMhz *int64 `json:"cpuMhz,omitempty"` CustomResourceName *string `json:"customResourceName,omitempty"` DatastoreIds *[]string `json:"datastoreIds,omitempty"` InventoryItemId *string `json:"inventoryItemId,omitempty"` MemorySizeGB *int64 `json:"memorySizeGB,omitempty"` MoName *string `json:"moName,omitempty"` MoRefId *string `json:"moRefId,omitempty"` NetworkIds *[]string `json:"networkIds,omitempty"` OverallCPUUsageMHz *int64 `json:"overallCpuUsageMHz,omitempty"` OverallMemoryUsageGB *int64 `json:"overallMemoryUsageGB,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Statuses *[]ResourceStatus `json:"statuses,omitempty"` Uuid *string `json:"uuid,omitempty"` VCenterId *string `json:"vCenterId,omitempty"` }
type HostsClient ¶
type HostsClient struct {
Client *resourcemanager.Client
}
func NewHostsClientWithBaseURI ¶
func NewHostsClientWithBaseURI(sdkApi sdkEnv.Api) (*HostsClient, error)
func (HostsClient) Create ¶
func (c HostsClient) Create(ctx context.Context, id HostId, input Host) (result CreateOperationResponse, err error)
Create ...
func (HostsClient) CreateThenPoll ¶
CreateThenPoll performs Create then polls until it's completed
func (HostsClient) Delete ¶
func (c HostsClient) Delete(ctx context.Context, id HostId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
Delete ...
func (HostsClient) DeleteThenPoll ¶
func (c HostsClient) DeleteThenPoll(ctx context.Context, id HostId, options DeleteOperationOptions) error
DeleteThenPoll performs Delete then polls until it's completed
func (HostsClient) Get ¶
func (c HostsClient) Get(ctx context.Context, id HostId) (result GetOperationResponse, err error)
Get ...
func (HostsClient) List ¶
func (c HostsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
List ...
func (HostsClient) ListByResourceGroup ¶
func (c HostsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (HostsClient) ListByResourceGroupComplete ¶
func (c HostsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all the results into a single object
func (HostsClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c HostsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate HostOperationPredicate) (result ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (HostsClient) ListComplete ¶
func (c HostsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (HostsClient) ListCompleteMatchingPredicate ¶
func (c HostsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate HostOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (HostsClient) Update ¶
func (c HostsClient) Update(ctx context.Context, id HostId, input ResourcePatch) (result UpdateOperationResponse, err error)
Update ...
type ListByResourceGroupCustomPager ¶ added in v0.20240628.1153531
func (*ListByResourceGroupCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link
type ListCompleteResult ¶
type ListCustomPager ¶ added in v0.20240628.1153531
func (*ListCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationResponse ¶
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateAccepted ProvisioningState = "Accepted" ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreated ProvisioningState = "Created" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateProvisioning ProvisioningState = "Provisioning" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func (*ProvisioningState) UnmarshalJSON ¶
func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error
type ResourcePatch ¶
type ResourceStatus ¶
type ResourceStatus struct { LastUpdatedAt *string `json:"lastUpdatedAt,omitempty"` Message *string `json:"message,omitempty"` Reason *string `json:"reason,omitempty"` Severity *string `json:"severity,omitempty"` Status *string `json:"status,omitempty"` Type *string `json:"type,omitempty"` }
func (*ResourceStatus) GetLastUpdatedAtAsTime ¶
func (o *ResourceStatus) GetLastUpdatedAtAsTime() (*time.Time, error)
func (*ResourceStatus) SetLastUpdatedAtAsTime ¶
func (o *ResourceStatus) SetLastUpdatedAtAsTime(input time.Time)