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

Commit

Permalink
feat(regen): add ProtectionLevel.EXTERNAL (#47)
Browse files Browse the repository at this point in the history
Also switches to proto annotations
  • Loading branch information
yoshi-automation authored and chingor13 committed Jan 6, 2020
1 parent 1b7d2de commit f64572c
Show file tree
Hide file tree
Showing 69 changed files with 4,051 additions and 1,793 deletions.
Expand Up @@ -48,7 +48,8 @@
* following objects:
*
* <p>&#42; [KeyRing][google.cloud.kms.v1.KeyRing] &#42; [CryptoKey][google.cloud.kms.v1.CryptoKey]
* &#42; [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
* &#42; [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] &#42;
* [ImportJob][google.cloud.kms.v1.ImportJob]
*
* <p>If you are using manual gRPC libraries, see [Using gRPC with Cloud
* KMS](https://cloud.google.com/kms/docs/grpc).
Expand Down Expand Up @@ -716,7 +717,7 @@ public final ListCryptoKeyVersionsPagedResponse listCryptoKeyVersions(
* }
* </code></pre>
*
* @param name The [name][google.cloud.kms.v1.KeyRing.name] of the
* @param name Required. The [name][google.cloud.kms.v1.KeyRing.name] of the
* [KeyRing][google.cloud.kms.v1.KeyRing] to get.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand All @@ -740,7 +741,7 @@ public final KeyRing getKeyRing(KeyRingName name) {
* }
* </code></pre>
*
* @param name The [name][google.cloud.kms.v1.KeyRing.name] of the
* @param name Required. The [name][google.cloud.kms.v1.KeyRing.name] of the
* [KeyRing][google.cloud.kms.v1.KeyRing] to get.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand Down Expand Up @@ -808,7 +809,7 @@ public final UnaryCallable<GetKeyRingRequest, KeyRing> getKeyRingCallable() {
* }
* </code></pre>
*
* @param name The [name][google.cloud.kms.v1.ImportJob.name] of the
* @param name Required. The [name][google.cloud.kms.v1.ImportJob.name] of the
* [ImportJob][google.cloud.kms.v1.ImportJob] to get.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand All @@ -832,7 +833,7 @@ public final ImportJob getImportJob(ImportJobName name) {
* }
* </code></pre>
*
* @param name The [name][google.cloud.kms.v1.ImportJob.name] of the
* @param name Required. The [name][google.cloud.kms.v1.ImportJob.name] of the
* [ImportJob][google.cloud.kms.v1.ImportJob] to get.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand Down Expand Up @@ -902,7 +903,7 @@ public final UnaryCallable<GetImportJobRequest, ImportJob> getImportJobCallable(
* }
* </code></pre>
*
* @param name The [name][google.cloud.kms.v1.CryptoKey.name] of the
* @param name Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
* [CryptoKey][google.cloud.kms.v1.CryptoKey] to get.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand All @@ -928,7 +929,7 @@ public final CryptoKey getCryptoKey(CryptoKeyName name) {
* }
* </code></pre>
*
* @param name The [name][google.cloud.kms.v1.CryptoKey.name] of the
* @param name Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
* [CryptoKey][google.cloud.kms.v1.CryptoKey] to get.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand Down Expand Up @@ -1000,7 +1001,7 @@ public final UnaryCallable<GetCryptoKeyRequest, CryptoKey> getCryptoKeyCallable(
* }
* </code></pre>
*
* @param name The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
* @param name Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
* [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to get.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand All @@ -1026,7 +1027,7 @@ public final CryptoKeyVersion getCryptoKeyVersion(CryptoKeyVersionName name) {
* }
* </code></pre>
*
* @param name The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
* @param name Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
* [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to get.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand Down Expand Up @@ -1102,7 +1103,7 @@ public final CryptoKeyVersion getCryptoKeyVersion(GetCryptoKeyVersionRequest req
* [KeyRings][google.cloud.kms.v1.KeyRing], in the format `projects/&#42;/locations/&#42;`.
* @param keyRingId Required. It must be unique within a location and match the regular expression
* `[a-zA-Z0-9_-]{1,63}`
* @param keyRing A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field values.
* @param keyRing Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field values.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final KeyRing createKeyRing(LocationName parent, String keyRingId, KeyRing keyRing) {
Expand Down Expand Up @@ -1135,7 +1136,7 @@ public final KeyRing createKeyRing(LocationName parent, String keyRingId, KeyRin
* [KeyRings][google.cloud.kms.v1.KeyRing], in the format `projects/&#42;/locations/&#42;`.
* @param keyRingId Required. It must be unique within a location and match the regular expression
* `[a-zA-Z0-9_-]{1,63}`
* @param keyRing A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field values.
* @param keyRing Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field values.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final KeyRing createKeyRing(String parent, String keyRingId, KeyRing keyRing) {
Expand Down Expand Up @@ -1395,7 +1396,8 @@ public final UnaryCallable<CreateImportJobRequest, ImportJob> createImportJobCal
* with the [CryptoKeys][google.cloud.kms.v1.CryptoKey].
* @param cryptoKeyId Required. It must be unique within a KeyRing and match the regular
* expression `[a-zA-Z0-9_-]{1,63}`
* @param cryptoKey A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field values.
* @param cryptoKey Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field
* values.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final CryptoKey createCryptoKey(
Expand Down Expand Up @@ -1447,7 +1449,8 @@ public final CryptoKey createCryptoKey(
* with the [CryptoKeys][google.cloud.kms.v1.CryptoKey].
* @param cryptoKeyId Required. It must be unique within a KeyRing and match the regular
* expression `[a-zA-Z0-9_-]{1,63}`
* @param cryptoKey A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field values.
* @param cryptoKey Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field
* values.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final CryptoKey createCryptoKey(String parent, String cryptoKeyId, CryptoKey cryptoKey) {
Expand Down Expand Up @@ -1572,8 +1575,8 @@ public final UnaryCallable<CreateCryptoKeyRequest, CryptoKey> createCryptoKeyCal
* @param parent Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
* [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with the
* [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
* @param cryptoKeyVersion A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with initial
* field values.
* @param cryptoKeyVersion Required. A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
* with initial field values.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final CryptoKeyVersion createCryptoKeyVersion(
Expand Down Expand Up @@ -1609,8 +1612,8 @@ public final CryptoKeyVersion createCryptoKeyVersion(
* @param parent Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
* [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with the
* [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
* @param cryptoKeyVersion A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with initial
* field values.
* @param cryptoKeyVersion Required. A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
* with initial field values.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final CryptoKeyVersion createCryptoKeyVersion(
Expand Down Expand Up @@ -1762,8 +1765,8 @@ public final CryptoKeyVersion importCryptoKeyVersion(ImportCryptoKeyVersionReque
* }
* </code></pre>
*
* @param cryptoKey [CryptoKey][google.cloud.kms.v1.CryptoKey] with updated values.
* @param updateMask Required list of fields to be updated in this request.
* @param cryptoKey Required. [CryptoKey][google.cloud.kms.v1.CryptoKey] with updated values.
* @param updateMask Required. List of fields to be updated in this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final CryptoKey updateCryptoKey(CryptoKey cryptoKey, FieldMask updateMask) {
Expand Down Expand Up @@ -1847,9 +1850,9 @@ public final UnaryCallable<UpdateCryptoKeyRequest, CryptoKey> updateCryptoKeyCal
* }
* </code></pre>
*
* @param cryptoKeyVersion [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with updated
* values.
* @param updateMask Required list of fields to be updated in this request.
* @param cryptoKeyVersion Required. [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
* updated values.
* @param updateMask Required. List of fields to be updated in this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final CryptoKeyVersion updateCryptoKeyVersion(
Expand Down Expand Up @@ -2196,8 +2199,9 @@ public final UnaryCallable<DecryptRequest, DecryptResponse> decryptCallable() {
* }
* </code></pre>
*
* @param name The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey] to update.
* @param cryptoKeyVersionId The id of the child
* @param name Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey] to
* update.
* @param cryptoKeyVersionId Required. The id of the child
* [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use as primary.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand Down Expand Up @@ -2229,8 +2233,9 @@ public final CryptoKey updateCryptoKeyPrimaryVersion(
* }
* </code></pre>
*
* @param name The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey] to update.
* @param cryptoKeyVersionId The id of the child
* @param name Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey] to
* update.
* @param cryptoKeyVersionId Required. The id of the child
* [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use as primary.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand Down Expand Up @@ -2327,8 +2332,8 @@ public final CryptoKey updateCryptoKeyPrimaryVersion(
* }
* </code></pre>
*
* @param name The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
* to destroy.
* @param name Required. The resource name of the
* [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to destroy.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final CryptoKeyVersion destroyCryptoKeyVersion(CryptoKeyVersionName name) {
Expand Down Expand Up @@ -2366,8 +2371,8 @@ public final CryptoKeyVersion destroyCryptoKeyVersion(CryptoKeyVersionName name)
* }
* </code></pre>
*
* @param name The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
* to destroy.
* @param name Required. The resource name of the
* [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to destroy.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final CryptoKeyVersion destroyCryptoKeyVersion(String name) {
Expand Down Expand Up @@ -2469,8 +2474,8 @@ public final CryptoKeyVersion destroyCryptoKeyVersion(DestroyCryptoKeyVersionReq
* }
* </code></pre>
*
* @param name The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
* to restore.
* @param name Required. The resource name of the
* [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to restore.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final CryptoKeyVersion restoreCryptoKeyVersion(CryptoKeyVersionName name) {
Expand Down Expand Up @@ -2502,8 +2507,8 @@ public final CryptoKeyVersion restoreCryptoKeyVersion(CryptoKeyVersionName name)
* }
* </code></pre>
*
* @param name The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
* to restore.
* @param name Required. The resource name of the
* [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to restore.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final CryptoKeyVersion restoreCryptoKeyVersion(String name) {
Expand Down Expand Up @@ -2589,7 +2594,7 @@ public final CryptoKeyVersion restoreCryptoKeyVersion(RestoreCryptoKeyVersionReq
* }
* </code></pre>
*
* @param name The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
* @param name Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
* [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to get.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand All @@ -2616,7 +2621,7 @@ public final PublicKey getPublicKey(CryptoKeyVersionName name) {
* }
* </code></pre>
*
* @param name The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
* @param name Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
* [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to get.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand Down Expand Up @@ -2922,6 +2927,8 @@ public final AsymmetricSignResponse asymmetricSign(AsymmetricSignRequest request
/**
* Sets the access control policy on the specified resource. Replaces any existing policy.
*
* <p>Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
*
* <p>Sample code:
*
* <pre><code>
Expand Down Expand Up @@ -2953,6 +2960,8 @@ public final Policy setIamPolicy(KeyName resource, Policy policy) {
/**
* Sets the access control policy on the specified resource. Replaces any existing policy.
*
* <p>Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
*
* <p>Sample code:
*
* <pre><code>
Expand Down Expand Up @@ -2981,6 +2990,8 @@ public final Policy setIamPolicy(String resource, Policy policy) {
/**
* Sets the access control policy on the specified resource. Replaces any existing policy.
*
* <p>Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
*
* <p>Sample code:
*
* <pre><code>
Expand All @@ -3006,6 +3017,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
/**
* Sets the access control policy on the specified resource. Replaces any existing policy.
*
* <p>Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
*
* <p>Sample code:
*
* <pre><code>
Expand Down
Expand Up @@ -27,7 +27,8 @@
* following objects:
*
* <p>&#42; [KeyRing][google.cloud.kms.v1.KeyRing] &#42; [CryptoKey][google.cloud.kms.v1.CryptoKey]
* &#42; [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
* &#42; [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] &#42;
* [ImportJob][google.cloud.kms.v1.ImportJob]
*
* <p>If you are using manual gRPC libraries, see [Using gRPC with Cloud
* KMS](https://cloud.google.com/kms/docs/grpc).
Expand Down
Expand Up @@ -32,6 +32,7 @@
* * [KeyRing][google.cloud.kms.v1.KeyRing]
* * [CryptoKey][google.cloud.kms.v1.CryptoKey]
* * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
* * [ImportJob][google.cloud.kms.v1.ImportJob]
* If you are using manual gRPC libraries, see
* [Using gRPC with Cloud KMS](https://cloud.google.com/kms/docs/grpc).
* </pre>
Expand Down Expand Up @@ -1380,6 +1381,7 @@ public static KeyManagementServiceFutureStub newFutureStub(io.grpc.Channel chann
* * [KeyRing][google.cloud.kms.v1.KeyRing]
* * [CryptoKey][google.cloud.kms.v1.CryptoKey]
* * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
* * [ImportJob][google.cloud.kms.v1.ImportJob]
* If you are using manual gRPC libraries, see
* [Using gRPC with Cloud KMS](https://cloud.google.com/kms/docs/grpc).
* </pre>
Expand Down Expand Up @@ -1899,6 +1901,7 @@ public final io.grpc.ServerServiceDefinition bindService() {
* * [KeyRing][google.cloud.kms.v1.KeyRing]
* * [CryptoKey][google.cloud.kms.v1.CryptoKey]
* * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
* * [ImportJob][google.cloud.kms.v1.ImportJob]
* If you are using manual gRPC libraries, see
* [Using gRPC with Cloud KMS](https://cloud.google.com/kms/docs/grpc).
* </pre>
Expand Down Expand Up @@ -2345,6 +2348,7 @@ public void restoreCryptoKeyVersion(
* * [KeyRing][google.cloud.kms.v1.KeyRing]
* * [CryptoKey][google.cloud.kms.v1.CryptoKey]
* * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
* * [ImportJob][google.cloud.kms.v1.ImportJob]
* If you are using manual gRPC libraries, see
* [Using gRPC with Cloud KMS](https://cloud.google.com/kms/docs/grpc).
* </pre>
Expand Down Expand Up @@ -2715,6 +2719,7 @@ public com.google.cloud.kms.v1.CryptoKeyVersion restoreCryptoKeyVersion(
* * [KeyRing][google.cloud.kms.v1.KeyRing]
* * [CryptoKey][google.cloud.kms.v1.CryptoKey]
* * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
* * [ImportJob][google.cloud.kms.v1.ImportJob]
* If you are using manual gRPC libraries, see
* [Using gRPC with Cloud KMS](https://cloud.google.com/kms/docs/grpc).
* </pre>
Expand Down

0 comments on commit f64572c

Please sign in to comment.