resourceconnector

package
v67.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 10 Imported by: 86

Documentation

Overview

Deprecated: Please note, this package has been deprecated. A replacement package is available github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourceconnector/armresourceconnector(https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourceconnector/armresourceconnector). We strongly encourage you to upgrade to continue receiving updates. See [Migration Guide](https://aka.ms/azsdk/golang/t2/migration) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details.

Package resourceconnector implements the Azure ARM Resourceconnector service API version 2021-10-31-preview.

The appliances Rest API spec.

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Resourceconnector
	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 AccessProfileType

type AccessProfileType string

AccessProfileType enumerates the values for access profile type.

const (
	// AccessProfileTypeClusterUser ...
	AccessProfileTypeClusterUser AccessProfileType = "clusterUser"
)

func PossibleAccessProfileTypeValues

func PossibleAccessProfileTypeValues() []AccessProfileType

PossibleAccessProfileTypeValues returns an array of possible values for the AccessProfileType const type.

type Appliance

type Appliance struct {
	autorest.Response `json:"-"`
	// Identity - Identity for the resource.
	Identity *Identity `json:"identity,omitempty"`
	// ApplianceProperties - The set of properties specific to an Appliance
	*ApplianceProperties `json:"properties,omitempty"`
	// SystemData - READ-ONLY; Metadata pertaining to creation and last modification of the resource
	SystemData *SystemData `json:"systemData,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"`
}

Appliance appliances definition.

func (Appliance) MarshalJSON

func (a Appliance) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Appliance.

func (*Appliance) UnmarshalJSON

func (a *Appliance) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Appliance struct.

type ApplianceCredentialKubeconfig

type ApplianceCredentialKubeconfig struct {
	// Name - READ-ONLY; Name which contains the role of the kubeconfig. Possible values include: 'AccessProfileTypeClusterUser'
	Name AccessProfileType `json:"name,omitempty"`
	// Value - READ-ONLY; Contains the kubeconfig value.
	Value *string `json:"value,omitempty"`
}

ApplianceCredentialKubeconfig cluster User Credential appliance.

func (ApplianceCredentialKubeconfig) MarshalJSON

func (ack ApplianceCredentialKubeconfig) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplianceCredentialKubeconfig.

type ApplianceListCredentialResults

type ApplianceListCredentialResults struct {
	autorest.Response `json:"-"`
	// HybridConnectionConfig - READ-ONLY; Contains the REP (rendezvous endpoint) and “Listener” access token from notification service (NS).
	HybridConnectionConfig *HybridConnectionConfig `json:"hybridConnectionConfig,omitempty"`
	// Kubeconfigs - READ-ONLY; The list of appliance kubeconfigs.
	Kubeconfigs *[]ApplianceCredentialKubeconfig `json:"kubeconfigs,omitempty"`
}

ApplianceListCredentialResults the List Cluster User Credential appliance.

func (ApplianceListCredentialResults) MarshalJSON

func (alcr ApplianceListCredentialResults) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplianceListCredentialResults.

type ApplianceListResult

type ApplianceListResult struct {
	autorest.Response `json:"-"`
	// NextLink - READ-ONLY; The URL to use for getting the next set of results.
	NextLink *string `json:"nextLink,omitempty"`
	// Value - READ-ONLY; The list of Appliances.
	Value *[]Appliance `json:"value,omitempty"`
}

ApplianceListResult the List Appliances operation response.

func (ApplianceListResult) IsEmpty

func (alr ApplianceListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (ApplianceListResult) MarshalJSON

func (alr ApplianceListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplianceListResult.

type ApplianceListResultIterator

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

ApplianceListResultIterator provides access to a complete listing of Appliance values.

func NewApplianceListResultIterator

func NewApplianceListResultIterator(page ApplianceListResultPage) ApplianceListResultIterator

Creates a new instance of the ApplianceListResultIterator type.

func (*ApplianceListResultIterator) Next

func (iter *ApplianceListResultIterator) 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 (*ApplianceListResultIterator) NextWithContext

func (iter *ApplianceListResultIterator) 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 (ApplianceListResultIterator) NotDone

func (iter ApplianceListResultIterator) NotDone() bool

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

func (ApplianceListResultIterator) Response

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

func (ApplianceListResultIterator) Value

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

type ApplianceListResultPage

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

ApplianceListResultPage contains a page of Appliance values.

func NewApplianceListResultPage

func NewApplianceListResultPage(cur ApplianceListResult, getNextPage func(context.Context, ApplianceListResult) (ApplianceListResult, error)) ApplianceListResultPage

Creates a new instance of the ApplianceListResultPage type.

func (*ApplianceListResultPage) Next

func (page *ApplianceListResultPage) 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 (*ApplianceListResultPage) NextWithContext

func (page *ApplianceListResultPage) 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 (ApplianceListResultPage) NotDone

func (page ApplianceListResultPage) NotDone() bool

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

func (ApplianceListResultPage) Response

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

func (ApplianceListResultPage) Values

func (page ApplianceListResultPage) Values() []Appliance

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

type ApplianceOperation

type ApplianceOperation struct {
	// ApplianceOperationValueDisplay - Describes the properties of an Appliances Operation Value Display.
	*ApplianceOperationValueDisplay `json:"display,omitempty"`
	// IsDataAction - READ-ONLY; Is this Operation a data plane operation
	IsDataAction *bool `json:"isDataAction,omitempty"`
	// Name - READ-ONLY; The name of the compute operation.
	Name *string `json:"name,omitempty"`
	// Origin - READ-ONLY; The origin of the compute operation.
	Origin *string `json:"origin,omitempty"`
}

ApplianceOperation appliances operation.

func (ApplianceOperation) MarshalJSON

func (ao ApplianceOperation) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplianceOperation.

func (*ApplianceOperation) UnmarshalJSON

func (ao *ApplianceOperation) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ApplianceOperation struct.

type ApplianceOperationValueDisplay

type ApplianceOperationValueDisplay struct {
	// Description - READ-ONLY; The description of the operation.
	Description *string `json:"description,omitempty"`
	// Operation - READ-ONLY; The display name of the compute operation.
	Operation *string `json:"operation,omitempty"`
	// Provider - READ-ONLY; The resource provider for the operation.
	Provider *string `json:"provider,omitempty"`
	// Resource - READ-ONLY; The display name of the resource the operation applies to.
	Resource *string `json:"resource,omitempty"`
}

ApplianceOperationValueDisplay describes the properties of an Appliances Operation Value Display.

func (ApplianceOperationValueDisplay) MarshalJSON

func (aovd ApplianceOperationValueDisplay) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplianceOperationValueDisplay.

type ApplianceOperationsList

type ApplianceOperationsList struct {
	autorest.Response `json:"-"`
	// NextLink - Next page of operations.
	NextLink *string `json:"nextLink,omitempty"`
	// Value - Array of applianceOperation
	Value *[]ApplianceOperation `json:"value,omitempty"`
}

ApplianceOperationsList lists of Appliances operations.

func (ApplianceOperationsList) IsEmpty

func (aol ApplianceOperationsList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ApplianceOperationsListIterator

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

ApplianceOperationsListIterator provides access to a complete listing of ApplianceOperation values.

func NewApplianceOperationsListIterator

func NewApplianceOperationsListIterator(page ApplianceOperationsListPage) ApplianceOperationsListIterator

Creates a new instance of the ApplianceOperationsListIterator type.

func (*ApplianceOperationsListIterator) Next

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 (*ApplianceOperationsListIterator) NextWithContext

func (iter *ApplianceOperationsListIterator) 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 (ApplianceOperationsListIterator) NotDone

func (iter ApplianceOperationsListIterator) NotDone() bool

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

func (ApplianceOperationsListIterator) Response

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

func (ApplianceOperationsListIterator) Value

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

type ApplianceOperationsListPage

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

ApplianceOperationsListPage contains a page of ApplianceOperation values.

func NewApplianceOperationsListPage

Creates a new instance of the ApplianceOperationsListPage type.

func (*ApplianceOperationsListPage) Next

func (page *ApplianceOperationsListPage) 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 (*ApplianceOperationsListPage) NextWithContext

func (page *ApplianceOperationsListPage) 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 (ApplianceOperationsListPage) NotDone

func (page ApplianceOperationsListPage) NotDone() bool

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

func (ApplianceOperationsListPage) Response

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

func (ApplianceOperationsListPage) Values

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

type ApplianceProperties

type ApplianceProperties struct {
	// Distro - Represents a supported Fabric/Infra. (AKSEdge etc...). Possible values include: 'DistroAKSEdge'
	Distro Distro `json:"distro,omitempty"`
	// InfrastructureConfig - Contains infrastructure information about the Appliance
	InfrastructureConfig *AppliancePropertiesInfrastructureConfig `json:"infrastructureConfig,omitempty"`
	// ProvisioningState - READ-ONLY; The current deployment or provisioning state, which only appears in the response.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// PublicKey - Certificates pair used to download MSI certificate from HIS
	PublicKey *string `json:"publicKey,omitempty"`
	// Status - READ-ONLY; Appliance’s health and state of connection to on-prem. Possible values include: 'StatusWaitingForHeartbeat', 'StatusValidating', 'StatusConnected', 'StatusRunning'
	Status Status `json:"status,omitempty"`
	// Version - READ-ONLY; Version of the Appliance
	Version *string `json:"version,omitempty"`
}

ApplianceProperties properties for an appliance.

func (ApplianceProperties) MarshalJSON

func (ap ApplianceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplianceProperties.

type AppliancePropertiesInfrastructureConfig

type AppliancePropertiesInfrastructureConfig struct {
	// Provider - Information about the connected appliance. Possible values include: 'ProviderVMWare', 'ProviderHCI', 'ProviderSCVMM'
	Provider Provider `json:"provider,omitempty"`
}

AppliancePropertiesInfrastructureConfig contains infrastructure information about the Appliance

type AppliancesClient

type AppliancesClient struct {
	BaseClient
}

AppliancesClient is the the appliances Rest API spec.

func NewAppliancesClient

func NewAppliancesClient(subscriptionID string) AppliancesClient

NewAppliancesClient creates an instance of the AppliancesClient client.

func NewAppliancesClientWithBaseURI

func NewAppliancesClientWithBaseURI(baseURI string, subscriptionID string) AppliancesClient

NewAppliancesClientWithBaseURI creates an instance of the AppliancesClient 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 (AppliancesClient) CreateOrUpdate

func (client AppliancesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, parameters Appliance) (result AppliancesCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates an Appliance in the specified Subscription and Resource Group. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. resourceName - appliances name. parameters - parameters supplied to create or update an Appliance.

func (AppliancesClient) CreateOrUpdatePreparer

func (client AppliancesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, parameters Appliance) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (AppliancesClient) CreateOrUpdateResponder

func (client AppliancesClient) CreateOrUpdateResponder(resp *http.Response) (result Appliance, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (AppliancesClient) CreateOrUpdateSender

func (client AppliancesClient) CreateOrUpdateSender(req *http.Request) (future AppliancesCreateOrUpdateFuture, err error)

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

func (AppliancesClient) Delete

func (client AppliancesClient) Delete(ctx context.Context, resourceGroupName string, resourceName string) (result AppliancesDeleteFuture, err error)

Delete deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. resourceName - appliances name.

func (AppliancesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (AppliancesClient) DeleteResponder

func (client AppliancesClient) 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 (AppliancesClient) DeleteSender

func (client AppliancesClient) DeleteSender(req *http.Request) (future AppliancesDeleteFuture, err error)

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

func (AppliancesClient) Get

func (client AppliancesClient) Get(ctx context.Context, resourceGroupName string, resourceName string) (result Appliance, err error)

Get gets the details of an Appliance with a specified resource group and name. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. resourceName - appliances name.

func (AppliancesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (AppliancesClient) GetResponder

func (client AppliancesClient) GetResponder(resp *http.Response) (result Appliance, err error)

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

func (AppliancesClient) GetSender

func (client AppliancesClient) 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 (AppliancesClient) ListByResourceGroup

func (client AppliancesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ApplianceListResultPage, err error)

ListByResourceGroup gets a list of Appliances in the specified subscription and resource group. The operation returns properties of each Appliance. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.

func (AppliancesClient) ListByResourceGroupComplete

func (client AppliancesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ApplianceListResultIterator, err error)

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

func (AppliancesClient) ListByResourceGroupPreparer

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (AppliancesClient) ListByResourceGroupResponder

func (client AppliancesClient) ListByResourceGroupResponder(resp *http.Response) (result ApplianceListResult, err error)

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

func (AppliancesClient) ListByResourceGroupSender

func (client AppliancesClient) 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 (AppliancesClient) ListBySubscription

func (client AppliancesClient) ListBySubscription(ctx context.Context) (result ApplianceListResultPage, err error)

ListBySubscription gets a list of Appliances in the specified subscription. The operation returns properties of each Appliance

func (AppliancesClient) ListBySubscriptionComplete

func (client AppliancesClient) ListBySubscriptionComplete(ctx context.Context) (result ApplianceListResultIterator, err error)

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

func (AppliancesClient) ListBySubscriptionPreparer

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

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (AppliancesClient) ListBySubscriptionResponder

func (client AppliancesClient) ListBySubscriptionResponder(resp *http.Response) (result ApplianceListResult, err error)

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

func (AppliancesClient) ListBySubscriptionSender

func (client AppliancesClient) 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 (AppliancesClient) ListClusterUserCredential

func (client AppliancesClient) ListClusterUserCredential(ctx context.Context, resourceGroupName string, resourceName string) (result ApplianceListCredentialResults, err error)

ListClusterUserCredential returns the cluster user credentials for the dedicated appliance. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. resourceName - appliances name.

func (AppliancesClient) ListClusterUserCredentialPreparer

func (client AppliancesClient) ListClusterUserCredentialPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error)

ListClusterUserCredentialPreparer prepares the ListClusterUserCredential request.

func (AppliancesClient) ListClusterUserCredentialResponder

func (client AppliancesClient) ListClusterUserCredentialResponder(resp *http.Response) (result ApplianceListCredentialResults, err error)

ListClusterUserCredentialResponder handles the response to the ListClusterUserCredential request. The method always closes the http.Response Body.

func (AppliancesClient) ListClusterUserCredentialSender

func (client AppliancesClient) ListClusterUserCredentialSender(req *http.Request) (*http.Response, error)

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

func (AppliancesClient) ListOperations

func (client AppliancesClient) ListOperations(ctx context.Context) (result ApplianceOperationsListPage, err error)

ListOperations lists all available Appliances operations.

func (AppliancesClient) ListOperationsComplete

func (client AppliancesClient) ListOperationsComplete(ctx context.Context) (result ApplianceOperationsListIterator, err error)

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

func (AppliancesClient) ListOperationsPreparer

func (client AppliancesClient) ListOperationsPreparer(ctx context.Context) (*http.Request, error)

ListOperationsPreparer prepares the ListOperations request.

func (AppliancesClient) ListOperationsResponder

func (client AppliancesClient) ListOperationsResponder(resp *http.Response) (result ApplianceOperationsList, err error)

ListOperationsResponder handles the response to the ListOperations request. The method always closes the http.Response Body.

func (AppliancesClient) ListOperationsSender

func (client AppliancesClient) ListOperationsSender(req *http.Request) (*http.Response, error)

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

func (AppliancesClient) Update

func (client AppliancesClient) Update(ctx context.Context, resourceGroupName string, resourceName string, parameters PatchableAppliance) (result Appliance, err error)

Update updates an Appliance with the specified Resource Name in the specified Resource Group and Subscription. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. resourceName - appliances name. parameters - the updatable fields of an existing Appliance.

func (AppliancesClient) UpdatePreparer

func (client AppliancesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, parameters PatchableAppliance) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (AppliancesClient) UpdateResponder

func (client AppliancesClient) UpdateResponder(resp *http.Response) (result Appliance, err error)

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

func (AppliancesClient) UpdateSender

func (client AppliancesClient) 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 AppliancesCreateOrUpdateFuture

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

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

func (*AppliancesCreateOrUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type AppliancesDeleteFuture

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

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

func (*AppliancesDeleteFuture) UnmarshalJSON

func (future *AppliancesDeleteFuture) 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 Resourceconnector.

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 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 Distro

type Distro string

Distro enumerates the values for distro.

const (
	// DistroAKSEdge ...
	DistroAKSEdge Distro = "AKSEdge"
)

func PossibleDistroValues

func PossibleDistroValues() []Distro

PossibleDistroValues returns an array of possible values for the Distro 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 HybridConnectionConfig

type HybridConnectionConfig struct {
	// ExpirationTime - READ-ONLY; Timestamp when this token will be expired.
	ExpirationTime *int64 `json:"expirationTime,omitempty"`
	// HybridConnectionName - READ-ONLY; Name of the connection
	HybridConnectionName *string `json:"hybridConnectionName,omitempty"`
	// Relay - READ-ONLY; Name of the notification service.
	Relay *string `json:"relay,omitempty"`
	// Token - READ-ONLY; Listener access token
	Token *string `json:"token,omitempty"`
}

HybridConnectionConfig contains the REP (rendezvous endpoint) and “Listener” access token from notification service (NS).

func (HybridConnectionConfig) MarshalJSON

func (hcc HybridConnectionConfig) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for HybridConnectionConfig.

type Identity

type Identity struct {
	// PrincipalID - READ-ONLY; The principal ID of resource identity.
	PrincipalID *string `json:"principalId,omitempty"`
	// TenantID - READ-ONLY; The tenant ID of resource.
	TenantID *string `json:"tenantId,omitempty"`
	// Type - The identity type. Possible values include: 'ResourceIdentityTypeSystemAssigned', 'ResourceIdentityTypeNone'
	Type ResourceIdentityType `json:"type,omitempty"`
}

Identity identity for the resource.

func (Identity) MarshalJSON

func (i Identity) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Identity.

type PatchableAppliance

type PatchableAppliance struct {
	// Tags - Resource tags
	Tags map[string]*string `json:"tags"`
}

PatchableAppliance the Appliances patchable resource definition.

func (PatchableAppliance) MarshalJSON

func (pa PatchableAppliance) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PatchableAppliance.

type Provider

type Provider string

Provider enumerates the values for provider.

const (
	// ProviderHCI ...
	ProviderHCI Provider = "HCI"
	// ProviderSCVMM ...
	ProviderSCVMM Provider = "SCVMM"
	// ProviderVMWare ...
	ProviderVMWare Provider = "VMWare"
)

func PossibleProviderValues

func PossibleProviderValues() []Provider

PossibleProviderValues returns an array of possible values for the Provider 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 ResourceIdentityType

type ResourceIdentityType string

ResourceIdentityType enumerates the values for resource identity type.

const (
	// ResourceIdentityTypeNone ...
	ResourceIdentityTypeNone ResourceIdentityType = "None"
	// ResourceIdentityTypeSystemAssigned ...
	ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned"
)

func PossibleResourceIdentityTypeValues

func PossibleResourceIdentityTypeValues() []ResourceIdentityType

PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.

type Status

type Status string

Status enumerates the values for status.

const (
	// StatusConnected ...
	StatusConnected Status = "Connected"
	// StatusRunning ...
	StatusRunning Status = "Running"
	// StatusValidating ...
	StatusValidating Status = "Validating"
	// StatusWaitingForHeartbeat ...
	StatusWaitingForHeartbeat Status = "WaitingForHeartbeat"
)

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