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

package keyvault

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

Package keyvault implements the Azure ARM Keyvault service API version 2016-10-01.

The Azure management API provides a RESTful set of web services that interact with Azure Key Vault.

Index

Package Files

client.go models.go operations.go vaults.go version.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Keyvault
    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 AccessPolicyEntry Uses

type AccessPolicyEntry struct {
    // TenantID - The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.
    TenantID *uuid.UUID `json:"tenantId,omitempty"`
    // ObjectID - The object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault. The object ID must be unique for the list of access policies.
    ObjectID *string `json:"objectId,omitempty"`
    // ApplicationID -  Application ID of the client making request on behalf of a principal
    ApplicationID *uuid.UUID `json:"applicationId,omitempty"`
    // Permissions - Permissions the identity has for keys, secrets and certificates.
    Permissions *Permissions `json:"permissions,omitempty"`
}

AccessPolicyEntry an identity that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID.

type AccessPolicyUpdateKind Uses

type AccessPolicyUpdateKind string

AccessPolicyUpdateKind enumerates the values for access policy update kind.

const (
    // Add ...
    Add AccessPolicyUpdateKind = "add"
    // Remove ...
    Remove AccessPolicyUpdateKind = "remove"
    // Replace ...
    Replace AccessPolicyUpdateKind = "replace"
)

func PossibleAccessPolicyUpdateKindValues Uses

func PossibleAccessPolicyUpdateKindValues() []AccessPolicyUpdateKind

PossibleAccessPolicyUpdateKindValues returns an array of possible values for the AccessPolicyUpdateKind const type.

type BaseClient Uses

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

BaseClient is the base client for Keyvault.

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

type CertificatePermissions string

CertificatePermissions enumerates the values for certificate permissions.

const (
    // Create ...
    Create CertificatePermissions = "create"
    // Delete ...
    Delete CertificatePermissions = "delete"
    // Deleteissuers ...
    Deleteissuers CertificatePermissions = "deleteissuers"
    // Get ...
    Get CertificatePermissions = "get"
    // Getissuers ...
    Getissuers CertificatePermissions = "getissuers"
    // Import ...
    Import CertificatePermissions = "import"
    // List ...
    List CertificatePermissions = "list"
    // Listissuers ...
    Listissuers CertificatePermissions = "listissuers"
    // Managecontacts ...
    Managecontacts CertificatePermissions = "managecontacts"
    // Manageissuers ...
    Manageissuers CertificatePermissions = "manageissuers"
    // Purge ...
    Purge CertificatePermissions = "purge"
    // Recover ...
    Recover CertificatePermissions = "recover"
    // Setissuers ...
    Setissuers CertificatePermissions = "setissuers"
    // Update ...
    Update CertificatePermissions = "update"
)

func PossibleCertificatePermissionsValues Uses

func PossibleCertificatePermissionsValues() []CertificatePermissions

PossibleCertificatePermissionsValues returns an array of possible values for the CertificatePermissions const type.

type CheckNameAvailabilityResult Uses

type CheckNameAvailabilityResult struct {
    autorest.Response `json:"-"`
    // NameAvailable - READ-ONLY; A boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or is invalid and cannot be used.
    NameAvailable *bool `json:"nameAvailable,omitempty"`
    // Reason - READ-ONLY; The reason that a vault name could not be used. The Reason element is only returned if NameAvailable is false. Possible values include: 'AccountNameInvalid', 'AlreadyExists'
    Reason Reason `json:"reason,omitempty"`
    // Message - READ-ONLY; An error message explaining the Reason value in more detail.
    Message *string `json:"message,omitempty"`
}

CheckNameAvailabilityResult the CheckNameAvailability operation response.

type CreateMode Uses

type CreateMode string

CreateMode enumerates the values for create mode.

const (
    // CreateModeDefault ...
    CreateModeDefault CreateMode = "default"
    // CreateModeRecover ...
    CreateModeRecover CreateMode = "recover"
)

func PossibleCreateModeValues Uses

func PossibleCreateModeValues() []CreateMode

PossibleCreateModeValues returns an array of possible values for the CreateMode const type.

type DeletedVault Uses

type DeletedVault struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; The resource ID for the deleted key vault.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the key vault.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The resource type of the key vault.
    Type *string `json:"type,omitempty"`
    // Properties - Properties of the vault
    Properties *DeletedVaultProperties `json:"properties,omitempty"`
}

DeletedVault deleted vault information with extended details.

type DeletedVaultListResult Uses

type DeletedVaultListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of deleted vaults.
    Value *[]DeletedVault `json:"value,omitempty"`
    // NextLink - The URL to get the next set of deleted vaults.
    NextLink *string `json:"nextLink,omitempty"`
}

DeletedVaultListResult list of vaults

func (DeletedVaultListResult) IsEmpty Uses

func (dvlr DeletedVaultListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DeletedVaultListResultIterator Uses

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

DeletedVaultListResultIterator provides access to a complete listing of DeletedVault values.

func NewDeletedVaultListResultIterator Uses

func NewDeletedVaultListResultIterator(page DeletedVaultListResultPage) DeletedVaultListResultIterator

Creates a new instance of the DeletedVaultListResultIterator type.

func (*DeletedVaultListResultIterator) Next Uses

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

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

func (iter DeletedVaultListResultIterator) NotDone() bool

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

func (DeletedVaultListResultIterator) Response Uses

func (iter DeletedVaultListResultIterator) Response() DeletedVaultListResult

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

func (DeletedVaultListResultIterator) Value Uses

func (iter DeletedVaultListResultIterator) Value() DeletedVault

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

type DeletedVaultListResultPage Uses

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

DeletedVaultListResultPage contains a page of DeletedVault values.

func NewDeletedVaultListResultPage Uses

func NewDeletedVaultListResultPage(getNextPage func(context.Context, DeletedVaultListResult) (DeletedVaultListResult, error)) DeletedVaultListResultPage

Creates a new instance of the DeletedVaultListResultPage type.

func (*DeletedVaultListResultPage) Next Uses

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

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

func (page DeletedVaultListResultPage) NotDone() bool

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

func (DeletedVaultListResultPage) Response Uses

func (page DeletedVaultListResultPage) Response() DeletedVaultListResult

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

func (DeletedVaultListResultPage) Values Uses

func (page DeletedVaultListResultPage) Values() []DeletedVault

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

type DeletedVaultProperties Uses

type DeletedVaultProperties struct {
    // VaultID - READ-ONLY; The resource id of the original vault.
    VaultID *string `json:"vaultId,omitempty"`
    // Location - READ-ONLY; The location of the original vault.
    Location *string `json:"location,omitempty"`
    // DeletionDate - READ-ONLY; The deleted date.
    DeletionDate *date.Time `json:"deletionDate,omitempty"`
    // ScheduledPurgeDate - READ-ONLY; The scheduled purged date.
    ScheduledPurgeDate *date.Time `json:"scheduledPurgeDate,omitempty"`
    // Tags - READ-ONLY; Tags of the original vault.
    Tags map[string]*string `json:"tags"`
}

DeletedVaultProperties properties of the deleted vault.

func (DeletedVaultProperties) MarshalJSON Uses

func (dvp DeletedVaultProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DeletedVaultProperties.

type KeyPermissions Uses

type KeyPermissions string

KeyPermissions enumerates the values for key permissions.

const (
    // KeyPermissionsBackup ...
    KeyPermissionsBackup KeyPermissions = "backup"
    // KeyPermissionsCreate ...
    KeyPermissionsCreate KeyPermissions = "create"
    // KeyPermissionsDecrypt ...
    KeyPermissionsDecrypt KeyPermissions = "decrypt"
    // KeyPermissionsDelete ...
    KeyPermissionsDelete KeyPermissions = "delete"
    // KeyPermissionsEncrypt ...
    KeyPermissionsEncrypt KeyPermissions = "encrypt"
    // KeyPermissionsGet ...
    KeyPermissionsGet KeyPermissions = "get"
    // KeyPermissionsImport ...
    KeyPermissionsImport KeyPermissions = "import"
    // KeyPermissionsList ...
    KeyPermissionsList KeyPermissions = "list"
    // KeyPermissionsPurge ...
    KeyPermissionsPurge KeyPermissions = "purge"
    // KeyPermissionsRecover ...
    KeyPermissionsRecover KeyPermissions = "recover"
    // KeyPermissionsRestore ...
    KeyPermissionsRestore KeyPermissions = "restore"
    // KeyPermissionsSign ...
    KeyPermissionsSign KeyPermissions = "sign"
    // KeyPermissionsUnwrapKey ...
    KeyPermissionsUnwrapKey KeyPermissions = "unwrapKey"
    // KeyPermissionsUpdate ...
    KeyPermissionsUpdate KeyPermissions = "update"
    // KeyPermissionsVerify ...
    KeyPermissionsVerify KeyPermissions = "verify"
    // KeyPermissionsWrapKey ...
    KeyPermissionsWrapKey KeyPermissions = "wrapKey"
)

func PossibleKeyPermissionsValues Uses

func PossibleKeyPermissionsValues() []KeyPermissions

PossibleKeyPermissionsValues returns an array of possible values for the KeyPermissions const type.

type LogSpecification Uses

type LogSpecification struct {
    // Name - Name of log specification.
    Name *string `json:"name,omitempty"`
    // DisplayName - Display name of log specification.
    DisplayName *string `json:"displayName,omitempty"`
    // BlobDuration - Blob duration of specification.
    BlobDuration *string `json:"blobDuration,omitempty"`
}

LogSpecification log specification of operation.

type Operation Uses

type Operation struct {
    // Name - Operation name: {provider}/{resource}/{operation}
    Name *string `json:"name,omitempty"`
    // Display - Display metadata associated with the operation.
    Display *OperationDisplay `json:"display,omitempty"`
    // Origin - The origin of operations.
    Origin *string `json:"origin,omitempty"`
    // OperationProperties - Properties of operation, include metric specifications.
    *OperationProperties `json:"properties,omitempty"`
}

Operation key Vault REST API operation definition.

func (Operation) MarshalJSON Uses

func (o Operation) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Operation.

func (*Operation) UnmarshalJSON Uses

func (o *Operation) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Operation struct.

type OperationDisplay Uses

type OperationDisplay struct {
    // Provider - Service provider: Microsoft Key Vault.
    Provider *string `json:"provider,omitempty"`
    // Resource - Resource on which the operation is performed etc.
    Resource *string `json:"resource,omitempty"`
    // Operation - Type of operation: get, read, delete, etc.
    Operation *string `json:"operation,omitempty"`
    // Description - Description of operation.
    Description *string `json:"description,omitempty"`
}

OperationDisplay display metadata associated with the operation.

type OperationListResult Uses

type OperationListResult struct {
    autorest.Response `json:"-"`
    // Value - List of Storage operations supported by the Storage resource provider.
    Value *[]Operation `json:"value,omitempty"`
    // NextLink - The URL to get the next set of operations.
    NextLink *string `json:"nextLink,omitempty"`
}

OperationListResult result of the request to list Storage operations. It contains a list of operations and a URL link to get the next set of results.

func (OperationListResult) IsEmpty Uses

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator Uses

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

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator Uses

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next Uses

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

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

func (iter OperationListResultIterator) NotDone() bool

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

func (OperationListResultIterator) Response Uses

func (iter OperationListResultIterator) Response() OperationListResult

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

func (OperationListResultIterator) Value Uses

func (iter OperationListResultIterator) Value() Operation

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

type OperationListResultPage Uses

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

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage Uses

func NewOperationListResultPage(getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next Uses

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

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

func (page OperationListResultPage) NotDone() bool

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

func (OperationListResultPage) Response Uses

func (page OperationListResultPage) Response() OperationListResult

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

func (OperationListResultPage) Values Uses

func (page OperationListResultPage) Values() []Operation

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

type OperationProperties Uses

type OperationProperties struct {
    // ServiceSpecification - One property of operation, include metric specifications.
    ServiceSpecification *ServiceSpecification `json:"serviceSpecification,omitempty"`
}

OperationProperties properties of operation, include metric specifications.

type OperationsClient Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the the Azure management API provides a RESTful set of web services that interact with Azure Key Vault.

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 OperationListResultPage, err error)

List lists all of the available Key Vault Rest API operations.

func (OperationsClient) ListComplete Uses

func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, 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 OperationListResult, 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 Permissions Uses

type Permissions struct {
    // Keys - Permissions to keys
    Keys *[]KeyPermissions `json:"keys,omitempty"`
    // Secrets - Permissions to secrets
    Secrets *[]SecretPermissions `json:"secrets,omitempty"`
    // Certificates - Permissions to certificates
    Certificates *[]CertificatePermissions `json:"certificates,omitempty"`
    // Storage - Permissions to storage accounts
    Storage *[]StoragePermissions `json:"storage,omitempty"`
}

Permissions permissions the identity has for keys, secrets, certificates and storage.

type Reason Uses

type Reason string

Reason enumerates the values for reason.

const (
    // AccountNameInvalid ...
    AccountNameInvalid Reason = "AccountNameInvalid"
    // AlreadyExists ...
    AlreadyExists Reason = "AlreadyExists"
)

func PossibleReasonValues Uses

func PossibleReasonValues() []Reason

PossibleReasonValues returns an array of possible values for the Reason const type.

type Resource Uses

type Resource struct {
    // ID - READ-ONLY; The Azure Resource Manager resource ID for the key vault.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the key vault.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The resource type of the key vault.
    Type *string `json:"type,omitempty"`
    // Location - The supported Azure location where the key vault should be created.
    Location *string `json:"location,omitempty"`
    // Tags - The tags that will be assigned to the key vault.
    Tags map[string]*string `json:"tags"`
}

Resource key Vault resource

func (Resource) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Resource.

type ResourceListResult Uses

type ResourceListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of vault resources.
    Value *[]Resource `json:"value,omitempty"`
    // NextLink - The URL to get the next set of vault resources.
    NextLink *string `json:"nextLink,omitempty"`
}

ResourceListResult list of vault resources.

func (ResourceListResult) IsEmpty Uses

func (rlr ResourceListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ResourceListResultIterator Uses

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

ResourceListResultIterator provides access to a complete listing of Resource values.

func NewResourceListResultIterator Uses

func NewResourceListResultIterator(page ResourceListResultPage) ResourceListResultIterator

Creates a new instance of the ResourceListResultIterator type.

func (*ResourceListResultIterator) Next Uses

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

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

func (iter ResourceListResultIterator) NotDone() bool

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

func (ResourceListResultIterator) Response Uses

func (iter ResourceListResultIterator) Response() ResourceListResult

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

func (ResourceListResultIterator) Value Uses

func (iter ResourceListResultIterator) Value() Resource

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

type ResourceListResultPage Uses

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

ResourceListResultPage contains a page of Resource values.

func NewResourceListResultPage Uses

func NewResourceListResultPage(getNextPage func(context.Context, ResourceListResult) (ResourceListResult, error)) ResourceListResultPage

Creates a new instance of the ResourceListResultPage type.

func (*ResourceListResultPage) Next Uses

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

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

func (page ResourceListResultPage) NotDone() bool

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

func (ResourceListResultPage) Response Uses

func (page ResourceListResultPage) Response() ResourceListResult

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

func (ResourceListResultPage) Values Uses

func (page ResourceListResultPage) Values() []Resource

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

type SecretPermissions Uses

type SecretPermissions string

SecretPermissions enumerates the values for secret permissions.

const (
    // SecretPermissionsBackup ...
    SecretPermissionsBackup SecretPermissions = "backup"
    // SecretPermissionsDelete ...
    SecretPermissionsDelete SecretPermissions = "delete"
    // SecretPermissionsGet ...
    SecretPermissionsGet SecretPermissions = "get"
    // SecretPermissionsList ...
    SecretPermissionsList SecretPermissions = "list"
    // SecretPermissionsPurge ...
    SecretPermissionsPurge SecretPermissions = "purge"
    // SecretPermissionsRecover ...
    SecretPermissionsRecover SecretPermissions = "recover"
    // SecretPermissionsRestore ...
    SecretPermissionsRestore SecretPermissions = "restore"
    // SecretPermissionsSet ...
    SecretPermissionsSet SecretPermissions = "set"
)

func PossibleSecretPermissionsValues Uses

func PossibleSecretPermissionsValues() []SecretPermissions

PossibleSecretPermissionsValues returns an array of possible values for the SecretPermissions const type.

type ServiceSpecification Uses

type ServiceSpecification struct {
    // LogSpecifications - Log specifications of operation.
    LogSpecifications *[]LogSpecification `json:"logSpecifications,omitempty"`
}

ServiceSpecification one property of operation, include log specifications.

type Sku Uses

type Sku struct {
    // Family - SKU family name
    Family *string `json:"family,omitempty"`
    // Name - SKU name to specify whether the key vault is a standard vault or a premium vault. Possible values include: 'Standard', 'Premium'
    Name SkuName `json:"name,omitempty"`
}

Sku SKU details

type SkuName Uses

type SkuName string

SkuName enumerates the values for sku name.

const (
    // Premium ...
    Premium SkuName = "premium"
    // Standard ...
    Standard SkuName = "standard"
)

func PossibleSkuNameValues Uses

func PossibleSkuNameValues() []SkuName

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

type StoragePermissions Uses

type StoragePermissions string

StoragePermissions enumerates the values for storage permissions.

const (
    // StoragePermissionsBackup ...
    StoragePermissionsBackup StoragePermissions = "backup"
    // StoragePermissionsDelete ...
    StoragePermissionsDelete StoragePermissions = "delete"
    // StoragePermissionsDeletesas ...
    StoragePermissionsDeletesas StoragePermissions = "deletesas"
    // StoragePermissionsGet ...
    StoragePermissionsGet StoragePermissions = "get"
    // StoragePermissionsGetsas ...
    StoragePermissionsGetsas StoragePermissions = "getsas"
    // StoragePermissionsList ...
    StoragePermissionsList StoragePermissions = "list"
    // StoragePermissionsListsas ...
    StoragePermissionsListsas StoragePermissions = "listsas"
    // StoragePermissionsPurge ...
    StoragePermissionsPurge StoragePermissions = "purge"
    // StoragePermissionsRecover ...
    StoragePermissionsRecover StoragePermissions = "recover"
    // StoragePermissionsRegeneratekey ...
    StoragePermissionsRegeneratekey StoragePermissions = "regeneratekey"
    // StoragePermissionsRestore ...
    StoragePermissionsRestore StoragePermissions = "restore"
    // StoragePermissionsSet ...
    StoragePermissionsSet StoragePermissions = "set"
    // StoragePermissionsSetsas ...
    StoragePermissionsSetsas StoragePermissions = "setsas"
    // StoragePermissionsUpdate ...
    StoragePermissionsUpdate StoragePermissions = "update"
)

func PossibleStoragePermissionsValues Uses

func PossibleStoragePermissionsValues() []StoragePermissions

PossibleStoragePermissionsValues returns an array of possible values for the StoragePermissions const type.

type Vault Uses

type Vault struct {
    autorest.Response `json:"-"`
    // Properties - Properties of the vault
    Properties *VaultProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; The Azure Resource Manager resource ID for the key vault.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the key vault.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The resource type of the key vault.
    Type *string `json:"type,omitempty"`
    // Location - The supported Azure location where the key vault should be created.
    Location *string `json:"location,omitempty"`
    // Tags - The tags that will be assigned to the key vault.
    Tags map[string]*string `json:"tags"`
}

Vault resource information with extended details.

func (Vault) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Vault.

type VaultAccessPolicyParameters Uses

type VaultAccessPolicyParameters struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; The resource id of the access policy.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The resource name of the access policy.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The resource name of the access policy.
    Type *string `json:"type,omitempty"`
    // Location - READ-ONLY; The resource type of the access policy.
    Location *string `json:"location,omitempty"`
    // Properties - Properties of the access policy
    Properties *VaultAccessPolicyProperties `json:"properties,omitempty"`
}

VaultAccessPolicyParameters parameters for updating the access policy in a vault

type VaultAccessPolicyProperties Uses

type VaultAccessPolicyProperties struct {
    // AccessPolicies - An array of 0 to 16 identities that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID.
    AccessPolicies *[]AccessPolicyEntry `json:"accessPolicies,omitempty"`
}

VaultAccessPolicyProperties properties of the vault access policy

type VaultCheckNameAvailabilityParameters Uses

type VaultCheckNameAvailabilityParameters struct {
    // Name - The vault name.
    Name *string `json:"name,omitempty"`
    // Type - The type of resource, Microsoft.KeyVault/vaults
    Type *string `json:"type,omitempty"`
}

VaultCheckNameAvailabilityParameters the parameters used to check the availability of the vault name.

type VaultCreateOrUpdateParameters Uses

type VaultCreateOrUpdateParameters struct {
    // Location - The supported Azure location where the key vault should be created.
    Location *string `json:"location,omitempty"`
    // Tags - The tags that will be assigned to the key vault.
    Tags map[string]*string `json:"tags"`
    // Properties - Properties of the vault
    Properties *VaultProperties `json:"properties,omitempty"`
}

VaultCreateOrUpdateParameters parameters for creating or updating a vault

func (VaultCreateOrUpdateParameters) MarshalJSON Uses

func (vcoup VaultCreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VaultCreateOrUpdateParameters.

type VaultListResult Uses

type VaultListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of vaults.
    Value *[]Vault `json:"value,omitempty"`
    // NextLink - The URL to get the next set of vaults.
    NextLink *string `json:"nextLink,omitempty"`
}

VaultListResult list of vaults

func (VaultListResult) IsEmpty Uses

func (vlr VaultListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type VaultListResultIterator Uses

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

VaultListResultIterator provides access to a complete listing of Vault values.

func NewVaultListResultIterator Uses

func NewVaultListResultIterator(page VaultListResultPage) VaultListResultIterator

Creates a new instance of the VaultListResultIterator type.

func (*VaultListResultIterator) Next Uses

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

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

func (iter VaultListResultIterator) NotDone() bool

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

func (VaultListResultIterator) Response Uses

func (iter VaultListResultIterator) Response() VaultListResult

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

func (VaultListResultIterator) Value Uses

func (iter VaultListResultIterator) Value() Vault

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

type VaultListResultPage Uses

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

VaultListResultPage contains a page of Vault values.

func NewVaultListResultPage Uses

func NewVaultListResultPage(getNextPage func(context.Context, VaultListResult) (VaultListResult, error)) VaultListResultPage

Creates a new instance of the VaultListResultPage type.

func (*VaultListResultPage) Next Uses

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

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

func (page VaultListResultPage) NotDone() bool

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

func (VaultListResultPage) Response Uses

func (page VaultListResultPage) Response() VaultListResult

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

func (VaultListResultPage) Values Uses

func (page VaultListResultPage) Values() []Vault

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

type VaultPatchParameters Uses

type VaultPatchParameters struct {
    // Tags - The tags that will be assigned to the key vault.
    Tags map[string]*string `json:"tags"`
    // Properties - Properties of the vault
    Properties *VaultPatchProperties `json:"properties,omitempty"`
}

VaultPatchParameters parameters for creating or updating a vault

func (VaultPatchParameters) MarshalJSON Uses

func (vpp VaultPatchParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VaultPatchParameters.

type VaultPatchProperties Uses

type VaultPatchProperties struct {
    // TenantID - The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.
    TenantID *uuid.UUID `json:"tenantId,omitempty"`
    // Sku - SKU details
    Sku *Sku `json:"sku,omitempty"`
    // AccessPolicies - An array of 0 to 16 identities that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID.
    AccessPolicies *[]AccessPolicyEntry `json:"accessPolicies,omitempty"`
    // EnabledForDeployment - Property to specify whether Azure Virtual Machines are permitted to retrieve certificates stored as secrets from the key vault.
    EnabledForDeployment *bool `json:"enabledForDeployment,omitempty"`
    // EnabledForDiskEncryption - Property to specify whether Azure Disk Encryption is permitted to retrieve secrets from the vault and unwrap keys.
    EnabledForDiskEncryption *bool `json:"enabledForDiskEncryption,omitempty"`
    // EnabledForTemplateDeployment - Property to specify whether Azure Resource Manager is permitted to retrieve secrets from the key vault.
    EnabledForTemplateDeployment *bool `json:"enabledForTemplateDeployment,omitempty"`
    // EnableSoftDelete - Property specifying whether recoverable deletion ('soft' delete) is enabled for this key vault. The property may not be set to false.
    EnableSoftDelete *bool `json:"enableSoftDelete,omitempty"`
    // CreateMode - The vault's create mode to indicate whether the vault need to be recovered or not. Possible values include: 'CreateModeRecover', 'CreateModeDefault'
    CreateMode CreateMode `json:"createMode,omitempty"`
    // EnablePurgeProtection - Property specifying whether protection against purge is enabled for this vault; it is only effective if soft delete is also enabled. Once activated, the property may no longer be reset to false.
    EnablePurgeProtection *bool `json:"enablePurgeProtection,omitempty"`
}

VaultPatchProperties properties of the vault

type VaultProperties Uses

type VaultProperties struct {
    // TenantID - The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.
    TenantID *uuid.UUID `json:"tenantId,omitempty"`
    // Sku - SKU details
    Sku *Sku `json:"sku,omitempty"`
    // AccessPolicies - An array of 0 to 16 identities that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID. When `createMode` is set to `recover`, access policies are not required. Otherwise, access policies are required.
    AccessPolicies *[]AccessPolicyEntry `json:"accessPolicies,omitempty"`
    // VaultURI - The URI of the vault for performing operations on keys and secrets.
    VaultURI *string `json:"vaultUri,omitempty"`
    // EnabledForDeployment - Property to specify whether Azure Virtual Machines are permitted to retrieve certificates stored as secrets from the key vault.
    EnabledForDeployment *bool `json:"enabledForDeployment,omitempty"`
    // EnabledForDiskEncryption - Property to specify whether Azure Disk Encryption is permitted to retrieve secrets from the vault and unwrap keys.
    EnabledForDiskEncryption *bool `json:"enabledForDiskEncryption,omitempty"`
    // EnabledForTemplateDeployment - Property to specify whether Azure Resource Manager is permitted to retrieve secrets from the key vault.
    EnabledForTemplateDeployment *bool `json:"enabledForTemplateDeployment,omitempty"`
    // EnableSoftDelete - Property specifying whether recoverable deletion is enabled for this key vault. Setting this property to true activates the soft delete feature, whereby vaults or vault entities can be recovered after deletion. Enabling this functionality is irreversible - that is, the property does not accept false as its value.
    EnableSoftDelete *bool `json:"enableSoftDelete,omitempty"`
    // CreateMode - The vault's create mode to indicate whether the vault need to be recovered or not. Possible values include: 'CreateModeRecover', 'CreateModeDefault'
    CreateMode CreateMode `json:"createMode,omitempty"`
    // EnablePurgeProtection - Property specifying whether protection against purge is enabled for this vault. Setting this property to true activates protection against purge for this vault and its content - only the Key Vault service may initiate a hard, irrecoverable deletion. The setting is effective only if soft delete is also enabled. Enabling this functionality is irreversible - that is, the property does not accept false as its value.
    EnablePurgeProtection *bool `json:"enablePurgeProtection,omitempty"`
}

VaultProperties properties of the vault

type VaultsClient Uses

type VaultsClient struct {
    BaseClient
}

VaultsClient is the the Azure management API provides a RESTful set of web services that interact with Azure Key Vault.

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

func (client VaultsClient) CheckNameAvailability(ctx context.Context, vaultName VaultCheckNameAvailabilityParameters) (result CheckNameAvailabilityResult, err error)

CheckNameAvailability checks that the vault name is valid and is not already in use. Parameters: vaultName - the name of the vault.

func (VaultsClient) CheckNameAvailabilityPreparer Uses

func (client VaultsClient) CheckNameAvailabilityPreparer(ctx context.Context, vaultName VaultCheckNameAvailabilityParameters) (*http.Request, error)

CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.

func (VaultsClient) CheckNameAvailabilityResponder Uses

func (client VaultsClient) 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 (VaultsClient) CheckNameAvailabilitySender Uses

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

func (VaultsClient) CreateOrUpdate Uses

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

CreateOrUpdate create or update a key vault in the specified subscription. Parameters: resourceGroupName - the name of the Resource Group to which the server belongs. vaultName - name of the vault parameters - parameters to create or update the vault

func (VaultsClient) CreateOrUpdatePreparer Uses

func (client VaultsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, vaultName string, parameters VaultCreateOrUpdateParameters) (*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 the specified Azure key vault. Parameters: resourceGroupName - the name of the Resource Group to which the vault belongs. vaultName - the name of the vault to delete

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 gets the specified Azure key vault. Parameters: resourceGroupName - the name of the Resource Group to which the vault belongs. vaultName - the name of the vault.

func (VaultsClient) GetDeleted Uses

func (client VaultsClient) GetDeleted(ctx context.Context, vaultName string, location string) (result DeletedVault, err error)

GetDeleted gets the deleted Azure key vault. Parameters: vaultName - the name of the vault. location - the location of the deleted vault.

func (VaultsClient) GetDeletedPreparer Uses

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

GetDeletedPreparer prepares the GetDeleted request.

func (VaultsClient) GetDeletedResponder Uses

func (client VaultsClient) GetDeletedResponder(resp *http.Response) (result DeletedVault, err error)

GetDeletedResponder handles the response to the GetDeleted request. The method always closes the http.Response Body.

func (VaultsClient) GetDeletedSender Uses

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

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

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

func (client VaultsClient) List(ctx context.Context, top *int32) (result ResourceListResultPage, err error)

List the List operation gets information about the vaults associated with the subscription. Parameters: top - maximum number of results to return.

func (VaultsClient) ListByResourceGroup Uses

func (client VaultsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, top *int32) (result VaultListResultPage, err error)

ListByResourceGroup the List operation gets information about the vaults associated with the subscription and within the specified resource group. Parameters: resourceGroupName - the name of the Resource Group to which the vault belongs. top - maximum number of results to return.

func (VaultsClient) ListByResourceGroupComplete Uses

func (client VaultsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, top *int32) (result VaultListResultIterator, 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, top *int32) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (VaultsClient) ListByResourceGroupResponder Uses

func (client VaultsClient) ListByResourceGroupResponder(resp *http.Response) (result VaultListResult, 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) ListBySubscription Uses

func (client VaultsClient) ListBySubscription(ctx context.Context, top *int32) (result VaultListResultPage, err error)

ListBySubscription the List operation gets information about the vaults associated with the subscription. Parameters: top - maximum number of results to return.

func (VaultsClient) ListBySubscriptionComplete Uses

func (client VaultsClient) ListBySubscriptionComplete(ctx context.Context, top *int32) (result VaultListResultIterator, err error)

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

func (VaultsClient) ListBySubscriptionPreparer Uses

func (client VaultsClient) ListBySubscriptionPreparer(ctx context.Context, top *int32) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (VaultsClient) ListBySubscriptionResponder Uses

func (client VaultsClient) ListBySubscriptionResponder(resp *http.Response) (result VaultListResult, err error)

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (VaultsClient) ListBySubscriptionSender Uses

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

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

func (VaultsClient) ListComplete Uses

func (client VaultsClient) ListComplete(ctx context.Context, top *int32) (result ResourceListResultIterator, err error)

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

func (VaultsClient) ListDeleted Uses

func (client VaultsClient) ListDeleted(ctx context.Context) (result DeletedVaultListResultPage, err error)

ListDeleted gets information about the deleted vaults in a subscription.

func (VaultsClient) ListDeletedComplete Uses

func (client VaultsClient) ListDeletedComplete(ctx context.Context) (result DeletedVaultListResultIterator, err error)

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

func (VaultsClient) ListDeletedPreparer Uses

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

ListDeletedPreparer prepares the ListDeleted request.

func (VaultsClient) ListDeletedResponder Uses

func (client VaultsClient) ListDeletedResponder(resp *http.Response) (result DeletedVaultListResult, err error)

ListDeletedResponder handles the response to the ListDeleted request. The method always closes the http.Response Body.

func (VaultsClient) ListDeletedSender Uses

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

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

func (VaultsClient) ListPreparer Uses

func (client VaultsClient) ListPreparer(ctx context.Context, top *int32) (*http.Request, error)

ListPreparer prepares the List request.

func (VaultsClient) ListResponder Uses

func (client VaultsClient) ListResponder(resp *http.Response) (result ResourceListResult, err error)

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

func (VaultsClient) ListSender Uses

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

func (VaultsClient) PurgeDeleted Uses

func (client VaultsClient) PurgeDeleted(ctx context.Context, vaultName string, location string) (result VaultsPurgeDeletedFuture, err error)

PurgeDeleted permanently deletes the specified vault. aka Purges the deleted Azure key vault. Parameters: vaultName - the name of the soft-deleted vault. location - the location of the soft-deleted vault.

func (VaultsClient) PurgeDeletedPreparer Uses

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

PurgeDeletedPreparer prepares the PurgeDeleted request.

func (VaultsClient) PurgeDeletedResponder Uses

func (client VaultsClient) PurgeDeletedResponder(resp *http.Response) (result autorest.Response, err error)

PurgeDeletedResponder handles the response to the PurgeDeleted request. The method always closes the http.Response Body.

func (VaultsClient) PurgeDeletedSender Uses

func (client VaultsClient) PurgeDeletedSender(req *http.Request) (future VaultsPurgeDeletedFuture, err error)

PurgeDeletedSender sends the PurgeDeleted 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, parameters VaultPatchParameters) (result Vault, err error)

Update update a key vault in the specified subscription. Parameters: resourceGroupName - the name of the Resource Group to which the server belongs. vaultName - name of the vault parameters - parameters to patch the vault

func (VaultsClient) UpdateAccessPolicy Uses

func (client VaultsClient) UpdateAccessPolicy(ctx context.Context, resourceGroupName string, vaultName string, operationKind AccessPolicyUpdateKind, parameters VaultAccessPolicyParameters) (result VaultAccessPolicyParameters, err error)

UpdateAccessPolicy update access policies in a key vault in the specified subscription. Parameters: resourceGroupName - the name of the Resource Group to which the vault belongs. vaultName - name of the vault operationKind - name of the operation parameters - access policy to merge into the vault

func (VaultsClient) UpdateAccessPolicyPreparer Uses

func (client VaultsClient) UpdateAccessPolicyPreparer(ctx context.Context, resourceGroupName string, vaultName string, operationKind AccessPolicyUpdateKind, parameters VaultAccessPolicyParameters) (*http.Request, error)

UpdateAccessPolicyPreparer prepares the UpdateAccessPolicy request.

func (VaultsClient) UpdateAccessPolicyResponder Uses

func (client VaultsClient) UpdateAccessPolicyResponder(resp *http.Response) (result VaultAccessPolicyParameters, err error)

UpdateAccessPolicyResponder handles the response to the UpdateAccessPolicy request. The method always closes the http.Response Body.

func (VaultsClient) UpdateAccessPolicySender Uses

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

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

func (VaultsClient) UpdatePreparer Uses

func (client VaultsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, vaultName string, parameters VaultPatchParameters) (*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.

type VaultsPurgeDeletedFuture Uses

type VaultsPurgeDeletedFuture struct {
    azure.Future
}

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

func (*VaultsPurgeDeletedFuture) Result Uses

func (future *VaultsPurgeDeletedFuture) Result(client VaultsClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

Directories

PathSynopsis
keyvaultapi

Package keyvault imports 11 packages (graph) and is imported by 12 packages. Updated 2019-08-01. Refresh now. Tools for package owners.