コード例 #1
0
 /// <summary>
 /// Gets the current system policy in the specified location.
 /// </summary>
 /// <param name="name">
 /// Required. The resource name, in the format `locations/*/policy`.
 /// Note that the system policy is not associated with a project.
 /// </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 <Policy> GetSystemPolicyAsync(PolicyName name, st::CancellationToken cancellationToken) =>
 GetSystemPolicyAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
コード例 #2
0
 /// <summary>
 /// Gets the current system policy in the specified location.
 /// </summary>
 /// <param name="name">
 /// Required. The resource name, in the format `locations/*/policy`.
 /// Note that the system policy is not associated with a project.
 /// </param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>A Task containing the RPC response.</returns>
 public virtual stt::Task <Policy> GetSystemPolicyAsync(PolicyName name, gaxgrpc::CallSettings callSettings = null) =>
 GetSystemPolicyAsync(new GetSystemPolicyRequest
 {
     PolicyName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)),
 }, callSettings);