google-apis-iam_v1 0.9.0 → 0.13.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 27c718ae666d6898ecb68c430525ff29d41425a371ff0d5d726ada741509ec54
4
- data.tar.gz: d5f5d186d8668b89254baeb4a557c97abb3d6067ccf5917f5f88794289f8e949
3
+ metadata.gz: 4c8f21a4b1a2f2cc972151b7ee074f17873cd123f15aa1f88fe98aec816e9e03
4
+ data.tar.gz: 4dcd9391a1ad9f0888590548a8364caec71f84b8f997de50819363f2bf8659c6
5
5
  SHA512:
6
- metadata.gz: f8603db99c13dae202f480efaff9614a5543a3740be7857e4a0e17326d4d584d9ca09bcafffd4409bdea23a09bc32e703e01c5d2d2742c09523bc046e724e852
7
- data.tar.gz: a12322ff5123dc400d5cd637c429331bad7c88cc7d21b14d3be6aed9b7159c1426fca2ec3a5c596213f87ed36de52be3a850d52047bf2bdf00572976a5355109
6
+ metadata.gz: 271e6e6955e444d1ed9b3ed469b96fc94f3ab0b6987cf5edf1c2ceecf1f00e1cd445fc3a161f2ab200d0a6fd3ff27106026ce7ba1c8b34ea17fce8b2851c82cc
7
+ data.tar.gz: '0068cd7c20399c0ed80fef0554829a19e5e2241e71a8b8d7f4dbc66516fad48b725617146ffa31ed683e766d7b75ea92ceb8fa704ba6d22ccc780e3b7bcb2803'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-iam_v1
2
2
 
3
+ ### v0.13.0 (2021-09-16)
4
+
5
+ * Regenerated from discovery document revision 20210909
6
+
7
+ ### v0.12.0 (2021-09-01)
8
+
9
+ * Regenerated from discovery document revision 20210825
10
+
11
+ ### v0.11.0 (2021-08-20)
12
+
13
+ * Regenerated from discovery document revision 20210812
14
+
15
+ ### v0.10.0 (2021-08-05)
16
+
17
+ * Regenerated from discovery document revision 20210728
18
+
3
19
  ### v0.9.0 (2021-07-29)
4
20
 
5
21
  * Regenerated from discovery document revision 20210722
@@ -387,6 +387,19 @@ module Google
387
387
  end
388
388
  end
389
389
 
390
+ # The service account key disable request.
391
+ class DisableServiceAccountKeyRequest
392
+ include Google::Apis::Core::Hashable
393
+
394
+ def initialize(**args)
395
+ update!(**args)
396
+ end
397
+
398
+ # Update properties of this object
399
+ def update!(**args)
400
+ end
401
+ end
402
+
390
403
  # The service account disable request.
391
404
  class DisableServiceAccountRequest
392
405
  include Google::Apis::Core::Hashable
@@ -417,6 +430,19 @@ module Google
417
430
  end
418
431
  end
419
432
 
433
+ # The service account key enable request.
434
+ class EnableServiceAccountKeyRequest
435
+ include Google::Apis::Core::Hashable
436
+
437
+ def initialize(**args)
438
+ update!(**args)
439
+ end
440
+
441
+ # Update properties of this object
442
+ def update!(**args)
443
+ end
444
+ end
445
+
420
446
  # The service account enable request.
421
447
  class EnableServiceAccountRequest
422
448
  include Google::Apis::Core::Hashable
@@ -972,7 +998,7 @@ module Google
972
998
  # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
973
999
  # roles/resourcemanager.organizationViewer condition: title: expirable access
974
1000
  # description: Does not grant access after Sep 2020 expression: request.time <
975
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1001
+ # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
976
1002
  # description of IAM and its features, see the [IAM documentation](https://cloud.
977
1003
  # google.com/iam/docs/).
978
1004
  class Policy
@@ -1400,6 +1426,12 @@ module Google
1400
1426
  class ServiceAccountKey
1401
1427
  include Google::Apis::Core::Hashable
1402
1428
 
1429
+ # The key status.
1430
+ # Corresponds to the JSON property `disabled`
1431
+ # @return [Boolean]
1432
+ attr_accessor :disabled
1433
+ alias_method :disabled?, :disabled
1434
+
1403
1435
  # Specifies the algorithm (and possibly key size) for the key.
1404
1436
  # Corresponds to the JSON property `keyAlgorithm`
1405
1437
  # @return [String]
@@ -1463,6 +1495,7 @@ module Google
1463
1495
 
1464
1496
  # Update properties of this object
1465
1497
  def update!(**args)
1498
+ @disabled = args[:disabled] if args.key?(:disabled)
1466
1499
  @key_algorithm = args[:key_algorithm] if args.key?(:key_algorithm)
1467
1500
  @key_origin = args[:key_origin] if args.key?(:key_origin)
1468
1501
  @key_type = args[:key_type] if args.key?(:key_type)
@@ -1503,7 +1536,7 @@ module Google
1503
1536
  # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1504
1537
  # roles/resourcemanager.organizationViewer condition: title: expirable access
1505
1538
  # description: Does not grant access after Sep 2020 expression: request.time <
1506
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1539
+ # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
1507
1540
  # description of IAM and its features, see the [IAM documentation](https://cloud.
1508
1541
  # google.com/iam/docs/).
1509
1542
  # Corresponds to the JSON property `policy`
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module IamV1
18
18
  # Version of the google-apis-iam_v1 gem
19
- GEM_VERSION = "0.9.0"
19
+ GEM_VERSION = "0.13.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210722"
25
+ REVISION = "20210909"
26
26
  end
27
27
  end
28
28
  end
@@ -88,6 +88,12 @@ module Google
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
+ class DisableServiceAccountKeyRequest
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
91
97
  class DisableServiceAccountRequest
92
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
99
 
@@ -100,6 +106,12 @@ module Google
100
106
  include Google::Apis::Core::JsonObjectSupport
101
107
  end
102
108
 
109
+ class EnableServiceAccountKeyRequest
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
103
115
  class EnableServiceAccountRequest
104
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
117
 
@@ -446,6 +458,12 @@ module Google
446
458
  end
447
459
  end
448
460
 
461
+ class DisableServiceAccountKeyRequest
462
+ # @private
463
+ class Representation < Google::Apis::Core::JsonRepresentation
464
+ end
465
+ end
466
+
449
467
  class DisableServiceAccountRequest
450
468
  # @private
451
469
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -458,6 +476,12 @@ module Google
458
476
  end
459
477
  end
460
478
 
479
+ class EnableServiceAccountKeyRequest
480
+ # @private
481
+ class Representation < Google::Apis::Core::JsonRepresentation
482
+ end
483
+ end
484
+
461
485
  class EnableServiceAccountRequest
462
486
  # @private
463
487
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -701,6 +725,7 @@ module Google
701
725
  class ServiceAccountKey
702
726
  # @private
703
727
  class Representation < Google::Apis::Core::JsonRepresentation
728
+ property :disabled, as: 'disabled'
704
729
  property :key_algorithm, as: 'keyAlgorithm'
705
730
  property :key_origin, as: 'keyOrigin'
706
731
  property :key_type, as: 'keyType'
@@ -608,7 +608,7 @@ module Google
608
608
  # Output only. The resource name of the pool.
609
609
  # @param [Google::Apis::IamV1::WorkloadIdentityPool] workload_identity_pool_object
610
610
  # @param [String] update_mask
611
- # Required. The list of fields update.
611
+ # Required. The list of fields to update.
612
612
  # @param [String] fields
613
613
  # Selector specifying which fields to include in a partial response.
614
614
  # @param [String] quota_user
@@ -1901,6 +1901,81 @@ module Google
1901
1901
  execute_or_queue_command(command, &block)
1902
1902
  end
1903
1903
 
1904
+ # Disable a ServiceAccountKey. A disabled service account key can be enabled
1905
+ # through EnableServiceAccountKey. The API is currently in preview phase.
1906
+ # @param [String] name
1907
+ # Required. The resource name of the service account key in the following format:
1908
+ # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT`/keys/`key``. Using `-` as a
1909
+ # wildcard for the `PROJECT_ID` will infer the project from the account. The `
1910
+ # ACCOUNT` value can be the `email` address or the `unique_id` of the service
1911
+ # account.
1912
+ # @param [Google::Apis::IamV1::DisableServiceAccountKeyRequest] disable_service_account_key_request_object
1913
+ # @param [String] fields
1914
+ # Selector specifying which fields to include in a partial response.
1915
+ # @param [String] quota_user
1916
+ # Available to use for quota purposes for server-side applications. Can be any
1917
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1918
+ # @param [Google::Apis::RequestOptions] options
1919
+ # Request-specific options
1920
+ #
1921
+ # @yield [result, err] Result & error if block supplied
1922
+ # @yieldparam result [Google::Apis::IamV1::Empty] parsed result object
1923
+ # @yieldparam err [StandardError] error object if request failed
1924
+ #
1925
+ # @return [Google::Apis::IamV1::Empty]
1926
+ #
1927
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1928
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1929
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1930
+ def disable_service_account_key(name, disable_service_account_key_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1931
+ command = make_simple_command(:post, 'v1/{+name}:disable', options)
1932
+ command.request_representation = Google::Apis::IamV1::DisableServiceAccountKeyRequest::Representation
1933
+ command.request_object = disable_service_account_key_request_object
1934
+ command.response_representation = Google::Apis::IamV1::Empty::Representation
1935
+ command.response_class = Google::Apis::IamV1::Empty
1936
+ command.params['name'] = name unless name.nil?
1937
+ command.query['fields'] = fields unless fields.nil?
1938
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1939
+ execute_or_queue_command(command, &block)
1940
+ end
1941
+
1942
+ # Enable a ServiceAccountKey. The API is currently in preview phase.
1943
+ # @param [String] name
1944
+ # Required. The resource name of the service account key in the following format:
1945
+ # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT`/keys/`key``. Using `-` as a
1946
+ # wildcard for the `PROJECT_ID` will infer the project from the account. The `
1947
+ # ACCOUNT` value can be the `email` address or the `unique_id` of the service
1948
+ # account.
1949
+ # @param [Google::Apis::IamV1::EnableServiceAccountKeyRequest] enable_service_account_key_request_object
1950
+ # @param [String] fields
1951
+ # Selector specifying which fields to include in a partial response.
1952
+ # @param [String] quota_user
1953
+ # Available to use for quota purposes for server-side applications. Can be any
1954
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1955
+ # @param [Google::Apis::RequestOptions] options
1956
+ # Request-specific options
1957
+ #
1958
+ # @yield [result, err] Result & error if block supplied
1959
+ # @yieldparam result [Google::Apis::IamV1::Empty] parsed result object
1960
+ # @yieldparam err [StandardError] error object if request failed
1961
+ #
1962
+ # @return [Google::Apis::IamV1::Empty]
1963
+ #
1964
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1965
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1966
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1967
+ def enable_service_account_key(name, enable_service_account_key_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1968
+ command = make_simple_command(:post, 'v1/{+name}:enable', options)
1969
+ command.request_representation = Google::Apis::IamV1::EnableServiceAccountKeyRequest::Representation
1970
+ command.request_object = enable_service_account_key_request_object
1971
+ command.response_representation = Google::Apis::IamV1::Empty::Representation
1972
+ command.response_class = Google::Apis::IamV1::Empty
1973
+ command.params['name'] = name unless name.nil?
1974
+ command.query['fields'] = fields unless fields.nil?
1975
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1976
+ execute_or_queue_command(command, &block)
1977
+ end
1978
+
1904
1979
  # Gets a ServiceAccountKey.
1905
1980
  # @param [String] name
1906
1981
  # Required. The resource name of the service account key in the following format:
@@ -31,7 +31,7 @@ module Google
31
31
  # This is NOT the gem version.
32
32
  VERSION = 'V1'
33
33
 
34
- # See, edit, configure, and delete your Google Cloud Platform data
34
+ # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
35
35
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
36
36
  end
37
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-iam_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-02 00:00:00.000000000 Z
11
+ date: 2021-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -59,7 +59,7 @@ licenses:
59
59
  metadata:
60
60
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
61
61
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-iam_v1/CHANGELOG.md
62
- documentation_uri: https://googleapis.dev/ruby/google-apis-iam_v1/v0.9.0
62
+ documentation_uri: https://googleapis.dev/ruby/google-apis-iam_v1/v0.13.0
63
63
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-iam_v1
64
64
  post_install_message:
65
65
  rdoc_options: []