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
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/pubsub/docs
26
26
  module PubsubV1
27
27
  VERSION = 'V1'
28
- REVISION = '20200312'
28
+ REVISION = '20200427'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -561,10 +561,13 @@ module Google
561
561
  # Google groups, and domains (such as G Suite). A `role` is a named list of
562
562
  # permissions; each `role` can be an IAM predefined role or a user-created
563
563
  # custom role.
564
- # Optionally, a `binding` can specify a `condition`, which is a logical
565
- # expression that allows access to a resource only if the expression evaluates
566
- # to `true`. A condition can add constraints based on attributes of the
567
- # request, the resource, or both.
564
+ # For some types of Google Cloud resources, a `binding` can also specify a
565
+ # `condition`, which is a logical expression that allows access to a resource
566
+ # only if the expression evaluates to `true`. A condition can add constraints
567
+ # based on attributes of the request, the resource, or both. To learn which
568
+ # resources support conditions in their IAM policies, see the
569
+ # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
570
+ # policies).
568
571
  # **JSON example:**
569
572
  # `
570
573
  # "bindings": [
@@ -579,7 +582,9 @@ module Google
579
582
  # `,
580
583
  # `
581
584
  # "role": "roles/resourcemanager.organizationViewer",
582
- # "members": ["user:eve@example.com"],
585
+ # "members": [
586
+ # "user:eve@example.com"
587
+ # ],
583
588
  # "condition": `
584
589
  # "title": "expirable access",
585
590
  # "description": "Does not grant access after Sep 2020",
@@ -652,6 +657,9 @@ module Google
652
657
  # the conditions in the version `3` policy are lost.
653
658
  # If a policy does not include any conditions, operations on that policy may
654
659
  # specify any valid version or leave the field unset.
660
+ # To learn which resources support conditions in their IAM policies, see the
661
+ # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
662
+ # policies).
655
663
  # Corresponds to the JSON property `version`
656
664
  # @return [Fixnum]
657
665
  attr_accessor :version
@@ -849,7 +857,7 @@ module Google
849
857
  attr_accessor :oidc_token
850
858
 
851
859
  # A URL locating the endpoint to which messages should be pushed.
852
- # For example, a Webhook endpoint might use "https://example.com/push".
860
+ # For example, a Webhook endpoint might use `https://example.com/push`.
853
861
  # Corresponds to the JSON property `pushEndpoint`
854
862
  # @return [String]
855
863
  attr_accessor :push_endpoint
@@ -977,10 +985,13 @@ module Google
977
985
  # Google groups, and domains (such as G Suite). A `role` is a named list of
978
986
  # permissions; each `role` can be an IAM predefined role or a user-created
979
987
  # custom role.
980
- # Optionally, a `binding` can specify a `condition`, which is a logical
981
- # expression that allows access to a resource only if the expression evaluates
982
- # to `true`. A condition can add constraints based on attributes of the
983
- # request, the resource, or both.
988
+ # For some types of Google Cloud resources, a `binding` can also specify a
989
+ # `condition`, which is a logical expression that allows access to a resource
990
+ # only if the expression evaluates to `true`. A condition can add constraints
991
+ # based on attributes of the request, the resource, or both. To learn which
992
+ # resources support conditions in their IAM policies, see the
993
+ # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
994
+ # policies).
984
995
  # **JSON example:**
985
996
  # `
986
997
  # "bindings": [
@@ -995,7 +1006,9 @@ module Google
995
1006
  # `,
996
1007
  # `
997
1008
  # "role": "roles/resourcemanager.organizationViewer",
998
- # "members": ["user:eve@example.com"],
1009
+ # "members": [
1010
+ # "user:eve@example.com"
1011
+ # ],
999
1012
  # "condition": `
1000
1013
  # "title": "expirable access",
1001
1014
  # "description": "Does not grant access after Sep 2020",
@@ -1131,6 +1144,17 @@ module Google
1131
1144
  # @return [Google::Apis::PubsubV1::ExpirationPolicy]
1132
1145
  attr_accessor :expiration_policy
1133
1146
 
1147
+ # An expression written in the Cloud Pub/Sub filter language. If non-empty,
1148
+ # then only `PubsubMessage`s whose `attributes` field matches the filter are
1149
+ # delivered on this subscription. If empty, then no messages are filtered
1150
+ # out.
1151
+ # <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
1152
+ # API might be changed in backward-incompatible ways and is not recommended
1153
+ # for production use. It is not subject to any SLA or deprecation policy.
1154
+ # Corresponds to the JSON property `filter`
1155
+ # @return [String]
1156
+ attr_accessor :filter
1157
+
1134
1158
  # See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
1135
1159
  # managing labels</a>.
1136
1160
  # Corresponds to the JSON property `labels`
@@ -1192,6 +1216,7 @@ module Google
1192
1216
  @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
1193
1217
  @dead_letter_policy = args[:dead_letter_policy] if args.key?(:dead_letter_policy)
1194
1218
  @expiration_policy = args[:expiration_policy] if args.key?(:expiration_policy)
1219
+ @filter = args[:filter] if args.key?(:filter)
1195
1220
  @labels = args[:labels] if args.key?(:labels)
1196
1221
  @message_retention_duration = args[:message_retention_duration] if args.key?(:message_retention_duration)
1197
1222
  @name = args[:name] if args.key?(:name)
@@ -473,6 +473,7 @@ module Google
473
473
 
474
474
  property :expiration_policy, as: 'expirationPolicy', class: Google::Apis::PubsubV1::ExpirationPolicy, decorator: Google::Apis::PubsubV1::ExpirationPolicy::Representation
475
475
 
476
+ property :filter, as: 'filter'
476
477
  hash :labels, as: 'labels'
477
478
  property :message_retention_duration, as: 'messageRetentionDuration'
478
479
  property :name, as: 'name'
@@ -191,6 +191,9 @@ module Google
191
191
  # Requests for policies with any conditional bindings must specify version 3.
192
192
  # Policies without any conditional bindings may specify any valid value or
193
193
  # leave the field unset.
194
+ # To learn which resources support conditions in their IAM policies, see the
195
+ # [IAM
196
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
194
197
  # @param [String] fields
195
198
  # Selector specifying which fields to include in a partial response.
196
199
  # @param [String] quota_user
@@ -303,7 +306,7 @@ module Google
303
306
 
304
307
  # Sets the access control policy on the specified resource. Replaces any
305
308
  # existing policy.
306
- # Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
309
+ # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
307
310
  # @param [String] resource
308
311
  # REQUIRED: The resource for which the policy is being specified.
309
312
  # See the operation documentation for the appropriate value for this field.
@@ -339,7 +342,7 @@ module Google
339
342
 
340
343
  # Returns permissions that a caller has on the specified resource.
341
344
  # If the resource does not exist, this will return an empty set of
342
- # permissions, not a NOT_FOUND error.
345
+ # permissions, not a `NOT_FOUND` error.
343
346
  # Note: This operation is designed to be used for building permission-aware
344
347
  # UIs and command-line tools, not for authorization checking. This operation
345
348
  # may "fail open" without warning.
@@ -543,6 +546,9 @@ module Google
543
546
  # Requests for policies with any conditional bindings must specify version 3.
544
547
  # Policies without any conditional bindings may specify any valid value or
545
548
  # leave the field unset.
549
+ # To learn which resources support conditions in their IAM policies, see the
550
+ # [IAM
551
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
546
552
  # @param [String] fields
547
553
  # Selector specifying which fields to include in a partial response.
548
554
  # @param [String] quota_user
@@ -803,7 +809,7 @@ module Google
803
809
 
804
810
  # Sets the access control policy on the specified resource. Replaces any
805
811
  # existing policy.
806
- # Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
812
+ # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
807
813
  # @param [String] resource
808
814
  # REQUIRED: The resource for which the policy is being specified.
809
815
  # See the operation documentation for the appropriate value for this field.
@@ -839,7 +845,7 @@ module Google
839
845
 
840
846
  # Returns permissions that a caller has on the specified resource.
841
847
  # If the resource does not exist, this will return an empty set of
842
- # permissions, not a NOT_FOUND error.
848
+ # permissions, not a `NOT_FOUND` error.
843
849
  # Note: This operation is designed to be used for building permission-aware
844
850
  # UIs and command-line tools, not for authorization checking. This operation
845
851
  # may "fail open" without warning.
@@ -995,6 +1001,9 @@ module Google
995
1001
  # Requests for policies with any conditional bindings must specify version 3.
996
1002
  # Policies without any conditional bindings may specify any valid value or
997
1003
  # leave the field unset.
1004
+ # To learn which resources support conditions in their IAM policies, see the
1005
+ # [IAM
1006
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
998
1007
  # @param [String] fields
999
1008
  # Selector specifying which fields to include in a partial response.
1000
1009
  # @param [String] quota_user
@@ -1138,7 +1147,7 @@ module Google
1138
1147
 
1139
1148
  # Sets the access control policy on the specified resource. Replaces any
1140
1149
  # existing policy.
1141
- # Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
1150
+ # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
1142
1151
  # @param [String] resource
1143
1152
  # REQUIRED: The resource for which the policy is being specified.
1144
1153
  # See the operation documentation for the appropriate value for this field.
@@ -1174,7 +1183,7 @@ module Google
1174
1183
 
1175
1184
  # Returns permissions that a caller has on the specified resource.
1176
1185
  # If the resource does not exist, this will return an empty set of
1177
- # permissions, not a NOT_FOUND error.
1186
+ # permissions, not a `NOT_FOUND` error.
1178
1187
  # Note: This operation is designed to be used for building permission-aware
1179
1188
  # UIs and command-line tools, not for authorization checking. This operation
1180
1189
  # may "fail open" without warning.
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/pubsub/docs
26
26
  module PubsubV1beta2
27
27
  VERSION = 'V1beta2'
28
- REVISION = '20200303'
28
+ REVISION = '20200427'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -385,10 +385,13 @@ module Google
385
385
  # Google groups, and domains (such as G Suite). A `role` is a named list of
386
386
  # permissions; each `role` can be an IAM predefined role or a user-created
387
387
  # custom role.
388
- # Optionally, a `binding` can specify a `condition`, which is a logical
389
- # expression that allows access to a resource only if the expression evaluates
390
- # to `true`. A condition can add constraints based on attributes of the
391
- # request, the resource, or both.
388
+ # For some types of Google Cloud resources, a `binding` can also specify a
389
+ # `condition`, which is a logical expression that allows access to a resource
390
+ # only if the expression evaluates to `true`. A condition can add constraints
391
+ # based on attributes of the request, the resource, or both. To learn which
392
+ # resources support conditions in their IAM policies, see the
393
+ # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
394
+ # policies).
392
395
  # **JSON example:**
393
396
  # `
394
397
  # "bindings": [
@@ -403,7 +406,9 @@ module Google
403
406
  # `,
404
407
  # `
405
408
  # "role": "roles/resourcemanager.organizationViewer",
406
- # "members": ["user:eve@example.com"],
409
+ # "members": [
410
+ # "user:eve@example.com"
411
+ # ],
407
412
  # "condition": `
408
413
  # "title": "expirable access",
409
414
  # "description": "Does not grant access after Sep 2020",
@@ -476,6 +481,9 @@ module Google
476
481
  # the conditions in the version `3` policy are lost.
477
482
  # If a policy does not include any conditions, operations on that policy may
478
483
  # specify any valid version or leave the field unset.
484
+ # To learn which resources support conditions in their IAM policies, see the
485
+ # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
486
+ # policies).
479
487
  # Corresponds to the JSON property `version`
480
488
  # @return [Fixnum]
481
489
  attr_accessor :version
@@ -720,10 +728,13 @@ module Google
720
728
  # Google groups, and domains (such as G Suite). A `role` is a named list of
721
729
  # permissions; each `role` can be an IAM predefined role or a user-created
722
730
  # custom role.
723
- # Optionally, a `binding` can specify a `condition`, which is a logical
724
- # expression that allows access to a resource only if the expression evaluates
725
- # to `true`. A condition can add constraints based on attributes of the
726
- # request, the resource, or both.
731
+ # For some types of Google Cloud resources, a `binding` can also specify a
732
+ # `condition`, which is a logical expression that allows access to a resource
733
+ # only if the expression evaluates to `true`. A condition can add constraints
734
+ # based on attributes of the request, the resource, or both. To learn which
735
+ # resources support conditions in their IAM policies, see the
736
+ # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
737
+ # policies).
727
738
  # **JSON example:**
728
739
  # `
729
740
  # "bindings": [
@@ -738,7 +749,9 @@ module Google
738
749
  # `,
739
750
  # `
740
751
  # "role": "roles/resourcemanager.organizationViewer",
741
- # "members": ["user:eve@example.com"],
752
+ # "members": [
753
+ # "user:eve@example.com"
754
+ # ],
742
755
  # "condition": `
743
756
  # "title": "expirable access",
744
757
  # "description": "Does not grant access after Sep 2020",
@@ -205,6 +205,9 @@ module Google
205
205
  # Requests for policies with any conditional bindings must specify version 3.
206
206
  # Policies without any conditional bindings may specify any valid value or
207
207
  # leave the field unset.
208
+ # To learn which resources support conditions in their IAM policies, see the
209
+ # [IAM
210
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
208
211
  # @param [String] fields
209
212
  # Selector specifying which fields to include in a partial response.
210
213
  # @param [String] quota_user
@@ -383,7 +386,7 @@ module Google
383
386
 
384
387
  # Sets the access control policy on the specified resource. Replaces any
385
388
  # existing policy.
386
- # Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
389
+ # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
387
390
  # @param [String] resource
388
391
  # REQUIRED: The resource for which the policy is being specified.
389
392
  # See the operation documentation for the appropriate value for this field.
@@ -419,7 +422,7 @@ module Google
419
422
 
420
423
  # Returns permissions that a caller has on the specified resource.
421
424
  # If the resource does not exist, this will return an empty set of
422
- # permissions, not a NOT_FOUND error.
425
+ # permissions, not a `NOT_FOUND` error.
423
426
  # Note: This operation is designed to be used for building permission-aware
424
427
  # UIs and command-line tools, not for authorization checking. This operation
425
428
  # may "fail open" without warning.
@@ -571,6 +574,9 @@ module Google
571
574
  # Requests for policies with any conditional bindings must specify version 3.
572
575
  # Policies without any conditional bindings may specify any valid value or
573
576
  # leave the field unset.
577
+ # To learn which resources support conditions in their IAM policies, see the
578
+ # [IAM
579
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
574
580
  # @param [String] fields
575
581
  # Selector specifying which fields to include in a partial response.
576
582
  # @param [String] quota_user
@@ -674,7 +680,7 @@ module Google
674
680
 
675
681
  # Sets the access control policy on the specified resource. Replaces any
676
682
  # existing policy.
677
- # Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
683
+ # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
678
684
  # @param [String] resource
679
685
  # REQUIRED: The resource for which the policy is being specified.
680
686
  # See the operation documentation for the appropriate value for this field.
@@ -710,7 +716,7 @@ module Google
710
716
 
711
717
  # Returns permissions that a caller has on the specified resource.
712
718
  # If the resource does not exist, this will return an empty set of
713
- # permissions, not a NOT_FOUND error.
719
+ # permissions, not a `NOT_FOUND` error.
714
720
  # Note: This operation is designed to be used for building permission-aware
715
721
  # UIs and command-line tools, not for authorization checking. This operation
716
722
  # may "fail open" without warning.
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/service-directory
27
27
  module ServicedirectoryV1beta1
28
28
  VERSION = 'V1beta1'
29
- REVISION = '20200415'
29
+ REVISION = '20200429'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -266,6 +266,9 @@ module Google
266
266
  # Requests for policies with any conditional bindings must specify version 3.
267
267
  # Policies without any conditional bindings may specify any valid value or
268
268
  # leave the field unset.
269
+ # To learn which resources support conditions in their IAM policies, see the
270
+ # [IAM
271
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
269
272
  # Corresponds to the JSON property `requestedPolicyVersion`
270
273
  # @return [Fixnum]
271
274
  attr_accessor :requested_policy_version
@@ -467,10 +470,13 @@ module Google
467
470
  # Google groups, and domains (such as G Suite). A `role` is a named list of
468
471
  # permissions; each `role` can be an IAM predefined role or a user-created
469
472
  # custom role.
470
- # Optionally, a `binding` can specify a `condition`, which is a logical
471
- # expression that allows access to a resource only if the expression evaluates
472
- # to `true`. A condition can add constraints based on attributes of the
473
- # request, the resource, or both.
473
+ # For some types of Google Cloud resources, a `binding` can also specify a
474
+ # `condition`, which is a logical expression that allows access to a resource
475
+ # only if the expression evaluates to `true`. A condition can add constraints
476
+ # based on attributes of the request, the resource, or both. To learn which
477
+ # resources support conditions in their IAM policies, see the
478
+ # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
479
+ # policies).
474
480
  # **JSON example:**
475
481
  # `
476
482
  # "bindings": [
@@ -485,7 +491,9 @@ module Google
485
491
  # `,
486
492
  # `
487
493
  # "role": "roles/resourcemanager.organizationViewer",
488
- # "members": ["user:eve@example.com"],
494
+ # "members": [
495
+ # "user:eve@example.com"
496
+ # ],
489
497
  # "condition": `
490
498
  # "title": "expirable access",
491
499
  # "description": "Does not grant access after Sep 2020",
@@ -558,6 +566,9 @@ module Google
558
566
  # the conditions in the version `3` policy are lost.
559
567
  # If a policy does not include any conditions, operations on that policy may
560
568
  # specify any valid version or leave the field unset.
569
+ # To learn which resources support conditions in their IAM policies, see the
570
+ # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
571
+ # policies).
561
572
  # Corresponds to the JSON property `version`
562
573
  # @return [Fixnum]
563
574
  attr_accessor :version
@@ -691,10 +702,13 @@ module Google
691
702
  # Google groups, and domains (such as G Suite). A `role` is a named list of
692
703
  # permissions; each `role` can be an IAM predefined role or a user-created
693
704
  # custom role.
694
- # Optionally, a `binding` can specify a `condition`, which is a logical
695
- # expression that allows access to a resource only if the expression evaluates
696
- # to `true`. A condition can add constraints based on attributes of the
697
- # request, the resource, or both.
705
+ # For some types of Google Cloud resources, a `binding` can also specify a
706
+ # `condition`, which is a logical expression that allows access to a resource
707
+ # only if the expression evaluates to `true`. A condition can add constraints
708
+ # based on attributes of the request, the resource, or both. To learn which
709
+ # resources support conditions in their IAM policies, see the
710
+ # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
711
+ # policies).
698
712
  # **JSON example:**
699
713
  # `
700
714
  # "bindings": [
@@ -709,7 +723,9 @@ module Google
709
723
  # `,
710
724
  # `
711
725
  # "role": "roles/resourcemanager.organizationViewer",
712
- # "members": ["user:eve@example.com"],
726
+ # "members": [
727
+ # "user:eve@example.com"
728
+ # ],
713
729
  # "condition": `
714
730
  # "title": "expirable access",
715
731
  # "description": "Does not grant access after Sep 2020",
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/service-management/
28
28
  module ServicemanagementV1
29
29
  VERSION = 'V1'
30
- REVISION = '20200411'
30
+ REVISION = '20200506'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -635,21 +635,31 @@ module Google
635
635
 
636
636
  # Billing related configuration of the service.
637
637
  # The following example shows how to configure monitored resources and metrics
638
- # for billing:
638
+ # for billing, `consumer_destinations` is the only supported destination and
639
+ # the monitored resources need at least one label key
640
+ # `cloud.googleapis.com/location` to indicate the location of the billing
641
+ # usage, using different monitored resources between monitoring and billing is
642
+ # recommended so they can be evolved independently:
639
643
  # monitored_resources:
640
- # - type: library.googleapis.com/branch
644
+ # - type: library.googleapis.com/billing_branch
641
645
  # labels:
642
- # - key: /city
643
- # description: The city where the library branch is located in.
644
- # - key: /name
645
- # description: The name of the branch.
646
+ # - key: cloud.googleapis.com/location
647
+ # description: |
648
+ # Predefined label to support billing location restriction.
649
+ # - key: city
650
+ # description: |
651
+ # Custom label to define the city where the library branch is located
652
+ # in.
653
+ # - key: name
654
+ # description: Custom label to define the name of the library branch.
646
655
  # metrics:
647
656
  # - name: library.googleapis.com/book/borrowed_count
648
657
  # metric_kind: DELTA
649
658
  # value_type: INT64
659
+ # unit: "1"
650
660
  # billing:
651
661
  # consumer_destinations:
652
- # - monitored_resource: library.googleapis.com/branch
662
+ # - monitored_resource: library.googleapis.com/billing_branch
653
663
  # metrics:
654
664
  # - library.googleapis.com/book/borrowed_count
655
665
  class Billing
@@ -1834,6 +1844,9 @@ module Google
1834
1844
  # Requests for policies with any conditional bindings must specify version 3.
1835
1845
  # Policies without any conditional bindings may specify any valid value or
1836
1846
  # leave the field unset.
1847
+ # To learn which resources support conditions in their IAM policies, see the
1848
+ # [IAM
1849
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1837
1850
  # Corresponds to the JSON property `requestedPolicyVersion`
1838
1851
  # @return [Fixnum]
1839
1852
  attr_accessor :requested_policy_version
@@ -3311,10 +3324,13 @@ module Google
3311
3324
  # Google groups, and domains (such as G Suite). A `role` is a named list of
3312
3325
  # permissions; each `role` can be an IAM predefined role or a user-created
3313
3326
  # custom role.
3314
- # Optionally, a `binding` can specify a `condition`, which is a logical
3315
- # expression that allows access to a resource only if the expression evaluates
3316
- # to `true`. A condition can add constraints based on attributes of the
3317
- # request, the resource, or both.
3327
+ # For some types of Google Cloud resources, a `binding` can also specify a
3328
+ # `condition`, which is a logical expression that allows access to a resource
3329
+ # only if the expression evaluates to `true`. A condition can add constraints
3330
+ # based on attributes of the request, the resource, or both. To learn which
3331
+ # resources support conditions in their IAM policies, see the
3332
+ # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
3333
+ # policies).
3318
3334
  # **JSON example:**
3319
3335
  # `
3320
3336
  # "bindings": [
@@ -3329,7 +3345,9 @@ module Google
3329
3345
  # `,
3330
3346
  # `
3331
3347
  # "role": "roles/resourcemanager.organizationViewer",
3332
- # "members": ["user:eve@example.com"],
3348
+ # "members": [
3349
+ # "user:eve@example.com"
3350
+ # ],
3333
3351
  # "condition": `
3334
3352
  # "title": "expirable access",
3335
3353
  # "description": "Does not grant access after Sep 2020",
@@ -3407,6 +3425,9 @@ module Google
3407
3425
  # the conditions in the version `3` policy are lost.
3408
3426
  # If a policy does not include any conditions, operations on that policy may
3409
3427
  # specify any valid version or leave the field unset.
3428
+ # To learn which resources support conditions in their IAM policies, see the
3429
+ # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
3430
+ # policies).
3410
3431
  # Corresponds to the JSON property `version`
3411
3432
  # @return [Fixnum]
3412
3433
  attr_accessor :version
@@ -3751,21 +3772,31 @@ module Google
3751
3772
 
3752
3773
  # Billing related configuration of the service.
3753
3774
  # The following example shows how to configure monitored resources and metrics
3754
- # for billing:
3775
+ # for billing, `consumer_destinations` is the only supported destination and
3776
+ # the monitored resources need at least one label key
3777
+ # `cloud.googleapis.com/location` to indicate the location of the billing
3778
+ # usage, using different monitored resources between monitoring and billing is
3779
+ # recommended so they can be evolved independently:
3755
3780
  # monitored_resources:
3756
- # - type: library.googleapis.com/branch
3781
+ # - type: library.googleapis.com/billing_branch
3757
3782
  # labels:
3758
- # - key: /city
3759
- # description: The city where the library branch is located in.
3760
- # - key: /name
3761
- # description: The name of the branch.
3783
+ # - key: cloud.googleapis.com/location
3784
+ # description: |
3785
+ # Predefined label to support billing location restriction.
3786
+ # - key: city
3787
+ # description: |
3788
+ # Custom label to define the city where the library branch is located
3789
+ # in.
3790
+ # - key: name
3791
+ # description: Custom label to define the name of the library branch.
3762
3792
  # metrics:
3763
3793
  # - name: library.googleapis.com/book/borrowed_count
3764
3794
  # metric_kind: DELTA
3765
3795
  # value_type: INT64
3796
+ # unit: "1"
3766
3797
  # billing:
3767
3798
  # consumer_destinations:
3768
- # - monitored_resource: library.googleapis.com/branch
3799
+ # - monitored_resource: library.googleapis.com/billing_branch
3769
3800
  # metrics:
3770
3801
  # - library.googleapis.com/book/borrowed_count
3771
3802
  # Corresponds to the JSON property `billing`
@@ -4193,10 +4224,13 @@ module Google
4193
4224
  # Google groups, and domains (such as G Suite). A `role` is a named list of
4194
4225
  # permissions; each `role` can be an IAM predefined role or a user-created
4195
4226
  # custom role.
4196
- # Optionally, a `binding` can specify a `condition`, which is a logical
4197
- # expression that allows access to a resource only if the expression evaluates
4198
- # to `true`. A condition can add constraints based on attributes of the
4199
- # request, the resource, or both.
4227
+ # For some types of Google Cloud resources, a `binding` can also specify a
4228
+ # `condition`, which is a logical expression that allows access to a resource
4229
+ # only if the expression evaluates to `true`. A condition can add constraints
4230
+ # based on attributes of the request, the resource, or both. To learn which
4231
+ # resources support conditions in their IAM policies, see the
4232
+ # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
4233
+ # policies).
4200
4234
  # **JSON example:**
4201
4235
  # `
4202
4236
  # "bindings": [
@@ -4211,7 +4245,9 @@ module Google
4211
4245
  # `,
4212
4246
  # `
4213
4247
  # "role": "roles/resourcemanager.organizationViewer",
4214
- # "members": ["user:eve@example.com"],
4248
+ # "members": [
4249
+ # "user:eve@example.com"
4250
+ # ],
4215
4251
  # "condition": `
4216
4252
  # "title": "expirable access",
4217
4253
  # "description": "Does not grant access after Sep 2020",
@@ -4249,8 +4285,7 @@ module Google
4249
4285
  # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
4250
4286
  # the fields in the mask will be modified. If no mask is provided, the
4251
4287
  # following default mask is used:
4252
- # paths: "bindings, etag"
4253
- # This field is only used by Cloud IAM.
4288
+ # `paths: "bindings, etag"`
4254
4289
  # Corresponds to the JSON property `updateMask`
4255
4290
  # @return [String]
4256
4291
  attr_accessor :update_mask