google-apis-iam_v1 0.11.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: a4a44108b49d060d8ba6905edd9734809b08af145aae3ee8801593d12d01d991
4
- data.tar.gz: d3f4fd94474577f10d3c9cbaccaaac4e3921f764965d3fba27fe86668a914e72
3
+ metadata.gz: efb927302cd8dd4ac3c750e5e7adc22b4c695b75e75b2d713d3e9846bee709f1
4
+ data.tar.gz: acb4857d6a04cb18906222502246af83af8c43a55d47e461747e57b6a39ef980
5
5
  SHA512:
6
- metadata.gz: a980d848f0b9dbe26ff75c0aaef22346a7883d3d652cdd355d363500a2efed1af32e223c6f85c80fb1807670fc59ff720fe1a16bd0b696d4f2b6e62f0c3016a9
7
- data.tar.gz: d60d1f3a98b88055cd32b4d0dd56feb94cea84ff0e67b79a1d2b862fd19e9280059f563d3e506f48e5b5157b68ea51f6a262b93cde2d792fd041ef3256c6c7a2
6
+ metadata.gz: b420089a64818a25feae5b0b600b2c1e6304adb1b2fea14fc8b0da3d6945d6926b9491210babaabd23a5a790a342ab7b80d3ab213e1fe2db1e13e5b5dc5031d3
7
+ data.tar.gz: 057cf2c26bd8729c6320805ea14b360b191acba726495d590fae53e9009934d662932e4566492477340e6508e2c5ae987d9361a203e433abad8f56be72ef29a3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.11.0 (2021-08-20)
4
8
 
5
9
  * Regenerated from discovery document revision 20210812
@@ -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
@@ -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)
@@ -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.11.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 = "20210812"
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:
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.11.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-08-23 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.11.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: []