google-api-client 0.39.4 → 0.39.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +65 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +3 -1
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +7 -0
- data/generated/google/apis/apigee_v1/representations.rb +1 -0
- data/generated/google/apis/apigee_v1/service.rb +9 -1
- data/generated/google/apis/artifactregistry_v1beta1.rb +38 -0
- data/generated/google/apis/artifactregistry_v1beta1/classes.rb +1010 -0
- data/generated/google/apis/artifactregistry_v1beta1/representations.rb +380 -0
- data/generated/google/apis/artifactregistry_v1beta1/service.rb +957 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +12 -1
- data/generated/google/apis/bigquery_v2/representations.rb +1 -0
- data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1/service.rb +8 -8
- data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +18 -14
- data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +93 -68
- data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +21 -0
- data/generated/google/apis/billingbudgets_v1beta1/representations.rb +6 -0
- data/generated/google/apis/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1/classes.rb +4 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +1 -1
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +371 -27
- data/generated/google/apis/cloudasset_v1/representations.rb +97 -0
- data/generated/google/apis/cloudasset_v1/service.rb +186 -8
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +23 -10
- data/generated/google/apis/cloudasset_v1beta1/service.rb +12 -3
- data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +42 -10
- data/generated/google/apis/cloudasset_v1p1beta1/representations.rb +2 -0
- data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +1 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +121 -0
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +142 -0
- data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +60 -0
- data/generated/google/apis/cloudbuild_v1alpha1/service.rb +121 -0
- data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +142 -0
- data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +60 -0
- data/generated/google/apis/cloudbuild_v1alpha2/service.rb +121 -0
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +6 -0
- data/generated/google/apis/cloudidentity_v1beta1/representations.rb +1 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +35 -0
- data/generated/google/apis/container_v1beta1/representations.rb +17 -0
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +6 -0
- data/generated/google/apis/content_v2_1/representations.rb +1 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +26 -12
- data/generated/google/apis/dataproc_v1beta2/service.rb +35 -21
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +1 -1
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +362 -176
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +22 -4
- data/generated/google/apis/deploymentmanager_alpha/service.rb +198 -311
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +295 -146
- data/generated/google/apis/deploymentmanager_v2/representations.rb +17 -1
- data/generated/google/apis/deploymentmanager_v2/service.rb +101 -99
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +350 -170
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +18 -1
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +154 -152
- data/generated/google/apis/dfareporting_v3_3.rb +1 -1
- data/generated/google/apis/dfareporting_v3_3/classes.rb +2 -2
- data/generated/google/apis/dfareporting_v3_3/service.rb +2 -2
- data/generated/google/apis/dfareporting_v3_4.rb +1 -1
- data/generated/google/apis/dfareporting_v3_4/classes.rb +2 -2
- data/generated/google/apis/dfareporting_v3_4/service.rb +2 -2
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +3 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +3 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +2 -2
- data/generated/google/apis/dialogflow_v3alpha1.rb +38 -0
- data/generated/google/apis/dialogflow_v3alpha1/classes.rb +5022 -0
- data/generated/google/apis/dialogflow_v3alpha1/representations.rb +2057 -0
- data/generated/google/apis/dialogflow_v3alpha1/service.rb +296 -0
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/service.rb +7 -2
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +9 -21
- data/generated/google/apis/dlp_v2/service.rb +79 -142
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +160 -261
- data/generated/google/apis/dns_v1/representations.rb +17 -0
- data/generated/google/apis/dns_v1/service.rb +21 -141
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +189 -273
- data/generated/google/apis/dns_v1beta2/representations.rb +32 -0
- data/generated/google/apis/dns_v1beta2/service.rb +21 -141
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/dns_v2beta1/classes.rb +160 -261
- data/generated/google/apis/dns_v2beta1/representations.rb +17 -0
- data/generated/google/apis/dns_v2beta1/service.rb +21 -141
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +31 -0
- data/generated/google/apis/file_v1/representations.rb +15 -0
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +31 -0
- data/generated/google/apis/file_v1beta1/representations.rb +15 -0
- data/generated/google/apis/{pagespeedonline_v1.rb → firebaseml_v1.rb} +11 -9
- data/generated/google/apis/firebaseml_v1/classes.rb +213 -0
- data/generated/google/apis/firebaseml_v1/representations.rb +112 -0
- data/generated/google/apis/firebaseml_v1/service.rb +181 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_management_v1management/service.rb +1 -1
- data/generated/google/apis/iamcredentials_v1.rb +1 -1
- data/generated/google/apis/iamcredentials_v1/classes.rb +26 -2
- data/generated/google/apis/networkmanagement_v1.rb +35 -0
- data/generated/google/apis/networkmanagement_v1/classes.rb +1868 -0
- data/generated/google/apis/networkmanagement_v1/representations.rb +661 -0
- data/generated/google/apis/networkmanagement_v1/service.rb +667 -0
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +6 -0
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +1 -0
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +6 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1 -0
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +6 -0
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +1 -0
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +27 -12
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +27 -12
- data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +27 -12
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +0 -31
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -1
- data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +0 -31
- data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +0 -1
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +0 -31
- data/generated/google/apis/servicemanagement_v1/representations.rb +0 -1
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +379 -31
- data/generated/google/apis/servicenetworking_v1/representations.rb +209 -1
- data/generated/google/apis/servicenetworking_v1/service.rb +187 -0
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +188 -31
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +130 -1
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +0 -31
- data/generated/google/apis/serviceusage_v1/representations.rb +0 -1
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +0 -31
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +0 -1
- data/generated/google/apis/tasks_v1.rb +3 -3
- data/generated/google/apis/tasks_v1/classes.rb +26 -25
- data/generated/google/apis/tasks_v1/representations.rb +4 -8
- data/generated/google/apis/tasks_v1/service.rb +79 -128
- data/generated/google/apis/translate_v3.rb +1 -1
- data/generated/google/apis/verifiedaccess_v1.rb +3 -3
- data/generated/google/apis/verifiedaccess_v1/service.rb +2 -2
- data/generated/google/apis/websecurityscanner_v1.rb +2 -2
- data/generated/google/apis/websecurityscanner_v1/classes.rb +7 -5
- data/generated/google/apis/websecurityscanner_v1/service.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1alpha.rb +2 -2
- data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +5 -4
- data/generated/google/apis/websecurityscanner_v1alpha/service.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1beta.rb +2 -2
- data/generated/google/apis/websecurityscanner_v1beta/classes.rb +9 -7
- data/generated/google/apis/websecurityscanner_v1beta/service.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +5 -5
- data/generated/google/apis/youtube_v3/classes.rb +1260 -1244
- data/generated/google/apis/youtube_v3/representations.rb +64 -192
- data/generated/google/apis/youtube_v3/service.rb +1833 -2125
- data/lib/google/apis/version.rb +1 -1
- metadata +19 -7
- data/generated/google/apis/pagespeedonline_v1/classes.rb +0 -542
- data/generated/google/apis/pagespeedonline_v1/representations.rb +0 -258
- data/generated/google/apis/pagespeedonline_v1/service.rb +0 -116
@@ -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
|
|
@@ -324,6 +360,14 @@ module Google
|
|
324
360
|
end
|
325
361
|
end
|
326
362
|
|
363
|
+
class Explanation
|
364
|
+
# @private
|
365
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
366
|
+
hash :matched_permissions, as: 'matchedPermissions', class: Google::Apis::CloudassetV1::Permissions, decorator: Google::Apis::CloudassetV1::Permissions::Representation
|
367
|
+
|
368
|
+
end
|
369
|
+
end
|
370
|
+
|
327
371
|
class ExportAssetsRequest
|
328
372
|
# @private
|
329
373
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -522,6 +566,18 @@ module Google
|
|
522
566
|
end
|
523
567
|
end
|
524
568
|
|
569
|
+
class IamPolicySearchResult
|
570
|
+
# @private
|
571
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
572
|
+
property :explanation, as: 'explanation', class: Google::Apis::CloudassetV1::Explanation, decorator: Google::Apis::CloudassetV1::Explanation::Representation
|
573
|
+
|
574
|
+
property :policy, as: 'policy', class: Google::Apis::CloudassetV1::Policy, decorator: Google::Apis::CloudassetV1::Policy::Representation
|
575
|
+
|
576
|
+
property :project, as: 'project'
|
577
|
+
property :resource, as: 'resource'
|
578
|
+
end
|
579
|
+
end
|
580
|
+
|
525
581
|
class ListFeedsResponse
|
526
582
|
# @private
|
527
583
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -552,6 +608,13 @@ module Google
|
|
552
608
|
end
|
553
609
|
end
|
554
610
|
|
611
|
+
class Permissions
|
612
|
+
# @private
|
613
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
614
|
+
collection :permissions, as: 'permissions'
|
615
|
+
end
|
616
|
+
end
|
617
|
+
|
555
618
|
class Policy
|
556
619
|
# @private
|
557
620
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -577,12 +640,46 @@ module Google
|
|
577
640
|
hash :data, as: 'data'
|
578
641
|
property :discovery_document_uri, as: 'discoveryDocumentUri'
|
579
642
|
property :discovery_name, as: 'discoveryName'
|
643
|
+
property :location, as: 'location'
|
580
644
|
property :parent, as: 'parent'
|
581
645
|
property :resource_url, as: 'resourceUrl'
|
582
646
|
property :version, as: 'version'
|
583
647
|
end
|
584
648
|
end
|
585
649
|
|
650
|
+
class ResourceSearchResult
|
651
|
+
# @private
|
652
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
653
|
+
hash :additional_attributes, as: 'additionalAttributes'
|
654
|
+
property :asset_type, as: 'assetType'
|
655
|
+
property :description, as: 'description'
|
656
|
+
property :display_name, as: 'displayName'
|
657
|
+
hash :labels, as: 'labels'
|
658
|
+
property :location, as: 'location'
|
659
|
+
property :name, as: 'name'
|
660
|
+
collection :network_tags, as: 'networkTags'
|
661
|
+
property :project, as: 'project'
|
662
|
+
end
|
663
|
+
end
|
664
|
+
|
665
|
+
class SearchAllIamPoliciesResponse
|
666
|
+
# @private
|
667
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
668
|
+
property :next_page_token, as: 'nextPageToken'
|
669
|
+
collection :results, as: 'results', class: Google::Apis::CloudassetV1::IamPolicySearchResult, decorator: Google::Apis::CloudassetV1::IamPolicySearchResult::Representation
|
670
|
+
|
671
|
+
end
|
672
|
+
end
|
673
|
+
|
674
|
+
class SearchAllResourcesResponse
|
675
|
+
# @private
|
676
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
677
|
+
property :next_page_token, as: 'nextPageToken'
|
678
|
+
collection :results, as: 'results', class: Google::Apis::CloudassetV1::ResourceSearchResult, decorator: Google::Apis::CloudassetV1::ResourceSearchResult::Representation
|
679
|
+
|
680
|
+
end
|
681
|
+
end
|
682
|
+
|
586
683
|
class Status
|
587
684
|
# @private
|
588
685
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -265,14 +265,11 @@ module Google
|
|
265
265
|
# organization number (such as "organizations/123"), a project ID (such as
|
266
266
|
# "projects/my-project-id")", or a project number (such as "projects/12345").
|
267
267
|
# @param [Array<String>, String] asset_names
|
268
|
-
# A list of the full names of the assets.
|
268
|
+
# A list of the full names of the assets.
|
269
|
+
# See: https://cloud.google.com/asset-inventory/docs/resource-name-format
|
270
|
+
# Example:
|
269
271
|
# `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/
|
270
272
|
# instance1`.
|
271
|
-
# See [Resource
|
272
|
-
# Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
|
273
|
-
# and [Resource Name
|
274
|
-
# Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
|
275
|
-
# for more info.
|
276
273
|
# The request becomes a no-op if the asset name list is empty, and the max
|
277
274
|
# size of the asset name list is 100 in one request.
|
278
275
|
# @param [String] content_type
|
@@ -314,9 +311,13 @@ module Google
|
|
314
311
|
end
|
315
312
|
|
316
313
|
# Exports assets with time and resource types to a given Cloud Storage
|
317
|
-
# location. The output format is newline-delimited JSON.
|
314
|
+
# location. The output format is newline-delimited JSON. Each line represents
|
315
|
+
# a google.cloud.asset.v1.Asset in the JSON format.
|
318
316
|
# This API implements the google.longrunning.Operation API allowing you
|
319
|
-
# to keep track of the export.
|
317
|
+
# to keep track of the export. We recommend intervals of at least 2 seconds
|
318
|
+
# with exponential retry to poll the export operation result. For
|
319
|
+
# regular-size resource parent, the export operation usually finishes within
|
320
|
+
# 5 minutes.
|
320
321
|
# @param [String] parent
|
321
322
|
# Required. The relative name of the root asset. This can only be an
|
322
323
|
# organization number (such as "organizations/123"), a project ID (such as
|
@@ -351,6 +352,183 @@ module Google
|
|
351
352
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
352
353
|
execute_or_queue_command(command, &block)
|
353
354
|
end
|
355
|
+
|
356
|
+
# Searches all the IAM policies within the given accessible scope (e.g., a
|
357
|
+
# project, a folder or an organization). Callers should have
|
358
|
+
# cloud.assets.SearchAllIamPolicies permission upon the requested scope,
|
359
|
+
# otherwise the request will be rejected.
|
360
|
+
# @param [String] scope
|
361
|
+
# Required. A scope can be a project, a folder or an organization. The search is
|
362
|
+
# limited to the IAM policies within the `scope`.
|
363
|
+
# The allowed values are:
|
364
|
+
# * projects/`PROJECT_ID`
|
365
|
+
# * projects/`PROJECT_NUMBER`
|
366
|
+
# * folders/`FOLDER_NUMBER`
|
367
|
+
# * organizations/`ORGANIZATION_NUMBER`
|
368
|
+
# @param [Fixnum] page_size
|
369
|
+
# Optional. The page size for search result pagination. Page size is capped at
|
370
|
+
# 500 even
|
371
|
+
# if a larger value is given. If set to zero, server will pick an appropriate
|
372
|
+
# default. Returned results may be fewer than requested. When this happens,
|
373
|
+
# there could be more results as long as `next_page_token` is returned.
|
374
|
+
# @param [String] page_token
|
375
|
+
# Optional. If present, retrieve the next batch of results from the preceding
|
376
|
+
# call to
|
377
|
+
# this method. `page_token` must be the value of `next_page_token` from the
|
378
|
+
# previous response. The values of all other method parameters must be
|
379
|
+
# identical to those in the previous call.
|
380
|
+
# @param [String] query
|
381
|
+
# Optional. The query statement. An empty query can be specified to search all
|
382
|
+
# the IAM
|
383
|
+
# policies within the given `scope`.
|
384
|
+
# Examples:
|
385
|
+
# * `policy : "amy@gmail.com"` to find Cloud IAM policy bindings that
|
386
|
+
# specify user "amy@gmail.com".
|
387
|
+
# * `policy : "roles/compute.admin"` to find Cloud IAM policy bindings that
|
388
|
+
# specify the Compute Admin role.
|
389
|
+
# * `policy.role.permissions : "storage.buckets.update"` to find Cloud IAM
|
390
|
+
# policy bindings that specify a role containing "storage.buckets.update"
|
391
|
+
# permission.
|
392
|
+
# * `resource : "organizations/123"` to find Cloud IAM policy bindings that
|
393
|
+
# are set on "organizations/123".
|
394
|
+
# * `(resource : ("organizations/123" OR "folders/1234") AND policy : "amy")`
|
395
|
+
# to find Cloud IAM policy bindings that are set on "organizations/123" or
|
396
|
+
# "folders/1234", and also specify user "amy".
|
397
|
+
# See [how to construct a
|
398
|
+
# query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#
|
399
|
+
# how_to_construct_a_query)
|
400
|
+
# for more details.
|
401
|
+
# @param [String] fields
|
402
|
+
# Selector specifying which fields to include in a partial response.
|
403
|
+
# @param [String] quota_user
|
404
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
405
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
406
|
+
# @param [Google::Apis::RequestOptions] options
|
407
|
+
# Request-specific options
|
408
|
+
#
|
409
|
+
# @yield [result, err] Result & error if block supplied
|
410
|
+
# @yieldparam result [Google::Apis::CloudassetV1::SearchAllIamPoliciesResponse] parsed result object
|
411
|
+
# @yieldparam err [StandardError] error object if request failed
|
412
|
+
#
|
413
|
+
# @return [Google::Apis::CloudassetV1::SearchAllIamPoliciesResponse]
|
414
|
+
#
|
415
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
416
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
417
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
418
|
+
def search_all_iam_policies(scope, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
|
419
|
+
command = make_simple_command(:get, 'v1/{+scope}:searchAllIamPolicies', options)
|
420
|
+
command.response_representation = Google::Apis::CloudassetV1::SearchAllIamPoliciesResponse::Representation
|
421
|
+
command.response_class = Google::Apis::CloudassetV1::SearchAllIamPoliciesResponse
|
422
|
+
command.params['scope'] = scope unless scope.nil?
|
423
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
424
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
425
|
+
command.query['query'] = query unless query.nil?
|
426
|
+
command.query['fields'] = fields unless fields.nil?
|
427
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
428
|
+
execute_or_queue_command(command, &block)
|
429
|
+
end
|
430
|
+
|
431
|
+
# Searches all the resources within the given accessible scope (e.g., a
|
432
|
+
# project, a folder or an organization). Callers should have
|
433
|
+
# cloud.assets.SearchAllResources permission upon the requested scope,
|
434
|
+
# otherwise the request will be rejected.
|
435
|
+
# @param [String] scope
|
436
|
+
# Required. A scope can be a project, a folder or an organization. The search is
|
437
|
+
# limited to the resources within the `scope`.
|
438
|
+
# The allowed values are:
|
439
|
+
# * projects/`PROJECT_ID`
|
440
|
+
# * projects/`PROJECT_NUMBER`
|
441
|
+
# * folders/`FOLDER_NUMBER`
|
442
|
+
# * organizations/`ORGANIZATION_NUMBER`
|
443
|
+
# @param [Array<String>, String] asset_types
|
444
|
+
# Optional. A list of asset types that this request searches for. If empty, it
|
445
|
+
# will
|
446
|
+
# search all the [searchable asset
|
447
|
+
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#
|
448
|
+
# searchable_asset_types).
|
449
|
+
# @param [String] order_by
|
450
|
+
# Optional. A comma separated list of fields specifying the sorting order of the
|
451
|
+
# results. The default order is ascending. Add " DESC" after the field name
|
452
|
+
# to indicate descending order. Redundant space characters are ignored.
|
453
|
+
# Example: "location DESC, name". See [supported resource metadata
|
454
|
+
# fields](https://cloud.google.com/asset-inventory/docs/searching-resources#
|
455
|
+
# query_on_resource_metadata_fields)
|
456
|
+
# for more details.
|
457
|
+
# @param [Fixnum] page_size
|
458
|
+
# Optional. The page size for search result pagination. Page size is capped at
|
459
|
+
# 500 even
|
460
|
+
# if a larger value is given. If set to zero, server will pick an appropriate
|
461
|
+
# default. Returned results may be fewer than requested. When this happens,
|
462
|
+
# there could be more results as long as `next_page_token` is returned.
|
463
|
+
# @param [String] page_token
|
464
|
+
# Optional. If present, then retrieve the next batch of results from the
|
465
|
+
# preceding call
|
466
|
+
# to this method. `page_token` must be the value of `next_page_token` from
|
467
|
+
# the previous response. The values of all other method parameters, must be
|
468
|
+
# identical to those in the previous call.
|
469
|
+
# @param [String] query
|
470
|
+
# Optional. The query statement. An empty query can be specified to search all
|
471
|
+
# the
|
472
|
+
# resources of certain `asset_types` within the given `scope`.
|
473
|
+
# Examples:
|
474
|
+
# * `name : "Important"` to find Cloud resources whose name contains
|
475
|
+
# "Important" as a word.
|
476
|
+
# * `displayName : "Impor*"` to find Cloud resources whose display name
|
477
|
+
# contains "Impor" as a word prefix.
|
478
|
+
# * `description : "*por*"` to find Cloud resources whose description
|
479
|
+
# contains "por" as a substring.
|
480
|
+
# * `location : "us-west*"` to find Cloud resources whose location is
|
481
|
+
# prefixed with "us-west".
|
482
|
+
# * `labels : "prod"` to find Cloud resources whose labels contain "prod" as
|
483
|
+
# a key or value.
|
484
|
+
# * `labels.env : "prod"` to find Cloud resources which have a label "env"
|
485
|
+
# and its value is "prod".
|
486
|
+
# * `labels.env : *` to find Cloud resources which have a label "env".
|
487
|
+
# * `"Important"` to find Cloud resources which contain "Important" as a word
|
488
|
+
# in any of the searchable fields.
|
489
|
+
# * `"Impor*"` to find Cloud resources which contain "Impor" as a word prefix
|
490
|
+
# in any of the searchable fields.
|
491
|
+
# * `"*por*"` to find Cloud resources which contain "por" as a substring in
|
492
|
+
# any of the searchable fields.
|
493
|
+
# * `("Important" AND location : ("us-west1" OR "global"))` to find Cloud
|
494
|
+
# resources which contain "Important" as a word in any of the searchable
|
495
|
+
# fields and are also located in the "us-west1" region or the "global"
|
496
|
+
# location.
|
497
|
+
# See [how to construct a
|
498
|
+
# query](https://cloud.google.com/asset-inventory/docs/searching-resources#
|
499
|
+
# how_to_construct_a_query)
|
500
|
+
# for more details.
|
501
|
+
# @param [String] fields
|
502
|
+
# Selector specifying which fields to include in a partial response.
|
503
|
+
# @param [String] quota_user
|
504
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
505
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
506
|
+
# @param [Google::Apis::RequestOptions] options
|
507
|
+
# Request-specific options
|
508
|
+
#
|
509
|
+
# @yield [result, err] Result & error if block supplied
|
510
|
+
# @yieldparam result [Google::Apis::CloudassetV1::SearchAllResourcesResponse] parsed result object
|
511
|
+
# @yieldparam err [StandardError] error object if request failed
|
512
|
+
#
|
513
|
+
# @return [Google::Apis::CloudassetV1::SearchAllResourcesResponse]
|
514
|
+
#
|
515
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
516
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
517
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
518
|
+
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)
|
519
|
+
command = make_simple_command(:get, 'v1/{+scope}:searchAllResources', options)
|
520
|
+
command.response_representation = Google::Apis::CloudassetV1::SearchAllResourcesResponse::Representation
|
521
|
+
command.response_class = Google::Apis::CloudassetV1::SearchAllResourcesResponse
|
522
|
+
command.params['scope'] = scope unless scope.nil?
|
523
|
+
command.query['assetTypes'] = asset_types unless asset_types.nil?
|
524
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
525
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
526
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
527
|
+
command.query['query'] = query unless query.nil?
|
528
|
+
command.query['fields'] = fields unless fields.nil?
|
529
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
530
|
+
execute_or_queue_command(command, &block)
|
531
|
+
end
|
354
532
|
|
355
533
|
protected
|
356
534
|
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/asset-inventory/docs/quickstart
|
26
26
|
module CloudassetV1beta1
|
27
27
|
VERSION = 'V1beta1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20200515'
|
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'
|
@@ -39,10 +39,13 @@ module Google
|
|
39
39
|
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
40
40
|
# permissions; each `role` can be an IAM predefined role or a user-created
|
41
41
|
# custom role.
|
42
|
-
#
|
43
|
-
# expression that allows access to a resource
|
44
|
-
# to `true`. A condition can add constraints
|
45
|
-
# request, the resource, or both.
|
42
|
+
# For some types of Google Cloud resources, a `binding` can also specify a
|
43
|
+
# `condition`, which is a logical expression that allows access to a resource
|
44
|
+
# only if the expression evaluates to `true`. A condition can add constraints
|
45
|
+
# based on attributes of the request, the resource, or both. To learn which
|
46
|
+
# resources support conditions in their IAM policies, see the
|
47
|
+
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
48
|
+
# policies).
|
46
49
|
# **JSON example:**
|
47
50
|
# `
|
48
51
|
# "bindings": [
|
@@ -57,7 +60,9 @@ module Google
|
|
57
60
|
# `,
|
58
61
|
# `
|
59
62
|
# "role": "roles/resourcemanager.organizationViewer",
|
60
|
-
# "members": [
|
63
|
+
# "members": [
|
64
|
+
# "user:eve@example.com"
|
65
|
+
# ],
|
61
66
|
# "condition": `
|
62
67
|
# "title": "expirable access",
|
63
68
|
# "description": "Does not grant access after Sep 2020",
|
@@ -574,10 +579,13 @@ module Google
|
|
574
579
|
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
575
580
|
# permissions; each `role` can be an IAM predefined role or a user-created
|
576
581
|
# custom role.
|
577
|
-
#
|
578
|
-
# expression that allows access to a resource
|
579
|
-
# to `true`. A condition can add constraints
|
580
|
-
# request, the resource, or both.
|
582
|
+
# For some types of Google Cloud resources, a `binding` can also specify a
|
583
|
+
# `condition`, which is a logical expression that allows access to a resource
|
584
|
+
# only if the expression evaluates to `true`. A condition can add constraints
|
585
|
+
# based on attributes of the request, the resource, or both. To learn which
|
586
|
+
# resources support conditions in their IAM policies, see the
|
587
|
+
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
588
|
+
# policies).
|
581
589
|
# **JSON example:**
|
582
590
|
# `
|
583
591
|
# "bindings": [
|
@@ -592,7 +600,9 @@ module Google
|
|
592
600
|
# `,
|
593
601
|
# `
|
594
602
|
# "role": "roles/resourcemanager.organizationViewer",
|
595
|
-
# "members": [
|
603
|
+
# "members": [
|
604
|
+
# "user:eve@example.com"
|
605
|
+
# ],
|
596
606
|
# "condition": `
|
597
607
|
# "title": "expirable access",
|
598
608
|
# "description": "Does not grant access after Sep 2020",
|
@@ -670,6 +680,9 @@ module Google
|
|
670
680
|
# the conditions in the version `3` policy are lost.
|
671
681
|
# If a policy does not include any conditions, operations on that policy may
|
672
682
|
# specify any valid version or leave the field unset.
|
683
|
+
# To learn which resources support conditions in their IAM policies, see the
|
684
|
+
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
685
|
+
# policies).
|
673
686
|
# Corresponds to the JSON property `version`
|
674
687
|
# @return [Fixnum]
|
675
688
|
attr_accessor :version
|
@@ -50,7 +50,10 @@ module Google
|
|
50
50
|
# Exports assets with time and resource types to a given Cloud Storage
|
51
51
|
# location. The output format is newline-delimited JSON.
|
52
52
|
# This API implements the google.longrunning.Operation API allowing you
|
53
|
-
# to keep track of the export.
|
53
|
+
# to keep track of the export. We recommend intervals of at least 2 seconds
|
54
|
+
# with exponential retry to poll the export operation result. For
|
55
|
+
# regular-size resource parent, the export operation usually finishes within
|
56
|
+
# 5 minutes.
|
54
57
|
# @param [String] parent
|
55
58
|
# Required. The relative name of the root asset. This can only be an
|
56
59
|
# organization number (such as "organizations/123"), a project ID (such as
|
@@ -179,7 +182,10 @@ module Google
|
|
179
182
|
# Exports assets with time and resource types to a given Cloud Storage
|
180
183
|
# location. The output format is newline-delimited JSON.
|
181
184
|
# This API implements the google.longrunning.Operation API allowing you
|
182
|
-
# to keep track of the export.
|
185
|
+
# to keep track of the export. We recommend intervals of at least 2 seconds
|
186
|
+
# with exponential retry to poll the export operation result. For
|
187
|
+
# regular-size resource parent, the export operation usually finishes within
|
188
|
+
# 5 minutes.
|
183
189
|
# @param [String] parent
|
184
190
|
# Required. The relative name of the root asset. This can only be an
|
185
191
|
# organization number (such as "organizations/123"), a project ID (such as
|
@@ -308,7 +314,10 @@ module Google
|
|
308
314
|
# Exports assets with time and resource types to a given Cloud Storage
|
309
315
|
# location. The output format is newline-delimited JSON.
|
310
316
|
# This API implements the google.longrunning.Operation API allowing you
|
311
|
-
# to keep track of the export.
|
317
|
+
# to keep track of the export. We recommend intervals of at least 2 seconds
|
318
|
+
# with exponential retry to poll the export operation result. For
|
319
|
+
# regular-size resource parent, the export operation usually finishes within
|
320
|
+
# 5 minutes.
|
312
321
|
# @param [String] parent
|
313
322
|
# Required. The relative name of the root asset. This can only be an
|
314
323
|
# organization number (such as "organizations/123"), a project ID (such as
|