Class ServicesResource.CheckRequest
Private Preview. This feature is only available for approved services. This method provides admission
control for services that are integrated with Service
Infrastructure. It checks whether an operation should be
allowed based on the service configuration and relevant policies. It must be called before the operation is
executed. For more information, see Admission
Control. NOTE: The admission
control has an expected policy propagation delay of 60s. The caller must not depend on the most recent
policy changes. NOTE: The admission control has a hard limit of 1 referenced resources per call. If an
operation refers to more than 1 resources, the caller must call the Check method multiple times. This method
requires the servicemanagement.services.check
permission on the specified service. For more information,
see Service Control API Access
Control.
Inheritance
Inherited Members
Namespace: Google.Apis.ServiceControl.v2
Assembly: Google.Apis.ServiceControl.v2.dll
Syntax
public class ServicesResource.CheckRequest : ServiceControlBaseServiceRequest<CheckResponse>, IClientServiceRequest<CheckResponse>, IClientServiceRequest
Constructors
CheckRequest(IClientService, CheckRequest, string)
Constructs a new Check request.
Declaration
public CheckRequest(IClientService service, CheckRequest body, string serviceName)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
CheckRequest | body | |
string | serviceName |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
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.
Declaration
[RequestParameter("serviceName", RequestParameterType.Path)]
public virtual string ServiceName { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Check parameter list.
Declaration
protected override void InitParameters()