diff --git a/services/keyvault/2015-06-01/keyvault/client.go b/services/keyvault/2015-06-01/keyvault/client.go index a6b4b502d5f2..bd78288308b3 100644 --- a/services/keyvault/2015-06-01/keyvault/client.go +++ b/services/keyvault/2015-06-01/keyvault/client.go @@ -46,9 +46,8 @@ func NewWithoutDefaults() BaseClient { } // BackupKey requests that a backup of the specified key be downloaded to the client. -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// keyName - the name of the key +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net keyName is the name of the key func (client BaseClient) BackupKey(ctx context.Context, vaultBaseURL string, keyName string) (result BackupKeyResult, err error) { req, err := client.BackupKeyPreparer(ctx, vaultBaseURL, keyName) if err != nil { @@ -116,10 +115,9 @@ func (client BaseClient) BackupKeyResponder(resp *http.Response) (result BackupK // CreateCertificate creates a new certificate version. If this is the first version, the certificate resource is // created. -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// certificateName - the name of the certificate -// parameters - the parameters to create certificate. +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net certificateName is the name of the +// certificate parameters is the parameters to create certificate. func (client BaseClient) CreateCertificate(ctx context.Context, vaultBaseURL string, certificateName string, parameters CertificateCreateParameters) (result CertificateOperation, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: certificateName, @@ -201,10 +199,9 @@ func (client BaseClient) CreateCertificateResponder(resp *http.Response) (result } // CreateKey creates a new, named, key in the specified vault. -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// keyName - the name of the key -// parameters - the parameters to create key. +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net keyName is the name of the key parameters +// is the parameters to create key. func (client BaseClient) CreateKey(ctx context.Context, vaultBaseURL string, keyName string, parameters KeyCreateParameters) (result KeyBundle, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: keyName, @@ -279,11 +276,9 @@ func (client BaseClient) CreateKeyResponder(resp *http.Response) (result KeyBund } // Decrypt decrypts a single block of encrypted data -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// keyName - the name of the key -// keyVersion - the version of the key -// parameters - the parameters for key operations. +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net keyName is the name of the key keyVersion +// is the version of the key parameters is the parameters for key operations. func (client BaseClient) Decrypt(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters KeyOperationsParameters) (result KeyOperationResult, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: parameters, @@ -359,9 +354,9 @@ func (client BaseClient) DecryptResponder(resp *http.Response) (result KeyOperat } // DeleteCertificate deletes a certificate from the specified vault. -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// certificateName - the name of the certificate in the given vault +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net certificateName is the name of the +// certificate in the given vault func (client BaseClient) DeleteCertificate(ctx context.Context, vaultBaseURL string, certificateName string) (result CertificateBundle, err error) { req, err := client.DeleteCertificatePreparer(ctx, vaultBaseURL, certificateName) if err != nil { @@ -428,8 +423,8 @@ func (client BaseClient) DeleteCertificateResponder(resp *http.Response) (result } // DeleteCertificateContacts deletes the certificate contacts for the specified vault. -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net func (client BaseClient) DeleteCertificateContacts(ctx context.Context, vaultBaseURL string) (result Contacts, err error) { req, err := client.DeleteCertificateContactsPreparer(ctx, vaultBaseURL) if err != nil { @@ -492,9 +487,8 @@ func (client BaseClient) DeleteCertificateContactsResponder(resp *http.Response) } // DeleteCertificateIssuer deletes the specified certificate issuer. -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// issuerName - the name of the issuer. +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net issuerName is the name of the issuer. func (client BaseClient) DeleteCertificateIssuer(ctx context.Context, vaultBaseURL string, issuerName string) (result IssuerBundle, err error) { req, err := client.DeleteCertificateIssuerPreparer(ctx, vaultBaseURL, issuerName) if err != nil { @@ -561,9 +555,9 @@ func (client BaseClient) DeleteCertificateIssuerResponder(resp *http.Response) ( } // DeleteCertificateOperation deletes the certificate operation. -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// certificateName - the name of the certificate +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net certificateName is the name of the +// certificate func (client BaseClient) DeleteCertificateOperation(ctx context.Context, vaultBaseURL string, certificateName string) (result CertificateOperation, err error) { req, err := client.DeleteCertificateOperationPreparer(ctx, vaultBaseURL, certificateName) if err != nil { @@ -630,9 +624,8 @@ func (client BaseClient) DeleteCertificateOperationResponder(resp *http.Response } // DeleteKey deletes the specified key -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// keyName - the name of the key +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net keyName is the name of the key func (client BaseClient) DeleteKey(ctx context.Context, vaultBaseURL string, keyName string) (result KeyBundle, err error) { req, err := client.DeleteKeyPreparer(ctx, vaultBaseURL, keyName) if err != nil { @@ -699,9 +692,9 @@ func (client BaseClient) DeleteKeyResponder(resp *http.Response) (result KeyBund } // DeleteSecret deletes a secret from the specified vault. -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// secretName - the name of the secret in the given vault +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net secretName is the name of the secret in the +// given vault func (client BaseClient) DeleteSecret(ctx context.Context, vaultBaseURL string, secretName string) (result SecretBundle, err error) { req, err := client.DeleteSecretPreparer(ctx, vaultBaseURL, secretName) if err != nil { @@ -768,11 +761,9 @@ func (client BaseClient) DeleteSecretResponder(resp *http.Response) (result Secr } // Encrypt encrypts an arbitrary sequence of bytes using an encryption key that is stored in Azure Key Vault. -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// keyName - the name of the key -// keyVersion - the version of the key -// parameters - the parameters for key operations. +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net keyName is the name of the key keyVersion +// is the version of the key parameters is the parameters for key operations. func (client BaseClient) Encrypt(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters KeyOperationsParameters) (result KeyOperationResult, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: parameters, @@ -848,10 +839,9 @@ func (client BaseClient) EncryptResponder(resp *http.Response) (result KeyOperat } // GetCertificate gets a Certificate. -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// certificateName - the name of the certificate in the given vault -// certificateVersion - the version of the certificate +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net certificateName is the name of the +// certificate in the given vault certificateVersion is the version of the certificate func (client BaseClient) GetCertificate(ctx context.Context, vaultBaseURL string, certificateName string, certificateVersion string) (result CertificateBundle, err error) { req, err := client.GetCertificatePreparer(ctx, vaultBaseURL, certificateName, certificateVersion) if err != nil { @@ -919,8 +909,8 @@ func (client BaseClient) GetCertificateResponder(resp *http.Response) (result Ce } // GetCertificateContacts gets the certificate contacts for the specified vault. -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net func (client BaseClient) GetCertificateContacts(ctx context.Context, vaultBaseURL string) (result Contacts, err error) { req, err := client.GetCertificateContactsPreparer(ctx, vaultBaseURL) if err != nil { @@ -983,9 +973,8 @@ func (client BaseClient) GetCertificateContactsResponder(resp *http.Response) (r } // GetCertificateIssuer gets the specified certificate issuer. -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// issuerName - the name of the issuer. +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net issuerName is the name of the issuer. func (client BaseClient) GetCertificateIssuer(ctx context.Context, vaultBaseURL string, issuerName string) (result IssuerBundle, err error) { req, err := client.GetCertificateIssuerPreparer(ctx, vaultBaseURL, issuerName) if err != nil { @@ -1052,10 +1041,9 @@ func (client BaseClient) GetCertificateIssuerResponder(resp *http.Response) (res } // GetCertificateIssuers list certificate issuers for the specified vault. -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// maxresults - maximum number of results to return in a page. If not specified the service will return up to -// 25 results. +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net maxresults is maximum number of results to +// return in a page. If not specified the service will return up to 25 results. func (client BaseClient) GetCertificateIssuers(ctx context.Context, vaultBaseURL string, maxresults *int32) (result CertificateIssuerListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: maxresults, @@ -1158,9 +1146,9 @@ func (client BaseClient) GetCertificateIssuersComplete(ctx context.Context, vaul } // GetCertificateOperation gets the certificate operation response. -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// certificateName - the name of the certificate +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net certificateName is the name of the +// certificate func (client BaseClient) GetCertificateOperation(ctx context.Context, vaultBaseURL string, certificateName string) (result CertificateOperation, err error) { req, err := client.GetCertificateOperationPreparer(ctx, vaultBaseURL, certificateName) if err != nil { @@ -1227,9 +1215,9 @@ func (client BaseClient) GetCertificateOperationResponder(resp *http.Response) ( } // GetCertificatePolicy gets the policy for a certificate. -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// certificateName - the name of the certificate in the given vault. +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net certificateName is the name of the +// certificate in the given vault. func (client BaseClient) GetCertificatePolicy(ctx context.Context, vaultBaseURL string, certificateName string) (result CertificatePolicy, err error) { req, err := client.GetCertificatePolicyPreparer(ctx, vaultBaseURL, certificateName) if err != nil { @@ -1296,10 +1284,9 @@ func (client BaseClient) GetCertificatePolicyResponder(resp *http.Response) (res } // GetCertificates list certificates in the specified vault -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// maxresults - maximum number of results to return in a page. If not specified the service will return up to -// 25 results. +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net maxresults is maximum number of results to +// return in a page. If not specified the service will return up to 25 results. func (client BaseClient) GetCertificates(ctx context.Context, vaultBaseURL string, maxresults *int32) (result CertificateListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: maxresults, @@ -1402,11 +1389,10 @@ func (client BaseClient) GetCertificatesComplete(ctx context.Context, vaultBaseU } // GetCertificateVersions list the versions of a certificate. -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// certificateName - the name of the certificate -// maxresults - maximum number of results to return in a page. If not specified the service will return up to -// 25 results. +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net certificateName is the name of the +// certificate maxresults is maximum number of results to return in a page. If not specified the service will +// return up to 25 results. func (client BaseClient) GetCertificateVersions(ctx context.Context, vaultBaseURL string, certificateName string, maxresults *int32) (result CertificateListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: maxresults, @@ -1513,10 +1499,9 @@ func (client BaseClient) GetCertificateVersionsComplete(ctx context.Context, vau } // GetKey retrieves the public portion of a key plus its attributes -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// keyName - the name of the key -// keyVersion - the version of the key +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net keyName is the name of the key keyVersion +// is the version of the key func (client BaseClient) GetKey(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string) (result KeyBundle, err error) { req, err := client.GetKeyPreparer(ctx, vaultBaseURL, keyName, keyVersion) if err != nil { @@ -1584,10 +1569,9 @@ func (client BaseClient) GetKeyResponder(resp *http.Response) (result KeyBundle, } // GetKeys list keys in the specified vault -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// maxresults - maximum number of results to return in a page. If not specified the service will return up to -// 25 results. +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net maxresults is maximum number of results to +// return in a page. If not specified the service will return up to 25 results. func (client BaseClient) GetKeys(ctx context.Context, vaultBaseURL string, maxresults *int32) (result KeyListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: maxresults, @@ -1690,11 +1674,9 @@ func (client BaseClient) GetKeysComplete(ctx context.Context, vaultBaseURL strin } // GetKeyVersions list the versions of the specified key -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// keyName - the name of the key -// maxresults - maximum number of results to return in a page. If not specified the service will return up to -// 25 results. +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net keyName is the name of the key maxresults +// is maximum number of results to return in a page. If not specified the service will return up to 25 results. func (client BaseClient) GetKeyVersions(ctx context.Context, vaultBaseURL string, keyName string, maxresults *int32) (result KeyListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: maxresults, @@ -1801,10 +1783,9 @@ func (client BaseClient) GetKeyVersionsComplete(ctx context.Context, vaultBaseUR } // GetSecret gets a secret. -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// secretName - the name of the secret in the given vault -// secretVersion - the version of the secret +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net secretName is the name of the secret in the +// given vault secretVersion is the version of the secret func (client BaseClient) GetSecret(ctx context.Context, vaultBaseURL string, secretName string, secretVersion string) (result SecretBundle, err error) { req, err := client.GetSecretPreparer(ctx, vaultBaseURL, secretName, secretVersion) if err != nil { @@ -1872,10 +1853,9 @@ func (client BaseClient) GetSecretResponder(resp *http.Response) (result SecretB } // GetSecrets list secrets in the specified vault -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// maxresults - maximum number of results to return in a page. If not specified the service will return up to -// 25 results. +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net maxresults is maximum number of results to +// return in a page. If not specified the service will return up to 25 results. func (client BaseClient) GetSecrets(ctx context.Context, vaultBaseURL string, maxresults *int32) (result SecretListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: maxresults, @@ -1978,11 +1958,10 @@ func (client BaseClient) GetSecretsComplete(ctx context.Context, vaultBaseURL st } // GetSecretVersions list the versions of the specified secret -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// secretName - the name of the secret in the given vault -// maxresults - maximum number of results to return in a page. If not specified the service will return up to -// 25 results. +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net secretName is the name of the secret in the +// given vault maxresults is maximum number of results to return in a page. If not specified the service will +// return up to 25 results. func (client BaseClient) GetSecretVersions(ctx context.Context, vaultBaseURL string, secretName string, maxresults *int32) (result SecretListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: maxresults, @@ -2089,10 +2068,9 @@ func (client BaseClient) GetSecretVersionsComplete(ctx context.Context, vaultBas } // ImportCertificate imports a certificate into the specified vault -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// certificateName - the name of the certificate -// parameters - the parameters to import certificate. +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net certificateName is the name of the +// certificate parameters is the parameters to import certificate. func (client BaseClient) ImportCertificate(ctx context.Context, vaultBaseURL string, certificateName string, parameters CertificateImportParameters) (result CertificateBundle, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: certificateName, @@ -2175,10 +2153,9 @@ func (client BaseClient) ImportCertificateResponder(resp *http.Response) (result } // ImportKey imports a key into the specified vault -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// keyName - the name of the key -// parameters - the parameters to import key. +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net keyName is the name of the key parameters +// is the parameters to import key. func (client BaseClient) ImportKey(ctx context.Context, vaultBaseURL string, keyName string, parameters KeyImportParameters) (result KeyBundle, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: keyName, @@ -2255,10 +2232,9 @@ func (client BaseClient) ImportKeyResponder(resp *http.Response) (result KeyBund } // MergeCertificate merges a certificate or a certificate chain with a key pair existing on the server. -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// certificateName - the name of the certificate -// parameters - the parameters to merge certificate. +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net certificateName is the name of the +// certificate parameters is the parameters to merge certificate. func (client BaseClient) MergeCertificate(ctx context.Context, vaultBaseURL string, certificateName string, parameters CertificateMergeParameters) (result CertificateBundle, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: parameters, @@ -2333,9 +2309,8 @@ func (client BaseClient) MergeCertificateResponder(resp *http.Response) (result } // RestoreKey restores the backup key in to a vault -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// parameters - the parameters to restore key +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net parameters is the parameters to restore key func (client BaseClient) RestoreKey(ctx context.Context, vaultBaseURL string, parameters KeyRestoreParameters) (result KeyBundle, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: parameters, @@ -2406,9 +2381,9 @@ func (client BaseClient) RestoreKeyResponder(resp *http.Response) (result KeyBun } // SetCertificateContacts sets the certificate contacts for the specified vault. -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// contacts - the contacts for the vault certificates. +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net contacts is the contacts for the vault +// certificates. func (client BaseClient) SetCertificateContacts(ctx context.Context, vaultBaseURL string, contacts Contacts) (result Contacts, err error) { req, err := client.SetCertificateContactsPreparer(ctx, vaultBaseURL, contacts) if err != nil { @@ -2473,10 +2448,9 @@ func (client BaseClient) SetCertificateContactsResponder(resp *http.Response) (r } // SetCertificateIssuer sets the specified certificate issuer. -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// issuerName - the name of the issuer. -// parameter - certificate issuer set parameter. +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net issuerName is the name of the issuer. +// parameter is certificate issuer set parameter. func (client BaseClient) SetCertificateIssuer(ctx context.Context, vaultBaseURL string, issuerName string, parameter CertificateIssuerSetParameters) (result IssuerBundle, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: parameter, @@ -2551,10 +2525,9 @@ func (client BaseClient) SetCertificateIssuerResponder(resp *http.Response) (res } // SetSecret sets a secret in the specified vault. -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// secretName - the name of the secret in the given vault -// parameters - the parameters for secret set +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net secretName is the name of the secret in the +// given vault parameters is the parameters for secret set func (client BaseClient) SetSecret(ctx context.Context, vaultBaseURL string, secretName string, parameters SecretSetParameters) (result SecretBundle, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: secretName, @@ -2631,11 +2604,9 @@ func (client BaseClient) SetSecretResponder(resp *http.Response) (result SecretB } // Sign creates a signature from a digest using the specified key in the vault -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// keyName - the name of the key -// keyVersion - the version of the key -// parameters - the parameters for key operations. +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net keyName is the name of the key keyVersion +// is the version of the key parameters is the parameters for key operations. func (client BaseClient) Sign(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters KeySignParameters) (result KeyOperationResult, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: parameters, @@ -2712,11 +2683,9 @@ func (client BaseClient) SignResponder(resp *http.Response) (result KeyOperation // UnwrapKey unwraps a symmetric key using the specified key in the vault that has initially been used for wrapping the // key. -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// keyName - the name of the key -// keyVersion - the version of the key -// parameters - the parameters for key operations. +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net keyName is the name of the key keyVersion +// is the version of the key parameters is the parameters for key operations. func (client BaseClient) UnwrapKey(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters KeyOperationsParameters) (result KeyOperationResult, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: parameters, @@ -2792,10 +2761,9 @@ func (client BaseClient) UnwrapKeyResponder(resp *http.Response) (result KeyOper } // UpdateCertificate updates the attributes associated with the specified certificate -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// certificateName - the name of the certificate in the given vault -// certificateVersion - the version of the certificate +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net certificateName is the name of the +// certificate in the given vault certificateVersion is the version of the certificate func (client BaseClient) UpdateCertificate(ctx context.Context, vaultBaseURL string, certificateName string, certificateVersion string, parameters CertificateUpdateParameters) (result CertificateBundle, err error) { req, err := client.UpdateCertificatePreparer(ctx, vaultBaseURL, certificateName, certificateVersion, parameters) if err != nil { @@ -2865,10 +2833,9 @@ func (client BaseClient) UpdateCertificateResponder(resp *http.Response) (result } // UpdateCertificateIssuer updates the specified certificate issuer. -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// issuerName - the name of the issuer. -// parameter - certificate issuer update parameter. +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net issuerName is the name of the issuer. +// parameter is certificate issuer update parameter. func (client BaseClient) UpdateCertificateIssuer(ctx context.Context, vaultBaseURL string, issuerName string, parameter CertificateIssuerUpdateParameters) (result IssuerBundle, err error) { req, err := client.UpdateCertificateIssuerPreparer(ctx, vaultBaseURL, issuerName, parameter) if err != nil { @@ -2937,10 +2904,9 @@ func (client BaseClient) UpdateCertificateIssuerResponder(resp *http.Response) ( } // UpdateCertificateOperation updates a certificate operation. -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// certificateName - the name of the certificate -// certificateOperation - the certificate operation response. +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net certificateName is the name of the +// certificate certificateOperation is the certificate operation response. func (client BaseClient) UpdateCertificateOperation(ctx context.Context, vaultBaseURL string, certificateName string, certificateOperation CertificateOperationUpdateParameter) (result CertificateOperation, err error) { req, err := client.UpdateCertificateOperationPreparer(ctx, vaultBaseURL, certificateName, certificateOperation) if err != nil { @@ -3010,10 +2976,9 @@ func (client BaseClient) UpdateCertificateOperationResponder(resp *http.Response // UpdateCertificatePolicy updates the policy for a certificate. Set appropriate members in the certificatePolicy that // must be updated. Leave others as null. -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// certificateName - the name of the certificate in the given vault. -// certificatePolicy - the policy for the certificate. +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net certificateName is the name of the +// certificate in the given vault. certificatePolicy is the policy for the certificate. func (client BaseClient) UpdateCertificatePolicy(ctx context.Context, vaultBaseURL string, certificateName string, certificatePolicy CertificatePolicy) (result CertificatePolicy, err error) { req, err := client.UpdateCertificatePolicyPreparer(ctx, vaultBaseURL, certificateName, certificatePolicy) if err != nil { @@ -3082,11 +3047,9 @@ func (client BaseClient) UpdateCertificatePolicyResponder(resp *http.Response) ( } // UpdateKey updates the Key Attributes associated with the specified key -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// keyName - the name of the key -// keyVersion - the version of the key -// parameters - the parameters to update key. +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net keyName is the name of the key keyVersion +// is the version of the key parameters is the parameters to update key. func (client BaseClient) UpdateKey(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters KeyUpdateParameters) (result KeyBundle, err error) { req, err := client.UpdateKeyPreparer(ctx, vaultBaseURL, keyName, keyVersion, parameters) if err != nil { @@ -3156,10 +3119,9 @@ func (client BaseClient) UpdateKeyResponder(resp *http.Response) (result KeyBund } // UpdateSecret updates the attributes associated with the specified secret -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// secretName - the name of the secret in the given vault -// secretVersion - the version of the secret +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net secretName is the name of the secret in the +// given vault secretVersion is the version of the secret func (client BaseClient) UpdateSecret(ctx context.Context, vaultBaseURL string, secretName string, secretVersion string, parameters SecretUpdateParameters) (result SecretBundle, err error) { req, err := client.UpdateSecretPreparer(ctx, vaultBaseURL, secretName, secretVersion, parameters) if err != nil { @@ -3229,11 +3191,9 @@ func (client BaseClient) UpdateSecretResponder(resp *http.Response) (result Secr } // Verify verifies a signature using the specified key -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// keyName - the name of the key -// keyVersion - the version of the key -// parameters - the parameters for key operations. +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net keyName is the name of the key keyVersion +// is the version of the key parameters is the parameters for key operations. func (client BaseClient) Verify(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters KeyVerifyParameters) (result KeyVerifyResult, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: parameters, @@ -3310,11 +3270,9 @@ func (client BaseClient) VerifyResponder(resp *http.Response) (result KeyVerifyR } // WrapKey wraps a symmetric key using the specified key -// Parameters: -// vaultBaseURL - the vault name, e.g. https://myvault.vault.azure.net -// keyName - the name of the key -// keyVersion - the version of the key -// parameters - the parameters for key operations. +// +// vaultBaseURL is the vault name, e.g. https://myvault.vault.azure.net keyName is the name of the key keyVersion +// is the version of the key parameters is the parameters for key operations. func (client BaseClient) WrapKey(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters KeyOperationsParameters) (result KeyOperationResult, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: parameters, diff --git a/services/keyvault/2016-10-01/keyvault/client.go b/services/keyvault/2016-10-01/keyvault/client.go index 73558939d68f..26df00d4b964 100644 --- a/services/keyvault/2016-10-01/keyvault/client.go +++ b/services/keyvault/2016-10-01/keyvault/client.go @@ -54,9 +54,8 @@ func NewWithoutDefaults() BaseClient { // geographical boundaries only; meaning that a BACKUP from one geographical area cannot be restored to another // geographical area. For example, a backup from the US geographical area cannot be restored in an EU geographical // area. This operation requires the key/backup permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// keyName - the name of the key. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. keyName is the name of the key. func (client BaseClient) BackupKey(ctx context.Context, vaultBaseURL string, keyName string) (result BackupKeyResult, err error) { req, err := client.BackupKeyPreparer(ctx, vaultBaseURL, keyName) if err != nil { @@ -124,9 +123,9 @@ func (client BaseClient) BackupKeyResponder(resp *http.Response) (result BackupK // BackupSecret requests that a backup of the specified secret be downloaded to the client. All versions of the secret // will be downloaded. This operation requires the secrets/backup permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// secretName - the name of the secret. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. secretName is the name of the +// secret. func (client BaseClient) BackupSecret(ctx context.Context, vaultBaseURL string, secretName string) (result BackupSecretResult, err error) { req, err := client.BackupSecretPreparer(ctx, vaultBaseURL, secretName) if err != nil { @@ -194,10 +193,9 @@ func (client BaseClient) BackupSecretResponder(resp *http.Response) (result Back // CreateCertificate if this is the first version, the certificate resource is created. This operation requires the // certificates/create permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// certificateName - the name of the certificate. -// parameters - the parameters to create a certificate. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. certificateName is the name of the +// certificate. parameters is the parameters to create a certificate. func (client BaseClient) CreateCertificate(ctx context.Context, vaultBaseURL string, certificateName string, parameters CertificateCreateParameters) (result CertificateOperation, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: certificateName, @@ -280,10 +278,9 @@ func (client BaseClient) CreateCertificateResponder(resp *http.Response) (result // CreateKey the create key operation can be used to create any key type in Azure Key Vault. If the named key already // exists, Azure Key Vault creates a new version of the key. It requires the keys/create permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// keyName - the name for the new key. The system will generate the version name for the new key. -// parameters - the parameters to create a key. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. keyName is the name for the new +// key. The system will generate the version name for the new key. parameters is the parameters to create a key. func (client BaseClient) CreateKey(ctx context.Context, vaultBaseURL string, keyName string, parameters KeyCreateParameters) (result KeyBundle, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: keyName, @@ -362,11 +359,9 @@ func (client BaseClient) CreateKeyResponder(resp *http.Response) (result KeyBund // decrypted, the size of this block is dependent on the target key and the algorithm to be used. The DECRYPT operation // applies to asymmetric and symmetric keys stored in Azure Key Vault since it uses the private portion of the key. // This operation requires the keys/decrypt permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// keyName - the name of the key. -// keyVersion - the version of the key. -// parameters - the parameters for the decryption operation. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. keyName is the name of the key. +// keyVersion is the version of the key. parameters is the parameters for the decryption operation. func (client BaseClient) Decrypt(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters KeyOperationsParameters) (result KeyOperationResult, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: parameters, @@ -444,9 +439,9 @@ func (client BaseClient) DecryptResponder(resp *http.Response) (result KeyOperat // DeleteCertificate deletes all versions of a certificate object along with its associated policy. Delete certificate // cannot be used to remove individual versions of a certificate object. This operation requires the // certificates/delete permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// certificateName - the name of the certificate. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. certificateName is the name of the +// certificate. func (client BaseClient) DeleteCertificate(ctx context.Context, vaultBaseURL string, certificateName string) (result DeletedCertificateBundle, err error) { req, err := client.DeleteCertificatePreparer(ctx, vaultBaseURL, certificateName) if err != nil { @@ -514,8 +509,8 @@ func (client BaseClient) DeleteCertificateResponder(resp *http.Response) (result // DeleteCertificateContacts deletes the certificate contacts for a specified key vault certificate. This operation // requires the certificates/managecontacts permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. func (client BaseClient) DeleteCertificateContacts(ctx context.Context, vaultBaseURL string) (result Contacts, err error) { req, err := client.DeleteCertificateContactsPreparer(ctx, vaultBaseURL) if err != nil { @@ -579,9 +574,9 @@ func (client BaseClient) DeleteCertificateContactsResponder(resp *http.Response) // DeleteCertificateIssuer the DeleteCertificateIssuer operation permanently removes the specified certificate issuer // from the vault. This operation requires the certificates/manageissuers/deleteissuers permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// issuerName - the name of the issuer. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. issuerName is the name of the +// issuer. func (client BaseClient) DeleteCertificateIssuer(ctx context.Context, vaultBaseURL string, issuerName string) (result IssuerBundle, err error) { req, err := client.DeleteCertificateIssuerPreparer(ctx, vaultBaseURL, issuerName) if err != nil { @@ -649,9 +644,9 @@ func (client BaseClient) DeleteCertificateIssuerResponder(resp *http.Response) ( // DeleteCertificateOperation deletes the creation operation for a specified certificate that is in the process of // being created. The certificate is no longer created. This operation requires the certificates/update permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// certificateName - the name of the certificate. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. certificateName is the name of the +// certificate. func (client BaseClient) DeleteCertificateOperation(ctx context.Context, vaultBaseURL string, certificateName string) (result CertificateOperation, err error) { req, err := client.DeleteCertificateOperationPreparer(ctx, vaultBaseURL, certificateName) if err != nil { @@ -720,9 +715,9 @@ func (client BaseClient) DeleteCertificateOperationResponder(resp *http.Response // DeleteKey the delete key operation cannot be used to remove individual versions of a key. This operation removes the // cryptographic material associated with the key, which means the key is not usable for Sign/Verify, Wrap/Unwrap or // Encrypt/Decrypt operations. This operation requires the keys/delete permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// keyName - the name of the key to delete. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. keyName is the name of the key to +// delete. func (client BaseClient) DeleteKey(ctx context.Context, vaultBaseURL string, keyName string) (result DeletedKeyBundle, err error) { req, err := client.DeleteKeyPreparer(ctx, vaultBaseURL, keyName) if err != nil { @@ -790,10 +785,9 @@ func (client BaseClient) DeleteKeyResponder(resp *http.Response) (result Deleted // DeleteSasDefinition deletes a SAS definition from a specified storage account. This operation requires the // storage/deletesas permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// storageAccountName - the name of the storage account. -// sasDefinitionName - the name of the SAS definition. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. storageAccountName is the name of +// the storage account. sasDefinitionName is the name of the SAS definition. func (client BaseClient) DeleteSasDefinition(ctx context.Context, vaultBaseURL string, storageAccountName string, sasDefinitionName string) (result SasDefinitionBundle, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: storageAccountName, @@ -870,9 +864,9 @@ func (client BaseClient) DeleteSasDefinitionResponder(resp *http.Response) (resu // DeleteSecret the DELETE operation applies to any secret stored in Azure Key Vault. DELETE cannot be applied to an // individual version of a secret. This operation requires the secrets/delete permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// secretName - the name of the secret. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. secretName is the name of the +// secret. func (client BaseClient) DeleteSecret(ctx context.Context, vaultBaseURL string, secretName string) (result DeletedSecretBundle, err error) { req, err := client.DeleteSecretPreparer(ctx, vaultBaseURL, secretName) if err != nil { @@ -939,9 +933,9 @@ func (client BaseClient) DeleteSecretResponder(resp *http.Response) (result Dele } // DeleteStorageAccount deletes a storage account. This operation requires the storage/delete permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// storageAccountName - the name of the storage account. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. storageAccountName is the name of +// the storage account. func (client BaseClient) DeleteStorageAccount(ctx context.Context, vaultBaseURL string, storageAccountName string) (result StorageBundle, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: storageAccountName, @@ -1020,11 +1014,9 @@ func (client BaseClient) DeleteStorageAccountResponder(resp *http.Response) (res // using public portion of the key. This operation is supported for asymmetric keys as a convenience for callers that // have a key-reference but do not have access to the public key material. This operation requires the keys/encypt // permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// keyName - the name of the key. -// keyVersion - the version of the key. -// parameters - the parameters for the encryption operation. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. keyName is the name of the key. +// keyVersion is the version of the key. parameters is the parameters for the encryption operation. func (client BaseClient) Encrypt(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters KeyOperationsParameters) (result KeyOperationResult, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: parameters, @@ -1101,10 +1093,9 @@ func (client BaseClient) EncryptResponder(resp *http.Response) (result KeyOperat // GetCertificate gets information about a specific certificate. This operation requires the certificates/get // permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// certificateName - the name of the certificate in the given vault. -// certificateVersion - the version of the certificate. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. certificateName is the name of the +// certificate in the given vault. certificateVersion is the version of the certificate. func (client BaseClient) GetCertificate(ctx context.Context, vaultBaseURL string, certificateName string, certificateVersion string) (result CertificateBundle, err error) { req, err := client.GetCertificatePreparer(ctx, vaultBaseURL, certificateName, certificateVersion) if err != nil { @@ -1173,8 +1164,8 @@ func (client BaseClient) GetCertificateResponder(resp *http.Response) (result Ce // GetCertificateContacts the GetCertificateContacts operation returns the set of certificate contact resources in the // specified key vault. This operation requires the certificates/managecontacts permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. func (client BaseClient) GetCertificateContacts(ctx context.Context, vaultBaseURL string) (result Contacts, err error) { req, err := client.GetCertificateContactsPreparer(ctx, vaultBaseURL) if err != nil { @@ -1238,9 +1229,9 @@ func (client BaseClient) GetCertificateContactsResponder(resp *http.Response) (r // GetCertificateIssuer the GetCertificateIssuer operation returns the specified certificate issuer resources in the // specified key vault. This operation requires the certificates/manageissuers/getissuers permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// issuerName - the name of the issuer. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. issuerName is the name of the +// issuer. func (client BaseClient) GetCertificateIssuer(ctx context.Context, vaultBaseURL string, issuerName string) (result IssuerBundle, err error) { req, err := client.GetCertificateIssuerPreparer(ctx, vaultBaseURL, issuerName) if err != nil { @@ -1308,10 +1299,9 @@ func (client BaseClient) GetCertificateIssuerResponder(resp *http.Response) (res // GetCertificateIssuers the GetCertificateIssuers operation returns the set of certificate issuer resources in the // specified key vault. This operation requires the certificates/manageissuers/getissuers permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// maxresults - maximum number of results to return in a page. If not specified the service will return up to -// 25 results. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. maxresults is maximum number of +// results to return in a page. If not specified the service will return up to 25 results. func (client BaseClient) GetCertificateIssuers(ctx context.Context, vaultBaseURL string, maxresults *int32) (result CertificateIssuerListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: maxresults, @@ -1415,9 +1405,9 @@ func (client BaseClient) GetCertificateIssuersComplete(ctx context.Context, vaul // GetCertificateOperation gets the creation operation associated with a specified certificate. This operation requires // the certificates/get permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// certificateName - the name of the certificate. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. certificateName is the name of the +// certificate. func (client BaseClient) GetCertificateOperation(ctx context.Context, vaultBaseURL string, certificateName string) (result CertificateOperation, err error) { req, err := client.GetCertificateOperationPreparer(ctx, vaultBaseURL, certificateName) if err != nil { @@ -1485,9 +1475,9 @@ func (client BaseClient) GetCertificateOperationResponder(resp *http.Response) ( // GetCertificatePolicy the GetCertificatePolicy operation returns the specified certificate policy resources in the // specified key vault. This operation requires the certificates/get permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// certificateName - the name of the certificate in a given key vault. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. certificateName is the name of the +// certificate in a given key vault. func (client BaseClient) GetCertificatePolicy(ctx context.Context, vaultBaseURL string, certificateName string) (result CertificatePolicy, err error) { req, err := client.GetCertificatePolicyPreparer(ctx, vaultBaseURL, certificateName) if err != nil { @@ -1555,10 +1545,9 @@ func (client BaseClient) GetCertificatePolicyResponder(resp *http.Response) (res // GetCertificates the GetCertificates operation returns the set of certificates resources in the specified key vault. // This operation requires the certificates/list permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// maxresults - maximum number of results to return in a page. If not specified the service will return up to -// 25 results. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. maxresults is maximum number of +// results to return in a page. If not specified the service will return up to 25 results. func (client BaseClient) GetCertificates(ctx context.Context, vaultBaseURL string, maxresults *int32) (result CertificateListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: maxresults, @@ -1662,11 +1651,10 @@ func (client BaseClient) GetCertificatesComplete(ctx context.Context, vaultBaseU // GetCertificateVersions the GetCertificateVersions operation returns the versions of a certificate in the specified // key vault. This operation requires the certificates/list permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// certificateName - the name of the certificate. -// maxresults - maximum number of results to return in a page. If not specified the service will return up to -// 25 results. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. certificateName is the name of the +// certificate. maxresults is maximum number of results to return in a page. If not specified the service will +// return up to 25 results. func (client BaseClient) GetCertificateVersions(ctx context.Context, vaultBaseURL string, certificateName string, maxresults *int32) (result CertificateListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: maxresults, @@ -1775,9 +1763,9 @@ func (client BaseClient) GetCertificateVersionsComplete(ctx context.Context, vau // GetDeletedCertificate the GetDeletedCertificate operation retrieves the deleted certificate information plus its // attributes, such as retention interval, scheduled permanent deletion and the current deletion recovery level. This // operation requires the certificates/get permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// certificateName - the name of the certificate +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. certificateName is the name of the +// certificate func (client BaseClient) GetDeletedCertificate(ctx context.Context, vaultBaseURL string, certificateName string) (result DeletedCertificateBundle, err error) { req, err := client.GetDeletedCertificatePreparer(ctx, vaultBaseURL, certificateName) if err != nil { @@ -1847,10 +1835,9 @@ func (client BaseClient) GetDeletedCertificateResponder(resp *http.Response) (re // are in a deleted state and ready for recovery or purging. This operation includes deletion-specific information. // This operation requires the certificates/get/list permission. This operation can only be enabled on soft-delete // enabled vaults. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// maxresults - maximum number of results to return in a page. If not specified the service will return up to -// 25 results. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. maxresults is maximum number of +// results to return in a page. If not specified the service will return up to 25 results. func (client BaseClient) GetDeletedCertificates(ctx context.Context, vaultBaseURL string, maxresults *int32) (result DeletedCertificateListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: maxresults, @@ -1955,9 +1942,8 @@ func (client BaseClient) GetDeletedCertificatesComplete(ctx context.Context, vau // GetDeletedKey the Get Deleted Key operation is applicable for soft-delete enabled vaults. While the operation can be // invoked on any vault, it will return an error if invoked on a non soft-delete enabled vault. This operation requires // the keys/get permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// keyName - the name of the key. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. keyName is the name of the key. func (client BaseClient) GetDeletedKey(ctx context.Context, vaultBaseURL string, keyName string) (result DeletedKeyBundle, err error) { req, err := client.GetDeletedKeyPreparer(ctx, vaultBaseURL, keyName) if err != nil { @@ -2027,10 +2013,9 @@ func (client BaseClient) GetDeletedKeyResponder(resp *http.Response) (result Del // of a deleted key. This operation includes deletion-specific information. The Get Deleted Keys operation is // applicable for vaults enabled for soft-delete. While the operation can be invoked on any vault, it will return an // error if invoked on a non soft-delete enabled vault. This operation requires the keys/list permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// maxresults - maximum number of results to return in a page. If not specified the service will return up to -// 25 results. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. maxresults is maximum number of +// results to return in a page. If not specified the service will return up to 25 results. func (client BaseClient) GetDeletedKeys(ctx context.Context, vaultBaseURL string, maxresults *int32) (result DeletedKeyListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: maxresults, @@ -2134,9 +2119,9 @@ func (client BaseClient) GetDeletedKeysComplete(ctx context.Context, vaultBaseUR // GetDeletedSecret the Get Deleted Secret operation returns the specified deleted secret along with its attributes. // This operation requires the secrets/get permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// secretName - the name of the secret. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. secretName is the name of the +// secret. func (client BaseClient) GetDeletedSecret(ctx context.Context, vaultBaseURL string, secretName string) (result DeletedSecretBundle, err error) { req, err := client.GetDeletedSecretPreparer(ctx, vaultBaseURL, secretName) if err != nil { @@ -2204,10 +2189,9 @@ func (client BaseClient) GetDeletedSecretResponder(resp *http.Response) (result // GetDeletedSecrets the Get Deleted Secrets operation returns the secrets that have been deleted for a vault enabled // for soft-delete. This operation requires the secrets/list permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// maxresults - maximum number of results to return in a page. If not specified the service will return up to -// 25 results. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. maxresults is maximum number of +// results to return in a page. If not specified the service will return up to 25 results. func (client BaseClient) GetDeletedSecrets(ctx context.Context, vaultBaseURL string, maxresults *int32) (result DeletedSecretListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: maxresults, @@ -2311,10 +2295,9 @@ func (client BaseClient) GetDeletedSecretsComplete(ctx context.Context, vaultBas // GetKey the get key operation is applicable to all key types. If the requested key is symmetric, then no key material // is released in the response. This operation requires the keys/get permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// keyName - the name of the key to get. -// keyVersion - adding the version parameter retrieves a specific version of a key. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. keyName is the name of the key to +// get. keyVersion is adding the version parameter retrieves a specific version of a key. func (client BaseClient) GetKey(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string) (result KeyBundle, err error) { req, err := client.GetKeyPreparer(ctx, vaultBaseURL, keyName, keyVersion) if err != nil { @@ -2385,10 +2368,9 @@ func (client BaseClient) GetKeyResponder(resp *http.Response) (result KeyBundle, // stored key. The LIST operation is applicable to all key types, however only the base key identifier, attributes, and // tags are provided in the response. Individual versions of a key are not listed in the response. This operation // requires the keys/list permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// maxresults - maximum number of results to return in a page. If not specified the service will return up to -// 25 results. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. maxresults is maximum number of +// results to return in a page. If not specified the service will return up to 25 results. func (client BaseClient) GetKeys(ctx context.Context, vaultBaseURL string, maxresults *int32) (result KeyListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: maxresults, @@ -2492,11 +2474,10 @@ func (client BaseClient) GetKeysComplete(ctx context.Context, vaultBaseURL strin // GetKeyVersions the full key identifier, attributes, and tags are provided in the response. This operation requires // the keys/list permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// keyName - the name of the key. -// maxresults - maximum number of results to return in a page. If not specified the service will return up to -// 25 results. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. keyName is the name of the key. +// maxresults is maximum number of results to return in a page. If not specified the service will return up to 25 +// results. func (client BaseClient) GetKeyVersions(ctx context.Context, vaultBaseURL string, keyName string, maxresults *int32) (result KeyListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: maxresults, @@ -2604,10 +2585,9 @@ func (client BaseClient) GetKeyVersionsComplete(ctx context.Context, vaultBaseUR // GetSasDefinition gets information about a SAS definition for the specified storage account. This operation requires // the storage/getsas permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// storageAccountName - the name of the storage account. -// sasDefinitionName - the name of the SAS definition. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. storageAccountName is the name of +// the storage account. sasDefinitionName is the name of the SAS definition. func (client BaseClient) GetSasDefinition(ctx context.Context, vaultBaseURL string, storageAccountName string, sasDefinitionName string) (result SasDefinitionBundle, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: storageAccountName, @@ -2684,11 +2664,10 @@ func (client BaseClient) GetSasDefinitionResponder(resp *http.Response) (result // GetSasDefinitions list storage SAS definitions for the given storage account. This operation requires the // storage/listsas permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// storageAccountName - the name of the storage account. -// maxresults - maximum number of results to return in a page. If not specified the service will return up to -// 25 results. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. storageAccountName is the name of +// the storage account. maxresults is maximum number of results to return in a page. If not specified the service +// will return up to 25 results. func (client BaseClient) GetSasDefinitions(ctx context.Context, vaultBaseURL string, storageAccountName string, maxresults *int32) (result SasDefinitionListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: storageAccountName, @@ -2798,10 +2777,9 @@ func (client BaseClient) GetSasDefinitionsComplete(ctx context.Context, vaultBas // GetSecret the GET operation is applicable to any secret stored in Azure Key Vault. This operation requires the // secrets/get permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// secretName - the name of the secret. -// secretVersion - the version of the secret. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. secretName is the name of the +// secret. secretVersion is the version of the secret. func (client BaseClient) GetSecret(ctx context.Context, vaultBaseURL string, secretName string, secretVersion string) (result SecretBundle, err error) { req, err := client.GetSecretPreparer(ctx, vaultBaseURL, secretName, secretVersion) if err != nil { @@ -2871,10 +2849,9 @@ func (client BaseClient) GetSecretResponder(resp *http.Response) (result SecretB // GetSecrets the Get Secrets operation is applicable to the entire vault. However, only the base secret identifier and // its attributes are provided in the response. Individual secret versions are not listed in the response. This // operation requires the secrets/list permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// maxresults - maximum number of results to return in a page. If not specified, the service will return up to -// 25 results. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. maxresults is maximum number of +// results to return in a page. If not specified, the service will return up to 25 results. func (client BaseClient) GetSecrets(ctx context.Context, vaultBaseURL string, maxresults *int32) (result SecretListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: maxresults, @@ -2978,11 +2955,10 @@ func (client BaseClient) GetSecretsComplete(ctx context.Context, vaultBaseURL st // GetSecretVersions the full secret identifier and attributes are provided in the response. No values are returned for // the secrets. This operations requires the secrets/list permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// secretName - the name of the secret. -// maxresults - maximum number of results to return in a page. If not specified, the service will return up to -// 25 results. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. secretName is the name of the +// secret. maxresults is maximum number of results to return in a page. If not specified, the service will return +// up to 25 results. func (client BaseClient) GetSecretVersions(ctx context.Context, vaultBaseURL string, secretName string, maxresults *int32) (result SecretListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: maxresults, @@ -3090,9 +3066,9 @@ func (client BaseClient) GetSecretVersionsComplete(ctx context.Context, vaultBas // GetStorageAccount gets information about a specified storage account. This operation requires the storage/get // permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// storageAccountName - the name of the storage account. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. storageAccountName is the name of +// the storage account. func (client BaseClient) GetStorageAccount(ctx context.Context, vaultBaseURL string, storageAccountName string) (result StorageBundle, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: storageAccountName, @@ -3166,10 +3142,9 @@ func (client BaseClient) GetStorageAccountResponder(resp *http.Response) (result // GetStorageAccounts list storage accounts managed by the specified key vault. This operation requires the // storage/list permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// maxresults - maximum number of results to return in a page. If not specified the service will return up to -// 25 results. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. maxresults is maximum number of +// results to return in a page. If not specified the service will return up to 25 results. func (client BaseClient) GetStorageAccounts(ctx context.Context, vaultBaseURL string, maxresults *int32) (result StorageListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: maxresults, @@ -3274,10 +3249,9 @@ func (client BaseClient) GetStorageAccountsComplete(ctx context.Context, vaultBa // ImportCertificate imports an existing valid certificate, containing a private key, into Azure Key Vault. The // certificate to be imported can be in either PFX or PEM format. If the certificate is in PEM format the PEM file must // contain the key as well as x509 certificates. This operation requires the certificates/import permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// certificateName - the name of the certificate. -// parameters - the parameters to import the certificate. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. certificateName is the name of the +// certificate. parameters is the parameters to import the certificate. func (client BaseClient) ImportCertificate(ctx context.Context, vaultBaseURL string, certificateName string, parameters CertificateImportParameters) (result CertificateBundle, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: certificateName, @@ -3362,10 +3336,9 @@ func (client BaseClient) ImportCertificateResponder(resp *http.Response) (result // ImportKey the import key operation may be used to import any key type into an Azure Key Vault. If the named key // already exists, Azure Key Vault creates a new version of the key. This operation requires the keys/import // permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// keyName - name for the imported key. -// parameters - the parameters to import a key. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. keyName is name for the imported +// key. parameters is the parameters to import a key. func (client BaseClient) ImportKey(ctx context.Context, vaultBaseURL string, keyName string, parameters KeyImportParameters) (result KeyBundle, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: keyName, @@ -3443,10 +3416,9 @@ func (client BaseClient) ImportKeyResponder(resp *http.Response) (result KeyBund // MergeCertificate the MergeCertificate operation performs the merging of a certificate or certificate chain with a // key pair currently available in the service. This operation requires the certificates/create permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// certificateName - the name of the certificate. -// parameters - the parameters to merge certificate. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. certificateName is the name of the +// certificate. parameters is the parameters to merge certificate. func (client BaseClient) MergeCertificate(ctx context.Context, vaultBaseURL string, certificateName string, parameters CertificateMergeParameters) (result CertificateBundle, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: parameters, @@ -3523,9 +3495,9 @@ func (client BaseClient) MergeCertificateResponder(resp *http.Response) (result // PurgeDeletedCertificate the PurgeDeletedCertificate operation performs an irreversible deletion of the specified // certificate, without possibility for recovery. The operation is not available if the recovery level does not specify // 'Purgeable'. This operation requires the certificate/purge permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// certificateName - the name of the certificate +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. certificateName is the name of the +// certificate func (client BaseClient) PurgeDeletedCertificate(ctx context.Context, vaultBaseURL string, certificateName string) (result autorest.Response, err error) { req, err := client.PurgeDeletedCertificatePreparer(ctx, vaultBaseURL, certificateName) if err != nil { @@ -3593,9 +3565,8 @@ func (client BaseClient) PurgeDeletedCertificateResponder(resp *http.Response) ( // PurgeDeletedKey the Purge Deleted Key operation is applicable for soft-delete enabled vaults. While the operation // can be invoked on any vault, it will return an error if invoked on a non soft-delete enabled vault. This operation // requires the keys/purge permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// keyName - the name of the key +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. keyName is the name of the key func (client BaseClient) PurgeDeletedKey(ctx context.Context, vaultBaseURL string, keyName string) (result autorest.Response, err error) { req, err := client.PurgeDeletedKeyPreparer(ctx, vaultBaseURL, keyName) if err != nil { @@ -3663,9 +3634,9 @@ func (client BaseClient) PurgeDeletedKeyResponder(resp *http.Response) (result a // PurgeDeletedSecret the purge deleted secret operation removes the secret permanently, without the possibility of // recovery. This operation can only be enabled on a soft-delete enabled vault. This operation requires the // secrets/purge permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// secretName - the name of the secret. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. secretName is the name of the +// secret. func (client BaseClient) PurgeDeletedSecret(ctx context.Context, vaultBaseURL string, secretName string) (result autorest.Response, err error) { req, err := client.PurgeDeletedSecretPreparer(ctx, vaultBaseURL, secretName) if err != nil { @@ -3733,9 +3704,9 @@ func (client BaseClient) PurgeDeletedSecretResponder(resp *http.Response) (resul // RecoverDeletedCertificate the RecoverDeletedCertificate operation performs the reversal of the Delete operation. The // operation is applicable in vaults enabled for soft-delete, and must be issued during the retention interval // (available in the deleted certificate's attributes). This operation requires the certificates/recover permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// certificateName - the name of the deleted certificate +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. certificateName is the name of the +// deleted certificate func (client BaseClient) RecoverDeletedCertificate(ctx context.Context, vaultBaseURL string, certificateName string) (result CertificateBundle, err error) { req, err := client.RecoverDeletedCertificatePreparer(ctx, vaultBaseURL, certificateName) if err != nil { @@ -3805,9 +3776,9 @@ func (client BaseClient) RecoverDeletedCertificateResponder(resp *http.Response) // recovers the deleted key back to its latest version under /keys. An attempt to recover an non-deleted key will // return an error. Consider this the inverse of the delete operation on soft-delete enabled vaults. This operation // requires the keys/recover permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// keyName - the name of the deleted key. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. keyName is the name of the deleted +// key. func (client BaseClient) RecoverDeletedKey(ctx context.Context, vaultBaseURL string, keyName string) (result KeyBundle, err error) { req, err := client.RecoverDeletedKeyPreparer(ctx, vaultBaseURL, keyName) if err != nil { @@ -3875,9 +3846,9 @@ func (client BaseClient) RecoverDeletedKeyResponder(resp *http.Response) (result // RecoverDeletedSecret recovers the deleted secret in the specified vault. This operation can only be performed on a // soft-delete enabled vault. This operation requires the secrets/recover permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// secretName - the name of the deleted secret. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. secretName is the name of the +// deleted secret. func (client BaseClient) RecoverDeletedSecret(ctx context.Context, vaultBaseURL string, secretName string) (result SecretBundle, err error) { req, err := client.RecoverDeletedSecretPreparer(ctx, vaultBaseURL, secretName) if err != nil { @@ -3945,10 +3916,9 @@ func (client BaseClient) RecoverDeletedSecretResponder(resp *http.Response) (res // RegenerateStorageAccountKey regenerates the specified key value for the given storage account. This operation // requires the storage/regeneratekey permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// storageAccountName - the name of the storage account. -// parameters - the parameters to regenerate storage account key. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. storageAccountName is the name of +// the storage account. parameters is the parameters to regenerate storage account key. func (client BaseClient) RegenerateStorageAccountKey(ctx context.Context, vaultBaseURL string, storageAccountName string, parameters StorageAccountRegenerteKeyParameters) (result StorageBundle, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: storageAccountName, @@ -4033,9 +4003,9 @@ func (client BaseClient) RegenerateStorageAccountKeyResponder(resp *http.Respons // subject to security constraints: The target Key Vault must be owned by the same Microsoft Azure Subscription as the // source Key Vault The user must have RESTORE permission in the target Key Vault. This operation requires the // keys/restore permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// parameters - the parameters to restore the key. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. parameters is the parameters to +// restore the key. func (client BaseClient) RestoreKey(ctx context.Context, vaultBaseURL string, parameters KeyRestoreParameters) (result KeyBundle, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: parameters, @@ -4107,9 +4077,9 @@ func (client BaseClient) RestoreKeyResponder(resp *http.Response) (result KeyBun // RestoreSecret restores a backed up secret, and all its versions, to a vault. This operation requires the // secrets/restore permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// parameters - the parameters to restore the secret. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. parameters is the parameters to +// restore the secret. func (client BaseClient) RestoreSecret(ctx context.Context, vaultBaseURL string, parameters SecretRestoreParameters) (result SecretBundle, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: parameters, @@ -4181,9 +4151,9 @@ func (client BaseClient) RestoreSecretResponder(resp *http.Response) (result Sec // SetCertificateContacts sets the certificate contacts for the specified key vault. This operation requires the // certificates/managecontacts permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// contacts - the contacts for the key vault certificate. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. contacts is the contacts for the +// key vault certificate. func (client BaseClient) SetCertificateContacts(ctx context.Context, vaultBaseURL string, contacts Contacts) (result Contacts, err error) { req, err := client.SetCertificateContactsPreparer(ctx, vaultBaseURL, contacts) if err != nil { @@ -4249,10 +4219,9 @@ func (client BaseClient) SetCertificateContactsResponder(resp *http.Response) (r // SetCertificateIssuer the SetCertificateIssuer operation adds or updates the specified certificate issuer. This // operation requires the certificates/setissuers permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// issuerName - the name of the issuer. -// parameter - certificate issuer set parameter. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. issuerName is the name of the +// issuer. parameter is certificate issuer set parameter. func (client BaseClient) SetCertificateIssuer(ctx context.Context, vaultBaseURL string, issuerName string, parameter CertificateIssuerSetParameters) (result IssuerBundle, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: parameter, @@ -4328,11 +4297,10 @@ func (client BaseClient) SetCertificateIssuerResponder(resp *http.Response) (res // SetSasDefinition creates or updates a new SAS definition for the specified storage account. This operation requires // the storage/setsas permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// storageAccountName - the name of the storage account. -// sasDefinitionName - the name of the SAS definition. -// parameters - the parameters to create a SAS definition. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. storageAccountName is the name of +// the storage account. sasDefinitionName is the name of the SAS definition. parameters is the parameters to create +// a SAS definition. func (client BaseClient) SetSasDefinition(ctx context.Context, vaultBaseURL string, storageAccountName string, sasDefinitionName string, parameters SasDefinitionCreateParameters) (result SasDefinitionBundle, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: storageAccountName, @@ -4413,10 +4381,9 @@ func (client BaseClient) SetSasDefinitionResponder(resp *http.Response) (result // SetSecret the SET operation adds a secret to the Azure Key Vault. If the named secret already exists, Azure Key // Vault creates a new version of that secret. This operation requires the secrets/set permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// secretName - the name of the secret. -// parameters - the parameters for setting the secret. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. secretName is the name of the +// secret. parameters is the parameters for setting the secret. func (client BaseClient) SetSecret(ctx context.Context, vaultBaseURL string, secretName string, parameters SecretSetParameters) (result SecretBundle, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: secretName, @@ -4493,10 +4460,9 @@ func (client BaseClient) SetSecretResponder(resp *http.Response) (result SecretB } // SetStorageAccount creates or updates a new storage account. This operation requires the storage/set permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// storageAccountName - the name of the storage account. -// parameters - the parameters to create a storage account. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. storageAccountName is the name of +// the storage account. parameters is the parameters to create a storage account. func (client BaseClient) SetStorageAccount(ctx context.Context, vaultBaseURL string, storageAccountName string, parameters StorageAccountCreateParameters) (result StorageBundle, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: storageAccountName, @@ -4576,11 +4542,9 @@ func (client BaseClient) SetStorageAccountResponder(resp *http.Response) (result // Sign the SIGN operation is applicable to asymmetric and symmetric keys stored in Azure Key Vault since this // operation uses the private portion of the key. This operation requires the keys/sign permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// keyName - the name of the key. -// keyVersion - the version of the key. -// parameters - the parameters for the signing operation. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. keyName is the name of the key. +// keyVersion is the version of the key. parameters is the parameters for the signing operation. func (client BaseClient) Sign(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters KeySignParameters) (result KeyOperationResult, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: parameters, @@ -4659,11 +4623,9 @@ func (client BaseClient) SignResponder(resp *http.Response) (result KeyOperation // operation is the reverse of the WRAP operation. The UNWRAP operation applies to asymmetric and symmetric keys stored // in Azure Key Vault since it uses the private portion of the key. This operation requires the keys/unwrapKey // permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// keyName - the name of the key. -// keyVersion - the version of the key. -// parameters - the parameters for the key operation. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. keyName is the name of the key. +// keyVersion is the version of the key. parameters is the parameters for the key operation. func (client BaseClient) UnwrapKey(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters KeyOperationsParameters) (result KeyOperationResult, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: parameters, @@ -4740,11 +4702,10 @@ func (client BaseClient) UnwrapKeyResponder(resp *http.Response) (result KeyOper // UpdateCertificate the UpdateCertificate operation applies the specified update on the given certificate; the only // elements updated are the certificate's attributes. This operation requires the certificates/update permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// certificateName - the name of the certificate in the given key vault. -// certificateVersion - the version of the certificate. -// parameters - the parameters for certificate update. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. certificateName is the name of the +// certificate in the given key vault. certificateVersion is the version of the certificate. parameters is the +// parameters for certificate update. func (client BaseClient) UpdateCertificate(ctx context.Context, vaultBaseURL string, certificateName string, certificateVersion string, parameters CertificateUpdateParameters) (result CertificateBundle, err error) { req, err := client.UpdateCertificatePreparer(ctx, vaultBaseURL, certificateName, certificateVersion, parameters) if err != nil { @@ -4815,10 +4776,9 @@ func (client BaseClient) UpdateCertificateResponder(resp *http.Response) (result // UpdateCertificateIssuer the UpdateCertificateIssuer operation performs an update on the specified certificate issuer // entity. This operation requires the certificates/setissuers permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// issuerName - the name of the issuer. -// parameter - certificate issuer update parameter. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. issuerName is the name of the +// issuer. parameter is certificate issuer update parameter. func (client BaseClient) UpdateCertificateIssuer(ctx context.Context, vaultBaseURL string, issuerName string, parameter CertificateIssuerUpdateParameters) (result IssuerBundle, err error) { req, err := client.UpdateCertificateIssuerPreparer(ctx, vaultBaseURL, issuerName, parameter) if err != nil { @@ -4888,10 +4848,9 @@ func (client BaseClient) UpdateCertificateIssuerResponder(resp *http.Response) ( // UpdateCertificateOperation updates a certificate creation operation that is already in progress. This operation // requires the certificates/update permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// certificateName - the name of the certificate. -// certificateOperation - the certificate operation response. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. certificateName is the name of the +// certificate. certificateOperation is the certificate operation response. func (client BaseClient) UpdateCertificateOperation(ctx context.Context, vaultBaseURL string, certificateName string, certificateOperation CertificateOperationUpdateParameter) (result CertificateOperation, err error) { req, err := client.UpdateCertificateOperationPreparer(ctx, vaultBaseURL, certificateName, certificateOperation) if err != nil { @@ -4961,10 +4920,9 @@ func (client BaseClient) UpdateCertificateOperationResponder(resp *http.Response // UpdateCertificatePolicy set specified members in the certificate policy. Leave others as null. This operation // requires the certificates/update permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// certificateName - the name of the certificate in the given vault. -// certificatePolicy - the policy for the certificate. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. certificateName is the name of the +// certificate in the given vault. certificatePolicy is the policy for the certificate. func (client BaseClient) UpdateCertificatePolicy(ctx context.Context, vaultBaseURL string, certificateName string, certificatePolicy CertificatePolicy) (result CertificatePolicy, err error) { req, err := client.UpdateCertificatePolicyPreparer(ctx, vaultBaseURL, certificateName, certificatePolicy) if err != nil { @@ -5034,11 +4992,9 @@ func (client BaseClient) UpdateCertificatePolicyResponder(resp *http.Response) ( // UpdateKey in order to perform this operation, the key must already exist in the Key Vault. Note: The cryptographic // material of a key itself cannot be changed. This operation requires the keys/update permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// keyName - the name of key to update. -// keyVersion - the version of the key to update. -// parameters - the parameters of the key to update. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. keyName is the name of key to +// update. keyVersion is the version of the key to update. parameters is the parameters of the key to update. func (client BaseClient) UpdateKey(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters KeyUpdateParameters) (result KeyBundle, err error) { req, err := client.UpdateKeyPreparer(ctx, vaultBaseURL, keyName, keyVersion, parameters) if err != nil { @@ -5109,11 +5065,10 @@ func (client BaseClient) UpdateKeyResponder(resp *http.Response) (result KeyBund // UpdateSasDefinition updates the specified attributes associated with the given SAS definition. This operation // requires the storage/setsas permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// storageAccountName - the name of the storage account. -// sasDefinitionName - the name of the SAS definition. -// parameters - the parameters to update a SAS definition. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. storageAccountName is the name of +// the storage account. sasDefinitionName is the name of the SAS definition. parameters is the parameters to update +// a SAS definition. func (client BaseClient) UpdateSasDefinition(ctx context.Context, vaultBaseURL string, storageAccountName string, sasDefinitionName string, parameters SasDefinitionUpdateParameters) (result SasDefinitionBundle, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: storageAccountName, @@ -5193,11 +5148,9 @@ func (client BaseClient) UpdateSasDefinitionResponder(resp *http.Response) (resu // UpdateSecret the UPDATE operation changes specified attributes of an existing stored secret. Attributes that are not // specified in the request are left unchanged. The value of a secret itself cannot be changed. This operation requires // the secrets/set permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// secretName - the name of the secret. -// secretVersion - the version of the secret. -// parameters - the parameters for update secret operation. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. secretName is the name of the +// secret. secretVersion is the version of the secret. parameters is the parameters for update secret operation. func (client BaseClient) UpdateSecret(ctx context.Context, vaultBaseURL string, secretName string, secretVersion string, parameters SecretUpdateParameters) (result SecretBundle, err error) { req, err := client.UpdateSecretPreparer(ctx, vaultBaseURL, secretName, secretVersion, parameters) if err != nil { @@ -5268,10 +5221,9 @@ func (client BaseClient) UpdateSecretResponder(resp *http.Response) (result Secr // UpdateStorageAccount updates the specified attributes associated with the given storage account. This operation // requires the storage/set/update permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// storageAccountName - the name of the storage account. -// parameters - the parameters to update a storage account. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. storageAccountName is the name of +// the storage account. parameters is the parameters to update a storage account. func (client BaseClient) UpdateStorageAccount(ctx context.Context, vaultBaseURL string, storageAccountName string, parameters StorageAccountUpdateParameters) (result StorageBundle, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: storageAccountName, @@ -5349,11 +5301,9 @@ func (client BaseClient) UpdateStorageAccountResponder(resp *http.Response) (res // necessary for asymmetric keys stored in Azure Key Vault since signature verification can be performed using the // public portion of the key but this operation is supported as a convenience for callers that only have a // key-reference and not the public portion of the key. This operation requires the keys/verify permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// keyName - the name of the key. -// keyVersion - the version of the key. -// parameters - the parameters for verify operations. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. keyName is the name of the key. +// keyVersion is the version of the key. parameters is the parameters for verify operations. func (client BaseClient) Verify(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters KeyVerifyParameters) (result KeyVerifyResult, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: parameters, @@ -5434,11 +5384,9 @@ func (client BaseClient) VerifyResponder(resp *http.Response) (result KeyVerifyR // Key Vault since protection with an asymmetric key can be performed using the public portion of the key. This // operation is supported for asymmetric keys as a convenience for callers that have a key-reference but do not have // access to the public key material. This operation requires the keys/wrapKey permission. -// Parameters: -// vaultBaseURL - the vault name, for example https://myvault.vault.azure.net. -// keyName - the name of the key. -// keyVersion - the version of the key. -// parameters - the parameters for wrap operation. +// +// vaultBaseURL is the vault name, for example https://myvault.vault.azure.net. keyName is the name of the key. +// keyVersion is the version of the key. parameters is the parameters for wrap operation. func (client BaseClient) WrapKey(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters KeyOperationsParameters) (result KeyOperationResult, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: parameters, diff --git a/services/keyvault/2016-10-01/keyvault/models.go b/services/keyvault/2016-10-01/keyvault/models.go index 0bdea2f1b8e7..a85a89de3ceb 100644 --- a/services/keyvault/2016-10-01/keyvault/models.go +++ b/services/keyvault/2016-10-01/keyvault/models.go @@ -44,13 +44,17 @@ func PossibleActionTypeValues() []ActionType { type DeletionRecoveryLevel string const ( - // Purgeable ... + // Purgeable Soft-delete is not enabled for this vault. A DELETE operation results in immediate and + // irreversible data loss. Purgeable DeletionRecoveryLevel = "Purgeable" - // Recoverable ... + // Recoverable Soft-delete is enabled for this vault and purge has been disabled. A deleted entity will + // remain in this state until recovered, or the end of the retention interval. Recoverable DeletionRecoveryLevel = "Recoverable" - // RecoverableProtectedSubscription ... + // RecoverableProtectedSubscription Soft-delete is enabled for this vault, and the subscription is + // protected against immediate deletion. RecoverableProtectedSubscription DeletionRecoveryLevel = "Recoverable+ProtectedSubscription" - // RecoverablePurgeable ... + // RecoverablePurgeable Soft-delete is enabled for this vault; A priveleged user may trigger an immediate, + // irreversible deletion(purge) of a deleted entity. RecoverablePurgeable DeletionRecoveryLevel = "Recoverable+Purgeable" )