azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2016-06-01/recoveryservices Index | Files | Directories

package recoveryservices

import "github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2016-06-01/recoveryservices"

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

Recovery Services Client

Index

Package Files

client.go models.go operations.go recoveryservices.go registeredidentities.go replicationusages.go usages.go vaultcertificates.go vaultextendedinfo.go vaults.go version.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Recoveryservices
    DefaultBaseURI = "https://management.azure.com"
)

func UserAgent Uses

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version Uses

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type AuthType Uses

type AuthType string

AuthType enumerates the values for auth type.

const (
    // AAD ...
    AAD AuthType = "AAD"
    // AccessControlService ...
    AccessControlService AuthType = "AccessControlService"
    // ACS ...
    ACS AuthType = "ACS"
    // AzureActiveDirectory ...
    AzureActiveDirectory AuthType = "AzureActiveDirectory"
    // Invalid ...
    Invalid AuthType = "Invalid"
)

func PossibleAuthTypeValues Uses

func PossibleAuthTypeValues() []AuthType

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

type AuthTypeBasicResourceCertificateDetails Uses

type AuthTypeBasicResourceCertificateDetails string

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

const (
    // AuthTypeAccessControlService ...
    AuthTypeAccessControlService AuthTypeBasicResourceCertificateDetails = "AccessControlService"
    // AuthTypeAzureActiveDirectory ...
    AuthTypeAzureActiveDirectory AuthTypeBasicResourceCertificateDetails = "AzureActiveDirectory"
    // AuthTypeResourceCertificateDetails ...
    AuthTypeResourceCertificateDetails AuthTypeBasicResourceCertificateDetails = "ResourceCertificateDetails"
)

func PossibleAuthTypeBasicResourceCertificateDetailsValues Uses

func PossibleAuthTypeBasicResourceCertificateDetailsValues() []AuthTypeBasicResourceCertificateDetails

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

type BaseClient Uses

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

BaseClient is the base client for Recoveryservices.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type BasicResourceCertificateDetails Uses

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

BasicResourceCertificateDetails certificate details representing the Vault credentials.

type CertificateRequest Uses

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

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

type CheckNameAvailabilityParameters Uses

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 Uses

type CheckNameAvailabilityResult struct {
    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 CheckNameAvailabilityResultResource Uses

type CheckNameAvailabilityResultResource struct {
    autorest.Response `json:"-"`
    // Properties - CheckNameAvailabilityResultResource properties
    Properties *CheckNameAvailabilityResult `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"`
}

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

type Client Uses

type Client struct {
    BaseClient
}

Client is the recovery Services Client

func NewClient Uses

func NewClient(subscriptionID string) Client

NewClient creates an instance of the Client client.

func NewClientWithBaseURI Uses

func NewClientWithBaseURI(baseURI string, subscriptionID string) Client

NewClientWithBaseURI creates an instance of the Client client.

func (Client) CheckNameAvailability Uses

func (client Client) CheckNameAvailability(ctx context.Context, resourceGroupName string, location string, input CheckNameAvailabilityParameters) (result CheckNameAvailabilityResultResource, 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 Uses

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

CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.

func (Client) CheckNameAvailabilityResponder Uses

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

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

func (Client) CheckNameAvailabilitySender Uses

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 Uses

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 Uses

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 Uses

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

ClientDiscoveryForProperties class to represent shoebox properties in json client discovery.

type ClientDiscoveryForServiceSpecification Uses

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 Uses

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 Uses

func (cdr ClientDiscoveryResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ClientDiscoveryResponseIterator Uses

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

ClientDiscoveryResponseIterator provides access to a complete listing of ClientDiscoveryValueForSingleAPI values.

func NewClientDiscoveryResponseIterator Uses

func NewClientDiscoveryResponseIterator(page ClientDiscoveryResponsePage) ClientDiscoveryResponseIterator

Creates a new instance of the ClientDiscoveryResponseIterator type.

func (*ClientDiscoveryResponseIterator) Next Uses

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

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 Uses

func (iter ClientDiscoveryResponseIterator) NotDone() bool

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

func (ClientDiscoveryResponseIterator) Response Uses

func (iter ClientDiscoveryResponseIterator) Response() ClientDiscoveryResponse

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

func (ClientDiscoveryResponseIterator) Value Uses

func (iter ClientDiscoveryResponseIterator) Value() ClientDiscoveryValueForSingleAPI

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

type ClientDiscoveryResponsePage Uses

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

ClientDiscoveryResponsePage contains a page of ClientDiscoveryValueForSingleAPI values.

func NewClientDiscoveryResponsePage Uses

func NewClientDiscoveryResponsePage(getNextPage func(context.Context, ClientDiscoveryResponse) (ClientDiscoveryResponse, error)) ClientDiscoveryResponsePage

Creates a new instance of the ClientDiscoveryResponsePage type.

func (*ClientDiscoveryResponsePage) Next Uses

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 Uses

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 Uses

func (page ClientDiscoveryResponsePage) NotDone() bool

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

func (ClientDiscoveryResponsePage) Response Uses

func (page ClientDiscoveryResponsePage) Response() ClientDiscoveryResponse

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

func (ClientDiscoveryResponsePage) Values Uses

func (page ClientDiscoveryResponsePage) Values() []ClientDiscoveryValueForSingleAPI

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

type ClientDiscoveryValueForSingleAPI Uses

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 JobsSummary Uses

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 Uses

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 Uses

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 OperationsClient Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the recovery Services Client

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List Uses

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

List returns the list of available operations.

func (OperationsClient) ListComplete Uses

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

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

func (OperationsClient) ListPreparer Uses

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for PatchTrackedResource.

type PatchVault Uses

type PatchVault struct {
    Properties *VaultProperties `json:"properties,omitempty"`
    Sku        *Sku             `json:"sku,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 Uses

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

MarshalJSON is the custom marshaler for PatchVault.

type RawCertificateData Uses

type RawCertificateData struct {
    // AuthType - Specifies the authentication type. Possible values include: 'Invalid', 'ACS', 'AAD', 'AccessControlService', 'AzureActiveDirectory'
    AuthType AuthType `json:"authType,omitempty"`
    // Certificate - The base64 encoded certificate raw data string
    Certificate *[]byte `json:"certificate,omitempty"`
}

RawCertificateData raw certificate data.

type RegisteredIdentitiesClient Uses

type RegisteredIdentitiesClient struct {
    BaseClient
}

RegisteredIdentitiesClient is the recovery Services Client

func NewRegisteredIdentitiesClient Uses

func NewRegisteredIdentitiesClient(subscriptionID string) RegisteredIdentitiesClient

NewRegisteredIdentitiesClient creates an instance of the RegisteredIdentitiesClient client.

func NewRegisteredIdentitiesClientWithBaseURI Uses

func NewRegisteredIdentitiesClientWithBaseURI(baseURI string, subscriptionID string) RegisteredIdentitiesClient

NewRegisteredIdentitiesClientWithBaseURI creates an instance of the RegisteredIdentitiesClient client.

func (RegisteredIdentitiesClient) Delete Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (RegisteredIdentitiesClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

type ReplicationUsagesClient struct {
    BaseClient
}

ReplicationUsagesClient is the recovery Services Client

func NewReplicationUsagesClient Uses

func NewReplicationUsagesClient(subscriptionID string) ReplicationUsagesClient

NewReplicationUsagesClient creates an instance of the ReplicationUsagesClient client.

func NewReplicationUsagesClientWithBaseURI Uses

func NewReplicationUsagesClientWithBaseURI(baseURI string, subscriptionID string) ReplicationUsagesClient

NewReplicationUsagesClientWithBaseURI creates an instance of the ReplicationUsagesClient client.

func (ReplicationUsagesClient) List Uses

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 Uses

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

ListPreparer prepares the List request.

func (ReplicationUsagesClient) ListResponder Uses

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 Uses

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 Uses

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.

type ResourceCertificateAndAadDetails Uses

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"`
    // 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: 'AuthTypeResourceCertificateDetails', 'AuthTypeAzureActiveDirectory', 'AuthTypeAccessControlService'
    AuthType AuthTypeBasicResourceCertificateDetails `json:"authType,omitempty"`
}

ResourceCertificateAndAadDetails certificate details representing the Vault credentials for AAD.

func (ResourceCertificateAndAadDetails) AsBasicResourceCertificateDetails Uses

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

AsBasicResourceCertificateDetails is the BasicResourceCertificateDetails implementation for ResourceCertificateAndAadDetails.

func (ResourceCertificateAndAadDetails) AsResourceCertificateAndAadDetails Uses

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

AsResourceCertificateAndAadDetails is the BasicResourceCertificateDetails implementation for ResourceCertificateAndAadDetails.

func (ResourceCertificateAndAadDetails) AsResourceCertificateAndAcsDetails Uses

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

AsResourceCertificateAndAcsDetails is the BasicResourceCertificateDetails implementation for ResourceCertificateAndAadDetails.

func (ResourceCertificateAndAadDetails) AsResourceCertificateDetails Uses

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

AsResourceCertificateDetails is the BasicResourceCertificateDetails implementation for ResourceCertificateAndAadDetails.

func (ResourceCertificateAndAadDetails) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ResourceCertificateAndAadDetails.

type ResourceCertificateAndAcsDetails Uses

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: 'AuthTypeResourceCertificateDetails', 'AuthTypeAzureActiveDirectory', 'AuthTypeAccessControlService'
    AuthType AuthTypeBasicResourceCertificateDetails `json:"authType,omitempty"`
}

ResourceCertificateAndAcsDetails certificate details representing the Vault credentials for ACS.

func (ResourceCertificateAndAcsDetails) AsBasicResourceCertificateDetails Uses

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

AsBasicResourceCertificateDetails is the BasicResourceCertificateDetails implementation for ResourceCertificateAndAcsDetails.

func (ResourceCertificateAndAcsDetails) AsResourceCertificateAndAadDetails Uses

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

AsResourceCertificateAndAadDetails is the BasicResourceCertificateDetails implementation for ResourceCertificateAndAcsDetails.

func (ResourceCertificateAndAcsDetails) AsResourceCertificateAndAcsDetails Uses

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

AsResourceCertificateAndAcsDetails is the BasicResourceCertificateDetails implementation for ResourceCertificateAndAcsDetails.

func (ResourceCertificateAndAcsDetails) AsResourceCertificateDetails Uses

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

AsResourceCertificateDetails is the BasicResourceCertificateDetails implementation for ResourceCertificateAndAcsDetails.

func (ResourceCertificateAndAcsDetails) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ResourceCertificateAndAcsDetails.

type ResourceCertificateDetails Uses

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: 'AuthTypeResourceCertificateDetails', 'AuthTypeAzureActiveDirectory', 'AuthTypeAccessControlService'
    AuthType AuthTypeBasicResourceCertificateDetails `json:"authType,omitempty"`
}

ResourceCertificateDetails certificate details representing the Vault credentials.

func (ResourceCertificateDetails) AsBasicResourceCertificateDetails Uses

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

AsBasicResourceCertificateDetails is the BasicResourceCertificateDetails implementation for ResourceCertificateDetails.

func (ResourceCertificateDetails) AsResourceCertificateAndAadDetails Uses

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

AsResourceCertificateAndAadDetails is the BasicResourceCertificateDetails implementation for ResourceCertificateDetails.

func (ResourceCertificateDetails) AsResourceCertificateAndAcsDetails Uses

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

AsResourceCertificateAndAcsDetails is the BasicResourceCertificateDetails implementation for ResourceCertificateDetails.

func (ResourceCertificateDetails) AsResourceCertificateDetails Uses

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

AsResourceCertificateDetails is the BasicResourceCertificateDetails implementation for ResourceCertificateDetails.

func (ResourceCertificateDetails) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ResourceCertificateDetails.

type Sku Uses

type Sku struct {
    // Name - The Sku name. Possible values include: 'Standard', 'RS0'
    Name SkuName `json:"name,omitempty"`
}

Sku identifies the unique system identifier for each Azure resource.

type SkuName Uses

type SkuName string

SkuName enumerates the values for sku name.

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

func PossibleSkuNameValues Uses

func PossibleSkuNameValues() []SkuName

PossibleSkuNameValues returns an array of possible values for the SkuName const type.

type TrackedResource Uses

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 Uses

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

MarshalJSON is the custom marshaler for TrackedResource.

type TriggerType Uses

type TriggerType string

TriggerType enumerates the values for trigger type.

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

func PossibleTriggerTypeValues Uses

func PossibleTriggerTypeValues() []TriggerType

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

type UpgradeDetails Uses

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: 'Unknown', 'InProgress', 'Upgraded', 'Failed'
    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: 'UserTriggered', 'ForcedUpgrade'
    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.

type UsagesClient Uses

type UsagesClient struct {
    BaseClient
}

UsagesClient is the recovery Services Client

func NewUsagesClient Uses

func NewUsagesClient(subscriptionID string) UsagesClient

NewUsagesClient creates an instance of the UsagesClient client.

func NewUsagesClientWithBaseURI Uses

func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient

NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.

func (UsagesClient) ListByVaults Uses

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 Uses

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

ListByVaultsPreparer prepares the ListByVaults request.

func (UsagesClient) ListByVaultsResponder Uses

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 Uses

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 Uses

type UsagesUnit string

UsagesUnit enumerates the values for usages unit.

const (
    // Bytes ...
    Bytes UsagesUnit = "Bytes"
    // BytesPerSecond ...
    BytesPerSecond UsagesUnit = "BytesPerSecond"
    // Count ...
    Count UsagesUnit = "Count"
    // CountPerSecond ...
    CountPerSecond UsagesUnit = "CountPerSecond"
    // Percent ...
    Percent UsagesUnit = "Percent"
    // Seconds ...
    Seconds UsagesUnit = "Seconds"
)

func PossibleUsagesUnitValues Uses

func PossibleUsagesUnitValues() []UsagesUnit

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

type Vault Uses

type Vault struct {
    autorest.Response `json:"-"`
    Properties        *VaultProperties `json:"properties,omitempty"`
    Sku               *Sku             `json:"sku,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 Uses

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

MarshalJSON is the custom marshaler for Vault.

type VaultCertificateResponse Uses

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) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for VaultCertificateResponse struct.

type VaultCertificatesClient Uses

type VaultCertificatesClient struct {
    BaseClient
}

VaultCertificatesClient is the recovery Services Client

func NewVaultCertificatesClient Uses

func NewVaultCertificatesClient(subscriptionID string) VaultCertificatesClient

NewVaultCertificatesClient creates an instance of the VaultCertificatesClient client.

func NewVaultCertificatesClientWithBaseURI Uses

func NewVaultCertificatesClientWithBaseURI(baseURI string, subscriptionID string) VaultCertificatesClient

NewVaultCertificatesClientWithBaseURI creates an instance of the VaultCertificatesClient client.

func (VaultCertificatesClient) Create Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

type VaultExtendedInfoClient struct {
    BaseClient
}

VaultExtendedInfoClient is the recovery Services Client

func NewVaultExtendedInfoClient Uses

func NewVaultExtendedInfoClient(subscriptionID string) VaultExtendedInfoClient

NewVaultExtendedInfoClient creates an instance of the VaultExtendedInfoClient client.

func NewVaultExtendedInfoClientWithBaseURI Uses

func NewVaultExtendedInfoClientWithBaseURI(baseURI string, subscriptionID string) VaultExtendedInfoClient

NewVaultExtendedInfoClientWithBaseURI creates an instance of the VaultExtendedInfoClient client.

func (VaultExtendedInfoClient) CreateOrUpdate Uses

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 Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (VaultExtendedInfoClient) CreateOrUpdateResponder Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (VaultExtendedInfoClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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

UpdatePreparer prepares the Update request.

func (VaultExtendedInfoClient) UpdateResponder Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for VaultExtendedInfoResource.

func (*VaultExtendedInfoResource) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for VaultExtendedInfoResource struct.

type VaultList Uses

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 Uses

func (vl VaultList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type VaultListIterator Uses

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

VaultListIterator provides access to a complete listing of Vault values.

func NewVaultListIterator Uses

func NewVaultListIterator(page VaultListPage) VaultListIterator

Creates a new instance of the VaultListIterator type.

func (*VaultListIterator) Next Uses

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 Uses

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 Uses

func (iter VaultListIterator) NotDone() bool

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

func (VaultListIterator) Response Uses

func (iter VaultListIterator) Response() VaultList

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

func (VaultListIterator) Value Uses

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 Uses

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

VaultListPage contains a page of Vault values.

func NewVaultListPage Uses

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

Creates a new instance of the VaultListPage type.

func (*VaultListPage) Next Uses

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 Uses

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 Uses

func (page VaultListPage) NotDone() bool

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

func (VaultListPage) Response Uses

func (page VaultListPage) Response() VaultList

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

func (VaultListPage) Values Uses

func (page VaultListPage) Values() []Vault

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

type VaultProperties Uses

type VaultProperties struct {
    // ProvisioningState - READ-ONLY; Provisioning State.
    ProvisioningState *string         `json:"provisioningState,omitempty"`
    UpgradeDetails    *UpgradeDetails `json:"upgradeDetails,omitempty"`
}

VaultProperties properties of the vault.

type VaultUpgradeState Uses

type VaultUpgradeState string

VaultUpgradeState enumerates the values for vault upgrade state.

const (
    // Failed ...
    Failed VaultUpgradeState = "Failed"
    // InProgress ...
    InProgress VaultUpgradeState = "InProgress"
    // Unknown ...
    Unknown VaultUpgradeState = "Unknown"
    // Upgraded ...
    Upgraded VaultUpgradeState = "Upgraded"
)

func PossibleVaultUpgradeStateValues Uses

func PossibleVaultUpgradeStateValues() []VaultUpgradeState

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

type VaultUsage Uses

type VaultUsage struct {
    // Unit - Unit of the usage. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond'
    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 Uses

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 Uses

type VaultsClient struct {
    BaseClient
}

VaultsClient is the recovery Services Client

func NewVaultsClient Uses

func NewVaultsClient(subscriptionID string) VaultsClient

NewVaultsClient creates an instance of the VaultsClient client.

func NewVaultsClientWithBaseURI Uses

func NewVaultsClientWithBaseURI(baseURI string, subscriptionID string) VaultsClient

NewVaultsClientWithBaseURI creates an instance of the VaultsClient client.

func (VaultsClient) CreateOrUpdate Uses

func (client VaultsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, vaultName string, vault Vault) (result Vault, 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 Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (VaultsClient) CreateOrUpdateResponder Uses

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 Uses

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

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

func (VaultsClient) Delete Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (VaultsClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (VaultsClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (VaultsClient) ListByResourceGroupResponder Uses

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 Uses

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 Uses

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 Uses

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

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

func (VaultsClient) ListBySubscriptionIDPreparer Uses

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

ListBySubscriptionIDPreparer prepares the ListBySubscriptionID request.

func (VaultsClient) ListBySubscriptionIDResponder Uses

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 Uses

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 Uses

func (client VaultsClient) Update(ctx context.Context, resourceGroupName string, vaultName string, vault PatchVault) (result Vault, 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 Uses

func (client VaultsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, vaultName string, vault PatchVault) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (VaultsClient) UpdateResponder Uses

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 Uses

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

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

Directories

PathSynopsis
recoveryservicesapi

Package recoveryservices imports 9 packages (graph) and is imported by 5 packages. Updated 2019-08-10. Refresh now. Tools for package owners.