/// <summary> /// Gets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. /// Returns an empty policy if the resource exists and does not have a policy /// set. /// /// Authorization requires the following /// [Google IAM](https://cloud.google.com/iam) permission on the specified /// resource parent: /// /// * `cloudtasks.queues.getIamPolicy` /// </summary> /// <param name="resource"> /// REQUIRED: The resource for which the policy is being requested. /// See the operation documentation for the appropriate value for this field. /// </param> /// <param name="cancellationToken"> /// A <see cref="st::CancellationToken"/> to use for this RPC. /// </param> /// <returns> /// A Task containing the RPC response. /// </returns> public virtual stt::Task <iam::Policy> GetIamPolicyAsync( QueueName resource, st::CancellationToken cancellationToken) => GetIamPolicyAsync( resource, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));