recoveryservices

package
v10.0.4-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: May 30, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package recoveryservices implements the Azure ARM Recoveryservices service API version 2016-06-01.

Index

Constants

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

type ClientDiscoveryDisplay struct {
	Provider    *string `json:"Provider,omitempty"`
	Resource    *string `json:"Resource,omitempty"`
	Operation   *string `json:"Operation,omitempty"`
	Description *string `json:"Description,omitempty"`
}

ClientDiscoveryDisplay is localized display information of an operation.

type ClientDiscoveryForLogSpecification

type ClientDiscoveryForLogSpecification struct {
	Name         *string    `json:"name,omitempty"`
	DisplayName  *string    `json:"displayName,omitempty"`
	BlobDuration *date.Time `json:"blobDuration,omitempty"`
}

ClientDiscoveryForLogSpecification is log specification for the operation.

type ClientDiscoveryForServiceSpecification

type ClientDiscoveryForServiceSpecification struct {
	LogSpecifications *[]ClientDiscoveryForLogSpecification `json:"logSpecifications,omitempty"`
}

ClientDiscoveryForServiceSpecification is operation properties.

type ClientDiscoveryProperties

type ClientDiscoveryProperties struct {
	ServiceSpecification *ClientDiscoveryForServiceSpecification `json:"serviceSpecification,omitempty"`
}

ClientDiscoveryProperties is operation properties.

type ClientDiscoveryResponse

type ClientDiscoveryResponse struct {
	autorest.Response `json:"-"`
	Value             *[]ClientDiscoveryValueForSingleAPI `json:"Value,omitempty"`
	NextLink          *string                             `json:"NextLink,omitempty"`
}

ClientDiscoveryResponse is list of available operations.

func (ClientDiscoveryResponse) ClientDiscoveryResponsePreparer

func (client ClientDiscoveryResponse) ClientDiscoveryResponsePreparer() (*http.Request, error)

ClientDiscoveryResponsePreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type ClientDiscoveryValueForSingleAPI

type ClientDiscoveryValueForSingleAPI struct {
	Name                       *string                 `json:"Name,omitempty"`
	Display                    *ClientDiscoveryDisplay `json:"Display,omitempty"`
	Origin                     *string                 `json:"Origin,omitempty"`
	*ClientDiscoveryProperties `json:"Properties,omitempty"`
}

ClientDiscoveryValueForSingleAPI is available operation details.

type ManagementClient

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

ManagementClient is the base client for Recoveryservices.

func New

func New(subscriptionID string) ManagementClient

New creates an instance of the ManagementClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient

NewWithBaseURI creates an instance of the ManagementClient client.

type OperationsClient

type OperationsClient struct {
	ManagementClient
}

OperationsClient is the client for the Operations methods of the Recoveryservices 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.

func (OperationsClient) List

func (client OperationsClient) List(resourceGroupName string) (result ClientDiscoveryResponse, err error)

List returns the list of available operations.

resourceGroupName is the name of the resource group where the recovery services vault is present.

func (OperationsClient) ListNextResults

func (client OperationsClient) ListNextResults(lastResults ClientDiscoveryResponse) (result ClientDiscoveryResponse, err error)

ListNextResults retrieves the next set of results, if any.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer(resourceGroupName string) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result ClientDiscoveryResponse, 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 Resource

type Resource struct {
	ID   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
	Type *string `json:"type,omitempty"`
	ETag *string `json:"eTag,omitempty"`
}

Resource is aRM Resource.

type Sku

type Sku struct {
	Name SkuName `json:"name,omitempty"`
}

Sku is identifies the unique system identifier for each Azure resource.

type SkuName

type SkuName string

SkuName enumerates the values for sku name.

const (
	// RS0 specifies the rs0 state for sku name.
	RS0 SkuName = "RS0"
	// Standard specifies the standard state for sku name.
	Standard SkuName = "Standard"
)

type TrackedResource

type TrackedResource struct {
	ID       *string             `json:"id,omitempty"`
	Name     *string             `json:"name,omitempty"`
	Type     *string             `json:"type,omitempty"`
	ETag     *string             `json:"eTag,omitempty"`
	Location *string             `json:"location,omitempty"`
	Tags     *map[string]*string `json:"tags,omitempty"`
}

TrackedResource is tracked resource with location.

type TriggerType

type TriggerType string

TriggerType enumerates the values for trigger type.

const (
	// ForcedUpgrade specifies the forced upgrade state for trigger type.
	ForcedUpgrade TriggerType = "ForcedUpgrade"
	// UserTriggered specifies the user triggered state for trigger type.
	UserTriggered TriggerType = "UserTriggered"
)

type UpgradeDetails

type UpgradeDetails struct {
	OperationID        *string           `json:"operationId,omitempty"`
	StartTimeUtc       *date.Time        `json:"startTimeUtc,omitempty"`
	LastUpdatedTimeUtc *date.Time        `json:"lastUpdatedTimeUtc,omitempty"`
	EndTimeUtc         *date.Time        `json:"endTimeUtc,omitempty"`
	Status             VaultUpgradeState `json:"status,omitempty"`
	Message            *string           `json:"message,omitempty"`
	TriggerType        TriggerType       `json:"triggerType,omitempty"`
	UpgradedResourceID *string           `json:"upgradedResourceId,omitempty"`
	PreviousResourceID *string           `json:"previousResourceId,omitempty"`
}

UpgradeDetails is details for upgrading vault.

type Vault

type Vault struct {
	autorest.Response `json:"-"`
	ID                *string             `json:"id,omitempty"`
	Name              *string             `json:"name,omitempty"`
	Type              *string             `json:"type,omitempty"`
	ETag              *string             `json:"eTag,omitempty"`
	Location          *string             `json:"location,omitempty"`
	Tags              *map[string]*string `json:"tags,omitempty"`
	Properties        *VaultProperties    `json:"properties,omitempty"`
	Sku               *Sku                `json:"sku,omitempty"`
}

Vault is resource information, as returned by the resource provider.

type VaultExtendedInfo

type VaultExtendedInfo struct {
	IntegrityKey            *string `json:"integrityKey,omitempty"`
	EncryptionKey           *string `json:"encryptionKey,omitempty"`
	EncryptionKeyThumbprint *string `json:"encryptionKeyThumbprint,omitempty"`
	Algorithm               *string `json:"algorithm,omitempty"`
}

VaultExtendedInfo is vault extended information.

type VaultExtendedInfoClient

type VaultExtendedInfoClient struct {
	ManagementClient
}

VaultExtendedInfoClient is the client for the VaultExtendedInfo methods of the Recoveryservices service.

func NewVaultExtendedInfoClient

func NewVaultExtendedInfoClient(subscriptionID string) VaultExtendedInfoClient

NewVaultExtendedInfoClient creates an instance of the VaultExtendedInfoClient client.

func NewVaultExtendedInfoClientWithBaseURI

func NewVaultExtendedInfoClientWithBaseURI(baseURI string, subscriptionID string) VaultExtendedInfoClient

NewVaultExtendedInfoClientWithBaseURI creates an instance of the VaultExtendedInfoClient client.

func (VaultExtendedInfoClient) CreateOrUpdate

func (client VaultExtendedInfoClient) CreateOrUpdate(resourceGroupName string, vaultName string, resourceResourceExtendedInfoDetails VaultExtendedInfoResource) (result VaultExtendedInfoResource, err error)

CreateOrUpdate create vault extended info.

resourceGroupName is the name of the resource group where the recovery services vault is present. vaultName is the name of the recovery services vault. resourceResourceExtendedInfoDetails is resourceResourceExtendedInfoDetails

func (VaultExtendedInfoClient) CreateOrUpdatePreparer

func (client VaultExtendedInfoClient) CreateOrUpdatePreparer(resourceGroupName string, vaultName string, resourceResourceExtendedInfoDetails VaultExtendedInfoResource) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (VaultExtendedInfoClient) CreateOrUpdateResponder

func (client VaultExtendedInfoClient) CreateOrUpdateResponder(resp *http.Response) (result VaultExtendedInfoResource, err error)

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

func (VaultExtendedInfoClient) CreateOrUpdateSender

func (client VaultExtendedInfoClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (VaultExtendedInfoClient) Get

func (client VaultExtendedInfoClient) Get(resourceGroupName string, vaultName string) (result VaultExtendedInfoResource, err error)

Get get the vault extended info.

resourceGroupName is the name of the resource group where the recovery services vault is present. vaultName is the name of the recovery services vault.

func (VaultExtendedInfoClient) GetPreparer

func (client VaultExtendedInfoClient) GetPreparer(resourceGroupName string, vaultName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (VaultExtendedInfoClient) GetResponder

func (client VaultExtendedInfoClient) GetResponder(resp *http.Response) (result VaultExtendedInfoResource, err error)

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

func (VaultExtendedInfoClient) GetSender

func (client VaultExtendedInfoClient) 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 (VaultExtendedInfoClient) Update

func (client VaultExtendedInfoClient) Update(resourceGroupName string, vaultName string, resourceResourceExtendedInfoDetails VaultExtendedInfoResource) (result VaultExtendedInfoResource, err error)

Update update vault extended info.

resourceGroupName is the name of the resource group where the recovery services vault is present. vaultName is the name of the recovery services vault. resourceResourceExtendedInfoDetails is resourceResourceExtendedInfoDetails

func (VaultExtendedInfoClient) UpdatePreparer

func (client VaultExtendedInfoClient) UpdatePreparer(resourceGroupName string, vaultName string, resourceResourceExtendedInfoDetails VaultExtendedInfoResource) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (VaultExtendedInfoClient) UpdateResponder

func (client VaultExtendedInfoClient) UpdateResponder(resp *http.Response) (result VaultExtendedInfoResource, err error)

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

func (VaultExtendedInfoClient) UpdateSender

func (client VaultExtendedInfoClient) 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 VaultExtendedInfoResource

type VaultExtendedInfoResource struct {
	autorest.Response  `json:"-"`
	ID                 *string `json:"id,omitempty"`
	Name               *string `json:"name,omitempty"`
	Type               *string `json:"type,omitempty"`
	ETag               *string `json:"eTag,omitempty"`
	*VaultExtendedInfo `json:"properties,omitempty"`
}

VaultExtendedInfoResource is vault extended information.

type VaultList

type VaultList struct {
	autorest.Response `json:"-"`
	Value             *[]Vault `json:"value,omitempty"`
	NextLink          *string  `json:"nextLink,omitempty"`
}

VaultList is the response model for a list of Vaults.

type VaultProperties

type VaultProperties struct {
	ProvisioningState *string         `json:"provisioningState,omitempty"`
	UpgradeDetails    *UpgradeDetails `json:"upgradeDetails,omitempty"`
}

VaultProperties is properties of the vault.

type VaultUpgradeState

type VaultUpgradeState string

VaultUpgradeState enumerates the values for vault upgrade state.

const (
	// Failed specifies the failed state for vault upgrade state.
	Failed VaultUpgradeState = "Failed"
	// InProgress specifies the in progress state for vault upgrade state.
	InProgress VaultUpgradeState = "InProgress"
	// Unknown specifies the unknown state for vault upgrade state.
	Unknown VaultUpgradeState = "Unknown"
	// Upgraded specifies the upgraded state for vault upgrade state.
	Upgraded VaultUpgradeState = "Upgraded"
)

type VaultsClient

type VaultsClient struct {
	ManagementClient
}

VaultsClient is the client for the Vaults methods of the Recoveryservices service.

func NewVaultsClient

func NewVaultsClient(subscriptionID string) VaultsClient

NewVaultsClient creates an instance of the VaultsClient client.

func NewVaultsClientWithBaseURI

func NewVaultsClientWithBaseURI(baseURI string, subscriptionID string) VaultsClient

NewVaultsClientWithBaseURI creates an instance of the VaultsClient client.

func (VaultsClient) CreateOrUpdate

func (client VaultsClient) CreateOrUpdate(resourceGroupName string, vaultName string, vault Vault) (result Vault, err error)

CreateOrUpdate creates or updates a Recovery Services vault.

resourceGroupName is the name of the resource group where the recovery services vault is present. vaultName is the name of the recovery services vault. vault is recovery Services Vault to be created.

func (VaultsClient) CreateOrUpdatePreparer

func (client VaultsClient) CreateOrUpdatePreparer(resourceGroupName string, vaultName string, vault Vault) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (VaultsClient) CreateOrUpdateResponder

func (client VaultsClient) CreateOrUpdateResponder(resp *http.Response) (result Vault, err error)

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

func (VaultsClient) CreateOrUpdateSender

func (client VaultsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (VaultsClient) Delete

func (client VaultsClient) Delete(resourceGroupName string, vaultName string) (result autorest.Response, err error)

Delete deletes a vault.

resourceGroupName is the name of the resource group where the recovery services vault is present. vaultName is the name of the recovery services vault.

func (VaultsClient) DeletePreparer

func (client VaultsClient) DeletePreparer(resourceGroupName string, vaultName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (VaultsClient) DeleteResponder

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

func (client VaultsClient) 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 (VaultsClient) Get

func (client VaultsClient) Get(resourceGroupName string, vaultName string) (result Vault, err error)

Get get the Vault details.

resourceGroupName is the name of the resource group where the recovery services vault is present. vaultName is the name of the recovery services vault.

func (VaultsClient) GetPreparer

func (client VaultsClient) GetPreparer(resourceGroupName string, vaultName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (VaultsClient) GetResponder

func (client VaultsClient) GetResponder(resp *http.Response) (result Vault, err error)

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

func (VaultsClient) GetSender

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

func (client VaultsClient) ListByResourceGroup(resourceGroupName string) (result VaultList, err error)

ListByResourceGroup retrieve a list of Vaults.

resourceGroupName is the name of the resource group where the recovery services vault is present.

func (VaultsClient) ListByResourceGroupPreparer

func (client VaultsClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (VaultsClient) ListByResourceGroupResponder

func (client VaultsClient) ListByResourceGroupResponder(resp *http.Response) (result VaultList, err error)

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

func (VaultsClient) ListByResourceGroupSender

func (client VaultsClient) 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 (VaultsClient) ListBySubscriptionID

func (client VaultsClient) ListBySubscriptionID() (result VaultList, err error)

ListBySubscriptionID fetches all the resources of the specified type in the subscription.

func (VaultsClient) ListBySubscriptionIDPreparer

func (client VaultsClient) ListBySubscriptionIDPreparer() (*http.Request, error)

ListBySubscriptionIDPreparer prepares the ListBySubscriptionID request.

func (VaultsClient) ListBySubscriptionIDResponder

func (client VaultsClient) ListBySubscriptionIDResponder(resp *http.Response) (result VaultList, err error)

ListBySubscriptionIDResponder handles the response to the ListBySubscriptionID request. The method always closes the http.Response Body.

func (VaultsClient) ListBySubscriptionIDSender

func (client VaultsClient) ListBySubscriptionIDSender(req *http.Request) (*http.Response, error)

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

func (VaultsClient) Update

func (client VaultsClient) Update(resourceGroupName string, vaultName string, vault Vault) (result Vault, err error)

Update updates the vault.

resourceGroupName is the name of the resource group where the recovery services vault is present. vaultName is the name of the recovery services vault. vault is recovery Services Vault to be created.

func (VaultsClient) UpdatePreparer

func (client VaultsClient) UpdatePreparer(resourceGroupName string, vaultName string, vault Vault) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (VaultsClient) UpdateResponder

func (client VaultsClient) UpdateResponder(resp *http.Response) (result Vault, err error)

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

func (VaultsClient) UpdateSender

func (client VaultsClient) 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.

Jump to

Keyboard shortcuts

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