google-apis-cloudasset_v1p4beta1 0.9.0 → 0.13.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: 75e19248b8886bb588815c5e9cbe1bb760fc75099f1c49fdb9c5e29739298859
4
- data.tar.gz: '018bd5df0a33a44931cfa0cacd04f6642a90a09d97959af2401355a4506bddf8'
3
+ metadata.gz: 76e03138f8944ea3c83a80085359d8815d8fdd065894060b7bb75a26fb9d8085
4
+ data.tar.gz: 96e1d8652e1588fce5ae66a51f4415755c940c4ae3cdd44d4de274b31f227e28
5
5
  SHA512:
6
- metadata.gz: 0d5e6a477929500bc33fe1fdb3e4a9996b9b7ebddef4868f8ce0a288f5dc140f3ea8cbd86c12c2f1725607cdabe299317353e428b9628cf52e5ddb56aa530f8b
7
- data.tar.gz: 86eff17333f0eeb5485d1314ce8af8737cd9de4db85a4c1609bf2e9033b2da091f418efb4ae8053c611b5436490f78fb29f1ad35c114513b62598862e72b5ec1
6
+ metadata.gz: 8811d9f06a76ae7484b1550d1579e93e4d4dd79f01c9dbd3b6fcb63090f9cd09c66c1bb68b6122c9f979ebacc9fe379882a85cd0bc4ac91d26d14599ba5dd257
7
+ data.tar.gz: cb2b2d7cb06772f83dc9adbdd42c67fa5a0876f0516ca1a599717c7858cd7973fe2d5e69c9d432da61d6511e4791aadeefb5cf3a89ff5513e78f4ce6d9a0c5b4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-cloudasset_v1p4beta1
2
2
 
3
+ ### v0.13.0 (2021-12-14)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.12.0 (2021-12-02)
8
+
9
+ * Regenerated from discovery document revision 20211125
10
+
11
+ ### v0.11.0 (2021-10-20)
12
+
13
+ * Regenerated from discovery document revision 20211015
14
+
15
+ ### v0.10.0 (2021-09-01)
16
+
17
+ * Regenerated from discovery document revision 20210813
18
+
3
19
  ### v0.9.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_v1p4beta1"
51
51
  client = Google::Apis::CloudassetV1p4beta1::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
 
@@ -51,6 +51,26 @@ module Google
51
51
  end
52
52
  end
53
53
 
54
+ # Represents the metadata of the longrunning operation for the
55
+ # AnalyzeIamPolicyLongrunning rpc.
56
+ class AnalyzeIamPolicyLongrunningMetadata
57
+ include Google::Apis::Core::Hashable
58
+
59
+ # Output only. The time the operation was created.
60
+ # Corresponds to the JSON property `createTime`
61
+ # @return [String]
62
+ attr_accessor :create_time
63
+
64
+ def initialize(**args)
65
+ update!(**args)
66
+ end
67
+
68
+ # Update properties of this object
69
+ def update!(**args)
70
+ @create_time = args[:create_time] if args.key?(:create_time)
71
+ end
72
+ end
73
+
54
74
  # A response message for AssetService.AnalyzeIamPolicyLongrunning.
55
75
  class AnalyzeIamPolicyLongrunningResponse
56
76
  include Google::Apis::Core::Hashable
@@ -177,7 +197,7 @@ module Google
177
197
  end
178
198
  end
179
199
 
180
- # Associates `members` with a `role`.
200
+ # Associates `members`, or principals, with a `role`.
181
201
  class Binding
182
202
  include Google::Apis::Core::Hashable
183
203
 
@@ -200,7 +220,7 @@ module Google
200
220
  # @return [Google::Apis::CloudassetV1p4beta1::Expr]
201
221
  attr_accessor :condition
202
222
 
203
- # Specifies the identities requesting access for a Cloud Platform resource. `
223
+ # Specifies the principals requesting access for a Cloud Platform resource. `
204
224
  # members` can have the following values: * `allUsers`: A special identifier
205
225
  # that represents anyone who is on the internet; with or without a Google
206
226
  # account. * `allAuthenticatedUsers`: A special identifier that represents
@@ -230,8 +250,8 @@ module Google
230
250
  # @return [Array<String>]
231
251
  attr_accessor :members
232
252
 
233
- # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
234
- # , or `roles/owner`.
253
+ # Role that is assigned to the list of `members`, or principals. For example, `
254
+ # roles/viewer`, `roles/editor`, or `roles/owner`.
235
255
  # Corresponds to the JSON property `role`
236
256
  # @return [String]
237
257
  attr_accessor :role
@@ -620,31 +640,31 @@ module Google
620
640
 
621
641
  # An Identity and Access Management (IAM) policy, which specifies access
622
642
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
623
- # A `binding` binds one or more `members` to a single `role`. Members can be
624
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
625
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
626
- # role or a user-created custom role. For some types of Google Cloud resources,
627
- # a `binding` can also specify a `condition`, which is a logical expression that
628
- # allows access to a resource only if the expression evaluates to `true`. A
629
- # condition can add constraints based on attributes of the request, the resource,
630
- # or both. To learn which resources support conditions in their IAM policies,
631
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
632
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
633
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
634
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
635
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
636
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
637
- # title": "expirable access", "description": "Does not grant access after Sep
638
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
639
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
640
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
641
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
642
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
643
- # roles/resourcemanager.organizationViewer condition: title: expirable access
644
- # description: Does not grant access after Sep 2020 expression: request.time <
645
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
646
- # description of IAM and its features, see the [IAM documentation](https://cloud.
647
- # google.com/iam/docs/).
643
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
644
+ # Principals can be user accounts, service accounts, Google groups, and domains (
645
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
646
+ # an IAM predefined role or a user-created custom role. For some types of Google
647
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
648
+ # logical expression that allows access to a resource only if the expression
649
+ # evaluates to `true`. A condition can add constraints based on attributes of
650
+ # the request, the resource, or both. To learn which resources support
651
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
652
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
653
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
654
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
655
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
656
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
657
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
658
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
659
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
660
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
661
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
662
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
663
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
664
+ # access description: Does not grant access after Sep 2020 expression: request.
665
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
666
+ # a description of IAM and its features, see the [IAM documentation](https://
667
+ # cloud.google.com/iam/docs/).
648
668
  # Corresponds to the JSON property `iamPolicy`
649
669
  # @return [Google::Apis::CloudassetV1p4beta1::Policy]
650
670
  attr_accessor :iam_policy
@@ -1252,6 +1272,21 @@ module Google
1252
1272
  # @return [String]
1253
1273
  attr_accessor :parent
1254
1274
 
1275
+ # The scopes of a policy define which resources an ACM policy can restrict, and
1276
+ # where ACM resources can be referenced. For example, a policy with scopes=["
1277
+ # folders/123"] has the following behavior: - vpcsc perimeters can only restrict
1278
+ # projects within folders/123 - access levels can only be referenced by
1279
+ # resources within folders/123. If empty, there are no limitations on which
1280
+ # resources can be restricted by an ACM policy, and there are no limitations on
1281
+ # where ACM resources can be referenced. Only one policy can include a given
1282
+ # scope (attempting to create a second policy which includes "folders/123" will
1283
+ # result in an error). Currently, scopes cannot be modified after a policy is
1284
+ # created. Currently, policies can only have a single scope. Format: list of `
1285
+ # folders/`folder_number`` or `projects/`project_number``
1286
+ # Corresponds to the JSON property `scopes`
1287
+ # @return [Array<String>]
1288
+ attr_accessor :scopes
1289
+
1255
1290
  # Required. Human readable title. Does not affect behavior.
1256
1291
  # Corresponds to the JSON property `title`
1257
1292
  # @return [String]
@@ -1266,6 +1301,7 @@ module Google
1266
1301
  @etag = args[:etag] if args.key?(:etag)
1267
1302
  @name = args[:name] if args.key?(:name)
1268
1303
  @parent = args[:parent] if args.key?(:parent)
1304
+ @scopes = args[:scopes] if args.key?(:scopes)
1269
1305
  @title = args[:title] if args.key?(:title)
1270
1306
  end
1271
1307
  end
@@ -2129,7 +2165,7 @@ module Google
2129
2165
  attr_accessor :fully_explored
2130
2166
  alias_method :fully_explored?, :fully_explored
2131
2167
 
2132
- # Associates `members` with a `role`.
2168
+ # Associates `members`, or principals, with a `role`.
2133
2169
  # Corresponds to the JSON property `iamBinding`
2134
2170
  # @return [Google::Apis::CloudassetV1p4beta1::Binding]
2135
2171
  attr_accessor :iam_binding
@@ -2330,31 +2366,31 @@ module Google
2330
2366
 
2331
2367
  # An Identity and Access Management (IAM) policy, which specifies access
2332
2368
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
2333
- # A `binding` binds one or more `members` to a single `role`. Members can be
2334
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
2335
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
2336
- # role or a user-created custom role. For some types of Google Cloud resources,
2337
- # a `binding` can also specify a `condition`, which is a logical expression that
2338
- # allows access to a resource only if the expression evaluates to `true`. A
2339
- # condition can add constraints based on attributes of the request, the resource,
2340
- # or both. To learn which resources support conditions in their IAM policies,
2341
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
2342
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
2343
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
2344
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
2345
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
2346
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
2347
- # title": "expirable access", "description": "Does not grant access after Sep
2348
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
2349
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
2350
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
2351
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
2352
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
2353
- # roles/resourcemanager.organizationViewer condition: title: expirable access
2354
- # description: Does not grant access after Sep 2020 expression: request.time <
2355
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
2356
- # description of IAM and its features, see the [IAM documentation](https://cloud.
2357
- # google.com/iam/docs/).
2369
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
2370
+ # Principals can be user accounts, service accounts, Google groups, and domains (
2371
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
2372
+ # an IAM predefined role or a user-created custom role. For some types of Google
2373
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
2374
+ # logical expression that allows access to a resource only if the expression
2375
+ # evaluates to `true`. A condition can add constraints based on attributes of
2376
+ # the request, the resource, or both. To learn which resources support
2377
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
2378
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
2379
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
2380
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
2381
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
2382
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
2383
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
2384
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
2385
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
2386
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
2387
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
2388
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
2389
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
2390
+ # access description: Does not grant access after Sep 2020 expression: request.
2391
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
2392
+ # a description of IAM and its features, see the [IAM documentation](https://
2393
+ # cloud.google.com/iam/docs/).
2358
2394
  class Policy
2359
2395
  include Google::Apis::Core::Hashable
2360
2396
 
@@ -2363,9 +2399,14 @@ module Google
2363
2399
  # @return [Array<Google::Apis::CloudassetV1p4beta1::AuditConfig>]
2364
2400
  attr_accessor :audit_configs
2365
2401
 
2366
- # Associates a list of `members` to a `role`. Optionally, may specify a `
2367
- # condition` that determines how and when the `bindings` are applied. Each of
2368
- # the `bindings` must contain at least one member.
2402
+ # Associates a list of `members`, or principals, with a `role`. Optionally, may
2403
+ # specify a `condition` that determines how and when the `bindings` are applied.
2404
+ # Each of the `bindings` must contain at least one principal. The `bindings` in
2405
+ # a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
2406
+ # can be Google groups. Each occurrence of a principal counts towards these
2407
+ # limits. For example, if the `bindings` grant 50 different roles to `user:alice@
2408
+ # example.com`, and not to any other principal, then you can add another 1,450
2409
+ # principals to the `bindings` in the `Policy`.
2369
2410
  # Corresponds to the JSON property `bindings`
2370
2411
  # @return [Array<Google::Apis::CloudassetV1p4beta1::Binding>]
2371
2412
  attr_accessor :bindings
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudassetV1p4beta1
18
18
  # Version of the google-apis-cloudasset_v1p4beta1 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 = "20210723"
25
+ REVISION = "20211125"
26
26
  end
27
27
  end
28
28
  end
@@ -28,6 +28,12 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class AnalyzeIamPolicyLongrunningMetadata
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
31
37
  class AnalyzeIamPolicyLongrunningResponse
32
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
39
 
@@ -354,6 +360,13 @@ module Google
354
360
  end
355
361
  end
356
362
 
363
+ class AnalyzeIamPolicyLongrunningMetadata
364
+ # @private
365
+ class Representation < Google::Apis::Core::JsonRepresentation
366
+ property :create_time, as: 'createTime'
367
+ end
368
+ end
369
+
357
370
  class AnalyzeIamPolicyLongrunningResponse
358
371
  # @private
359
372
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -620,6 +633,7 @@ module Google
620
633
  property :etag, as: 'etag'
621
634
  property :name, as: 'name'
622
635
  property :parent, as: 'parent'
636
+ collection :scopes, as: 'scopes'
623
637
  property :title, as: 'title'
624
638
  end
625
639
  end
@@ -29,7 +29,7 @@ module Google
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1p4beta1'
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_v1p4beta1
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: 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_v1p4beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudasset_v1p4beta1/v0.9.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudasset_v1p4beta1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudasset_v1p4beta1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudasset_v1p4beta1/v0.13.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudasset_v1p4beta1
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 V1p4beta1