/// <summary>Constructs a new Check request.</summary> public CheckRequest(Google.Apis.Services.IClientService service, Google.Apis.ServiceControl.v1.Data.CheckRequest body, string serviceName) : base(service) { ServiceName = serviceName; Body = body; InitParameters(); }
/// <summary>Checks an operation with Google Service Control to decide whether the given operation should /// proceed. It should be called before the operation is executed. /// /// This method requires the `servicemanagement.services.check` permission on the specified service. For more /// information, see [Google Cloud IAM](https://cloud.google.com/iam).</summary> /// <param name="body">The body of the request.</param> /// <param name="serviceName">The service name as specified in its service configuration. For example, /// `"pubsub.googleapis.com"`. /// /// See google.api.Service for the definition of a service name.</param> public virtual CheckRequest Check(Google.Apis.ServiceControl.v1.Data.CheckRequest body, string serviceName) { return(new CheckRequest(service, body, serviceName)); }