google-api-client 0.40.1 → 0.40.2
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +65 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v3.rb +3 -3
- data/generated/google/apis/androidpublisher_v3/classes.rb +468 -750
- data/generated/google/apis/androidpublisher_v3/representations.rb +9 -202
- data/generated/google/apis/androidpublisher_v3/service.rb +531 -863
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +12 -6
- data/generated/google/apis/apigee_v1/representations.rb +1 -0
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
- data/generated/google/apis/artifactregistry_v1beta1/classes.rb +113 -0
- data/generated/google/apis/artifactregistry_v1beta1/representations.rb +61 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +15 -7
- data/generated/google/apis/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1/classes.rb +1 -4
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/service.rb +2 -2
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +25 -342
- data/generated/google/apis/cloudasset_v1/representations.rb +1 -96
- data/generated/google/apis/cloudasset_v1/service.rb +11 -186
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +6 -6
- data/generated/google/apis/cloudasset_v1beta1/service.rb +4 -4
- data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +6 -6
- data/generated/google/apis/cloudasset_v1p1beta1/service.rb +15 -16
- data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +26 -8
- data/generated/google/apis/cloudasset_v1p4beta1/service.rb +24 -3
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +2 -2
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +2 -2
- data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +2 -2
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +7 -7
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +6 -6
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +6 -8
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +6 -6
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +8 -8
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +6 -6
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +6 -6
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +91 -3
- data/generated/google/apis/compute_alpha/representations.rb +36 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +15 -3
- data/generated/google/apis/compute_beta/representations.rb +2 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +3 -3
- data/generated/google/apis/datafusion_v1beta1.rb +1 -1
- data/generated/google/apis/datafusion_v1beta1/classes.rb +64 -19
- data/generated/google/apis/datafusion_v1beta1/representations.rb +16 -0
- data/generated/google/apis/datafusion_v1beta1/service.rb +49 -2
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +1 -1
- data/generated/google/apis/displayvideo_v1/service.rb +4 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +8 -6
- data/generated/google/apis/dlp_v2/service.rb +170 -64
- data/generated/google/apis/fcm_v1.rb +1 -1
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +84 -0
- data/generated/google/apis/genomics_v2alpha1/representations.rb +28 -0
- data/generated/google/apis/genomics_v2alpha1/service.rb +38 -2
- data/generated/google/apis/gmail_v1.rb +3 -2
- data/generated/google/apis/gmail_v1/classes.rb +263 -200
- data/generated/google/apis/gmail_v1/service.rb +551 -743
- data/generated/google/apis/groupsmigration_v1.rb +3 -2
- data/generated/google/apis/groupsmigration_v1/service.rb +10 -17
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +87 -81
- data/generated/google/apis/iam_v1/service.rb +163 -148
- data/generated/google/apis/iamcredentials_v1.rb +1 -1
- data/generated/google/apis/iamcredentials_v1/classes.rb +4 -3
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +4 -2
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +4 -2
- data/generated/google/apis/memcache_v1beta2.rb +1 -1
- data/generated/google/apis/memcache_v1beta2/classes.rb +6 -6
- data/generated/google/apis/monitoring_v1.rb +1 -1
- data/generated/google/apis/monitoring_v1/classes.rb +46 -0
- data/generated/google/apis/monitoring_v1/representations.rb +18 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +10 -0
- data/generated/google/apis/monitoring_v3/representations.rb +1 -0
- data/generated/google/apis/osconfig_v1.rb +1 -1
- data/generated/google/apis/osconfig_v1/classes.rb +2 -2
- data/generated/google/apis/osconfig_v1beta.rb +1 -1
- data/generated/google/apis/osconfig_v1beta/classes.rb +6 -7
- data/generated/google/apis/pagespeedonline_v5.rb +1 -1
- data/generated/google/apis/pagespeedonline_v5/classes.rb +7 -0
- data/generated/google/apis/pagespeedonline_v5/representations.rb +1 -0
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +118 -2
- data/generated/google/apis/people_v1/representations.rb +51 -0
- data/generated/google/apis/people_v1/service.rb +336 -67
- data/generated/google/apis/playcustomapp_v1.rb +3 -3
- data/generated/google/apis/playcustomapp_v1/classes.rb +7 -0
- data/generated/google/apis/playcustomapp_v1/representations.rb +1 -0
- data/generated/google/apis/playcustomapp_v1/service.rb +11 -19
- data/generated/google/apis/policytroubleshooter_v1.rb +1 -1
- data/generated/google/apis/policytroubleshooter_v1/classes.rb +6 -6
- data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
- data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +6 -6
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +49 -7
- data/generated/google/apis/pubsub_v1/representations.rb +16 -0
- data/generated/google/apis/secretmanager_v1.rb +1 -1
- data/generated/google/apis/secretmanager_v1/classes.rb +6 -6
- data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
- data/generated/google/apis/secretmanager_v1beta1/classes.rb +6 -6
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +106 -6
- data/generated/google/apis/securitycenter_v1/representations.rb +38 -0
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +106 -6
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +38 -0
- data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
- data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +100 -0
- data/generated/google/apis/securitycenter_v1p1alpha1/representations.rb +38 -0
- data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +106 -6
- data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +38 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +108 -44
- 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 +114 -44
- data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +1 -1
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +6 -12
- 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 +109 -44
- data/generated/google/apis/servicenetworking_v1/representations.rb +0 -1
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +109 -44
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +0 -1
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +109 -45
- 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 +115 -45
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/service.rb +34 -0
- data/generated/google/apis/texttospeech_v1.rb +1 -1
- data/generated/google/apis/texttospeech_v1/classes.rb +1 -1
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/texttospeech_v1beta1/classes.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +3 -3
|
@@ -70,12 +70,6 @@ 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
|
-
|
|
79
73
|
class ExportAssetsRequest
|
|
80
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
81
75
|
|
|
@@ -190,12 +184,6 @@ module Google
|
|
|
190
184
|
include Google::Apis::Core::JsonObjectSupport
|
|
191
185
|
end
|
|
192
186
|
|
|
193
|
-
class IamPolicySearchResult
|
|
194
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
195
|
-
|
|
196
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
197
|
-
end
|
|
198
|
-
|
|
199
187
|
class ListFeedsResponse
|
|
200
188
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
201
189
|
|
|
@@ -214,12 +202,6 @@ module Google
|
|
|
214
202
|
include Google::Apis::Core::JsonObjectSupport
|
|
215
203
|
end
|
|
216
204
|
|
|
217
|
-
class Permissions
|
|
218
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
219
|
-
|
|
220
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
221
|
-
end
|
|
222
|
-
|
|
223
205
|
class Policy
|
|
224
206
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
225
207
|
|
|
@@ -238,24 +220,6 @@ module Google
|
|
|
238
220
|
include Google::Apis::Core::JsonObjectSupport
|
|
239
221
|
end
|
|
240
222
|
|
|
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
|
-
|
|
259
223
|
class Status
|
|
260
224
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
261
225
|
|
|
@@ -298,6 +262,7 @@ module Google
|
|
|
298
262
|
|
|
299
263
|
property :service_perimeter, as: 'servicePerimeter', class: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter, decorator: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter::Representation
|
|
300
264
|
|
|
265
|
+
property :update_time, as: 'updateTime'
|
|
301
266
|
end
|
|
302
267
|
end
|
|
303
268
|
|
|
@@ -360,14 +325,6 @@ module Google
|
|
|
360
325
|
end
|
|
361
326
|
end
|
|
362
327
|
|
|
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
|
-
|
|
371
328
|
class ExportAssetsRequest
|
|
372
329
|
# @private
|
|
373
330
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -566,18 +523,6 @@ module Google
|
|
|
566
523
|
end
|
|
567
524
|
end
|
|
568
525
|
|
|
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
|
-
|
|
581
526
|
class ListFeedsResponse
|
|
582
527
|
# @private
|
|
583
528
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -608,13 +553,6 @@ module Google
|
|
|
608
553
|
end
|
|
609
554
|
end
|
|
610
555
|
|
|
611
|
-
class Permissions
|
|
612
|
-
# @private
|
|
613
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
614
|
-
collection :permissions, as: 'permissions'
|
|
615
|
-
end
|
|
616
|
-
end
|
|
617
|
-
|
|
618
556
|
class Policy
|
|
619
557
|
# @private
|
|
620
558
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -647,39 +585,6 @@ module Google
|
|
|
647
585
|
end
|
|
648
586
|
end
|
|
649
587
|
|
|
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
|
-
|
|
683
588
|
class Status
|
|
684
589
|
# @private
|
|
685
590
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -254,10 +254,10 @@ module Google
|
|
|
254
254
|
end
|
|
255
255
|
|
|
256
256
|
# Batch gets the update history of assets that overlap a time window.
|
|
257
|
-
# For RESOURCE content, this API outputs history with asset in both
|
|
258
|
-
# non-delete or deleted status.
|
|
259
257
|
# For IAM_POLICY content, this API outputs history when the asset and its
|
|
260
258
|
# attached IAM POLICY both exist. This can create gaps in the output history.
|
|
259
|
+
# Otherwise, this API outputs history with asset in both non-delete or
|
|
260
|
+
# deleted status.
|
|
261
261
|
# If a specified asset does not exist, this API returns an INVALID_ARGUMENT
|
|
262
262
|
# error.
|
|
263
263
|
# @param [String] parent
|
|
@@ -311,13 +311,15 @@ module Google
|
|
|
311
311
|
end
|
|
312
312
|
|
|
313
313
|
# Exports assets with time and resource types to a given Cloud Storage
|
|
314
|
-
# location.
|
|
315
|
-
#
|
|
316
|
-
#
|
|
317
|
-
#
|
|
318
|
-
#
|
|
319
|
-
#
|
|
320
|
-
#
|
|
314
|
+
# location/BigQuery table. For Cloud Storage location destinations, the
|
|
315
|
+
# output format is newline-delimited JSON. Each line represents a
|
|
316
|
+
# google.cloud.asset.v1.Asset in the JSON format; for BigQuery table
|
|
317
|
+
# destinations, the output table stores the fields in asset proto as columns.
|
|
318
|
+
# This API implements the google.longrunning.Operation API
|
|
319
|
+
# , which allows you to keep track of the export. We recommend intervals of
|
|
320
|
+
# at least 2 seconds with exponential retry to poll the export operation
|
|
321
|
+
# result. For regular-size resource parent, the export operation usually
|
|
322
|
+
# finishes within 5 minutes.
|
|
321
323
|
# @param [String] parent
|
|
322
324
|
# Required. The relative name of the root asset. This can only be an
|
|
323
325
|
# organization number (such as "organizations/123"), a project ID (such as
|
|
@@ -352,183 +354,6 @@ module Google
|
|
|
352
354
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
353
355
|
execute_or_queue_command(command, &block)
|
|
354
356
|
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
|
|
532
357
|
|
|
533
358
|
protected
|
|
534
359
|
|
|
@@ -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 = '20200605'
|
|
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'
|
|
@@ -137,7 +137,7 @@ module Google
|
|
|
137
137
|
# `
|
|
138
138
|
# "audit_configs": [
|
|
139
139
|
# `
|
|
140
|
-
# "service": "allServices"
|
|
140
|
+
# "service": "allServices",
|
|
141
141
|
# "audit_log_configs": [
|
|
142
142
|
# `
|
|
143
143
|
# "log_type": "DATA_READ",
|
|
@@ -146,18 +146,18 @@ module Google
|
|
|
146
146
|
# ]
|
|
147
147
|
# `,
|
|
148
148
|
# `
|
|
149
|
-
# "log_type": "DATA_WRITE"
|
|
149
|
+
# "log_type": "DATA_WRITE"
|
|
150
150
|
# `,
|
|
151
151
|
# `
|
|
152
|
-
# "log_type": "ADMIN_READ"
|
|
152
|
+
# "log_type": "ADMIN_READ"
|
|
153
153
|
# `
|
|
154
154
|
# ]
|
|
155
155
|
# `,
|
|
156
156
|
# `
|
|
157
|
-
# "service": "sampleservice.googleapis.com"
|
|
157
|
+
# "service": "sampleservice.googleapis.com",
|
|
158
158
|
# "audit_log_configs": [
|
|
159
159
|
# `
|
|
160
|
-
# "log_type": "DATA_READ"
|
|
160
|
+
# "log_type": "DATA_READ"
|
|
161
161
|
# `,
|
|
162
162
|
# `
|
|
163
163
|
# "log_type": "DATA_WRITE",
|
|
@@ -209,7 +209,7 @@ module Google
|
|
|
209
209
|
# ]
|
|
210
210
|
# `,
|
|
211
211
|
# `
|
|
212
|
-
# "log_type": "DATA_WRITE"
|
|
212
|
+
# "log_type": "DATA_WRITE"
|
|
213
213
|
# `
|
|
214
214
|
# ]
|
|
215
215
|
# `
|
|
@@ -122,10 +122,10 @@ module Google
|
|
|
122
122
|
end
|
|
123
123
|
|
|
124
124
|
# Batch gets the update history of assets that overlap a time window.
|
|
125
|
-
# For RESOURCE content, this API outputs history with asset in both
|
|
126
|
-
# non-delete or deleted status.
|
|
127
125
|
# For IAM_POLICY content, this API outputs history when the asset and its
|
|
128
126
|
# attached IAM POLICY both exist. This can create gaps in the output history.
|
|
127
|
+
# Otherwise, this API outputs history with asset in both non-delete or
|
|
128
|
+
# deleted status.
|
|
129
129
|
# If a specified asset does not exist, this API returns an INVALID_ARGUMENT
|
|
130
130
|
# error.
|
|
131
131
|
# @param [String] parent
|
|
@@ -254,10 +254,10 @@ module Google
|
|
|
254
254
|
end
|
|
255
255
|
|
|
256
256
|
# Batch gets the update history of assets that overlap a time window.
|
|
257
|
-
# For RESOURCE content, this API outputs history with asset in both
|
|
258
|
-
# non-delete or deleted status.
|
|
259
257
|
# For IAM_POLICY content, this API outputs history when the asset and its
|
|
260
258
|
# attached IAM POLICY both exist. This can create gaps in the output history.
|
|
259
|
+
# Otherwise, this API outputs history with asset in both non-delete or
|
|
260
|
+
# deleted status.
|
|
261
261
|
# If a specified asset does not exist, this API returns an INVALID_ARGUMENT
|
|
262
262
|
# error.
|
|
263
263
|
# @param [String] parent
|