google-api-client 0.41.0 → 0.41.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +72 -0
  3. data/generated/google/apis/admin_directory_v1.rb +1 -1
  4. data/generated/google/apis/admin_directory_v1/classes.rb +31 -0
  5. data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
  6. data/generated/google/apis/admin_directory_v1/service.rb +3 -5
  7. data/generated/google/apis/apigee_v1.rb +1 -1
  8. data/generated/google/apis/apigee_v1/classes.rb +132 -42
  9. data/generated/google/apis/apigee_v1/representations.rb +16 -0
  10. data/generated/google/apis/apigee_v1/service.rb +23 -24
  11. data/generated/google/apis/bigquery_v2.rb +1 -1
  12. data/generated/google/apis/bigquery_v2/classes.rb +36 -6
  13. data/generated/google/apis/bigquery_v2/representations.rb +4 -0
  14. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  15. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +6 -6
  16. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  17. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  18. data/generated/google/apis/civicinfo_v2.rb +2 -2
  19. data/generated/google/apis/civicinfo_v2/classes.rb +12 -800
  20. data/generated/google/apis/civicinfo_v2/representations.rb +0 -295
  21. data/generated/google/apis/civicinfo_v2/service.rb +27 -62
  22. data/generated/google/apis/cloudasset_v1.rb +1 -1
  23. data/generated/google/apis/cloudasset_v1/classes.rb +391 -3
  24. data/generated/google/apis/cloudasset_v1/representations.rb +101 -0
  25. data/generated/google/apis/cloudasset_v1/service.rb +178 -0
  26. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  27. data/generated/google/apis/cloudbilling_v1/classes.rb +38 -6
  28. data/generated/google/apis/cloudbilling_v1/representations.rb +16 -0
  29. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  30. data/generated/google/apis/cloudbuild_v1/service.rb +0 -42
  31. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  32. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  33. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  34. data/generated/google/apis/cloudfunctions_v1/classes.rb +6 -6
  35. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  36. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  37. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  38. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +2 -3
  39. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  40. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +2 -3
  41. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  42. data/generated/google/apis/cloudscheduler_v1/classes.rb +2 -1
  43. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  44. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -1
  45. data/generated/google/apis/composer_v1beta1.rb +1 -1
  46. data/generated/google/apis/composer_v1beta1/classes.rb +4 -3
  47. data/generated/google/apis/composer_v1beta1/service.rb +13 -0
  48. data/generated/google/apis/compute_alpha.rb +1 -1
  49. data/generated/google/apis/compute_alpha/classes.rb +45 -31
  50. data/generated/google/apis/compute_alpha/service.rb +9 -4
  51. data/generated/google/apis/compute_beta.rb +1 -1
  52. data/generated/google/apis/compute_beta/classes.rb +262 -31
  53. data/generated/google/apis/compute_beta/representations.rb +70 -0
  54. data/generated/google/apis/compute_beta/service.rb +233 -4
  55. data/generated/google/apis/compute_v1.rb +1 -1
  56. data/generated/google/apis/compute_v1/classes.rb +592 -29
  57. data/generated/google/apis/compute_v1/representations.rb +182 -0
  58. data/generated/google/apis/compute_v1/service.rb +501 -4
  59. data/generated/google/apis/container_v1.rb +1 -1
  60. data/generated/google/apis/container_v1/classes.rb +29 -3
  61. data/generated/google/apis/container_v1/representations.rb +15 -0
  62. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  63. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +1 -1
  64. data/generated/google/apis/content_v2_1.rb +1 -1
  65. data/generated/google/apis/content_v2_1/classes.rb +172 -0
  66. data/generated/google/apis/content_v2_1/representations.rb +71 -0
  67. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  68. data/generated/google/apis/datacatalog_v1beta1/classes.rb +34 -10
  69. data/generated/google/apis/datacatalog_v1beta1/representations.rb +13 -0
  70. data/generated/google/apis/datacatalog_v1beta1/service.rb +37 -0
  71. data/generated/google/apis/dialogflow_v2.rb +1 -1
  72. data/generated/google/apis/dialogflow_v2/classes.rb +194 -20
  73. data/generated/google/apis/dialogflow_v2/representations.rb +77 -0
  74. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  75. data/generated/google/apis/dialogflow_v2beta1/classes.rb +194 -20
  76. data/generated/google/apis/dialogflow_v2beta1/representations.rb +77 -0
  77. data/generated/google/apis/displayvideo_v1.rb +1 -1
  78. data/generated/google/apis/displayvideo_v1/classes.rb +105 -2
  79. data/generated/google/apis/displayvideo_v1/representations.rb +11 -0
  80. data/generated/google/apis/displayvideo_v1/service.rb +78 -1
  81. data/generated/google/apis/dlp_v2.rb +1 -1
  82. data/generated/google/apis/documentai_v1beta2.rb +1 -1
  83. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  84. data/generated/google/apis/doubleclicksearch_v2.rb +4 -4
  85. data/generated/google/apis/doubleclicksearch_v2/classes.rb +127 -111
  86. data/generated/google/apis/doubleclicksearch_v2/representations.rb +4 -6
  87. data/generated/google/apis/doubleclicksearch_v2/service.rb +47 -78
  88. data/generated/google/apis/fcm_v1.rb +1 -1
  89. data/generated/google/apis/healthcare_v1.rb +1 -1
  90. data/generated/google/apis/healthcare_v1/classes.rb +6 -6
  91. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  92. data/generated/google/apis/healthcare_v1beta1/classes.rb +6 -6
  93. data/generated/google/apis/logging_v2.rb +1 -1
  94. data/generated/google/apis/logging_v2/classes.rb +69 -21
  95. data/generated/google/apis/ml_v1.rb +1 -1
  96. data/generated/google/apis/ml_v1/classes.rb +8 -0
  97. data/generated/google/apis/ml_v1/representations.rb +1 -0
  98. data/generated/google/apis/monitoring_v3.rb +1 -1
  99. data/generated/google/apis/monitoring_v3/classes.rb +2 -2
  100. data/generated/google/apis/people_v1.rb +4 -1
  101. data/generated/google/apis/playablelocations_v3.rb +31 -0
  102. data/generated/google/apis/playablelocations_v3/classes.rb +633 -0
  103. data/generated/google/apis/playablelocations_v3/representations.rb +273 -0
  104. data/generated/google/apis/playablelocations_v3/service.rb +157 -0
  105. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  106. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +19 -0
  107. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +14 -0
  108. data/generated/google/apis/pubsub_v1.rb +1 -1
  109. data/generated/google/apis/pubsub_v1/classes.rb +4 -2
  110. data/generated/google/apis/realtimebidding_v1.rb +40 -0
  111. data/generated/google/apis/realtimebidding_v1/classes.rb +1436 -0
  112. data/generated/google/apis/realtimebidding_v1/representations.rb +565 -0
  113. data/generated/google/apis/realtimebidding_v1/service.rb +661 -0
  114. data/generated/google/apis/redis_v1.rb +1 -1
  115. data/generated/google/apis/redis_v1/classes.rb +1 -1
  116. data/generated/google/apis/redis_v1/service.rb +1 -1
  117. data/generated/google/apis/redis_v1beta1.rb +1 -1
  118. data/generated/google/apis/redis_v1beta1/classes.rb +1 -1
  119. data/generated/google/apis/redis_v1beta1/service.rb +1 -1
  120. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  121. data/generated/google/apis/remotebuildexecution_v1/classes.rb +1 -1
  122. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  123. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +1 -1
  124. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  125. data/generated/google/apis/remotebuildexecution_v2/classes.rb +1 -1
  126. data/generated/google/apis/run_v1.rb +2 -2
  127. data/generated/google/apis/run_v1/classes.rb +4 -1
  128. data/generated/google/apis/run_v1/service.rb +1 -1
  129. data/generated/google/apis/run_v1alpha1.rb +2 -2
  130. data/generated/google/apis/run_v1alpha1/service.rb +1 -1
  131. data/generated/google/apis/run_v1beta1.rb +2 -2
  132. data/generated/google/apis/run_v1beta1/service.rb +1 -1
  133. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  134. data/generated/google/apis/sasportal_v1alpha1/classes.rb +19 -0
  135. data/generated/google/apis/sasportal_v1alpha1/representations.rb +14 -0
  136. data/generated/google/apis/secretmanager_v1.rb +1 -1
  137. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  138. data/generated/google/apis/securitycenter_v1.rb +1 -1
  139. data/generated/google/apis/securitycenter_v1/service.rb +4 -5
  140. data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
  141. data/generated/google/apis/securitycenter_v1p1beta1/service.rb +2 -5
  142. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  143. data/generated/google/apis/servicecontrol_v1/classes.rb +6 -0
  144. data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
  145. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  146. data/generated/google/apis/servicemanagement_v1/classes.rb +1 -0
  147. data/generated/google/apis/sheets_v4.rb +1 -1
  148. data/generated/google/apis/sheets_v4/classes.rb +90 -0
  149. data/generated/google/apis/spanner_v1.rb +1 -1
  150. data/generated/google/apis/spanner_v1/classes.rb +25 -20
  151. data/generated/google/apis/spanner_v1/service.rb +2 -0
  152. data/generated/google/apis/speech_v1.rb +1 -1
  153. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  154. data/generated/google/apis/storage_v1.rb +1 -1
  155. data/generated/google/apis/storage_v1/service.rb +2 -3
  156. data/generated/google/apis/texttospeech_v1.rb +1 -1
  157. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  158. data/generated/google/apis/vectortile_v1.rb +31 -0
  159. data/generated/google/apis/vectortile_v1/classes.rb +881 -0
  160. data/generated/google/apis/vectortile_v1/representations.rb +329 -0
  161. data/generated/google/apis/vectortile_v1/service.rb +268 -0
  162. data/generated/google/apis/webfonts_v1.rb +5 -5
  163. data/generated/google/apis/webfonts_v1/classes.rb +4 -3
  164. data/generated/google/apis/webfonts_v1/representations.rb +1 -2
  165. data/generated/google/apis/webfonts_v1/service.rb +14 -21
  166. data/lib/google/apis/version.rb +1 -1
  167. metadata +15 -3
@@ -70,6 +70,12 @@ module Google
70
70
  include Google::Apis::Core::JsonObjectSupport
71
71
  end
72
72
 
73
+ class Explanation
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
73
79
  class ExportAssetsRequest
74
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
81
 
@@ -184,6 +190,12 @@ module Google
184
190
  include Google::Apis::Core::JsonObjectSupport
185
191
  end
186
192
 
193
+ class IamPolicySearchResult
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
187
199
  class ListFeedsResponse
188
200
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
201
 
@@ -202,6 +214,12 @@ module Google
202
214
  include Google::Apis::Core::JsonObjectSupport
203
215
  end
204
216
 
217
+ class Permissions
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
205
223
  class Policy
206
224
  class Representation < Google::Apis::Core::JsonRepresentation; end
207
225
 
@@ -220,6 +238,24 @@ module Google
220
238
  include Google::Apis::Core::JsonObjectSupport
221
239
  end
222
240
 
241
+ class ResourceSearchResult
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
247
+ class SearchAllIamPoliciesResponse
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
253
+ class SearchAllResourcesResponse
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
223
259
  class Status
224
260
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
261
 
@@ -325,6 +361,14 @@ module Google
325
361
  end
326
362
  end
327
363
 
364
+ class Explanation
365
+ # @private
366
+ class Representation < Google::Apis::Core::JsonRepresentation
367
+ hash :matched_permissions, as: 'matchedPermissions', class: Google::Apis::CloudassetV1::Permissions, decorator: Google::Apis::CloudassetV1::Permissions::Representation
368
+
369
+ end
370
+ end
371
+
328
372
  class ExportAssetsRequest
329
373
  # @private
330
374
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -351,6 +395,8 @@ module Google
351
395
  class Representation < Google::Apis::Core::JsonRepresentation
352
396
  collection :asset_names, as: 'assetNames'
353
397
  collection :asset_types, as: 'assetTypes'
398
+ property :condition, as: 'condition', class: Google::Apis::CloudassetV1::Expr, decorator: Google::Apis::CloudassetV1::Expr::Representation
399
+
354
400
  property :content_type, as: 'contentType'
355
401
  property :feed_output_config, as: 'feedOutputConfig', class: Google::Apis::CloudassetV1::FeedOutputConfig, decorator: Google::Apis::CloudassetV1::FeedOutputConfig::Representation
356
402
 
@@ -523,6 +569,18 @@ module Google
523
569
  end
524
570
  end
525
571
 
572
+ class IamPolicySearchResult
573
+ # @private
574
+ class Representation < Google::Apis::Core::JsonRepresentation
575
+ property :explanation, as: 'explanation', class: Google::Apis::CloudassetV1::Explanation, decorator: Google::Apis::CloudassetV1::Explanation::Representation
576
+
577
+ property :policy, as: 'policy', class: Google::Apis::CloudassetV1::Policy, decorator: Google::Apis::CloudassetV1::Policy::Representation
578
+
579
+ property :project, as: 'project'
580
+ property :resource, as: 'resource'
581
+ end
582
+ end
583
+
526
584
  class ListFeedsResponse
527
585
  # @private
528
586
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -553,6 +611,13 @@ module Google
553
611
  end
554
612
  end
555
613
 
614
+ class Permissions
615
+ # @private
616
+ class Representation < Google::Apis::Core::JsonRepresentation
617
+ collection :permissions, as: 'permissions'
618
+ end
619
+ end
620
+
556
621
  class Policy
557
622
  # @private
558
623
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -585,6 +650,39 @@ module Google
585
650
  end
586
651
  end
587
652
 
653
+ class ResourceSearchResult
654
+ # @private
655
+ class Representation < Google::Apis::Core::JsonRepresentation
656
+ hash :additional_attributes, as: 'additionalAttributes'
657
+ property :asset_type, as: 'assetType'
658
+ property :description, as: 'description'
659
+ property :display_name, as: 'displayName'
660
+ hash :labels, as: 'labels'
661
+ property :location, as: 'location'
662
+ property :name, as: 'name'
663
+ collection :network_tags, as: 'networkTags'
664
+ property :project, as: 'project'
665
+ end
666
+ end
667
+
668
+ class SearchAllIamPoliciesResponse
669
+ # @private
670
+ class Representation < Google::Apis::Core::JsonRepresentation
671
+ property :next_page_token, as: 'nextPageToken'
672
+ collection :results, as: 'results', class: Google::Apis::CloudassetV1::IamPolicySearchResult, decorator: Google::Apis::CloudassetV1::IamPolicySearchResult::Representation
673
+
674
+ end
675
+ end
676
+
677
+ class SearchAllResourcesResponse
678
+ # @private
679
+ class Representation < Google::Apis::Core::JsonRepresentation
680
+ property :next_page_token, as: 'nextPageToken'
681
+ collection :results, as: 'results', class: Google::Apis::CloudassetV1::ResourceSearchResult, decorator: Google::Apis::CloudassetV1::ResourceSearchResult::Representation
682
+
683
+ end
684
+ end
685
+
588
686
  class Status
589
687
  # @private
590
688
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -600,6 +698,9 @@ module Google
600
698
  property :asset, as: 'asset', class: Google::Apis::CloudassetV1::Asset, decorator: Google::Apis::CloudassetV1::Asset::Representation
601
699
 
602
700
  property :deleted, as: 'deleted'
701
+ property :prior_asset, as: 'priorAsset', class: Google::Apis::CloudassetV1::Asset, decorator: Google::Apis::CloudassetV1::Asset::Representation
702
+
703
+ property :prior_asset_state, as: 'priorAssetState'
603
704
  property :window, as: 'window', class: Google::Apis::CloudassetV1::TimeWindow, decorator: Google::Apis::CloudassetV1::TimeWindow::Representation
604
705
 
605
706
  end
@@ -354,6 +354,184 @@ module Google
354
354
  command.query['quotaUser'] = quota_user unless quota_user.nil?
355
355
  execute_or_queue_command(command, &block)
356
356
  end
357
+
358
+ # Searches all the IAM policies within the given accessible scope (e.g., a
359
+ # project, a folder or an organization). Callers should have
360
+ # `cloud.assets.SearchAllIamPolicies` permission upon the requested scope,
361
+ # otherwise the request will be rejected.
362
+ # @param [String] scope
363
+ # Required. A scope can be a project, a folder or an organization. The search is
364
+ # limited to the IAM policies within the `scope`.
365
+ # The allowed values are:
366
+ # * projects/`PROJECT_ID`
367
+ # * projects/`PROJECT_NUMBER`
368
+ # * folders/`FOLDER_NUMBER`
369
+ # * organizations/`ORGANIZATION_NUMBER`
370
+ # @param [Fixnum] page_size
371
+ # Optional. The page size for search result pagination. Page size is capped at
372
+ # 500 even
373
+ # if a larger value is given. If set to zero, server will pick an appropriate
374
+ # default. Returned results may be fewer than requested. When this happens,
375
+ # there could be more results as long as `next_page_token` is returned.
376
+ # @param [String] page_token
377
+ # Optional. If present, retrieve the next batch of results from the preceding
378
+ # call to
379
+ # this method. `page_token` must be the value of `next_page_token` from the
380
+ # previous response. The values of all other method parameters must be
381
+ # identical to those in the previous call.
382
+ # @param [String] query
383
+ # Optional. The query statement. An empty query can be specified to search all
384
+ # the IAM
385
+ # policies within the given `scope`.
386
+ # Examples:
387
+ # * `policy : "amy@gmail.com"` to find Cloud IAM policy bindings that
388
+ # specify user "amy@gmail.com".
389
+ # * `policy : "roles/compute.admin"` to find Cloud IAM policy bindings that
390
+ # specify the Compute Admin role.
391
+ # * `policy.role.permissions : "storage.buckets.update"` to find Cloud IAM
392
+ # policy bindings that specify a role containing "storage.buckets.update"
393
+ # permission.
394
+ # * `resource : "organizations/123"` to find Cloud IAM policy bindings that
395
+ # are set on "organizations/123".
396
+ # * `(resource : ("organizations/123" OR "folders/1234") AND policy : "amy")`
397
+ # to find Cloud IAM policy bindings that are set on "organizations/123" or
398
+ # "folders/1234", and also specify user "amy".
399
+ # See [how to construct a
400
+ # query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#
401
+ # how_to_construct_a_query)
402
+ # for more details.
403
+ # @param [String] fields
404
+ # Selector specifying which fields to include in a partial response.
405
+ # @param [String] quota_user
406
+ # Available to use for quota purposes for server-side applications. Can be any
407
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
408
+ # @param [Google::Apis::RequestOptions] options
409
+ # Request-specific options
410
+ #
411
+ # @yield [result, err] Result & error if block supplied
412
+ # @yieldparam result [Google::Apis::CloudassetV1::SearchAllIamPoliciesResponse] parsed result object
413
+ # @yieldparam err [StandardError] error object if request failed
414
+ #
415
+ # @return [Google::Apis::CloudassetV1::SearchAllIamPoliciesResponse]
416
+ #
417
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
418
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
419
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
420
+ def search_all_iam_policies(scope, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
421
+ command = make_simple_command(:get, 'v1/{+scope}:searchAllIamPolicies', options)
422
+ command.response_representation = Google::Apis::CloudassetV1::SearchAllIamPoliciesResponse::Representation
423
+ command.response_class = Google::Apis::CloudassetV1::SearchAllIamPoliciesResponse
424
+ command.params['scope'] = scope unless scope.nil?
425
+ command.query['pageSize'] = page_size unless page_size.nil?
426
+ command.query['pageToken'] = page_token unless page_token.nil?
427
+ command.query['query'] = query unless query.nil?
428
+ command.query['fields'] = fields unless fields.nil?
429
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
430
+ execute_or_queue_command(command, &block)
431
+ end
432
+
433
+ # Searches all the resources within the given accessible scope (e.g., a
434
+ # project, a folder or an organization). Callers should have
435
+ # `cloud.assets.SearchAllResources` permission upon the requested scope,
436
+ # otherwise the request will be rejected.
437
+ # @param [String] scope
438
+ # Required. A scope can be a project, a folder or an organization. The search is
439
+ # limited to the resources within the `scope`.
440
+ # The allowed values are:
441
+ # * projects/`PROJECT_ID`
442
+ # * projects/`PROJECT_NUMBER`
443
+ # * folders/`FOLDER_NUMBER`
444
+ # * organizations/`ORGANIZATION_NUMBER`
445
+ # @param [Array<String>, String] asset_types
446
+ # Optional. A list of asset types that this request searches for. If empty, it
447
+ # will
448
+ # search all the [searchable asset
449
+ # types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#
450
+ # searchable_asset_types).
451
+ # @param [String] order_by
452
+ # Optional. A comma separated list of fields specifying the sorting order of the
453
+ # results. The default order is ascending. Add " DESC" after the field name
454
+ # to indicate descending order. Redundant space characters are ignored.
455
+ # Example: "location DESC, name". Only string fields in the response are
456
+ # sortable, including `name`, `displayName`, `description`, `location`. All
457
+ # the other fields such as repeated fields (e.g., `networkTags`), map
458
+ # fields (e.g., `labels`) and struct fields (e.g., `additionalAttributes`)
459
+ # are not supported.
460
+ # @param [Fixnum] page_size
461
+ # Optional. The page size for search result pagination. Page size is capped at
462
+ # 500 even
463
+ # if a larger value is given. If set to zero, server will pick an appropriate
464
+ # default. Returned results may be fewer than requested. When this happens,
465
+ # there could be more results as long as `next_page_token` is returned.
466
+ # @param [String] page_token
467
+ # Optional. If present, then retrieve the next batch of results from the
468
+ # preceding call
469
+ # to this method. `page_token` must be the value of `next_page_token` from
470
+ # the previous response. The values of all other method parameters, must be
471
+ # identical to those in the previous call.
472
+ # @param [String] query
473
+ # Optional. The query statement. An empty query can be specified to search all
474
+ # the
475
+ # resources of certain `asset_types` within the given `scope`.
476
+ # Examples:
477
+ # * `name : "Important"` to find Cloud resources whose name contains
478
+ # "Important" as a word.
479
+ # * `displayName : "Impor*"` to find Cloud resources whose display name
480
+ # contains "Impor" as a word prefix.
481
+ # * `description : "*por*"` to find Cloud resources whose description
482
+ # contains "por" as a substring.
483
+ # * `location : "us-west*"` to find Cloud resources whose location is
484
+ # prefixed with "us-west".
485
+ # * `labels : "prod"` to find Cloud resources whose labels contain "prod" as
486
+ # a key or value.
487
+ # * `labels.env : "prod"` to find Cloud resources which have a label "env"
488
+ # and its value is "prod".
489
+ # * `labels.env : *` to find Cloud resources which have a label "env".
490
+ # * `"Important"` to find Cloud resources which contain "Important" as a word
491
+ # in any of the searchable fields.
492
+ # * `"Impor*"` to find Cloud resources which contain "Impor" as a word prefix
493
+ # in any of the searchable fields.
494
+ # * `"*por*"` to find Cloud resources which contain "por" as a substring in
495
+ # any of the searchable fields.
496
+ # * `("Important" AND location : ("us-west1" OR "global"))` to find Cloud
497
+ # resources which contain "Important" as a word in any of the searchable
498
+ # fields and are also located in the "us-west1" region or the "global"
499
+ # location.
500
+ # See [how to construct a
501
+ # query](https://cloud.google.com/asset-inventory/docs/searching-resources#
502
+ # how_to_construct_a_query)
503
+ # for more details.
504
+ # @param [String] fields
505
+ # Selector specifying which fields to include in a partial response.
506
+ # @param [String] quota_user
507
+ # Available to use for quota purposes for server-side applications. Can be any
508
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
509
+ # @param [Google::Apis::RequestOptions] options
510
+ # Request-specific options
511
+ #
512
+ # @yield [result, err] Result & error if block supplied
513
+ # @yieldparam result [Google::Apis::CloudassetV1::SearchAllResourcesResponse] parsed result object
514
+ # @yieldparam err [StandardError] error object if request failed
515
+ #
516
+ # @return [Google::Apis::CloudassetV1::SearchAllResourcesResponse]
517
+ #
518
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
519
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
520
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
521
+ def search_all_resources(scope, asset_types: nil, order_by: nil, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
522
+ command = make_simple_command(:get, 'v1/{+scope}:searchAllResources', options)
523
+ command.response_representation = Google::Apis::CloudassetV1::SearchAllResourcesResponse::Representation
524
+ command.response_class = Google::Apis::CloudassetV1::SearchAllResourcesResponse
525
+ command.params['scope'] = scope unless scope.nil?
526
+ command.query['assetTypes'] = asset_types unless asset_types.nil?
527
+ command.query['orderBy'] = order_by unless order_by.nil?
528
+ command.query['pageSize'] = page_size unless page_size.nil?
529
+ command.query['pageToken'] = page_token unless page_token.nil?
530
+ command.query['query'] = query unless query.nil?
531
+ command.query['fields'] = fields unless fields.nil?
532
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
533
+ execute_or_queue_command(command, &block)
534
+ end
357
535
 
358
536
  protected
359
537
 
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/billing/
27
27
  module CloudbillingV1
28
28
  VERSION = 'V1'
29
- REVISION = '20200503'
29
+ REVISION = '20200623'
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'
@@ -67,7 +67,7 @@ module Google
67
67
  # `
68
68
  # "audit_configs": [
69
69
  # `
70
- # "service": "allServices"
70
+ # "service": "allServices",
71
71
  # "audit_log_configs": [
72
72
  # `
73
73
  # "log_type": "DATA_READ",
@@ -76,18 +76,18 @@ module Google
76
76
  # ]
77
77
  # `,
78
78
  # `
79
- # "log_type": "DATA_WRITE",
79
+ # "log_type": "DATA_WRITE"
80
80
  # `,
81
81
  # `
82
- # "log_type": "ADMIN_READ",
82
+ # "log_type": "ADMIN_READ"
83
83
  # `
84
84
  # ]
85
85
  # `,
86
86
  # `
87
- # "service": "sampleservice.googleapis.com"
87
+ # "service": "sampleservice.googleapis.com",
88
88
  # "audit_log_configs": [
89
89
  # `
90
- # "log_type": "DATA_READ",
90
+ # "log_type": "DATA_READ"
91
91
  # `,
92
92
  # `
93
93
  # "log_type": "DATA_WRITE",
@@ -139,7 +139,7 @@ module Google
139
139
  # ]
140
140
  # `,
141
141
  # `
142
- # "log_type": "DATA_WRITE",
142
+ # "log_type": "DATA_WRITE"
143
143
  # `
144
144
  # ]
145
145
  # `
@@ -407,6 +407,32 @@ module Google
407
407
  end
408
408
  end
409
409
 
410
+ # Encapsulates the geographic taxonomy data for a sku.
411
+ class GeoTaxonomy
412
+ include Google::Apis::Core::Hashable
413
+
414
+ # The list of regions associated with a sku. Empty for Global skus, which are
415
+ # associated with all GCP regions.
416
+ # Corresponds to the JSON property `regions`
417
+ # @return [Array<String>]
418
+ attr_accessor :regions
419
+
420
+ # The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
421
+ # Corresponds to the JSON property `type`
422
+ # @return [String]
423
+ attr_accessor :type
424
+
425
+ def initialize(**args)
426
+ update!(**args)
427
+ end
428
+
429
+ # Update properties of this object
430
+ def update!(**args)
431
+ @regions = args[:regions] if args.key?(:regions)
432
+ @type = args[:type] if args.key?(:type)
433
+ end
434
+ end
435
+
410
436
  # Response message for `ListBillingAccounts`.
411
437
  class ListBillingAccountsResponse
412
438
  include Google::Apis::Core::Hashable
@@ -1012,6 +1038,11 @@ module Google
1012
1038
  # @return [String]
1013
1039
  attr_accessor :description
1014
1040
 
1041
+ # Encapsulates the geographic taxonomy data for a sku.
1042
+ # Corresponds to the JSON property `geoTaxonomy`
1043
+ # @return [Google::Apis::CloudbillingV1::GeoTaxonomy]
1044
+ attr_accessor :geo_taxonomy
1045
+
1015
1046
  # The resource name for the SKU.
1016
1047
  # Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
1017
1048
  # Corresponds to the JSON property `name`
@@ -1050,6 +1081,7 @@ module Google
1050
1081
  def update!(**args)
1051
1082
  @category = args[:category] if args.key?(:category)
1052
1083
  @description = args[:description] if args.key?(:description)
1084
+ @geo_taxonomy = args[:geo_taxonomy] if args.key?(:geo_taxonomy)
1053
1085
  @name = args[:name] if args.key?(:name)
1054
1086
  @pricing_info = args[:pricing_info] if args.key?(:pricing_info)
1055
1087
  @service_provider_name = args[:service_provider_name] if args.key?(:service_provider_name)