google-apis-iam_v1 0.11.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/iam_v1/classes.rb +95 -57
- data/lib/google/apis/iam_v1/gem_version.rb +2 -2
- data/lib/google/apis/iam_v1/representations.rb +25 -0
- data/lib/google/apis/iam_v1/service.rb +154 -15
- 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: 45ac832a3802a2142757f9e33fedd6ab8dc03a4cc25a063c4f23e16e342983b2
|
4
|
+
data.tar.gz: d2597d22a06b42b653940bf8e3a69475d4ea8e8c08caad395ec31c528e37ca19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f56adc48e446c680d611eb2739abb9089e0e889f56cf65a1db8f20dfda5f1ac46933c93c1959f9ffe8e0eb5963b292269dcf0202ae535fad9d901149314f9f5
|
7
|
+
data.tar.gz: d80378706a3a4a26185006002b1ede76b6fe9385645ba02e793bb7936ba6d0f38ee3d29db52f003c454d92e74955d1362b5308d33be216b0749d54c69345db77
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-iam_v1
|
2
2
|
|
3
|
+
### v0.15.0 (2021-10-21)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211013
|
6
|
+
* Unspecified changes
|
7
|
+
|
8
|
+
### v0.14.0 (2021-09-24)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20210918
|
11
|
+
|
12
|
+
### v0.13.0 (2021-09-16)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20210909
|
15
|
+
|
16
|
+
### v0.12.0 (2021-09-01)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210825
|
19
|
+
|
3
20
|
### v0.11.0 (2021-08-20)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20210812
|
data/OVERVIEW.md
CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Iam service in particular.)
|
67
67
|
|
@@ -174,7 +174,7 @@ module Google
|
|
174
174
|
end
|
175
175
|
end
|
176
176
|
|
177
|
-
# Associates `members
|
177
|
+
# Associates `members`, or principals, with a `role`.
|
178
178
|
class Binding
|
179
179
|
include Google::Apis::Core::Hashable
|
180
180
|
|
@@ -197,7 +197,7 @@ module Google
|
|
197
197
|
# @return [Google::Apis::IamV1::Expr]
|
198
198
|
attr_accessor :condition
|
199
199
|
|
200
|
-
# Specifies the
|
200
|
+
# Specifies the principals requesting access for a Cloud Platform resource. `
|
201
201
|
# members` can have the following values: * `allUsers`: A special identifier
|
202
202
|
# that represents anyone who is on the internet; with or without a Google
|
203
203
|
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
@@ -227,8 +227,8 @@ module Google
|
|
227
227
|
# @return [Array<String>]
|
228
228
|
attr_accessor :members
|
229
229
|
|
230
|
-
# Role that is assigned to `members
|
231
|
-
#
|
230
|
+
# Role that is assigned to the list of `members`, or principals. For example, `
|
231
|
+
# roles/viewer`, `roles/editor`, or `roles/owner`.
|
232
232
|
# Corresponds to the JSON property `role`
|
233
233
|
# @return [String]
|
234
234
|
attr_accessor :role
|
@@ -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
|
@@ -950,31 +976,31 @@ module Google
|
|
950
976
|
|
951
977
|
# An Identity and Access Management (IAM) policy, which specifies access
|
952
978
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
953
|
-
# A `binding` binds one or more `members
|
954
|
-
# user accounts, service accounts, Google groups, and domains (
|
955
|
-
# A `role` is a named list of permissions; each `role` can be
|
956
|
-
# role or a user-created custom role. For some types of Google
|
957
|
-
# a `binding` can also specify a `condition`, which is a
|
958
|
-
# allows access to a resource only if the expression
|
959
|
-
# condition can add constraints based on attributes of
|
960
|
-
# or both. To learn which resources support
|
961
|
-
# see the [IAM documentation](https://cloud.
|
962
|
-
# resource-policies). **JSON example:** ` "
|
963
|
-
# resourcemanager.organizationAdmin", "members": [
|
964
|
-
# group:admins@example.com", "domain:google.com", "
|
965
|
-
# appspot.gserviceaccount.com" ] `, ` "role": "
|
966
|
-
# organizationViewer", "members": [ "user:eve@example.com"
|
967
|
-
# title": "expirable access", "description": "Does not grant
|
968
|
-
# 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
969
|
-
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
970
|
-
# members: - user:mike@example.com - group:admins@example.com -
|
971
|
-
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
972
|
-
# resourcemanager.organizationAdmin - members: - user:eve@example.
|
973
|
-
# roles/resourcemanager.organizationViewer condition: title: expirable
|
974
|
-
# description: Does not grant access after Sep 2020 expression: request.
|
975
|
-
# timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
976
|
-
# description of IAM and its features, see the [IAM documentation](https://
|
977
|
-
# google.com/iam/docs/).
|
979
|
+
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
980
|
+
# Principals can be user accounts, service accounts, Google groups, and domains (
|
981
|
+
# such as G Suite). A `role` is a named list of permissions; each `role` can be
|
982
|
+
# an IAM predefined role or a user-created custom role. For some types of Google
|
983
|
+
# Cloud resources, a `binding` can also specify a `condition`, which is a
|
984
|
+
# logical expression that allows access to a resource only if the expression
|
985
|
+
# evaluates to `true`. A condition can add constraints based on attributes of
|
986
|
+
# the request, the resource, or both. To learn which resources support
|
987
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
988
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
989
|
+
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
990
|
+
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
991
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
992
|
+
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
993
|
+
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
994
|
+
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
995
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
996
|
+
# bindings: - members: - user:mike@example.com - group:admins@example.com -
|
997
|
+
# domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
998
|
+
# role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
|
999
|
+
# com role: roles/resourcemanager.organizationViewer condition: title: expirable
|
1000
|
+
# access description: Does not grant access after Sep 2020 expression: request.
|
1001
|
+
# time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
1002
|
+
# a description of IAM and its features, see the [IAM documentation](https://
|
1003
|
+
# cloud.google.com/iam/docs/).
|
978
1004
|
class Policy
|
979
1005
|
include Google::Apis::Core::Hashable
|
980
1006
|
|
@@ -983,9 +1009,14 @@ module Google
|
|
983
1009
|
# @return [Array<Google::Apis::IamV1::AuditConfig>]
|
984
1010
|
attr_accessor :audit_configs
|
985
1011
|
|
986
|
-
# Associates a list of `members
|
987
|
-
# condition` that determines how and when the `bindings` are applied.
|
988
|
-
# the `bindings` must contain at least one
|
1012
|
+
# Associates a list of `members`, or principals, with a `role`. Optionally, may
|
1013
|
+
# specify a `condition` that determines how and when the `bindings` are applied.
|
1014
|
+
# Each of the `bindings` must contain at least one principal. The `bindings` in
|
1015
|
+
# a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
|
1016
|
+
# can be Google groups. Each occurrence of a principal counts towards these
|
1017
|
+
# limits. For example, if the `bindings` grant 50 different roles to `user:alice@
|
1018
|
+
# example.com`, and not to any other principal, then you can add another 1,450
|
1019
|
+
# principals to the `bindings` in the `Policy`.
|
989
1020
|
# Corresponds to the JSON property `bindings`
|
990
1021
|
# @return [Array<Google::Apis::IamV1::Binding>]
|
991
1022
|
attr_accessor :bindings
|
@@ -1400,6 +1431,12 @@ module Google
|
|
1400
1431
|
class ServiceAccountKey
|
1401
1432
|
include Google::Apis::Core::Hashable
|
1402
1433
|
|
1434
|
+
# The key status.
|
1435
|
+
# Corresponds to the JSON property `disabled`
|
1436
|
+
# @return [Boolean]
|
1437
|
+
attr_accessor :disabled
|
1438
|
+
alias_method :disabled?, :disabled
|
1439
|
+
|
1403
1440
|
# Specifies the algorithm (and possibly key size) for the key.
|
1404
1441
|
# Corresponds to the JSON property `keyAlgorithm`
|
1405
1442
|
# @return [String]
|
@@ -1463,6 +1500,7 @@ module Google
|
|
1463
1500
|
|
1464
1501
|
# Update properties of this object
|
1465
1502
|
def update!(**args)
|
1503
|
+
@disabled = args[:disabled] if args.key?(:disabled)
|
1466
1504
|
@key_algorithm = args[:key_algorithm] if args.key?(:key_algorithm)
|
1467
1505
|
@key_origin = args[:key_origin] if args.key?(:key_origin)
|
1468
1506
|
@key_type = args[:key_type] if args.key?(:key_type)
|
@@ -1481,31 +1519,31 @@ module Google
|
|
1481
1519
|
|
1482
1520
|
# An Identity and Access Management (IAM) policy, which specifies access
|
1483
1521
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
1484
|
-
# A `binding` binds one or more `members
|
1485
|
-
# user accounts, service accounts, Google groups, and domains (
|
1486
|
-
# A `role` is a named list of permissions; each `role` can be
|
1487
|
-
# role or a user-created custom role. For some types of Google
|
1488
|
-
# a `binding` can also specify a `condition`, which is a
|
1489
|
-
# allows access to a resource only if the expression
|
1490
|
-
# condition can add constraints based on attributes of
|
1491
|
-
# or both. To learn which resources support
|
1492
|
-
# see the [IAM documentation](https://cloud.
|
1493
|
-
# resource-policies). **JSON example:** ` "
|
1494
|
-
# resourcemanager.organizationAdmin", "members": [
|
1495
|
-
# group:admins@example.com", "domain:google.com", "
|
1496
|
-
# appspot.gserviceaccount.com" ] `, ` "role": "
|
1497
|
-
# organizationViewer", "members": [ "user:eve@example.com"
|
1498
|
-
# title": "expirable access", "description": "Does not grant
|
1499
|
-
# 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
1500
|
-
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
1501
|
-
# members: - user:mike@example.com - group:admins@example.com -
|
1502
|
-
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
1503
|
-
# resourcemanager.organizationAdmin - members: - user:eve@example.
|
1504
|
-
# roles/resourcemanager.organizationViewer condition: title: expirable
|
1505
|
-
# description: Does not grant access after Sep 2020 expression: request.
|
1506
|
-
# timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
1507
|
-
# description of IAM and its features, see the [IAM documentation](https://
|
1508
|
-
# google.com/iam/docs/).
|
1522
|
+
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
1523
|
+
# Principals can be user accounts, service accounts, Google groups, and domains (
|
1524
|
+
# such as G Suite). A `role` is a named list of permissions; each `role` can be
|
1525
|
+
# an IAM predefined role or a user-created custom role. For some types of Google
|
1526
|
+
# Cloud resources, a `binding` can also specify a `condition`, which is a
|
1527
|
+
# logical expression that allows access to a resource only if the expression
|
1528
|
+
# evaluates to `true`. A condition can add constraints based on attributes of
|
1529
|
+
# the request, the resource, or both. To learn which resources support
|
1530
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1531
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
1532
|
+
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
1533
|
+
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
1534
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
1535
|
+
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
1536
|
+
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
1537
|
+
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
1538
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
1539
|
+
# bindings: - members: - user:mike@example.com - group:admins@example.com -
|
1540
|
+
# domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
1541
|
+
# role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
|
1542
|
+
# com role: roles/resourcemanager.organizationViewer condition: title: expirable
|
1543
|
+
# access description: Does not grant access after Sep 2020 expression: request.
|
1544
|
+
# time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
1545
|
+
# a description of IAM and its features, see the [IAM documentation](https://
|
1546
|
+
# cloud.google.com/iam/docs/).
|
1509
1547
|
# Corresponds to the JSON property `policy`
|
1510
1548
|
# @return [Google::Apis::IamV1::Policy]
|
1511
1549
|
attr_accessor :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.
|
19
|
+
GEM_VERSION = "0.15.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 = "
|
25
|
+
REVISION = "20211013"
|
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'
|
@@ -116,6 +116,68 @@ module Google
|
|
116
116
|
execute_or_queue_command(command, &block)
|
117
117
|
end
|
118
118
|
|
119
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
120
|
+
# to poll the operation result at intervals as recommended by the API service.
|
121
|
+
# @param [String] name
|
122
|
+
# The name of the operation resource.
|
123
|
+
# @param [String] fields
|
124
|
+
# Selector specifying which fields to include in a partial response.
|
125
|
+
# @param [String] quota_user
|
126
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
127
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
128
|
+
# @param [Google::Apis::RequestOptions] options
|
129
|
+
# Request-specific options
|
130
|
+
#
|
131
|
+
# @yield [result, err] Result & error if block supplied
|
132
|
+
# @yieldparam result [Google::Apis::IamV1::Operation] parsed result object
|
133
|
+
# @yieldparam err [StandardError] error object if request failed
|
134
|
+
#
|
135
|
+
# @return [Google::Apis::IamV1::Operation]
|
136
|
+
#
|
137
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
138
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
139
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
140
|
+
def get_location_workforce_pool_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
141
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
142
|
+
command.response_representation = Google::Apis::IamV1::Operation::Representation
|
143
|
+
command.response_class = Google::Apis::IamV1::Operation
|
144
|
+
command.params['name'] = name unless name.nil?
|
145
|
+
command.query['fields'] = fields unless fields.nil?
|
146
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
147
|
+
execute_or_queue_command(command, &block)
|
148
|
+
end
|
149
|
+
|
150
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
151
|
+
# to poll the operation result at intervals as recommended by the API service.
|
152
|
+
# @param [String] name
|
153
|
+
# The name of the operation resource.
|
154
|
+
# @param [String] fields
|
155
|
+
# Selector specifying which fields to include in a partial response.
|
156
|
+
# @param [String] quota_user
|
157
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
158
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
159
|
+
# @param [Google::Apis::RequestOptions] options
|
160
|
+
# Request-specific options
|
161
|
+
#
|
162
|
+
# @yield [result, err] Result & error if block supplied
|
163
|
+
# @yieldparam result [Google::Apis::IamV1::Operation] parsed result object
|
164
|
+
# @yieldparam err [StandardError] error object if request failed
|
165
|
+
#
|
166
|
+
# @return [Google::Apis::IamV1::Operation]
|
167
|
+
#
|
168
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
169
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
170
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
171
|
+
def get_location_workforce_pool_provider_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
172
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
173
|
+
command.response_representation = Google::Apis::IamV1::Operation::Representation
|
174
|
+
command.response_class = Google::Apis::IamV1::Operation
|
175
|
+
command.params['name'] = name unless name.nil?
|
176
|
+
command.query['fields'] = fields unless fields.nil?
|
177
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
178
|
+
execute_or_queue_command(command, &block)
|
179
|
+
end
|
180
|
+
|
119
181
|
# Creates a new custom Role.
|
120
182
|
# @param [String] parent
|
121
183
|
# The `parent` parameter's value depends on the target resource for the request,
|
@@ -162,7 +224,7 @@ module Google
|
|
162
224
|
end
|
163
225
|
|
164
226
|
# Deletes a custom Role. When you delete a custom role, the following changes
|
165
|
-
# occur immediately: * You cannot bind a
|
227
|
+
# occur immediately: * You cannot bind a principal to the custom role in an IAM
|
166
228
|
# Policy. * Existing bindings to the custom role are not changed, but they have
|
167
229
|
# no effect. * By default, the response from ListRoles does not include the
|
168
230
|
# custom role. You have 7 days to undelete the custom role. After 7 days, the
|
@@ -424,7 +486,8 @@ module Google
|
|
424
486
|
end
|
425
487
|
|
426
488
|
# Lists every permission that you can test on a resource. A permission is
|
427
|
-
# testable if you can check whether a
|
489
|
+
# testable if you can check whether a principal has that permission on the
|
490
|
+
# resource.
|
428
491
|
# @param [Google::Apis::IamV1::QueryTestablePermissionsRequest] query_testable_permissions_request_object
|
429
492
|
# @param [String] fields
|
430
493
|
# Selector specifying which fields to include in a partial response.
|
@@ -608,7 +671,7 @@ module Google
|
|
608
671
|
# Output only. The resource name of the pool.
|
609
672
|
# @param [Google::Apis::IamV1::WorkloadIdentityPool] workload_identity_pool_object
|
610
673
|
# @param [String] update_mask
|
611
|
-
# Required. The list of fields update.
|
674
|
+
# Required. The list of fields to update.
|
612
675
|
# @param [String] fields
|
613
676
|
# Selector specifying which fields to include in a partial response.
|
614
677
|
# @param [String] quota_user
|
@@ -997,7 +1060,7 @@ module Google
|
|
997
1060
|
end
|
998
1061
|
|
999
1062
|
# Deletes a custom Role. When you delete a custom role, the following changes
|
1000
|
-
# occur immediately: * You cannot bind a
|
1063
|
+
# occur immediately: * You cannot bind a principal to the custom role in an IAM
|
1001
1064
|
# Policy. * Existing bindings to the custom role are not changed, but they have
|
1002
1065
|
# no effect. * By default, the response from ListRoles does not include the
|
1003
1066
|
# custom role. You have 7 days to undelete the custom role. After 7 days, the
|
@@ -1454,13 +1517,13 @@ module Google
|
|
1454
1517
|
end
|
1455
1518
|
|
1456
1519
|
# Gets the IAM policy that is attached to a ServiceAccount. This IAM policy
|
1457
|
-
# specifies which
|
1458
|
-
# not tell you whether the service account has been granted any roles on
|
1459
|
-
# resources. To check whether a service account has role grants on a
|
1460
|
-
# use the `getIamPolicy` method for that resource. For example, to
|
1461
|
-
# grants for a project, call the Resource Manager API's [`projects.
|
1462
|
-
# (https://cloud.google.com/resource-manager/reference/rest/v1/
|
1463
|
-
# getIamPolicy) method.
|
1520
|
+
# specifies which principals have access to the service account. This method
|
1521
|
+
# does not tell you whether the service account has been granted any roles on
|
1522
|
+
# other resources. To check whether a service account has role grants on a
|
1523
|
+
# resource, use the `getIamPolicy` method for that resource. For example, to
|
1524
|
+
# view the role grants for a project, call the Resource Manager API's [`projects.
|
1525
|
+
# getIamPolicy`](https://cloud.google.com/resource-manager/reference/rest/v1/
|
1526
|
+
# projects/getIamPolicy) method.
|
1464
1527
|
# @param [String] resource
|
1465
1528
|
# REQUIRED: The resource for which the policy is being requested. See the
|
1466
1529
|
# operation documentation for the appropriate value for this field.
|
@@ -1585,15 +1648,16 @@ module Google
|
|
1585
1648
|
|
1586
1649
|
# Sets the IAM policy that is attached to a ServiceAccount. Use this method to
|
1587
1650
|
# grant or revoke access to the service account. For example, you could grant a
|
1588
|
-
#
|
1651
|
+
# principal the ability to impersonate the service account. This method does not
|
1589
1652
|
# enable the service account to access other resources. To grant roles to a
|
1590
1653
|
# service account on a resource, follow these steps: 1. Call the resource's `
|
1591
1654
|
# getIamPolicy` method to get its current IAM policy. 2. Edit the policy so that
|
1592
1655
|
# it binds the service account to an IAM role for the resource. 3. Call the
|
1593
1656
|
# resource's `setIamPolicy` method to update its IAM policy. For detailed
|
1594
|
-
# instructions, see [
|
1595
|
-
#
|
1596
|
-
# accounts).
|
1657
|
+
# instructions, see [Manage access to project, folders, and organizations](https:
|
1658
|
+
# //cloud.google.com/iam/help/service-accounts/granting-access-to-service-
|
1659
|
+
# accounts) or [Manage access to other resources](https://cloud.google.com/iam/
|
1660
|
+
# help/access/manage-other-resources).
|
1597
1661
|
# @param [String] resource
|
1598
1662
|
# REQUIRED: The resource for which the policy is being specified. See the
|
1599
1663
|
# operation documentation for the appropriate value for this field.
|
@@ -1901,6 +1965,81 @@ module Google
|
|
1901
1965
|
execute_or_queue_command(command, &block)
|
1902
1966
|
end
|
1903
1967
|
|
1968
|
+
# Disable a ServiceAccountKey. A disabled service account key can be enabled
|
1969
|
+
# through EnableServiceAccountKey.
|
1970
|
+
# @param [String] name
|
1971
|
+
# Required. The resource name of the service account key in the following format:
|
1972
|
+
# `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT`/keys/`key``. Using `-` as a
|
1973
|
+
# wildcard for the `PROJECT_ID` will infer the project from the account. The `
|
1974
|
+
# ACCOUNT` value can be the `email` address or the `unique_id` of the service
|
1975
|
+
# account.
|
1976
|
+
# @param [Google::Apis::IamV1::DisableServiceAccountKeyRequest] disable_service_account_key_request_object
|
1977
|
+
# @param [String] fields
|
1978
|
+
# Selector specifying which fields to include in a partial response.
|
1979
|
+
# @param [String] quota_user
|
1980
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1981
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1982
|
+
# @param [Google::Apis::RequestOptions] options
|
1983
|
+
# Request-specific options
|
1984
|
+
#
|
1985
|
+
# @yield [result, err] Result & error if block supplied
|
1986
|
+
# @yieldparam result [Google::Apis::IamV1::Empty] parsed result object
|
1987
|
+
# @yieldparam err [StandardError] error object if request failed
|
1988
|
+
#
|
1989
|
+
# @return [Google::Apis::IamV1::Empty]
|
1990
|
+
#
|
1991
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1992
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1993
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1994
|
+
def disable_service_account_key(name, disable_service_account_key_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1995
|
+
command = make_simple_command(:post, 'v1/{+name}:disable', options)
|
1996
|
+
command.request_representation = Google::Apis::IamV1::DisableServiceAccountKeyRequest::Representation
|
1997
|
+
command.request_object = disable_service_account_key_request_object
|
1998
|
+
command.response_representation = Google::Apis::IamV1::Empty::Representation
|
1999
|
+
command.response_class = Google::Apis::IamV1::Empty
|
2000
|
+
command.params['name'] = name unless name.nil?
|
2001
|
+
command.query['fields'] = fields unless fields.nil?
|
2002
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2003
|
+
execute_or_queue_command(command, &block)
|
2004
|
+
end
|
2005
|
+
|
2006
|
+
# Enable a ServiceAccountKey.
|
2007
|
+
# @param [String] name
|
2008
|
+
# Required. The resource name of the service account key in the following format:
|
2009
|
+
# `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT`/keys/`key``. Using `-` as a
|
2010
|
+
# wildcard for the `PROJECT_ID` will infer the project from the account. The `
|
2011
|
+
# ACCOUNT` value can be the `email` address or the `unique_id` of the service
|
2012
|
+
# account.
|
2013
|
+
# @param [Google::Apis::IamV1::EnableServiceAccountKeyRequest] enable_service_account_key_request_object
|
2014
|
+
# @param [String] fields
|
2015
|
+
# Selector specifying which fields to include in a partial response.
|
2016
|
+
# @param [String] quota_user
|
2017
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2018
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2019
|
+
# @param [Google::Apis::RequestOptions] options
|
2020
|
+
# Request-specific options
|
2021
|
+
#
|
2022
|
+
# @yield [result, err] Result & error if block supplied
|
2023
|
+
# @yieldparam result [Google::Apis::IamV1::Empty] parsed result object
|
2024
|
+
# @yieldparam err [StandardError] error object if request failed
|
2025
|
+
#
|
2026
|
+
# @return [Google::Apis::IamV1::Empty]
|
2027
|
+
#
|
2028
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2029
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2030
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2031
|
+
def enable_service_account_key(name, enable_service_account_key_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2032
|
+
command = make_simple_command(:post, 'v1/{+name}:enable', options)
|
2033
|
+
command.request_representation = Google::Apis::IamV1::EnableServiceAccountKeyRequest::Representation
|
2034
|
+
command.request_object = enable_service_account_key_request_object
|
2035
|
+
command.response_representation = Google::Apis::IamV1::Empty::Representation
|
2036
|
+
command.response_class = Google::Apis::IamV1::Empty
|
2037
|
+
command.params['name'] = name unless name.nil?
|
2038
|
+
command.query['fields'] = fields unless fields.nil?
|
2039
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2040
|
+
execute_or_queue_command(command, &block)
|
2041
|
+
end
|
2042
|
+
|
1904
2043
|
# Gets a ServiceAccountKey.
|
1905
2044
|
# @param [String] name
|
1906
2045
|
# 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.
|
4
|
+
version: 0.15.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-
|
11
|
+
date: 2021-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,9 +58,9 @@ licenses:
|
|
58
58
|
- Apache-2.0
|
59
59
|
metadata:
|
60
60
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
61
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
62
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-iam_v1/v0.
|
63
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-iam_v1/CHANGELOG.md
|
62
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-iam_v1/v0.15.0
|
63
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-iam_v1
|
64
64
|
post_install_message:
|
65
65
|
rdoc_options: []
|
66
66
|
require_paths:
|