keyvault

package
v68.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Deprecated: Please note, this package has been deprecated. A replacement package is available github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault(https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault). We strongly encourage you to upgrade to continue receiving updates. See [Migration Guide](https://aka.ms/azsdk/golang/t2/migration) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details.

Package keyvault implements the Azure ARM Keyvault service API version 2022-07-01.

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

Index

Constants

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

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

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

func Version

func Version() string

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

Types

type AccessPolicyEntry

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

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

func PossibleAccessPolicyUpdateKindValues() []AccessPolicyUpdateKind

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

type Action

type Action struct {
	// Type - The type of action. Possible values include: 'Rotate', 'Notify'
	Type KeyRotationPolicyActionType `json:"type,omitempty"`
}

Action ...

type ActionsRequired

type ActionsRequired string

ActionsRequired enumerates the values for actions required.

const (
	// None ...
	None ActionsRequired = "None"
)

func PossibleActionsRequiredValues

func PossibleActionsRequiredValues() []ActionsRequired

PossibleActionsRequiredValues returns an array of possible values for the ActionsRequired const type.

type ActivationStatus

type ActivationStatus string

ActivationStatus enumerates the values for activation status.

const (
	// Active The managed HSM Pool is active.
	Active ActivationStatus = "Active"
	// Failed Failed to activate managed hsm.
	Failed ActivationStatus = "Failed"
	// NotActivated The managed HSM Pool is not yet activated.
	NotActivated ActivationStatus = "NotActivated"
	// Unknown An unknown error occurred while activating managed hsm.
	Unknown ActivationStatus = "Unknown"
)

func PossibleActivationStatusValues

func PossibleActivationStatusValues() []ActivationStatus

PossibleActivationStatusValues returns an array of possible values for the ActivationStatus const type.

type Attributes

type Attributes struct {
	// Enabled - Determines whether the object is enabled.
	Enabled *bool `json:"enabled,omitempty"`
	// NotBefore - Not before date in seconds since 1970-01-01T00:00:00Z.
	NotBefore *date.UnixTime `json:"nbf,omitempty"`
	// Expires - Expiry date in seconds since 1970-01-01T00:00:00Z.
	Expires *date.UnixTime `json:"exp,omitempty"`
	// Created - READ-ONLY; Creation time in seconds since 1970-01-01T00:00:00Z.
	Created *date.UnixTime `json:"created,omitempty"`
	// Updated - READ-ONLY; Last updated time in seconds since 1970-01-01T00:00:00Z.
	Updated *date.UnixTime `json:"updated,omitempty"`
}

Attributes the object attributes managed by the KeyVault service.

func (Attributes) MarshalJSON

func (a Attributes) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Attributes.

type BaseClient

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

BaseClient is the base client for Keyvault.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type CertificatePermissions

type CertificatePermissions string

CertificatePermissions enumerates the values for certificate permissions.

const (
	// All ...
	All CertificatePermissions = "all"
	// Backup ...
	Backup CertificatePermissions = "backup"
	// 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"
	// Restore ...
	Restore CertificatePermissions = "restore"
	// Setissuers ...
	Setissuers CertificatePermissions = "setissuers"
	// Update ...
	Update CertificatePermissions = "update"
)

func PossibleCertificatePermissionsValues

func PossibleCertificatePermissionsValues() []CertificatePermissions

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

type CheckMhsmNameAvailabilityParameters

type CheckMhsmNameAvailabilityParameters struct {
	// Name - The managed hsm name.
	Name *string `json:"name,omitempty"`
}

CheckMhsmNameAvailabilityParameters the parameters used to check the availability of the managed hsm name.

type CheckMhsmNameAvailabilityResult

type CheckMhsmNameAvailabilityResult 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 managed hsm name could not be used. The reason element is only returned if NameAvailable is false. Possible values include: 'ReasonForManagedHsmAccountNameInvalid', 'ReasonForManagedHsmAlreadyExists'
	Reason ReasonForManagedHsm `json:"reason,omitempty"`
	// Message - READ-ONLY; An error message explaining the Reason value in more detail.
	Message *string `json:"message,omitempty"`
}

CheckMhsmNameAvailabilityResult the CheckMhsmNameAvailability operation response.

func (CheckMhsmNameAvailabilityResult) MarshalJSON

func (cmnar CheckMhsmNameAvailabilityResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CheckMhsmNameAvailabilityResult.

type CheckNameAvailabilityResult

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 ReasonForKeyVault `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.

func (CheckNameAvailabilityResult) MarshalJSON

func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CheckNameAvailabilityResult.

type CloudError

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

CloudError an error response from Key Vault resource provider

type CloudErrorBody

type CloudErrorBody struct {
	// Code - Error code. This is a mnemonic that can be consumed programmatically.
	Code *string `json:"code,omitempty"`
	// Message - User friendly error message. The message is typically localized and may vary with service version.
	Message *string `json:"message,omitempty"`
}

CloudErrorBody an error response from Key Vault resource provider

type CreateMode

type CreateMode string

CreateMode enumerates the values for create mode.

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

func PossibleCreateModeValues

func PossibleCreateModeValues() []CreateMode

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

type DeletedManagedHsm

type DeletedManagedHsm struct {
	autorest.Response `json:"-"`
	// ID - READ-ONLY; The Azure Resource Manager resource ID for the deleted managed HSM Pool.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the managed HSM Pool.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The resource type of the managed HSM Pool.
	Type *string `json:"type,omitempty"`
	// Properties - Properties of the deleted managed HSM
	Properties *DeletedManagedHsmProperties `json:"properties,omitempty"`
}

DeletedManagedHsm ...

func (DeletedManagedHsm) MarshalJSON

func (dmh DeletedManagedHsm) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DeletedManagedHsm.

type DeletedManagedHsmListResult

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

DeletedManagedHsmListResult list of deleted managed HSM Pools

func (DeletedManagedHsmListResult) IsEmpty

func (dmhlr DeletedManagedHsmListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DeletedManagedHsmListResultIterator

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

DeletedManagedHsmListResultIterator provides access to a complete listing of DeletedManagedHsm values.

func NewDeletedManagedHsmListResultIterator

func NewDeletedManagedHsmListResultIterator(page DeletedManagedHsmListResultPage) DeletedManagedHsmListResultIterator

Creates a new instance of the DeletedManagedHsmListResultIterator type.

func (*DeletedManagedHsmListResultIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*DeletedManagedHsmListResultIterator) NextWithContext

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

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

func (DeletedManagedHsmListResultIterator) Response

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

func (DeletedManagedHsmListResultIterator) Value

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

type DeletedManagedHsmListResultPage

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

DeletedManagedHsmListResultPage contains a page of DeletedManagedHsm values.

func NewDeletedManagedHsmListResultPage

Creates a new instance of the DeletedManagedHsmListResultPage type.

func (*DeletedManagedHsmListResultPage) Next

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

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

func (page DeletedManagedHsmListResultPage) NotDone() bool

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

func (DeletedManagedHsmListResultPage) Response

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

func (DeletedManagedHsmListResultPage) Values

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

type DeletedManagedHsmProperties

type DeletedManagedHsmProperties struct {
	// MhsmID - READ-ONLY; The resource id of the original managed HSM.
	MhsmID *string `json:"mhsmId,omitempty"`
	// Location - READ-ONLY; The location of the original managed HSM.
	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"`
	// PurgeProtectionEnabled - READ-ONLY; Purge protection status of the original managed HSM.
	PurgeProtectionEnabled *bool `json:"purgeProtectionEnabled,omitempty"`
	// Tags - READ-ONLY; Tags of the original managed HSM.
	Tags map[string]*string `json:"tags"`
}

DeletedManagedHsmProperties properties of the deleted managed HSM.

func (DeletedManagedHsmProperties) MarshalJSON

func (dmhp DeletedManagedHsmProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DeletedManagedHsmProperties.

type DeletedVault

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.

func (DeletedVault) MarshalJSON

func (dv DeletedVault) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DeletedVault.

type DeletedVaultListResult

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

func (dvlr DeletedVaultListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DeletedVaultListResultIterator

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

DeletedVaultListResultIterator provides access to a complete listing of DeletedVault values.

func NewDeletedVaultListResultIterator

func NewDeletedVaultListResultIterator(page DeletedVaultListResultPage) DeletedVaultListResultIterator

Creates a new instance of the DeletedVaultListResultIterator type.

func (*DeletedVaultListResultIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*DeletedVaultListResultIterator) NextWithContext

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

func (iter DeletedVaultListResultIterator) NotDone() bool

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

func (DeletedVaultListResultIterator) Response

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

func (DeletedVaultListResultIterator) Value

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

type DeletedVaultListResultPage

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

DeletedVaultListResultPage contains a page of DeletedVault values.

func NewDeletedVaultListResultPage

Creates a new instance of the DeletedVaultListResultPage type.

func (*DeletedVaultListResultPage) Next

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

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

func (page DeletedVaultListResultPage) NotDone() bool

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

func (DeletedVaultListResultPage) Response

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

func (DeletedVaultListResultPage) Values

func (page DeletedVaultListResultPage) Values() []DeletedVault

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

type DeletedVaultProperties

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"`
	// PurgeProtectionEnabled - READ-ONLY; Purge protection status of the original vault.
	PurgeProtectionEnabled *bool `json:"purgeProtectionEnabled,omitempty"`
}

DeletedVaultProperties properties of the deleted vault.

func (DeletedVaultProperties) MarshalJSON

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

MarshalJSON is the custom marshaler for DeletedVaultProperties.

type DeletionRecoveryLevel

type DeletionRecoveryLevel string

DeletionRecoveryLevel enumerates the values for deletion recovery level.

const (
	// Purgeable ...
	Purgeable DeletionRecoveryLevel = "Purgeable"
	// Recoverable ...
	Recoverable DeletionRecoveryLevel = "Recoverable"
	// RecoverableProtectedSubscription ...
	RecoverableProtectedSubscription DeletionRecoveryLevel = "Recoverable+ProtectedSubscription"
	// RecoverablePurgeable ...
	RecoverablePurgeable DeletionRecoveryLevel = "Recoverable+Purgeable"
)

func PossibleDeletionRecoveryLevelValues

func PossibleDeletionRecoveryLevelValues() []DeletionRecoveryLevel

PossibleDeletionRecoveryLevelValues returns an array of possible values for the DeletionRecoveryLevel const type.

type DimensionProperties

type DimensionProperties struct {
	// Name - Name of dimension.
	Name *string `json:"name,omitempty"`
	// DisplayName - Display name of dimension.
	DisplayName *string `json:"displayName,omitempty"`
	// ToBeExportedForShoebox - Property to specify whether the dimension should be exported for Shoebox.
	ToBeExportedForShoebox *bool `json:"toBeExportedForShoebox,omitempty"`
}

DimensionProperties type of operation: get, read, delete, etc.

type Error

type Error struct {
	// Code - READ-ONLY; The error code.
	Code *string `json:"code,omitempty"`
	// Message - READ-ONLY; The error message.
	Message *string `json:"message,omitempty"`
	// InnerError - READ-ONLY; The inner error, contains a more specific error code.
	InnerError *Error `json:"innererror,omitempty"`
}

Error the server error.

func (Error) MarshalJSON

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

MarshalJSON is the custom marshaler for Error.

type IPRule

type IPRule struct {
	// Value - An IPv4 address range in CIDR notation, such as '124.56.78.91' (simple IP address) or '124.56.78.0/24' (all addresses that start with 124.56.78).
	Value *string `json:"value,omitempty"`
}

IPRule a rule governing the accessibility of a vault from a specific ip address or ip range.

type IdentityType

type IdentityType string

IdentityType enumerates the values for identity type.

const (
	// IdentityTypeApplication ...
	IdentityTypeApplication IdentityType = "Application"
	// IdentityTypeKey ...
	IdentityTypeKey IdentityType = "Key"
	// IdentityTypeManagedIdentity ...
	IdentityTypeManagedIdentity IdentityType = "ManagedIdentity"
	// IdentityTypeUser ...
	IdentityTypeUser IdentityType = "User"
)

func PossibleIdentityTypeValues

func PossibleIdentityTypeValues() []IdentityType

PossibleIdentityTypeValues returns an array of possible values for the IdentityType const type.

type JSONWebKeyCurveName

type JSONWebKeyCurveName string

JSONWebKeyCurveName enumerates the values for json web key curve name.

const (
	// P256 ...
	P256 JSONWebKeyCurveName = "P-256"
	// P256K ...
	P256K JSONWebKeyCurveName = "P-256K"
	// P384 ...
	P384 JSONWebKeyCurveName = "P-384"
	// P521 ...
	P521 JSONWebKeyCurveName = "P-521"
)

func PossibleJSONWebKeyCurveNameValues

func PossibleJSONWebKeyCurveNameValues() []JSONWebKeyCurveName

PossibleJSONWebKeyCurveNameValues returns an array of possible values for the JSONWebKeyCurveName const type.

type JSONWebKeyOperation

type JSONWebKeyOperation string

JSONWebKeyOperation enumerates the values for json web key operation.

const (
	// JSONWebKeyOperationDecrypt ...
	JSONWebKeyOperationDecrypt JSONWebKeyOperation = "decrypt"
	// JSONWebKeyOperationEncrypt ...
	JSONWebKeyOperationEncrypt JSONWebKeyOperation = "encrypt"
	// JSONWebKeyOperationImport ...
	JSONWebKeyOperationImport JSONWebKeyOperation = "import"
	// JSONWebKeyOperationRelease ...
	JSONWebKeyOperationRelease JSONWebKeyOperation = "release"
	// JSONWebKeyOperationSign ...
	JSONWebKeyOperationSign JSONWebKeyOperation = "sign"
	// JSONWebKeyOperationUnwrapKey ...
	JSONWebKeyOperationUnwrapKey JSONWebKeyOperation = "unwrapKey"
	// JSONWebKeyOperationVerify ...
	JSONWebKeyOperationVerify JSONWebKeyOperation = "verify"
	// JSONWebKeyOperationWrapKey ...
	JSONWebKeyOperationWrapKey JSONWebKeyOperation = "wrapKey"
)

func PossibleJSONWebKeyOperationValues

func PossibleJSONWebKeyOperationValues() []JSONWebKeyOperation

PossibleJSONWebKeyOperationValues returns an array of possible values for the JSONWebKeyOperation const type.

type JSONWebKeyType

type JSONWebKeyType string

JSONWebKeyType enumerates the values for json web key type.

const (
	// EC ...
	EC JSONWebKeyType = "EC"
	// ECHSM ...
	ECHSM JSONWebKeyType = "EC-HSM"
	// RSA ...
	RSA JSONWebKeyType = "RSA"
	// RSAHSM ...
	RSAHSM JSONWebKeyType = "RSA-HSM"
)

func PossibleJSONWebKeyTypeValues

func PossibleJSONWebKeyTypeValues() []JSONWebKeyType

PossibleJSONWebKeyTypeValues returns an array of possible values for the JSONWebKeyType const type.

type Key

type Key struct {
	autorest.Response `json:"-"`
	// KeyProperties - The properties of the key.
	*KeyProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Fully qualified identifier of the key vault resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Name of the key vault resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type of the key vault resource.
	Type *string `json:"type,omitempty"`
	// Location - READ-ONLY; Azure location of the key vault resource.
	Location *string `json:"location,omitempty"`
	// Tags - READ-ONLY; Tags assigned to the key vault resource.
	Tags map[string]*string `json:"tags"`
}

Key the key resource.

func (Key) MarshalJSON

func (kVar Key) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Key.

func (*Key) UnmarshalJSON

func (kVar *Key) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Key struct.

type KeyAttributes

type KeyAttributes struct {
	// Enabled - Determines whether or not the object is enabled.
	Enabled *bool `json:"enabled,omitempty"`
	// NotBefore - Not before date in seconds since 1970-01-01T00:00:00Z.
	NotBefore *int64 `json:"nbf,omitempty"`
	// Expires - Expiry date in seconds since 1970-01-01T00:00:00Z.
	Expires *int64 `json:"exp,omitempty"`
	// Created - READ-ONLY; Creation time in seconds since 1970-01-01T00:00:00Z.
	Created *int64 `json:"created,omitempty"`
	// Updated - READ-ONLY; Last updated time in seconds since 1970-01-01T00:00:00Z.
	Updated *int64 `json:"updated,omitempty"`
	// RecoveryLevel - READ-ONLY; The deletion recovery level currently in effect for the object. If it contains 'Purgeable', then the object can be permanently deleted by a privileged user; otherwise, only the system can purge the object at the end of the retention interval. Possible values include: 'Purgeable', 'RecoverablePurgeable', 'Recoverable', 'RecoverableProtectedSubscription'
	RecoveryLevel DeletionRecoveryLevel `json:"recoveryLevel,omitempty"`
	// Exportable - Indicates if the private key can be exported.
	Exportable *bool `json:"exportable,omitempty"`
}

KeyAttributes the object attributes managed by the Azure Key Vault service.

func (KeyAttributes) MarshalJSON

func (ka KeyAttributes) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for KeyAttributes.

type KeyCreateParameters

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

KeyCreateParameters the parameters used to create a key.

func (KeyCreateParameters) MarshalJSON

func (kcp KeyCreateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for KeyCreateParameters.

type KeyListResult

type KeyListResult struct {
	autorest.Response `json:"-"`
	// Value - The key resources.
	Value *[]Key `json:"value,omitempty"`
	// NextLink - The URL to get the next page of keys.
	NextLink *string `json:"nextLink,omitempty"`
}

KeyListResult the page of keys.

func (KeyListResult) IsEmpty

func (klr KeyListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type KeyListResultIterator

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

KeyListResultIterator provides access to a complete listing of Key values.

func NewKeyListResultIterator

func NewKeyListResultIterator(page KeyListResultPage) KeyListResultIterator

Creates a new instance of the KeyListResultIterator type.

func (*KeyListResultIterator) Next

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

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

func (iter KeyListResultIterator) NotDone() bool

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

func (KeyListResultIterator) Response

func (iter KeyListResultIterator) Response() KeyListResult

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

func (KeyListResultIterator) Value

func (iter KeyListResultIterator) Value() Key

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

type KeyListResultPage

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

KeyListResultPage contains a page of Key values.

func NewKeyListResultPage

func NewKeyListResultPage(cur KeyListResult, getNextPage func(context.Context, KeyListResult) (KeyListResult, error)) KeyListResultPage

Creates a new instance of the KeyListResultPage type.

func (*KeyListResultPage) Next

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

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

func (page KeyListResultPage) NotDone() bool

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

func (KeyListResultPage) Response

func (page KeyListResultPage) Response() KeyListResult

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

func (KeyListResultPage) Values

func (page KeyListResultPage) Values() []Key

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

type KeyPermissions

type KeyPermissions string

KeyPermissions enumerates the values for key permissions.

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

func PossibleKeyPermissionsValues

func PossibleKeyPermissionsValues() []KeyPermissions

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

type KeyProperties

type KeyProperties struct {
	// Attributes - The attributes of the key.
	Attributes *KeyAttributes `json:"attributes,omitempty"`
	// Kty - The type of the key. For valid values, see JsonWebKeyType. Possible values include: 'EC', 'ECHSM', 'RSA', 'RSAHSM'
	Kty    JSONWebKeyType         `json:"kty,omitempty"`
	KeyOps *[]JSONWebKeyOperation `json:"keyOps,omitempty"`
	// KeySize - The key size in bits. For example: 2048, 3072, or 4096 for RSA.
	KeySize *int32 `json:"keySize,omitempty"`
	// CurveName - The elliptic curve name. For valid values, see JsonWebKeyCurveName. Possible values include: 'P256', 'P384', 'P521', 'P256K'
	CurveName JSONWebKeyCurveName `json:"curveName,omitempty"`
	// KeyURI - READ-ONLY; The URI to retrieve the current version of the key.
	KeyURI *string `json:"keyUri,omitempty"`
	// KeyURIWithVersion - READ-ONLY; The URI to retrieve the specific version of the key.
	KeyURIWithVersion *string `json:"keyUriWithVersion,omitempty"`
	// RotationPolicy - Key rotation policy in response. It will be used for both output and input. Omitted if empty
	RotationPolicy *RotationPolicy `json:"rotationPolicy,omitempty"`
	// ReleasePolicy - Key release policy in response. It will be used for both output and input. Omitted if empty
	ReleasePolicy *KeyReleasePolicy `json:"release_policy,omitempty"`
}

KeyProperties the properties of the key.

func (KeyProperties) MarshalJSON

func (kp KeyProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for KeyProperties.

type KeyReleasePolicy

type KeyReleasePolicy struct {
	// ContentType - Content type and version of key release policy
	ContentType *string `json:"contentType,omitempty"`
	// Data - Blob encoding the policy rules under which the key can be released. (a URL-encoded base64 string)
	Data *string `json:"data,omitempty"`
}

KeyReleasePolicy ...

type KeyRotationPolicyActionType

type KeyRotationPolicyActionType string

KeyRotationPolicyActionType enumerates the values for key rotation policy action type.

const (
	// Notify ...
	Notify KeyRotationPolicyActionType = "notify"
	// Rotate ...
	Rotate KeyRotationPolicyActionType = "rotate"
)

func PossibleKeyRotationPolicyActionTypeValues

func PossibleKeyRotationPolicyActionTypeValues() []KeyRotationPolicyActionType

PossibleKeyRotationPolicyActionTypeValues returns an array of possible values for the KeyRotationPolicyActionType const type.

type KeyRotationPolicyAttributes

type KeyRotationPolicyAttributes struct {
	// Created - READ-ONLY; Creation time in seconds since 1970-01-01T00:00:00Z.
	Created *int64 `json:"created,omitempty"`
	// Updated - READ-ONLY; Last updated time in seconds since 1970-01-01T00:00:00Z.
	Updated *int64 `json:"updated,omitempty"`
	// ExpiryTime - The expiration time for the new key version. It should be in ISO8601 format. Eg: 'P90D', 'P1Y'.
	ExpiryTime *string `json:"expiryTime,omitempty"`
}

KeyRotationPolicyAttributes ...

func (KeyRotationPolicyAttributes) MarshalJSON

func (krpa KeyRotationPolicyAttributes) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for KeyRotationPolicyAttributes.

type KeysClient

type KeysClient struct {
	BaseClient
}

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

func NewKeysClient

func NewKeysClient(subscriptionID string) KeysClient

NewKeysClient creates an instance of the KeysClient client.

func NewKeysClientWithBaseURI

func NewKeysClientWithBaseURI(baseURI string, subscriptionID string) KeysClient

NewKeysClientWithBaseURI creates an instance of the KeysClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (KeysClient) CreateIfNotExist

func (client KeysClient) CreateIfNotExist(ctx context.Context, resourceGroupName string, vaultName string, keyName string, parameters KeyCreateParameters) (result Key, err error)

CreateIfNotExist creates the first version of a new key if it does not exist. If it already exists, then the existing key is returned without any write operations being performed. This API does not create subsequent versions, and does not update existing keys. Parameters: resourceGroupName - the name of the resource group which contains the specified key vault. vaultName - the name of the key vault which contains the key to be created. keyName - the name of the key to be created. parameters - the parameters used to create the specified key.

func (KeysClient) CreateIfNotExistPreparer

func (client KeysClient) CreateIfNotExistPreparer(ctx context.Context, resourceGroupName string, vaultName string, keyName string, parameters KeyCreateParameters) (*http.Request, error)

CreateIfNotExistPreparer prepares the CreateIfNotExist request.

func (KeysClient) CreateIfNotExistResponder

func (client KeysClient) CreateIfNotExistResponder(resp *http.Response) (result Key, err error)

CreateIfNotExistResponder handles the response to the CreateIfNotExist request. The method always closes the http.Response Body.

func (KeysClient) CreateIfNotExistSender

func (client KeysClient) CreateIfNotExistSender(req *http.Request) (*http.Response, error)

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

func (KeysClient) Get

func (client KeysClient) Get(ctx context.Context, resourceGroupName string, vaultName string, keyName string) (result Key, err error)

Get gets the current version of the specified key from the specified key vault. Parameters: resourceGroupName - the name of the resource group which contains the specified key vault. vaultName - the name of the vault which contains the key to be retrieved. keyName - the name of the key to be retrieved.

func (KeysClient) GetPreparer

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

GetPreparer prepares the Get request.

func (KeysClient) GetResponder

func (client KeysClient) GetResponder(resp *http.Response) (result Key, err error)

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

func (KeysClient) GetSender

func (client KeysClient) 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 (KeysClient) GetVersion

func (client KeysClient) GetVersion(ctx context.Context, resourceGroupName string, vaultName string, keyName string, keyVersion string) (result Key, err error)

GetVersion gets the specified version of the specified key in the specified key vault. Parameters: resourceGroupName - the name of the resource group which contains the specified key vault. vaultName - the name of the vault which contains the key version to be retrieved. keyName - the name of the key version to be retrieved. keyVersion - the version of the key to be retrieved.

func (KeysClient) GetVersionPreparer

func (client KeysClient) GetVersionPreparer(ctx context.Context, resourceGroupName string, vaultName string, keyName string, keyVersion string) (*http.Request, error)

GetVersionPreparer prepares the GetVersion request.

func (KeysClient) GetVersionResponder

func (client KeysClient) GetVersionResponder(resp *http.Response) (result Key, err error)

GetVersionResponder handles the response to the GetVersion request. The method always closes the http.Response Body.

func (KeysClient) GetVersionSender

func (client KeysClient) GetVersionSender(req *http.Request) (*http.Response, error)

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

func (KeysClient) List

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

List lists the keys in the specified key vault. Parameters: resourceGroupName - the name of the resource group which contains the specified key vault. vaultName - the name of the vault which contains the keys to be retrieved.

func (KeysClient) ListComplete

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

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

func (KeysClient) ListPreparer

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

ListPreparer prepares the List request.

func (KeysClient) ListResponder

func (client KeysClient) ListResponder(resp *http.Response) (result KeyListResult, err error)

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

func (KeysClient) ListSender

func (client KeysClient) 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 (KeysClient) ListVersions

func (client KeysClient) ListVersions(ctx context.Context, resourceGroupName string, vaultName string, keyName string) (result KeyListResultPage, err error)

ListVersions lists the versions of the specified key in the specified key vault. Parameters: resourceGroupName - the name of the resource group which contains the specified key vault. vaultName - the name of the vault which contains the key versions to be retrieved. keyName - the name of the key versions to be retrieved.

func (KeysClient) ListVersionsComplete

func (client KeysClient) ListVersionsComplete(ctx context.Context, resourceGroupName string, vaultName string, keyName string) (result KeyListResultIterator, err error)

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

func (KeysClient) ListVersionsPreparer

func (client KeysClient) ListVersionsPreparer(ctx context.Context, resourceGroupName string, vaultName string, keyName string) (*http.Request, error)

ListVersionsPreparer prepares the ListVersions request.

func (KeysClient) ListVersionsResponder

func (client KeysClient) ListVersionsResponder(resp *http.Response) (result KeyListResult, err error)

ListVersionsResponder handles the response to the ListVersions request. The method always closes the http.Response Body.

func (KeysClient) ListVersionsSender

func (client KeysClient) ListVersionsSender(req *http.Request) (*http.Response, error)

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

type LifetimeAction

type LifetimeAction struct {
	// Trigger - The trigger of key rotation policy lifetimeAction.
	Trigger *Trigger `json:"trigger,omitempty"`
	// Action - The action of key rotation policy lifetimeAction.
	Action *Action `json:"action,omitempty"`
}

LifetimeAction ...

type LogSpecification

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 MHSMIPRule

type MHSMIPRule struct {
	// Value - An IPv4 address range in CIDR notation, such as '124.56.78.91' (simple IP address) or '124.56.78.0/24' (all addresses that start with 124.56.78).
	Value *string `json:"value,omitempty"`
}

MHSMIPRule a rule governing the accessibility of a managed hsm pool from a specific ip address or ip range.

type MHSMNetworkRuleSet

type MHSMNetworkRuleSet struct {
	// Bypass - Tells what traffic can bypass network rules. This can be 'AzureServices' or 'None'.  If not specified the default is 'AzureServices'. Possible values include: 'NetworkRuleBypassOptionsAzureServices', 'NetworkRuleBypassOptionsNone'
	Bypass NetworkRuleBypassOptions `json:"bypass,omitempty"`
	// DefaultAction - The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property has been evaluated. Possible values include: 'Allow', 'Deny'
	DefaultAction NetworkRuleAction `json:"defaultAction,omitempty"`
	// IPRules - The list of IP address rules.
	IPRules *[]MHSMIPRule `json:"ipRules,omitempty"`
	// VirtualNetworkRules - The list of virtual network rules.
	VirtualNetworkRules *[]MHSMVirtualNetworkRule `json:"virtualNetworkRules,omitempty"`
}

MHSMNetworkRuleSet a set of rules governing the network accessibility of a managed hsm pool.

type MHSMPrivateEndpoint

type MHSMPrivateEndpoint struct {
	// ID - READ-ONLY; Full identifier of the private endpoint resource.
	ID *string `json:"id,omitempty"`
}

MHSMPrivateEndpoint private endpoint object properties.

func (MHSMPrivateEndpoint) MarshalJSON

func (mpe MHSMPrivateEndpoint) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MHSMPrivateEndpoint.

type MHSMPrivateEndpointConnection

type MHSMPrivateEndpointConnection struct {
	autorest.Response `json:"-"`
	// MHSMPrivateEndpointConnectionProperties - Resource properties.
	*MHSMPrivateEndpointConnectionProperties `json:"properties,omitempty"`
	// Etag - Modified whenever there is a change in the state of private endpoint connection.
	Etag *string `json:"etag,omitempty"`
	// ID - READ-ONLY; The Azure Resource Manager resource ID for the managed HSM Pool.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the managed HSM Pool.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The resource type of the managed HSM Pool.
	Type *string `json:"type,omitempty"`
	// Location - The supported Azure location where the managed HSM Pool should be created.
	Location *string `json:"location,omitempty"`
	// Sku - SKU details
	Sku *ManagedHsmSku `json:"sku,omitempty"`
	// Tags - Resource tags
	Tags       map[string]*string `json:"tags"`
	SystemData *SystemData        `json:"systemData,omitempty"`
}

MHSMPrivateEndpointConnection private endpoint connection resource.

func (MHSMPrivateEndpointConnection) MarshalJSON

func (mpec MHSMPrivateEndpointConnection) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MHSMPrivateEndpointConnection.

func (*MHSMPrivateEndpointConnection) UnmarshalJSON

func (mpec *MHSMPrivateEndpointConnection) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for MHSMPrivateEndpointConnection struct.

type MHSMPrivateEndpointConnectionItem

type MHSMPrivateEndpointConnectionItem struct {
	// ID - Id of private endpoint connection.
	ID *string `json:"id,omitempty"`
	// Etag - Modified whenever there is a change in the state of private endpoint connection.
	Etag *string `json:"etag,omitempty"`
	// MHSMPrivateEndpointConnectionProperties - Private endpoint connection properties.
	*MHSMPrivateEndpointConnectionProperties `json:"properties,omitempty"`
}

MHSMPrivateEndpointConnectionItem private endpoint connection item.

func (MHSMPrivateEndpointConnectionItem) MarshalJSON

func (mpeci MHSMPrivateEndpointConnectionItem) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MHSMPrivateEndpointConnectionItem.

func (*MHSMPrivateEndpointConnectionItem) UnmarshalJSON

func (mpeci *MHSMPrivateEndpointConnectionItem) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for MHSMPrivateEndpointConnectionItem struct.

type MHSMPrivateEndpointConnectionProperties

type MHSMPrivateEndpointConnectionProperties struct {
	// PrivateEndpoint - Properties of the private endpoint object.
	PrivateEndpoint *MHSMPrivateEndpoint `json:"privateEndpoint,omitempty"`
	// PrivateLinkServiceConnectionState - Approval state of the private link connection.
	PrivateLinkServiceConnectionState *MHSMPrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"`
	// ProvisioningState - Provisioning state of the private endpoint connection. Possible values include: 'PrivateEndpointConnectionProvisioningStateSucceeded', 'PrivateEndpointConnectionProvisioningStateCreating', 'PrivateEndpointConnectionProvisioningStateUpdating', 'PrivateEndpointConnectionProvisioningStateDeleting', 'PrivateEndpointConnectionProvisioningStateFailed', 'PrivateEndpointConnectionProvisioningStateDisconnected'
	ProvisioningState PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty"`
}

MHSMPrivateEndpointConnectionProperties properties of the private endpoint connection resource.

type MHSMPrivateEndpointConnectionsClient

type MHSMPrivateEndpointConnectionsClient struct {
	BaseClient
}

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

func NewMHSMPrivateEndpointConnectionsClient

func NewMHSMPrivateEndpointConnectionsClient(subscriptionID string) MHSMPrivateEndpointConnectionsClient

NewMHSMPrivateEndpointConnectionsClient creates an instance of the MHSMPrivateEndpointConnectionsClient client.

func NewMHSMPrivateEndpointConnectionsClientWithBaseURI

func NewMHSMPrivateEndpointConnectionsClientWithBaseURI(baseURI string, subscriptionID string) MHSMPrivateEndpointConnectionsClient

NewMHSMPrivateEndpointConnectionsClientWithBaseURI creates an instance of the MHSMPrivateEndpointConnectionsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (MHSMPrivateEndpointConnectionsClient) Delete

func (client MHSMPrivateEndpointConnectionsClient) Delete(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string) (result MHSMPrivateEndpointConnectionsDeleteFuture, err error)

Delete deletes the specified private endpoint connection associated with the managed hsm pool. Parameters: resourceGroupName - name of the resource group that contains the managed HSM pool. name - name of the managed HSM Pool privateEndpointConnectionName - name of the private endpoint connection associated with the managed hsm pool.

func (MHSMPrivateEndpointConnectionsClient) DeletePreparer

func (client MHSMPrivateEndpointConnectionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (MHSMPrivateEndpointConnectionsClient) DeleteResponder

func (client MHSMPrivateEndpointConnectionsClient) DeleteResponder(resp *http.Response) (result MHSMPrivateEndpointConnection, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (MHSMPrivateEndpointConnectionsClient) DeleteSender

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

func (MHSMPrivateEndpointConnectionsClient) Get

func (client MHSMPrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string) (result MHSMPrivateEndpointConnection, err error)

Get gets the specified private endpoint connection associated with the managed HSM Pool. Parameters: resourceGroupName - name of the resource group that contains the managed HSM pool. name - name of the managed HSM Pool privateEndpointConnectionName - name of the private endpoint connection associated with the managed hsm pool.

func (MHSMPrivateEndpointConnectionsClient) GetPreparer

func (client MHSMPrivateEndpointConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (MHSMPrivateEndpointConnectionsClient) GetResponder

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

func (MHSMPrivateEndpointConnectionsClient) GetSender

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

func (MHSMPrivateEndpointConnectionsClient) ListByResource

func (client MHSMPrivateEndpointConnectionsClient) ListByResource(ctx context.Context, resourceGroupName string, name string) (result MHSMPrivateEndpointConnectionsListResultPage, err error)

ListByResource the List operation gets information about the private endpoint connections associated with the managed HSM Pool. Parameters: resourceGroupName - name of the resource group that contains the managed HSM pool. name - name of the managed HSM Pool

func (MHSMPrivateEndpointConnectionsClient) ListByResourceComplete

func (client MHSMPrivateEndpointConnectionsClient) ListByResourceComplete(ctx context.Context, resourceGroupName string, name string) (result MHSMPrivateEndpointConnectionsListResultIterator, err error)

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

func (MHSMPrivateEndpointConnectionsClient) ListByResourcePreparer

func (client MHSMPrivateEndpointConnectionsClient) ListByResourcePreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error)

ListByResourcePreparer prepares the ListByResource request.

func (MHSMPrivateEndpointConnectionsClient) ListByResourceResponder

func (client MHSMPrivateEndpointConnectionsClient) ListByResourceResponder(resp *http.Response) (result MHSMPrivateEndpointConnectionsListResult, err error)

ListByResourceResponder handles the response to the ListByResource request. The method always closes the http.Response Body.

func (MHSMPrivateEndpointConnectionsClient) ListByResourceSender

func (client MHSMPrivateEndpointConnectionsClient) ListByResourceSender(req *http.Request) (*http.Response, error)

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

func (MHSMPrivateEndpointConnectionsClient) Put

func (client MHSMPrivateEndpointConnectionsClient) Put(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, properties MHSMPrivateEndpointConnection) (result MHSMPrivateEndpointConnection, err error)

Put updates the specified private endpoint connection associated with the managed hsm pool. Parameters: resourceGroupName - name of the resource group that contains the managed HSM pool. name - name of the managed HSM Pool privateEndpointConnectionName - name of the private endpoint connection associated with the managed hsm pool. properties - the intended state of private endpoint connection.

func (MHSMPrivateEndpointConnectionsClient) PutPreparer

func (client MHSMPrivateEndpointConnectionsClient) PutPreparer(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, properties MHSMPrivateEndpointConnection) (*http.Request, error)

PutPreparer prepares the Put request.

func (MHSMPrivateEndpointConnectionsClient) PutResponder

PutResponder handles the response to the Put request. The method always closes the http.Response Body.

func (MHSMPrivateEndpointConnectionsClient) PutSender

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

type MHSMPrivateEndpointConnectionsDeleteFuture

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

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

func (*MHSMPrivateEndpointConnectionsDeleteFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type MHSMPrivateEndpointConnectionsListResult

type MHSMPrivateEndpointConnectionsListResult struct {
	autorest.Response `json:"-"`
	// Value - The private endpoint connection associated with a managed HSM Pools.
	Value *[]MHSMPrivateEndpointConnection `json:"value,omitempty"`
	// NextLink - The URL to get the next set of managed HSM Pools.
	NextLink *string `json:"nextLink,omitempty"`
}

MHSMPrivateEndpointConnectionsListResult list of private endpoint connections associated with a managed HSM Pools

func (MHSMPrivateEndpointConnectionsListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type MHSMPrivateEndpointConnectionsListResultIterator

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

MHSMPrivateEndpointConnectionsListResultIterator provides access to a complete listing of MHSMPrivateEndpointConnection values.

func NewMHSMPrivateEndpointConnectionsListResultIterator

func NewMHSMPrivateEndpointConnectionsListResultIterator(page MHSMPrivateEndpointConnectionsListResultPage) MHSMPrivateEndpointConnectionsListResultIterator

Creates a new instance of the MHSMPrivateEndpointConnectionsListResultIterator type.

func (*MHSMPrivateEndpointConnectionsListResultIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*MHSMPrivateEndpointConnectionsListResultIterator) NextWithContext

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

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

func (MHSMPrivateEndpointConnectionsListResultIterator) Response

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

func (MHSMPrivateEndpointConnectionsListResultIterator) Value

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

type MHSMPrivateEndpointConnectionsListResultPage

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

MHSMPrivateEndpointConnectionsListResultPage contains a page of MHSMPrivateEndpointConnection values.

func NewMHSMPrivateEndpointConnectionsListResultPage

Creates a new instance of the MHSMPrivateEndpointConnectionsListResultPage type.

func (*MHSMPrivateEndpointConnectionsListResultPage) Next

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

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

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

func (MHSMPrivateEndpointConnectionsListResultPage) Response

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

func (MHSMPrivateEndpointConnectionsListResultPage) Values

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

type MHSMPrivateLinkResource

type MHSMPrivateLinkResource struct {
	// MHSMPrivateLinkResourceProperties - Resource properties.
	*MHSMPrivateLinkResourceProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The Azure Resource Manager resource ID for the managed HSM Pool.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the managed HSM Pool.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The resource type of the managed HSM Pool.
	Type *string `json:"type,omitempty"`
	// Location - The supported Azure location where the managed HSM Pool should be created.
	Location *string `json:"location,omitempty"`
	// Sku - SKU details
	Sku *ManagedHsmSku `json:"sku,omitempty"`
	// Tags - Resource tags
	Tags       map[string]*string `json:"tags"`
	SystemData *SystemData        `json:"systemData,omitempty"`
}

MHSMPrivateLinkResource a private link resource

func (MHSMPrivateLinkResource) MarshalJSON

func (mplr MHSMPrivateLinkResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MHSMPrivateLinkResource.

func (*MHSMPrivateLinkResource) UnmarshalJSON

func (mplr *MHSMPrivateLinkResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for MHSMPrivateLinkResource struct.

type MHSMPrivateLinkResourceListResult

type MHSMPrivateLinkResourceListResult struct {
	autorest.Response `json:"-"`
	// Value - Array of private link resources
	Value *[]MHSMPrivateLinkResource `json:"value,omitempty"`
}

MHSMPrivateLinkResourceListResult a list of private link resources

type MHSMPrivateLinkResourceProperties

type MHSMPrivateLinkResourceProperties struct {
	// GroupID - READ-ONLY; Group identifier of private link resource.
	GroupID *string `json:"groupId,omitempty"`
	// RequiredMembers - READ-ONLY; Required member names of private link resource.
	RequiredMembers *[]string `json:"requiredMembers,omitempty"`
	// RequiredZoneNames - Required DNS zone names of the the private link resource.
	RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"`
}

MHSMPrivateLinkResourceProperties properties of a private link resource.

func (MHSMPrivateLinkResourceProperties) MarshalJSON

func (mplrp MHSMPrivateLinkResourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MHSMPrivateLinkResourceProperties.

type MHSMPrivateLinkResourcesClient

type MHSMPrivateLinkResourcesClient struct {
	BaseClient
}

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

func NewMHSMPrivateLinkResourcesClient

func NewMHSMPrivateLinkResourcesClient(subscriptionID string) MHSMPrivateLinkResourcesClient

NewMHSMPrivateLinkResourcesClient creates an instance of the MHSMPrivateLinkResourcesClient client.

func NewMHSMPrivateLinkResourcesClientWithBaseURI

func NewMHSMPrivateLinkResourcesClientWithBaseURI(baseURI string, subscriptionID string) MHSMPrivateLinkResourcesClient

NewMHSMPrivateLinkResourcesClientWithBaseURI creates an instance of the MHSMPrivateLinkResourcesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (MHSMPrivateLinkResourcesClient) ListByMHSMResource

func (client MHSMPrivateLinkResourcesClient) ListByMHSMResource(ctx context.Context, resourceGroupName string, name string) (result MHSMPrivateLinkResourceListResult, err error)

ListByMHSMResource gets the private link resources supported for the managed hsm pool. Parameters: resourceGroupName - name of the resource group that contains the managed HSM pool. name - name of the managed HSM Pool

func (MHSMPrivateLinkResourcesClient) ListByMHSMResourcePreparer

func (client MHSMPrivateLinkResourcesClient) ListByMHSMResourcePreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error)

ListByMHSMResourcePreparer prepares the ListByMHSMResource request.

func (MHSMPrivateLinkResourcesClient) ListByMHSMResourceResponder

func (client MHSMPrivateLinkResourcesClient) ListByMHSMResourceResponder(resp *http.Response) (result MHSMPrivateLinkResourceListResult, err error)

ListByMHSMResourceResponder handles the response to the ListByMHSMResource request. The method always closes the http.Response Body.

func (MHSMPrivateLinkResourcesClient) ListByMHSMResourceSender

func (client MHSMPrivateLinkResourcesClient) ListByMHSMResourceSender(req *http.Request) (*http.Response, error)

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

type MHSMPrivateLinkServiceConnectionState

type MHSMPrivateLinkServiceConnectionState struct {
	// Status - Indicates whether the connection has been approved, rejected or removed by the key vault owner. Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected'
	Status PrivateEndpointServiceConnectionStatus `json:"status,omitempty"`
	// Description - The reason for approval or rejection.
	Description *string `json:"description,omitempty"`
	// ActionsRequired - A message indicating if changes on the service provider require any updates on the consumer. Possible values include: 'None'
	ActionsRequired ActionsRequired `json:"actionsRequired,omitempty"`
}

MHSMPrivateLinkServiceConnectionState an object that represents the approval state of the private link connection.

type MHSMVirtualNetworkRule

type MHSMVirtualNetworkRule struct {
	// ID - Full resource id of a vnet subnet, such as '/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'.
	ID *string `json:"id,omitempty"`
}

MHSMVirtualNetworkRule a rule governing the accessibility of a managed hsm pool from a specific virtual network.

type ManagedHSMSecurityDomainProperties

type ManagedHSMSecurityDomainProperties struct {
	// ActivationStatus - READ-ONLY; Activation Status. Possible values include: 'Active', 'NotActivated', 'Unknown', 'Failed'
	ActivationStatus ActivationStatus `json:"activationStatus,omitempty"`
	// ActivationStatusMessage - READ-ONLY; Activation Status Message.
	ActivationStatusMessage *string `json:"activationStatusMessage,omitempty"`
}

ManagedHSMSecurityDomainProperties the security domain properties of the managed hsm.

func (ManagedHSMSecurityDomainProperties) MarshalJSON

func (mhsdp ManagedHSMSecurityDomainProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedHSMSecurityDomainProperties.

type ManagedHsm

type ManagedHsm struct {
	autorest.Response `json:"-"`
	// Properties - Properties of the managed HSM
	Properties *ManagedHsmProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The Azure Resource Manager resource ID for the managed HSM Pool.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the managed HSM Pool.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The resource type of the managed HSM Pool.
	Type *string `json:"type,omitempty"`
	// Location - The supported Azure location where the managed HSM Pool should be created.
	Location *string `json:"location,omitempty"`
	// Sku - SKU details
	Sku *ManagedHsmSku `json:"sku,omitempty"`
	// Tags - Resource tags
	Tags       map[string]*string `json:"tags"`
	SystemData *SystemData        `json:"systemData,omitempty"`
}

ManagedHsm resource information with extended details.

func (ManagedHsm) MarshalJSON

func (mh ManagedHsm) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedHsm.

type ManagedHsmError

type ManagedHsmError struct {
	// Error - READ-ONLY; The server error.
	Error *Error `json:"error,omitempty"`
}

ManagedHsmError the error exception.

func (ManagedHsmError) MarshalJSON

func (mhe ManagedHsmError) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedHsmError.

type ManagedHsmListResult

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

ManagedHsmListResult list of managed HSM Pools

func (ManagedHsmListResult) IsEmpty

func (mhlr ManagedHsmListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ManagedHsmListResultIterator

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

ManagedHsmListResultIterator provides access to a complete listing of ManagedHsm values.

func NewManagedHsmListResultIterator

func NewManagedHsmListResultIterator(page ManagedHsmListResultPage) ManagedHsmListResultIterator

Creates a new instance of the ManagedHsmListResultIterator type.

func (*ManagedHsmListResultIterator) Next

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

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

func (iter ManagedHsmListResultIterator) NotDone() bool

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

func (ManagedHsmListResultIterator) Response

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

func (ManagedHsmListResultIterator) Value

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

type ManagedHsmListResultPage

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

ManagedHsmListResultPage contains a page of ManagedHsm values.

func NewManagedHsmListResultPage

func NewManagedHsmListResultPage(cur ManagedHsmListResult, getNextPage func(context.Context, ManagedHsmListResult) (ManagedHsmListResult, error)) ManagedHsmListResultPage

Creates a new instance of the ManagedHsmListResultPage type.

func (*ManagedHsmListResultPage) Next

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

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

func (page ManagedHsmListResultPage) NotDone() bool

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

func (ManagedHsmListResultPage) Response

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

func (ManagedHsmListResultPage) Values

func (page ManagedHsmListResultPage) Values() []ManagedHsm

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

type ManagedHsmProperties

type ManagedHsmProperties struct {
	// TenantID - The Azure Active Directory tenant ID that should be used for authenticating requests to the managed HSM pool.
	TenantID *uuid.UUID `json:"tenantId,omitempty"`
	// InitialAdminObjectIds - Array of initial administrators object ids for this managed hsm pool.
	InitialAdminObjectIds *[]string `json:"initialAdminObjectIds,omitempty"`
	// HsmURI - READ-ONLY; The URI of the managed hsm pool for performing operations on keys.
	HsmURI *string `json:"hsmUri,omitempty"`
	// EnableSoftDelete - Property to specify whether the 'soft delete' functionality is enabled for this managed HSM pool. If it's not set to any value(true or false) when creating new managed HSM pool, it will be set to true by default. Once set to true, it cannot be reverted to false.
	EnableSoftDelete *bool `json:"enableSoftDelete,omitempty"`
	// SoftDeleteRetentionInDays - softDelete data retention days. It accepts >=7 and <=90.
	SoftDeleteRetentionInDays *int32 `json:"softDeleteRetentionInDays,omitempty"`
	// EnablePurgeProtection - Property specifying whether protection against purge is enabled for this managed HSM pool. Setting this property to true activates protection against purge for this managed HSM pool and its content - only the Managed HSM service may initiate a hard, irrecoverable deletion. The setting is effective only if soft delete is also enabled. Enabling this functionality is irreversible.
	EnablePurgeProtection *bool `json:"enablePurgeProtection,omitempty"`
	// CreateMode - The create mode to indicate whether the resource is being created or is being recovered from a deleted resource. Possible values include: 'CreateModeRecover', 'CreateModeDefault'
	CreateMode CreateMode `json:"createMode,omitempty"`
	// StatusMessage - READ-ONLY; Resource Status Message.
	StatusMessage *string `json:"statusMessage,omitempty"`
	// ProvisioningState - READ-ONLY; Provisioning state. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateProvisioning', 'ProvisioningStateFailed', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateActivated', 'ProvisioningStateSecurityDomainRestore', 'ProvisioningStateRestoring'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// NetworkAcls - Rules governing the accessibility of the key vault from specific network locations.
	NetworkAcls *MHSMNetworkRuleSet `json:"networkAcls,omitempty"`
	// PrivateEndpointConnections - READ-ONLY; List of private endpoint connections associated with the managed hsm pool.
	PrivateEndpointConnections *[]MHSMPrivateEndpointConnectionItem `json:"privateEndpointConnections,omitempty"`
	// PublicNetworkAccess - Control permission for data plane traffic coming from public networks while private endpoint is enabled. Possible values include: 'Enabled', 'Disabled'
	PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"`
	// ScheduledPurgeDate - READ-ONLY; The scheduled purge date in UTC.
	ScheduledPurgeDate *date.Time `json:"scheduledPurgeDate,omitempty"`
}

ManagedHsmProperties properties of the managed HSM Pool

func (ManagedHsmProperties) MarshalJSON

func (mhp ManagedHsmProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedHsmProperties.

type ManagedHsmResource

type ManagedHsmResource struct {
	// ID - READ-ONLY; The Azure Resource Manager resource ID for the managed HSM Pool.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the managed HSM Pool.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The resource type of the managed HSM Pool.
	Type *string `json:"type,omitempty"`
	// Location - The supported Azure location where the managed HSM Pool should be created.
	Location *string `json:"location,omitempty"`
	// Sku - SKU details
	Sku *ManagedHsmSku `json:"sku,omitempty"`
	// Tags - Resource tags
	Tags       map[string]*string `json:"tags"`
	SystemData *SystemData        `json:"systemData,omitempty"`
}

ManagedHsmResource managed HSM resource

func (ManagedHsmResource) MarshalJSON

func (mhr ManagedHsmResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedHsmResource.

type ManagedHsmSku

type ManagedHsmSku struct {
	// Family - SKU Family of the managed HSM Pool
	Family *string `json:"family,omitempty"`
	// Name - SKU of the managed HSM Pool. Possible values include: 'StandardB1', 'CustomB32'
	Name ManagedHsmSkuName `json:"name,omitempty"`
}

ManagedHsmSku SKU details

type ManagedHsmSkuName

type ManagedHsmSkuName string

ManagedHsmSkuName enumerates the values for managed hsm sku name.

const (
	// CustomB32 ...
	CustomB32 ManagedHsmSkuName = "Custom_B32"
	// StandardB1 ...
	StandardB1 ManagedHsmSkuName = "Standard_B1"
)

func PossibleManagedHsmSkuNameValues

func PossibleManagedHsmSkuNameValues() []ManagedHsmSkuName

PossibleManagedHsmSkuNameValues returns an array of possible values for the ManagedHsmSkuName const type.

type ManagedHsmsClient

type ManagedHsmsClient struct {
	BaseClient
}

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

func NewManagedHsmsClient

func NewManagedHsmsClient(subscriptionID string) ManagedHsmsClient

NewManagedHsmsClient creates an instance of the ManagedHsmsClient client.

func NewManagedHsmsClientWithBaseURI

func NewManagedHsmsClientWithBaseURI(baseURI string, subscriptionID string) ManagedHsmsClient

NewManagedHsmsClientWithBaseURI creates an instance of the ManagedHsmsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ManagedHsmsClient) CheckMhsmNameAvailability

func (client ManagedHsmsClient) CheckMhsmNameAvailability(ctx context.Context, mhsmName CheckMhsmNameAvailabilityParameters) (result CheckMhsmNameAvailabilityResult, err error)

CheckMhsmNameAvailability checks that the managed hsm name is valid and is not already in use. Parameters: mhsmName - the name of the managed hsm.

func (ManagedHsmsClient) CheckMhsmNameAvailabilityPreparer

func (client ManagedHsmsClient) CheckMhsmNameAvailabilityPreparer(ctx context.Context, mhsmName CheckMhsmNameAvailabilityParameters) (*http.Request, error)

CheckMhsmNameAvailabilityPreparer prepares the CheckMhsmNameAvailability request.

func (ManagedHsmsClient) CheckMhsmNameAvailabilityResponder

func (client ManagedHsmsClient) CheckMhsmNameAvailabilityResponder(resp *http.Response) (result CheckMhsmNameAvailabilityResult, err error)

CheckMhsmNameAvailabilityResponder handles the response to the CheckMhsmNameAvailability request. The method always closes the http.Response Body.

func (ManagedHsmsClient) CheckMhsmNameAvailabilitySender

func (client ManagedHsmsClient) CheckMhsmNameAvailabilitySender(req *http.Request) (*http.Response, error)

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

func (ManagedHsmsClient) CreateOrUpdate

func (client ManagedHsmsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, name string, parameters ManagedHsm) (result ManagedHsmsCreateOrUpdateFuture, err error)

CreateOrUpdate create or update a managed HSM Pool in the specified subscription. Parameters: resourceGroupName - name of the resource group that contains the managed HSM pool. name - name of the managed HSM Pool parameters - parameters to create or update the managed HSM Pool

func (ManagedHsmsClient) CreateOrUpdatePreparer

func (client ManagedHsmsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, name string, parameters ManagedHsm) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ManagedHsmsClient) CreateOrUpdateResponder

func (client ManagedHsmsClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedHsm, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ManagedHsmsClient) CreateOrUpdateSender

func (client ManagedHsmsClient) CreateOrUpdateSender(req *http.Request) (future ManagedHsmsCreateOrUpdateFuture, err error)

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

func (ManagedHsmsClient) Delete

func (client ManagedHsmsClient) Delete(ctx context.Context, resourceGroupName string, name string) (result ManagedHsmsDeleteFuture, err error)

Delete deletes the specified managed HSM Pool. Parameters: resourceGroupName - name of the resource group that contains the managed HSM pool. name - the name of the managed HSM Pool to delete

func (ManagedHsmsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ManagedHsmsClient) DeleteResponder

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

func (client ManagedHsmsClient) DeleteSender(req *http.Request) (future ManagedHsmsDeleteFuture, err error)

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

func (ManagedHsmsClient) Get

func (client ManagedHsmsClient) Get(ctx context.Context, resourceGroupName string, name string) (result ManagedHsm, err error)

Get gets the specified managed HSM Pool. Parameters: resourceGroupName - name of the resource group that contains the managed HSM pool. name - the name of the managed HSM Pool.

func (ManagedHsmsClient) GetDeleted

func (client ManagedHsmsClient) GetDeleted(ctx context.Context, name string, location string) (result DeletedManagedHsm, err error)

GetDeleted gets the specified deleted managed HSM. Parameters: name - the name of the deleted managed HSM. location - the location of the deleted managed HSM.

func (ManagedHsmsClient) GetDeletedPreparer

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

GetDeletedPreparer prepares the GetDeleted request.

func (ManagedHsmsClient) GetDeletedResponder

func (client ManagedHsmsClient) GetDeletedResponder(resp *http.Response) (result DeletedManagedHsm, err error)

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

func (ManagedHsmsClient) GetDeletedSender

func (client ManagedHsmsClient) 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 (ManagedHsmsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ManagedHsmsClient) GetResponder

func (client ManagedHsmsClient) GetResponder(resp *http.Response) (result ManagedHsm, err error)

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

func (ManagedHsmsClient) GetSender

func (client ManagedHsmsClient) 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 (ManagedHsmsClient) ListByResourceGroup

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

ListByResourceGroup the List operation gets information about the managed HSM Pools associated with the subscription and within the specified resource group. Parameters: resourceGroupName - name of the resource group that contains the managed HSM pool. top - maximum number of results to return.

func (ManagedHsmsClient) ListByResourceGroupComplete

func (client ManagedHsmsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, top *int32) (result ManagedHsmListResultIterator, err error)

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

func (ManagedHsmsClient) ListByResourceGroupPreparer

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ManagedHsmsClient) ListByResourceGroupResponder

func (client ManagedHsmsClient) ListByResourceGroupResponder(resp *http.Response) (result ManagedHsmListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (ManagedHsmsClient) ListByResourceGroupSender

func (client ManagedHsmsClient) 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 (ManagedHsmsClient) ListBySubscription

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

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

func (ManagedHsmsClient) ListBySubscriptionComplete

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

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

func (ManagedHsmsClient) ListBySubscriptionPreparer

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

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (ManagedHsmsClient) ListBySubscriptionResponder

func (client ManagedHsmsClient) ListBySubscriptionResponder(resp *http.Response) (result ManagedHsmListResult, err error)

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

func (ManagedHsmsClient) ListBySubscriptionSender

func (client ManagedHsmsClient) 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 (ManagedHsmsClient) ListDeleted

func (client ManagedHsmsClient) ListDeleted(ctx context.Context) (result DeletedManagedHsmListResultPage, err error)

ListDeleted the List operation gets information about the deleted managed HSMs associated with the subscription.

func (ManagedHsmsClient) ListDeletedComplete

func (client ManagedHsmsClient) ListDeletedComplete(ctx context.Context) (result DeletedManagedHsmListResultIterator, err error)

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

func (ManagedHsmsClient) ListDeletedPreparer

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

ListDeletedPreparer prepares the ListDeleted request.

func (ManagedHsmsClient) ListDeletedResponder

func (client ManagedHsmsClient) ListDeletedResponder(resp *http.Response) (result DeletedManagedHsmListResult, err error)

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

func (ManagedHsmsClient) ListDeletedSender

func (client ManagedHsmsClient) 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 (ManagedHsmsClient) PurgeDeleted

func (client ManagedHsmsClient) PurgeDeleted(ctx context.Context, name string, location string) (result ManagedHsmsPurgeDeletedFuture, err error)

PurgeDeleted permanently deletes the specified managed HSM. Parameters: name - the name of the soft-deleted managed HSM. location - the location of the soft-deleted managed HSM.

func (ManagedHsmsClient) PurgeDeletedPreparer

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

PurgeDeletedPreparer prepares the PurgeDeleted request.

func (ManagedHsmsClient) PurgeDeletedResponder

func (client ManagedHsmsClient) 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 (ManagedHsmsClient) PurgeDeletedSender

func (client ManagedHsmsClient) PurgeDeletedSender(req *http.Request) (future ManagedHsmsPurgeDeletedFuture, err error)

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

func (ManagedHsmsClient) Update

func (client ManagedHsmsClient) Update(ctx context.Context, resourceGroupName string, name string, parameters ManagedHsm) (result ManagedHsmsUpdateFuture, err error)

Update update a managed HSM Pool in the specified subscription. Parameters: resourceGroupName - name of the resource group that contains the managed HSM pool. name - name of the managed HSM Pool parameters - parameters to patch the managed HSM Pool

func (ManagedHsmsClient) UpdatePreparer

func (client ManagedHsmsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, name string, parameters ManagedHsm) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ManagedHsmsClient) UpdateResponder

func (client ManagedHsmsClient) UpdateResponder(resp *http.Response) (result ManagedHsm, err error)

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

func (ManagedHsmsClient) UpdateSender

func (client ManagedHsmsClient) UpdateSender(req *http.Request) (future ManagedHsmsUpdateFuture, err error)

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

type ManagedHsmsCreateOrUpdateFuture

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

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

func (*ManagedHsmsCreateOrUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ManagedHsmsDeleteFuture

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

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

func (*ManagedHsmsDeleteFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ManagedHsmsPurgeDeletedFuture

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

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

func (*ManagedHsmsPurgeDeletedFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ManagedHsmsUpdateFuture

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

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

func (*ManagedHsmsUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type MetricSpecification

type MetricSpecification struct {
	// Name - Name of metric specification.
	Name *string `json:"name,omitempty"`
	// DisplayName - Display name of metric specification.
	DisplayName *string `json:"displayName,omitempty"`
	// DisplayDescription - Display description of metric specification.
	DisplayDescription *string `json:"displayDescription,omitempty"`
	// Unit - The metric unit. Possible values include: 'Bytes', 'Count', 'Milliseconds'.
	Unit *string `json:"unit,omitempty"`
	// AggregationType - The metric aggregation type. Possible values include: 'Average', 'Count', 'Total'.
	AggregationType *string `json:"aggregationType,omitempty"`
	// SupportedAggregationTypes - The supported aggregation types for the metrics.
	SupportedAggregationTypes *[]string `json:"supportedAggregationTypes,omitempty"`
	// SupportedTimeGrainTypes - The supported time grain types for the metrics.
	SupportedTimeGrainTypes *[]string `json:"supportedTimeGrainTypes,omitempty"`
	// LockAggregationType - The metric lock aggregation type.
	LockAggregationType *string `json:"lockAggregationType,omitempty"`
	// Dimensions - The dimensions of metric
	Dimensions *[]DimensionProperties `json:"dimensions,omitempty"`
	// FillGapWithZero - Property to specify whether to fill gap with zero.
	FillGapWithZero *bool `json:"fillGapWithZero,omitempty"`
	// InternalMetricName - The internal metric name.
	InternalMetricName *string `json:"internalMetricName,omitempty"`
}

MetricSpecification metric specification of operation.

type NetworkRuleAction

type NetworkRuleAction string

NetworkRuleAction enumerates the values for network rule action.

const (
	// Allow ...
	Allow NetworkRuleAction = "Allow"
	// Deny ...
	Deny NetworkRuleAction = "Deny"
)

func PossibleNetworkRuleActionValues

func PossibleNetworkRuleActionValues() []NetworkRuleAction

PossibleNetworkRuleActionValues returns an array of possible values for the NetworkRuleAction const type.

type NetworkRuleBypassOptions

type NetworkRuleBypassOptions string

NetworkRuleBypassOptions enumerates the values for network rule bypass options.

const (
	// NetworkRuleBypassOptionsAzureServices ...
	NetworkRuleBypassOptionsAzureServices NetworkRuleBypassOptions = "AzureServices"
	// NetworkRuleBypassOptionsNone ...
	NetworkRuleBypassOptionsNone NetworkRuleBypassOptions = "None"
)

func PossibleNetworkRuleBypassOptionsValues

func PossibleNetworkRuleBypassOptionsValues() []NetworkRuleBypassOptions

PossibleNetworkRuleBypassOptionsValues returns an array of possible values for the NetworkRuleBypassOptions const type.

type NetworkRuleSet

type NetworkRuleSet struct {
	// Bypass - Tells what traffic can bypass network rules. This can be 'AzureServices' or 'None'.  If not specified the default is 'AzureServices'. Possible values include: 'NetworkRuleBypassOptionsAzureServices', 'NetworkRuleBypassOptionsNone'
	Bypass NetworkRuleBypassOptions `json:"bypass,omitempty"`
	// DefaultAction - The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property has been evaluated. Possible values include: 'Allow', 'Deny'
	DefaultAction NetworkRuleAction `json:"defaultAction,omitempty"`
	// IPRules - The list of IP address rules.
	IPRules *[]IPRule `json:"ipRules,omitempty"`
	// VirtualNetworkRules - The list of virtual network rules.
	VirtualNetworkRules *[]VirtualNetworkRule `json:"virtualNetworkRules,omitempty"`
}

NetworkRuleSet a set of rules governing the network accessibility of a vault.

type Operation

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"`
	// IsDataAction - Property to specify whether the action is a data action.
	IsDataAction *bool `json:"isDataAction,omitempty"`
}

Operation key Vault REST API operation definition.

func (Operation) MarshalJSON

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

MarshalJSON is the custom marshaler for Operation.

func (*Operation) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Operation struct.

type OperationDisplay

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

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

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator

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

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next

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

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

func (iter OperationListResultIterator) NotDone() bool

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

func (OperationListResultIterator) Response

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

func (OperationListResultIterator) Value

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

type OperationListResultPage

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

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage

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

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next

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

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

func (page OperationListResultPage) NotDone() bool

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

func (OperationListResultPage) Response

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

func (OperationListResultPage) Values

func (page OperationListResultPage) Values() []Operation

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

type OperationProperties

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

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

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationsClient) List

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

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

func (OperationsClient) ListComplete

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

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

func (OperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)

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

func (OperationsClient) ListSender

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

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

type Permissions

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 PrivateEndpoint

type PrivateEndpoint struct {
	// ID - READ-ONLY; Full identifier of the private endpoint resource.
	ID *string `json:"id,omitempty"`
}

PrivateEndpoint private endpoint object properties.

func (PrivateEndpoint) MarshalJSON

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

MarshalJSON is the custom marshaler for PrivateEndpoint.

type PrivateEndpointConnection

type PrivateEndpointConnection struct {
	autorest.Response `json:"-"`
	// PrivateEndpointConnectionProperties - Resource properties.
	*PrivateEndpointConnectionProperties `json:"properties,omitempty"`
	// Etag - Modified whenever there is a change in the state of private endpoint connection.
	Etag *string `json:"etag,omitempty"`
	// ID - READ-ONLY; Fully qualified identifier of the key vault resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Name of the key vault resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type of the key vault resource.
	Type *string `json:"type,omitempty"`
	// Location - READ-ONLY; Azure location of the key vault resource.
	Location *string `json:"location,omitempty"`
	// Tags - READ-ONLY; Tags assigned to the key vault resource.
	Tags map[string]*string `json:"tags"`
}

PrivateEndpointConnection private endpoint connection resource.

func (PrivateEndpointConnection) MarshalJSON

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

MarshalJSON is the custom marshaler for PrivateEndpointConnection.

func (*PrivateEndpointConnection) UnmarshalJSON

func (pec *PrivateEndpointConnection) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PrivateEndpointConnection struct.

type PrivateEndpointConnectionItem

type PrivateEndpointConnectionItem struct {
	// ID - Id of private endpoint connection.
	ID *string `json:"id,omitempty"`
	// Etag - Modified whenever there is a change in the state of private endpoint connection.
	Etag *string `json:"etag,omitempty"`
	// PrivateEndpointConnectionProperties - Private endpoint connection properties.
	*PrivateEndpointConnectionProperties `json:"properties,omitempty"`
}

PrivateEndpointConnectionItem private endpoint connection item.

func (PrivateEndpointConnectionItem) MarshalJSON

func (peci PrivateEndpointConnectionItem) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PrivateEndpointConnectionItem.

func (*PrivateEndpointConnectionItem) UnmarshalJSON

func (peci *PrivateEndpointConnectionItem) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PrivateEndpointConnectionItem struct.

type PrivateEndpointConnectionListResult

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

PrivateEndpointConnectionListResult list of private endpoint connections.

func (PrivateEndpointConnectionListResult) IsEmpty

func (peclr PrivateEndpointConnectionListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type PrivateEndpointConnectionListResultIterator

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

PrivateEndpointConnectionListResultIterator provides access to a complete listing of PrivateEndpointConnection values.

func NewPrivateEndpointConnectionListResultIterator

func NewPrivateEndpointConnectionListResultIterator(page PrivateEndpointConnectionListResultPage) PrivateEndpointConnectionListResultIterator

Creates a new instance of the PrivateEndpointConnectionListResultIterator type.

func (*PrivateEndpointConnectionListResultIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*PrivateEndpointConnectionListResultIterator) NextWithContext

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

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

func (PrivateEndpointConnectionListResultIterator) Response

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

func (PrivateEndpointConnectionListResultIterator) Value

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

type PrivateEndpointConnectionListResultPage

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

PrivateEndpointConnectionListResultPage contains a page of PrivateEndpointConnection values.

func NewPrivateEndpointConnectionListResultPage

Creates a new instance of the PrivateEndpointConnectionListResultPage type.

func (*PrivateEndpointConnectionListResultPage) Next

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

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

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

func (PrivateEndpointConnectionListResultPage) Response

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

func (PrivateEndpointConnectionListResultPage) Values

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

type PrivateEndpointConnectionProperties

type PrivateEndpointConnectionProperties struct {
	// PrivateEndpoint - Properties of the private endpoint object.
	PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"`
	// PrivateLinkServiceConnectionState - Approval state of the private link connection.
	PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"`
	// ProvisioningState - Provisioning state of the private endpoint connection. Possible values include: 'PrivateEndpointConnectionProvisioningStateSucceeded', 'PrivateEndpointConnectionProvisioningStateCreating', 'PrivateEndpointConnectionProvisioningStateUpdating', 'PrivateEndpointConnectionProvisioningStateDeleting', 'PrivateEndpointConnectionProvisioningStateFailed', 'PrivateEndpointConnectionProvisioningStateDisconnected'
	ProvisioningState PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty"`
}

PrivateEndpointConnectionProperties properties of the private endpoint connection resource.

type PrivateEndpointConnectionProvisioningState

type PrivateEndpointConnectionProvisioningState string

PrivateEndpointConnectionProvisioningState enumerates the values for private endpoint connection provisioning state.

const (
	// PrivateEndpointConnectionProvisioningStateCreating ...
	PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating"
	// PrivateEndpointConnectionProvisioningStateDeleting ...
	PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting"
	// PrivateEndpointConnectionProvisioningStateDisconnected ...
	PrivateEndpointConnectionProvisioningStateDisconnected PrivateEndpointConnectionProvisioningState = "Disconnected"
	// PrivateEndpointConnectionProvisioningStateFailed ...
	PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed"
	// PrivateEndpointConnectionProvisioningStateSucceeded ...
	PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded"
	// PrivateEndpointConnectionProvisioningStateUpdating ...
	PrivateEndpointConnectionProvisioningStateUpdating PrivateEndpointConnectionProvisioningState = "Updating"
)

func PossiblePrivateEndpointConnectionProvisioningStateValues

func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState

PossiblePrivateEndpointConnectionProvisioningStateValues returns an array of possible values for the PrivateEndpointConnectionProvisioningState const type.

type PrivateEndpointConnectionsClient

type PrivateEndpointConnectionsClient struct {
	BaseClient
}

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

func NewPrivateEndpointConnectionsClient

func NewPrivateEndpointConnectionsClient(subscriptionID string) PrivateEndpointConnectionsClient

NewPrivateEndpointConnectionsClient creates an instance of the PrivateEndpointConnectionsClient client.

func NewPrivateEndpointConnectionsClientWithBaseURI

func NewPrivateEndpointConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointConnectionsClient

NewPrivateEndpointConnectionsClientWithBaseURI creates an instance of the PrivateEndpointConnectionsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PrivateEndpointConnectionsClient) Delete

func (client PrivateEndpointConnectionsClient) Delete(ctx context.Context, resourceGroupName string, vaultName string, privateEndpointConnectionName string) (result PrivateEndpointConnectionsDeleteFuture, err error)

Delete deletes the specified private endpoint connection associated with the key vault. Parameters: resourceGroupName - name of the resource group that contains the key vault. vaultName - the name of the key vault. privateEndpointConnectionName - name of the private endpoint connection associated with the key vault.

func (PrivateEndpointConnectionsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (PrivateEndpointConnectionsClient) DeleteResponder

func (client PrivateEndpointConnectionsClient) DeleteResponder(resp *http.Response) (result PrivateEndpointConnection, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (PrivateEndpointConnectionsClient) DeleteSender

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

func (PrivateEndpointConnectionsClient) Get

func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, vaultName string, privateEndpointConnectionName string) (result PrivateEndpointConnection, err error)

Get gets the specified private endpoint connection associated with the key vault. Parameters: resourceGroupName - name of the resource group that contains the key vault. vaultName - the name of the key vault. privateEndpointConnectionName - name of the private endpoint connection associated with the key vault.

func (PrivateEndpointConnectionsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (PrivateEndpointConnectionsClient) GetResponder

func (client PrivateEndpointConnectionsClient) GetResponder(resp *http.Response) (result PrivateEndpointConnection, err error)

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

func (PrivateEndpointConnectionsClient) GetSender

func (client PrivateEndpointConnectionsClient) 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 (PrivateEndpointConnectionsClient) ListByResource

func (client PrivateEndpointConnectionsClient) ListByResource(ctx context.Context, resourceGroupName string, vaultName string) (result PrivateEndpointConnectionListResultPage, err error)

ListByResource the List operation gets information about the private endpoint connections associated with the vault. Parameters: resourceGroupName - name of the resource group that contains the key vault. vaultName - the name of the key vault.

func (PrivateEndpointConnectionsClient) ListByResourceComplete

func (client PrivateEndpointConnectionsClient) ListByResourceComplete(ctx context.Context, resourceGroupName string, vaultName string) (result PrivateEndpointConnectionListResultIterator, err error)

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

func (PrivateEndpointConnectionsClient) ListByResourcePreparer

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

ListByResourcePreparer prepares the ListByResource request.

func (PrivateEndpointConnectionsClient) ListByResourceResponder

func (client PrivateEndpointConnectionsClient) ListByResourceResponder(resp *http.Response) (result PrivateEndpointConnectionListResult, err error)

ListByResourceResponder handles the response to the ListByResource request. The method always closes the http.Response Body.

func (PrivateEndpointConnectionsClient) ListByResourceSender

func (client PrivateEndpointConnectionsClient) ListByResourceSender(req *http.Request) (*http.Response, error)

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

func (PrivateEndpointConnectionsClient) Put

func (client PrivateEndpointConnectionsClient) Put(ctx context.Context, resourceGroupName string, vaultName string, privateEndpointConnectionName string, properties PrivateEndpointConnection) (result PrivateEndpointConnection, err error)

Put updates the specified private endpoint connection associated with the key vault. Parameters: resourceGroupName - name of the resource group that contains the key vault. vaultName - the name of the key vault. privateEndpointConnectionName - name of the private endpoint connection associated with the key vault. properties - the intended state of private endpoint connection.

func (PrivateEndpointConnectionsClient) PutPreparer

func (client PrivateEndpointConnectionsClient) PutPreparer(ctx context.Context, resourceGroupName string, vaultName string, privateEndpointConnectionName string, properties PrivateEndpointConnection) (*http.Request, error)

PutPreparer prepares the Put request.

func (PrivateEndpointConnectionsClient) PutResponder

func (client PrivateEndpointConnectionsClient) PutResponder(resp *http.Response) (result PrivateEndpointConnection, err error)

PutResponder handles the response to the Put request. The method always closes the http.Response Body.

func (PrivateEndpointConnectionsClient) PutSender

func (client PrivateEndpointConnectionsClient) PutSender(req *http.Request) (*http.Response, error)

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

type PrivateEndpointConnectionsDeleteFuture

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

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

func (*PrivateEndpointConnectionsDeleteFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type PrivateEndpointServiceConnectionStatus

type PrivateEndpointServiceConnectionStatus string

PrivateEndpointServiceConnectionStatus enumerates the values for private endpoint service connection status.

const (
	// Approved ...
	Approved PrivateEndpointServiceConnectionStatus = "Approved"
	// Disconnected ...
	Disconnected PrivateEndpointServiceConnectionStatus = "Disconnected"
	// Pending ...
	Pending PrivateEndpointServiceConnectionStatus = "Pending"
	// Rejected ...
	Rejected PrivateEndpointServiceConnectionStatus = "Rejected"
)

func PossiblePrivateEndpointServiceConnectionStatusValues

func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus

PossiblePrivateEndpointServiceConnectionStatusValues returns an array of possible values for the PrivateEndpointServiceConnectionStatus const type.

type PrivateLinkResource

type PrivateLinkResource struct {
	// PrivateLinkResourceProperties - Resource properties.
	*PrivateLinkResourceProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Fully qualified identifier of the key vault resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Name of the key vault resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type of the key vault resource.
	Type *string `json:"type,omitempty"`
	// Location - READ-ONLY; Azure location of the key vault resource.
	Location *string `json:"location,omitempty"`
	// Tags - READ-ONLY; Tags assigned to the key vault resource.
	Tags map[string]*string `json:"tags"`
}

PrivateLinkResource a private link resource

func (PrivateLinkResource) MarshalJSON

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

MarshalJSON is the custom marshaler for PrivateLinkResource.

func (*PrivateLinkResource) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for PrivateLinkResource struct.

type PrivateLinkResourceListResult

type PrivateLinkResourceListResult struct {
	autorest.Response `json:"-"`
	// Value - Array of private link resources
	Value *[]PrivateLinkResource `json:"value,omitempty"`
}

PrivateLinkResourceListResult a list of private link resources

type PrivateLinkResourceProperties

type PrivateLinkResourceProperties struct {
	// GroupID - READ-ONLY; Group identifier of private link resource.
	GroupID *string `json:"groupId,omitempty"`
	// RequiredMembers - READ-ONLY; Required member names of private link resource.
	RequiredMembers *[]string `json:"requiredMembers,omitempty"`
	// RequiredZoneNames - Required DNS zone names of the the private link resource.
	RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"`
}

PrivateLinkResourceProperties properties of a private link resource.

func (PrivateLinkResourceProperties) MarshalJSON

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

MarshalJSON is the custom marshaler for PrivateLinkResourceProperties.

type PrivateLinkResourcesClient

type PrivateLinkResourcesClient struct {
	BaseClient
}

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

func NewPrivateLinkResourcesClient

func NewPrivateLinkResourcesClient(subscriptionID string) PrivateLinkResourcesClient

NewPrivateLinkResourcesClient creates an instance of the PrivateLinkResourcesClient client.

func NewPrivateLinkResourcesClientWithBaseURI

func NewPrivateLinkResourcesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkResourcesClient

NewPrivateLinkResourcesClientWithBaseURI creates an instance of the PrivateLinkResourcesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PrivateLinkResourcesClient) ListByVault

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

ListByVault gets the private link resources supported for the key vault. Parameters: resourceGroupName - name of the resource group that contains the key vault. vaultName - the name of the key vault.

func (PrivateLinkResourcesClient) ListByVaultPreparer

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

ListByVaultPreparer prepares the ListByVault request.

func (PrivateLinkResourcesClient) ListByVaultResponder

func (client PrivateLinkResourcesClient) ListByVaultResponder(resp *http.Response) (result PrivateLinkResourceListResult, err error)

ListByVaultResponder handles the response to the ListByVault request. The method always closes the http.Response Body.

func (PrivateLinkResourcesClient) ListByVaultSender

func (client PrivateLinkResourcesClient) ListByVaultSender(req *http.Request) (*http.Response, error)

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

type PrivateLinkServiceConnectionState

type PrivateLinkServiceConnectionState struct {
	// Status - Indicates whether the connection has been approved, rejected or removed by the key vault owner. Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected'
	Status PrivateEndpointServiceConnectionStatus `json:"status,omitempty"`
	// Description - The reason for approval or rejection.
	Description *string `json:"description,omitempty"`
	// ActionsRequired - A message indicating if changes on the service provider require any updates on the consumer. Possible values include: 'None'
	ActionsRequired ActionsRequired `json:"actionsRequired,omitempty"`
}

PrivateLinkServiceConnectionState an object that represents the approval state of the private link connection.

type ProvisioningState

type ProvisioningState string

ProvisioningState enumerates the values for provisioning state.

const (
	// ProvisioningStateActivated The managed HSM pool is ready for normal use.
	ProvisioningStateActivated ProvisioningState = "Activated"
	// ProvisioningStateDeleting The managed HSM Pool is currently being deleted.
	ProvisioningStateDeleting ProvisioningState = "Deleting"
	// ProvisioningStateFailed Provisioning of the managed HSM Pool has failed.
	ProvisioningStateFailed ProvisioningState = "Failed"
	// ProvisioningStateProvisioning The managed HSM Pool is currently being provisioned.
	ProvisioningStateProvisioning ProvisioningState = "Provisioning"
	// ProvisioningStateRestoring The managed HSM pool is being restored from full HSM backup.
	ProvisioningStateRestoring ProvisioningState = "Restoring"
	// ProvisioningStateSecurityDomainRestore The managed HSM pool is waiting for a security domain restore
	// action.
	ProvisioningStateSecurityDomainRestore ProvisioningState = "SecurityDomainRestore"
	// ProvisioningStateSucceeded The managed HSM Pool has been full provisioned.
	ProvisioningStateSucceeded ProvisioningState = "Succeeded"
	// ProvisioningStateUpdating The managed HSM Pool is currently being updated.
	ProvisioningStateUpdating ProvisioningState = "Updating"
)

func PossibleProvisioningStateValues

func PossibleProvisioningStateValues() []ProvisioningState

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

type PublicNetworkAccess

type PublicNetworkAccess string

PublicNetworkAccess enumerates the values for public network access.

const (
	// Disabled ...
	Disabled PublicNetworkAccess = "Disabled"
	// Enabled ...
	Enabled PublicNetworkAccess = "Enabled"
)

func PossiblePublicNetworkAccessValues

func PossiblePublicNetworkAccessValues() []PublicNetworkAccess

PossiblePublicNetworkAccessValues returns an array of possible values for the PublicNetworkAccess const type.

type ReasonForKeyVault

type ReasonForKeyVault string

ReasonForKeyVault enumerates the values for reason for key vault.

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

func PossibleReasonForKeyVaultValues

func PossibleReasonForKeyVaultValues() []ReasonForKeyVault

PossibleReasonForKeyVaultValues returns an array of possible values for the ReasonForKeyVault const type.

type ReasonForManagedHsm

type ReasonForManagedHsm string

ReasonForManagedHsm enumerates the values for reason for managed hsm.

const (
	// ReasonForManagedHsmAccountNameInvalid ...
	ReasonForManagedHsmAccountNameInvalid ReasonForManagedHsm = "AccountNameInvalid"
	// ReasonForManagedHsmAlreadyExists ...
	ReasonForManagedHsmAlreadyExists ReasonForManagedHsm = "AlreadyExists"
)

func PossibleReasonForManagedHsmValues

func PossibleReasonForManagedHsmValues() []ReasonForManagedHsm

PossibleReasonForManagedHsmValues returns an array of possible values for the ReasonForManagedHsm const type.

type Resource

type Resource struct {
	// ID - READ-ONLY; Fully qualified identifier of the key vault resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Name of the key vault resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type of the key vault resource.
	Type *string `json:"type,omitempty"`
	// Location - READ-ONLY; Azure location of the key vault resource.
	Location *string `json:"location,omitempty"`
	// Tags - READ-ONLY; Tags assigned to the key vault resource.
	Tags map[string]*string `json:"tags"`
}

Resource key Vault resource

func (Resource) MarshalJSON

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

MarshalJSON is the custom marshaler for Resource.

type ResourceListResult

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

func (rlr ResourceListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ResourceListResultIterator

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

ResourceListResultIterator provides access to a complete listing of Resource values.

func NewResourceListResultIterator

func NewResourceListResultIterator(page ResourceListResultPage) ResourceListResultIterator

Creates a new instance of the ResourceListResultIterator type.

func (*ResourceListResultIterator) Next

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

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

func (iter ResourceListResultIterator) NotDone() bool

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

func (ResourceListResultIterator) Response

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

func (ResourceListResultIterator) Value

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

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

ResourceListResultPage contains a page of Resource values.

func NewResourceListResultPage

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

Creates a new instance of the ResourceListResultPage type.

func (*ResourceListResultPage) Next

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

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

func (page ResourceListResultPage) NotDone() bool

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

func (ResourceListResultPage) Response

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

func (ResourceListResultPage) Values

func (page ResourceListResultPage) Values() []Resource

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

type RotationPolicy

type RotationPolicy struct {
	// Attributes - The attributes of key rotation policy.
	Attributes *KeyRotationPolicyAttributes `json:"attributes,omitempty"`
	// LifetimeActions - The lifetimeActions for key rotation action.
	LifetimeActions *[]LifetimeAction `json:"lifetimeActions,omitempty"`
}

RotationPolicy ...

type Secret

type Secret struct {
	autorest.Response `json:"-"`
	// Properties - Properties of the secret
	Properties *SecretProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Fully qualified identifier of the key vault resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Name of the key vault resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type of the key vault resource.
	Type *string `json:"type,omitempty"`
	// Location - READ-ONLY; Azure location of the key vault resource.
	Location *string `json:"location,omitempty"`
	// Tags - READ-ONLY; Tags assigned to the key vault resource.
	Tags map[string]*string `json:"tags"`
}

Secret resource information with extended details.

func (Secret) MarshalJSON

func (s Secret) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Secret.

type SecretAttributes

type SecretAttributes struct {
	// Enabled - Determines whether the object is enabled.
	Enabled *bool `json:"enabled,omitempty"`
	// NotBefore - Not before date in seconds since 1970-01-01T00:00:00Z.
	NotBefore *date.UnixTime `json:"nbf,omitempty"`
	// Expires - Expiry date in seconds since 1970-01-01T00:00:00Z.
	Expires *date.UnixTime `json:"exp,omitempty"`
	// Created - READ-ONLY; Creation time in seconds since 1970-01-01T00:00:00Z.
	Created *date.UnixTime `json:"created,omitempty"`
	// Updated - READ-ONLY; Last updated time in seconds since 1970-01-01T00:00:00Z.
	Updated *date.UnixTime `json:"updated,omitempty"`
}

SecretAttributes the secret management attributes.

func (SecretAttributes) MarshalJSON

func (sa SecretAttributes) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SecretAttributes.

type SecretCreateOrUpdateParameters

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

SecretCreateOrUpdateParameters parameters for creating or updating a secret

func (SecretCreateOrUpdateParameters) MarshalJSON

func (scoup SecretCreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SecretCreateOrUpdateParameters.

type SecretListResult

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

SecretListResult list of secrets

func (SecretListResult) IsEmpty

func (slr SecretListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type SecretListResultIterator

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

SecretListResultIterator provides access to a complete listing of Secret values.

func NewSecretListResultIterator

func NewSecretListResultIterator(page SecretListResultPage) SecretListResultIterator

Creates a new instance of the SecretListResultIterator type.

func (*SecretListResultIterator) Next

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

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

func (iter SecretListResultIterator) NotDone() bool

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

func (SecretListResultIterator) Response

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

func (SecretListResultIterator) Value

func (iter SecretListResultIterator) Value() Secret

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

type SecretListResultPage

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

SecretListResultPage contains a page of Secret values.

func NewSecretListResultPage

func NewSecretListResultPage(cur SecretListResult, getNextPage func(context.Context, SecretListResult) (SecretListResult, error)) SecretListResultPage

Creates a new instance of the SecretListResultPage type.

func (*SecretListResultPage) Next

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

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

func (page SecretListResultPage) NotDone() bool

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

func (SecretListResultPage) Response

func (page SecretListResultPage) Response() SecretListResult

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

func (SecretListResultPage) Values

func (page SecretListResultPage) Values() []Secret

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

type SecretPatchParameters

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

SecretPatchParameters parameters for patching a secret

func (SecretPatchParameters) MarshalJSON

func (spp SecretPatchParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SecretPatchParameters.

type SecretPatchProperties

type SecretPatchProperties struct {
	// Value - The value of the secret.
	Value *string `json:"value,omitempty"`
	// ContentType - The content type of the secret.
	ContentType *string `json:"contentType,omitempty"`
	// Attributes - The attributes of the secret.
	Attributes *SecretAttributes `json:"attributes,omitempty"`
}

SecretPatchProperties properties of the secret

type SecretPermissions

type SecretPermissions string

SecretPermissions enumerates the values for secret permissions.

const (
	// SecretPermissionsAll ...
	SecretPermissionsAll SecretPermissions = "all"
	// 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

func PossibleSecretPermissionsValues() []SecretPermissions

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

type SecretProperties

type SecretProperties struct {
	// Value - The value of the secret. NOTE: 'value' will never be returned from the service, as APIs using this model are is intended for internal use in ARM deployments. Users should use the data-plane REST service for interaction with vault secrets.
	Value *string `json:"value,omitempty"`
	// ContentType - The content type of the secret.
	ContentType *string `json:"contentType,omitempty"`
	// Attributes - The attributes of the secret.
	Attributes *SecretAttributes `json:"attributes,omitempty"`
	// SecretURI - READ-ONLY; The URI to retrieve the current version of the secret.
	SecretURI *string `json:"secretUri,omitempty"`
	// SecretURIWithVersion - READ-ONLY; The URI to retrieve the specific version of the secret.
	SecretURIWithVersion *string `json:"secretUriWithVersion,omitempty"`
}

SecretProperties properties of the secret

func (SecretProperties) MarshalJSON

func (sp SecretProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SecretProperties.

type SecretsClient

type SecretsClient struct {
	BaseClient
}

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

func NewSecretsClient

func NewSecretsClient(subscriptionID string) SecretsClient

NewSecretsClient creates an instance of the SecretsClient client.

func NewSecretsClientWithBaseURI

func NewSecretsClientWithBaseURI(baseURI string, subscriptionID string) SecretsClient

NewSecretsClientWithBaseURI creates an instance of the SecretsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (SecretsClient) CreateOrUpdate

func (client SecretsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, vaultName string, secretName string, parameters SecretCreateOrUpdateParameters) (result Secret, err error)

CreateOrUpdate create or update a secret in a key vault in the specified subscription. NOTE: This API is intended for internal use in ARM deployments. Users should use the data-plane REST service for interaction with vault secrets. Parameters: resourceGroupName - the name of the Resource Group to which the vault belongs. vaultName - name of the vault secretName - name of the secret parameters - parameters to create or update the secret

func (SecretsClient) CreateOrUpdatePreparer

func (client SecretsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, vaultName string, secretName string, parameters SecretCreateOrUpdateParameters) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (SecretsClient) CreateOrUpdateResponder

func (client SecretsClient) CreateOrUpdateResponder(resp *http.Response) (result Secret, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (SecretsClient) CreateOrUpdateSender

func (client SecretsClient) 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 (SecretsClient) Get

func (client SecretsClient) Get(ctx context.Context, resourceGroupName string, vaultName string, secretName string) (result Secret, err error)

Get gets the specified secret. NOTE: This API is intended for internal use in ARM deployments. Users should use the data-plane REST service for interaction with vault secrets. Parameters: resourceGroupName - the name of the Resource Group to which the vault belongs. vaultName - the name of the vault. secretName - the name of the secret.

func (SecretsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (SecretsClient) GetResponder

func (client SecretsClient) GetResponder(resp *http.Response) (result Secret, err error)

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

func (SecretsClient) GetSender

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

func (client SecretsClient) List(ctx context.Context, resourceGroupName string, vaultName string, top *int32) (result SecretListResultPage, err error)

List the List operation gets information about the secrets in a vault. NOTE: This API is intended for internal use in ARM deployments. Users should use the data-plane REST service for interaction with vault secrets. Parameters: resourceGroupName - the name of the Resource Group to which the vault belongs. vaultName - the name of the vault. top - maximum number of results to return.

func (SecretsClient) ListComplete

func (client SecretsClient) ListComplete(ctx context.Context, resourceGroupName string, vaultName string, top *int32) (result SecretListResultIterator, err error)

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

func (SecretsClient) ListPreparer

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

ListPreparer prepares the List request.

func (SecretsClient) ListResponder

func (client SecretsClient) ListResponder(resp *http.Response) (result SecretListResult, err error)

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

func (SecretsClient) ListSender

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

func (client SecretsClient) Update(ctx context.Context, resourceGroupName string, vaultName string, secretName string, parameters SecretPatchParameters) (result Secret, err error)

Update update a secret in the specified subscription. NOTE: This API is intended for internal use in ARM deployments. Users should use the data-plane REST service for interaction with vault secrets. Parameters: resourceGroupName - the name of the Resource Group to which the vault belongs. vaultName - name of the vault secretName - name of the secret parameters - parameters to patch the secret

func (SecretsClient) UpdatePreparer

func (client SecretsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, vaultName string, secretName string, parameters SecretPatchParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (SecretsClient) UpdateResponder

func (client SecretsClient) UpdateResponder(resp *http.Response) (result Secret, err error)

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

func (SecretsClient) UpdateSender

func (client SecretsClient) 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 ServiceSpecification

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

ServiceSpecification one property of operation, include log specifications.

type Sku

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

type SkuName string

SkuName enumerates the values for sku name.

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

func PossibleSkuNameValues

func PossibleSkuNameValues() []SkuName

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

type StoragePermissions

type StoragePermissions string

StoragePermissions enumerates the values for storage permissions.

const (
	// StoragePermissionsAll ...
	StoragePermissionsAll StoragePermissions = "all"
	// 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

func PossibleStoragePermissionsValues() []StoragePermissions

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

type SystemData

type SystemData struct {
	// CreatedBy - The identity that created the key vault resource.
	CreatedBy *string `json:"createdBy,omitempty"`
	// CreatedByType - The type of identity that created the key vault resource. Possible values include: 'IdentityTypeUser', 'IdentityTypeApplication', 'IdentityTypeManagedIdentity', 'IdentityTypeKey'
	CreatedByType IdentityType `json:"createdByType,omitempty"`
	// CreatedAt - The timestamp of the key vault resource creation (UTC).
	CreatedAt *date.Time `json:"createdAt,omitempty"`
	// LastModifiedBy - The identity that last modified the key vault resource.
	LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
	// LastModifiedByType - The type of identity that last modified the key vault resource. Possible values include: 'IdentityTypeUser', 'IdentityTypeApplication', 'IdentityTypeManagedIdentity', 'IdentityTypeKey'
	LastModifiedByType IdentityType `json:"lastModifiedByType,omitempty"`
	// LastModifiedAt - The timestamp of the key vault resource last modification (UTC).
	LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"`
}

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

type Trigger

type Trigger struct {
	// TimeAfterCreate - The time duration after key creation to rotate the key. It only applies to rotate. It will be in ISO 8601 duration format. Eg: 'P90D', 'P1Y'.
	TimeAfterCreate *string `json:"timeAfterCreate,omitempty"`
	// TimeBeforeExpiry - The time duration before key expiring to rotate or notify. It will be in ISO 8601 duration format. Eg: 'P90D', 'P1Y'.
	TimeBeforeExpiry *string `json:"timeBeforeExpiry,omitempty"`
}

Trigger ...

type Vault

type Vault struct {
	autorest.Response `json:"-"`
	// ID - READ-ONLY; Fully qualified identifier of the key vault resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Name of the key vault resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type of the key vault resource.
	Type *string `json:"type,omitempty"`
	// Location - Azure location of the key vault resource.
	Location *string `json:"location,omitempty"`
	// Tags - Tags assigned to the key vault resource.
	Tags map[string]*string `json:"tags"`
	// SystemData - System metadata for the key vault.
	SystemData *SystemData `json:"systemData,omitempty"`
	// Properties - Properties of the vault
	Properties *VaultProperties `json:"properties,omitempty"`
}

Vault resource information with extended details.

func (Vault) MarshalJSON

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

MarshalJSON is the custom marshaler for Vault.

type VaultAccessPolicyParameters

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

func (VaultAccessPolicyParameters) MarshalJSON

func (vapp VaultAccessPolicyParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VaultAccessPolicyParameters.

type VaultAccessPolicyProperties

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

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

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

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

MarshalJSON is the custom marshaler for VaultCreateOrUpdateParameters.

type VaultListResult

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

func (vlr VaultListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type VaultListResultIterator

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

VaultListResultIterator provides access to a complete listing of Vault values.

func NewVaultListResultIterator

func NewVaultListResultIterator(page VaultListResultPage) VaultListResultIterator

Creates a new instance of the VaultListResultIterator type.

func (*VaultListResultIterator) Next

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

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

func (iter VaultListResultIterator) NotDone() bool

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

func (VaultListResultIterator) Response

func (iter VaultListResultIterator) Response() VaultListResult

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

func (VaultListResultIterator) Value

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

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

VaultListResultPage contains a page of Vault values.

func NewVaultListResultPage

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

Creates a new instance of the VaultListResultPage type.

func (*VaultListResultPage) Next

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

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

func (page VaultListResultPage) NotDone() bool

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

func (VaultListResultPage) Response

func (page VaultListResultPage) Response() VaultListResult

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

func (VaultListResultPage) Values

func (page VaultListResultPage) Values() []Vault

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

type VaultPatchParameters

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

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

MarshalJSON is the custom marshaler for VaultPatchParameters.

type VaultPatchProperties

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 to specify whether the 'soft delete' functionality is enabled for this key vault. Once set to true, it cannot be reverted to false.
	EnableSoftDelete *bool `json:"enableSoftDelete,omitempty"`
	// EnableRbacAuthorization - Property that controls how data actions are authorized. When true, the key vault will use Role Based Access Control (RBAC) for authorization of data actions, and the access policies specified in vault properties will be  ignored. When false, the key vault will use the access policies specified in vault properties, and any policy stored on Azure Resource Manager will be ignored. If null or not specified, the value of this property will not change.
	EnableRbacAuthorization *bool `json:"enableRbacAuthorization,omitempty"`
	// SoftDeleteRetentionInDays - softDelete data retention days. It accepts >=7 and <=90.
	SoftDeleteRetentionInDays *int32 `json:"softDeleteRetentionInDays,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"`
	// NetworkAcls - A collection of rules governing the accessibility of the vault from specific network locations.
	NetworkAcls *NetworkRuleSet `json:"networkAcls,omitempty"`
	// PublicNetworkAccess - Property to specify whether the vault will accept traffic from public internet. If set to 'disabled' all traffic except private endpoint traffic and that that originates from trusted services will be blocked. This will override the set firewall rules, meaning that even if the firewall rules are present we will not honor the rules.
	PublicNetworkAccess *string `json:"publicNetworkAccess,omitempty"`
}

VaultPatchProperties properties of the vault

type VaultProperties

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 1024 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"`
	// HsmPoolResourceID - READ-ONLY; The resource id of HSM Pool.
	HsmPoolResourceID *string `json:"hsmPoolResourceId,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 to specify whether the 'soft delete' functionality is enabled for this key vault. If it's not set to any value(true or false) when creating new key vault, it will be set to true by default. Once set to true, it cannot be reverted to false.
	EnableSoftDelete *bool `json:"enableSoftDelete,omitempty"`
	// SoftDeleteRetentionInDays - softDelete data retention days. It accepts >=7 and <=90.
	SoftDeleteRetentionInDays *int32 `json:"softDeleteRetentionInDays,omitempty"`
	// EnableRbacAuthorization - Property that controls how data actions are authorized. When true, the key vault will use Role Based Access Control (RBAC) for authorization of data actions, and the access policies specified in vault properties will be  ignored. When false, the key vault will use the access policies specified in vault properties, and any policy stored on Azure Resource Manager will be ignored. If null or not specified, the vault is created with the default value of false. Note that management actions are always authorized with RBAC.
	EnableRbacAuthorization *bool `json:"enableRbacAuthorization,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"`
	// NetworkAcls - Rules governing the accessibility of the key vault from specific network locations.
	NetworkAcls *NetworkRuleSet `json:"networkAcls,omitempty"`
	// ProvisioningState - Provisioning state of the vault. Possible values include: 'Succeeded', 'RegisteringDNS'
	ProvisioningState VaultProvisioningState `json:"provisioningState,omitempty"`
	// PrivateEndpointConnections - READ-ONLY; List of private endpoint connections associated with the key vault.
	PrivateEndpointConnections *[]PrivateEndpointConnectionItem `json:"privateEndpointConnections,omitempty"`
	// PublicNetworkAccess - Property to specify whether the vault will accept traffic from public internet. If set to 'disabled' all traffic except private endpoint traffic and that that originates from trusted services will be blocked. This will override the set firewall rules, meaning that even if the firewall rules are present we will not honor the rules.
	PublicNetworkAccess *string `json:"publicNetworkAccess,omitempty"`
}

VaultProperties properties of the vault

func (VaultProperties) MarshalJSON

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

MarshalJSON is the custom marshaler for VaultProperties.

type VaultProvisioningState

type VaultProvisioningState string

VaultProvisioningState enumerates the values for vault provisioning state.

const (
	// RegisteringDNS ...
	RegisteringDNS VaultProvisioningState = "RegisteringDns"
	// Succeeded ...
	Succeeded VaultProvisioningState = "Succeeded"
)

func PossibleVaultProvisioningStateValues

func PossibleVaultProvisioningStateValues() []VaultProvisioningState

PossibleVaultProvisioningStateValues returns an array of possible values for the VaultProvisioningState const type.

type VaultsClient

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

func NewVaultsClient(subscriptionID string) VaultsClient

NewVaultsClient creates an instance of the VaultsClient client.

func NewVaultsClientWithBaseURI

func NewVaultsClientWithBaseURI(baseURI string, subscriptionID string) VaultsClient

NewVaultsClientWithBaseURI creates an instance of the VaultsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (VaultsClient) CheckNameAvailability

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

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

CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.

func (VaultsClient) CheckNameAvailabilityResponder

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

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

func (client VaultsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, vaultName string, parameters VaultCreateOrUpdateParameters) (result VaultsCreateOrUpdateFuture, 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

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (VaultsClient) CreateOrUpdateResponder

func (client VaultsClient) CreateOrUpdateResponder(resp *http.Response) (result Vault, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (VaultsClient) CreateOrUpdateSender

func (client VaultsClient) CreateOrUpdateSender(req *http.Request) (future VaultsCreateOrUpdateFuture, err error)

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

func (VaultsClient) Delete

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

Delete deletes 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

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

DeletePreparer prepares the Delete request.

func (VaultsClient) DeleteResponder

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

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (VaultsClient) DeleteSender

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

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

func (VaultsClient) Get

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

Get 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

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

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

GetDeletedPreparer prepares the GetDeleted request.

func (VaultsClient) GetDeletedResponder

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

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

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

GetPreparer prepares the Get request.

func (VaultsClient) GetResponder

func (client VaultsClient) GetResponder(resp *http.Response) (result Vault, err error)

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

func (VaultsClient) GetSender

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

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

func (VaultsClient) List

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

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

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

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (VaultsClient) ListByResourceGroupResponder

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

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

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

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

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

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (VaultsClient) ListBySubscriptionResponder

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

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

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

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

ListDeleted gets information about the deleted vaults in a subscription.

func (VaultsClient) ListDeletedComplete

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

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

func (VaultsClient) ListDeletedPreparer

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

ListDeletedPreparer prepares the ListDeleted request.

func (VaultsClient) ListDeletedResponder

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

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

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

ListPreparer prepares the List request.

func (VaultsClient) ListResponder

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

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

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

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

PurgeDeletedPreparer prepares the PurgeDeleted request.

func (VaultsClient) PurgeDeletedResponder

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

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

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

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

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

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

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

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

UpdatePreparer prepares the Update request.

func (VaultsClient) UpdateResponder

func (client VaultsClient) UpdateResponder(resp *http.Response) (result Vault, err error)

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

func (VaultsClient) UpdateSender

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

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

type VaultsCreateOrUpdateFuture

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

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

func (*VaultsCreateOrUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type VaultsPurgeDeletedFuture

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

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

func (*VaultsPurgeDeletedFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type VirtualNetworkRule

type VirtualNetworkRule struct {
	// ID - Full resource id of a vnet subnet, such as '/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'.
	ID *string `json:"id,omitempty"`
	// IgnoreMissingVnetServiceEndpoint - Property to specify whether NRP will ignore the check if parent subnet has serviceEndpoints configured.
	IgnoreMissingVnetServiceEndpoint *bool `json:"ignoreMissingVnetServiceEndpoint,omitempty"`
}

VirtualNetworkRule a rule governing the accessibility of a vault from a specific virtual network.

Directories

Path Synopsis
Deprecated: Please note, this package has been deprecated.
Deprecated: Please note, this package has been deprecated.

Jump to

Keyboard shortcuts

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