Documentation ¶
Index ¶
- 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) (resp ListOperationResponse, err error)
- func (c HostsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (resp 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, ...) (resp 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, ...) (resp ListCompleteResult, err error)
- func (c HostsClient) Update(ctx context.Context, id HostId, input ResourcePatch) (result UpdateOperationResponse, err error)
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type ResourcePatch
- type ResourceStatus
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateHostID ¶
ValidateHostID checks that 'input' can be parsed as a Host ID
Types ¶
type CreateOperationResponse ¶
type CreateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type DeleteOperationOptions ¶
type DeleteOperationOptions struct {
Force *bool
}
func DefaultDeleteOperationOptions ¶
func DefaultDeleteOperationOptions() DeleteOperationOptions
type DeleteOperationResponse ¶
type DeleteOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
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) 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 { CustomResourceName *string `json:"customResourceName,omitempty"` InventoryItemId *string `json:"inventoryItemId,omitempty"` MoName *string `json:"moName,omitempty"` MoRefId *string `json:"moRefId,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` Statuses *[]ResourceStatus `json:"statuses,omitempty"` Uuid *string `json:"uuid,omitempty"` VCenterId *string `json:"vCenterId,omitempty"` }
type HostsClient ¶
func NewHostsClientWithBaseURI ¶
func NewHostsClientWithBaseURI(endpoint string) HostsClient
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) (resp ListOperationResponse, err error)
List ...
func (HostsClient) ListByResourceGroup ¶
func (c HostsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (resp ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (HostsClient) ListByResourceGroupComplete ¶
func (c HostsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all of the results into a single object
func (HostsClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c HostsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate HostOperationPredicate) (resp ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (HostsClient) ListComplete ¶
func (c HostsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (HostsClient) ListCompleteMatchingPredicate ¶
func (c HostsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate HostOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (HostsClient) Update ¶
func (c HostsClient) Update(ctx context.Context, id HostId, input ResourcePatch) (result UpdateOperationResponse, err error)
Update ...
type ListByResourceGroupCompleteResult ¶
type ListByResourceGroupCompleteResult struct {
Items []Host
}
type ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response Model *[]Host // contains filtered or unexported fields }
func (ListByResourceGroupOperationResponse) HasMore ¶
func (r ListByResourceGroupOperationResponse) HasMore() bool
func (ListByResourceGroupOperationResponse) LoadMore ¶
func (r ListByResourceGroupOperationResponse) LoadMore(ctx context.Context) (resp ListByResourceGroupOperationResponse, err error)
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []Host
}
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]Host // contains filtered or unexported fields }
func (ListOperationResponse) HasMore ¶
func (r ListOperationResponse) HasMore() bool
func (ListOperationResponse) LoadMore ¶
func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err 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)
type UpdateOperationResponse ¶
Source Files ¶
- client.go
- id_host.go
- method_create_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_list_autorest.go
- method_listbyresourcegroup_autorest.go
- method_update_autorest.go
- model_extendedlocation.go
- model_host.go
- model_hostproperties.go
- model_resourcepatch.go
- model_resourcestatus.go
- predicates.go
- version.go