google-apis-iam_v1 0.8.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7fc5bf4cd0f8610449ec9fa1709e956dd24d5d6498c4344c9650587a731646db
4
- data.tar.gz: ab9d7efaa7b52e17c8d85c43459a660d0a1fda0e3ecfcf480588289915ba2c29
3
+ metadata.gz: efb927302cd8dd4ac3c750e5e7adc22b4c695b75e75b2d713d3e9846bee709f1
4
+ data.tar.gz: acb4857d6a04cb18906222502246af83af8c43a55d47e461747e57b6a39ef980
5
5
  SHA512:
6
- metadata.gz: f756527f4b8408a2c8e882805621af665cb52ec8d5f1ebf1157c2197ccdd7e92399c7a860a1a8e0eed47815f92b162c8754d8a7da008c09f1eb93e8b9cf9b929
7
- data.tar.gz: 3edebb82e0d4370b1cbe882afcb4febb0ee0b23c5afa6c6610c7d4424f710524c8bbe236f61047a95f923adb4010369893c8cd60f2ca497c186708a7e2265568
6
+ metadata.gz: b420089a64818a25feae5b0b600b2c1e6304adb1b2fea14fc8b0da3d6945d6926b9491210babaabd23a5a790a342ab7b80d3ab213e1fe2db1e13e5b5dc5031d3
7
+ data.tar.gz: 057cf2c26bd8729c6320805ea14b360b191acba726495d590fae53e9009934d662932e4566492477340e6508e2c5ae987d9361a203e433abad8f56be72ef29a3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-iam_v1
2
2
 
3
+ ### v0.12.0 (2021-09-01)
4
+
5
+ * Regenerated from discovery document revision 20210825
6
+
7
+ ### v0.11.0 (2021-08-20)
8
+
9
+ * Regenerated from discovery document revision 20210812
10
+
11
+ ### v0.10.0 (2021-08-05)
12
+
13
+ * Regenerated from discovery document revision 20210728
14
+
15
+ ### v0.9.0 (2021-07-29)
16
+
17
+ * Regenerated from discovery document revision 20210722
18
+
3
19
  ### v0.8.0 (2021-06-29)
4
20
 
5
21
  * Regenerated using generator version 0.4.0
@@ -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`
@@ -1589,9 +1622,9 @@ module Google
1589
1622
  # Must be a serialized JSON object that contains a JWT Claims Set. For example: `
1590
1623
  # `"sub": "user@example.com", "iat": 313435`` If the JWT Claims Set contains an
1591
1624
  # expiration time (`exp`) claim, it must be an integer timestamp that is not in
1592
- # the past and no more than 1 hour in the future. If the JWT Claims Set does not
1593
- # contain an expiration time (`exp`) claim, this claim is added automatically,
1594
- # with a timestamp that is 1 hour in the future.
1625
+ # the past and no more than 12 hours in the future. If the JWT Claims Set does
1626
+ # not contain an expiration time (`exp`) claim, this claim is added
1627
+ # automatically, with a timestamp that is 1 hour in the future.
1595
1628
  # Corresponds to the JSON property `payload`
1596
1629
  # @return [String]
1597
1630
  attr_accessor :payload
@@ -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.8.0"
19
+ GEM_VERSION = "0.12.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 = "20210519"
25
+ REVISION = "20210825"
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'
@@ -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.8.0
4
+ version: 0.12.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-07-05 00:00:00.000000000 Z
11
+ date: 2021-09-06 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.8.0
62
+ documentation_uri: https://googleapis.dev/ruby/google-apis-iam_v1/v0.12.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: []