google-apis-cloudkms_v1 0.57.0 → 0.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/cloudkms_v1/classes.rb +129 -5
- data/lib/google/apis/cloudkms_v1/gem_version.rb +3 -3
- data/lib/google/apis/cloudkms_v1/representations.rb +62 -0
- data/lib/google/apis/cloudkms_v1/service.rb +271 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 810c7c0d5eb5a065494d8b5a2f9ca50365197187f9d098141db1f80b67cb776f
|
4
|
+
data.tar.gz: 48d6aa4f97e9b62ce43d51617a761b3a8d70e6bb3cc1022503c80da71f1b141d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78bdfda01c6cd2eeb43b4caa85c25fb645d5b7e2a8b4396d884b3fb47bcd181dcb50ee7b8a80481bd30a0b055838c93e7bd73aef32a612305e250754763d8b9c
|
7
|
+
data.tar.gz: 8af3b21a39dd664be72cb149588d193480f250d1697728b2b1726497b9b109c98c6e731241471c86838e13e45d38547e7ca40f034f70877a68a0213d5455dcfd
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Release history for google-apis-cloudkms_v1
|
2
2
|
|
3
|
+
### v0.59.0 (2025-05-25)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250516
|
6
|
+
* Regenerated using generator version 0.18.0
|
7
|
+
|
8
|
+
### v0.58.0 (2025-05-18)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20250501
|
11
|
+
* Regenerated using generator version 0.17.0
|
12
|
+
|
3
13
|
### v0.57.0 (2025-04-27)
|
4
14
|
|
5
15
|
* Regenerated from discovery document revision 20250414
|
data/OVERVIEW.md
CHANGED
@@ -83,7 +83,7 @@ The [product documentation](https://cloud.google.com/kms/) may provide guidance
|
|
83
83
|
|
84
84
|
## Supported Ruby versions
|
85
85
|
|
86
|
-
This library is supported on Ruby
|
86
|
+
This library is supported on Ruby 3.1+.
|
87
87
|
|
88
88
|
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
89
89
|
|
@@ -323,6 +323,14 @@ module Google
|
|
323
323
|
class AutokeyConfig
|
324
324
|
include Google::Apis::Core::Hashable
|
325
325
|
|
326
|
+
# Optional. A checksum computed by the server based on the value of other fields.
|
327
|
+
# This may be sent on update requests to ensure that the client has an up-to-
|
328
|
+
# date value before proceeding. The request will be rejected with an ABORTED
|
329
|
+
# error on a mismatched etag.
|
330
|
+
# Corresponds to the JSON property `etag`
|
331
|
+
# @return [String]
|
332
|
+
attr_accessor :etag
|
333
|
+
|
326
334
|
# Optional. Name of the key project, e.g. `projects/`PROJECT_ID`` or `projects/`
|
327
335
|
# PROJECT_NUMBER``, where Cloud KMS Autokey will provision a new CryptoKey when
|
328
336
|
# a KeyHandle is created. On UpdateAutokeyConfig, the caller will require `
|
@@ -352,6 +360,7 @@ module Google
|
|
352
360
|
|
353
361
|
# Update properties of this object
|
354
362
|
def update!(**args)
|
363
|
+
@etag = args[:etag] if args.key?(:etag)
|
355
364
|
@key_project = args[:key_project] if args.key?(:key_project)
|
356
365
|
@name = args[:name] if args.key?(:name)
|
357
366
|
@state = args[:state] if args.key?(:state)
|
@@ -1575,6 +1584,34 @@ module Google
|
|
1575
1584
|
end
|
1576
1585
|
end
|
1577
1586
|
|
1587
|
+
# The configuration of a protection level for a project's Key Access
|
1588
|
+
# Justifications enrollment.
|
1589
|
+
class KeyAccessJustificationsEnrollmentConfig
|
1590
|
+
include Google::Apis::Core::Hashable
|
1591
|
+
|
1592
|
+
# Whether the project has KAJ logging enabled.
|
1593
|
+
# Corresponds to the JSON property `auditLogging`
|
1594
|
+
# @return [Boolean]
|
1595
|
+
attr_accessor :audit_logging
|
1596
|
+
alias_method :audit_logging?, :audit_logging
|
1597
|
+
|
1598
|
+
# Whether the project is enrolled in KAJ policy enforcement.
|
1599
|
+
# Corresponds to the JSON property `policyEnforcement`
|
1600
|
+
# @return [Boolean]
|
1601
|
+
attr_accessor :policy_enforcement
|
1602
|
+
alias_method :policy_enforcement?, :policy_enforcement
|
1603
|
+
|
1604
|
+
def initialize(**args)
|
1605
|
+
update!(**args)
|
1606
|
+
end
|
1607
|
+
|
1608
|
+
# Update properties of this object
|
1609
|
+
def update!(**args)
|
1610
|
+
@audit_logging = args[:audit_logging] if args.key?(:audit_logging)
|
1611
|
+
@policy_enforcement = args[:policy_enforcement] if args.key?(:policy_enforcement)
|
1612
|
+
end
|
1613
|
+
end
|
1614
|
+
|
1578
1615
|
# A KeyAccessJustificationsPolicy specifies zero or more allowed AccessReason
|
1579
1616
|
# values for encrypt, decrypt, and sign operations on a CryptoKey.
|
1580
1617
|
class KeyAccessJustificationsPolicy
|
@@ -1597,6 +1634,33 @@ module Google
|
|
1597
1634
|
end
|
1598
1635
|
end
|
1599
1636
|
|
1637
|
+
# A singleton configuration for Key Access Justifications policies.
|
1638
|
+
class KeyAccessJustificationsPolicyConfig
|
1639
|
+
include Google::Apis::Core::Hashable
|
1640
|
+
|
1641
|
+
# A KeyAccessJustificationsPolicy specifies zero or more allowed AccessReason
|
1642
|
+
# values for encrypt, decrypt, and sign operations on a CryptoKey.
|
1643
|
+
# Corresponds to the JSON property `defaultKeyAccessJustificationPolicy`
|
1644
|
+
# @return [Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicy]
|
1645
|
+
attr_accessor :default_key_access_justification_policy
|
1646
|
+
|
1647
|
+
# Identifier. The resource name for this KeyAccessJustificationsPolicyConfig in
|
1648
|
+
# the format of "`organizations|folders|projects`/*/kajPolicyConfig".
|
1649
|
+
# Corresponds to the JSON property `name`
|
1650
|
+
# @return [String]
|
1651
|
+
attr_accessor :name
|
1652
|
+
|
1653
|
+
def initialize(**args)
|
1654
|
+
update!(**args)
|
1655
|
+
end
|
1656
|
+
|
1657
|
+
# Update properties of this object
|
1658
|
+
def update!(**args)
|
1659
|
+
@default_key_access_justification_policy = args[:default_key_access_justification_policy] if args.key?(:default_key_access_justification_policy)
|
1660
|
+
@name = args[:name] if args.key?(:name)
|
1661
|
+
end
|
1662
|
+
end
|
1663
|
+
|
1600
1664
|
# Resource-oriented representation of a request to Cloud KMS Autokey and the
|
1601
1665
|
# resulting provisioning of a CryptoKey.
|
1602
1666
|
class KeyHandle
|
@@ -1715,7 +1779,8 @@ module Google
|
|
1715
1779
|
# @return [String]
|
1716
1780
|
attr_accessor :next_page_token
|
1717
1781
|
|
1718
|
-
# The total number of CryptoKeyVersions that matched the query.
|
1782
|
+
# The total number of CryptoKeyVersions that matched the query. This field is
|
1783
|
+
# not populated if ListCryptoKeyVersionsRequest.filter is applied.
|
1719
1784
|
# Corresponds to the JSON property `totalSize`
|
1720
1785
|
# @return [Fixnum]
|
1721
1786
|
attr_accessor :total_size
|
@@ -1747,7 +1812,8 @@ module Google
|
|
1747
1812
|
# @return [String]
|
1748
1813
|
attr_accessor :next_page_token
|
1749
1814
|
|
1750
|
-
# The total number of CryptoKeys that matched the query.
|
1815
|
+
# The total number of CryptoKeys that matched the query. This field is not
|
1816
|
+
# populated if ListCryptoKeysRequest.filter is applied.
|
1751
1817
|
# Corresponds to the JSON property `totalSize`
|
1752
1818
|
# @return [Fixnum]
|
1753
1819
|
attr_accessor :total_size
|
@@ -1779,7 +1845,8 @@ module Google
|
|
1779
1845
|
# @return [String]
|
1780
1846
|
attr_accessor :next_page_token
|
1781
1847
|
|
1782
|
-
# The total number of EkmConnections that matched the query.
|
1848
|
+
# The total number of EkmConnections that matched the query. This field is not
|
1849
|
+
# populated if ListEkmConnectionsRequest.filter is applied.
|
1783
1850
|
# Corresponds to the JSON property `totalSize`
|
1784
1851
|
# @return [Fixnum]
|
1785
1852
|
attr_accessor :total_size
|
@@ -1811,7 +1878,8 @@ module Google
|
|
1811
1878
|
# @return [String]
|
1812
1879
|
attr_accessor :next_page_token
|
1813
1880
|
|
1814
|
-
# The total number of ImportJobs that matched the query.
|
1881
|
+
# The total number of ImportJobs that matched the query. This field is not
|
1882
|
+
# populated if ListImportJobsRequest.filter is applied.
|
1815
1883
|
# Corresponds to the JSON property `totalSize`
|
1816
1884
|
# @return [Fixnum]
|
1817
1885
|
attr_accessor :total_size
|
@@ -1869,7 +1937,8 @@ module Google
|
|
1869
1937
|
# @return [String]
|
1870
1938
|
attr_accessor :next_page_token
|
1871
1939
|
|
1872
|
-
# The total number of KeyRings that matched the query.
|
1940
|
+
# The total number of KeyRings that matched the query. This field is not
|
1941
|
+
# populated if ListKeyRingsRequest.filter is applied.
|
1873
1942
|
# Corresponds to the JSON property `totalSize`
|
1874
1943
|
# @return [Fixnum]
|
1875
1944
|
attr_accessor :total_size
|
@@ -2957,6 +3026,61 @@ module Google
|
|
2957
3026
|
end
|
2958
3027
|
end
|
2959
3028
|
|
3029
|
+
# Response message for KeyAccessJustificationsConfig.
|
3030
|
+
# ShowEffectiveKeyAccessJustificationsEnrollmentConfig
|
3031
|
+
class ShowEffectiveKeyAccessJustificationsEnrollmentConfigResponse
|
3032
|
+
include Google::Apis::Core::Hashable
|
3033
|
+
|
3034
|
+
# The configuration of a protection level for a project's Key Access
|
3035
|
+
# Justifications enrollment.
|
3036
|
+
# Corresponds to the JSON property `externalConfig`
|
3037
|
+
# @return [Google::Apis::CloudkmsV1::KeyAccessJustificationsEnrollmentConfig]
|
3038
|
+
attr_accessor :external_config
|
3039
|
+
|
3040
|
+
# The configuration of a protection level for a project's Key Access
|
3041
|
+
# Justifications enrollment.
|
3042
|
+
# Corresponds to the JSON property `hardwareConfig`
|
3043
|
+
# @return [Google::Apis::CloudkmsV1::KeyAccessJustificationsEnrollmentConfig]
|
3044
|
+
attr_accessor :hardware_config
|
3045
|
+
|
3046
|
+
# The configuration of a protection level for a project's Key Access
|
3047
|
+
# Justifications enrollment.
|
3048
|
+
# Corresponds to the JSON property `softwareConfig`
|
3049
|
+
# @return [Google::Apis::CloudkmsV1::KeyAccessJustificationsEnrollmentConfig]
|
3050
|
+
attr_accessor :software_config
|
3051
|
+
|
3052
|
+
def initialize(**args)
|
3053
|
+
update!(**args)
|
3054
|
+
end
|
3055
|
+
|
3056
|
+
# Update properties of this object
|
3057
|
+
def update!(**args)
|
3058
|
+
@external_config = args[:external_config] if args.key?(:external_config)
|
3059
|
+
@hardware_config = args[:hardware_config] if args.key?(:hardware_config)
|
3060
|
+
@software_config = args[:software_config] if args.key?(:software_config)
|
3061
|
+
end
|
3062
|
+
end
|
3063
|
+
|
3064
|
+
# Response message for KeyAccessJustificationsConfig.
|
3065
|
+
# ShowEffectiveKeyAccessJustificationsPolicyConfig.
|
3066
|
+
class ShowEffectiveKeyAccessJustificationsPolicyConfigResponse
|
3067
|
+
include Google::Apis::Core::Hashable
|
3068
|
+
|
3069
|
+
# A singleton configuration for Key Access Justifications policies.
|
3070
|
+
# Corresponds to the JSON property `effectiveKajPolicy`
|
3071
|
+
# @return [Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig]
|
3072
|
+
attr_accessor :effective_kaj_policy
|
3073
|
+
|
3074
|
+
def initialize(**args)
|
3075
|
+
update!(**args)
|
3076
|
+
end
|
3077
|
+
|
3078
|
+
# Update properties of this object
|
3079
|
+
def update!(**args)
|
3080
|
+
@effective_kaj_policy = args[:effective_kaj_policy] if args.key?(:effective_kaj_policy)
|
3081
|
+
end
|
3082
|
+
end
|
3083
|
+
|
2960
3084
|
# The `Status` type defines a logical error model that is suitable for different
|
2961
3085
|
# programming environments, including REST APIs and RPC APIs. It is used by [
|
2962
3086
|
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module CloudkmsV1
|
18
18
|
# Version of the google-apis-cloudkms_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.59.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.18.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250516"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -190,12 +190,24 @@ module Google
|
|
190
190
|
include Google::Apis::Core::JsonObjectSupport
|
191
191
|
end
|
192
192
|
|
193
|
+
class KeyAccessJustificationsEnrollmentConfig
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
193
199
|
class KeyAccessJustificationsPolicy
|
194
200
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
201
|
|
196
202
|
include Google::Apis::Core::JsonObjectSupport
|
197
203
|
end
|
198
204
|
|
205
|
+
class KeyAccessJustificationsPolicyConfig
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
199
211
|
class KeyHandle
|
200
212
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
213
|
|
@@ -358,6 +370,18 @@ module Google
|
|
358
370
|
include Google::Apis::Core::JsonObjectSupport
|
359
371
|
end
|
360
372
|
|
373
|
+
class ShowEffectiveKeyAccessJustificationsEnrollmentConfigResponse
|
374
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
375
|
+
|
376
|
+
include Google::Apis::Core::JsonObjectSupport
|
377
|
+
end
|
378
|
+
|
379
|
+
class ShowEffectiveKeyAccessJustificationsPolicyConfigResponse
|
380
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
381
|
+
|
382
|
+
include Google::Apis::Core::JsonObjectSupport
|
383
|
+
end
|
384
|
+
|
361
385
|
class Status
|
362
386
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
363
387
|
|
@@ -455,6 +479,7 @@ module Google
|
|
455
479
|
class AutokeyConfig
|
456
480
|
# @private
|
457
481
|
class Representation < Google::Apis::Core::JsonRepresentation
|
482
|
+
property :etag, as: 'etag'
|
458
483
|
property :key_project, as: 'keyProject'
|
459
484
|
property :name, as: 'name'
|
460
485
|
property :state, as: 'state'
|
@@ -697,6 +722,14 @@ module Google
|
|
697
722
|
end
|
698
723
|
end
|
699
724
|
|
725
|
+
class KeyAccessJustificationsEnrollmentConfig
|
726
|
+
# @private
|
727
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
728
|
+
property :audit_logging, as: 'auditLogging'
|
729
|
+
property :policy_enforcement, as: 'policyEnforcement'
|
730
|
+
end
|
731
|
+
end
|
732
|
+
|
700
733
|
class KeyAccessJustificationsPolicy
|
701
734
|
# @private
|
702
735
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -704,6 +737,15 @@ module Google
|
|
704
737
|
end
|
705
738
|
end
|
706
739
|
|
740
|
+
class KeyAccessJustificationsPolicyConfig
|
741
|
+
# @private
|
742
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
743
|
+
property :default_key_access_justification_policy, as: 'defaultKeyAccessJustificationPolicy', class: Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicy, decorator: Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicy::Representation
|
744
|
+
|
745
|
+
property :name, as: 'name'
|
746
|
+
end
|
747
|
+
end
|
748
|
+
|
707
749
|
class KeyHandle
|
708
750
|
# @private
|
709
751
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -983,6 +1025,26 @@ module Google
|
|
983
1025
|
end
|
984
1026
|
end
|
985
1027
|
|
1028
|
+
class ShowEffectiveKeyAccessJustificationsEnrollmentConfigResponse
|
1029
|
+
# @private
|
1030
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1031
|
+
property :external_config, as: 'externalConfig', class: Google::Apis::CloudkmsV1::KeyAccessJustificationsEnrollmentConfig, decorator: Google::Apis::CloudkmsV1::KeyAccessJustificationsEnrollmentConfig::Representation
|
1032
|
+
|
1033
|
+
property :hardware_config, as: 'hardwareConfig', class: Google::Apis::CloudkmsV1::KeyAccessJustificationsEnrollmentConfig, decorator: Google::Apis::CloudkmsV1::KeyAccessJustificationsEnrollmentConfig::Representation
|
1034
|
+
|
1035
|
+
property :software_config, as: 'softwareConfig', class: Google::Apis::CloudkmsV1::KeyAccessJustificationsEnrollmentConfig, decorator: Google::Apis::CloudkmsV1::KeyAccessJustificationsEnrollmentConfig::Representation
|
1036
|
+
|
1037
|
+
end
|
1038
|
+
end
|
1039
|
+
|
1040
|
+
class ShowEffectiveKeyAccessJustificationsPolicyConfigResponse
|
1041
|
+
# @private
|
1042
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1043
|
+
property :effective_kaj_policy, as: 'effectiveKajPolicy', class: Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig, decorator: Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig::Representation
|
1044
|
+
|
1045
|
+
end
|
1046
|
+
end
|
1047
|
+
|
986
1048
|
class Status
|
987
1049
|
# @private
|
988
1050
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -83,6 +83,37 @@ module Google
|
|
83
83
|
execute_or_queue_command(command, &block)
|
84
84
|
end
|
85
85
|
|
86
|
+
# Gets the KeyAccessJustificationsPolicyConfig for a given organization/folder/
|
87
|
+
# projects.
|
88
|
+
# @param [String] name
|
89
|
+
# Required. The name of the KeyAccessJustificationsPolicyConfig to get.
|
90
|
+
# @param [String] fields
|
91
|
+
# Selector specifying which fields to include in a partial response.
|
92
|
+
# @param [String] quota_user
|
93
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
94
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
95
|
+
# @param [Google::Apis::RequestOptions] options
|
96
|
+
# Request-specific options
|
97
|
+
#
|
98
|
+
# @yield [result, err] Result & error if block supplied
|
99
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig] parsed result object
|
100
|
+
# @yieldparam err [StandardError] error object if request failed
|
101
|
+
#
|
102
|
+
# @return [Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig]
|
103
|
+
#
|
104
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
105
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
106
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
107
|
+
def get_folder_kaj_policy_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
108
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
109
|
+
command.response_representation = Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig::Representation
|
110
|
+
command.response_class = Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig
|
111
|
+
command.params['name'] = name unless name.nil?
|
112
|
+
command.query['fields'] = fields unless fields.nil?
|
113
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
114
|
+
execute_or_queue_command(command, &block)
|
115
|
+
end
|
116
|
+
|
86
117
|
# Updates the AutokeyConfig for a folder. The caller must have both `cloudkms.
|
87
118
|
# autokeyConfigs.update` permission on the parent folder and `cloudkms.
|
88
119
|
# cryptoKeys.setIamPolicy` permission on the provided key project. A KeyHandle
|
@@ -124,6 +155,144 @@ module Google
|
|
124
155
|
execute_or_queue_command(command, &block)
|
125
156
|
end
|
126
157
|
|
158
|
+
# Updates the KeyAccessJustificationsPolicyConfig for a given organization/
|
159
|
+
# folder/projects.
|
160
|
+
# @param [String] name
|
161
|
+
# Identifier. The resource name for this KeyAccessJustificationsPolicyConfig in
|
162
|
+
# the format of "`organizations|folders|projects`/*/kajPolicyConfig".
|
163
|
+
# @param [Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig] key_access_justifications_policy_config_object
|
164
|
+
# @param [String] update_mask
|
165
|
+
# Optional. The list of fields to update.
|
166
|
+
# @param [String] fields
|
167
|
+
# Selector specifying which fields to include in a partial response.
|
168
|
+
# @param [String] quota_user
|
169
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
170
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
171
|
+
# @param [Google::Apis::RequestOptions] options
|
172
|
+
# Request-specific options
|
173
|
+
#
|
174
|
+
# @yield [result, err] Result & error if block supplied
|
175
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig] parsed result object
|
176
|
+
# @yieldparam err [StandardError] error object if request failed
|
177
|
+
#
|
178
|
+
# @return [Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig]
|
179
|
+
#
|
180
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
181
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
182
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
183
|
+
def update_folder_kaj_policy_config(name, key_access_justifications_policy_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
184
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
185
|
+
command.request_representation = Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig::Representation
|
186
|
+
command.request_object = key_access_justifications_policy_config_object
|
187
|
+
command.response_representation = Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig::Representation
|
188
|
+
command.response_class = Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig
|
189
|
+
command.params['name'] = name unless name.nil?
|
190
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
191
|
+
command.query['fields'] = fields unless fields.nil?
|
192
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
193
|
+
execute_or_queue_command(command, &block)
|
194
|
+
end
|
195
|
+
|
196
|
+
# Gets the KeyAccessJustificationsPolicyConfig for a given organization/folder/
|
197
|
+
# projects.
|
198
|
+
# @param [String] name
|
199
|
+
# Required. The name of the KeyAccessJustificationsPolicyConfig to get.
|
200
|
+
# @param [String] fields
|
201
|
+
# Selector specifying which fields to include in a partial response.
|
202
|
+
# @param [String] quota_user
|
203
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
204
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
205
|
+
# @param [Google::Apis::RequestOptions] options
|
206
|
+
# Request-specific options
|
207
|
+
#
|
208
|
+
# @yield [result, err] Result & error if block supplied
|
209
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig] parsed result object
|
210
|
+
# @yieldparam err [StandardError] error object if request failed
|
211
|
+
#
|
212
|
+
# @return [Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig]
|
213
|
+
#
|
214
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
215
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
216
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
217
|
+
def get_organization_kaj_policy_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
218
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
219
|
+
command.response_representation = Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig::Representation
|
220
|
+
command.response_class = Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig
|
221
|
+
command.params['name'] = name unless name.nil?
|
222
|
+
command.query['fields'] = fields unless fields.nil?
|
223
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
224
|
+
execute_or_queue_command(command, &block)
|
225
|
+
end
|
226
|
+
|
227
|
+
# Updates the KeyAccessJustificationsPolicyConfig for a given organization/
|
228
|
+
# folder/projects.
|
229
|
+
# @param [String] name
|
230
|
+
# Identifier. The resource name for this KeyAccessJustificationsPolicyConfig in
|
231
|
+
# the format of "`organizations|folders|projects`/*/kajPolicyConfig".
|
232
|
+
# @param [Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig] key_access_justifications_policy_config_object
|
233
|
+
# @param [String] update_mask
|
234
|
+
# Optional. The list of fields to update.
|
235
|
+
# @param [String] fields
|
236
|
+
# Selector specifying which fields to include in a partial response.
|
237
|
+
# @param [String] quota_user
|
238
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
239
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
240
|
+
# @param [Google::Apis::RequestOptions] options
|
241
|
+
# Request-specific options
|
242
|
+
#
|
243
|
+
# @yield [result, err] Result & error if block supplied
|
244
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig] parsed result object
|
245
|
+
# @yieldparam err [StandardError] error object if request failed
|
246
|
+
#
|
247
|
+
# @return [Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig]
|
248
|
+
#
|
249
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
250
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
251
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
252
|
+
def update_organization_kaj_policy_config(name, key_access_justifications_policy_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
253
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
254
|
+
command.request_representation = Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig::Representation
|
255
|
+
command.request_object = key_access_justifications_policy_config_object
|
256
|
+
command.response_representation = Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig::Representation
|
257
|
+
command.response_class = Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig
|
258
|
+
command.params['name'] = name unless name.nil?
|
259
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
260
|
+
command.query['fields'] = fields unless fields.nil?
|
261
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
262
|
+
execute_or_queue_command(command, &block)
|
263
|
+
end
|
264
|
+
|
265
|
+
# Gets the KeyAccessJustificationsPolicyConfig for a given organization/folder/
|
266
|
+
# projects.
|
267
|
+
# @param [String] name
|
268
|
+
# Required. The name of the KeyAccessJustificationsPolicyConfig to get.
|
269
|
+
# @param [String] fields
|
270
|
+
# Selector specifying which fields to include in a partial response.
|
271
|
+
# @param [String] quota_user
|
272
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
273
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
274
|
+
# @param [Google::Apis::RequestOptions] options
|
275
|
+
# Request-specific options
|
276
|
+
#
|
277
|
+
# @yield [result, err] Result & error if block supplied
|
278
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig] parsed result object
|
279
|
+
# @yieldparam err [StandardError] error object if request failed
|
280
|
+
#
|
281
|
+
# @return [Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig]
|
282
|
+
#
|
283
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
284
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
285
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
286
|
+
def get_project_kaj_policy_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
287
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
288
|
+
command.response_representation = Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig::Representation
|
289
|
+
command.response_class = Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig
|
290
|
+
command.params['name'] = name unless name.nil?
|
291
|
+
command.query['fields'] = fields unless fields.nil?
|
292
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
293
|
+
execute_or_queue_command(command, &block)
|
294
|
+
end
|
295
|
+
|
127
296
|
# Returns the effective Cloud KMS Autokey configuration for a given project.
|
128
297
|
# @param [String] parent
|
129
298
|
# Required. Name of the resource project to the show effective Cloud KMS Autokey
|
@@ -156,6 +325,108 @@ module Google
|
|
156
325
|
execute_or_queue_command(command, &block)
|
157
326
|
end
|
158
327
|
|
328
|
+
# Returns the KeyAccessJustificationsEnrollmentConfig of the resource closest to
|
329
|
+
# the given project in hierarchy.
|
330
|
+
# @param [String] project
|
331
|
+
# Required. The number or id of the project to get the effective
|
332
|
+
# KeyAccessJustificationsEnrollmentConfig for.
|
333
|
+
# @param [String] fields
|
334
|
+
# Selector specifying which fields to include in a partial response.
|
335
|
+
# @param [String] quota_user
|
336
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
337
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
338
|
+
# @param [Google::Apis::RequestOptions] options
|
339
|
+
# Request-specific options
|
340
|
+
#
|
341
|
+
# @yield [result, err] Result & error if block supplied
|
342
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::ShowEffectiveKeyAccessJustificationsEnrollmentConfigResponse] parsed result object
|
343
|
+
# @yieldparam err [StandardError] error object if request failed
|
344
|
+
#
|
345
|
+
# @return [Google::Apis::CloudkmsV1::ShowEffectiveKeyAccessJustificationsEnrollmentConfigResponse]
|
346
|
+
#
|
347
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
348
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
349
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
350
|
+
def show_project_effective_key_access_justifications_enrollment_config(project, fields: nil, quota_user: nil, options: nil, &block)
|
351
|
+
command = make_simple_command(:get, 'v1/{+project}:showEffectiveKeyAccessJustificationsEnrollmentConfig', options)
|
352
|
+
command.response_representation = Google::Apis::CloudkmsV1::ShowEffectiveKeyAccessJustificationsEnrollmentConfigResponse::Representation
|
353
|
+
command.response_class = Google::Apis::CloudkmsV1::ShowEffectiveKeyAccessJustificationsEnrollmentConfigResponse
|
354
|
+
command.params['project'] = project unless project.nil?
|
355
|
+
command.query['fields'] = fields unless fields.nil?
|
356
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
357
|
+
execute_or_queue_command(command, &block)
|
358
|
+
end
|
359
|
+
|
360
|
+
# Returns the KeyAccessJustificationsPolicyConfig of the resource closest to the
|
361
|
+
# given project in hierarchy.
|
362
|
+
# @param [String] project
|
363
|
+
# Required. The number or id of the project to get the effective
|
364
|
+
# KeyAccessJustificationsPolicyConfig. In the format of "projects/`|`"
|
365
|
+
# @param [String] fields
|
366
|
+
# Selector specifying which fields to include in a partial response.
|
367
|
+
# @param [String] quota_user
|
368
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
369
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
370
|
+
# @param [Google::Apis::RequestOptions] options
|
371
|
+
# Request-specific options
|
372
|
+
#
|
373
|
+
# @yield [result, err] Result & error if block supplied
|
374
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::ShowEffectiveKeyAccessJustificationsPolicyConfigResponse] parsed result object
|
375
|
+
# @yieldparam err [StandardError] error object if request failed
|
376
|
+
#
|
377
|
+
# @return [Google::Apis::CloudkmsV1::ShowEffectiveKeyAccessJustificationsPolicyConfigResponse]
|
378
|
+
#
|
379
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
380
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
381
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
382
|
+
def show_project_effective_key_access_justifications_policy_config(project, fields: nil, quota_user: nil, options: nil, &block)
|
383
|
+
command = make_simple_command(:get, 'v1/{+project}:showEffectiveKeyAccessJustificationsPolicyConfig', options)
|
384
|
+
command.response_representation = Google::Apis::CloudkmsV1::ShowEffectiveKeyAccessJustificationsPolicyConfigResponse::Representation
|
385
|
+
command.response_class = Google::Apis::CloudkmsV1::ShowEffectiveKeyAccessJustificationsPolicyConfigResponse
|
386
|
+
command.params['project'] = project unless project.nil?
|
387
|
+
command.query['fields'] = fields unless fields.nil?
|
388
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
389
|
+
execute_or_queue_command(command, &block)
|
390
|
+
end
|
391
|
+
|
392
|
+
# Updates the KeyAccessJustificationsPolicyConfig for a given organization/
|
393
|
+
# folder/projects.
|
394
|
+
# @param [String] name
|
395
|
+
# Identifier. The resource name for this KeyAccessJustificationsPolicyConfig in
|
396
|
+
# the format of "`organizations|folders|projects`/*/kajPolicyConfig".
|
397
|
+
# @param [Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig] key_access_justifications_policy_config_object
|
398
|
+
# @param [String] update_mask
|
399
|
+
# Optional. The list of fields to update.
|
400
|
+
# @param [String] fields
|
401
|
+
# Selector specifying which fields to include in a partial response.
|
402
|
+
# @param [String] quota_user
|
403
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
404
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
405
|
+
# @param [Google::Apis::RequestOptions] options
|
406
|
+
# Request-specific options
|
407
|
+
#
|
408
|
+
# @yield [result, err] Result & error if block supplied
|
409
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig] parsed result object
|
410
|
+
# @yieldparam err [StandardError] error object if request failed
|
411
|
+
#
|
412
|
+
# @return [Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig]
|
413
|
+
#
|
414
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
415
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
416
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
417
|
+
def update_project_kaj_policy_config(name, key_access_justifications_policy_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
418
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
419
|
+
command.request_representation = Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig::Representation
|
420
|
+
command.request_object = key_access_justifications_policy_config_object
|
421
|
+
command.response_representation = Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig::Representation
|
422
|
+
command.response_class = Google::Apis::CloudkmsV1::KeyAccessJustificationsPolicyConfig
|
423
|
+
command.params['name'] = name unless name.nil?
|
424
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
425
|
+
command.query['fields'] = fields unless fields.nil?
|
426
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
427
|
+
execute_or_queue_command(command, &block)
|
428
|
+
end
|
429
|
+
|
159
430
|
# Generate random bytes using the Cloud KMS randomness source in the provided
|
160
431
|
# location.
|
161
432
|
# @param [String] location
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-cloudkms_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.59.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: google-apis-core
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudkms_v1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudkms_v1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudkms_v1/v0.59.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudkms_v1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|
@@ -66,14 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
66
66
|
requirements:
|
67
67
|
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
69
|
+
version: '3.1'
|
70
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
|
-
rubygems_version: 3.6.
|
76
|
+
rubygems_version: 3.6.9
|
77
77
|
specification_version: 4
|
78
78
|
summary: Simple REST client for Cloud Key Management Service (KMS) API V1
|
79
79
|
test_files: []
|