Documentation ¶
Overview ¶
Package recoveryservices implements the Azure ARM Recoveryservices service API version 2016-06-01.
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type ManagementClient
- type Resource
- type Sku
- type SkuName
- type Vault
- type VaultList
- type VaultProperties
- type VaultsClient
- func (client VaultsClient) CreateOrUpdate(resourceGroupName string, vaultName string, vault Vault) (result Vault, err error)
- func (client VaultsClient) CreateOrUpdatePreparer(resourceGroupName string, vaultName string, vault Vault) (*http.Request, error)
- func (client VaultsClient) CreateOrUpdateResponder(resp *http.Response) (result Vault, err error)
- func (client VaultsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client VaultsClient) Delete(resourceGroupName string, vaultName string) (result autorest.Response, err error)
- func (client VaultsClient) DeletePreparer(resourceGroupName string, vaultName string) (*http.Request, error)
- func (client VaultsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client VaultsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client VaultsClient) Get(resourceGroupName string, vaultName string) (result Vault, err error)
- func (client VaultsClient) GetPreparer(resourceGroupName string, vaultName string) (*http.Request, error)
- func (client VaultsClient) GetResponder(resp *http.Response) (result Vault, err error)
- func (client VaultsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client VaultsClient) ListByResourceGroup(resourceGroupName string) (result VaultList, err error)
- func (client VaultsClient) ListByResourceGroupNextResults(lastResults VaultList) (result VaultList, err error)
- func (client VaultsClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)
- func (client VaultsClient) ListByResourceGroupResponder(resp *http.Response) (result VaultList, err error)
- func (client VaultsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
Constants ¶
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 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.
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 ¶
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 ¶
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 ¶
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 ¶
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.