recoveryservices

package
v61.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package recoveryservices implements the Azure ARM Recoveryservices service API version 2021-08-01.

Recovery Services Client

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 (
	// AuthTypeAAD ...
	AuthTypeAAD AuthType = "AAD"
	// AuthTypeAccessControlService ...
	AuthTypeAccessControlService AuthType = "AccessControlService"
	// AuthTypeACS ...
	AuthTypeACS AuthType = "ACS"
	// AuthTypeAzureActiveDirectory ...
	AuthTypeAzureActiveDirectory AuthType = "AzureActiveDirectory"
	// AuthTypeInvalid ...
	AuthTypeInvalid AuthType = "Invalid"
)

func PossibleAuthTypeValues

func PossibleAuthTypeValues() []AuthType

PossibleAuthTypeValues returns an array of possible values for the AuthType const type.

type AuthTypeBasicResourceCertificateDetails

type AuthTypeBasicResourceCertificateDetails string

AuthTypeBasicResourceCertificateDetails enumerates the values for auth type basic resource certificate details.

const (
	// AuthTypeBasicResourceCertificateDetailsAuthTypeAccessControlService ...
	AuthTypeBasicResourceCertificateDetailsAuthTypeAccessControlService AuthTypeBasicResourceCertificateDetails = "AccessControlService"
	// AuthTypeBasicResourceCertificateDetailsAuthTypeAzureActiveDirectory ...
	AuthTypeBasicResourceCertificateDetailsAuthTypeAzureActiveDirectory AuthTypeBasicResourceCertificateDetails = "AzureActiveDirectory"
	// AuthTypeBasicResourceCertificateDetailsAuthTypeResourceCertificateDetails ...
	AuthTypeBasicResourceCertificateDetailsAuthTypeResourceCertificateDetails AuthTypeBasicResourceCertificateDetails = "ResourceCertificateDetails"
)

func PossibleAuthTypeBasicResourceCertificateDetailsValues

func PossibleAuthTypeBasicResourceCertificateDetailsValues() []AuthTypeBasicResourceCertificateDetails

PossibleAuthTypeBasicResourceCertificateDetailsValues returns an array of possible values for the AuthTypeBasicResourceCertificateDetails const type.

type BaseClient

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

BaseClient is the base client for Recoveryservices.

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).

func (BaseClient) GetOperationResult

func (client BaseClient) GetOperationResult(ctx context.Context, resourceGroupName string, vaultName string, operationID string) (result Vault, err error)

GetOperationResult gets the operation result for a resource. Parameters: resourceGroupName - the name of the resource group where the recovery services vault is present. vaultName - the name of the recovery services vault.

func (BaseClient) GetOperationResultPreparer

func (client BaseClient) GetOperationResultPreparer(ctx context.Context, resourceGroupName string, vaultName string, operationID string) (*http.Request, error)

GetOperationResultPreparer prepares the GetOperationResult request.

func (BaseClient) GetOperationResultResponder

func (client BaseClient) GetOperationResultResponder(resp *http.Response) (result Vault, err error)

GetOperationResultResponder handles the response to the GetOperationResult request. The method always closes the http.Response Body.

func (BaseClient) GetOperationResultSender

func (client BaseClient) GetOperationResultSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) GetOperationStatus

func (client BaseClient) GetOperationStatus(ctx context.Context, resourceGroupName string, vaultName string, operationID string) (result OperationResource, err error)

GetOperationStatus gets the operation status for a resource. Parameters: resourceGroupName - the name of the resource group where the recovery services vault is present. vaultName - the name of the recovery services vault.

func (BaseClient) GetOperationStatusPreparer

func (client BaseClient) GetOperationStatusPreparer(ctx context.Context, resourceGroupName string, vaultName string, operationID string) (*http.Request, error)

GetOperationStatusPreparer prepares the GetOperationStatus request.

func (BaseClient) GetOperationStatusResponder

func (client BaseClient) GetOperationStatusResponder(resp *http.Response) (result OperationResource, err error)

GetOperationStatusResponder handles the response to the GetOperationStatus request. The method always closes the http.Response Body.

func (BaseClient) GetOperationStatusSender

func (client BaseClient) GetOperationStatusSender(req *http.Request) (*http.Response, error)

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

type BasicResourceCertificateDetails

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

BasicResourceCertificateDetails certificate details representing the Vault credentials.

type CertificateRequest

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

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

type CheckNameAvailabilityParameters

type CheckNameAvailabilityParameters struct {
	// Type - Describes the Resource type: Microsoft.RecoveryServices/Vaults
	Type *string `json:"type,omitempty"`
	// Name - Resource name for which availability needs to be checked
	Name *string `json:"name,omitempty"`
}

CheckNameAvailabilityParameters resource Name availability input parameters - Resource type and resource name

type CheckNameAvailabilityResult

type CheckNameAvailabilityResult struct {
	autorest.Response `json:"-"`
	NameAvailable     *bool   `json:"nameAvailable,omitempty"`
	Reason            *string `json:"reason,omitempty"`
	Message           *string `json:"message,omitempty"`
}

CheckNameAvailabilityResult response for check name availability API. Resource provider will set availability as true | false.

type Client

type Client struct {
	BaseClient
}

Client is the recovery Services Client

func NewClient

func NewClient(subscriptionID string) Client

NewClient creates an instance of the Client client.

func NewClientWithBaseURI

func NewClientWithBaseURI(baseURI string, subscriptionID string) Client

NewClientWithBaseURI creates an instance of the Client 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 (Client) CheckNameAvailability

func (client Client) CheckNameAvailability(ctx context.Context, resourceGroupName string, location string, input CheckNameAvailabilityParameters) (result CheckNameAvailabilityResult, err error)

CheckNameAvailability sends the check name availability request. Parameters: resourceGroupName - the name of the resource group where the recovery services vault is present. location - location of the resource input - contains information about Resource type and Resource name

func (Client) CheckNameAvailabilityPreparer

func (client Client) CheckNameAvailabilityPreparer(ctx context.Context, resourceGroupName string, location string, input CheckNameAvailabilityParameters) (*http.Request, error)

CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.

func (Client) CheckNameAvailabilityResponder

func (client Client) CheckNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityResult, err error)

CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always closes the http.Response Body.

func (Client) CheckNameAvailabilitySender

func (client Client) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error)

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

type ClientDiscoveryDisplay

type ClientDiscoveryDisplay struct {
	// Provider - Name of the provider for display purposes
	Provider *string `json:"provider,omitempty"`
	// Resource - ResourceType for which this Operation can be performed.
	Resource *string `json:"resource,omitempty"`
	// Operation - Operations Name itself.
	Operation *string `json:"operation,omitempty"`
	// Description - Description of the operation having details of what operation is about.
	Description *string `json:"description,omitempty"`
}

ClientDiscoveryDisplay localized display information of an operation.

type ClientDiscoveryForLogSpecification

type ClientDiscoveryForLogSpecification struct {
	// Name - Name of the log.
	Name *string `json:"name,omitempty"`
	// DisplayName - Localized display name
	DisplayName *string `json:"displayName,omitempty"`
	// BlobDuration - Blobs created in customer storage account per hour
	BlobDuration *string `json:"blobDuration,omitempty"`
}

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

type ClientDiscoveryForProperties

type ClientDiscoveryForProperties struct {
	// ServiceSpecification - Operation properties.
	ServiceSpecification *ClientDiscoveryForServiceSpecification `json:"serviceSpecification,omitempty"`
}

ClientDiscoveryForProperties class to represent shoebox properties in json client discovery.

type ClientDiscoveryForServiceSpecification

type ClientDiscoveryForServiceSpecification struct {
	// LogSpecifications - List of log specifications of this operation.
	LogSpecifications *[]ClientDiscoveryForLogSpecification `json:"logSpecifications,omitempty"`
}

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

type ClientDiscoveryResponse

type ClientDiscoveryResponse struct {
	autorest.Response `json:"-"`
	// Value - List of available operations.
	Value *[]ClientDiscoveryValueForSingleAPI `json:"value,omitempty"`
	// NextLink - Link to the next chunk of the response
	NextLink *string `json:"nextLink,omitempty"`
}

ClientDiscoveryResponse operations List response which contains list of available APIs.

func (ClientDiscoveryResponse) IsEmpty

func (cdr ClientDiscoveryResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ClientDiscoveryResponseIterator

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

ClientDiscoveryResponseIterator provides access to a complete listing of ClientDiscoveryValueForSingleAPI values.

func NewClientDiscoveryResponseIterator

func NewClientDiscoveryResponseIterator(page ClientDiscoveryResponsePage) ClientDiscoveryResponseIterator

Creates a new instance of the ClientDiscoveryResponseIterator type.

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

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

func (iter ClientDiscoveryResponseIterator) NotDone() bool

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

func (ClientDiscoveryResponseIterator) Response

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

func (ClientDiscoveryResponseIterator) Value

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

type ClientDiscoveryResponsePage

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

ClientDiscoveryResponsePage contains a page of ClientDiscoveryValueForSingleAPI values.

func NewClientDiscoveryResponsePage

Creates a new instance of the ClientDiscoveryResponsePage type.

func (*ClientDiscoveryResponsePage) Next

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

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

func (page ClientDiscoveryResponsePage) NotDone() bool

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

func (ClientDiscoveryResponsePage) Response

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

func (ClientDiscoveryResponsePage) Values

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

type ClientDiscoveryValueForSingleAPI

type ClientDiscoveryValueForSingleAPI struct {
	// Name - Name of the Operation.
	Name *string `json:"name,omitempty"`
	// Display - Contains the localized display information for this particular operation
	Display *ClientDiscoveryDisplay `json:"display,omitempty"`
	// Origin - The intended executor of the operation;governs the display of the operation in the RBAC UX and the audit logs UX
	Origin *string `json:"origin,omitempty"`
	// Properties - ShoeBox properties for the given operation.
	Properties *ClientDiscoveryForProperties `json:"properties,omitempty"`
}

ClientDiscoveryValueForSingleAPI available operation details.

type CloudError

type CloudError struct {
	Error *Error `json:"error,omitempty"`
}

CloudError an error response from Azure Backup.

type CmkKekIdentity

type CmkKekIdentity struct {
	// UseSystemAssignedIdentity - Indicate that system assigned identity should be used. Mutually exclusive with 'userAssignedIdentity' field
	UseSystemAssignedIdentity *bool `json:"useSystemAssignedIdentity,omitempty"`
	// UserAssignedIdentity - The user assigned identity to be used to grant permissions in case the type of identity used is UserAssigned
	UserAssignedIdentity *string `json:"userAssignedIdentity,omitempty"`
}

CmkKekIdentity the details of the identity used for CMK

type CmkKeyVaultProperties

type CmkKeyVaultProperties struct {
	// KeyURI - The key uri of the Customer Managed Key
	KeyURI *string `json:"keyUri,omitempty"`
}

CmkKeyVaultProperties the properties of the Key Vault which hosts CMK

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 Error

type Error struct {
	// AdditionalInfo - READ-ONLY; The error additional info.
	AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"`
	// Code - READ-ONLY; The error code.
	Code *string `json:"code,omitempty"`
	// Details - READ-ONLY; The error details.
	Details *[]Error `json:"details,omitempty"`
	// Message - READ-ONLY; The error message.
	Message *string `json:"message,omitempty"`
	// Target - READ-ONLY; The error target.
	Target *string `json:"target,omitempty"`
}

Error the resource management error response.

func (Error) MarshalJSON

func (e Error) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Error.

type ErrorAdditionalInfo

type ErrorAdditionalInfo struct {
	// Info - READ-ONLY; The additional info.
	Info interface{} `json:"info,omitempty"`
	// Type - READ-ONLY; The additional info type.
	Type *string `json:"type,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 IdentityData

type IdentityData 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 type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identities. Possible values include: 'ResourceIdentityTypeSystemAssigned', 'ResourceIdentityTypeNone', 'ResourceIdentityTypeUserAssigned', 'ResourceIdentityTypeSystemAssignedUserAssigned'
	Type ResourceIdentityType `json:"type,omitempty"`
	// UserAssignedIdentities - The list of user-assigned identities associated with the resource. The user-assigned identity dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
	UserAssignedIdentities map[string]*UserIdentity `json:"userAssignedIdentities"`
}

IdentityData identity for the resource.

func (IdentityData) MarshalJSON

func (ID IdentityData) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for IdentityData.

type InfrastructureEncryptionState

type InfrastructureEncryptionState string

InfrastructureEncryptionState enumerates the values for infrastructure encryption state.

const (
	// InfrastructureEncryptionStateDisabled ...
	InfrastructureEncryptionStateDisabled InfrastructureEncryptionState = "Disabled"
	// InfrastructureEncryptionStateEnabled ...
	InfrastructureEncryptionStateEnabled InfrastructureEncryptionState = "Enabled"
)

func PossibleInfrastructureEncryptionStateValues

func PossibleInfrastructureEncryptionStateValues() []InfrastructureEncryptionState

PossibleInfrastructureEncryptionStateValues returns an array of possible values for the InfrastructureEncryptionState const type.

type JobsSummary

type JobsSummary struct {
	// FailedJobs - Count of failed jobs.
	FailedJobs *int32 `json:"failedJobs,omitempty"`
	// SuspendedJobs - Count of suspended jobs.
	SuspendedJobs *int32 `json:"suspendedJobs,omitempty"`
	// InProgressJobs - Count of in-progress jobs.
	InProgressJobs *int32 `json:"inProgressJobs,omitempty"`
}

JobsSummary summary of the replication job data for this vault.

type MonitoringSummary

type MonitoringSummary struct {
	// UnHealthyVMCount - Count of unhealthy VMs.
	UnHealthyVMCount *int32 `json:"unHealthyVmCount,omitempty"`
	// UnHealthyProviderCount - Count of unhealthy replication providers.
	UnHealthyProviderCount *int32 `json:"unHealthyProviderCount,omitempty"`
	// EventsCount - Count of all critical warnings.
	EventsCount *int32 `json:"eventsCount,omitempty"`
	// DeprecatedProviderCount - Count of all deprecated recovery service providers.
	DeprecatedProviderCount *int32 `json:"deprecatedProviderCount,omitempty"`
	// SupportedProviderCount - Count of all the supported recovery service providers.
	SupportedProviderCount *int32 `json:"supportedProviderCount,omitempty"`
	// UnsupportedProviderCount - Count of all the unsupported recovery service providers.
	UnsupportedProviderCount *int32 `json:"unsupportedProviderCount,omitempty"`
}

MonitoringSummary summary of the replication monitoring data for this vault.

type NameInfo

type NameInfo struct {
	// Value - Value of usage.
	Value *string `json:"value,omitempty"`
	// LocalizedValue - Localized value of usage.
	LocalizedValue *string `json:"localizedValue,omitempty"`
}

NameInfo the name of usage.

type OperationResource

type OperationResource struct {
	autorest.Response `json:"-"`
	// EndTime - End time of the operation
	EndTime *date.Time `json:"endTime,omitempty"`
	// Error - Required if status == failed or status == canceled. This is the OData v4 error format, used by the RPC and will go into the v2.2 Azure REST API guidelines.
	Error *Error `json:"error,omitempty"`
	// ID - It should match what is used to GET the operation result
	ID *string `json:"id,omitempty"`
	// Name - It must match the last segment of the "id" field, and will typically be a GUID / system generated value
	Name *string `json:"name,omitempty"`
	// Status - The status of the operation. (InProgress/Success/Failed/Cancelled)
	Status *string `json:"status,omitempty"`
	// StartTime - Start time of the operation
	StartTime *date.Time `json:"startTime,omitempty"`
}

OperationResource operation Resource

type OperationsClient

type OperationsClient struct {
	BaseClient
}

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationsClient) List

func (client OperationsClient) List(ctx context.Context) (result ClientDiscoveryResponsePage, err error)

List returns the list of available operations.

func (OperationsClient) ListComplete

func (client OperationsClient) ListComplete(ctx context.Context) (result ClientDiscoveryResponseIterator, err error)

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

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer(ctx context.Context) (*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 PatchTrackedResource

type PatchTrackedResource struct {
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ID - READ-ONLY; Resource Id represents the complete path to the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name associated with the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
	Type *string `json:"type,omitempty"`
	// Etag - Optional ETag.
	Etag *string `json:"etag,omitempty"`
}

PatchTrackedResource tracked resource with location.

func (PatchTrackedResource) MarshalJSON

func (ptr PatchTrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PatchTrackedResource.

type PatchVault

type PatchVault struct {
	Properties *VaultProperties `json:"properties,omitempty"`
	Sku        *Sku             `json:"sku,omitempty"`
	Identity   *IdentityData    `json:"identity,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ID - READ-ONLY; Resource Id represents the complete path to the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name associated with the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
	Type *string `json:"type,omitempty"`
	// Etag - Optional ETag.
	Etag *string `json:"etag,omitempty"`
}

PatchVault patch Resource information, as returned by the resource provider.

func (PatchVault) MarshalJSON

func (pv PatchVault) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PatchVault.

type PrivateEndpoint

type PrivateEndpoint struct {
	// ID - READ-ONLY; Gets or sets id.
	ID *string `json:"id,omitempty"`
}

PrivateEndpoint the Private Endpoint network resource that is linked to the Private Endpoint connection.

func (PrivateEndpoint) MarshalJSON

func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PrivateEndpoint.

type PrivateEndpointConnection

type PrivateEndpointConnection struct {
	// ProvisioningState - READ-ONLY; Gets or sets provisioning state of the private endpoint connection. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateDeleting', 'ProvisioningStateFailed', 'ProvisioningStatePending'
	ProvisioningState                 ProvisioningState                  `json:"provisioningState,omitempty"`
	PrivateEndpoint                   *PrivateEndpoint                   `json:"privateEndpoint,omitempty"`
	PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"`
}

PrivateEndpointConnection private Endpoint Connection Response Properties.

func (PrivateEndpointConnection) MarshalJSON

func (pec PrivateEndpointConnection) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PrivateEndpointConnection.

type PrivateEndpointConnectionStatus

type PrivateEndpointConnectionStatus string

PrivateEndpointConnectionStatus enumerates the values for private endpoint connection status.

const (
	// PrivateEndpointConnectionStatusApproved ...
	PrivateEndpointConnectionStatusApproved PrivateEndpointConnectionStatus = "Approved"
	// PrivateEndpointConnectionStatusDisconnected ...
	PrivateEndpointConnectionStatusDisconnected PrivateEndpointConnectionStatus = "Disconnected"
	// PrivateEndpointConnectionStatusPending ...
	PrivateEndpointConnectionStatusPending PrivateEndpointConnectionStatus = "Pending"
	// PrivateEndpointConnectionStatusRejected ...
	PrivateEndpointConnectionStatusRejected PrivateEndpointConnectionStatus = "Rejected"
)

func PossiblePrivateEndpointConnectionStatusValues

func PossiblePrivateEndpointConnectionStatusValues() []PrivateEndpointConnectionStatus

PossiblePrivateEndpointConnectionStatusValues returns an array of possible values for the PrivateEndpointConnectionStatus const type.

type PrivateEndpointConnectionVaultProperties

type PrivateEndpointConnectionVaultProperties struct {
	// ID - READ-ONLY; Format of id subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.[Service]/{resource}/{resourceName}/privateEndpointConnections/{connectionName}.
	ID         *string                    `json:"id,omitempty"`
	Properties *PrivateEndpointConnection `json:"properties,omitempty"`
	// Name - READ-ONLY; The name of the private Endpoint Connection
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type, which will be of the format, Microsoft.RecoveryServices/vaults/privateEndpointConnections
	Type *string `json:"type,omitempty"`
	// Location - READ-ONLY; The location of the private Endpoint connection
	Location *string `json:"location,omitempty"`
}

PrivateEndpointConnectionVaultProperties information to be stored in Vault properties as an element of privateEndpointConnections List.

func (PrivateEndpointConnectionVaultProperties) MarshalJSON

func (pecvp PrivateEndpointConnectionVaultProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PrivateEndpointConnectionVaultProperties.

type PrivateLinkResource

type PrivateLinkResource struct {
	autorest.Response `json:"-"`
	// PrivateLinkResourceProperties - Resource properties
	*PrivateLinkResourceProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Fully qualified identifier of the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; e.g. Microsoft.RecoveryServices/vaults/privateLinkResources
	Type *string `json:"type,omitempty"`
}

PrivateLinkResource information of the private link resource.

func (PrivateLinkResource) MarshalJSON

func (plr PrivateLinkResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PrivateLinkResource.

func (*PrivateLinkResource) UnmarshalJSON

func (plr *PrivateLinkResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PrivateLinkResource struct.

type PrivateLinkResourceProperties

type PrivateLinkResourceProperties struct {
	// GroupID - READ-ONLY; e.g. f9ad6492-33d4-4690-9999-6bfd52a0d081 (Backup) or f9ad6492-33d4-4690-9999-6bfd52a0d082 (SiteRecovery)
	GroupID *string `json:"groupId,omitempty"`
	// RequiredMembers - READ-ONLY; [backup-ecs1, backup-prot1, backup-prot1b, backup-prot1c, backup-id1]
	RequiredMembers *[]string `json:"requiredMembers,omitempty"`
	// RequiredZoneNames - READ-ONLY; The private link resource Private link DNS zone name.
	RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"`
}

PrivateLinkResourceProperties properties of the private link resource.

func (PrivateLinkResourceProperties) MarshalJSON

func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PrivateLinkResourceProperties.

type PrivateLinkResources

type PrivateLinkResources struct {
	autorest.Response `json:"-"`
	// Value - A collection of private link resources
	Value *[]PrivateLinkResource `json:"value,omitempty"`
	// NextLink - Link to the next chunk of the response
	NextLink *string `json:"nextLink,omitempty"`
}

PrivateLinkResources class which represent the stamps associated with the vault.

func (PrivateLinkResources) IsEmpty

func (plr PrivateLinkResources) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type PrivateLinkResourcesClient

type PrivateLinkResourcesClient struct {
	BaseClient
}

PrivateLinkResourcesClient is the recovery Services Client

func NewPrivateLinkResourcesClient

func NewPrivateLinkResourcesClient(subscriptionID string) PrivateLinkResourcesClient

NewPrivateLinkResourcesClient creates an instance of the PrivateLinkResourcesClient client.

func NewPrivateLinkResourcesClientWithBaseURI

func NewPrivateLinkResourcesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkResourcesClient

NewPrivateLinkResourcesClientWithBaseURI creates an instance of the PrivateLinkResourcesClient 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 (PrivateLinkResourcesClient) Get

func (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, vaultName string, privateLinkResourceName string) (result PrivateLinkResource, err error)

Get sends the get request. Parameters: resourceGroupName - the name of the resource group where the recovery services vault is present. vaultName - the name of the recovery services vault.

func (PrivateLinkResourcesClient) GetPreparer

func (client PrivateLinkResourcesClient) GetPreparer(ctx context.Context, resourceGroupName string, vaultName string, privateLinkResourceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (PrivateLinkResourcesClient) GetResponder

func (client PrivateLinkResourcesClient) GetResponder(resp *http.Response) (result PrivateLinkResource, err error)

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

func (PrivateLinkResourcesClient) GetSender

func (client PrivateLinkResourcesClient) 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 (PrivateLinkResourcesClient) List

func (client PrivateLinkResourcesClient) List(ctx context.Context, resourceGroupName string, vaultName string) (result PrivateLinkResourcesPage, err error)

List sends the list request. Parameters: resourceGroupName - the name of the resource group where the recovery services vault is present. vaultName - the name of the recovery services vault.

func (PrivateLinkResourcesClient) ListComplete

func (client PrivateLinkResourcesClient) ListComplete(ctx context.Context, resourceGroupName string, vaultName string) (result PrivateLinkResourcesIterator, err error)

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

func (PrivateLinkResourcesClient) ListPreparer

func (client PrivateLinkResourcesClient) ListPreparer(ctx context.Context, resourceGroupName string, vaultName string) (*http.Request, error)

ListPreparer prepares the List request.

func (PrivateLinkResourcesClient) ListResponder

func (client PrivateLinkResourcesClient) ListResponder(resp *http.Response) (result PrivateLinkResources, err error)

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

func (PrivateLinkResourcesClient) ListSender

func (client PrivateLinkResourcesClient) 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 PrivateLinkResourcesIterator

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

PrivateLinkResourcesIterator provides access to a complete listing of PrivateLinkResource values.

func NewPrivateLinkResourcesIterator

func NewPrivateLinkResourcesIterator(page PrivateLinkResourcesPage) PrivateLinkResourcesIterator

Creates a new instance of the PrivateLinkResourcesIterator type.

func (*PrivateLinkResourcesIterator) Next

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

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

func (iter PrivateLinkResourcesIterator) NotDone() bool

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

func (PrivateLinkResourcesIterator) Response

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

func (PrivateLinkResourcesIterator) Value

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

type PrivateLinkResourcesPage

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

PrivateLinkResourcesPage contains a page of PrivateLinkResource values.

func NewPrivateLinkResourcesPage

func NewPrivateLinkResourcesPage(cur PrivateLinkResources, getNextPage func(context.Context, PrivateLinkResources) (PrivateLinkResources, error)) PrivateLinkResourcesPage

Creates a new instance of the PrivateLinkResourcesPage type.

func (*PrivateLinkResourcesPage) Next

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

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

func (page PrivateLinkResourcesPage) NotDone() bool

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

func (PrivateLinkResourcesPage) Response

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

func (PrivateLinkResourcesPage) Values

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

type PrivateLinkServiceConnectionState

type PrivateLinkServiceConnectionState struct {
	// Status - READ-ONLY; Gets or sets the status. Possible values include: 'PrivateEndpointConnectionStatusPending', 'PrivateEndpointConnectionStatusApproved', 'PrivateEndpointConnectionStatusRejected', 'PrivateEndpointConnectionStatusDisconnected'
	Status PrivateEndpointConnectionStatus `json:"status,omitempty"`
	// Description - READ-ONLY; Gets or sets description.
	Description *string `json:"description,omitempty"`
	// ActionsRequired - READ-ONLY; Gets or sets actions required.
	ActionsRequired *string `json:"actionsRequired,omitempty"`
}

PrivateLinkServiceConnectionState gets or sets private link service connection state.

func (PrivateLinkServiceConnectionState) MarshalJSON

func (plscs PrivateLinkServiceConnectionState) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PrivateLinkServiceConnectionState.

type ProvisioningState

type ProvisioningState string

ProvisioningState enumerates the values for provisioning state.

const (
	// ProvisioningStateDeleting ...
	ProvisioningStateDeleting ProvisioningState = "Deleting"
	// ProvisioningStateFailed ...
	ProvisioningStateFailed ProvisioningState = "Failed"
	// ProvisioningStatePending ...
	ProvisioningStatePending ProvisioningState = "Pending"
	// ProvisioningStateSucceeded ...
	ProvisioningStateSucceeded ProvisioningState = "Succeeded"
)

func PossibleProvisioningStateValues

func PossibleProvisioningStateValues() []ProvisioningState

PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.

type RawCertificateData

type RawCertificateData struct {
	// AuthType - Specifies the authentication type. Possible values include: 'AuthTypeInvalid', 'AuthTypeACS', 'AuthTypeAAD', 'AuthTypeAccessControlService', 'AuthTypeAzureActiveDirectory'
	AuthType AuthType `json:"authType,omitempty"`
	// Certificate - The base64 encoded certificate raw data string
	Certificate *[]byte `json:"certificate,omitempty"`
}

RawCertificateData raw certificate data.

type RegisteredIdentitiesClient

type RegisteredIdentitiesClient struct {
	BaseClient
}

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (RegisteredIdentitiesClient) Delete

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

Delete unregisters the given container from your Recovery Services vault. Parameters: resourceGroupName - the name of the resource group where the recovery services vault is present. vaultName - the name of the recovery services vault. identityName - name of the protection container to unregister.

func (RegisteredIdentitiesClient) DeletePreparer

func (client RegisteredIdentitiesClient) DeletePreparer(ctx context.Context, 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 - Summary of the replication monitoring data for this vault.
	MonitoringSummary *MonitoringSummary `json:"monitoringSummary,omitempty"`
	// JobsSummary - Summary of the replication jobs data for this vault.
	JobsSummary *JobsSummary `json:"jobsSummary,omitempty"`
	// ProtectedItemCount - Number of replication protected items for this vault.
	ProtectedItemCount *int32 `json:"protectedItemCount,omitempty"`
	// RecoveryPlanCount - Number of replication recovery plans for this vault.
	RecoveryPlanCount *int32 `json:"recoveryPlanCount,omitempty"`
	// RegisteredServersCount - Number of servers registered to this vault.
	RegisteredServersCount *int32 `json:"registeredServersCount,omitempty"`
	// RecoveryServicesProviderAuthType - The authentication type of recovery service providers in the vault.
	RecoveryServicesProviderAuthType *int32 `json:"recoveryServicesProviderAuthType,omitempty"`
}

ReplicationUsage replication usages of a vault.

type ReplicationUsageList

type ReplicationUsageList struct {
	autorest.Response `json:"-"`
	// Value - The list of replication usages for the given vault.
	Value *[]ReplicationUsage `json:"value,omitempty"`
}

ReplicationUsageList replication usages for vault.

type ReplicationUsagesClient

type ReplicationUsagesClient struct {
	BaseClient
}

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ReplicationUsagesClient) List

func (client ReplicationUsagesClient) List(ctx context.Context, resourceGroupName string, vaultName string) (result ReplicationUsageList, err error)

List fetches the replication usages of the vault. Parameters: resourceGroupName - the name of the resource group where the recovery services vault is present. vaultName - the name of the recovery services vault.

func (ReplicationUsagesClient) ListPreparer

func (client ReplicationUsagesClient) ListPreparer(ctx context.Context, 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 - READ-ONLY; Resource Id represents the complete path to the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name associated with the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
	Type *string `json:"type,omitempty"`
	// Etag - Optional ETag.
	Etag *string `json:"etag,omitempty"`
}

Resource ARM Resource.

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Resource.

type ResourceCertificateAndAadDetails

type ResourceCertificateAndAadDetails struct {
	// AadAuthority - AAD tenant authority.
	AadAuthority *string `json:"aadAuthority,omitempty"`
	// AadTenantID - AAD tenant Id.
	AadTenantID *string `json:"aadTenantId,omitempty"`
	// ServicePrincipalClientID - AAD service principal clientId.
	ServicePrincipalClientID *string `json:"servicePrincipalClientId,omitempty"`
	// ServicePrincipalObjectID - AAD service principal ObjectId.
	ServicePrincipalObjectID *string `json:"servicePrincipalObjectId,omitempty"`
	// AzureManagementEndpointAudience - Azure Management Endpoint Audience.
	AzureManagementEndpointAudience *string `json:"azureManagementEndpointAudience,omitempty"`
	// ServiceResourceID - Service Resource Id.
	ServiceResourceID *string `json:"serviceResourceId,omitempty"`
	// Certificate - The base64 encoded certificate raw data string.
	Certificate *[]byte `json:"certificate,omitempty"`
	// FriendlyName - Certificate friendly name.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// Issuer - Certificate issuer.
	Issuer *string `json:"issuer,omitempty"`
	// ResourceID - Resource ID of the vault.
	ResourceID *int64 `json:"resourceId,omitempty"`
	// Subject - Certificate Subject Name.
	Subject *string `json:"subject,omitempty"`
	// Thumbprint - Certificate thumbprint.
	Thumbprint *string `json:"thumbprint,omitempty"`
	// ValidFrom - Certificate Validity start Date time.
	ValidFrom *date.Time `json:"validFrom,omitempty"`
	// ValidTo - Certificate Validity End Date time.
	ValidTo *date.Time `json:"validTo,omitempty"`
	// AuthType - Possible values include: 'AuthTypeBasicResourceCertificateDetailsAuthTypeResourceCertificateDetails', 'AuthTypeBasicResourceCertificateDetailsAuthTypeAzureActiveDirectory', 'AuthTypeBasicResourceCertificateDetailsAuthTypeAccessControlService'
	AuthType AuthTypeBasicResourceCertificateDetails `json:"authType,omitempty"`
}

ResourceCertificateAndAadDetails certificate details representing the Vault credentials for AAD.

func (ResourceCertificateAndAadDetails) AsBasicResourceCertificateDetails

func (rcaad ResourceCertificateAndAadDetails) AsBasicResourceCertificateDetails() (BasicResourceCertificateDetails, bool)

AsBasicResourceCertificateDetails is the BasicResourceCertificateDetails implementation for ResourceCertificateAndAadDetails.

func (ResourceCertificateAndAadDetails) AsResourceCertificateAndAadDetails

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

AsResourceCertificateAndAadDetails is the BasicResourceCertificateDetails implementation for ResourceCertificateAndAadDetails.

func (ResourceCertificateAndAadDetails) AsResourceCertificateAndAcsDetails

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

AsResourceCertificateAndAcsDetails is the BasicResourceCertificateDetails implementation for ResourceCertificateAndAadDetails.

func (ResourceCertificateAndAadDetails) AsResourceCertificateDetails

func (rcaad ResourceCertificateAndAadDetails) AsResourceCertificateDetails() (*ResourceCertificateDetails, bool)

AsResourceCertificateDetails is the BasicResourceCertificateDetails implementation for ResourceCertificateAndAadDetails.

func (ResourceCertificateAndAadDetails) MarshalJSON

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

MarshalJSON is the custom marshaler for ResourceCertificateAndAadDetails.

type ResourceCertificateAndAcsDetails

type ResourceCertificateAndAcsDetails struct {
	// GlobalAcsNamespace - ACS namespace name - tenant for our service.
	GlobalAcsNamespace *string `json:"globalAcsNamespace,omitempty"`
	// GlobalAcsHostName - Acs mgmt host name to connect to.
	GlobalAcsHostName *string `json:"globalAcsHostName,omitempty"`
	// GlobalAcsRPRealm - Global ACS namespace RP realm.
	GlobalAcsRPRealm *string `json:"globalAcsRPRealm,omitempty"`
	// Certificate - The base64 encoded certificate raw data string.
	Certificate *[]byte `json:"certificate,omitempty"`
	// FriendlyName - Certificate friendly name.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// Issuer - Certificate issuer.
	Issuer *string `json:"issuer,omitempty"`
	// ResourceID - Resource ID of the vault.
	ResourceID *int64 `json:"resourceId,omitempty"`
	// Subject - Certificate Subject Name.
	Subject *string `json:"subject,omitempty"`
	// Thumbprint - Certificate thumbprint.
	Thumbprint *string `json:"thumbprint,omitempty"`
	// ValidFrom - Certificate Validity start Date time.
	ValidFrom *date.Time `json:"validFrom,omitempty"`
	// ValidTo - Certificate Validity End Date time.
	ValidTo *date.Time `json:"validTo,omitempty"`
	// AuthType - Possible values include: 'AuthTypeBasicResourceCertificateDetailsAuthTypeResourceCertificateDetails', 'AuthTypeBasicResourceCertificateDetailsAuthTypeAzureActiveDirectory', 'AuthTypeBasicResourceCertificateDetailsAuthTypeAccessControlService'
	AuthType AuthTypeBasicResourceCertificateDetails `json:"authType,omitempty"`
}

ResourceCertificateAndAcsDetails certificate details representing the Vault credentials for ACS.

func (ResourceCertificateAndAcsDetails) AsBasicResourceCertificateDetails

func (rcaad ResourceCertificateAndAcsDetails) AsBasicResourceCertificateDetails() (BasicResourceCertificateDetails, bool)

AsBasicResourceCertificateDetails is the BasicResourceCertificateDetails implementation for ResourceCertificateAndAcsDetails.

func (ResourceCertificateAndAcsDetails) AsResourceCertificateAndAadDetails

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

AsResourceCertificateAndAadDetails is the BasicResourceCertificateDetails implementation for ResourceCertificateAndAcsDetails.

func (ResourceCertificateAndAcsDetails) AsResourceCertificateAndAcsDetails

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

AsResourceCertificateAndAcsDetails is the BasicResourceCertificateDetails implementation for ResourceCertificateAndAcsDetails.

func (ResourceCertificateAndAcsDetails) AsResourceCertificateDetails

func (rcaad ResourceCertificateAndAcsDetails) AsResourceCertificateDetails() (*ResourceCertificateDetails, bool)

AsResourceCertificateDetails is the BasicResourceCertificateDetails implementation for ResourceCertificateAndAcsDetails.

func (ResourceCertificateAndAcsDetails) MarshalJSON

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

MarshalJSON is the custom marshaler for ResourceCertificateAndAcsDetails.

type ResourceCertificateDetails

type ResourceCertificateDetails struct {
	// Certificate - The base64 encoded certificate raw data string.
	Certificate *[]byte `json:"certificate,omitempty"`
	// FriendlyName - Certificate friendly name.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// Issuer - Certificate issuer.
	Issuer *string `json:"issuer,omitempty"`
	// ResourceID - Resource ID of the vault.
	ResourceID *int64 `json:"resourceId,omitempty"`
	// Subject - Certificate Subject Name.
	Subject *string `json:"subject,omitempty"`
	// Thumbprint - Certificate thumbprint.
	Thumbprint *string `json:"thumbprint,omitempty"`
	// ValidFrom - Certificate Validity start Date time.
	ValidFrom *date.Time `json:"validFrom,omitempty"`
	// ValidTo - Certificate Validity End Date time.
	ValidTo *date.Time `json:"validTo,omitempty"`
	// AuthType - Possible values include: 'AuthTypeBasicResourceCertificateDetailsAuthTypeResourceCertificateDetails', 'AuthTypeBasicResourceCertificateDetailsAuthTypeAzureActiveDirectory', 'AuthTypeBasicResourceCertificateDetailsAuthTypeAccessControlService'
	AuthType AuthTypeBasicResourceCertificateDetails `json:"authType,omitempty"`
}

ResourceCertificateDetails certificate details representing the Vault credentials.

func (ResourceCertificateDetails) AsBasicResourceCertificateDetails

func (rcd ResourceCertificateDetails) AsBasicResourceCertificateDetails() (BasicResourceCertificateDetails, bool)

AsBasicResourceCertificateDetails is the BasicResourceCertificateDetails implementation for ResourceCertificateDetails.

func (ResourceCertificateDetails) AsResourceCertificateAndAadDetails

func (rcd ResourceCertificateDetails) AsResourceCertificateAndAadDetails() (*ResourceCertificateAndAadDetails, bool)

AsResourceCertificateAndAadDetails is the BasicResourceCertificateDetails implementation for ResourceCertificateDetails.

func (ResourceCertificateDetails) AsResourceCertificateAndAcsDetails

func (rcd ResourceCertificateDetails) AsResourceCertificateAndAcsDetails() (*ResourceCertificateAndAcsDetails, bool)

AsResourceCertificateAndAcsDetails is the BasicResourceCertificateDetails implementation for ResourceCertificateDetails.

func (ResourceCertificateDetails) AsResourceCertificateDetails

func (rcd ResourceCertificateDetails) AsResourceCertificateDetails() (*ResourceCertificateDetails, bool)

AsResourceCertificateDetails is the BasicResourceCertificateDetails implementation for ResourceCertificateDetails.

func (ResourceCertificateDetails) MarshalJSON

func (rcd ResourceCertificateDetails) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourceCertificateDetails.

type ResourceIdentityType

type ResourceIdentityType string

ResourceIdentityType enumerates the values for resource identity type.

const (
	// ResourceIdentityTypeNone ...
	ResourceIdentityTypeNone ResourceIdentityType = "None"
	// ResourceIdentityTypeSystemAssigned ...
	ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned"
	// ResourceIdentityTypeSystemAssignedUserAssigned ...
	ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned, UserAssigned"
	// ResourceIdentityTypeUserAssigned ...
	ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned"
)

func PossibleResourceIdentityTypeValues

func PossibleResourceIdentityTypeValues() []ResourceIdentityType

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

type ResourceMoveState

type ResourceMoveState string

ResourceMoveState enumerates the values for resource move state.

const (
	// ResourceMoveStateCommitFailed ...
	ResourceMoveStateCommitFailed ResourceMoveState = "CommitFailed"
	// ResourceMoveStateCommitTimedout ...
	ResourceMoveStateCommitTimedout ResourceMoveState = "CommitTimedout"
	// ResourceMoveStateCriticalFailure ...
	ResourceMoveStateCriticalFailure ResourceMoveState = "CriticalFailure"
	// ResourceMoveStateFailure ...
	ResourceMoveStateFailure ResourceMoveState = "Failure"
	// ResourceMoveStateInProgress ...
	ResourceMoveStateInProgress ResourceMoveState = "InProgress"
	// ResourceMoveStateMoveSucceeded ...
	ResourceMoveStateMoveSucceeded ResourceMoveState = "MoveSucceeded"
	// ResourceMoveStatePartialSuccess ...
	ResourceMoveStatePartialSuccess ResourceMoveState = "PartialSuccess"
	// ResourceMoveStatePrepareFailed ...
	ResourceMoveStatePrepareFailed ResourceMoveState = "PrepareFailed"
	// ResourceMoveStatePrepareTimedout ...
	ResourceMoveStatePrepareTimedout ResourceMoveState = "PrepareTimedout"
	// ResourceMoveStateUnknown ...
	ResourceMoveStateUnknown ResourceMoveState = "Unknown"
)

func PossibleResourceMoveStateValues

func PossibleResourceMoveStateValues() []ResourceMoveState

PossibleResourceMoveStateValues returns an array of possible values for the ResourceMoveState const type.

type Sku

type Sku struct {
	// Name - The Sku name. Possible values include: 'SkuNameStandard', 'SkuNameRS0'
	Name SkuName `json:"name,omitempty"`
	// Tier - The Sku tier.
	Tier *string `json:"tier,omitempty"`
	// Family - The sku family
	Family *string `json:"family,omitempty"`
	// Size - The sku size
	Size *string `json:"size,omitempty"`
	// Capacity - The sku capacity
	Capacity *string `json:"capacity,omitempty"`
}

Sku identifies the unique system identifier for each Azure resource.

type SkuName

type SkuName string

SkuName enumerates the values for sku name.

const (
	// SkuNameRS0 ...
	SkuNameRS0 SkuName = "RS0"
	// SkuNameStandard ...
	SkuNameStandard SkuName = "Standard"
)

func PossibleSkuNameValues

func PossibleSkuNameValues() []SkuName

PossibleSkuNameValues returns an array of possible values for the SkuName 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 type of identity that last modified the resource.
	LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"`
}

SystemData metadata pertaining to creation and last modification of the resource.

type TrackedResource

type TrackedResource struct {
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ID - READ-ONLY; Resource Id represents the complete path to the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name associated with the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
	Type *string `json:"type,omitempty"`
	// Etag - Optional ETag.
	Etag *string `json:"etag,omitempty"`
}

TrackedResource tracked resource with location.

func (TrackedResource) MarshalJSON

func (tr TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TrackedResource.

type TriggerType

type TriggerType string

TriggerType enumerates the values for trigger type.

const (
	// TriggerTypeForcedUpgrade ...
	TriggerTypeForcedUpgrade TriggerType = "ForcedUpgrade"
	// TriggerTypeUserTriggered ...
	TriggerTypeUserTriggered TriggerType = "UserTriggered"
)

func PossibleTriggerTypeValues

func PossibleTriggerTypeValues() []TriggerType

PossibleTriggerTypeValues returns an array of possible values for the TriggerType const type.

type UpgradeDetails

type UpgradeDetails struct {
	// OperationID - READ-ONLY; ID of the vault upgrade operation.
	OperationID *string `json:"operationId,omitempty"`
	// StartTimeUtc - READ-ONLY; UTC time at which the upgrade operation has started.
	StartTimeUtc *date.Time `json:"startTimeUtc,omitempty"`
	// LastUpdatedTimeUtc - READ-ONLY; UTC time at which the upgrade operation status was last updated.
	LastUpdatedTimeUtc *date.Time `json:"lastUpdatedTimeUtc,omitempty"`
	// EndTimeUtc - READ-ONLY; UTC time at which the upgrade operation has ended.
	EndTimeUtc *date.Time `json:"endTimeUtc,omitempty"`
	// Status - READ-ONLY; Status of the vault upgrade operation. Possible values include: 'VaultUpgradeStateUnknown', 'VaultUpgradeStateInProgress', 'VaultUpgradeStateUpgraded', 'VaultUpgradeStateFailed'
	Status VaultUpgradeState `json:"status,omitempty"`
	// Message - READ-ONLY; Message to the user containing information about the upgrade operation.
	Message *string `json:"message,omitempty"`
	// TriggerType - READ-ONLY; The way the vault upgrade was triggered. Possible values include: 'TriggerTypeUserTriggered', 'TriggerTypeForcedUpgrade'
	TriggerType TriggerType `json:"triggerType,omitempty"`
	// UpgradedResourceID - READ-ONLY; Resource ID of the upgraded vault.
	UpgradedResourceID *string `json:"upgradedResourceId,omitempty"`
	// PreviousResourceID - READ-ONLY; Resource ID of the vault before the upgrade.
	PreviousResourceID *string `json:"previousResourceId,omitempty"`
}

UpgradeDetails details for upgrading vault.

func (UpgradeDetails) MarshalJSON

func (ud UpgradeDetails) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for UpgradeDetails.

type UsagesClient

type UsagesClient struct {
	BaseClient
}

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (UsagesClient) ListByVaults

func (client UsagesClient) ListByVaults(ctx context.Context, resourceGroupName string, vaultName string) (result VaultUsageList, err error)

ListByVaults fetches the usages of the vault. Parameters: resourceGroupName - the name of the resource group where the recovery services vault is present. vaultName - the name of the recovery services vault.

func (UsagesClient) ListByVaultsPreparer

func (client UsagesClient) ListByVaultsPreparer(ctx context.Context, 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 (
	// UsagesUnitBytes ...
	UsagesUnitBytes UsagesUnit = "Bytes"
	// UsagesUnitBytesPerSecond ...
	UsagesUnitBytesPerSecond UsagesUnit = "BytesPerSecond"
	// UsagesUnitCount ...
	UsagesUnitCount UsagesUnit = "Count"
	// UsagesUnitCountPerSecond ...
	UsagesUnitCountPerSecond UsagesUnit = "CountPerSecond"
	// UsagesUnitPercent ...
	UsagesUnitPercent UsagesUnit = "Percent"
	// UsagesUnitSeconds ...
	UsagesUnitSeconds UsagesUnit = "Seconds"
)

func PossibleUsagesUnitValues

func PossibleUsagesUnitValues() []UsagesUnit

PossibleUsagesUnitValues returns an array of possible values for the UsagesUnit const type.

type UserIdentity

type UserIdentity struct {
	// PrincipalID - READ-ONLY; The principal ID of the user-assigned identity.
	PrincipalID *string `json:"principalId,omitempty"`
	// ClientID - READ-ONLY; The client ID of the user-assigned identity.
	ClientID *string `json:"clientId,omitempty"`
}

UserIdentity a resource identity that is managed by the user of the service.

func (UserIdentity) MarshalJSON

func (UI UserIdentity) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for UserIdentity.

type Vault

type Vault struct {
	autorest.Response `json:"-"`
	Identity          *IdentityData    `json:"identity,omitempty"`
	Properties        *VaultProperties `json:"properties,omitempty"`
	Sku               *Sku             `json:"sku,omitempty"`
	SystemData        *SystemData      `json:"systemData,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ID - READ-ONLY; Resource Id represents the complete path to the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name associated with the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
	Type *string `json:"type,omitempty"`
	// Etag - Optional ETag.
	Etag *string `json:"etag,omitempty"`
}

Vault resource information, as returned by the resource provider.

func (Vault) MarshalJSON

func (vVar Vault) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Vault.

type VaultCertificateResponse

type VaultCertificateResponse struct {
	autorest.Response `json:"-"`
	// Name - READ-ONLY; Resource name associated with the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
	Type *string `json:"type,omitempty"`
	// ID - READ-ONLY; Resource Id represents the complete path to the resource.
	ID         *string                         `json:"id,omitempty"`
	Properties BasicResourceCertificateDetails `json:"properties,omitempty"`
}

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

func (VaultCertificateResponse) MarshalJSON

func (vcr VaultCertificateResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VaultCertificateResponse.

func (*VaultCertificateResponse) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for VaultCertificateResponse struct.

type VaultCertificatesClient

type VaultCertificatesClient struct {
	BaseClient
}

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (VaultCertificatesClient) Create

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

Create uploads a certificate for a resource. Parameters: resourceGroupName - the name of the resource group where the recovery services vault is present. vaultName - the name of the recovery services vault. certificateName - certificate friendly name. certificateRequest - input parameters for uploading the vault certificate.

func (VaultCertificatesClient) CreatePreparer

func (client VaultCertificatesClient) CreatePreparer(ctx context.Context, 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 - Integrity key.
	IntegrityKey *string `json:"integrityKey,omitempty"`
	// EncryptionKey - Encryption key.
	EncryptionKey *string `json:"encryptionKey,omitempty"`
	// EncryptionKeyThumbprint - Encryption key thumbprint.
	EncryptionKeyThumbprint *string `json:"encryptionKeyThumbprint,omitempty"`
	// Algorithm - Algorithm for Vault ExtendedInfo
	Algorithm *string `json:"algorithm,omitempty"`
}

VaultExtendedInfo vault extended information.

type VaultExtendedInfoClient

type VaultExtendedInfoClient struct {
	BaseClient
}

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (VaultExtendedInfoClient) CreateOrUpdate

func (client VaultExtendedInfoClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, vaultName string, resourceResourceExtendedInfoDetails VaultExtendedInfoResource) (result VaultExtendedInfoResource, err error)

CreateOrUpdate create vault extended info. Parameters: resourceGroupName - the name of the resource group where the recovery services vault is present. vaultName - the name of the recovery services vault. resourceResourceExtendedInfoDetails - details of ResourceExtendedInfo

func (VaultExtendedInfoClient) CreateOrUpdatePreparer

func (client VaultExtendedInfoClient) CreateOrUpdatePreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, vaultName string) (result VaultExtendedInfoResource, err error)

Get get the vault extended info. Parameters: resourceGroupName - the name of the resource group where the recovery services vault is present. vaultName - the name of the recovery services vault.

func (VaultExtendedInfoClient) GetPreparer

func (client VaultExtendedInfoClient) GetPreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, vaultName string, resourceResourceExtendedInfoDetails VaultExtendedInfoResource) (result VaultExtendedInfoResource, err error)

Update update vault extended info. Parameters: resourceGroupName - the name of the resource group where the recovery services vault is present. vaultName - the name of the recovery services vault. resourceResourceExtendedInfoDetails - details of ResourceExtendedInfo

func (VaultExtendedInfoClient) UpdatePreparer

func (client VaultExtendedInfoClient) UpdatePreparer(ctx context.Context, 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:"-"`
	*VaultExtendedInfo `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id represents the complete path to the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name associated with the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
	Type *string `json:"type,omitempty"`
	// Etag - Optional ETag.
	Etag *string `json:"etag,omitempty"`
}

VaultExtendedInfoResource vault extended information.

func (VaultExtendedInfoResource) MarshalJSON

func (veir VaultExtendedInfoResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VaultExtendedInfoResource.

func (*VaultExtendedInfoResource) UnmarshalJSON

func (veir *VaultExtendedInfoResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for VaultExtendedInfoResource struct.

type VaultList

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

VaultList the response model for a list of Vaults.

func (VaultList) IsEmpty

func (vl VaultList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (VaultList) MarshalJSON

func (vl VaultList) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VaultList.

type VaultListIterator

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

VaultListIterator provides access to a complete listing of Vault values.

func NewVaultListIterator

func NewVaultListIterator(page VaultListPage) VaultListIterator

Creates a new instance of the VaultListIterator type.

func (*VaultListIterator) Next

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

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

func (iter VaultListIterator) NotDone() bool

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

func (VaultListIterator) Response

func (iter VaultListIterator) Response() VaultList

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

func (VaultListIterator) Value

func (iter VaultListIterator) Value() Vault

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

type VaultListPage

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

VaultListPage contains a page of Vault values.

func NewVaultListPage

func NewVaultListPage(cur VaultList, getNextPage func(context.Context, VaultList) (VaultList, error)) VaultListPage

Creates a new instance of the VaultListPage type.

func (*VaultListPage) Next

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

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

func (page VaultListPage) NotDone() bool

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

func (VaultListPage) Response

func (page VaultListPage) Response() VaultList

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

func (VaultListPage) Values

func (page VaultListPage) Values() []Vault

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

type VaultPrivateEndpointState

type VaultPrivateEndpointState string

VaultPrivateEndpointState enumerates the values for vault private endpoint state.

const (
	// VaultPrivateEndpointStateEnabled ...
	VaultPrivateEndpointStateEnabled VaultPrivateEndpointState = "Enabled"
	// VaultPrivateEndpointStateNone ...
	VaultPrivateEndpointStateNone VaultPrivateEndpointState = "None"
)

func PossibleVaultPrivateEndpointStateValues

func PossibleVaultPrivateEndpointStateValues() []VaultPrivateEndpointState

PossibleVaultPrivateEndpointStateValues returns an array of possible values for the VaultPrivateEndpointState const type.

type VaultProperties

type VaultProperties struct {
	// ProvisioningState - READ-ONLY; Provisioning State.
	ProvisioningState *string         `json:"provisioningState,omitempty"`
	UpgradeDetails    *UpgradeDetails `json:"upgradeDetails,omitempty"`
	// PrivateEndpointConnections - READ-ONLY; List of private endpoint connection.
	PrivateEndpointConnections *[]PrivateEndpointConnectionVaultProperties `json:"privateEndpointConnections,omitempty"`
	// PrivateEndpointStateForBackup - READ-ONLY; Private endpoint state for backup. Possible values include: 'VaultPrivateEndpointStateNone', 'VaultPrivateEndpointStateEnabled'
	PrivateEndpointStateForBackup VaultPrivateEndpointState `json:"privateEndpointStateForBackup,omitempty"`
	// PrivateEndpointStateForSiteRecovery - READ-ONLY; Private endpoint state for site recovery. Possible values include: 'VaultPrivateEndpointStateNone', 'VaultPrivateEndpointStateEnabled'
	PrivateEndpointStateForSiteRecovery VaultPrivateEndpointState `json:"privateEndpointStateForSiteRecovery,omitempty"`
	// Encryption - Customer Managed Key details of the resource.
	Encryption *VaultPropertiesEncryption `json:"encryption,omitempty"`
	// MoveDetails - The details of the latest move operation performed on the Azure Resource
	MoveDetails *VaultPropertiesMoveDetails `json:"moveDetails,omitempty"`
	// MoveState - READ-ONLY; The State of the Resource after the move operation. Possible values include: 'ResourceMoveStateUnknown', 'ResourceMoveStateInProgress', 'ResourceMoveStatePrepareFailed', 'ResourceMoveStateCommitFailed', 'ResourceMoveStatePrepareTimedout', 'ResourceMoveStateCommitTimedout', 'ResourceMoveStateMoveSucceeded', 'ResourceMoveStateFailure', 'ResourceMoveStateCriticalFailure', 'ResourceMoveStatePartialSuccess'
	MoveState ResourceMoveState `json:"moveState,omitempty"`
}

VaultProperties properties of the vault.

func (VaultProperties) MarshalJSON

func (vp VaultProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VaultProperties.

type VaultPropertiesEncryption

type VaultPropertiesEncryption struct {
	KeyVaultProperties *CmkKeyVaultProperties `json:"keyVaultProperties,omitempty"`
	KekIdentity        *CmkKekIdentity        `json:"kekIdentity,omitempty"`
	// InfrastructureEncryption - Enabling/Disabling the Double Encryption state. Possible values include: 'InfrastructureEncryptionStateEnabled', 'InfrastructureEncryptionStateDisabled'
	InfrastructureEncryption InfrastructureEncryptionState `json:"infrastructureEncryption,omitempty"`
}

VaultPropertiesEncryption customer Managed Key details of the resource.

type VaultPropertiesMoveDetails

type VaultPropertiesMoveDetails struct {
	// OperationID - READ-ONLY; OperationId of the Resource Move Operation
	OperationID *string `json:"operationId,omitempty"`
	// StartTimeUtc - READ-ONLY; Start Time of the Resource Move Operation
	StartTimeUtc *date.Time `json:"startTimeUtc,omitempty"`
	// CompletionTimeUtc - READ-ONLY; End Time of the Resource Move Operation
	CompletionTimeUtc *date.Time `json:"completionTimeUtc,omitempty"`
	// SourceResourceID - READ-ONLY; Source Resource of the Resource Move Operation
	SourceResourceID *string `json:"sourceResourceId,omitempty"`
	// TargetResourceID - READ-ONLY; Target Resource of the Resource Move Operation
	TargetResourceID *string `json:"targetResourceId,omitempty"`
}

VaultPropertiesMoveDetails the details of the latest move operation performed on the Azure Resource

func (VaultPropertiesMoveDetails) MarshalJSON

func (vpD VaultPropertiesMoveDetails) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VaultPropertiesMoveDetails.

type VaultUpgradeState

type VaultUpgradeState string

VaultUpgradeState enumerates the values for vault upgrade state.

const (
	// VaultUpgradeStateFailed ...
	VaultUpgradeStateFailed VaultUpgradeState = "Failed"
	// VaultUpgradeStateInProgress ...
	VaultUpgradeStateInProgress VaultUpgradeState = "InProgress"
	// VaultUpgradeStateUnknown ...
	VaultUpgradeStateUnknown VaultUpgradeState = "Unknown"
	// VaultUpgradeStateUpgraded ...
	VaultUpgradeStateUpgraded VaultUpgradeState = "Upgraded"
)

func PossibleVaultUpgradeStateValues

func PossibleVaultUpgradeStateValues() []VaultUpgradeState

PossibleVaultUpgradeStateValues returns an array of possible values for the VaultUpgradeState const type.

type VaultUsage

type VaultUsage struct {
	// Unit - Unit of the usage. Possible values include: 'UsagesUnitCount', 'UsagesUnitBytes', 'UsagesUnitSeconds', 'UsagesUnitPercent', 'UsagesUnitCountPerSecond', 'UsagesUnitBytesPerSecond'
	Unit UsagesUnit `json:"unit,omitempty"`
	// QuotaPeriod - Quota period of usage.
	QuotaPeriod *string `json:"quotaPeriod,omitempty"`
	// NextResetTime - Next reset time of usage.
	NextResetTime *date.Time `json:"nextResetTime,omitempty"`
	// CurrentValue - Current value of usage.
	CurrentValue *int64 `json:"currentValue,omitempty"`
	// Limit - Limit of usage.
	Limit *int64 `json:"limit,omitempty"`
	// Name - Name of usage.
	Name *NameInfo `json:"name,omitempty"`
}

VaultUsage usages of a vault.

type VaultUsageList

type VaultUsageList struct {
	autorest.Response `json:"-"`
	// Value - The list of usages for the given vault.
	Value *[]VaultUsage `json:"value,omitempty"`
}

VaultUsageList usage for vault.

type VaultsClient

type VaultsClient struct {
	BaseClient
}

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (VaultsClient) CreateOrUpdate

func (client VaultsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, vaultName string, vault Vault) (result VaultsCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates a Recovery Services vault. Parameters: resourceGroupName - the name of the resource group where the recovery services vault is present. vaultName - the name of the recovery services vault. vault - recovery Services Vault to be created.

func (VaultsClient) CreateOrUpdatePreparer

func (client VaultsClient) CreateOrUpdatePreparer(ctx context.Context, 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) (future VaultsCreateOrUpdateFuture, err 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(ctx context.Context, resourceGroupName string, vaultName string) (result autorest.Response, err error)

Delete deletes a vault. Parameters: resourceGroupName - the name of the resource group where the recovery services vault is present. vaultName - the name of the recovery services vault.

func (VaultsClient) DeletePreparer

func (client VaultsClient) DeletePreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, vaultName string) (result Vault, err error)

Get get the Vault details. Parameters: resourceGroupName - the name of the resource group where the recovery services vault is present. vaultName - the name of the recovery services vault.

func (VaultsClient) GetPreparer

func (client VaultsClient) GetPreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string) (result VaultListPage, err error)

ListByResourceGroup retrieve a list of Vaults. Parameters: resourceGroupName - the name of the resource group where the recovery services vault is present.

func (VaultsClient) ListByResourceGroupComplete

func (client VaultsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result VaultListIterator, err error)

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

func (VaultsClient) ListByResourceGroupPreparer

func (client VaultsClient) ListByResourceGroupPreparer(ctx context.Context, 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(ctx context.Context) (result VaultListPage, err error)

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

func (VaultsClient) ListBySubscriptionIDComplete

func (client VaultsClient) ListBySubscriptionIDComplete(ctx context.Context) (result VaultListIterator, err error)

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

func (VaultsClient) ListBySubscriptionIDPreparer

func (client VaultsClient) ListBySubscriptionIDPreparer(ctx context.Context) (*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(ctx context.Context, resourceGroupName string, vaultName string, vault PatchVault) (result VaultsUpdateFuture, err error)

Update updates the vault. Parameters: resourceGroupName - the name of the resource group where the recovery services vault is present. vaultName - the name of the recovery services vault. vault - recovery Services Vault to be created.

func (VaultsClient) UpdatePreparer

func (client VaultsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, vaultName string, vault PatchVault) (*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) (future VaultsUpdateFuture, err error)

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

type VaultsCreateOrUpdateFuture

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

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

func (*VaultsCreateOrUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type VaultsUpdateFuture

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

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

func (*VaultsUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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