google-api-client 0.19.1 → 0.19.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +36 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +8 -2
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +10 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +7 -6
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +66 -4
- data/generated/google/apis/appengine_v1/representations.rb +31 -0
- data/generated/google/apis/appengine_v1alpha.rb +1 -1
- data/generated/google/apis/appengine_v1alpha/classes.rb +56 -0
- data/generated/google/apis/appengine_v1alpha/representations.rb +30 -0
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +104 -4
- data/generated/google/apis/appengine_v1beta/representations.rb +47 -0
- data/generated/google/apis/appengine_v1beta4.rb +1 -1
- data/generated/google/apis/appengine_v1beta4/classes.rb +56 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +30 -0
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +56 -0
- data/generated/google/apis/appengine_v1beta5/representations.rb +30 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +2 -2
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +119 -0
- data/generated/google/apis/books_v1/representations.rb +62 -0
- data/generated/google/apis/books_v1/service.rb +115 -0
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +5 -6
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +3 -3
- data/generated/google/apis/cloudiot_v1beta1.rb +1 -1
- data/generated/google/apis/cloudiot_v1beta1/classes.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +3 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +2 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +20 -113
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +0 -30
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +12 -60
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +6 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +1 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +33 -33
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +42 -42
- data/generated/google/apis/dlp_v2beta1.rb +1 -1
- data/generated/google/apis/dlp_v2beta1/classes.rb +11 -8
- data/generated/google/apis/dlp_v2beta2.rb +1 -1
- data/generated/google/apis/dlp_v2beta2/classes.rb +11 -8
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +7 -0
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +1 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +3 -3
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/service.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/service.rb +1 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +3 -3
- data/generated/google/apis/storage_v1beta1.rb +1 -1
- data/generated/google/apis/storage_v1beta2.rb +1 -1
- data/generated/google/apis/storage_v1beta2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +25 -21
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +25 -21
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
@@ -328,6 +328,121 @@ module Google
|
|
328
328
|
execute_or_queue_command(command, &block)
|
329
329
|
end
|
330
330
|
|
331
|
+
# Gets information regarding the family that the user is part of.
|
332
|
+
# @param [String] source
|
333
|
+
# String to identify the originator of this request.
|
334
|
+
# @param [String] fields
|
335
|
+
# Selector specifying which fields to include in a partial response.
|
336
|
+
# @param [String] quota_user
|
337
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
338
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
339
|
+
# Overrides userIp if both are provided.
|
340
|
+
# @param [String] user_ip
|
341
|
+
# IP address of the site where the request originates. Use this if you want to
|
342
|
+
# enforce per-user limits.
|
343
|
+
# @param [Google::Apis::RequestOptions] options
|
344
|
+
# Request-specific options
|
345
|
+
#
|
346
|
+
# @yield [result, err] Result & error if block supplied
|
347
|
+
# @yieldparam result [Google::Apis::BooksV1::FamilyInfo] parsed result object
|
348
|
+
# @yieldparam err [StandardError] error object if request failed
|
349
|
+
#
|
350
|
+
# @return [Google::Apis::BooksV1::FamilyInfo]
|
351
|
+
#
|
352
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
353
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
354
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
355
|
+
def get_familysharing_family_info(source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
356
|
+
command = make_simple_command(:get, 'familysharing/getFamilyInfo', options)
|
357
|
+
command.response_representation = Google::Apis::BooksV1::FamilyInfo::Representation
|
358
|
+
command.response_class = Google::Apis::BooksV1::FamilyInfo
|
359
|
+
command.query['source'] = source unless source.nil?
|
360
|
+
command.query['fields'] = fields unless fields.nil?
|
361
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
362
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
363
|
+
execute_or_queue_command(command, &block)
|
364
|
+
end
|
365
|
+
|
366
|
+
# Initiates sharing of the content with the user's family. Empty response
|
367
|
+
# indicates success.
|
368
|
+
# @param [String] doc_id
|
369
|
+
# The docid to share.
|
370
|
+
# @param [String] source
|
371
|
+
# String to identify the originator of this request.
|
372
|
+
# @param [String] volume_id
|
373
|
+
# The volume to share.
|
374
|
+
# @param [String] fields
|
375
|
+
# Selector specifying which fields to include in a partial response.
|
376
|
+
# @param [String] quota_user
|
377
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
378
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
379
|
+
# Overrides userIp if both are provided.
|
380
|
+
# @param [String] user_ip
|
381
|
+
# IP address of the site where the request originates. Use this if you want to
|
382
|
+
# enforce per-user limits.
|
383
|
+
# @param [Google::Apis::RequestOptions] options
|
384
|
+
# Request-specific options
|
385
|
+
#
|
386
|
+
# @yield [result, err] Result & error if block supplied
|
387
|
+
# @yieldparam result [NilClass] No result returned for this method
|
388
|
+
# @yieldparam err [StandardError] error object if request failed
|
389
|
+
#
|
390
|
+
# @return [void]
|
391
|
+
#
|
392
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
393
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
394
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
395
|
+
def share_familysharing(doc_id: nil, source: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
396
|
+
command = make_simple_command(:post, 'familysharing/share', options)
|
397
|
+
command.query['docId'] = doc_id unless doc_id.nil?
|
398
|
+
command.query['source'] = source unless source.nil?
|
399
|
+
command.query['volumeId'] = volume_id unless volume_id.nil?
|
400
|
+
command.query['fields'] = fields unless fields.nil?
|
401
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
402
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
403
|
+
execute_or_queue_command(command, &block)
|
404
|
+
end
|
405
|
+
|
406
|
+
# Initiates revoking content that has already been shared with the user's family.
|
407
|
+
# Empty response indicates success.
|
408
|
+
# @param [String] doc_id
|
409
|
+
# The docid to unshare.
|
410
|
+
# @param [String] source
|
411
|
+
# String to identify the originator of this request.
|
412
|
+
# @param [String] volume_id
|
413
|
+
# The volume to unshare.
|
414
|
+
# @param [String] fields
|
415
|
+
# Selector specifying which fields to include in a partial response.
|
416
|
+
# @param [String] quota_user
|
417
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
418
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
419
|
+
# Overrides userIp if both are provided.
|
420
|
+
# @param [String] user_ip
|
421
|
+
# IP address of the site where the request originates. Use this if you want to
|
422
|
+
# enforce per-user limits.
|
423
|
+
# @param [Google::Apis::RequestOptions] options
|
424
|
+
# Request-specific options
|
425
|
+
#
|
426
|
+
# @yield [result, err] Result & error if block supplied
|
427
|
+
# @yieldparam result [NilClass] No result returned for this method
|
428
|
+
# @yieldparam err [StandardError] error object if request failed
|
429
|
+
#
|
430
|
+
# @return [void]
|
431
|
+
#
|
432
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
433
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
434
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
435
|
+
def unshare_familysharing(doc_id: nil, source: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
436
|
+
command = make_simple_command(:post, 'familysharing/unshare', options)
|
437
|
+
command.query['docId'] = doc_id unless doc_id.nil?
|
438
|
+
command.query['source'] = source unless source.nil?
|
439
|
+
command.query['volumeId'] = volume_id unless volume_id.nil?
|
440
|
+
command.query['fields'] = fields unless fields.nil?
|
441
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
442
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
443
|
+
execute_or_queue_command(command, &block)
|
444
|
+
end
|
445
|
+
|
331
446
|
# Gets the layer summary for a volume.
|
332
447
|
# @param [String] volume_id
|
333
448
|
# The volume to retrieve layers for.
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/classroom/
|
26
26
|
module ClassroomV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20171229'
|
29
29
|
|
30
30
|
# View and manage announcements in Google Classroom
|
31
31
|
AUTH_CLASSROOM_ANNOUNCEMENTS = 'https://www.googleapis.com/auth/classroom.announcements'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/container-builder/docs/
|
26
26
|
module CloudbuildV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20180104'
|
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'
|
@@ -165,11 +165,10 @@ module Google
|
|
165
165
|
# @return [String]
|
166
166
|
attr_accessor :timeout
|
167
167
|
|
168
|
-
# Stores timing information for phases of the build.
|
169
|
-
#
|
170
|
-
#
|
171
|
-
#
|
172
|
-
# - FETCHSOURCE: time to fetch source.
|
168
|
+
# Stores timing information for phases of the build. Valid keys are:
|
169
|
+
# * BUILD: time to execute all build steps
|
170
|
+
# * PUSH: time to push all specified images.
|
171
|
+
# * FETCHSOURCE: time to fetch source.
|
173
172
|
# If the build does not specify source, or does not specify images,
|
174
173
|
# these keys will not be included.
|
175
174
|
# Corresponds to the JSON property `timing`
|
@@ -258,7 +257,7 @@ module Google
|
|
258
257
|
# @return [String]
|
259
258
|
attr_accessor :log_streaming_option
|
260
259
|
|
261
|
-
#
|
260
|
+
# Compute Engine machine type on which to run the build.
|
262
261
|
# Corresponds to the JSON property `machineType`
|
263
262
|
# @return [String]
|
264
263
|
attr_accessor :machine_type
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/iot
|
27
27
|
module CloudiotV1
|
28
28
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20171227'
|
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'
|
@@ -831,7 +831,7 @@ module Google
|
|
831
831
|
# ]
|
832
832
|
# `
|
833
833
|
# For a description of IAM and its features, see the
|
834
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
834
|
+
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
835
835
|
class Policy
|
836
836
|
include Google::Apis::Core::Hashable
|
837
837
|
|
@@ -866,7 +866,7 @@ module Google
|
|
866
866
|
attr_accessor :iam_owned
|
867
867
|
alias_method :iam_owned?, :iam_owned
|
868
868
|
|
869
|
-
#
|
869
|
+
# Deprecated.
|
870
870
|
# Corresponds to the JSON property `version`
|
871
871
|
# @return [Fixnum]
|
872
872
|
attr_accessor :version
|
@@ -989,7 +989,7 @@ module Google
|
|
989
989
|
# ]
|
990
990
|
# `
|
991
991
|
# For a description of IAM and its features, see the
|
992
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
992
|
+
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
993
993
|
# Corresponds to the JSON property `policy`
|
994
994
|
# @return [Google::Apis::CloudiotV1::Policy]
|
995
995
|
attr_accessor :policy
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/iot
|
27
27
|
module CloudiotV1beta1
|
28
28
|
VERSION = 'V1beta1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20171227'
|
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'
|
@@ -708,7 +708,7 @@ module Google
|
|
708
708
|
# ]
|
709
709
|
# `
|
710
710
|
# For a description of IAM and its features, see the
|
711
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
711
|
+
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
712
712
|
class Policy
|
713
713
|
include Google::Apis::Core::Hashable
|
714
714
|
|
@@ -743,7 +743,7 @@ module Google
|
|
743
743
|
attr_accessor :iam_owned
|
744
744
|
alias_method :iam_owned?, :iam_owned
|
745
745
|
|
746
|
-
#
|
746
|
+
# Deprecated.
|
747
747
|
# Corresponds to the JSON property `version`
|
748
748
|
# @return [Fixnum]
|
749
749
|
attr_accessor :version
|
@@ -816,7 +816,7 @@ module Google
|
|
816
816
|
# ]
|
817
817
|
# `
|
818
818
|
# For a description of IAM and its features, see the
|
819
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
819
|
+
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
820
820
|
# Corresponds to the JSON property `policy`
|
821
821
|
# @return [Google::Apis::CloudiotV1beta1::Policy]
|
822
822
|
attr_accessor :policy
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/resource-manager
|
27
27
|
module CloudresourcemanagerV1
|
28
28
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20180103'
|
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'
|
@@ -1220,7 +1220,7 @@ module Google
|
|
1220
1220
|
# ]
|
1221
1221
|
# `
|
1222
1222
|
# For a description of IAM and its features, see the
|
1223
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
1223
|
+
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
1224
1224
|
class Policy
|
1225
1225
|
include Google::Apis::Core::Hashable
|
1226
1226
|
|
@@ -1249,7 +1249,7 @@ module Google
|
|
1249
1249
|
# @return [String]
|
1250
1250
|
attr_accessor :etag
|
1251
1251
|
|
1252
|
-
#
|
1252
|
+
# Deprecated.
|
1253
1253
|
# Corresponds to the JSON property `version`
|
1254
1254
|
# @return [Fixnum]
|
1255
1255
|
attr_accessor :version
|
@@ -1542,7 +1542,7 @@ module Google
|
|
1542
1542
|
# ]
|
1543
1543
|
# `
|
1544
1544
|
# For a description of IAM and its features, see the
|
1545
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
1545
|
+
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
1546
1546
|
# Corresponds to the JSON property `policy`
|
1547
1547
|
# @return [Google::Apis::CloudresourcemanagerV1::Policy]
|
1548
1548
|
attr_accessor :policy
|
@@ -1007,7 +1007,9 @@ module Google
|
|
1007
1007
|
# Returns the IAM access control policy for the specified Project.
|
1008
1008
|
# Permission is denied if the policy or the resource does not exist.
|
1009
1009
|
# Authorization requires the Google IAM permission
|
1010
|
-
# `resourcemanager.projects.getIamPolicy` on the project
|
1010
|
+
# `resourcemanager.projects.getIamPolicy` on the project.
|
1011
|
+
# For additional information about resource structure and identification,
|
1012
|
+
# see [Resource Names](/apis/design/resource_names).
|
1011
1013
|
# @param [String] resource
|
1012
1014
|
# REQUIRED: The resource for which the policy is being requested.
|
1013
1015
|
# See the operation documentation for the appropriate value for this field.
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/resource-manager
|
27
27
|
module CloudresourcemanagerV1beta1
|
28
28
|
VERSION = 'V1beta1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20180103'
|
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'
|
@@ -504,7 +504,7 @@ module Google
|
|
504
504
|
# ]
|
505
505
|
# `
|
506
506
|
# For a description of IAM and its features, see the
|
507
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
507
|
+
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
508
508
|
class Policy
|
509
509
|
include Google::Apis::Core::Hashable
|
510
510
|
|
@@ -533,7 +533,7 @@ module Google
|
|
533
533
|
# @return [String]
|
534
534
|
attr_accessor :etag
|
535
535
|
|
536
|
-
#
|
536
|
+
# Deprecated.
|
537
537
|
# Corresponds to the JSON property `version`
|
538
538
|
# @return [Fixnum]
|
539
539
|
attr_accessor :version
|
@@ -730,7 +730,7 @@ module Google
|
|
730
730
|
# ]
|
731
731
|
# `
|
732
732
|
# For a description of IAM and its features, see the
|
733
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
733
|
+
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
734
734
|
# Corresponds to the JSON property `policy`
|
735
735
|
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
|
736
736
|
attr_accessor :policy
|
@@ -433,6 +433,8 @@ module Google
|
|
433
433
|
|
434
434
|
# Returns the IAM access control policy for the specified Project.
|
435
435
|
# Permission is denied if the policy or the resource does not exist.
|
436
|
+
# For additional information about resource structure and identification,
|
437
|
+
# see [Resource Names](/apis/design/resource_names).
|
436
438
|
# @param [String] resource
|
437
439
|
# REQUIRED: The resource for which the policy is being requested.
|
438
440
|
# See the operation documentation for the appropriate value for this field.
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/resource-manager
|
27
27
|
module CloudresourcemanagerV2beta1
|
28
28
|
VERSION = 'V2beta1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20180103'
|
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'
|
@@ -477,7 +477,7 @@ module Google
|
|
477
477
|
# ]
|
478
478
|
# `
|
479
479
|
# For a description of IAM and its features, see the
|
480
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
480
|
+
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
481
481
|
class Policy
|
482
482
|
include Google::Apis::Core::Hashable
|
483
483
|
|
@@ -506,7 +506,7 @@ module Google
|
|
506
506
|
# @return [String]
|
507
507
|
attr_accessor :etag
|
508
508
|
|
509
|
-
#
|
509
|
+
# Deprecated.
|
510
510
|
# Corresponds to the JSON property `version`
|
511
511
|
# @return [Fixnum]
|
512
512
|
attr_accessor :version
|
@@ -665,7 +665,7 @@ module Google
|
|
665
665
|
# ]
|
666
666
|
# `
|
667
667
|
# For a description of IAM and its features, see the
|
668
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
668
|
+
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
669
669
|
# Corresponds to the JSON property `policy`
|
670
670
|
# @return [Google::Apis::CloudresourcemanagerV2beta1::Policy]
|
671
671
|
attr_accessor :policy
|
@@ -239,7 +239,7 @@ module Google
|
|
239
239
|
# @param [Boolean] show_deleted
|
240
240
|
# Controls whether Folders in the
|
241
241
|
# DELETE_REQUESTED
|
242
|
-
# state should be returned.
|
242
|
+
# state should be returned. Defaults to false. This field is optional.
|
243
243
|
# @param [String] fields
|
244
244
|
# Selector specifying which fields to include in a partial response.
|
245
245
|
# @param [String] quota_user
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/cloud-tasks/
|
27
27
|
module CloudtasksV2beta2
|
28
28
|
VERSION = 'V2beta2'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20180104'
|
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'
|
@@ -29,8 +29,8 @@ module Google
|
|
29
29
|
|
30
30
|
# Required.
|
31
31
|
# The task's current schedule time, available in the Task.schedule_time
|
32
|
-
# returned in
|
33
|
-
# CloudTasks.RenewLease. This restriction is to ensure that your
|
32
|
+
# returned in LeaseTasksResponse.tasks or
|
33
|
+
# CloudTasks.RenewLease. This restriction is to ensure that your
|
34
34
|
# worker currently holds the lease.
|
35
35
|
# Corresponds to the JSON property `scheduleTime`
|
36
36
|
# @return [String]
|
@@ -467,8 +467,8 @@ module Google
|
|
467
467
|
|
468
468
|
# Required.
|
469
469
|
# The task's current schedule time, available in the Task.schedule_time
|
470
|
-
# returned in
|
471
|
-
# CloudTasks.RenewLease. This restriction is to ensure that your
|
470
|
+
# returned in LeaseTasksResponse.tasks or
|
471
|
+
# CloudTasks.RenewLease. This restriction is to ensure that your
|
472
472
|
# worker currently holds the lease.
|
473
473
|
# Corresponds to the JSON property `scheduleTime`
|
474
474
|
# @return [String]
|
@@ -558,7 +558,7 @@ module Google
|
|
558
558
|
# `filter` can be used to specify a subset of tasks to lease.
|
559
559
|
# When `filter` is set to `tag=<my-tag>` then the
|
560
560
|
# LeaseTasksResponse will contain only tasks whose
|
561
|
-
#
|
561
|
+
# LeaseMessage.tag is equal to `<my-tag>`. `<my-tag>` must be less than
|
562
562
|
# 500 bytes.
|
563
563
|
# When `filter` is set to `tag_function=oldest_tag()`, only tasks which have
|
564
564
|
# the same tag as the task with the oldest schedule_time will be returned.
|
@@ -579,12 +579,12 @@ module Google
|
|
579
579
|
# LeaseTasksResponse is leased -- that task will not be
|
580
580
|
# returned in a different LeaseTasksResponse before the
|
581
581
|
# Task.schedule_time.
|
582
|
-
# After the
|
583
|
-
# associated with the task, the
|
582
|
+
# After the worker has successfully finished the work
|
583
|
+
# associated with the task, the worker must call
|
584
584
|
# CloudTasks.AcknowledgeTask. If the task is not acknowledged
|
585
585
|
# via CloudTasks.AcknowledgeTask before the
|
586
586
|
# Task.schedule_time then it will be returned in a later
|
587
|
-
# LeaseTasksResponse so that another
|
587
|
+
# LeaseTasksResponse so that another worker can process
|
588
588
|
# it.
|
589
589
|
# The maximum lease duration is 1 week.
|
590
590
|
# `lease_duration` will be truncated to the nearest second.
|
@@ -806,7 +806,7 @@ module Google
|
|
806
806
|
# ]
|
807
807
|
# `
|
808
808
|
# For a description of IAM and its features, see the
|
809
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
809
|
+
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
810
810
|
class Policy
|
811
811
|
include Google::Apis::Core::Hashable
|
812
812
|
|
@@ -830,7 +830,7 @@ module Google
|
|
830
830
|
# @return [String]
|
831
831
|
attr_accessor :etag
|
832
832
|
|
833
|
-
#
|
833
|
+
# Deprecated.
|
834
834
|
# Corresponds to the JSON property `version`
|
835
835
|
# @return [Fixnum]
|
836
836
|
attr_accessor :version
|
@@ -848,13 +848,13 @@ module Google
|
|
848
848
|
end
|
849
849
|
|
850
850
|
# The pull message contains data that can be used by the caller of
|
851
|
-
# CloudTasks.
|
851
|
+
# CloudTasks.LeaseTasks to process the task.
|
852
852
|
# This proto can only be used for tasks in a queue which has
|
853
853
|
# Queue.pull_target set.
|
854
854
|
class PullMessage
|
855
855
|
include Google::Apis::Core::Hashable
|
856
856
|
|
857
|
-
# A data payload consumed by the
|
857
|
+
# A data payload consumed by the worker to execute the task.
|
858
858
|
# Corresponds to the JSON property `payload`
|
859
859
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
860
860
|
# @return [String]
|
@@ -862,8 +862,8 @@ module Google
|
|
862
862
|
|
863
863
|
# The task's tag.
|
864
864
|
# Tags allow similar tasks to be processed in a batch. If you label
|
865
|
-
# tasks with a tag, your
|
866
|
-
# with the same tag using
|
865
|
+
# tasks with a tag, your worker can lease tasks
|
866
|
+
# with the same tag using LeaseTasksRequest.filter. For example,
|
867
867
|
# if you want to aggregate the events associated with a specific
|
868
868
|
# user once a day, you could tag tasks with the user ID.
|
869
869
|
# The task's tag can only be set when the
|
@@ -898,99 +898,6 @@ module Google
|
|
898
898
|
end
|
899
899
|
end
|
900
900
|
|
901
|
-
# Request message for pulling tasks using CloudTasks.PullTasks.
|
902
|
-
class PullTasksRequest
|
903
|
-
include Google::Apis::Core::Hashable
|
904
|
-
|
905
|
-
# `filter` can be used to specify a subset of tasks to lease.
|
906
|
-
# When `filter` is set to `tag=<my-tag>` then the
|
907
|
-
# PullTasksResponse will contain only tasks whose
|
908
|
-
# PullMessage.tag is equal to `<my-tag>`. `<my-tag>` must be less than
|
909
|
-
# 500 bytes.
|
910
|
-
# When `filter` is set to `tag_function=oldest_tag()`, only tasks which have
|
911
|
-
# the same tag as the task with the oldest schedule_time will be returned.
|
912
|
-
# Grammar Syntax:
|
913
|
-
# * `filter = "tag=" tag | "tag_function=" function`
|
914
|
-
# * `tag = string | bytes`
|
915
|
-
# * `function = "oldest_tag()"`
|
916
|
-
# The `oldest_tag()` function returns tasks which have the same tag as the
|
917
|
-
# oldest task (ordered by schedule time).
|
918
|
-
# Corresponds to the JSON property `filter`
|
919
|
-
# @return [String]
|
920
|
-
attr_accessor :filter
|
921
|
-
|
922
|
-
# The duration of the lease.
|
923
|
-
# Each task returned in the PullTasksResponse will have its
|
924
|
-
# Task.schedule_time set to the current time plus the
|
925
|
-
# `lease_duration`. A task that has been returned in a
|
926
|
-
# PullTasksResponse is leased -- that task will not be
|
927
|
-
# returned in a different PullTasksResponse before the
|
928
|
-
# Task.schedule_time.
|
929
|
-
# After the pull worker has successfully finished the work
|
930
|
-
# associated with the task, the pull worker must call
|
931
|
-
# CloudTasks.AcknowledgeTask. If the task is not acknowledged
|
932
|
-
# via CloudTasks.AcknowledgeTask before the
|
933
|
-
# Task.schedule_time then it will be returned in a later
|
934
|
-
# PullTasksResponse so that another pull worker can process
|
935
|
-
# it.
|
936
|
-
# The maximum lease duration is 1 week.
|
937
|
-
# `lease_duration` will be truncated to the nearest second.
|
938
|
-
# Corresponds to the JSON property `leaseDuration`
|
939
|
-
# @return [String]
|
940
|
-
attr_accessor :lease_duration
|
941
|
-
|
942
|
-
# The maximum number of tasks to lease. The maximum that can be
|
943
|
-
# requested is 1000.
|
944
|
-
# Corresponds to the JSON property `maxTasks`
|
945
|
-
# @return [Fixnum]
|
946
|
-
attr_accessor :max_tasks
|
947
|
-
|
948
|
-
# The response_view specifies which subset of the Task will be
|
949
|
-
# returned.
|
950
|
-
# By default response_view is Task.View.BASIC; not all
|
951
|
-
# information is retrieved by default because some data, such as
|
952
|
-
# payloads, might be desirable to return only when needed because
|
953
|
-
# of its large size or because of the sensitivity of data that it
|
954
|
-
# contains.
|
955
|
-
# Authorization for Task.View.FULL requires `cloudtasks.tasks.fullView`
|
956
|
-
# [Google IAM](/iam/) permission on the
|
957
|
-
# Task.name resource.
|
958
|
-
# Corresponds to the JSON property `responseView`
|
959
|
-
# @return [String]
|
960
|
-
attr_accessor :response_view
|
961
|
-
|
962
|
-
def initialize(**args)
|
963
|
-
update!(**args)
|
964
|
-
end
|
965
|
-
|
966
|
-
# Update properties of this object
|
967
|
-
def update!(**args)
|
968
|
-
@filter = args[:filter] if args.key?(:filter)
|
969
|
-
@lease_duration = args[:lease_duration] if args.key?(:lease_duration)
|
970
|
-
@max_tasks = args[:max_tasks] if args.key?(:max_tasks)
|
971
|
-
@response_view = args[:response_view] if args.key?(:response_view)
|
972
|
-
end
|
973
|
-
end
|
974
|
-
|
975
|
-
# Response message for pulling tasks using CloudTasks.PullTasks.
|
976
|
-
class PullTasksResponse
|
977
|
-
include Google::Apis::Core::Hashable
|
978
|
-
|
979
|
-
# The leased tasks.
|
980
|
-
# Corresponds to the JSON property `tasks`
|
981
|
-
# @return [Array<Google::Apis::CloudtasksV2beta2::Task>]
|
982
|
-
attr_accessor :tasks
|
983
|
-
|
984
|
-
def initialize(**args)
|
985
|
-
update!(**args)
|
986
|
-
end
|
987
|
-
|
988
|
-
# Update properties of this object
|
989
|
-
def update!(**args)
|
990
|
-
@tasks = args[:tasks] if args.key?(:tasks)
|
991
|
-
end
|
992
|
-
end
|
993
|
-
|
994
901
|
# Request message for CloudTasks.PurgeQueue.
|
995
902
|
class PurgeQueueRequest
|
996
903
|
include Google::Apis::Core::Hashable
|
@@ -1149,7 +1056,7 @@ module Google
|
|
1149
1056
|
# * For App Engine queues, this field is 1 by default.
|
1150
1057
|
# * For pull queues, this field is output only and always 10,000.
|
1151
1058
|
# In addition to the `max_tasks_dispatched_per_second` limit, a maximum of
|
1152
|
-
# 10 QPS of CloudTasks.
|
1059
|
+
# 10 QPS of CloudTasks.LeaseTasks requests are allowed per queue.
|
1153
1060
|
# This field has the same meaning as
|
1154
1061
|
# [rate in queue.yaml](/appengine/docs/standard/python/config/queueref#rate).
|
1155
1062
|
# Corresponds to the JSON property `maxTasksDispatchedPerSecond`
|
@@ -1196,8 +1103,8 @@ module Google
|
|
1196
1103
|
|
1197
1104
|
# Required.
|
1198
1105
|
# The task's current schedule time, available in the Task.schedule_time
|
1199
|
-
# returned in
|
1200
|
-
# CloudTasks.RenewLease. This restriction is to ensure that your
|
1106
|
+
# returned in LeaseTasksResponse.tasks or
|
1107
|
+
# CloudTasks.RenewLease. This restriction is to ensure that your
|
1201
1108
|
# worker currently holds the lease.
|
1202
1109
|
# Corresponds to the JSON property `scheduleTime`
|
1203
1110
|
# @return [String]
|
@@ -1390,7 +1297,7 @@ module Google
|
|
1390
1297
|
# ]
|
1391
1298
|
# `
|
1392
1299
|
# For a description of IAM and its features, see the
|
1393
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
1300
|
+
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
1394
1301
|
# Corresponds to the JSON property `policy`
|
1395
1302
|
# @return [Google::Apis::CloudtasksV2beta2::Policy]
|
1396
1303
|
attr_accessor :policy
|
@@ -1543,7 +1450,7 @@ module Google
|
|
1543
1450
|
attr_accessor :name
|
1544
1451
|
|
1545
1452
|
# The pull message contains data that can be used by the caller of
|
1546
|
-
# CloudTasks.
|
1453
|
+
# CloudTasks.LeaseTasks to process the task.
|
1547
1454
|
# This proto can only be used for tasks in a queue which has
|
1548
1455
|
# Queue.pull_target set.
|
1549
1456
|
# Corresponds to the JSON property `pullMessage`
|
@@ -1555,7 +1462,7 @@ module Google
|
|
1555
1462
|
# For pull queues, this is the time when the task is available to
|
1556
1463
|
# be leased; if a task is currently leased, this is the time when
|
1557
1464
|
# the current lease expires, that is, the time that the task was
|
1558
|
-
# leased plus the
|
1465
|
+
# leased plus the LeaseTasksRequest.lease_duration.
|
1559
1466
|
# `schedule_time` will be truncated to the nearest microsecond.
|
1560
1467
|
# Corresponds to the JSON property `scheduleTime`
|
1561
1468
|
# @return [String]
|