google-api-client 0.39.0 → 0.39.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/generated/google/apis/bigquery_v2.rb +1 -1
  4. data/generated/google/apis/bigquery_v2/classes.rb +566 -0
  5. data/generated/google/apis/bigquery_v2/representations.rb +147 -0
  6. data/generated/google/apis/bigquery_v2/service.rb +120 -0
  7. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  8. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +26 -10
  9. data/generated/google/apis/books_v1.rb +3 -3
  10. data/generated/google/apis/books_v1/classes.rb +435 -289
  11. data/generated/google/apis/books_v1/representations.rb +124 -91
  12. data/generated/google/apis/books_v1/service.rb +354 -484
  13. data/generated/google/apis/chat_v1.rb +1 -1
  14. data/generated/google/apis/chat_v1/classes.rb +15 -0
  15. data/generated/google/apis/chat_v1/representations.rb +2 -0
  16. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  17. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  18. data/generated/google/apis/cloudfunctions_v1/classes.rb +24 -12
  19. data/generated/google/apis/cloudfunctions_v1/service.rb +3 -0
  20. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  21. data/generated/google/apis/cloudtasks_v2/classes.rb +26 -10
  22. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  23. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +26 -10
  24. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  25. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +26 -10
  26. data/generated/google/apis/logging_v2.rb +1 -1
  27. data/generated/google/apis/logging_v2/classes.rb +45 -32
  28. data/generated/google/apis/logging_v2/service.rb +9 -5
  29. data/generated/google/apis/monitoring_v3.rb +1 -1
  30. data/generated/google/apis/monitoring_v3/classes.rb +7 -5
  31. data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
  32. data/generated/google/apis/networkmanagement_v1beta1/classes.rb +26 -14
  33. data/generated/google/apis/networkmanagement_v1beta1/service.rb +9 -6
  34. data/generated/google/apis/osconfig_v1beta.rb +35 -0
  35. data/generated/google/apis/osconfig_v1beta/classes.rb +2365 -0
  36. data/generated/google/apis/osconfig_v1beta/representations.rb +966 -0
  37. data/generated/google/apis/osconfig_v1beta/service.rb +605 -0
  38. data/generated/google/apis/pubsub_v1.rb +1 -1
  39. data/generated/google/apis/pubsub_v1/classes.rb +36 -11
  40. data/generated/google/apis/pubsub_v1/representations.rb +1 -0
  41. data/generated/google/apis/pubsub_v1/service.rb +15 -6
  42. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  43. data/generated/google/apis/pubsub_v1beta2/classes.rb +23 -10
  44. data/generated/google/apis/pubsub_v1beta2/service.rb +10 -4
  45. data/generated/google/apis/servicedirectory_v1beta1.rb +1 -1
  46. data/generated/google/apis/servicedirectory_v1beta1/classes.rb +26 -10
  47. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  48. data/generated/google/apis/servicemanagement_v1/classes.rb +61 -26
  49. data/generated/google/apis/servicemanagement_v1/service.rb +4 -4
  50. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  51. data/generated/google/apis/toolresults_v1beta3/service.rb +1 -1
  52. data/generated/google/apis/vault_v1.rb +1 -1
  53. data/generated/google/apis/vault_v1/classes.rb +4 -1
  54. data/lib/google/apis/version.rb +1 -1
  55. metadata +7 -3
@@ -64,6 +64,18 @@ module Google
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
+ class AuditConfig
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class AuditLogConfig
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
67
79
  class BigQueryModelTraining
68
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
81
 
@@ -100,6 +112,12 @@ module Google
100
112
  include Google::Apis::Core::JsonObjectSupport
101
113
  end
102
114
 
115
+ class Binding
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
103
121
  class BqmlIterationResult
104
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
123
 
@@ -250,6 +268,12 @@ module Google
250
268
  include Google::Apis::Core::JsonObjectSupport
251
269
  end
252
270
 
271
+ class Expr
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
253
277
  class ExternalDataConfiguration
254
278
  class Representation < Google::Apis::Core::JsonRepresentation; end
255
279
 
@@ -262,6 +286,18 @@ module Google
262
286
  include Google::Apis::Core::JsonObjectSupport
263
287
  end
264
288
 
289
+ class GetIamPolicyRequest
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
295
+ class GetPolicyOptions
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
265
301
  class GetQueryResultsResponse
266
302
  class Representation < Google::Apis::Core::JsonRepresentation; end
267
303
 
@@ -448,6 +484,12 @@ module Google
448
484
  include Google::Apis::Core::JsonObjectSupport
449
485
  end
450
486
 
487
+ class Policy
488
+ class Representation < Google::Apis::Core::JsonRepresentation; end
489
+
490
+ include Google::Apis::Core::JsonObjectSupport
491
+ end
492
+
451
493
  class ProjectList
452
494
  class Representation < Google::Apis::Core::JsonRepresentation; end
453
495
 
@@ -574,6 +616,12 @@ module Google
574
616
  include Google::Apis::Core::JsonObjectSupport
575
617
  end
576
618
 
619
+ class SetIamPolicyRequest
620
+ class Representation < Google::Apis::Core::JsonRepresentation; end
621
+
622
+ include Google::Apis::Core::JsonObjectSupport
623
+ end
624
+
577
625
  class StandardSqlDataType
578
626
  class Representation < Google::Apis::Core::JsonRepresentation; end
579
627
 
@@ -694,6 +742,18 @@ module Google
694
742
  include Google::Apis::Core::JsonObjectSupport
695
743
  end
696
744
 
745
+ class TestIamPermissionsRequest
746
+ class Representation < Google::Apis::Core::JsonRepresentation; end
747
+
748
+ include Google::Apis::Core::JsonObjectSupport
749
+ end
750
+
751
+ class TestIamPermissionsResponse
752
+ class Representation < Google::Apis::Core::JsonRepresentation; end
753
+
754
+ include Google::Apis::Core::JsonObjectSupport
755
+ end
756
+
697
757
  class TimePartitioning
698
758
  class Representation < Google::Apis::Core::JsonRepresentation; end
699
759
 
@@ -799,6 +859,23 @@ module Google
799
859
  end
800
860
  end
801
861
 
862
+ class AuditConfig
863
+ # @private
864
+ class Representation < Google::Apis::Core::JsonRepresentation
865
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::BigqueryV2::AuditLogConfig, decorator: Google::Apis::BigqueryV2::AuditLogConfig::Representation
866
+
867
+ property :service, as: 'service'
868
+ end
869
+ end
870
+
871
+ class AuditLogConfig
872
+ # @private
873
+ class Representation < Google::Apis::Core::JsonRepresentation
874
+ collection :exempted_members, as: 'exemptedMembers'
875
+ property :log_type, as: 'logType'
876
+ end
877
+ end
878
+
802
879
  class BigQueryModelTraining
803
880
  # @private
804
881
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -868,6 +945,16 @@ module Google
868
945
  end
869
946
  end
870
947
 
948
+ class Binding
949
+ # @private
950
+ class Representation < Google::Apis::Core::JsonRepresentation
951
+ property :condition, as: 'condition', class: Google::Apis::BigqueryV2::Expr, decorator: Google::Apis::BigqueryV2::Expr::Representation
952
+
953
+ collection :members, as: 'members'
954
+ property :role, as: 'role'
955
+ end
956
+ end
957
+
871
958
  class BqmlIterationResult
872
959
  # @private
873
960
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1163,6 +1250,16 @@ module Google
1163
1250
  end
1164
1251
  end
1165
1252
 
1253
+ class Expr
1254
+ # @private
1255
+ class Representation < Google::Apis::Core::JsonRepresentation
1256
+ property :description, as: 'description'
1257
+ property :expression, as: 'expression'
1258
+ property :location, as: 'location'
1259
+ property :title, as: 'title'
1260
+ end
1261
+ end
1262
+
1166
1263
  class ExternalDataConfiguration
1167
1264
  # @private
1168
1265
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1195,6 +1292,21 @@ module Google
1195
1292
  end
1196
1293
  end
1197
1294
 
1295
+ class GetIamPolicyRequest
1296
+ # @private
1297
+ class Representation < Google::Apis::Core::JsonRepresentation
1298
+ property :options, as: 'options', class: Google::Apis::BigqueryV2::GetPolicyOptions, decorator: Google::Apis::BigqueryV2::GetPolicyOptions::Representation
1299
+
1300
+ end
1301
+ end
1302
+
1303
+ class GetPolicyOptions
1304
+ # @private
1305
+ class Representation < Google::Apis::Core::JsonRepresentation
1306
+ property :requested_policy_version, as: 'requestedPolicyVersion'
1307
+ end
1308
+ end
1309
+
1198
1310
  class GetQueryResultsResponse
1199
1311
  # @private
1200
1312
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1669,6 +1781,18 @@ module Google
1669
1781
  end
1670
1782
  end
1671
1783
 
1784
+ class Policy
1785
+ # @private
1786
+ class Representation < Google::Apis::Core::JsonRepresentation
1787
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::BigqueryV2::AuditConfig, decorator: Google::Apis::BigqueryV2::AuditConfig::Representation
1788
+
1789
+ collection :bindings, as: 'bindings', class: Google::Apis::BigqueryV2::Binding, decorator: Google::Apis::BigqueryV2::Binding::Representation
1790
+
1791
+ property :etag, :base64 => true, as: 'etag'
1792
+ property :version, as: 'version'
1793
+ end
1794
+ end
1795
+
1672
1796
  class ProjectList
1673
1797
  # @private
1674
1798
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1912,6 +2036,15 @@ module Google
1912
2036
  end
1913
2037
  end
1914
2038
 
2039
+ class SetIamPolicyRequest
2040
+ # @private
2041
+ class Representation < Google::Apis::Core::JsonRepresentation
2042
+ property :policy, as: 'policy', class: Google::Apis::BigqueryV2::Policy, decorator: Google::Apis::BigqueryV2::Policy::Representation
2043
+
2044
+ property :update_mask, as: 'updateMask'
2045
+ end
2046
+ end
2047
+
1915
2048
  class StandardSqlDataType
1916
2049
  # @private
1917
2050
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2148,6 +2281,20 @@ module Google
2148
2281
  end
2149
2282
  end
2150
2283
 
2284
+ class TestIamPermissionsRequest
2285
+ # @private
2286
+ class Representation < Google::Apis::Core::JsonRepresentation
2287
+ collection :permissions, as: 'permissions'
2288
+ end
2289
+ end
2290
+
2291
+ class TestIamPermissionsResponse
2292
+ # @private
2293
+ class Representation < Google::Apis::Core::JsonRepresentation
2294
+ collection :permissions, as: 'permissions'
2295
+ end
2296
+ end
2297
+
2151
2298
  class TimePartitioning
2152
2299
  # @private
2153
2300
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1213,6 +1213,45 @@ module Google
1213
1213
  execute_or_queue_command(command, &block)
1214
1214
  end
1215
1215
 
1216
+ # Gets the access control policy for a resource.
1217
+ # Returns an empty policy if the resource exists and does not have a policy
1218
+ # set.
1219
+ # @param [String] resource
1220
+ # REQUIRED: The resource for which the policy is being requested.
1221
+ # See the operation documentation for the appropriate value for this field.
1222
+ # @param [Google::Apis::BigqueryV2::GetIamPolicyRequest] get_iam_policy_request_object
1223
+ # @param [String] fields
1224
+ # Selector specifying which fields to include in a partial response.
1225
+ # @param [String] quota_user
1226
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1227
+ # characters.
1228
+ # @param [String] user_ip
1229
+ # Deprecated. Please use quotaUser instead.
1230
+ # @param [Google::Apis::RequestOptions] options
1231
+ # Request-specific options
1232
+ #
1233
+ # @yield [result, err] Result & error if block supplied
1234
+ # @yieldparam result [Google::Apis::BigqueryV2::Policy] parsed result object
1235
+ # @yieldparam err [StandardError] error object if request failed
1236
+ #
1237
+ # @return [Google::Apis::BigqueryV2::Policy]
1238
+ #
1239
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1240
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1241
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1242
+ def get_table_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1243
+ command = make_simple_command(:post, '{+resource}:getIamPolicy', options)
1244
+ command.request_representation = Google::Apis::BigqueryV2::GetIamPolicyRequest::Representation
1245
+ command.request_object = get_iam_policy_request_object
1246
+ command.response_representation = Google::Apis::BigqueryV2::Policy::Representation
1247
+ command.response_class = Google::Apis::BigqueryV2::Policy
1248
+ command.params['resource'] = resource unless resource.nil?
1249
+ command.query['fields'] = fields unless fields.nil?
1250
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1251
+ command.query['userIp'] = user_ip unless user_ip.nil?
1252
+ execute_or_queue_command(command, &block)
1253
+ end
1254
+
1216
1255
  # Creates a new, empty table in the dataset.
1217
1256
  # @param [String] project_id
1218
1257
  # Project ID of the new table
@@ -1338,6 +1377,87 @@ module Google
1338
1377
  execute_or_queue_command(command, &block)
1339
1378
  end
1340
1379
 
1380
+ # Sets the access control policy on the specified resource. Replaces any
1381
+ # existing policy.
1382
+ # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
1383
+ # @param [String] resource
1384
+ # REQUIRED: The resource for which the policy is being specified.
1385
+ # See the operation documentation for the appropriate value for this field.
1386
+ # @param [Google::Apis::BigqueryV2::SetIamPolicyRequest] set_iam_policy_request_object
1387
+ # @param [String] fields
1388
+ # Selector specifying which fields to include in a partial response.
1389
+ # @param [String] quota_user
1390
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1391
+ # characters.
1392
+ # @param [String] user_ip
1393
+ # Deprecated. Please use quotaUser instead.
1394
+ # @param [Google::Apis::RequestOptions] options
1395
+ # Request-specific options
1396
+ #
1397
+ # @yield [result, err] Result & error if block supplied
1398
+ # @yieldparam result [Google::Apis::BigqueryV2::Policy] parsed result object
1399
+ # @yieldparam err [StandardError] error object if request failed
1400
+ #
1401
+ # @return [Google::Apis::BigqueryV2::Policy]
1402
+ #
1403
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1404
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1405
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1406
+ def set_table_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1407
+ command = make_simple_command(:post, '{+resource}:setIamPolicy', options)
1408
+ command.request_representation = Google::Apis::BigqueryV2::SetIamPolicyRequest::Representation
1409
+ command.request_object = set_iam_policy_request_object
1410
+ command.response_representation = Google::Apis::BigqueryV2::Policy::Representation
1411
+ command.response_class = Google::Apis::BigqueryV2::Policy
1412
+ command.params['resource'] = resource unless resource.nil?
1413
+ command.query['fields'] = fields unless fields.nil?
1414
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1415
+ command.query['userIp'] = user_ip unless user_ip.nil?
1416
+ execute_or_queue_command(command, &block)
1417
+ end
1418
+
1419
+ # Returns permissions that a caller has on the specified resource.
1420
+ # If the resource does not exist, this will return an empty set of
1421
+ # permissions, not a `NOT_FOUND` error.
1422
+ # Note: This operation is designed to be used for building permission-aware
1423
+ # UIs and command-line tools, not for authorization checking. This operation
1424
+ # may "fail open" without warning.
1425
+ # @param [String] resource
1426
+ # REQUIRED: The resource for which the policy detail is being requested.
1427
+ # See the operation documentation for the appropriate value for this field.
1428
+ # @param [Google::Apis::BigqueryV2::TestIamPermissionsRequest] test_iam_permissions_request_object
1429
+ # @param [String] fields
1430
+ # Selector specifying which fields to include in a partial response.
1431
+ # @param [String] quota_user
1432
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1433
+ # characters.
1434
+ # @param [String] user_ip
1435
+ # Deprecated. Please use quotaUser instead.
1436
+ # @param [Google::Apis::RequestOptions] options
1437
+ # Request-specific options
1438
+ #
1439
+ # @yield [result, err] Result & error if block supplied
1440
+ # @yieldparam result [Google::Apis::BigqueryV2::TestIamPermissionsResponse] parsed result object
1441
+ # @yieldparam err [StandardError] error object if request failed
1442
+ #
1443
+ # @return [Google::Apis::BigqueryV2::TestIamPermissionsResponse]
1444
+ #
1445
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1446
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1447
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1448
+ def test_table_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1449
+ command = make_simple_command(:post, '{+resource}:testIamPermissions', options)
1450
+ command.request_representation = Google::Apis::BigqueryV2::TestIamPermissionsRequest::Representation
1451
+ command.request_object = test_iam_permissions_request_object
1452
+ command.response_representation = Google::Apis::BigqueryV2::TestIamPermissionsResponse::Representation
1453
+ command.response_class = Google::Apis::BigqueryV2::TestIamPermissionsResponse
1454
+ command.params['resource'] = resource unless resource.nil?
1455
+ command.query['fields'] = fields unless fields.nil?
1456
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1457
+ command.query['userIp'] = user_ip unless user_ip.nil?
1458
+ execute_or_queue_command(command, &block)
1459
+ end
1460
+
1341
1461
  # Updates information in an existing table. The update method replaces the
1342
1462
  # entire table resource, whereas the patch method only replaces fields that are
1343
1463
  # provided in the submitted table resource.
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/bigquery/
26
26
  module BigqueryconnectionV1beta1
27
27
  VERSION = 'V1beta1'
28
- REVISION = '20200415'
28
+ REVISION = '20200430'
29
29
 
30
30
  # View and manage your data in Google BigQuery
31
31
  AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
@@ -471,6 +471,9 @@ module Google
471
471
  # Requests for policies with any conditional bindings must specify version 3.
472
472
  # Policies without any conditional bindings may specify any valid value or
473
473
  # leave the field unset.
474
+ # To learn which resources support conditions in their IAM policies, see the
475
+ # [IAM
476
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
474
477
  # Corresponds to the JSON property `requestedPolicyVersion`
475
478
  # @return [Fixnum]
476
479
  attr_accessor :requested_policy_version
@@ -517,10 +520,13 @@ module Google
517
520
  # Google groups, and domains (such as G Suite). A `role` is a named list of
518
521
  # permissions; each `role` can be an IAM predefined role or a user-created
519
522
  # custom role.
520
- # Optionally, a `binding` can specify a `condition`, which is a logical
521
- # expression that allows access to a resource only if the expression evaluates
522
- # to `true`. A condition can add constraints based on attributes of the
523
- # request, the resource, or both.
523
+ # For some types of Google Cloud resources, a `binding` can also specify a
524
+ # `condition`, which is a logical expression that allows access to a resource
525
+ # only if the expression evaluates to `true`. A condition can add constraints
526
+ # based on attributes of the request, the resource, or both. To learn which
527
+ # resources support conditions in their IAM policies, see the
528
+ # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
529
+ # policies).
524
530
  # **JSON example:**
525
531
  # `
526
532
  # "bindings": [
@@ -535,7 +541,9 @@ module Google
535
541
  # `,
536
542
  # `
537
543
  # "role": "roles/resourcemanager.organizationViewer",
538
- # "members": ["user:eve@example.com"],
544
+ # "members": [
545
+ # "user:eve@example.com"
546
+ # ],
539
547
  # "condition": `
540
548
  # "title": "expirable access",
541
549
  # "description": "Does not grant access after Sep 2020",
@@ -613,6 +621,9 @@ module Google
613
621
  # the conditions in the version `3` policy are lost.
614
622
  # If a policy does not include any conditions, operations on that policy may
615
623
  # specify any valid version or leave the field unset.
624
+ # To learn which resources support conditions in their IAM policies, see the
625
+ # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
626
+ # policies).
616
627
  # Corresponds to the JSON property `version`
617
628
  # @return [Fixnum]
618
629
  attr_accessor :version
@@ -641,10 +652,13 @@ module Google
641
652
  # Google groups, and domains (such as G Suite). A `role` is a named list of
642
653
  # permissions; each `role` can be an IAM predefined role or a user-created
643
654
  # custom role.
644
- # Optionally, a `binding` can specify a `condition`, which is a logical
645
- # expression that allows access to a resource only if the expression evaluates
646
- # to `true`. A condition can add constraints based on attributes of the
647
- # request, the resource, or both.
655
+ # For some types of Google Cloud resources, a `binding` can also specify a
656
+ # `condition`, which is a logical expression that allows access to a resource
657
+ # only if the expression evaluates to `true`. A condition can add constraints
658
+ # based on attributes of the request, the resource, or both. To learn which
659
+ # resources support conditions in their IAM policies, see the
660
+ # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
661
+ # policies).
648
662
  # **JSON example:**
649
663
  # `
650
664
  # "bindings": [
@@ -659,7 +673,9 @@ module Google
659
673
  # `,
660
674
  # `
661
675
  # "role": "roles/resourcemanager.organizationViewer",
662
- # "members": ["user:eve@example.com"],
676
+ # "members": [
677
+ # "user:eve@example.com"
678
+ # ],
663
679
  # "condition": `
664
680
  # "title": "expirable access",
665
681
  # "description": "Does not grant access after Sep 2020",