azurestackhci

package
v62.2.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package azurestackhci implements the Azure ARM Azurestackhci service API version 2021-01-01-preview.

Azure Stack HCI management service

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Azurestackhci
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type ActionType

type ActionType string

ActionType enumerates the values for action type.

const (
	// ActionTypeInternal ...
	ActionTypeInternal ActionType = "Internal"
)

func PossibleActionTypeValues

func PossibleActionTypeValues() []ActionType

PossibleActionTypeValues returns an array of possible values for the ActionType const type.

type ArcSetting

type ArcSetting struct {
	autorest.Response `json:"-"`
	// SystemData - READ-ONLY; System data of ArcSetting resource
	*SystemData `json:"systemData,omitempty"`
	// ArcSettingProperties - ArcSetting properties.
	*ArcSettingProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

ArcSetting arcSetting details.

func (ArcSetting) MarshalJSON

func (as ArcSetting) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ArcSetting.

func (*ArcSetting) UnmarshalJSON

func (as *ArcSetting) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ArcSetting struct.

type ArcSettingAggregateState

type ArcSettingAggregateState string

ArcSettingAggregateState enumerates the values for arc setting aggregate state.

const (
	// ArcSettingAggregateStateCanceled ...
	ArcSettingAggregateStateCanceled ArcSettingAggregateState = "Canceled"
	// ArcSettingAggregateStateConnected ...
	ArcSettingAggregateStateConnected ArcSettingAggregateState = "Connected"
	// ArcSettingAggregateStateCreating ...
	ArcSettingAggregateStateCreating ArcSettingAggregateState = "Creating"
	// ArcSettingAggregateStateDeleted ...
	ArcSettingAggregateStateDeleted ArcSettingAggregateState = "Deleted"
	// ArcSettingAggregateStateDeleting ...
	ArcSettingAggregateStateDeleting ArcSettingAggregateState = "Deleting"
	// ArcSettingAggregateStateDisconnected ...
	ArcSettingAggregateStateDisconnected ArcSettingAggregateState = "Disconnected"
	// ArcSettingAggregateStateError ...
	ArcSettingAggregateStateError ArcSettingAggregateState = "Error"
	// ArcSettingAggregateStateFailed ...
	ArcSettingAggregateStateFailed ArcSettingAggregateState = "Failed"
	// ArcSettingAggregateStateInProgress ...
	ArcSettingAggregateStateInProgress ArcSettingAggregateState = "InProgress"
	// ArcSettingAggregateStateMoving ...
	ArcSettingAggregateStateMoving ArcSettingAggregateState = "Moving"
	// ArcSettingAggregateStateNotSpecified ...
	ArcSettingAggregateStateNotSpecified ArcSettingAggregateState = "NotSpecified"
	// ArcSettingAggregateStatePartiallyConnected ...
	ArcSettingAggregateStatePartiallyConnected ArcSettingAggregateState = "PartiallyConnected"
	// ArcSettingAggregateStatePartiallySucceeded ...
	ArcSettingAggregateStatePartiallySucceeded ArcSettingAggregateState = "PartiallySucceeded"
	// ArcSettingAggregateStateSucceeded ...
	ArcSettingAggregateStateSucceeded ArcSettingAggregateState = "Succeeded"
	// ArcSettingAggregateStateUpdating ...
	ArcSettingAggregateStateUpdating ArcSettingAggregateState = "Updating"
)

func PossibleArcSettingAggregateStateValues

func PossibleArcSettingAggregateStateValues() []ArcSettingAggregateState

PossibleArcSettingAggregateStateValues returns an array of possible values for the ArcSettingAggregateState const type.

type ArcSettingList

type ArcSettingList struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; List of ArcSetting proxy resources.
	Value *[]ArcSetting `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to the next set of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ArcSettingList list of ArcSetting proxy resources for the HCI cluster.

func (ArcSettingList) IsEmpty

func (asl ArcSettingList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (ArcSettingList) MarshalJSON

func (asl ArcSettingList) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ArcSettingList.

type ArcSettingListIterator

type ArcSettingListIterator struct {
	// contains filtered or unexported fields
}

ArcSettingListIterator provides access to a complete listing of ArcSetting values.

func NewArcSettingListIterator

func NewArcSettingListIterator(page ArcSettingListPage) ArcSettingListIterator

Creates a new instance of the ArcSettingListIterator type.

func (*ArcSettingListIterator) Next

func (iter *ArcSettingListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ArcSettingListIterator) NextWithContext

func (iter *ArcSettingListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ArcSettingListIterator) NotDone

func (iter ArcSettingListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ArcSettingListIterator) Response

func (iter ArcSettingListIterator) Response() ArcSettingList

Response returns the raw server response from the last page request.

func (ArcSettingListIterator) Value

func (iter ArcSettingListIterator) Value() ArcSetting

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ArcSettingListPage

type ArcSettingListPage struct {
	// contains filtered or unexported fields
}

ArcSettingListPage contains a page of ArcSetting values.

func NewArcSettingListPage

func NewArcSettingListPage(cur ArcSettingList, getNextPage func(context.Context, ArcSettingList) (ArcSettingList, error)) ArcSettingListPage

Creates a new instance of the ArcSettingListPage type.

func (*ArcSettingListPage) Next

func (page *ArcSettingListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ArcSettingListPage) NextWithContext

func (page *ArcSettingListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ArcSettingListPage) NotDone

func (page ArcSettingListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ArcSettingListPage) Response

func (page ArcSettingListPage) Response() ArcSettingList

Response returns the raw server response from the last page request.

func (ArcSettingListPage) Values

func (page ArcSettingListPage) Values() []ArcSetting

Values returns the slice of values for the current page or nil if there are no values.

type ArcSettingProperties

type ArcSettingProperties struct {
	// ProvisioningState - READ-ONLY; Provisioning state of the ArcSetting proxy resource. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateAccepted', 'ProvisioningStateProvisioning'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// ArcInstanceResourceGroup - READ-ONLY; The resource group that hosts the Arc agents, ie. Hybrid Compute Machine resources.
	ArcInstanceResourceGroup *string `json:"arcInstanceResourceGroup,omitempty"`
	// AggregateState - READ-ONLY; Aggregate state of Arc agent across the nodes in this HCI cluster. Possible values include: 'ArcSettingAggregateStateNotSpecified', 'ArcSettingAggregateStateError', 'ArcSettingAggregateStateSucceeded', 'ArcSettingAggregateStateCanceled', 'ArcSettingAggregateStateFailed', 'ArcSettingAggregateStateConnected', 'ArcSettingAggregateStateDisconnected', 'ArcSettingAggregateStateDeleted', 'ArcSettingAggregateStateCreating', 'ArcSettingAggregateStateUpdating', 'ArcSettingAggregateStateDeleting', 'ArcSettingAggregateStateMoving', 'ArcSettingAggregateStatePartiallySucceeded', 'ArcSettingAggregateStatePartiallyConnected', 'ArcSettingAggregateStateInProgress'
	AggregateState ArcSettingAggregateState `json:"aggregateState,omitempty"`
	// PerNodeDetails - READ-ONLY; State of Arc agent in each of the nodes.
	PerNodeDetails *[]PerNodeState `json:"perNodeDetails,omitempty"`
}

ArcSettingProperties arcSetting properties.

func (ArcSettingProperties) MarshalJSON

func (asp ArcSettingProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ArcSettingProperties.

type ArcSettingsClient

type ArcSettingsClient struct {
	BaseClient
}

ArcSettingsClient is the azure Stack HCI management service

func NewArcSettingsClient

func NewArcSettingsClient(subscriptionID string) ArcSettingsClient

NewArcSettingsClient creates an instance of the ArcSettingsClient client.

func NewArcSettingsClientWithBaseURI

func NewArcSettingsClientWithBaseURI(baseURI string, subscriptionID string) ArcSettingsClient

NewArcSettingsClientWithBaseURI creates an instance of the ArcSettingsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ArcSettingsClient) Create

func (client ArcSettingsClient) Create(ctx context.Context, resourceGroupName string, clusterName string, arcSettingName string, arcSetting ArcSetting) (result ArcSetting, err error)

Create create ArcSetting for HCI cluster. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - the name of the cluster. arcSettingName - the name of the proxy resource holding details of HCI ArcSetting information. arcSetting - parameters supplied to the Create ArcSetting resource for this HCI cluster.

func (ArcSettingsClient) CreatePreparer

func (client ArcSettingsClient) CreatePreparer(ctx context.Context, resourceGroupName string, clusterName string, arcSettingName string, arcSetting ArcSetting) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ArcSettingsClient) CreateResponder

func (client ArcSettingsClient) CreateResponder(resp *http.Response) (result ArcSetting, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (ArcSettingsClient) CreateSender

func (client ArcSettingsClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (ArcSettingsClient) Delete

func (client ArcSettingsClient) Delete(ctx context.Context, resourceGroupName string, clusterName string, arcSettingName string) (result ArcSettingsDeleteFuture, err error)

Delete delete ArcSetting resource details of HCI Cluster. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - the name of the cluster. arcSettingName - the name of the proxy resource holding details of HCI ArcSetting information.

func (ArcSettingsClient) DeletePreparer

func (client ArcSettingsClient) DeletePreparer(ctx context.Context, resourceGroupName string, clusterName string, arcSettingName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ArcSettingsClient) DeleteResponder

func (client ArcSettingsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ArcSettingsClient) DeleteSender

func (client ArcSettingsClient) DeleteSender(req *http.Request) (future ArcSettingsDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ArcSettingsClient) Get

func (client ArcSettingsClient) Get(ctx context.Context, resourceGroupName string, clusterName string, arcSettingName string) (result ArcSetting, err error)

Get get ArcSetting resource details of HCI Cluster. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - the name of the cluster. arcSettingName - the name of the proxy resource holding details of HCI ArcSetting information.

func (ArcSettingsClient) GetPreparer

func (client ArcSettingsClient) GetPreparer(ctx context.Context, resourceGroupName string, clusterName string, arcSettingName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ArcSettingsClient) GetResponder

func (client ArcSettingsClient) GetResponder(resp *http.Response) (result ArcSetting, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ArcSettingsClient) GetSender

func (client ArcSettingsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ArcSettingsClient) ListByCluster

func (client ArcSettingsClient) ListByCluster(ctx context.Context, resourceGroupName string, clusterName string) (result ArcSettingListPage, err error)

ListByCluster get ArcSetting resources of HCI Cluster. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - the name of the cluster.

func (ArcSettingsClient) ListByClusterComplete

func (client ArcSettingsClient) ListByClusterComplete(ctx context.Context, resourceGroupName string, clusterName string) (result ArcSettingListIterator, err error)

ListByClusterComplete enumerates all values, automatically crossing page boundaries as required.

func (ArcSettingsClient) ListByClusterPreparer

func (client ArcSettingsClient) ListByClusterPreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error)

ListByClusterPreparer prepares the ListByCluster request.

func (ArcSettingsClient) ListByClusterResponder

func (client ArcSettingsClient) ListByClusterResponder(resp *http.Response) (result ArcSettingList, err error)

ListByClusterResponder handles the response to the ListByCluster request. The method always closes the http.Response Body.

func (ArcSettingsClient) ListByClusterSender

func (client ArcSettingsClient) ListByClusterSender(req *http.Request) (*http.Response, error)

ListByClusterSender sends the ListByCluster request. The method will close the http.Response Body if it receives an error.

type ArcSettingsDeleteFuture

type ArcSettingsDeleteFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(ArcSettingsClient) (autorest.Response, error)
}

ArcSettingsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ArcSettingsDeleteFuture) UnmarshalJSON

func (future *ArcSettingsDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type AzureEntityResource

type AzureEntityResource struct {
	// Etag - READ-ONLY; Resource Etag.
	Etag *string `json:"etag,omitempty"`
	// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

AzureEntityResource the resource model definition for an Azure Resource Manager resource with an etag.

func (AzureEntityResource) MarshalJSON

func (aer AzureEntityResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureEntityResource.

type BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

BaseClient is the base client for Azurestackhci.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type Cluster

type Cluster struct {
	autorest.Response `json:"-"`
	// SystemData - READ-ONLY; System data of Cluster resource
	*SystemData `json:"systemData,omitempty"`
	// ClusterProperties - Cluster properties.
	*ClusterProperties `json:"properties,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// Location - The geo-location where the resource lives
	Location *string `json:"location,omitempty"`
	// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

Cluster cluster details.

func (Cluster) MarshalJSON

func (c Cluster) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Cluster.

func (*Cluster) UnmarshalJSON

func (c *Cluster) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Cluster struct.

type ClusterList

type ClusterList struct {
	autorest.Response `json:"-"`
	// Value - List of clusters.
	Value *[]Cluster `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to the next set of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ClusterList list of clusters.

func (ClusterList) IsEmpty

func (cl ClusterList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (ClusterList) MarshalJSON

func (cl ClusterList) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ClusterList.

type ClusterListIterator

type ClusterListIterator struct {
	// contains filtered or unexported fields
}

ClusterListIterator provides access to a complete listing of Cluster values.

func NewClusterListIterator

func NewClusterListIterator(page ClusterListPage) ClusterListIterator

Creates a new instance of the ClusterListIterator type.

func (*ClusterListIterator) Next

func (iter *ClusterListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ClusterListIterator) NextWithContext

func (iter *ClusterListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ClusterListIterator) NotDone

func (iter ClusterListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ClusterListIterator) Response

func (iter ClusterListIterator) Response() ClusterList

Response returns the raw server response from the last page request.

func (ClusterListIterator) Value

func (iter ClusterListIterator) Value() Cluster

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ClusterListPage

type ClusterListPage struct {
	// contains filtered or unexported fields
}

ClusterListPage contains a page of Cluster values.

func NewClusterListPage

func NewClusterListPage(cur ClusterList, getNextPage func(context.Context, ClusterList) (ClusterList, error)) ClusterListPage

Creates a new instance of the ClusterListPage type.

func (*ClusterListPage) Next

func (page *ClusterListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ClusterListPage) NextWithContext

func (page *ClusterListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ClusterListPage) NotDone

func (page ClusterListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ClusterListPage) Response

func (page ClusterListPage) Response() ClusterList

Response returns the raw server response from the last page request.

func (ClusterListPage) Values

func (page ClusterListPage) Values() []Cluster

Values returns the slice of values for the current page or nil if there are no values.

type ClusterNode

type ClusterNode struct {
	// Name - READ-ONLY; Name of the cluster node.
	Name *string `json:"name,omitempty"`
	// ID - READ-ONLY; Id of the node in the cluster.
	ID *float64 `json:"id,omitempty"`
	// Manufacturer - READ-ONLY; Manufacturer of the cluster node hardware.
	Manufacturer *string `json:"manufacturer,omitempty"`
	// Model - READ-ONLY; Model name of the cluster node hardware.
	Model *string `json:"model,omitempty"`
	// OsName - READ-ONLY; Operating system running on the cluster node.
	OsName *string `json:"osName,omitempty"`
	// OsVersion - READ-ONLY; Version of the operating system running on the cluster node.
	OsVersion *string `json:"osVersion,omitempty"`
	// SerialNumber - READ-ONLY; Immutable id of the cluster node.
	SerialNumber *string `json:"serialNumber,omitempty"`
	// CoreCount - READ-ONLY; Number of physical cores on the cluster node.
	CoreCount *float64 `json:"coreCount,omitempty"`
	// MemoryInGiB - READ-ONLY; Total available memory on the cluster node (in GiB).
	MemoryInGiB *float64 `json:"memoryInGiB,omitempty"`
}

ClusterNode cluster node details.

func (ClusterNode) MarshalJSON

func (cn ClusterNode) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ClusterNode.

type ClusterPatch

type ClusterPatch struct {
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ClusterPatchProperties - Cluster properties.
	*ClusterPatchProperties `json:"properties,omitempty"`
}

ClusterPatch cluster details to update.

func (ClusterPatch) MarshalJSON

func (cp ClusterPatch) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ClusterPatch.

func (*ClusterPatch) UnmarshalJSON

func (cp *ClusterPatch) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ClusterPatch struct.

type ClusterPatchProperties

type ClusterPatchProperties struct {
	// CloudManagementEndpoint - Endpoint configured for management from the Azure portal
	CloudManagementEndpoint *string `json:"cloudManagementEndpoint,omitempty"`
}

ClusterPatchProperties cluster properties.

type ClusterProperties

type ClusterProperties struct {
	// ProvisioningState - READ-ONLY; Provisioning state. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateAccepted', 'ProvisioningStateProvisioning'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// Status - READ-ONLY; Status of the cluster agent. Possible values include: 'StatusNotYetRegistered', 'StatusConnectedRecently', 'StatusNotConnectedRecently', 'StatusDisconnected', 'StatusError'
	Status Status `json:"status,omitempty"`
	// CloudID - READ-ONLY; Unique, immutable resource id.
	CloudID *string `json:"cloudId,omitempty"`
	// CloudManagementEndpoint - Endpoint configured for management from the Azure portal
	CloudManagementEndpoint *string `json:"cloudManagementEndpoint,omitempty"`
	// AadClientID - App id of cluster AAD identity.
	AadClientID *string `json:"aadClientId,omitempty"`
	// AadTenantID - Tenant id of cluster AAD identity.
	AadTenantID *string `json:"aadTenantId,omitempty"`
	// ReportedProperties - READ-ONLY; Properties reported by cluster agent.
	ReportedProperties *ClusterReportedProperties `json:"reportedProperties,omitempty"`
	// TrialDaysRemaining - READ-ONLY; Number of days remaining in the trial period.
	TrialDaysRemaining *float64 `json:"trialDaysRemaining,omitempty"`
	// BillingModel - READ-ONLY; Type of billing applied to the resource.
	BillingModel *string `json:"billingModel,omitempty"`
	// RegistrationTimestamp - READ-ONLY; First cluster sync timestamp.
	RegistrationTimestamp *date.Time `json:"registrationTimestamp,omitempty"`
	// LastSyncTimestamp - READ-ONLY; Most recent cluster sync timestamp.
	LastSyncTimestamp *date.Time `json:"lastSyncTimestamp,omitempty"`
	// LastBillingTimestamp - READ-ONLY; Most recent billing meter timestamp.
	LastBillingTimestamp *date.Time `json:"lastBillingTimestamp,omitempty"`
}

ClusterProperties cluster properties.

func (ClusterProperties) MarshalJSON

func (cp ClusterProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ClusterProperties.

type ClusterReportedProperties

type ClusterReportedProperties struct {
	// ClusterName - READ-ONLY; Name of the on-prem cluster connected to this resource.
	ClusterName *string `json:"clusterName,omitempty"`
	// ClusterID - READ-ONLY; Unique id generated by the on-prem cluster.
	ClusterID *string `json:"clusterId,omitempty"`
	// ClusterVersion - READ-ONLY; Version of the cluster software.
	ClusterVersion *string `json:"clusterVersion,omitempty"`
	// Nodes - READ-ONLY; List of nodes reported by the cluster.
	Nodes *[]ClusterNode `json:"nodes,omitempty"`
	// LastUpdated - READ-ONLY; Last time the cluster reported the data.
	LastUpdated *date.Time `json:"lastUpdated,omitempty"`
}

ClusterReportedProperties properties reported by cluster agent.

func (ClusterReportedProperties) MarshalJSON

func (crp ClusterReportedProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ClusterReportedProperties.

type ClustersClient

type ClustersClient struct {
	BaseClient
}

ClustersClient is the azure Stack HCI management service

func NewClustersClient

func NewClustersClient(subscriptionID string) ClustersClient

NewClustersClient creates an instance of the ClustersClient client.

func NewClustersClientWithBaseURI

func NewClustersClientWithBaseURI(baseURI string, subscriptionID string) ClustersClient

NewClustersClientWithBaseURI creates an instance of the ClustersClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ClustersClient) Create

func (client ClustersClient) Create(ctx context.Context, resourceGroupName string, clusterName string, cluster Cluster) (result Cluster, err error)

Create create an HCI cluster. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - the name of the cluster. cluster - details of the HCI cluster.

func (ClustersClient) CreatePreparer

func (client ClustersClient) CreatePreparer(ctx context.Context, resourceGroupName string, clusterName string, cluster Cluster) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ClustersClient) CreateResponder

func (client ClustersClient) CreateResponder(resp *http.Response) (result Cluster, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (ClustersClient) CreateSender

func (client ClustersClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (ClustersClient) Delete

func (client ClustersClient) Delete(ctx context.Context, resourceGroupName string, clusterName string) (result autorest.Response, err error)

Delete delete an HCI cluster. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - the name of the cluster.

func (ClustersClient) DeletePreparer

func (client ClustersClient) DeletePreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ClustersClient) DeleteResponder

func (client ClustersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ClustersClient) DeleteSender

func (client ClustersClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ClustersClient) Get

func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, clusterName string) (result Cluster, err error)

Get get HCI cluster. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - the name of the cluster.

func (ClustersClient) GetPreparer

func (client ClustersClient) GetPreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ClustersClient) GetResponder

func (client ClustersClient) GetResponder(resp *http.Response) (result Cluster, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ClustersClient) GetSender

func (client ClustersClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ClustersClient) ListByResourceGroup

func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ClusterListPage, err error)

ListByResourceGroup list all HCI clusters in a resource group. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.

func (ClustersClient) ListByResourceGroupComplete

func (client ClustersClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ClusterListIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (ClustersClient) ListByResourceGroupPreparer

func (client ClustersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ClustersClient) ListByResourceGroupResponder

func (client ClustersClient) ListByResourceGroupResponder(resp *http.Response) (result ClusterList, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (ClustersClient) ListByResourceGroupSender

func (client ClustersClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (ClustersClient) ListBySubscription

func (client ClustersClient) ListBySubscription(ctx context.Context) (result ClusterListPage, err error)

ListBySubscription list all HCI clusters in a subscription.

func (ClustersClient) ListBySubscriptionComplete

func (client ClustersClient) ListBySubscriptionComplete(ctx context.Context) (result ClusterListIterator, err error)

ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.

func (ClustersClient) ListBySubscriptionPreparer

func (client ClustersClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (ClustersClient) ListBySubscriptionResponder

func (client ClustersClient) ListBySubscriptionResponder(resp *http.Response) (result ClusterList, err error)

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (ClustersClient) ListBySubscriptionSender

func (client ClustersClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)

ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.

func (ClustersClient) Update

func (client ClustersClient) Update(ctx context.Context, resourceGroupName string, clusterName string, cluster ClusterPatch) (result Cluster, err error)

Update update an HCI cluster. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - the name of the cluster. cluster - details of the HCI cluster.

func (ClustersClient) UpdatePreparer

func (client ClustersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, cluster ClusterPatch) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ClustersClient) UpdateResponder

func (client ClustersClient) UpdateResponder(resp *http.Response) (result Cluster, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ClustersClient) UpdateSender

func (client ClustersClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type CreatedByType

type CreatedByType string

CreatedByType enumerates the values for created by type.

const (
	// CreatedByTypeApplication ...
	CreatedByTypeApplication CreatedByType = "Application"
	// CreatedByTypeKey ...
	CreatedByTypeKey CreatedByType = "Key"
	// CreatedByTypeManagedIdentity ...
	CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
	// CreatedByTypeUser ...
	CreatedByTypeUser CreatedByType = "User"
)

func PossibleCreatedByTypeValues

func PossibleCreatedByTypeValues() []CreatedByType

PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.

type ErrorAdditionalInfo

type ErrorAdditionalInfo struct {
	// Type - READ-ONLY; The additional info type.
	Type *string `json:"type,omitempty"`
	// Info - READ-ONLY; The additional info.
	Info interface{} `json:"info,omitempty"`
}

ErrorAdditionalInfo the resource management error additional info.

func (ErrorAdditionalInfo) MarshalJSON

func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ErrorAdditionalInfo.

type ErrorDetail

type ErrorDetail struct {
	// Code - READ-ONLY; The error code.
	Code *string `json:"code,omitempty"`
	// Message - READ-ONLY; The error message.
	Message *string `json:"message,omitempty"`
	// Target - READ-ONLY; The error target.
	Target *string `json:"target,omitempty"`
	// Details - READ-ONLY; The error details.
	Details *[]ErrorDetail `json:"details,omitempty"`
	// AdditionalInfo - READ-ONLY; The error additional info.
	AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"`
}

ErrorDetail the error detail.

func (ErrorDetail) MarshalJSON

func (ed ErrorDetail) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ErrorDetail.

type ErrorResponse

type ErrorResponse struct {
	// Error - The error object.
	Error *ErrorDetail `json:"error,omitempty"`
}

ErrorResponse common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).

type Extension

type Extension struct {
	autorest.Response `json:"-"`
	// SystemData - READ-ONLY; System data of Extension resource.
	*SystemData `json:"systemData,omitempty"`
	// ExtensionProperties - Describes Machine Extension Properties.
	*ExtensionProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

Extension details of a particular extension in HCI Cluster.

func (Extension) MarshalJSON

func (e Extension) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Extension.

func (*Extension) UnmarshalJSON

func (e *Extension) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Extension struct.

type ExtensionAggregateState

type ExtensionAggregateState string

ExtensionAggregateState enumerates the values for extension aggregate state.

const (
	// ExtensionAggregateStateCanceled ...
	ExtensionAggregateStateCanceled ExtensionAggregateState = "Canceled"
	// ExtensionAggregateStateConnected ...
	ExtensionAggregateStateConnected ExtensionAggregateState = "Connected"
	// ExtensionAggregateStateCreating ...
	ExtensionAggregateStateCreating ExtensionAggregateState = "Creating"
	// ExtensionAggregateStateDeleted ...
	ExtensionAggregateStateDeleted ExtensionAggregateState = "Deleted"
	// ExtensionAggregateStateDeleting ...
	ExtensionAggregateStateDeleting ExtensionAggregateState = "Deleting"
	// ExtensionAggregateStateDisconnected ...
	ExtensionAggregateStateDisconnected ExtensionAggregateState = "Disconnected"
	// ExtensionAggregateStateError ...
	ExtensionAggregateStateError ExtensionAggregateState = "Error"
	// ExtensionAggregateStateFailed ...
	ExtensionAggregateStateFailed ExtensionAggregateState = "Failed"
	// ExtensionAggregateStateInProgress ...
	ExtensionAggregateStateInProgress ExtensionAggregateState = "InProgress"
	// ExtensionAggregateStateMoving ...
	ExtensionAggregateStateMoving ExtensionAggregateState = "Moving"
	// ExtensionAggregateStateNotSpecified ...
	ExtensionAggregateStateNotSpecified ExtensionAggregateState = "NotSpecified"
	// ExtensionAggregateStatePartiallyConnected ...
	ExtensionAggregateStatePartiallyConnected ExtensionAggregateState = "PartiallyConnected"
	// ExtensionAggregateStatePartiallySucceeded ...
	ExtensionAggregateStatePartiallySucceeded ExtensionAggregateState = "PartiallySucceeded"
	// ExtensionAggregateStateSucceeded ...
	ExtensionAggregateStateSucceeded ExtensionAggregateState = "Succeeded"
	// ExtensionAggregateStateUpdating ...
	ExtensionAggregateStateUpdating ExtensionAggregateState = "Updating"
)

func PossibleExtensionAggregateStateValues

func PossibleExtensionAggregateStateValues() []ExtensionAggregateState

PossibleExtensionAggregateStateValues returns an array of possible values for the ExtensionAggregateState const type.

type ExtensionList

type ExtensionList struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; List of Extensions in HCI cluster.
	Value *[]Extension `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to the next set of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ExtensionList list of Extensions in HCI cluster.

func (ExtensionList) IsEmpty

func (el ExtensionList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (ExtensionList) MarshalJSON

func (el ExtensionList) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ExtensionList.

type ExtensionListIterator

type ExtensionListIterator struct {
	// contains filtered or unexported fields
}

ExtensionListIterator provides access to a complete listing of Extension values.

func NewExtensionListIterator

func NewExtensionListIterator(page ExtensionListPage) ExtensionListIterator

Creates a new instance of the ExtensionListIterator type.

func (*ExtensionListIterator) Next

func (iter *ExtensionListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ExtensionListIterator) NextWithContext

func (iter *ExtensionListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ExtensionListIterator) NotDone

func (iter ExtensionListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ExtensionListIterator) Response

func (iter ExtensionListIterator) Response() ExtensionList

Response returns the raw server response from the last page request.

func (ExtensionListIterator) Value

func (iter ExtensionListIterator) Value() Extension

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ExtensionListPage

type ExtensionListPage struct {
	// contains filtered or unexported fields
}

ExtensionListPage contains a page of Extension values.

func NewExtensionListPage

func NewExtensionListPage(cur ExtensionList, getNextPage func(context.Context, ExtensionList) (ExtensionList, error)) ExtensionListPage

Creates a new instance of the ExtensionListPage type.

func (*ExtensionListPage) Next

func (page *ExtensionListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ExtensionListPage) NextWithContext

func (page *ExtensionListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ExtensionListPage) NotDone

func (page ExtensionListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ExtensionListPage) Response

func (page ExtensionListPage) Response() ExtensionList

Response returns the raw server response from the last page request.

func (ExtensionListPage) Values

func (page ExtensionListPage) Values() []Extension

Values returns the slice of values for the current page or nil if there are no values.

type ExtensionParameters

type ExtensionParameters struct {
	// ForceUpdateTag - How the extension handler should be forced to update even if the extension configuration has not changed.
	ForceUpdateTag *string `json:"forceUpdateTag,omitempty"`
	// Publisher - The name of the extension handler publisher.
	Publisher *string `json:"publisher,omitempty"`
	// Type - Specifies the type of the extension; an example is "CustomScriptExtension".
	Type *string `json:"type,omitempty"`
	// TypeHandlerVersion - Specifies the version of the script handler.
	TypeHandlerVersion *string `json:"typeHandlerVersion,omitempty"`
	// AutoUpgradeMinorVersion - Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
	AutoUpgradeMinorVersion *bool `json:"autoUpgradeMinorVersion,omitempty"`
	// Settings - Json formatted public settings for the extension.
	Settings interface{} `json:"settings,omitempty"`
	// ProtectedSettings - Protected settings (may contain secrets).
	ProtectedSettings interface{} `json:"protectedSettings,omitempty"`
}

ExtensionParameters describes the properties of a Machine Extension. This object mirrors the definition in HybridCompute.

type ExtensionProperties

type ExtensionProperties struct {
	// ProvisioningState - READ-ONLY; Provisioning state of the Extension proxy resource. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateAccepted', 'ProvisioningStateProvisioning'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// ExtensionParameters - Parameters specific to this extension type.
	*ExtensionParameters `json:"extensionParameters,omitempty"`
	// AggregateState - READ-ONLY; Aggregate state of Arc Extensions across the nodes in this HCI cluster. Possible values include: 'ExtensionAggregateStateNotSpecified', 'ExtensionAggregateStateError', 'ExtensionAggregateStateSucceeded', 'ExtensionAggregateStateCanceled', 'ExtensionAggregateStateFailed', 'ExtensionAggregateStateConnected', 'ExtensionAggregateStateDisconnected', 'ExtensionAggregateStateDeleted', 'ExtensionAggregateStateCreating', 'ExtensionAggregateStateUpdating', 'ExtensionAggregateStateDeleting', 'ExtensionAggregateStateMoving', 'ExtensionAggregateStatePartiallySucceeded', 'ExtensionAggregateStatePartiallyConnected', 'ExtensionAggregateStateInProgress'
	AggregateState ExtensionAggregateState `json:"aggregateState,omitempty"`
	// PerNodeExtensionDetails - READ-ONLY; State of Arc Extension in each of the nodes.
	PerNodeExtensionDetails *[]PerNodeExtensionState `json:"perNodeExtensionDetails,omitempty"`
}

ExtensionProperties status of Arc Extension for a particular node in HCI Cluster.

func (ExtensionProperties) MarshalJSON

func (ep ExtensionProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ExtensionProperties.

func (*ExtensionProperties) UnmarshalJSON

func (ep *ExtensionProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ExtensionProperties struct.

type ExtensionsClient

type ExtensionsClient struct {
	BaseClient
}

ExtensionsClient is the azure Stack HCI management service

func NewExtensionsClient

func NewExtensionsClient(subscriptionID string) ExtensionsClient

NewExtensionsClient creates an instance of the ExtensionsClient client.

func NewExtensionsClientWithBaseURI

func NewExtensionsClientWithBaseURI(baseURI string, subscriptionID string) ExtensionsClient

NewExtensionsClientWithBaseURI creates an instance of the ExtensionsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ExtensionsClient) Create

func (client ExtensionsClient) Create(ctx context.Context, resourceGroupName string, clusterName string, arcSettingName string, extensionName string, extension Extension) (result ExtensionsCreateFuture, err error)

Create create Extension for HCI cluster. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - the name of the cluster. arcSettingName - the name of the proxy resource holding details of HCI ArcSetting information. extensionName - the name of the machine extension. extension - details of the Machine Extension to be created.

func (ExtensionsClient) CreatePreparer

func (client ExtensionsClient) CreatePreparer(ctx context.Context, resourceGroupName string, clusterName string, arcSettingName string, extensionName string, extension Extension) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ExtensionsClient) CreateResponder

func (client ExtensionsClient) CreateResponder(resp *http.Response) (result Extension, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (ExtensionsClient) CreateSender

func (client ExtensionsClient) CreateSender(req *http.Request) (future ExtensionsCreateFuture, err error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (ExtensionsClient) Delete

func (client ExtensionsClient) Delete(ctx context.Context, resourceGroupName string, clusterName string, arcSettingName string, extensionName string) (result ExtensionsDeleteFuture, err error)

Delete delete particular Arc Extension of HCI Cluster. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - the name of the cluster. arcSettingName - the name of the proxy resource holding details of HCI ArcSetting information. extensionName - the name of the machine extension.

func (ExtensionsClient) DeletePreparer

func (client ExtensionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, clusterName string, arcSettingName string, extensionName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ExtensionsClient) DeleteResponder

func (client ExtensionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ExtensionsClient) DeleteSender

func (client ExtensionsClient) DeleteSender(req *http.Request) (future ExtensionsDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ExtensionsClient) Get

func (client ExtensionsClient) Get(ctx context.Context, resourceGroupName string, clusterName string, arcSettingName string, extensionName string) (result Extension, err error)

Get get particular Arc Extension of HCI Cluster. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - the name of the cluster. arcSettingName - the name of the proxy resource holding details of HCI ArcSetting information. extensionName - the name of the machine extension.

func (ExtensionsClient) GetPreparer

func (client ExtensionsClient) GetPreparer(ctx context.Context, resourceGroupName string, clusterName string, arcSettingName string, extensionName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ExtensionsClient) GetResponder

func (client ExtensionsClient) GetResponder(resp *http.Response) (result Extension, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ExtensionsClient) GetSender

func (client ExtensionsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ExtensionsClient) ListByArcSetting

func (client ExtensionsClient) ListByArcSetting(ctx context.Context, resourceGroupName string, clusterName string, arcSettingName string) (result ExtensionListPage, err error)

ListByArcSetting list all Extensions under ArcSetting resource. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - the name of the cluster. arcSettingName - the name of the proxy resource holding details of HCI ArcSetting information.

func (ExtensionsClient) ListByArcSettingComplete

func (client ExtensionsClient) ListByArcSettingComplete(ctx context.Context, resourceGroupName string, clusterName string, arcSettingName string) (result ExtensionListIterator, err error)

ListByArcSettingComplete enumerates all values, automatically crossing page boundaries as required.

func (ExtensionsClient) ListByArcSettingPreparer

func (client ExtensionsClient) ListByArcSettingPreparer(ctx context.Context, resourceGroupName string, clusterName string, arcSettingName string) (*http.Request, error)

ListByArcSettingPreparer prepares the ListByArcSetting request.

func (ExtensionsClient) ListByArcSettingResponder

func (client ExtensionsClient) ListByArcSettingResponder(resp *http.Response) (result ExtensionList, err error)

ListByArcSettingResponder handles the response to the ListByArcSetting request. The method always closes the http.Response Body.

func (ExtensionsClient) ListByArcSettingSender

func (client ExtensionsClient) ListByArcSettingSender(req *http.Request) (*http.Response, error)

ListByArcSettingSender sends the ListByArcSetting request. The method will close the http.Response Body if it receives an error.

func (ExtensionsClient) Update

func (client ExtensionsClient) Update(ctx context.Context, resourceGroupName string, clusterName string, arcSettingName string, extensionName string, extension Extension) (result ExtensionsUpdateFuture, err error)

Update update Extension for HCI cluster. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. clusterName - the name of the cluster. arcSettingName - the name of the proxy resource holding details of HCI ArcSetting information. extensionName - the name of the machine extension. extension - details of the Machine Extension to be created.

func (ExtensionsClient) UpdatePreparer

func (client ExtensionsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, arcSettingName string, extensionName string, extension Extension) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ExtensionsClient) UpdateResponder

func (client ExtensionsClient) UpdateResponder(resp *http.Response) (result Extension, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ExtensionsClient) UpdateSender

func (client ExtensionsClient) UpdateSender(req *http.Request) (future ExtensionsUpdateFuture, err error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type ExtensionsCreateFuture

type ExtensionsCreateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(ExtensionsClient) (Extension, error)
}

ExtensionsCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ExtensionsCreateFuture) UnmarshalJSON

func (future *ExtensionsCreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ExtensionsDeleteFuture

type ExtensionsDeleteFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(ExtensionsClient) (autorest.Response, error)
}

ExtensionsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ExtensionsDeleteFuture) UnmarshalJSON

func (future *ExtensionsDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ExtensionsUpdateFuture

type ExtensionsUpdateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(ExtensionsClient) (Extension, error)
}

ExtensionsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ExtensionsUpdateFuture) UnmarshalJSON

func (future *ExtensionsUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type NodeArcState

type NodeArcState string

NodeArcState enumerates the values for node arc state.

const (
	// NodeArcStateCanceled ...
	NodeArcStateCanceled NodeArcState = "Canceled"
	// NodeArcStateConnected ...
	NodeArcStateConnected NodeArcState = "Connected"
	// NodeArcStateCreating ...
	NodeArcStateCreating NodeArcState = "Creating"
	// NodeArcStateDeleted ...
	NodeArcStateDeleted NodeArcState = "Deleted"
	// NodeArcStateDeleting ...
	NodeArcStateDeleting NodeArcState = "Deleting"
	// NodeArcStateDisconnected ...
	NodeArcStateDisconnected NodeArcState = "Disconnected"
	// NodeArcStateError ...
	NodeArcStateError NodeArcState = "Error"
	// NodeArcStateFailed ...
	NodeArcStateFailed NodeArcState = "Failed"
	// NodeArcStateMoving ...
	NodeArcStateMoving NodeArcState = "Moving"
	// NodeArcStateNotSpecified ...
	NodeArcStateNotSpecified NodeArcState = "NotSpecified"
	// NodeArcStateSucceeded ...
	NodeArcStateSucceeded NodeArcState = "Succeeded"
	// NodeArcStateUpdating ...
	NodeArcStateUpdating NodeArcState = "Updating"
)

func PossibleNodeArcStateValues

func PossibleNodeArcStateValues() []NodeArcState

PossibleNodeArcStateValues returns an array of possible values for the NodeArcState const type.

type NodeExtensionState

type NodeExtensionState string

NodeExtensionState enumerates the values for node extension state.

const (
	// NodeExtensionStateCanceled ...
	NodeExtensionStateCanceled NodeExtensionState = "Canceled"
	// NodeExtensionStateConnected ...
	NodeExtensionStateConnected NodeExtensionState = "Connected"
	// NodeExtensionStateCreating ...
	NodeExtensionStateCreating NodeExtensionState = "Creating"
	// NodeExtensionStateDeleted ...
	NodeExtensionStateDeleted NodeExtensionState = "Deleted"
	// NodeExtensionStateDeleting ...
	NodeExtensionStateDeleting NodeExtensionState = "Deleting"
	// NodeExtensionStateDisconnected ...
	NodeExtensionStateDisconnected NodeExtensionState = "Disconnected"
	// NodeExtensionStateError ...
	NodeExtensionStateError NodeExtensionState = "Error"
	// NodeExtensionStateFailed ...
	NodeExtensionStateFailed NodeExtensionState = "Failed"
	// NodeExtensionStateMoving ...
	NodeExtensionStateMoving NodeExtensionState = "Moving"
	// NodeExtensionStateNotSpecified ...
	NodeExtensionStateNotSpecified NodeExtensionState = "NotSpecified"
	// NodeExtensionStateSucceeded ...
	NodeExtensionStateSucceeded NodeExtensionState = "Succeeded"
	// NodeExtensionStateUpdating ...
	NodeExtensionStateUpdating NodeExtensionState = "Updating"
)

func PossibleNodeExtensionStateValues

func PossibleNodeExtensionStateValues() []NodeExtensionState

PossibleNodeExtensionStateValues returns an array of possible values for the NodeExtensionState const type.

type Operation

type Operation struct {
	// Name - READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
	Name *string `json:"name,omitempty"`
	// IsDataAction - READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations.
	IsDataAction *bool `json:"isDataAction,omitempty"`
	// Display - Localized display information for this particular operation.
	Display *OperationDisplay `json:"display,omitempty"`
	// Origin - READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system". Possible values include: 'OriginUser', 'OriginSystem', 'OriginUsersystem'
	Origin Origin `json:"origin,omitempty"`
	// ActionType - READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. Possible values include: 'ActionTypeInternal'
	ActionType ActionType `json:"actionType,omitempty"`
}

Operation details of a REST API operation, returned from the Resource Provider Operations API

func (Operation) MarshalJSON

func (o Operation) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Operation.

type OperationDisplay

type OperationDisplay struct {
	// Provider - READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute".
	Provider *string `json:"provider,omitempty"`
	// Resource - READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections".
	Resource *string `json:"resource,omitempty"`
	// Operation - READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine".
	Operation *string `json:"operation,omitempty"`
	// Description - READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views.
	Description *string `json:"description,omitempty"`
}

OperationDisplay localized display information for this particular operation.

func (OperationDisplay) MarshalJSON

func (o OperationDisplay) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationDisplay.

type OperationListResult

type OperationListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; List of operations supported by the resource provider
	Value *[]Operation `json:"value,omitempty"`
	// NextLink - READ-ONLY; URL to get the next set of operation list results (if there are any).
	NextLink *string `json:"nextLink,omitempty"`
}

OperationListResult a list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.

func (OperationListResult) MarshalJSON

func (olr OperationListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationListResult.

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the azure Stack HCI management service

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationsClient) List

func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error)

List list all available Microsoft.AzureStackHCI provider operations

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type Origin

type Origin string

Origin enumerates the values for origin.

const (
	// OriginSystem ...
	OriginSystem Origin = "system"
	// OriginUser ...
	OriginUser Origin = "user"
	// OriginUsersystem ...
	OriginUsersystem Origin = "user,system"
)

func PossibleOriginValues

func PossibleOriginValues() []Origin

PossibleOriginValues returns an array of possible values for the Origin const type.

type PerNodeExtensionState

type PerNodeExtensionState struct {
	// Name - READ-ONLY; Name of the node in HCI Cluster.
	Name *string `json:"name,omitempty"`
	// Extension - READ-ONLY; Fully qualified resource ID for the particular Arc Extension on this node.
	Extension *string `json:"extension,omitempty"`
	// State - READ-ONLY; State of Arc Extension in this node. Possible values include: 'NodeExtensionStateNotSpecified', 'NodeExtensionStateError', 'NodeExtensionStateSucceeded', 'NodeExtensionStateCanceled', 'NodeExtensionStateFailed', 'NodeExtensionStateConnected', 'NodeExtensionStateDisconnected', 'NodeExtensionStateDeleted', 'NodeExtensionStateCreating', 'NodeExtensionStateUpdating', 'NodeExtensionStateDeleting', 'NodeExtensionStateMoving'
	State NodeExtensionState `json:"state,omitempty"`
}

PerNodeExtensionState status of Arc Extension for a particular node in HCI Cluster.

func (PerNodeExtensionState) MarshalJSON

func (pnes PerNodeExtensionState) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PerNodeExtensionState.

type PerNodeState

type PerNodeState struct {
	// Name - READ-ONLY; Name of the Node in HCI Cluster
	Name *string `json:"name,omitempty"`
	// ArcInstance - READ-ONLY; Fully qualified resource ID for the Arc agent of this node.
	ArcInstance *string `json:"arcInstance,omitempty"`
	// State - READ-ONLY; State of Arc agent in this node. Possible values include: 'NodeArcStateNotSpecified', 'NodeArcStateError', 'NodeArcStateSucceeded', 'NodeArcStateCanceled', 'NodeArcStateFailed', 'NodeArcStateConnected', 'NodeArcStateDisconnected', 'NodeArcStateDeleted', 'NodeArcStateCreating', 'NodeArcStateUpdating', 'NodeArcStateDeleting', 'NodeArcStateMoving'
	State NodeArcState `json:"state,omitempty"`
}

PerNodeState status of Arc agent for a particular node in HCI Cluster.

func (PerNodeState) MarshalJSON

func (pns PerNodeState) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PerNodeState.

type ProvisioningState

type ProvisioningState string

ProvisioningState enumerates the values for provisioning state.

const (
	// ProvisioningStateAccepted ...
	ProvisioningStateAccepted ProvisioningState = "Accepted"
	// ProvisioningStateCanceled ...
	ProvisioningStateCanceled ProvisioningState = "Canceled"
	// ProvisioningStateFailed ...
	ProvisioningStateFailed ProvisioningState = "Failed"
	// ProvisioningStateProvisioning ...
	ProvisioningStateProvisioning ProvisioningState = "Provisioning"
	// ProvisioningStateSucceeded ...
	ProvisioningStateSucceeded ProvisioningState = "Succeeded"
)

func PossibleProvisioningStateValues

func PossibleProvisioningStateValues() []ProvisioningState

PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.

type ProxyResource

type ProxyResource struct {
	// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

ProxyResource the resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location

func (ProxyResource) MarshalJSON

func (pr ProxyResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProxyResource.

type Resource

type Resource struct {
	// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

Resource common fields that are returned in the response for all Azure Resource Manager resources

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Resource.

type Status

type Status string

Status enumerates the values for status.

const (
	// StatusConnectedRecently ...
	StatusConnectedRecently Status = "ConnectedRecently"
	// StatusDisconnected ...
	StatusDisconnected Status = "Disconnected"
	// StatusError ...
	StatusError Status = "Error"
	// StatusNotConnectedRecently ...
	StatusNotConnectedRecently Status = "NotConnectedRecently"
	// StatusNotYetRegistered ...
	StatusNotYetRegistered Status = "NotYetRegistered"
)

func PossibleStatusValues

func PossibleStatusValues() []Status

PossibleStatusValues returns an array of possible values for the Status const type.

type SystemData

type SystemData struct {
	// CreatedBy - The identity that created the resource.
	CreatedBy *string `json:"createdBy,omitempty"`
	// CreatedByType - The type of identity that created the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey'
	CreatedByType CreatedByType `json:"createdByType,omitempty"`
	// CreatedAt - The timestamp of resource creation (UTC).
	CreatedAt *date.Time `json:"createdAt,omitempty"`
	// LastModifiedBy - The identity that last modified the resource.
	LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
	// LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey'
	LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"`
	// LastModifiedAt - The timestamp of resource last modification (UTC)
	LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"`
}

SystemData metadata pertaining to creation and last modification of the resource.

type TrackedResource

type TrackedResource struct {
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// Location - The geo-location where the resource lives
	Location *string `json:"location,omitempty"`
	// ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty"`
}

TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'

func (TrackedResource) MarshalJSON

func (tr TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TrackedResource.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL