vendor: update all dependencies to latest versions
This commit is contained in:
+2698
-262
File diff suppressed because it is too large
Load Diff
+338
-56
@@ -14,9 +14,8 @@ package keyvault
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
import (
|
||||
"github.com/Azure/go-autorest/autorest"
|
||||
@@ -35,16 +34,30 @@ const (
|
||||
EmailContacts ActionType = "EmailContacts"
|
||||
)
|
||||
|
||||
// JSONWebKeyEncryptionAlgorithm enumerates the values for json web key
|
||||
// encryption algorithm.
|
||||
// DeletionRecoveryLevel enumerates the values for deletion recovery level.
|
||||
type DeletionRecoveryLevel string
|
||||
|
||||
const (
|
||||
// Purgeable specifies the purgeable state for deletion recovery level.
|
||||
Purgeable DeletionRecoveryLevel = "Purgeable"
|
||||
// Recoverable specifies the recoverable state for deletion recovery level.
|
||||
Recoverable DeletionRecoveryLevel = "Recoverable"
|
||||
// RecoverableProtectedSubscription specifies the recoverable protected subscription state for deletion recovery level.
|
||||
RecoverableProtectedSubscription DeletionRecoveryLevel = "Recoverable+ProtectedSubscription"
|
||||
// RecoverablePurgeable specifies the recoverable purgeable state for deletion recovery level.
|
||||
RecoverablePurgeable DeletionRecoveryLevel = "Recoverable+Purgeable"
|
||||
)
|
||||
|
||||
// JSONWebKeyEncryptionAlgorithm enumerates the values for json web key encryption algorithm.
|
||||
type JSONWebKeyEncryptionAlgorithm string
|
||||
|
||||
const (
|
||||
// RSA15 specifies the rsa15 state for json web key encryption algorithm.
|
||||
RSA15 JSONWebKeyEncryptionAlgorithm = "RSA1_5"
|
||||
// RSAOAEP specifies the rsaoaep state for json web key encryption
|
||||
// algorithm.
|
||||
// RSAOAEP specifies the rsaoaep state for json web key encryption algorithm.
|
||||
RSAOAEP JSONWebKeyEncryptionAlgorithm = "RSA-OAEP"
|
||||
// RSAOAEP256 specifies the rsaoaep256 state for json web key encryption algorithm.
|
||||
RSAOAEP256 JSONWebKeyEncryptionAlgorithm = "RSA-OAEP-256"
|
||||
)
|
||||
|
||||
// JSONWebKeyOperation enumerates the values for json web key operation.
|
||||
@@ -65,11 +78,16 @@ const (
|
||||
WrapKey JSONWebKeyOperation = "wrapKey"
|
||||
)
|
||||
|
||||
// JSONWebKeySignatureAlgorithm enumerates the values for json web key
|
||||
// signature algorithm.
|
||||
// JSONWebKeySignatureAlgorithm enumerates the values for json web key signature algorithm.
|
||||
type JSONWebKeySignatureAlgorithm string
|
||||
|
||||
const (
|
||||
// PS256 specifies the ps256 state for json web key signature algorithm.
|
||||
PS256 JSONWebKeySignatureAlgorithm = "PS256"
|
||||
// PS384 specifies the ps384 state for json web key signature algorithm.
|
||||
PS384 JSONWebKeySignatureAlgorithm = "PS384"
|
||||
// PS512 specifies the ps512 state for json web key signature algorithm.
|
||||
PS512 JSONWebKeySignatureAlgorithm = "PS512"
|
||||
// RS256 specifies the rs256 state for json web key signature algorithm.
|
||||
RS256 JSONWebKeySignatureAlgorithm = "RS256"
|
||||
// RS384 specifies the rs384 state for json web key signature algorithm.
|
||||
@@ -100,13 +118,11 @@ type KeyUsageType string
|
||||
const (
|
||||
// CRLSign specifies the crl sign state for key usage type.
|
||||
CRLSign KeyUsageType = "cRLSign"
|
||||
// DataEncipherment specifies the data encipherment state for key usage
|
||||
// type.
|
||||
// DataEncipherment specifies the data encipherment state for key usage type.
|
||||
DataEncipherment KeyUsageType = "dataEncipherment"
|
||||
// DecipherOnly specifies the decipher only state for key usage type.
|
||||
DecipherOnly KeyUsageType = "decipherOnly"
|
||||
// DigitalSignature specifies the digital signature state for key usage
|
||||
// type.
|
||||
// DigitalSignature specifies the digital signature state for key usage type.
|
||||
DigitalSignature KeyUsageType = "digitalSignature"
|
||||
// EncipherOnly specifies the encipher only state for key usage type.
|
||||
EncipherOnly KeyUsageType = "encipherOnly"
|
||||
@@ -125,8 +141,7 @@ type Action struct {
|
||||
ActionType ActionType `json:"action_type,omitempty"`
|
||||
}
|
||||
|
||||
// AdministratorDetails is details of the organization administrator of the
|
||||
// certificate issuer.
|
||||
// AdministratorDetails is details of the organization administrator of the certificate issuer.
|
||||
type AdministratorDetails struct {
|
||||
FirstName *string `json:"first_name,omitempty"`
|
||||
LastName *string `json:"last_name,omitempty"`
|
||||
@@ -149,17 +164,23 @@ type BackupKeyResult struct {
|
||||
Value *string `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// CertificateAttributes is the certificate management attributes.
|
||||
type CertificateAttributes struct {
|
||||
Enabled *bool `json:"enabled,omitempty"`
|
||||
NotBefore *date.UnixTime `json:"nbf,omitempty"`
|
||||
Expires *date.UnixTime `json:"exp,omitempty"`
|
||||
Created *date.UnixTime `json:"created,omitempty"`
|
||||
Updated *date.UnixTime `json:"updated,omitempty"`
|
||||
// BackupSecretResult is the backup secret result, containing the backup blob.
|
||||
type BackupSecretResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
Value *string `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// CertificateBundle is a certificate bundle consists of a certificate (X509)
|
||||
// plus its attributes.
|
||||
// CertificateAttributes is the certificate management attributes.
|
||||
type CertificateAttributes struct {
|
||||
Enabled *bool `json:"enabled,omitempty"`
|
||||
NotBefore *date.UnixTime `json:"nbf,omitempty"`
|
||||
Expires *date.UnixTime `json:"exp,omitempty"`
|
||||
Created *date.UnixTime `json:"created,omitempty"`
|
||||
Updated *date.UnixTime `json:"updated,omitempty"`
|
||||
RecoveryLevel DeletionRecoveryLevel `json:"recoveryLevel,omitempty"`
|
||||
}
|
||||
|
||||
// CertificateBundle is a certificate bundle consists of a certificate (X509) plus its attributes.
|
||||
type CertificateBundle struct {
|
||||
autorest.Response `json:"-"`
|
||||
ID *string `json:"id,omitempty"`
|
||||
@@ -189,8 +210,7 @@ type CertificateImportParameters struct {
|
||||
Tags *map[string]*string `json:"tags,omitempty"`
|
||||
}
|
||||
|
||||
// CertificateIssuerItem is the certificate issuer item containing certificate
|
||||
// issuer metadata.
|
||||
// CertificateIssuerItem is the certificate issuer item containing certificate issuer metadata.
|
||||
type CertificateIssuerItem struct {
|
||||
ID *string `json:"id,omitempty"`
|
||||
Provider *string `json:"provider,omitempty"`
|
||||
@@ -223,8 +243,7 @@ type CertificateIssuerSetParameters struct {
|
||||
Attributes *IssuerAttributes `json:"attributes,omitempty"`
|
||||
}
|
||||
|
||||
// CertificateIssuerUpdateParameters is the certificate issuer update
|
||||
// parameters.
|
||||
// CertificateIssuerUpdateParameters is the certificate issuer update parameters.
|
||||
type CertificateIssuerUpdateParameters struct {
|
||||
Provider *string `json:"provider,omitempty"`
|
||||
Credentials *IssuerCredentials `json:"credentials,omitempty"`
|
||||
@@ -266,8 +285,7 @@ type CertificateMergeParameters struct {
|
||||
Tags *map[string]*string `json:"tags,omitempty"`
|
||||
}
|
||||
|
||||
// CertificateOperation is a certificate operation is returned in case of
|
||||
// asynchronous requests.
|
||||
// CertificateOperation is a certificate operation is returned in case of asynchronous requests.
|
||||
type CertificateOperation struct {
|
||||
autorest.Response `json:"-"`
|
||||
ID *string `json:"id,omitempty"`
|
||||
@@ -281,8 +299,7 @@ type CertificateOperation struct {
|
||||
RequestID *string `json:"request_id,omitempty"`
|
||||
}
|
||||
|
||||
// CertificateOperationUpdateParameter is the certificate operation update
|
||||
// parameters.
|
||||
// CertificateOperationUpdateParameter is the certificate operation update parameters.
|
||||
type CertificateOperationUpdateParameter struct {
|
||||
CancellationRequested *bool `json:"cancellation_requested,omitempty"`
|
||||
}
|
||||
@@ -320,6 +337,143 @@ type Contacts struct {
|
||||
ContactList *[]Contact `json:"contacts,omitempty"`
|
||||
}
|
||||
|
||||
// DeletedCertificateBundle is a Deleted Certificate consisting of its previous id, attributes and its tags, as well as
|
||||
// information on when it will be purged.
|
||||
type DeletedCertificateBundle struct {
|
||||
autorest.Response `json:"-"`
|
||||
ID *string `json:"id,omitempty"`
|
||||
Kid *string `json:"kid,omitempty"`
|
||||
Sid *string `json:"sid,omitempty"`
|
||||
X509Thumbprint *string `json:"x5t,omitempty"`
|
||||
Policy *CertificatePolicy `json:"policy,omitempty"`
|
||||
Cer *[]byte `json:"cer,omitempty"`
|
||||
ContentType *string `json:"contentType,omitempty"`
|
||||
Attributes *CertificateAttributes `json:"attributes,omitempty"`
|
||||
Tags *map[string]*string `json:"tags,omitempty"`
|
||||
RecoveryID *string `json:"recoveryId,omitempty"`
|
||||
ScheduledPurgeDate *date.UnixTime `json:"scheduledPurgeDate,omitempty"`
|
||||
DeletedDate *date.UnixTime `json:"deletedDate,omitempty"`
|
||||
}
|
||||
|
||||
// DeletedCertificateItem is the deleted certificate item containing metadata about the deleted certificate.
|
||||
type DeletedCertificateItem struct {
|
||||
ID *string `json:"id,omitempty"`
|
||||
Attributes *CertificateAttributes `json:"attributes,omitempty"`
|
||||
Tags *map[string]*string `json:"tags,omitempty"`
|
||||
X509Thumbprint *string `json:"x5t,omitempty"`
|
||||
RecoveryID *string `json:"recoveryId,omitempty"`
|
||||
ScheduledPurgeDate *date.UnixTime `json:"scheduledPurgeDate,omitempty"`
|
||||
DeletedDate *date.UnixTime `json:"deletedDate,omitempty"`
|
||||
}
|
||||
|
||||
// DeletedCertificateListResult is a list of certificates that have been deleted in this vault.
|
||||
type DeletedCertificateListResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
Value *[]DeletedCertificateItem `json:"value,omitempty"`
|
||||
NextLink *string `json:"nextLink,omitempty"`
|
||||
}
|
||||
|
||||
// DeletedCertificateListResultPreparer prepares a request to retrieve the next set of results. It returns
|
||||
// nil if no more results exist.
|
||||
func (client DeletedCertificateListResult) DeletedCertificateListResultPreparer() (*http.Request, error) {
|
||||
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
|
||||
return nil, nil
|
||||
}
|
||||
return autorest.Prepare(&http.Request{},
|
||||
autorest.AsJSON(),
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(to.String(client.NextLink)))
|
||||
}
|
||||
|
||||
// DeletedKeyBundle is a DeletedKeyBundle consisting of a WebKey plus its Attributes and deletion info
|
||||
type DeletedKeyBundle struct {
|
||||
autorest.Response `json:"-"`
|
||||
Key *JSONWebKey `json:"key,omitempty"`
|
||||
Attributes *KeyAttributes `json:"attributes,omitempty"`
|
||||
Tags *map[string]*string `json:"tags,omitempty"`
|
||||
Managed *bool `json:"managed,omitempty"`
|
||||
RecoveryID *string `json:"recoveryId,omitempty"`
|
||||
ScheduledPurgeDate *date.UnixTime `json:"scheduledPurgeDate,omitempty"`
|
||||
DeletedDate *date.UnixTime `json:"deletedDate,omitempty"`
|
||||
}
|
||||
|
||||
// DeletedKeyItem is the deleted key item containing the deleted key metadata and information about deletion.
|
||||
type DeletedKeyItem struct {
|
||||
Kid *string `json:"kid,omitempty"`
|
||||
Attributes *KeyAttributes `json:"attributes,omitempty"`
|
||||
Tags *map[string]*string `json:"tags,omitempty"`
|
||||
Managed *bool `json:"managed,omitempty"`
|
||||
RecoveryID *string `json:"recoveryId,omitempty"`
|
||||
ScheduledPurgeDate *date.UnixTime `json:"scheduledPurgeDate,omitempty"`
|
||||
DeletedDate *date.UnixTime `json:"deletedDate,omitempty"`
|
||||
}
|
||||
|
||||
// DeletedKeyListResult is a list of keys that have been deleted in this vault.
|
||||
type DeletedKeyListResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
Value *[]DeletedKeyItem `json:"value,omitempty"`
|
||||
NextLink *string `json:"nextLink,omitempty"`
|
||||
}
|
||||
|
||||
// DeletedKeyListResultPreparer prepares a request to retrieve the next set of results. It returns
|
||||
// nil if no more results exist.
|
||||
func (client DeletedKeyListResult) DeletedKeyListResultPreparer() (*http.Request, error) {
|
||||
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
|
||||
return nil, nil
|
||||
}
|
||||
return autorest.Prepare(&http.Request{},
|
||||
autorest.AsJSON(),
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(to.String(client.NextLink)))
|
||||
}
|
||||
|
||||
// DeletedSecretBundle is a Deleted Secret consisting of its previous id, attributes and its tags, as well as
|
||||
// information on when it will be purged.
|
||||
type DeletedSecretBundle struct {
|
||||
autorest.Response `json:"-"`
|
||||
Value *string `json:"value,omitempty"`
|
||||
ID *string `json:"id,omitempty"`
|
||||
ContentType *string `json:"contentType,omitempty"`
|
||||
Attributes *SecretAttributes `json:"attributes,omitempty"`
|
||||
Tags *map[string]*string `json:"tags,omitempty"`
|
||||
Kid *string `json:"kid,omitempty"`
|
||||
Managed *bool `json:"managed,omitempty"`
|
||||
RecoveryID *string `json:"recoveryId,omitempty"`
|
||||
ScheduledPurgeDate *date.UnixTime `json:"scheduledPurgeDate,omitempty"`
|
||||
DeletedDate *date.UnixTime `json:"deletedDate,omitempty"`
|
||||
}
|
||||
|
||||
// DeletedSecretItem is the deleted secret item containing metadata about the deleted secret.
|
||||
type DeletedSecretItem struct {
|
||||
ID *string `json:"id,omitempty"`
|
||||
Attributes *SecretAttributes `json:"attributes,omitempty"`
|
||||
Tags *map[string]*string `json:"tags,omitempty"`
|
||||
ContentType *string `json:"contentType,omitempty"`
|
||||
Managed *bool `json:"managed,omitempty"`
|
||||
RecoveryID *string `json:"recoveryId,omitempty"`
|
||||
ScheduledPurgeDate *date.UnixTime `json:"scheduledPurgeDate,omitempty"`
|
||||
DeletedDate *date.UnixTime `json:"deletedDate,omitempty"`
|
||||
}
|
||||
|
||||
// DeletedSecretListResult is the deleted secret list result
|
||||
type DeletedSecretListResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
Value *[]DeletedSecretItem `json:"value,omitempty"`
|
||||
NextLink *string `json:"nextLink,omitempty"`
|
||||
}
|
||||
|
||||
// DeletedSecretListResultPreparer prepares a request to retrieve the next set of results. It returns
|
||||
// nil if no more results exist.
|
||||
func (client DeletedSecretListResult) DeletedSecretListResultPreparer() (*http.Request, error) {
|
||||
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
|
||||
return nil, nil
|
||||
}
|
||||
return autorest.Prepare(&http.Request{},
|
||||
autorest.AsJSON(),
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(to.String(client.NextLink)))
|
||||
}
|
||||
|
||||
// Error is the key vault server error.
|
||||
type Error struct {
|
||||
Code *string `json:"code,omitempty"`
|
||||
@@ -332,8 +486,7 @@ type ErrorType struct {
|
||||
Error *Error `json:"error,omitempty"`
|
||||
}
|
||||
|
||||
// IssuerAttributes is the attributes of an issuer managed by the Key Vault
|
||||
// service.
|
||||
// IssuerAttributes is the attributes of an issuer managed by the Key Vault service.
|
||||
type IssuerAttributes struct {
|
||||
Enabled *bool `json:"enabled,omitempty"`
|
||||
Created *date.UnixTime `json:"created,omitempty"`
|
||||
@@ -356,15 +509,13 @@ type IssuerCredentials struct {
|
||||
Password *string `json:"pwd,omitempty"`
|
||||
}
|
||||
|
||||
// IssuerParameters is parameters for the issuer of the X509 component of a
|
||||
// certificate.
|
||||
// IssuerParameters is parameters for the issuer of the X509 component of a certificate.
|
||||
type IssuerParameters struct {
|
||||
Name *string `json:"name,omitempty"`
|
||||
CertificateType *string `json:"cty,omitempty"`
|
||||
}
|
||||
|
||||
// JSONWebKey is as of
|
||||
// http://tools.ietf.org/html/draft-ietf-jose-json-web-key-18
|
||||
// JSONWebKey is as of http://tools.ietf.org/html/draft-ietf-jose-json-web-key-18
|
||||
type JSONWebKey struct {
|
||||
Kid *string `json:"kid,omitempty"`
|
||||
Kty JSONWebKeyType `json:"kty,omitempty"`
|
||||
@@ -383,11 +534,12 @@ type JSONWebKey struct {
|
||||
|
||||
// KeyAttributes is the attributes of a key managed by the key vault service.
|
||||
type KeyAttributes struct {
|
||||
Enabled *bool `json:"enabled,omitempty"`
|
||||
NotBefore *date.UnixTime `json:"nbf,omitempty"`
|
||||
Expires *date.UnixTime `json:"exp,omitempty"`
|
||||
Created *date.UnixTime `json:"created,omitempty"`
|
||||
Updated *date.UnixTime `json:"updated,omitempty"`
|
||||
Enabled *bool `json:"enabled,omitempty"`
|
||||
NotBefore *date.UnixTime `json:"nbf,omitempty"`
|
||||
Expires *date.UnixTime `json:"exp,omitempty"`
|
||||
Created *date.UnixTime `json:"created,omitempty"`
|
||||
Updated *date.UnixTime `json:"updated,omitempty"`
|
||||
RecoveryLevel DeletionRecoveryLevel `json:"recoveryLevel,omitempty"`
|
||||
}
|
||||
|
||||
// KeyBundle is a KeyBundle consisting of a WebKey plus its attributes.
|
||||
@@ -495,33 +647,89 @@ type KeyVerifyResult struct {
|
||||
Value *bool `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// LifetimeAction is action and its trigger that will be performed by Key Vault
|
||||
// over the lifetime of a certificate.
|
||||
// LifetimeAction is action and its trigger that will be performed by Key Vault over the lifetime of a certificate.
|
||||
type LifetimeAction struct {
|
||||
Trigger *Trigger `json:"trigger,omitempty"`
|
||||
Action *Action `json:"action,omitempty"`
|
||||
}
|
||||
|
||||
// OrganizationDetails is details of the organization of the certificate
|
||||
// issuer.
|
||||
// OrganizationDetails is details of the organization of the certificate issuer.
|
||||
type OrganizationDetails struct {
|
||||
ID *string `json:"id,omitempty"`
|
||||
AdminDetails *[]AdministratorDetails `json:"admin_details,omitempty"`
|
||||
}
|
||||
|
||||
// PendingCertificateSigningRequestResult is the pending certificate signing
|
||||
// request result.
|
||||
// PendingCertificateSigningRequestResult is the pending certificate signing request result.
|
||||
type PendingCertificateSigningRequestResult struct {
|
||||
Value *string `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// SasDefinitionAttributes is the SAS definition management attributes.
|
||||
type SasDefinitionAttributes struct {
|
||||
Enabled *bool `json:"enabled,omitempty"`
|
||||
Created *date.UnixTime `json:"created,omitempty"`
|
||||
Updated *date.UnixTime `json:"updated,omitempty"`
|
||||
}
|
||||
|
||||
// SasDefinitionBundle is a SAS definition bundle consists of key vault SAS definition details plus its attributes.
|
||||
type SasDefinitionBundle struct {
|
||||
autorest.Response `json:"-"`
|
||||
ID *string `json:"id,omitempty"`
|
||||
SecretID *string `json:"sid,omitempty"`
|
||||
Parameters *map[string]*string `json:"parameters,omitempty"`
|
||||
Attributes *SasDefinitionAttributes `json:"attributes,omitempty"`
|
||||
Tags *map[string]*string `json:"tags,omitempty"`
|
||||
}
|
||||
|
||||
// SasDefinitionCreateParameters is the SAS definition create parameters.
|
||||
type SasDefinitionCreateParameters struct {
|
||||
Parameters *map[string]*string `json:"parameters,omitempty"`
|
||||
SasDefinitionAttributes *SasDefinitionAttributes `json:"attributes,omitempty"`
|
||||
Tags *map[string]*string `json:"tags,omitempty"`
|
||||
}
|
||||
|
||||
// SasDefinitionItem is the SAS definition item containing storage SAS definition metadata.
|
||||
type SasDefinitionItem struct {
|
||||
ID *string `json:"id,omitempty"`
|
||||
SecretID *string `json:"sid,omitempty"`
|
||||
Attributes *SasDefinitionAttributes `json:"attributes,omitempty"`
|
||||
Tags *map[string]*string `json:"tags,omitempty"`
|
||||
}
|
||||
|
||||
// SasDefinitionListResult is the storage account SAS definition list result.
|
||||
type SasDefinitionListResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
Value *[]SasDefinitionItem `json:"value,omitempty"`
|
||||
NextLink *string `json:"nextLink,omitempty"`
|
||||
}
|
||||
|
||||
// SasDefinitionListResultPreparer prepares a request to retrieve the next set of results. It returns
|
||||
// nil if no more results exist.
|
||||
func (client SasDefinitionListResult) SasDefinitionListResultPreparer() (*http.Request, error) {
|
||||
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
|
||||
return nil, nil
|
||||
}
|
||||
return autorest.Prepare(&http.Request{},
|
||||
autorest.AsJSON(),
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(to.String(client.NextLink)))
|
||||
}
|
||||
|
||||
// SasDefinitionUpdateParameters is the SAS definition update parameters.
|
||||
type SasDefinitionUpdateParameters struct {
|
||||
Parameters *map[string]*string `json:"parameters,omitempty"`
|
||||
SasDefinitionAttributes *SasDefinitionAttributes `json:"attributes,omitempty"`
|
||||
Tags *map[string]*string `json:"tags,omitempty"`
|
||||
}
|
||||
|
||||
// SecretAttributes is the secret management attributes.
|
||||
type SecretAttributes struct {
|
||||
Enabled *bool `json:"enabled,omitempty"`
|
||||
NotBefore *date.UnixTime `json:"nbf,omitempty"`
|
||||
Expires *date.UnixTime `json:"exp,omitempty"`
|
||||
Created *date.UnixTime `json:"created,omitempty"`
|
||||
Updated *date.UnixTime `json:"updated,omitempty"`
|
||||
Enabled *bool `json:"enabled,omitempty"`
|
||||
NotBefore *date.UnixTime `json:"nbf,omitempty"`
|
||||
Expires *date.UnixTime `json:"exp,omitempty"`
|
||||
Created *date.UnixTime `json:"created,omitempty"`
|
||||
Updated *date.UnixTime `json:"updated,omitempty"`
|
||||
RecoveryLevel DeletionRecoveryLevel `json:"recoveryLevel,omitempty"`
|
||||
}
|
||||
|
||||
// SecretBundle is a secret consisting of a value, id and its attributes.
|
||||
@@ -569,6 +777,11 @@ type SecretProperties struct {
|
||||
ContentType *string `json:"contentType,omitempty"`
|
||||
}
|
||||
|
||||
// SecretRestoreParameters is the secret restore parameters.
|
||||
type SecretRestoreParameters struct {
|
||||
SecretBundleBackup *string `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// SecretSetParameters is the secret set parameters.
|
||||
type SecretSetParameters struct {
|
||||
Value *string `json:"value,omitempty"`
|
||||
@@ -584,6 +797,76 @@ type SecretUpdateParameters struct {
|
||||
Tags *map[string]*string `json:"tags,omitempty"`
|
||||
}
|
||||
|
||||
// StorageAccountAttributes is the storage account management attributes.
|
||||
type StorageAccountAttributes struct {
|
||||
Enabled *bool `json:"enabled,omitempty"`
|
||||
Created *date.UnixTime `json:"created,omitempty"`
|
||||
Updated *date.UnixTime `json:"updated,omitempty"`
|
||||
}
|
||||
|
||||
// StorageAccountCreateParameters is the storage account create parameters.
|
||||
type StorageAccountCreateParameters struct {
|
||||
ResourceID *string `json:"resourceId,omitempty"`
|
||||
ActiveKeyName *string `json:"activeKeyName,omitempty"`
|
||||
AutoRegenerateKey *bool `json:"autoRegenerateKey,omitempty"`
|
||||
RegenerationPeriod *string `json:"regenerationPeriod,omitempty"`
|
||||
StorageAccountAttributes *StorageAccountAttributes `json:"attributes,omitempty"`
|
||||
Tags *map[string]*string `json:"tags,omitempty"`
|
||||
}
|
||||
|
||||
// StorageAccountItem is the storage account item containing storage account metadata.
|
||||
type StorageAccountItem struct {
|
||||
ID *string `json:"id,omitempty"`
|
||||
ResourceID *string `json:"resourceId,omitempty"`
|
||||
Attributes *StorageAccountAttributes `json:"attributes,omitempty"`
|
||||
Tags *map[string]*string `json:"tags,omitempty"`
|
||||
}
|
||||
|
||||
// StorageAccountRegenerteKeyParameters is the storage account key regenerate parameters.
|
||||
type StorageAccountRegenerteKeyParameters struct {
|
||||
KeyName *string `json:"keyName,omitempty"`
|
||||
}
|
||||
|
||||
// StorageAccountUpdateParameters is the storage account update parameters.
|
||||
type StorageAccountUpdateParameters struct {
|
||||
ActiveKeyName *string `json:"activeKeyName,omitempty"`
|
||||
AutoRegenerateKey *bool `json:"autoRegenerateKey,omitempty"`
|
||||
RegenerationPeriod *string `json:"regenerationPeriod,omitempty"`
|
||||
StorageAccountAttributes *StorageAccountAttributes `json:"attributes,omitempty"`
|
||||
Tags *map[string]*string `json:"tags,omitempty"`
|
||||
}
|
||||
|
||||
// StorageBundle is a Storage account bundle consists of key vault storage account details plus its attributes.
|
||||
type StorageBundle struct {
|
||||
autorest.Response `json:"-"`
|
||||
ID *string `json:"id,omitempty"`
|
||||
ResourceID *string `json:"resourceId,omitempty"`
|
||||
ActiveKeyName *string `json:"activeKeyName,omitempty"`
|
||||
AutoRegenerateKey *bool `json:"autoRegenerateKey,omitempty"`
|
||||
RegenerationPeriod *string `json:"regenerationPeriod,omitempty"`
|
||||
Attributes *StorageAccountAttributes `json:"attributes,omitempty"`
|
||||
Tags *map[string]*string `json:"tags,omitempty"`
|
||||
}
|
||||
|
||||
// StorageListResult is the storage accounts list result.
|
||||
type StorageListResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
Value *[]StorageAccountItem `json:"value,omitempty"`
|
||||
NextLink *string `json:"nextLink,omitempty"`
|
||||
}
|
||||
|
||||
// StorageListResultPreparer prepares a request to retrieve the next set of results. It returns
|
||||
// nil if no more results exist.
|
||||
func (client StorageListResult) StorageListResultPreparer() (*http.Request, error) {
|
||||
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
|
||||
return nil, nil
|
||||
}
|
||||
return autorest.Prepare(&http.Request{},
|
||||
autorest.AsJSON(),
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(to.String(client.NextLink)))
|
||||
}
|
||||
|
||||
// SubjectAlternativeNames is the subject alternate names of a X509 object.
|
||||
type SubjectAlternativeNames struct {
|
||||
Emails *[]string `json:"emails,omitempty"`
|
||||
@@ -597,8 +880,7 @@ type Trigger struct {
|
||||
DaysBeforeExpiry *int32 `json:"days_before_expiry,omitempty"`
|
||||
}
|
||||
|
||||
// X509CertificateProperties is properties of the X509 component of a
|
||||
// certificate.
|
||||
// X509CertificateProperties is properties of the X509 component of a certificate.
|
||||
type X509CertificateProperties struct {
|
||||
Subject *string `json:"subject,omitempty"`
|
||||
Ekus *[]string `json:"ekus,omitempty"`
|
||||
|
||||
+4
-5
@@ -14,16 +14,15 @@ package keyvault
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
// UserAgent returns the UserAgent string to use when sending http.Requests.
|
||||
func UserAgent() string {
|
||||
return "Azure-SDK-For-Go/v10.1.0-beta arm-keyvault/2016-10-01"
|
||||
return "Azure-SDK-For-Go/v11.0.0-beta arm-keyvault/2016-10-01"
|
||||
}
|
||||
|
||||
// Version returns the semantic version (see http://semver.org) of the client.
|
||||
func Version() string {
|
||||
return "v10.1.0-beta"
|
||||
return "v11.0.0-beta"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user