Class ProjectsResource.BrokersResource.V2Resource.ServiceInstancesResource
The "service_instances" collection of methods.
Inheritance
Namespace: Google.Apis.ServiceBroker.v1beta1
Assembly: Google.Apis.ServiceBroker.v1beta1.dll
Syntax
public class ServiceInstancesResource : object
Constructors
ServiceInstancesResource(IClientService)
Constructs a new resource.
Declaration
public ServiceInstancesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
ServiceBindings
Gets the ServiceBindings resource.
Declaration
public virtual ProjectsResource.BrokersResource.V2Resource.ServiceInstancesResource.ServiceBindingsResource ServiceBindings { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.BrokersResource.V2Resource.ServiceInstancesResource.ServiceBindingsResource |
Methods
Create(GoogleCloudServicebrokerV1beta1ServiceInstance, String, String)
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.
Declaration
public virtual ProjectsResource.BrokersResource.V2Resource.ServiceInstancesResource.CreateRequest Create(GoogleCloudServicebrokerV1beta1ServiceInstance body, string parent, string instanceId)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudServicebrokerV1beta1ServiceInstance | body | The body of the request. |
System.String | parent | Parent must match |
System.String | instanceId | The id of the service instance. Must be unique within GCP project. Maximum length is 64, GUID recommended. Required. |
Returns
Type | Description |
---|---|
ProjectsResource.BrokersResource.V2Resource.ServiceInstancesResource.CreateRequest |
Delete(String)
Deprovisions a service instance. For synchronous/asynchronous request details see CreateServiceInstance method. If service instance does not exist HTTP 410 status will be returned.
Declaration
public virtual ProjectsResource.BrokersResource.V2Resource.ServiceInstancesResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name must match |
Returns
Type | Description |
---|---|
ProjectsResource.BrokersResource.V2Resource.ServiceInstancesResource.DeleteRequest |
Get(String)
Gets the given service instance from the system. The API call accepts both OSB style
API and standard google style API resource path. i.e. both projects/brokers/instances
and
projects/brokers/v2/service_instances
are acceptable paths.
Declaration
public virtual ProjectsResource.BrokersResource.V2Resource.ServiceInstancesResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The resource name of the instance to return. Name must match
|
Returns
Type | Description |
---|---|
ProjectsResource.BrokersResource.V2Resource.ServiceInstancesResource.GetRequest |
GetLastOperation(String)
Returns the state of the last operation for the service instance. Only last (or current) operation can be polled.
Declaration
public virtual ProjectsResource.BrokersResource.V2Resource.ServiceInstancesResource.GetLastOperationRequest GetLastOperation(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name must match |
Returns
Type | Description |
---|---|
ProjectsResource.BrokersResource.V2Resource.ServiceInstancesResource.GetLastOperationRequest |
Patch(GoogleCloudServicebrokerV1beta1ServiceInstance, String)
Updates an existing service instance. See CreateServiceInstance for possible response codes.
Declaration
public virtual ProjectsResource.BrokersResource.V2Resource.ServiceInstancesResource.PatchRequest Patch(GoogleCloudServicebrokerV1beta1ServiceInstance body, string name)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudServicebrokerV1beta1ServiceInstance | body | The body of the request. |
System.String | name | Name must match
|
Returns
Type | Description |
---|---|
ProjectsResource.BrokersResource.V2Resource.ServiceInstancesResource.PatchRequest |