recoveryservices

package
v8.1.0-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	// APIVersion is the version of the Recoveryservices
	APIVersion = "2016-06-01"

	// 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 ManagementClient

type ManagementClient struct {
	autorest.Client
	BaseURI        string
	APIVersion     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 Resource

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

Resource is

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 Vault

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

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

type VaultList

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

VaultList is the response model for Vault.

func (VaultList) VaultListPreparer

func (client VaultList) VaultListPreparer() (*http.Request, error)

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

type VaultProperties

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

VaultProperties is properties of the vault.

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 sends the list by resource group request.

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

func (VaultsClient) ListByResourceGroupNextResults

func (client VaultsClient) ListByResourceGroupNextResults(lastResults VaultList) (result VaultList, err error)

ListByResourceGroupNextResults retrieves the next set of results, if any.

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.

Jump to

Keyboard shortcuts

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