google-api-client 0.36.0 → 0.36.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +69 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +2 -1
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +7 -4
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +32 -32
- data/generated/google/apis/androidpublisher_v3/representations.rb +17 -17
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +2 -1
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +81 -41
- data/generated/google/apis/bigqueryconnection_v1beta1/representations.rb +2 -0
- data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +8 -8
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +60 -30
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +75 -40
- data/generated/google/apis/bigtableadmin_v2/service.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1/classes.rb +75 -41
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +75 -41
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/service.rb +5 -2
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +206 -0
- data/generated/google/apis/cloudasset_v1/representations.rb +101 -0
- data/generated/google/apis/cloudasset_v1/service.rb +174 -0
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +59 -41
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +9 -5
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +75 -41
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +75 -41
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +104 -41
- data/generated/google/apis/cloudkms_v1/representations.rb +15 -0
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +75 -41
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +75 -41
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +75 -41
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +75 -41
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +3 -2
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +81 -47
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +75 -41
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +81 -47
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +5 -3
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +68 -47
- data/generated/google/apis/compute_alpha/representations.rb +2 -1
- data/generated/google/apis/compute_alpha/service.rb +54 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +597 -40
- data/generated/google/apis/compute_beta/representations.rb +164 -0
- data/generated/google/apis/compute_beta/service.rb +343 -1
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +54 -39
- data/generated/google/apis/compute_v1/representations.rb +1 -0
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +75 -41
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +77 -43
- data/generated/google/apis/containeranalysis_v1beta1/service.rb +26 -20
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +46 -42
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +46 -42
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +75 -41
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +16 -22
- data/generated/google/apis/datastore_v1/service.rb +10 -10
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +5 -4
- data/generated/google/apis/datastore_v1beta3/service.rb +8 -8
- data/generated/google/apis/dfareporting_v3_4.rb +1 -1
- data/generated/google/apis/dfareporting_v3_4/classes.rb +88 -88
- data/generated/google/apis/dfareporting_v3_4/representations.rb +39 -39
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +1 -1
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +77 -0
- data/generated/google/apis/dlp_v2/representations.rb +42 -0
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +59 -12
- data/generated/google/apis/file_v1/representations.rb +19 -2
- data/generated/google/apis/file_v1/service.rb +8 -4
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +59 -12
- data/generated/google/apis/file_v1beta1/representations.rb +19 -2
- data/generated/google/apis/file_v1beta1/service.rb +8 -4
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +75 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +35 -0
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +6 -2
- data/generated/google/apis/iamcredentials_v1.rb +1 -1
- data/generated/google/apis/iamcredentials_v1/classes.rb +7 -4
- data/generated/google/apis/iamcredentials_v1/service.rb +4 -4
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1/classes.rb +225 -40
- data/generated/google/apis/iap_v1/representations.rb +84 -0
- data/generated/google/apis/iap_v1/service.rb +292 -0
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +75 -40
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +29 -41
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +14 -21
- data/generated/google/apis/ml_v1/service.rb +15 -18
- data/generated/google/apis/monitoring_v1.rb +1 -1
- data/generated/google/apis/monitoring_v1/classes.rb +15 -11
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +6 -10
- data/generated/google/apis/monitoring_v3/representations.rb +0 -1
- data/generated/google/apis/{fusiontables_v1.rb → policytroubleshooter_v1.rb} +10 -13
- data/generated/google/apis/policytroubleshooter_v1/classes.rb +700 -0
- data/generated/google/apis/policytroubleshooter_v1/representations.rb +203 -0
- data/generated/google/apis/policytroubleshooter_v1/service.rb +90 -0
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +75 -41
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +75 -41
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +1 -1
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +75 -41
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +82 -41
- data/generated/google/apis/run_v1alpha1/representations.rb +2 -0
- data/generated/google/apis/{fusiontables_v2.rb → secretmanager_v1beta1.rb} +11 -14
- data/generated/google/apis/secretmanager_v1beta1/classes.rb +936 -0
- data/generated/google/apis/secretmanager_v1beta1/representations.rb +388 -0
- data/generated/google/apis/secretmanager_v1beta1/service.rb +674 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +85 -1
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +32 -0
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +4 -3
- data/generated/google/apis/servicecontrol_v1/service.rb +2 -1
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +38 -1
- data/generated/google/apis/servicenetworking_v1/representations.rb +14 -0
- data/generated/google/apis/servicenetworking_v1/service.rb +35 -0
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +16 -1
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +1 -0
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +16 -1
- data/generated/google/apis/serviceusage_v1/representations.rb +1 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +16 -1
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/service.rb +4 -2
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +2 -2
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +374 -2
- data/generated/google/apis/toolresults_v1beta3/representations.rb +109 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +98 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +11 -11
- data/generated/google/apis/fusiontables_v1/classes.rb +0 -977
- data/generated/google/apis/fusiontables_v1/representations.rb +0 -449
- data/generated/google/apis/fusiontables_v1/service.rb +0 -1307
- data/generated/google/apis/fusiontables_v2/classes.rb +0 -1049
- data/generated/google/apis/fusiontables_v2/representations.rb +0 -457
- data/generated/google/apis/fusiontables_v2/service.rb +0 -1431
|
@@ -58,6 +58,18 @@ module Google
|
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
+
class CreateFeedRequest
|
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
|
+
|
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
class Empty
|
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
69
|
+
|
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
71
|
+
end
|
|
72
|
+
|
|
61
73
|
class ExportAssetsRequest
|
|
62
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
75
|
|
|
@@ -70,6 +82,18 @@ module Google
|
|
|
70
82
|
include Google::Apis::Core::JsonObjectSupport
|
|
71
83
|
end
|
|
72
84
|
|
|
85
|
+
class Feed
|
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
87
|
+
|
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
class FeedOutputConfig
|
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
93
|
+
|
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
95
|
+
end
|
|
96
|
+
|
|
73
97
|
class GcsDestination
|
|
74
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
75
99
|
|
|
@@ -148,6 +172,12 @@ module Google
|
|
|
148
172
|
include Google::Apis::Core::JsonObjectSupport
|
|
149
173
|
end
|
|
150
174
|
|
|
175
|
+
class ListFeedsResponse
|
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
177
|
+
|
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
179
|
+
end
|
|
180
|
+
|
|
151
181
|
class Operation
|
|
152
182
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
153
183
|
|
|
@@ -166,6 +196,12 @@ module Google
|
|
|
166
196
|
include Google::Apis::Core::JsonObjectSupport
|
|
167
197
|
end
|
|
168
198
|
|
|
199
|
+
class PubsubDestination
|
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
201
|
+
|
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
203
|
+
end
|
|
204
|
+
|
|
169
205
|
class Resource
|
|
170
206
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
171
207
|
|
|
@@ -190,6 +226,12 @@ module Google
|
|
|
190
226
|
include Google::Apis::Core::JsonObjectSupport
|
|
191
227
|
end
|
|
192
228
|
|
|
229
|
+
class UpdateFeedRequest
|
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
231
|
+
|
|
232
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
233
|
+
end
|
|
234
|
+
|
|
193
235
|
class Asset
|
|
194
236
|
# @private
|
|
195
237
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -255,6 +297,21 @@ module Google
|
|
|
255
297
|
end
|
|
256
298
|
end
|
|
257
299
|
|
|
300
|
+
class CreateFeedRequest
|
|
301
|
+
# @private
|
|
302
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
303
|
+
property :feed, as: 'feed', class: Google::Apis::CloudassetV1::Feed, decorator: Google::Apis::CloudassetV1::Feed::Representation
|
|
304
|
+
|
|
305
|
+
property :feed_id, as: 'feedId'
|
|
306
|
+
end
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
class Empty
|
|
310
|
+
# @private
|
|
311
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
312
|
+
end
|
|
313
|
+
end
|
|
314
|
+
|
|
258
315
|
class ExportAssetsRequest
|
|
259
316
|
# @private
|
|
260
317
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -276,6 +333,26 @@ module Google
|
|
|
276
333
|
end
|
|
277
334
|
end
|
|
278
335
|
|
|
336
|
+
class Feed
|
|
337
|
+
# @private
|
|
338
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
339
|
+
collection :asset_names, as: 'assetNames'
|
|
340
|
+
collection :asset_types, as: 'assetTypes'
|
|
341
|
+
property :content_type, as: 'contentType'
|
|
342
|
+
property :feed_output_config, as: 'feedOutputConfig', class: Google::Apis::CloudassetV1::FeedOutputConfig, decorator: Google::Apis::CloudassetV1::FeedOutputConfig::Representation
|
|
343
|
+
|
|
344
|
+
property :name, as: 'name'
|
|
345
|
+
end
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
class FeedOutputConfig
|
|
349
|
+
# @private
|
|
350
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
351
|
+
property :pubsub_destination, as: 'pubsubDestination', class: Google::Apis::CloudassetV1::PubsubDestination, decorator: Google::Apis::CloudassetV1::PubsubDestination::Representation
|
|
352
|
+
|
|
353
|
+
end
|
|
354
|
+
end
|
|
355
|
+
|
|
279
356
|
class GcsDestination
|
|
280
357
|
# @private
|
|
281
358
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -415,6 +492,14 @@ module Google
|
|
|
415
492
|
end
|
|
416
493
|
end
|
|
417
494
|
|
|
495
|
+
class ListFeedsResponse
|
|
496
|
+
# @private
|
|
497
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
498
|
+
collection :feeds, as: 'feeds', class: Google::Apis::CloudassetV1::Feed, decorator: Google::Apis::CloudassetV1::Feed::Representation
|
|
499
|
+
|
|
500
|
+
end
|
|
501
|
+
end
|
|
502
|
+
|
|
418
503
|
class Operation
|
|
419
504
|
# @private
|
|
420
505
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -449,6 +534,13 @@ module Google
|
|
|
449
534
|
end
|
|
450
535
|
end
|
|
451
536
|
|
|
537
|
+
class PubsubDestination
|
|
538
|
+
# @private
|
|
539
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
540
|
+
property :topic, as: 'topic'
|
|
541
|
+
end
|
|
542
|
+
end
|
|
543
|
+
|
|
452
544
|
class Resource
|
|
453
545
|
# @private
|
|
454
546
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -488,6 +580,15 @@ module Google
|
|
|
488
580
|
property :start_time, as: 'startTime'
|
|
489
581
|
end
|
|
490
582
|
end
|
|
583
|
+
|
|
584
|
+
class UpdateFeedRequest
|
|
585
|
+
# @private
|
|
586
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
587
|
+
property :feed, as: 'feed', class: Google::Apis::CloudassetV1::Feed, decorator: Google::Apis::CloudassetV1::Feed::Representation
|
|
588
|
+
|
|
589
|
+
property :update_mask, as: 'updateMask'
|
|
590
|
+
end
|
|
591
|
+
end
|
|
491
592
|
end
|
|
492
593
|
end
|
|
493
594
|
end
|
|
@@ -47,6 +47,180 @@ module Google
|
|
|
47
47
|
@batch_path = 'batch'
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
+
# Creates a feed in a parent project/folder/organization to listen to its
|
|
51
|
+
# asset updates.
|
|
52
|
+
# @param [String] parent
|
|
53
|
+
# Required. The name of the project/folder/organization where this feed
|
|
54
|
+
# should be created in. It can only be an organization number (such as
|
|
55
|
+
# "organizations/123"), a folder number (such as "folders/123"), a project ID
|
|
56
|
+
# (such as "projects/my-project-id")", or a project number (such as
|
|
57
|
+
# "projects/12345").
|
|
58
|
+
# @param [Google::Apis::CloudassetV1::CreateFeedRequest] create_feed_request_object
|
|
59
|
+
# @param [String] fields
|
|
60
|
+
# Selector specifying which fields to include in a partial response.
|
|
61
|
+
# @param [String] quota_user
|
|
62
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
63
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
64
|
+
# @param [Google::Apis::RequestOptions] options
|
|
65
|
+
# Request-specific options
|
|
66
|
+
#
|
|
67
|
+
# @yield [result, err] Result & error if block supplied
|
|
68
|
+
# @yieldparam result [Google::Apis::CloudassetV1::Feed] parsed result object
|
|
69
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
70
|
+
#
|
|
71
|
+
# @return [Google::Apis::CloudassetV1::Feed]
|
|
72
|
+
#
|
|
73
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
74
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
75
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
76
|
+
def create_feed(parent, create_feed_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
77
|
+
command = make_simple_command(:post, 'v1/{+parent}/feeds', options)
|
|
78
|
+
command.request_representation = Google::Apis::CloudassetV1::CreateFeedRequest::Representation
|
|
79
|
+
command.request_object = create_feed_request_object
|
|
80
|
+
command.response_representation = Google::Apis::CloudassetV1::Feed::Representation
|
|
81
|
+
command.response_class = Google::Apis::CloudassetV1::Feed
|
|
82
|
+
command.params['parent'] = parent unless parent.nil?
|
|
83
|
+
command.query['fields'] = fields unless fields.nil?
|
|
84
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
85
|
+
execute_or_queue_command(command, &block)
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Deletes an asset feed.
|
|
89
|
+
# @param [String] name
|
|
90
|
+
# Required. The name of the feed and it must be in the format of:
|
|
91
|
+
# projects/project_number/feeds/feed_id
|
|
92
|
+
# folders/folder_number/feeds/feed_id
|
|
93
|
+
# organizations/organization_number/feeds/feed_id
|
|
94
|
+
# @param [String] fields
|
|
95
|
+
# Selector specifying which fields to include in a partial response.
|
|
96
|
+
# @param [String] quota_user
|
|
97
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
98
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
99
|
+
# @param [Google::Apis::RequestOptions] options
|
|
100
|
+
# Request-specific options
|
|
101
|
+
#
|
|
102
|
+
# @yield [result, err] Result & error if block supplied
|
|
103
|
+
# @yieldparam result [Google::Apis::CloudassetV1::Empty] parsed result object
|
|
104
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
105
|
+
#
|
|
106
|
+
# @return [Google::Apis::CloudassetV1::Empty]
|
|
107
|
+
#
|
|
108
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
109
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
110
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
111
|
+
def delete_feed(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
112
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
113
|
+
command.response_representation = Google::Apis::CloudassetV1::Empty::Representation
|
|
114
|
+
command.response_class = Google::Apis::CloudassetV1::Empty
|
|
115
|
+
command.params['name'] = name unless name.nil?
|
|
116
|
+
command.query['fields'] = fields unless fields.nil?
|
|
117
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
118
|
+
execute_or_queue_command(command, &block)
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Gets details about an asset feed.
|
|
122
|
+
# @param [String] name
|
|
123
|
+
# Required. The name of the Feed and it must be in the format of:
|
|
124
|
+
# projects/project_number/feeds/feed_id
|
|
125
|
+
# folders/folder_number/feeds/feed_id
|
|
126
|
+
# organizations/organization_number/feeds/feed_id
|
|
127
|
+
# @param [String] fields
|
|
128
|
+
# Selector specifying which fields to include in a partial response.
|
|
129
|
+
# @param [String] quota_user
|
|
130
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
131
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
132
|
+
# @param [Google::Apis::RequestOptions] options
|
|
133
|
+
# Request-specific options
|
|
134
|
+
#
|
|
135
|
+
# @yield [result, err] Result & error if block supplied
|
|
136
|
+
# @yieldparam result [Google::Apis::CloudassetV1::Feed] parsed result object
|
|
137
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
138
|
+
#
|
|
139
|
+
# @return [Google::Apis::CloudassetV1::Feed]
|
|
140
|
+
#
|
|
141
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
142
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
143
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
144
|
+
def get_feed(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
145
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
146
|
+
command.response_representation = Google::Apis::CloudassetV1::Feed::Representation
|
|
147
|
+
command.response_class = Google::Apis::CloudassetV1::Feed
|
|
148
|
+
command.params['name'] = name unless name.nil?
|
|
149
|
+
command.query['fields'] = fields unless fields.nil?
|
|
150
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
151
|
+
execute_or_queue_command(command, &block)
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Lists all asset feeds in a parent project/folder/organization.
|
|
155
|
+
# @param [String] parent
|
|
156
|
+
# Required. The parent project/folder/organization whose feeds are to be
|
|
157
|
+
# listed. It can only be using project/folder/organization number (such as
|
|
158
|
+
# "folders/12345")", or a project ID (such as "projects/my-project-id").
|
|
159
|
+
# @param [String] fields
|
|
160
|
+
# Selector specifying which fields to include in a partial response.
|
|
161
|
+
# @param [String] quota_user
|
|
162
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
163
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
164
|
+
# @param [Google::Apis::RequestOptions] options
|
|
165
|
+
# Request-specific options
|
|
166
|
+
#
|
|
167
|
+
# @yield [result, err] Result & error if block supplied
|
|
168
|
+
# @yieldparam result [Google::Apis::CloudassetV1::ListFeedsResponse] parsed result object
|
|
169
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
170
|
+
#
|
|
171
|
+
# @return [Google::Apis::CloudassetV1::ListFeedsResponse]
|
|
172
|
+
#
|
|
173
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
174
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
175
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
176
|
+
def list_feeds(parent, fields: nil, quota_user: nil, options: nil, &block)
|
|
177
|
+
command = make_simple_command(:get, 'v1/{+parent}/feeds', options)
|
|
178
|
+
command.response_representation = Google::Apis::CloudassetV1::ListFeedsResponse::Representation
|
|
179
|
+
command.response_class = Google::Apis::CloudassetV1::ListFeedsResponse
|
|
180
|
+
command.params['parent'] = parent unless parent.nil?
|
|
181
|
+
command.query['fields'] = fields unless fields.nil?
|
|
182
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
183
|
+
execute_or_queue_command(command, &block)
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# Updates an asset feed configuration.
|
|
187
|
+
# @param [String] name
|
|
188
|
+
# Required. The format will be
|
|
189
|
+
# projects/`project_number`/feeds/`client-assigned_feed_identifier` or
|
|
190
|
+
# folders/`folder_number`/feeds/`client-assigned_feed_identifier` or
|
|
191
|
+
# organizations/`organization_number`/feeds/`client-assigned_feed_identifier`
|
|
192
|
+
# The client-assigned feed identifier must be unique within the parent
|
|
193
|
+
# project/folder/organization.
|
|
194
|
+
# @param [Google::Apis::CloudassetV1::UpdateFeedRequest] update_feed_request_object
|
|
195
|
+
# @param [String] fields
|
|
196
|
+
# Selector specifying which fields to include in a partial response.
|
|
197
|
+
# @param [String] quota_user
|
|
198
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
199
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
200
|
+
# @param [Google::Apis::RequestOptions] options
|
|
201
|
+
# Request-specific options
|
|
202
|
+
#
|
|
203
|
+
# @yield [result, err] Result & error if block supplied
|
|
204
|
+
# @yieldparam result [Google::Apis::CloudassetV1::Feed] parsed result object
|
|
205
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
206
|
+
#
|
|
207
|
+
# @return [Google::Apis::CloudassetV1::Feed]
|
|
208
|
+
#
|
|
209
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
210
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
211
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
212
|
+
def patch_feed(name, update_feed_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
213
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
|
214
|
+
command.request_representation = Google::Apis::CloudassetV1::UpdateFeedRequest::Representation
|
|
215
|
+
command.request_object = update_feed_request_object
|
|
216
|
+
command.response_representation = Google::Apis::CloudassetV1::Feed::Representation
|
|
217
|
+
command.response_class = Google::Apis::CloudassetV1::Feed
|
|
218
|
+
command.params['name'] = name unless name.nil?
|
|
219
|
+
command.query['fields'] = fields unless fields.nil?
|
|
220
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
221
|
+
execute_or_queue_command(command, &block)
|
|
222
|
+
end
|
|
223
|
+
|
|
50
224
|
# Gets the latest state of a long-running operation. Clients can use this
|
|
51
225
|
# method to poll the operation result at intervals as recommended by the API
|
|
52
226
|
# service.
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/billing/
|
|
27
27
|
module CloudbillingV1
|
|
28
28
|
VERSION = 'V1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20191206'
|
|
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'
|
|
@@ -246,7 +246,7 @@ module Google
|
|
|
246
246
|
# For example, `admins@example.com`.
|
|
247
247
|
# * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
|
|
248
248
|
# identifier) representing a user that has been recently deleted. For
|
|
249
|
-
# example
|
|
249
|
+
# example, `alice@example.com?uid=123456789012345678901`. If the user is
|
|
250
250
|
# recovered, this value reverts to `user:`emailid`` and the recovered user
|
|
251
251
|
# retains the role in the binding.
|
|
252
252
|
# * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus
|
|
@@ -518,16 +518,18 @@ module Google
|
|
|
518
518
|
end
|
|
519
519
|
end
|
|
520
520
|
|
|
521
|
-
#
|
|
522
|
-
#
|
|
521
|
+
# An Identity and Access Management (IAM) policy, which specifies access
|
|
522
|
+
# controls for Google Cloud resources.
|
|
523
523
|
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
|
|
524
524
|
# `members` to a single `role`. Members can be user accounts, service accounts,
|
|
525
525
|
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
|
526
|
-
# permissions
|
|
527
|
-
#
|
|
528
|
-
#
|
|
529
|
-
#
|
|
530
|
-
#
|
|
526
|
+
# permissions; each `role` can be an IAM predefined role or a user-created
|
|
527
|
+
# custom role.
|
|
528
|
+
# Optionally, a `binding` can specify a `condition`, which is a logical
|
|
529
|
+
# expression that allows access to a resource only if the expression evaluates
|
|
530
|
+
# to `true`. A condition can add constraints based on attributes of the
|
|
531
|
+
# request, the resource, or both.
|
|
532
|
+
# **JSON example:**
|
|
531
533
|
# `
|
|
532
534
|
# "bindings": [
|
|
533
535
|
# `
|
|
@@ -545,13 +547,15 @@ module Google
|
|
|
545
547
|
# "condition": `
|
|
546
548
|
# "title": "expirable access",
|
|
547
549
|
# "description": "Does not grant access after Sep 2020",
|
|
548
|
-
# "expression": "request.time <
|
|
549
|
-
#
|
|
550
|
+
# "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
|
|
551
|
+
# ",
|
|
550
552
|
# `
|
|
551
553
|
# `
|
|
552
|
-
# ]
|
|
554
|
+
# ],
|
|
555
|
+
# "etag": "BwWWja0YfJA=",
|
|
556
|
+
# "version": 3
|
|
553
557
|
# `
|
|
554
|
-
# **YAML
|
|
558
|
+
# **YAML example:**
|
|
555
559
|
# bindings:
|
|
556
560
|
# - members:
|
|
557
561
|
# - user:mike@example.com
|
|
@@ -566,8 +570,10 @@ module Google
|
|
|
566
570
|
# title: expirable access
|
|
567
571
|
# description: Does not grant access after Sep 2020
|
|
568
572
|
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
|
|
573
|
+
# - etag: BwWWja0YfJA=
|
|
574
|
+
# - version: 3
|
|
569
575
|
# For a description of IAM and its features, see the
|
|
570
|
-
# [IAM
|
|
576
|
+
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
|
571
577
|
class Policy
|
|
572
578
|
include Google::Apis::Core::Hashable
|
|
573
579
|
|
|
@@ -576,9 +582,9 @@ module Google
|
|
|
576
582
|
# @return [Array<Google::Apis::CloudbillingV1::AuditConfig>]
|
|
577
583
|
attr_accessor :audit_configs
|
|
578
584
|
|
|
579
|
-
# Associates a list of `members` to a `role`. Optionally may specify a
|
|
580
|
-
# `condition` that determines when
|
|
581
|
-
# `bindings`
|
|
585
|
+
# Associates a list of `members` to a `role`. Optionally, may specify a
|
|
586
|
+
# `condition` that determines how and when the `bindings` are applied. Each
|
|
587
|
+
# of the `bindings` must contain at least one member.
|
|
582
588
|
# Corresponds to the JSON property `bindings`
|
|
583
589
|
# @return [Array<Google::Apis::CloudbillingV1::Binding>]
|
|
584
590
|
attr_accessor :bindings
|
|
@@ -590,25 +596,31 @@ module Google
|
|
|
590
596
|
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
|
|
591
597
|
# systems are expected to put that etag in the request to `setIamPolicy` to
|
|
592
598
|
# ensure that their change will be applied to the same version of the policy.
|
|
593
|
-
# If
|
|
594
|
-
#
|
|
595
|
-
#
|
|
596
|
-
#
|
|
599
|
+
# **Important:** If you use IAM Conditions, you must include the `etag` field
|
|
600
|
+
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows
|
|
601
|
+
# you to overwrite a version `3` policy with a version `1` policy, and all of
|
|
602
|
+
# the conditions in the version `3` policy are lost.
|
|
597
603
|
# Corresponds to the JSON property `etag`
|
|
598
604
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
599
605
|
# @return [String]
|
|
600
606
|
attr_accessor :etag
|
|
601
607
|
|
|
602
608
|
# Specifies the format of the policy.
|
|
603
|
-
# Valid values are 0
|
|
604
|
-
# rejected.
|
|
605
|
-
#
|
|
606
|
-
#
|
|
607
|
-
#
|
|
608
|
-
#
|
|
609
|
-
#
|
|
610
|
-
#
|
|
611
|
-
#
|
|
609
|
+
# Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
|
|
610
|
+
# are rejected.
|
|
611
|
+
# Any operation that affects conditional role bindings must specify version
|
|
612
|
+
# `3`. This requirement applies to the following operations:
|
|
613
|
+
# * Getting a policy that includes a conditional role binding
|
|
614
|
+
# * Adding a conditional role binding to a policy
|
|
615
|
+
# * Changing a conditional role binding in a policy
|
|
616
|
+
# * Removing any role binding, with or without a condition, from a policy
|
|
617
|
+
# that includes conditions
|
|
618
|
+
# **Important:** If you use IAM Conditions, you must include the `etag` field
|
|
619
|
+
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows
|
|
620
|
+
# you to overwrite a version `3` policy with a version `1` policy, and all of
|
|
621
|
+
# the conditions in the version `3` policy are lost.
|
|
622
|
+
# If a policy does not include any conditions, operations on that policy may
|
|
623
|
+
# specify any valid version or leave the field unset.
|
|
612
624
|
# Corresponds to the JSON property `version`
|
|
613
625
|
# @return [Fixnum]
|
|
614
626
|
attr_accessor :version
|
|
@@ -858,16 +870,18 @@ module Google
|
|
|
858
870
|
class SetIamPolicyRequest
|
|
859
871
|
include Google::Apis::Core::Hashable
|
|
860
872
|
|
|
861
|
-
#
|
|
862
|
-
#
|
|
873
|
+
# An Identity and Access Management (IAM) policy, which specifies access
|
|
874
|
+
# controls for Google Cloud resources.
|
|
863
875
|
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
|
|
864
876
|
# `members` to a single `role`. Members can be user accounts, service accounts,
|
|
865
877
|
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
|
866
|
-
# permissions
|
|
867
|
-
#
|
|
868
|
-
#
|
|
869
|
-
#
|
|
870
|
-
#
|
|
878
|
+
# permissions; each `role` can be an IAM predefined role or a user-created
|
|
879
|
+
# custom role.
|
|
880
|
+
# Optionally, a `binding` can specify a `condition`, which is a logical
|
|
881
|
+
# expression that allows access to a resource only if the expression evaluates
|
|
882
|
+
# to `true`. A condition can add constraints based on attributes of the
|
|
883
|
+
# request, the resource, or both.
|
|
884
|
+
# **JSON example:**
|
|
871
885
|
# `
|
|
872
886
|
# "bindings": [
|
|
873
887
|
# `
|
|
@@ -885,13 +899,15 @@ module Google
|
|
|
885
899
|
# "condition": `
|
|
886
900
|
# "title": "expirable access",
|
|
887
901
|
# "description": "Does not grant access after Sep 2020",
|
|
888
|
-
# "expression": "request.time <
|
|
889
|
-
#
|
|
902
|
+
# "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
|
|
903
|
+
# ",
|
|
890
904
|
# `
|
|
891
905
|
# `
|
|
892
|
-
# ]
|
|
906
|
+
# ],
|
|
907
|
+
# "etag": "BwWWja0YfJA=",
|
|
908
|
+
# "version": 3
|
|
893
909
|
# `
|
|
894
|
-
# **YAML
|
|
910
|
+
# **YAML example:**
|
|
895
911
|
# bindings:
|
|
896
912
|
# - members:
|
|
897
913
|
# - user:mike@example.com
|
|
@@ -906,8 +922,10 @@ module Google
|
|
|
906
922
|
# title: expirable access
|
|
907
923
|
# description: Does not grant access after Sep 2020
|
|
908
924
|
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
|
|
925
|
+
# - etag: BwWWja0YfJA=
|
|
926
|
+
# - version: 3
|
|
909
927
|
# For a description of IAM and its features, see the
|
|
910
|
-
# [IAM
|
|
928
|
+
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
|
911
929
|
# Corresponds to the JSON property `policy`
|
|
912
930
|
# @return [Google::Apis::CloudbillingV1::Policy]
|
|
913
931
|
attr_accessor :policy
|