generated/google/apis/cloudtasks_v2beta2/classes.rb in google-api-client-0.30.8 vs generated/google/apis/cloudtasks_v2beta2/classes.rb in google-api-client-0.30.9
- old
+ new
@@ -25,12 +25,11 @@
# Request message for acknowledging a task using
# AcknowledgeTask.
class AcknowledgeTaskRequest
include Google::Apis::Core::Hashable
- # Required.
- # The task's current schedule time, available in the
+ # Required. The task's current schedule time, available in the
# schedule_time returned by
# LeaseTasks response or
# RenewLease response. This restriction is
# to ensure that your worker currently holds the lease.
# Corresponds to the JSON property `scheduleTime`
@@ -454,11 +453,11 @@
# * `allUsers`: A special identifier that represents anyone who is
# on the internet; with or without a Google account.
# * `allAuthenticatedUsers`: A special identifier that represents anyone
# who is authenticated with a Google account or a service account.
# * `user:`emailid``: An email address that represents a specific Google
- # account. For example, `alice@gmail.com` .
+ # account. For example, `alice@example.com` .
# * `serviceAccount:`emailid``: An email address that represents a service
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
# * `group:`emailid``: An email address that represents a Google group.
# For example, `admins@example.com`.
# * `domain:`domain``: The G Suite domain (primary) that represents all the
@@ -502,12 +501,11 @@
# permission on the Task resource.
# Corresponds to the JSON property `responseView`
# @return [String]
attr_accessor :response_view
- # Required.
- # The task's current schedule time, available in the
+ # Required. The task's current schedule time, available in the
# schedule_time returned by
# LeaseTasks response or
# RenewLease response. This restriction is
# to ensure that your worker currently holds the lease.
# Corresponds to the JSON property `scheduleTime`
@@ -627,19 +625,47 @@
# Request message for `GetIamPolicy` method.
class GetIamPolicyRequest
include Google::Apis::Core::Hashable
+ # Encapsulates settings provided to GetIamPolicy.
+ # Corresponds to the JSON property `options`
+ # @return [Google::Apis::CloudtasksV2beta2::GetPolicyOptions]
+ attr_accessor :options
+
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
+ @options = args[:options] if args.key?(:options)
end
end
+ # Encapsulates settings provided to GetIamPolicy.
+ class GetPolicyOptions
+ include Google::Apis::Core::Hashable
+
+ # Optional. The policy format version to be returned.
+ # Acceptable values are 0, 1, and 3.
+ # If the value is 0, or the field is omitted, policy format version 1 will be
+ # returned.
+ # Corresponds to the JSON property `requestedPolicyVersion`
+ # @return [Fixnum]
+ attr_accessor :requested_policy_version
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version)
+ end
+ end
+
# Request message for leasing tasks using LeaseTasks.
class LeaseTasksRequest
include Google::Apis::Core::Hashable
# `filter` can be used to specify a subset of tasks to lease.
@@ -666,12 +692,11 @@
# tag will be displayed as empty in Cloud Tasks.
# Corresponds to the JSON property `filter`
# @return [String]
attr_accessor :filter
- # Required.
- # The duration of the lease.
+ # Required. The duration of the lease.
# Each task returned in the response will
# have its schedule_time set to the current
# time plus the `lease_duration`. The task is leased until its
# schedule_time; thus, the task will not be
# returned to another LeaseTasks call
@@ -941,11 +966,11 @@
# read-modify-write cycle to perform policy updates in order to avoid race
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
# systems are expected to put that etag in the request to `setIamPolicy` to
# ensure that their change will be applied to the same version of the policy.
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
- # policy is overwritten blindly.
+ # policy is overwritten.
# Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :etag
@@ -1228,12 +1253,11 @@
# Request message for renewing a lease using
# RenewLease.
class RenewLeaseRequest
include Google::Apis::Core::Hashable
- # Required.
- # The desired new lease duration, starting from now.
+ # Required. The desired new lease duration, starting from now.
# The maximum lease duration is 1 week.
# `lease_duration` will be truncated to the nearest second.
# Corresponds to the JSON property `leaseDuration`
# @return [String]
attr_accessor :lease_duration
@@ -1250,11 +1274,10 @@
# permission on the Task resource.
# Corresponds to the JSON property `responseView`
# @return [String]
attr_accessor :response_view
- # Required.
- # The task's current schedule time, available in the
+ # Required. The task's current schedule time, available in the
# schedule_time returned by
# LeaseTasks response or
# RenewLease response. This restriction is
# to ensure that your worker currently holds the lease.
# Corresponds to the JSON property `scheduleTime`