Class ProjectsResource.BrokersResource.V2Resource.ServiceInstancesResource.CreateRequest
Provisions a service instance. If request.accepts_incomplete
is false and Broker
cannot execute request synchronously HTTP 422 error will be returned along with
FAILED_PRECONDITION status. If request.accepts_incomplete
is true and the Broker decides to
execute resource asynchronously then HTTP 202 response code will be returned and a valid polling
operation in the response will be included. If Broker executes the request synchronously and it
succeeds HTTP 201 response will be furnished. If identical instance exists, then HTTP 200
response will be returned. If an instance with identical ID but mismatching parameters exists,
then HTTP 409 status code will be returned.
Inheritance
Implements
Inherited Members
Namespace: Google.Apis.ServiceBroker.v1beta1
Assembly: Google.Apis.ServiceBroker.v1beta1.dll
Syntax
public class CreateRequest : ServiceBrokerBaseServiceRequest<GoogleCloudServicebrokerV1beta1CreateServiceInstanceResponse>, IClientServiceRequest<GoogleCloudServicebrokerV1beta1CreateServiceInstanceResponse>, IClientServiceRequest
Constructors
CreateRequest(IClientService, GoogleCloudServicebrokerV1beta1ServiceInstance, String, String)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, GoogleCloudServicebrokerV1beta1ServiceInstance body, string parent, string instanceId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudServicebrokerV1beta1ServiceInstance | body | |
System.String | parent | |
System.String | instanceId |
Properties
AcceptsIncomplete
Value indicating that API client supports asynchronous operations. If Broker cannot execute the request synchronously HTTP 422 code will be returned to HTTP clients along with FAILED_PRECONDITION error. If true and broker will execute request asynchronously 202 HTTP code will be returned. This broker always requires this to be true as all mutator operations are asynchronous.
Declaration
public virtual Nullable<bool> AcceptsIncomplete { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
InstanceId
The id of the service instance. Must be unique within GCP project. Maximum length is 64, GUID recommended. Required.
Declaration
public virtual string InstanceId { get; }
Property Value
Type | Description |
---|---|
System.String |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Parent
Parent must match projects/[PROJECT_ID]/brokers/[BROKER_ID]
.
Declaration
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
System.String |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
System.Object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()