Skip to content

Commit

Permalink
Enable using different values for the field purpose. (GoogleCloudPlat…
Browse files Browse the repository at this point in the history
…form#8070)

* Enable using different values for the field purpose.

* Enable using different values for the field purpose.

* Update the default values for the field purpose.

* Update mmv1/products/kms/CryptoKey.yaml

Co-authored-by: Shuya Ma <[email protected]>

---------

Co-authored-by: Shuya Ma <[email protected]>
  • Loading branch information
2 people authored and Khaled Hassan committed Jun 7, 2023
1 parent e4ce250 commit 814e133
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions mmv1/products/kms/CryptoKey.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,14 @@ properties:
name: 'labels'
description: |
Labels with user-defined metadata to apply to this resource.
- !ruby/object:Api::Type::Enum
- !ruby/object:Api::Type::String
name: 'purpose'
description: |
The immutable purpose of this CryptoKey. See the
[purpose reference](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKeyPurpose)
for possible inputs.
values:
- 'ENCRYPT_DECRYPT'
- 'ASYMMETRIC_SIGN'
- 'ASYMMETRIC_DECRYPT'
- 'MAC'
default_value: :ENCRYPT_DECRYPT
Default value is "ENCRYPT_DECRYPT".
default_value: 'ENCRYPT_DECRYPT'
immutable: true
- !ruby/object:Api::Type::String
name: 'rotationPeriod'
Expand Down

0 comments on commit 814e133

Please sign in to comment.