Skip to content

Commit

Permalink
feat: add support for HMAC, Variable Key Destruction, and GenerateRandom
Browse files Browse the repository at this point in the history
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 authored and jskeet committed Aug 6, 2021
1 parent 6aa7606 commit f62f458
Show file tree
Hide file tree
Showing 9 changed files with 6,499 additions and 2,641 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1,792 changes: 1,184 additions & 608 deletions apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/KeyManagementServiceClient.g.cs

Large diffs are not rendered by default.

344 changes: 246 additions & 98 deletions apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/Resources.g.cs

Large diffs are not rendered by default.

4,329 changes: 3,221 additions & 1,108 deletions apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/Service.g.cs

Large diffs are not rendered by default.

549 changes: 386 additions & 163 deletions apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/ServiceGrpc.g.cs

Large diffs are not rendered by default.

Expand Up @@ -188,6 +188,42 @@ public KeyRingName ParentAsKeyRingName
}
}

public partial class UpdateCryptoKeyPrimaryVersionRequest
{
/// <summary>
/// <see cref="gckv::CryptoKeyName"/>-typed view over the <see cref="Name"/> resource name property.
/// </summary>
public gckv::CryptoKeyName CryptoKeyName
{
get => string.IsNullOrEmpty(Name) ? null : gckv::CryptoKeyName.Parse(Name, allowUnparsed: true);
set => Name = value?.ToString() ?? "";
}
}

public partial class DestroyCryptoKeyVersionRequest
{
/// <summary>
/// <see cref="gckv::CryptoKeyVersionName"/>-typed view over the <see cref="Name"/> resource name property.
/// </summary>
public gckv::CryptoKeyVersionName CryptoKeyVersionName
{
get => string.IsNullOrEmpty(Name) ? null : gckv::CryptoKeyVersionName.Parse(Name, allowUnparsed: true);
set => Name = value?.ToString() ?? "";
}
}

public partial class RestoreCryptoKeyVersionRequest
{
/// <summary>
/// <see cref="gckv::CryptoKeyVersionName"/>-typed view over the <see cref="Name"/> resource name property.
/// </summary>
public gckv::CryptoKeyVersionName CryptoKeyVersionName
{
get => string.IsNullOrEmpty(Name) ? null : gckv::CryptoKeyVersionName.Parse(Name, allowUnparsed: true);
set => Name = value?.ToString() ?? "";
}
}

public partial class EncryptRequest
{
/// <summary>
Expand Down Expand Up @@ -236,19 +272,7 @@ public partial class AsymmetricDecryptRequest
}
}

public partial class UpdateCryptoKeyPrimaryVersionRequest
{
/// <summary>
/// <see cref="gckv::CryptoKeyName"/>-typed view over the <see cref="Name"/> resource name property.
/// </summary>
public gckv::CryptoKeyName CryptoKeyName
{
get => string.IsNullOrEmpty(Name) ? null : gckv::CryptoKeyName.Parse(Name, allowUnparsed: true);
set => Name = value?.ToString() ?? "";
}
}

public partial class DestroyCryptoKeyVersionRequest
public partial class MacSignRequest
{
/// <summary>
/// <see cref="gckv::CryptoKeyVersionName"/>-typed view over the <see cref="Name"/> resource name property.
Expand All @@ -260,7 +284,7 @@ public partial class DestroyCryptoKeyVersionRequest
}
}

public partial class RestoreCryptoKeyVersionRequest
public partial class MacVerifyRequest
{
/// <summary>
/// <see cref="gckv::CryptoKeyVersionName"/>-typed view over the <see cref="Name"/> resource name property.
Expand Down
18 changes: 18 additions & 0 deletions apis/Google.Cloud.Kms.V1/gapic_metadata.json
Expand Up @@ -64,6 +64,12 @@
"EncryptAsync"
]
},
"GenerateRandomBytes": {
"methods": [
"GenerateRandomBytes",
"GenerateRandomBytesAsync"
]
},
"GetCryptoKey": {
"methods": [
"GetCryptoKey",
Expand Down Expand Up @@ -124,6 +130,18 @@
"ListKeyRingsAsync"
]
},
"MacSign": {
"methods": [
"MacSign",
"MacSignAsync"
]
},
"MacVerify": {
"methods": [
"MacVerify",
"MacVerifyAsync"
]
},
"RestoreCryptoKeyVersion": {
"methods": [
"RestoreCryptoKeyVersion",
Expand Down
2 changes: 1 addition & 1 deletion apis/Google.Cloud.Kms.V1/synth.metadata
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "8d1d6694519ed9a1195067cd2138376ac1389883"
"sha": "2efb6951f151116fb7b5766fb4e377db465d49e9"
}
}
]
Expand Down

0 comments on commit f62f458

Please sign in to comment.