Class ProjectsResource.LocationsResource.InstancesResource.CreateRequest
Creates an Instance.
Inheritance
ProjectsResource.LocationsResource.InstancesResource.CreateRequest
Inherited Members
Namespace: Google.Apis.CloudRun.v2
Assembly: Google.Apis.CloudRun.v2.dll
Syntax
public class ProjectsResource.LocationsResource.InstancesResource.CreateRequest : CloudRunBaseServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest
Constructors
CreateRequest(IClientService, GoogleCloudRunV2Instance, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, GoogleCloudRunV2Instance body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| GoogleCloudRunV2Instance | body | |
| string | parent |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
InstanceId
Required. The unique identifier for the Instance. It must begin with letter, and cannot end with hyphen; must contain fewer than 50 characters. The name of the instance becomes {parent}/instances/{instance_id}.
Declaration
[RequestParameter("instanceId", RequestParameterType.Query)]
public virtual string InstanceId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Parent
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
ValidateOnly
Optional. Indicates that the request should be validated and default values populated, without persisting the request or creating any resources.
Declaration
[RequestParameter("validateOnly", RequestParameterType.Query)]
public virtual bool? ValidateOnly { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()