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

feat: add support for HMAC, Variable Key Destruction, and GenerateRandom #566

Merged
merged 1 commit into from Aug 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view

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