lib/google/cloud/tasks/v2beta2/cloud_tasks_client.rb in google-cloud-tasks-0.2.2 vs lib/google/cloud/tasks/v2beta2/cloud_tasks_client.rb in google-cloud-tasks-0.2.3
- old
+ new
@@ -17,10 +17,11 @@
# https://github.com/googleapis/googleapis/blob/master/google/cloud/tasks/v2beta2/cloudtasks.proto,
# and updates to that file get reflected here through a refresh process.
# For the short term, the refresh process will only be runnable by Google
# engineers.
+
require "json"
require "pathname"
require "google/gax"
@@ -35,10 +36,11 @@
# work in their applications.
#
# @!attribute [r] cloud_tasks_stub
# @return [Google::Cloud::Tasks::V2beta2::CloudTasks::Stub]
class CloudTasksClient
+ # @private
attr_reader :cloud_tasks_stub
# The default address of the service.
SERVICE_ADDRESS = "cloudtasks.googleapis.com".freeze
@@ -813,11 +815,11 @@
# * +cloudtasks.queues.getIamPolicy+
#
# @param resource [String]
# REQUIRED: The resource for which the policy is being requested.
# +resource+ is usually specified as a path. For example, a Project
- # resource is specified as +projects/{project}+.
+ # resource is specified as +projects/\\{project}+.
# @param options [Google::Gax::CallOptions]
# Overrides the default settings for this call, e.g, timeout,
# retries, etc.
# @yield [result, operation] Access the result along with the RPC operation
# @yieldparam result [Google::Iam::V1::Policy]
@@ -855,11 +857,11 @@
# * +cloudtasks.queues.setIamPolicy+
#
# @param resource [String]
# REQUIRED: The resource for which the policy is being specified.
# +resource+ is usually specified as a path. For example, a Project
- # resource is specified as +projects/{project}+.
+ # resource is specified as +projects/\\{project}+.
# @param policy [Google::Iam::V1::Policy | Hash]
# REQUIRED: The complete policy to be applied to the +resource+. The size of
# the policy is limited to a few 10s of KB. An empty policy is a
# valid policy but certain Cloud Platform services (such as Projects)
# might reject them.
@@ -905,10 +907,10 @@
# may "fail open" without warning.
#
# @param resource [String]
# REQUIRED: The resource for which the policy detail is being requested.
# +resource+ is usually specified as a path. For example, a Project
- # resource is specified as +projects/{project}+.
+ # resource is specified as +projects/\\{project}+.
# @param permissions [Array<String>]
# The set of permissions to check for the +resource+. Permissions with
# wildcards (such as '*' or 'storage.*') are not allowed. For more
# information see
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).