Documentation ¶
Index ¶
- func PossibleValuesForAgentStatus() []string
- func PossibleValuesForProvisioningState() []string
- func ValidateAgentID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateStorageMoverID(input interface{}, key string) (warnings []string, errors []error)
- type Agent
- type AgentId
- type AgentOperationPredicate
- type AgentProperties
- type AgentPropertiesErrorDetails
- type AgentStatus
- type AgentUpdateParameters
- type AgentUpdateProperties
- type AgentsClient
- func (c AgentsClient) CreateOrUpdate(ctx context.Context, id AgentId, input Agent) (result CreateOrUpdateOperationResponse, err error)
- func (c AgentsClient) Delete(ctx context.Context, id AgentId) (result DeleteOperationResponse, err error)
- func (c AgentsClient) DeleteThenPoll(ctx context.Context, id AgentId) error
- func (c AgentsClient) Get(ctx context.Context, id AgentId) (result GetOperationResponse, err error)
- func (c AgentsClient) List(ctx context.Context, id StorageMoverId) (result ListOperationResponse, err error)
- func (c AgentsClient) ListComplete(ctx context.Context, id StorageMoverId) (ListCompleteResult, error)
- func (c AgentsClient) ListCompleteMatchingPredicate(ctx context.Context, id StorageMoverId, predicate AgentOperationPredicate) (result ListCompleteResult, err error)
- func (c AgentsClient) Update(ctx context.Context, id AgentId, input AgentUpdateParameters) (result UpdateOperationResponse, err error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListCompleteResult
- type ListCustomPager
- type ListOperationResponse
- type ProvisioningState
- type StorageMoverId
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAgentStatus ¶
func PossibleValuesForAgentStatus() []string
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func ValidateAgentID ¶
ValidateAgentID checks that 'input' can be parsed as a Agent ID
func ValidateStorageMoverID ¶
ValidateStorageMoverID checks that 'input' can be parsed as a Storage Mover ID
Types ¶
type Agent ¶
type Agent struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties AgentProperties `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type AgentId ¶
type AgentId struct { SubscriptionId string ResourceGroupName string StorageMoverName string AgentName string }
AgentId is a struct representing the Resource ID for a Agent
func NewAgentID ¶
func NewAgentID(subscriptionId string, resourceGroupName string, storageMoverName string, agentName string) AgentId
NewAgentID returns a new AgentId struct
func ParseAgentID ¶
ParseAgentID parses 'input' into a AgentId
func ParseAgentIDInsensitively ¶
ParseAgentIDInsensitively parses 'input' case-insensitively into a AgentId note: this method should only be used for API response data and not user input
func (*AgentId) FromParseResult ¶
func (id *AgentId) FromParseResult(input resourceids.ParseResult) error
func (AgentId) Segments ¶
func (id AgentId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Agent ID
type AgentOperationPredicate ¶
func (AgentOperationPredicate) Matches ¶
func (p AgentOperationPredicate) Matches(input Agent) bool
type AgentProperties ¶
type AgentProperties struct { AgentStatus *AgentStatus `json:"agentStatus,omitempty"` AgentVersion *string `json:"agentVersion,omitempty"` ArcResourceId string `json:"arcResourceId"` ArcVMUuid string `json:"arcVmUuid"` Description *string `json:"description,omitempty"` ErrorDetails *AgentPropertiesErrorDetails `json:"errorDetails,omitempty"` LastStatusUpdate *string `json:"lastStatusUpdate,omitempty"` LocalIPAddress *string `json:"localIPAddress,omitempty"` MemoryInMB *int64 `json:"memoryInMB,omitempty"` NumberOfCores *int64 `json:"numberOfCores,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` UptimeInSeconds *int64 `json:"uptimeInSeconds,omitempty"` }
func (*AgentProperties) GetLastStatusUpdateAsTime ¶
func (o *AgentProperties) GetLastStatusUpdateAsTime() (*time.Time, error)
func (*AgentProperties) SetLastStatusUpdateAsTime ¶
func (o *AgentProperties) SetLastStatusUpdateAsTime(input time.Time)
type AgentStatus ¶
type AgentStatus string
const ( AgentStatusExecuting AgentStatus = "Executing" AgentStatusOffline AgentStatus = "Offline" AgentStatusOnline AgentStatus = "Online" AgentStatusRegistering AgentStatus = "Registering" AgentStatusRequiresAttention AgentStatus = "RequiresAttention" AgentStatusUnregistering AgentStatus = "Unregistering" )
func (*AgentStatus) UnmarshalJSON ¶
func (s *AgentStatus) UnmarshalJSON(bytes []byte) error
type AgentUpdateParameters ¶
type AgentUpdateParameters struct {
Properties *AgentUpdateProperties `json:"properties,omitempty"`
}
type AgentUpdateProperties ¶
type AgentUpdateProperties struct {
Description *string `json:"description,omitempty"`
}
type AgentsClient ¶
type AgentsClient struct {
Client *resourcemanager.Client
}
func NewAgentsClientWithBaseURI ¶
func NewAgentsClientWithBaseURI(sdkApi sdkEnv.Api) (*AgentsClient, error)
func (AgentsClient) CreateOrUpdate ¶
func (c AgentsClient) CreateOrUpdate(ctx context.Context, id AgentId, input Agent) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (AgentsClient) Delete ¶
func (c AgentsClient) Delete(ctx context.Context, id AgentId) (result DeleteOperationResponse, err error)
Delete ...
func (AgentsClient) DeleteThenPoll ¶
func (c AgentsClient) DeleteThenPoll(ctx context.Context, id AgentId) error
DeleteThenPoll performs Delete then polls until it's completed
func (AgentsClient) Get ¶
func (c AgentsClient) Get(ctx context.Context, id AgentId) (result GetOperationResponse, err error)
Get ...
func (AgentsClient) List ¶
func (c AgentsClient) List(ctx context.Context, id StorageMoverId) (result ListOperationResponse, err error)
List ...
func (AgentsClient) ListComplete ¶
func (c AgentsClient) ListComplete(ctx context.Context, id StorageMoverId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (AgentsClient) ListCompleteMatchingPredicate ¶
func (c AgentsClient) ListCompleteMatchingPredicate(ctx context.Context, id StorageMoverId, predicate AgentOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (AgentsClient) Update ¶
func (c AgentsClient) Update(ctx context.Context, id AgentId, input AgentUpdateParameters) (result UpdateOperationResponse, err error)
Update ...
type DeleteOperationResponse ¶
type GetOperationResponse ¶
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 (
ProvisioningStateSucceeded ProvisioningState = "Succeeded"
)
func (*ProvisioningState) UnmarshalJSON ¶
func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error
type StorageMoverId ¶
type StorageMoverId struct { SubscriptionId string ResourceGroupName string StorageMoverName string }
StorageMoverId is a struct representing the Resource ID for a Storage Mover
func NewStorageMoverID ¶
func NewStorageMoverID(subscriptionId string, resourceGroupName string, storageMoverName string) StorageMoverId
NewStorageMoverID returns a new StorageMoverId struct
func ParseStorageMoverID ¶
func ParseStorageMoverID(input string) (*StorageMoverId, error)
ParseStorageMoverID parses 'input' into a StorageMoverId
func ParseStorageMoverIDInsensitively ¶
func ParseStorageMoverIDInsensitively(input string) (*StorageMoverId, error)
ParseStorageMoverIDInsensitively parses 'input' case-insensitively into a StorageMoverId note: this method should only be used for API response data and not user input
func (*StorageMoverId) FromParseResult ¶
func (id *StorageMoverId) FromParseResult(input resourceids.ParseResult) error
func (StorageMoverId) ID ¶
func (id StorageMoverId) ID() string
ID returns the formatted Storage Mover ID
func (StorageMoverId) Segments ¶
func (id StorageMoverId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Storage Mover ID
func (StorageMoverId) String ¶
func (id StorageMoverId) String() string
String returns a human-readable description of this Storage Mover ID
Source Files ¶
- client.go
- constants.go
- id_agent.go
- id_storagemover.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_list.go
- method_update.go
- model_agent.go
- model_agentproperties.go
- model_agentpropertieserrordetails.go
- model_agentupdateparameters.go
- model_agentupdateproperties.go
- predicates.go
- version.go