google-apis-cloudasset_v1p7beta1 0.10.0 → 0.14.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: '0899c7fc2001d5715a8d1c557c64b2561c67d423c4a4499cbb692368542e5d3c'
4
- data.tar.gz: b023c2dfbf69bae59fce97a550ac86b9689deaae6b08808b67702866c26bc95d
3
+ metadata.gz: 29fc313ec87c1f2adff77d46730b7be207183ba182d31d9b8527d35556fd3572
4
+ data.tar.gz: '081fbd9e1243228b9615369348f33fe284c7a0be3fdbcfd1fa125562f88f1318'
5
5
  SHA512:
6
- metadata.gz: 38a4f435bafdbddaa4b8620af66a9ed2e475bdbe5f2e8b0466a5b98c4e1dcdd35514846f8d5204c5d32dd77d55f9347bab46aec71a1631e9050e244eacdd98ab
7
- data.tar.gz: d3e571e9fe06ca122196a195eb1f8466dba0752c417f7da83b17c1bfcf4347787877e8fee8b22a26f89670c91c774fa53f219ac0a6c9d9a4b2840b37bf587ef4
6
+ metadata.gz: 15d493e952092327ace03149ff26385661946b86fb90934385eb125746896bfa5bf2c7039f5ef7b74af49c3f7f92e5fc5519381d24c2e7d48e97ec75d51afed2
7
+ data.tar.gz: f43f66efaaaf1cf35d4d96729548249e186c291f082edfa802831aa6eb83055a60e6c70c5d6633e16d16f29815f417d46fd6ee20996972493dca56c9dbbde506
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-cloudasset_v1p7beta1
2
2
 
3
+ ### v0.14.0 (2021-12-14)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.13.0 (2021-12-02)
8
+
9
+ * Regenerated from discovery document revision 20211125
10
+
11
+ ### v0.12.0 (2021-10-20)
12
+
13
+ * Regenerated from discovery document revision 20211015
14
+
15
+ ### v0.11.0 (2021-09-01)
16
+
17
+ * Regenerated from discovery document revision 20210813
18
+
3
19
  ### v0.10.0 (2021-07-28)
4
20
 
5
21
  * Regenerated from discovery document revision 20210723
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/cloudasset_v1p7beta1"
51
51
  client = Google::Apis::CloudassetV1p7beta1::CloudAssetService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -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/master/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/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
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 Cloudasset service in particular.)
67
67
 
@@ -22,6 +22,26 @@ module Google
22
22
  module Apis
23
23
  module CloudassetV1p7beta1
24
24
 
25
+ # Represents the metadata of the longrunning operation for the
26
+ # AnalyzeIamPolicyLongrunning rpc.
27
+ class AnalyzeIamPolicyLongrunningMetadata
28
+ include Google::Apis::Core::Hashable
29
+
30
+ # Output only. The time the operation was created.
31
+ # Corresponds to the JSON property `createTime`
32
+ # @return [String]
33
+ attr_accessor :create_time
34
+
35
+ def initialize(**args)
36
+ update!(**args)
37
+ end
38
+
39
+ # Update properties of this object
40
+ def update!(**args)
41
+ @create_time = args[:create_time] if args.key?(:create_time)
42
+ end
43
+ end
44
+
25
45
  # A response message for AssetService.AnalyzeIamPolicyLongrunning.
26
46
  class AnalyzeIamPolicyLongrunningResponse
27
47
  include Google::Apis::Core::Hashable
@@ -106,7 +126,7 @@ module Google
106
126
  end
107
127
  end
108
128
 
109
- # Associates `members` with a `role`.
129
+ # Associates `members`, or principals, with a `role`.
110
130
  class Binding
111
131
  include Google::Apis::Core::Hashable
112
132
 
@@ -129,7 +149,7 @@ module Google
129
149
  # @return [Google::Apis::CloudassetV1p7beta1::Expr]
130
150
  attr_accessor :condition
131
151
 
132
- # Specifies the identities requesting access for a Cloud Platform resource. `
152
+ # Specifies the principals requesting access for a Cloud Platform resource. `
133
153
  # members` can have the following values: * `allUsers`: A special identifier
134
154
  # that represents anyone who is on the internet; with or without a Google
135
155
  # account. * `allAuthenticatedUsers`: A special identifier that represents
@@ -159,8 +179,8 @@ module Google
159
179
  # @return [Array<String>]
160
180
  attr_accessor :members
161
181
 
162
- # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
163
- # , or `roles/owner`.
182
+ # Role that is assigned to the list of `members`, or principals. For example, `
183
+ # roles/viewer`, `roles/editor`, or `roles/owner`.
164
184
  # Corresponds to the JSON property `role`
165
185
  # @return [String]
166
186
  attr_accessor :role
@@ -275,31 +295,31 @@ module Google
275
295
 
276
296
  # An Identity and Access Management (IAM) policy, which specifies access
277
297
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
278
- # A `binding` binds one or more `members` to a single `role`. Members can be
279
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
280
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
281
- # role or a user-created custom role. For some types of Google Cloud resources,
282
- # a `binding` can also specify a `condition`, which is a logical expression that
283
- # allows access to a resource only if the expression evaluates to `true`. A
284
- # condition can add constraints based on attributes of the request, the resource,
285
- # or both. To learn which resources support conditions in their IAM policies,
286
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
287
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
288
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
289
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
290
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
291
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
292
- # title": "expirable access", "description": "Does not grant access after Sep
293
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
294
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
295
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
296
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
297
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
298
- # roles/resourcemanager.organizationViewer condition: title: expirable access
299
- # description: Does not grant access after Sep 2020 expression: request.time <
300
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
301
- # description of IAM and its features, see the [IAM documentation](https://cloud.
302
- # google.com/iam/docs/).
298
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
299
+ # Principals can be user accounts, service accounts, Google groups, and domains (
300
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
301
+ # an IAM predefined role or a user-created custom role. For some types of Google
302
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
303
+ # logical expression that allows access to a resource only if the expression
304
+ # evaluates to `true`. A condition can add constraints based on attributes of
305
+ # the request, the resource, or both. To learn which resources support
306
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
307
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
308
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
309
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
310
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
311
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
312
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
313
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
314
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
315
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
316
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
317
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
318
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
319
+ # access description: Does not grant access after Sep 2020 expression: request.
320
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
321
+ # a description of IAM and its features, see the [IAM documentation](https://
322
+ # cloud.google.com/iam/docs/).
303
323
  # Corresponds to the JSON property `iamPolicy`
304
324
  # @return [Google::Apis::CloudassetV1p7beta1::Policy]
305
325
  attr_accessor :iam_policy
@@ -1123,6 +1143,21 @@ module Google
1123
1143
  # @return [String]
1124
1144
  attr_accessor :parent
1125
1145
 
1146
+ # The scopes of a policy define which resources an ACM policy can restrict, and
1147
+ # where ACM resources can be referenced. For example, a policy with scopes=["
1148
+ # folders/123"] has the following behavior: - vpcsc perimeters can only restrict
1149
+ # projects within folders/123 - access levels can only be referenced by
1150
+ # resources within folders/123. If empty, there are no limitations on which
1151
+ # resources can be restricted by an ACM policy, and there are no limitations on
1152
+ # where ACM resources can be referenced. Only one policy can include a given
1153
+ # scope (attempting to create a second policy which includes "folders/123" will
1154
+ # result in an error). Currently, scopes cannot be modified after a policy is
1155
+ # created. Currently, policies can only have a single scope. Format: list of `
1156
+ # folders/`folder_number`` or `projects/`project_number``
1157
+ # Corresponds to the JSON property `scopes`
1158
+ # @return [Array<String>]
1159
+ attr_accessor :scopes
1160
+
1126
1161
  # Required. Human readable title. Does not affect behavior.
1127
1162
  # Corresponds to the JSON property `title`
1128
1163
  # @return [String]
@@ -1137,6 +1172,7 @@ module Google
1137
1172
  @etag = args[:etag] if args.key?(:etag)
1138
1173
  @name = args[:name] if args.key?(:name)
1139
1174
  @parent = args[:parent] if args.key?(:parent)
1175
+ @scopes = args[:scopes] if args.key?(:scopes)
1140
1176
  @title = args[:title] if args.key?(:title)
1141
1177
  end
1142
1178
  end
@@ -1935,31 +1971,31 @@ module Google
1935
1971
 
1936
1972
  # An Identity and Access Management (IAM) policy, which specifies access
1937
1973
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1938
- # A `binding` binds one or more `members` to a single `role`. Members can be
1939
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
1940
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
1941
- # role or a user-created custom role. For some types of Google Cloud resources,
1942
- # a `binding` can also specify a `condition`, which is a logical expression that
1943
- # allows access to a resource only if the expression evaluates to `true`. A
1944
- # condition can add constraints based on attributes of the request, the resource,
1945
- # or both. To learn which resources support conditions in their IAM policies,
1946
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1947
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1948
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1949
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1950
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1951
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1952
- # title": "expirable access", "description": "Does not grant access after Sep
1953
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1954
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1955
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
1956
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1957
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1958
- # roles/resourcemanager.organizationViewer condition: title: expirable access
1959
- # description: Does not grant access after Sep 2020 expression: request.time <
1960
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1961
- # description of IAM and its features, see the [IAM documentation](https://cloud.
1962
- # google.com/iam/docs/).
1974
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
1975
+ # Principals can be user accounts, service accounts, Google groups, and domains (
1976
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
1977
+ # an IAM predefined role or a user-created custom role. For some types of Google
1978
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
1979
+ # logical expression that allows access to a resource only if the expression
1980
+ # evaluates to `true`. A condition can add constraints based on attributes of
1981
+ # the request, the resource, or both. To learn which resources support
1982
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1983
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
1984
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
1985
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
1986
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
1987
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
1988
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
1989
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
1990
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
1991
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
1992
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
1993
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
1994
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
1995
+ # access description: Does not grant access after Sep 2020 expression: request.
1996
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
1997
+ # a description of IAM and its features, see the [IAM documentation](https://
1998
+ # cloud.google.com/iam/docs/).
1963
1999
  class Policy
1964
2000
  include Google::Apis::Core::Hashable
1965
2001
 
@@ -1968,9 +2004,14 @@ module Google
1968
2004
  # @return [Array<Google::Apis::CloudassetV1p7beta1::AuditConfig>]
1969
2005
  attr_accessor :audit_configs
1970
2006
 
1971
- # Associates a list of `members` to a `role`. Optionally, may specify a `
1972
- # condition` that determines how and when the `bindings` are applied. Each of
1973
- # the `bindings` must contain at least one member.
2007
+ # Associates a list of `members`, or principals, with a `role`. Optionally, may
2008
+ # specify a `condition` that determines how and when the `bindings` are applied.
2009
+ # Each of the `bindings` must contain at least one principal. The `bindings` in
2010
+ # a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
2011
+ # can be Google groups. Each occurrence of a principal counts towards these
2012
+ # limits. For example, if the `bindings` grant 50 different roles to `user:alice@
2013
+ # example.com`, and not to any other principal, then you can add another 1,450
2014
+ # principals to the `bindings` in the `Policy`.
1974
2015
  # Corresponds to the JSON property `bindings`
1975
2016
  # @return [Array<Google::Apis::CloudassetV1p7beta1::Binding>]
1976
2017
  attr_accessor :bindings
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudassetV1p7beta1
18
18
  # Version of the google-apis-cloudasset_v1p7beta1 gem
19
- GEM_VERSION = "0.10.0"
19
+ GEM_VERSION = "0.14.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 = "20210723"
25
+ REVISION = "20211125"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,12 @@ module Google
22
22
  module Apis
23
23
  module CloudassetV1p7beta1
24
24
 
25
+ class AnalyzeIamPolicyLongrunningMetadata
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
25
31
  class AnalyzeIamPolicyLongrunningResponse
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
@@ -268,6 +274,13 @@ module Google
268
274
  include Google::Apis::Core::JsonObjectSupport
269
275
  end
270
276
 
277
+ class AnalyzeIamPolicyLongrunningMetadata
278
+ # @private
279
+ class Representation < Google::Apis::Core::JsonRepresentation
280
+ property :create_time, as: 'createTime'
281
+ end
282
+ end
283
+
271
284
  class AnalyzeIamPolicyLongrunningResponse
272
285
  # @private
273
286
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -485,6 +498,7 @@ module Google
485
498
  property :etag, as: 'etag'
486
499
  property :name, as: 'name'
487
500
  property :parent, as: 'parent'
501
+ collection :scopes, as: 'scopes'
488
502
  property :title, as: 'title'
489
503
  end
490
504
  end
@@ -29,7 +29,7 @@ module Google
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1p7beta1'
31
31
 
32
- # See, edit, configure, and delete your Google Cloud Platform data
32
+ # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
34
  end
35
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudasset_v1p7beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.14.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: 2022-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudasset_v1p7beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudasset_v1p7beta1/v0.10.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudasset_v1p7beta1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudasset_v1p7beta1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudasset_v1p7beta1/v0.14.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudasset_v1p7beta1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths:
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.4
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Asset API V1p7beta1