Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Commit

Permalink
feat: add support for HMAC, Variable Key Destruction, and GenerateRan…
Browse files Browse the repository at this point in the history
…dom (#566)

PiperOrigin-RevId: 389008671

Source-Author: Google APIs <noreply@google.com>
Source-Date: Thu Aug 5 13:21:02 2021 -0700
Source-Repo: googleapis/googleapis
Source-Sha: 2efb6951f151116fb7b5766fb4e377db465d49e9
Source-Link: googleapis/googleapis@2efb695
  • Loading branch information
yoshi-automation committed Aug 10, 2021
1 parent 1e54ced commit d1634f2
Show file tree
Hide file tree
Showing 47 changed files with 12,885 additions and 1,610 deletions.

Large diffs are not rendered by default.

Expand Up @@ -171,6 +171,25 @@ public UnaryCallSettings<UpdateCryptoKeyRequest, CryptoKey> updateCryptoKeySetti
return ((KeyManagementServiceStubSettings) getStubSettings()).updateCryptoKeyVersionSettings();
}

/** Returns the object with the settings used for calls to updateCryptoKeyPrimaryVersion. */
public UnaryCallSettings<UpdateCryptoKeyPrimaryVersionRequest, CryptoKey>
updateCryptoKeyPrimaryVersionSettings() {
return ((KeyManagementServiceStubSettings) getStubSettings())
.updateCryptoKeyPrimaryVersionSettings();
}

/** Returns the object with the settings used for calls to destroyCryptoKeyVersion. */
public UnaryCallSettings<DestroyCryptoKeyVersionRequest, CryptoKeyVersion>
destroyCryptoKeyVersionSettings() {
return ((KeyManagementServiceStubSettings) getStubSettings()).destroyCryptoKeyVersionSettings();
}

/** Returns the object with the settings used for calls to restoreCryptoKeyVersion. */
public UnaryCallSettings<RestoreCryptoKeyVersionRequest, CryptoKeyVersion>
restoreCryptoKeyVersionSettings() {
return ((KeyManagementServiceStubSettings) getStubSettings()).restoreCryptoKeyVersionSettings();
}

/** Returns the object with the settings used for calls to encrypt. */
public UnaryCallSettings<EncryptRequest, EncryptResponse> encryptSettings() {
return ((KeyManagementServiceStubSettings) getStubSettings()).encryptSettings();
Expand All @@ -192,23 +211,20 @@ public UnaryCallSettings<AsymmetricSignRequest, AsymmetricSignResponse> asymmetr
return ((KeyManagementServiceStubSettings) getStubSettings()).asymmetricDecryptSettings();
}

/** Returns the object with the settings used for calls to updateCryptoKeyPrimaryVersion. */
public UnaryCallSettings<UpdateCryptoKeyPrimaryVersionRequest, CryptoKey>
updateCryptoKeyPrimaryVersionSettings() {
return ((KeyManagementServiceStubSettings) getStubSettings())
.updateCryptoKeyPrimaryVersionSettings();
/** Returns the object with the settings used for calls to macSign. */
public UnaryCallSettings<MacSignRequest, MacSignResponse> macSignSettings() {
return ((KeyManagementServiceStubSettings) getStubSettings()).macSignSettings();
}

/** Returns the object with the settings used for calls to destroyCryptoKeyVersion. */
public UnaryCallSettings<DestroyCryptoKeyVersionRequest, CryptoKeyVersion>
destroyCryptoKeyVersionSettings() {
return ((KeyManagementServiceStubSettings) getStubSettings()).destroyCryptoKeyVersionSettings();
/** Returns the object with the settings used for calls to macVerify. */
public UnaryCallSettings<MacVerifyRequest, MacVerifyResponse> macVerifySettings() {
return ((KeyManagementServiceStubSettings) getStubSettings()).macVerifySettings();
}

/** Returns the object with the settings used for calls to restoreCryptoKeyVersion. */
public UnaryCallSettings<RestoreCryptoKeyVersionRequest, CryptoKeyVersion>
restoreCryptoKeyVersionSettings() {
return ((KeyManagementServiceStubSettings) getStubSettings()).restoreCryptoKeyVersionSettings();
/** Returns the object with the settings used for calls to generateRandomBytes. */
public UnaryCallSettings<GenerateRandomBytesRequest, GenerateRandomBytesResponse>
generateRandomBytesSettings() {
return ((KeyManagementServiceStubSettings) getStubSettings()).generateRandomBytesSettings();
}

/** Returns the object with the settings used for calls to setIamPolicy. */
Expand Down Expand Up @@ -419,6 +435,24 @@ public UnaryCallSettings.Builder<UpdateCryptoKeyRequest, CryptoKey> updateCrypto
return getStubSettingsBuilder().updateCryptoKeyVersionSettings();
}

/** Returns the builder for the settings used for calls to updateCryptoKeyPrimaryVersion. */
public UnaryCallSettings.Builder<UpdateCryptoKeyPrimaryVersionRequest, CryptoKey>
updateCryptoKeyPrimaryVersionSettings() {
return getStubSettingsBuilder().updateCryptoKeyPrimaryVersionSettings();
}

/** Returns the builder for the settings used for calls to destroyCryptoKeyVersion. */
public UnaryCallSettings.Builder<DestroyCryptoKeyVersionRequest, CryptoKeyVersion>
destroyCryptoKeyVersionSettings() {
return getStubSettingsBuilder().destroyCryptoKeyVersionSettings();
}

/** Returns the builder for the settings used for calls to restoreCryptoKeyVersion. */
public UnaryCallSettings.Builder<RestoreCryptoKeyVersionRequest, CryptoKeyVersion>
restoreCryptoKeyVersionSettings() {
return getStubSettingsBuilder().restoreCryptoKeyVersionSettings();
}

/** Returns the builder for the settings used for calls to encrypt. */
public UnaryCallSettings.Builder<EncryptRequest, EncryptResponse> encryptSettings() {
return getStubSettingsBuilder().encryptSettings();
Expand All @@ -441,22 +475,20 @@ public UnaryCallSettings.Builder<DecryptRequest, DecryptResponse> decryptSetting
return getStubSettingsBuilder().asymmetricDecryptSettings();
}

/** Returns the builder for the settings used for calls to updateCryptoKeyPrimaryVersion. */
public UnaryCallSettings.Builder<UpdateCryptoKeyPrimaryVersionRequest, CryptoKey>
updateCryptoKeyPrimaryVersionSettings() {
return getStubSettingsBuilder().updateCryptoKeyPrimaryVersionSettings();
/** Returns the builder for the settings used for calls to macSign. */
public UnaryCallSettings.Builder<MacSignRequest, MacSignResponse> macSignSettings() {
return getStubSettingsBuilder().macSignSettings();
}

/** Returns the builder for the settings used for calls to destroyCryptoKeyVersion. */
public UnaryCallSettings.Builder<DestroyCryptoKeyVersionRequest, CryptoKeyVersion>
destroyCryptoKeyVersionSettings() {
return getStubSettingsBuilder().destroyCryptoKeyVersionSettings();
/** Returns the builder for the settings used for calls to macVerify. */
public UnaryCallSettings.Builder<MacVerifyRequest, MacVerifyResponse> macVerifySettings() {
return getStubSettingsBuilder().macVerifySettings();
}

/** Returns the builder for the settings used for calls to restoreCryptoKeyVersion. */
public UnaryCallSettings.Builder<RestoreCryptoKeyVersionRequest, CryptoKeyVersion>
restoreCryptoKeyVersionSettings() {
return getStubSettingsBuilder().restoreCryptoKeyVersionSettings();
/** Returns the builder for the settings used for calls to generateRandomBytes. */
public UnaryCallSettings.Builder<GenerateRandomBytesRequest, GenerateRandomBytesResponse>
generateRandomBytesSettings() {
return getStubSettingsBuilder().generateRandomBytesSettings();
}

/** Returns the builder for the settings used for calls to setIamPolicy. */
Expand Down
Expand Up @@ -37,6 +37,9 @@
"Encrypt": {
"methods": ["encrypt", "encrypt", "encrypt", "encryptCallable"]
},
"GenerateRandomBytes": {
"methods": ["generateRandomBytes", "generateRandomBytes", "generateRandomBytesCallable"]
},
"GetCryptoKey": {
"methods": ["getCryptoKey", "getCryptoKey", "getCryptoKey", "getCryptoKeyCallable"]
},
Expand Down Expand Up @@ -70,6 +73,12 @@
"ListKeyRings": {
"methods": ["listKeyRings", "listKeyRings", "listKeyRings", "listKeyRingsPagedCallable", "listKeyRingsCallable"]
},
"MacSign": {
"methods": ["macSign", "macSign", "macSign", "macSignCallable"]
},
"MacVerify": {
"methods": ["macVerify", "macVerify", "macVerify", "macVerifyCallable"]
},
"RestoreCryptoKeyVersion": {
"methods": ["restoreCryptoKeyVersion", "restoreCryptoKeyVersion", "restoreCryptoKeyVersion", "restoreCryptoKeyVersionCallable"]
},
Expand Down

0 comments on commit d1634f2

Please sign in to comment.