recoveryservices

package
v12.1.1-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package recoveryservices implements the Azure ARM Recoveryservices service API version .

Recovery Services Client

Deprecated: Please instead use github.com/Azure/azure-sdk-for-go/services

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 AuthType

type AuthType string

AuthType enumerates the values for auth type.

const (
	// AAD specifies the aad state for auth type.
	AAD AuthType = "AAD"
	// AccessControlService specifies the access control service state for auth type.
	AccessControlService AuthType = "AccessControlService"
	// ACS specifies the acs state for auth type.
	ACS AuthType = "ACS"
	// AzureActiveDirectory specifies the azure active directory state for auth type.
	AzureActiveDirectory AuthType = "AzureActiveDirectory"
	// Invalid specifies the invalid state for auth type.
	Invalid AuthType = "Invalid"
)

type BackupStorageConfig

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

BackupStorageConfig is the backup storage config.

type BackupStorageConfigProperties

type BackupStorageConfigProperties struct {
	StorageModelType StorageModelType `json:"storageModelType,omitempty"`
	StorageType      StorageType      `json:"storageType,omitempty"`
	StorageTypeState StorageTypeState `json:"storageTypeState,omitempty"`
}

BackupStorageConfigProperties is the backup storage config.

type BackupStorageConfigsClient

type BackupStorageConfigsClient struct {
	ManagementClient
}

BackupStorageConfigsClient is the recovery Services Client

func NewBackupStorageConfigsClient

func NewBackupStorageConfigsClient(subscriptionID string) BackupStorageConfigsClient

NewBackupStorageConfigsClient creates an instance of the BackupStorageConfigsClient client.

func NewBackupStorageConfigsClientWithBaseURI

func NewBackupStorageConfigsClientWithBaseURI(baseURI string, subscriptionID string) BackupStorageConfigsClient

NewBackupStorageConfigsClientWithBaseURI creates an instance of the BackupStorageConfigsClient client.

func (BackupStorageConfigsClient) Get

func (client BackupStorageConfigsClient) Get(resourceGroupName string, vaultName string) (result BackupStorageConfig, err error)

Get fetches resource storage config.

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 (BackupStorageConfigsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (BackupStorageConfigsClient) GetResponder

func (client BackupStorageConfigsClient) GetResponder(resp *http.Response) (result BackupStorageConfig, err error)

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

func (BackupStorageConfigsClient) GetSender

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

func (client BackupStorageConfigsClient) Update(resourceGroupName string, vaultName string, backupStorageConfig BackupStorageConfig) (result autorest.Response, err error)

Update updates vault storage model type.

resourceGroupName is the name of the resource group where the recovery services vault is present. vaultName is the name of the recovery services vault. backupStorageConfig is backup storage config.

func (BackupStorageConfigsClient) UpdatePreparer

func (client BackupStorageConfigsClient) UpdatePreparer(resourceGroupName string, vaultName string, backupStorageConfig BackupStorageConfig) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (BackupStorageConfigsClient) UpdateResponder

func (client BackupStorageConfigsClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error)

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

func (BackupStorageConfigsClient) UpdateSender

func (client BackupStorageConfigsClient) 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 BackupVaultConfig

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

BackupVaultConfig is backup vault config details.

type BackupVaultConfigProperties

type BackupVaultConfigProperties struct {
	StorageType           StorageType           `json:"storageType,omitempty"`
	StorageTypeState      StorageTypeState      `json:"storageTypeState,omitempty"`
	EnhancedSecurityState EnhancedSecurityState `json:"enhancedSecurityState,omitempty"`
}

BackupVaultConfigProperties is backup vault config details.

type BackupVaultConfigsClient

type BackupVaultConfigsClient struct {
	ManagementClient
}

BackupVaultConfigsClient is the recovery Services Client

func NewBackupVaultConfigsClient

func NewBackupVaultConfigsClient(subscriptionID string) BackupVaultConfigsClient

NewBackupVaultConfigsClient creates an instance of the BackupVaultConfigsClient client.

func NewBackupVaultConfigsClientWithBaseURI

func NewBackupVaultConfigsClientWithBaseURI(baseURI string, subscriptionID string) BackupVaultConfigsClient

NewBackupVaultConfigsClientWithBaseURI creates an instance of the BackupVaultConfigsClient client.

func (BackupVaultConfigsClient) Get

func (client BackupVaultConfigsClient) Get(resourceGroupName string, vaultName string) (result BackupVaultConfig, err error)

Get fetches vault config.

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 (BackupVaultConfigsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (BackupVaultConfigsClient) GetResponder

func (client BackupVaultConfigsClient) GetResponder(resp *http.Response) (result BackupVaultConfig, err error)

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

func (BackupVaultConfigsClient) GetSender

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

func (client BackupVaultConfigsClient) Update(resourceGroupName string, vaultName string, backupVaultConfig BackupVaultConfig) (result BackupVaultConfig, err error)

Update updates vault config model type.

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

func (BackupVaultConfigsClient) UpdatePreparer

func (client BackupVaultConfigsClient) UpdatePreparer(resourceGroupName string, vaultName string, backupVaultConfig BackupVaultConfig) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (BackupVaultConfigsClient) UpdateResponder

func (client BackupVaultConfigsClient) UpdateResponder(resp *http.Response) (result BackupVaultConfig, err error)

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

func (BackupVaultConfigsClient) UpdateSender

func (client BackupVaultConfigsClient) 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 CertificateRequest

type CertificateRequest struct {
	Properties *RawCertificateData `json:"properties,omitempty"`
}

CertificateRequest is details of the certificate to be uploaded to the vault.

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 *string `json:"blobDuration,omitempty"`
}

ClientDiscoveryForLogSpecification is class to represent shoebox log specification in json client discovery.

type ClientDiscoveryForProperties

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

ClientDiscoveryForProperties is class to represent shoebox properties in json client discovery.

type ClientDiscoveryForServiceSpecification

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

ClientDiscoveryForServiceSpecification is class to represent shoebox service specification in json client discovery.

type ClientDiscoveryResponse

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

ClientDiscoveryResponse is operations List response which contains list of available APIs.

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"`
	Properties *ClientDiscoveryForProperties `json:"Properties,omitempty"`
}

ClientDiscoveryValueForSingleAPI is available operation details.

type EnhancedSecurityState

type EnhancedSecurityState string

EnhancedSecurityState enumerates the values for enhanced security state.

const (
	// EnhancedSecurityStateDisabled specifies the enhanced security state disabled state for enhanced security state.
	EnhancedSecurityStateDisabled EnhancedSecurityState = "Disabled"
	// EnhancedSecurityStateEnabled specifies the enhanced security state enabled state for enhanced security state.
	EnhancedSecurityStateEnabled EnhancedSecurityState = "Enabled"
	// EnhancedSecurityStateInvalid specifies the enhanced security state invalid state for enhanced security state.
	EnhancedSecurityStateInvalid EnhancedSecurityState = "Invalid"
)

type JobsSummary

type JobsSummary struct {
	FailedJobs     *int32 `json:"failedJobs,omitempty"`
	SuspendedJobs  *int32 `json:"suspendedJobs,omitempty"`
	InProgressJobs *int32 `json:"inProgressJobs,omitempty"`
}

JobsSummary is summary of the replication job data for this vault.

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 MonitoringSummary

type MonitoringSummary struct {
	UnHealthyVMCount         *int32 `json:"unHealthyVmCount,omitempty"`
	UnHealthyProviderCount   *int32 `json:"unHealthyProviderCount,omitempty"`
	EventsCount              *int32 `json:"eventsCount,omitempty"`
	DeprecatedProviderCount  *int32 `json:"deprecatedProviderCount,omitempty"`
	SupportedProviderCount   *int32 `json:"supportedProviderCount,omitempty"`
	UnsupportedProviderCount *int32 `json:"unsupportedProviderCount,omitempty"`
}

MonitoringSummary is summary of the replication monitoring data for this vault.

type NameInfo

type NameInfo struct {
	Value          *string `json:"value,omitempty"`
	LocalizedValue *string `json:"localizedValue,omitempty"`
}

NameInfo is the name of usage.

type OperationsClient

type OperationsClient struct {
	ManagementClient
}

OperationsClient is the recovery Services Client

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() (result ClientDiscoveryResponse, err error)

List returns the list of available operations.

func (OperationsClient) ListComplete

func (client OperationsClient) ListComplete(cancel <-chan struct{}) (<-chan ClientDiscoveryValueForSingleAPI, <-chan error)

ListComplete gets all elements from the list without paging.

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() (*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 RawCertificateData

type RawCertificateData struct {
	AuthType    AuthType `json:"authType,omitempty"`
	Certificate *[]byte  `json:"certificate,omitempty"`
}

RawCertificateData is raw certificate data.

type RegisteredIdentitiesClient

type RegisteredIdentitiesClient struct {
	ManagementClient
}

RegisteredIdentitiesClient is the recovery Services Client

func NewRegisteredIdentitiesClient

func NewRegisteredIdentitiesClient(subscriptionID string) RegisteredIdentitiesClient

NewRegisteredIdentitiesClient creates an instance of the RegisteredIdentitiesClient client.

func NewRegisteredIdentitiesClientWithBaseURI

func NewRegisteredIdentitiesClientWithBaseURI(baseURI string, subscriptionID string) RegisteredIdentitiesClient

NewRegisteredIdentitiesClientWithBaseURI creates an instance of the RegisteredIdentitiesClient client.

func (RegisteredIdentitiesClient) Delete

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

Delete unregisters the given container from your 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. identityName is name of the protection container to unregister.

func (RegisteredIdentitiesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (RegisteredIdentitiesClient) DeleteResponder

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

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

type ReplicationUsage

type ReplicationUsage struct {
	MonitoringSummary                *MonitoringSummary `json:"monitoringSummary,omitempty"`
	JobsSummary                      *JobsSummary       `json:"jobsSummary,omitempty"`
	ProtectedItemCount               *int32             `json:"protectedItemCount,omitempty"`
	RecoveryPlanCount                *int32             `json:"recoveryPlanCount,omitempty"`
	RegisteredServersCount           *int32             `json:"registeredServersCount,omitempty"`
	RecoveryServicesProviderAuthType *int32             `json:"recoveryServicesProviderAuthType,omitempty"`
}

ReplicationUsage is replication usages of a vault.

type ReplicationUsageList

type ReplicationUsageList struct {
	autorest.Response `json:"-"`
	Value             *[]ReplicationUsage `json:"value,omitempty"`
}

ReplicationUsageList is replication usages for vault.

type ReplicationUsagesClient

type ReplicationUsagesClient struct {
	ManagementClient
}

ReplicationUsagesClient is the recovery Services Client

func NewReplicationUsagesClient

func NewReplicationUsagesClient(subscriptionID string) ReplicationUsagesClient

NewReplicationUsagesClient creates an instance of the ReplicationUsagesClient client.

func NewReplicationUsagesClientWithBaseURI

func NewReplicationUsagesClientWithBaseURI(baseURI string, subscriptionID string) ReplicationUsagesClient

NewReplicationUsagesClientWithBaseURI creates an instance of the ReplicationUsagesClient client.

func (ReplicationUsagesClient) List

func (client ReplicationUsagesClient) List(resourceGroupName string, vaultName string) (result ReplicationUsageList, err error)

List fetches the replication usages of 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.

func (ReplicationUsagesClient) ListPreparer

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

ListPreparer prepares the List request.

func (ReplicationUsagesClient) ListResponder

func (client ReplicationUsagesClient) ListResponder(resp *http.Response) (result ReplicationUsageList, err error)

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

func (ReplicationUsagesClient) ListSender

func (client ReplicationUsagesClient) 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 ResourceCertificateAndAadDetails

type ResourceCertificateAndAadDetails struct {
	Certificate                     *[]byte    `json:"certificate,omitempty"`
	FriendlyName                    *string    `json:"friendlyName,omitempty"`
	Issuer                          *string    `json:"issuer,omitempty"`
	ResourceID                      *int64     `json:"resourceId,omitempty"`
	Subject                         *string    `json:"subject,omitempty"`
	Thumbprint                      *string    `json:"thumbprint,omitempty"`
	ValidFrom                       *date.Time `json:"validFrom,omitempty"`
	ValidTo                         *date.Time `json:"validTo,omitempty"`
	AuthType                        AuthType   `json:"authType,omitempty"`
	AadAuthority                    *string    `json:"aadAuthority,omitempty"`
	AadTenantID                     *string    `json:"aadTenantId,omitempty"`
	ServicePrincipalClientID        *string    `json:"servicePrincipalClientId,omitempty"`
	ServicePrincipalObjectID        *string    `json:"servicePrincipalObjectId,omitempty"`
	AzureManagementEndpointAudience *string    `json:"azureManagementEndpointAudience,omitempty"`
}

ResourceCertificateAndAadDetails is certificate details representing the Vault credentials for AAD.

func (ResourceCertificateAndAadDetails) AsResourceCertificateAndAadDetails

func (rcaad ResourceCertificateAndAadDetails) AsResourceCertificateAndAadDetails() (*ResourceCertificateAndAadDetails, bool)

AsResourceCertificateAndAadDetails is the ResourceCertificateDetails implementation for ResourceCertificateAndAadDetails.

func (ResourceCertificateAndAadDetails) AsResourceCertificateAndAcsDetails

func (rcaad ResourceCertificateAndAadDetails) AsResourceCertificateAndAcsDetails() (*ResourceCertificateAndAcsDetails, bool)

AsResourceCertificateAndAcsDetails is the ResourceCertificateDetails implementation for ResourceCertificateAndAadDetails.

func (ResourceCertificateAndAadDetails) MarshalJSON

func (rcaad ResourceCertificateAndAadDetails) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourceCertificateAndAadDetails.

type ResourceCertificateAndAcsDetails

type ResourceCertificateAndAcsDetails struct {
	Certificate        *[]byte    `json:"certificate,omitempty"`
	FriendlyName       *string    `json:"friendlyName,omitempty"`
	Issuer             *string    `json:"issuer,omitempty"`
	ResourceID         *int64     `json:"resourceId,omitempty"`
	Subject            *string    `json:"subject,omitempty"`
	Thumbprint         *string    `json:"thumbprint,omitempty"`
	ValidFrom          *date.Time `json:"validFrom,omitempty"`
	ValidTo            *date.Time `json:"validTo,omitempty"`
	AuthType           AuthType   `json:"authType,omitempty"`
	GlobalAcsNamespace *string    `json:"globalAcsNamespace,omitempty"`
	GlobalAcsHostName  *string    `json:"globalAcsHostName,omitempty"`
	GlobalAcsRPRealm   *string    `json:"globalAcsRPRealm,omitempty"`
}

ResourceCertificateAndAcsDetails is certificate details representing the Vault credentials for ACS.

func (ResourceCertificateAndAcsDetails) AsResourceCertificateAndAadDetails

func (rcaad ResourceCertificateAndAcsDetails) AsResourceCertificateAndAadDetails() (*ResourceCertificateAndAadDetails, bool)

AsResourceCertificateAndAadDetails is the ResourceCertificateDetails implementation for ResourceCertificateAndAcsDetails.

func (ResourceCertificateAndAcsDetails) AsResourceCertificateAndAcsDetails

func (rcaad ResourceCertificateAndAcsDetails) AsResourceCertificateAndAcsDetails() (*ResourceCertificateAndAcsDetails, bool)

AsResourceCertificateAndAcsDetails is the ResourceCertificateDetails implementation for ResourceCertificateAndAcsDetails.

func (ResourceCertificateAndAcsDetails) MarshalJSON

func (rcaad ResourceCertificateAndAcsDetails) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourceCertificateAndAcsDetails.

type ResourceCertificateDetails

type ResourceCertificateDetails interface {
	AsResourceCertificateAndAadDetails() (*ResourceCertificateAndAadDetails, bool)
	AsResourceCertificateAndAcsDetails() (*ResourceCertificateAndAcsDetails, bool)
}

ResourceCertificateDetails is certificate details representing the Vault credentials.

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 StorageModelType

type StorageModelType string

StorageModelType enumerates the values for storage model type.

const (
	// StorageModelTypeGeoRedundant specifies the storage model type geo redundant state for storage model type.
	StorageModelTypeGeoRedundant StorageModelType = "GeoRedundant"
	// StorageModelTypeInvalid specifies the storage model type invalid state for storage model type.
	StorageModelTypeInvalid StorageModelType = "Invalid"
	// StorageModelTypeLocallyRedundant specifies the storage model type locally redundant state for storage model type.
	StorageModelTypeLocallyRedundant StorageModelType = "LocallyRedundant"
)

type StorageType

type StorageType string

StorageType enumerates the values for storage type.

const (
	// StorageTypeGeoRedundant specifies the storage type geo redundant state for storage type.
	StorageTypeGeoRedundant StorageType = "GeoRedundant"
	// StorageTypeInvalid specifies the storage type invalid state for storage type.
	StorageTypeInvalid StorageType = "Invalid"
	// StorageTypeLocallyRedundant specifies the storage type locally redundant state for storage type.
	StorageTypeLocallyRedundant StorageType = "LocallyRedundant"
)

type StorageTypeState

type StorageTypeState string

StorageTypeState enumerates the values for storage type state.

const (
	// StorageTypeStateInvalid specifies the storage type state invalid state for storage type state.
	StorageTypeStateInvalid StorageTypeState = "Invalid"
	// StorageTypeStateLocked specifies the storage type state locked state for storage type state.
	StorageTypeStateLocked StorageTypeState = "Locked"
	// StorageTypeStateUnlocked specifies the storage type state unlocked state for storage type state.
	StorageTypeStateUnlocked StorageTypeState = "Unlocked"
)

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 UsagesClient

type UsagesClient struct {
	ManagementClient
}

UsagesClient is the recovery Services Client

func NewUsagesClient

func NewUsagesClient(subscriptionID string) UsagesClient

NewUsagesClient creates an instance of the UsagesClient client.

func NewUsagesClientWithBaseURI

func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient

NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.

func (UsagesClient) ListByVaults

func (client UsagesClient) ListByVaults(resourceGroupName string, vaultName string) (result VaultUsageList, err error)

ListByVaults fetches the usages of 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.

func (UsagesClient) ListByVaultsPreparer

func (client UsagesClient) ListByVaultsPreparer(resourceGroupName string, vaultName string) (*http.Request, error)

ListByVaultsPreparer prepares the ListByVaults request.

func (UsagesClient) ListByVaultsResponder

func (client UsagesClient) ListByVaultsResponder(resp *http.Response) (result VaultUsageList, err error)

ListByVaultsResponder handles the response to the ListByVaults request. The method always closes the http.Response Body.

func (UsagesClient) ListByVaultsSender

func (client UsagesClient) ListByVaultsSender(req *http.Request) (*http.Response, error)

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

type UsagesUnit

type UsagesUnit string

UsagesUnit enumerates the values for usages unit.

const (
	// Bytes specifies the bytes state for usages unit.
	Bytes UsagesUnit = "Bytes"
	// BytesPerSecond specifies the bytes per second state for usages unit.
	BytesPerSecond UsagesUnit = "BytesPerSecond"
	// Count specifies the count state for usages unit.
	Count UsagesUnit = "Count"
	// CountPerSecond specifies the count per second state for usages unit.
	CountPerSecond UsagesUnit = "CountPerSecond"
	// Percent specifies the percent state for usages unit.
	Percent UsagesUnit = "Percent"
	// Seconds specifies the seconds state for usages unit.
	Seconds UsagesUnit = "Seconds"
)

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 VaultCertificateResponse

type VaultCertificateResponse struct {
	autorest.Response `json:"-"`
	Name              *string                    `json:"name,omitempty"`
	Type              *string                    `json:"type,omitempty"`
	ID                *string                    `json:"id,omitempty"`
	Properties        ResourceCertificateDetails `json:"properties,omitempty"`
}

VaultCertificateResponse is certificate corresponding to a vault that can be used by clients to register themselves with the vault.

func (*VaultCertificateResponse) UnmarshalJSON

func (vcr *VaultCertificateResponse) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for VaultCertificateResponse struct.

type VaultCertificatesClient

type VaultCertificatesClient struct {
	ManagementClient
}

VaultCertificatesClient is the recovery Services Client

func NewVaultCertificatesClient

func NewVaultCertificatesClient(subscriptionID string) VaultCertificatesClient

NewVaultCertificatesClient creates an instance of the VaultCertificatesClient client.

func NewVaultCertificatesClientWithBaseURI

func NewVaultCertificatesClientWithBaseURI(baseURI string, subscriptionID string) VaultCertificatesClient

NewVaultCertificatesClientWithBaseURI creates an instance of the VaultCertificatesClient client.

func (VaultCertificatesClient) Create

func (client VaultCertificatesClient) Create(resourceGroupName string, vaultName string, certificateName string, certificateRequest CertificateRequest) (result VaultCertificateResponse, err error)

Create upload a certificate for a resource.

resourceGroupName is the name of the resource group where the recovery services vault is present. vaultName is the name of the recovery services vault. certificateName is certificate friendly name. certificateRequest is input parameters for uploading the vault certificate.

func (VaultCertificatesClient) CreatePreparer

func (client VaultCertificatesClient) CreatePreparer(resourceGroupName string, vaultName string, certificateName string, certificateRequest CertificateRequest) (*http.Request, error)

CreatePreparer prepares the Create request.

func (VaultCertificatesClient) CreateResponder

func (client VaultCertificatesClient) CreateResponder(resp *http.Response) (result VaultCertificateResponse, err error)

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

func (VaultCertificatesClient) CreateSender

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

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 recovery Services Client

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 VaultUsage

type VaultUsage struct {
	Unit          UsagesUnit `json:"unit,omitempty"`
	QuotaPeriod   *string    `json:"quotaPeriod,omitempty"`
	NextResetTime *date.Time `json:"nextResetTime,omitempty"`
	CurrentValue  *int64     `json:"currentValue,omitempty"`
	Limit         *int64     `json:"limit,omitempty"`
	Name          *NameInfo  `json:"name,omitempty"`
}

VaultUsage is usages of a vault.

type VaultUsageList

type VaultUsageList struct {
	autorest.Response `json:"-"`
	Value             *[]VaultUsage `json:"value,omitempty"`
}

VaultUsageList is usage for vault.

type VaultsClient

type VaultsClient struct {
	ManagementClient
}

VaultsClient is the recovery Services Client

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