Cloud Run Admin v2 API - Class CreateServiceRequest (2.2.0)

public sealed class CreateServiceRequest : IMessage<CreateServiceRequest>, IEquatable<CreateServiceRequest>, IDeepCloneable<CreateServiceRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Run Admin v2 API class CreateServiceRequest.

Request message for creating a Service.

Inheritance

object > CreateServiceRequest

Namespace

Google.Cloud.Run.V2

Assembly

Google.Cloud.Run.V2.dll

Constructors

CreateServiceRequest()

public CreateServiceRequest()

CreateServiceRequest(CreateServiceRequest)

public CreateServiceRequest(CreateServiceRequest other)
Parameter
NameDescription
otherCreateServiceRequest

Properties

Parent

public string Parent { get; set; }

Required. The location and project in which this service should be created. Format: projects/{project}/locations/{location}, where {project} can be project id or number. Only lowercase characters, digits, and hyphens.

Property Value
TypeDescription
string

ParentAsLocationName

public LocationName ParentAsLocationName { get; set; }

LocationName-typed view over the Parent resource name property.

Property Value
TypeDescription
LocationName

Service

public Service Service { get; set; }

Required. The Service instance to create.

Property Value
TypeDescription
Service

ServiceId

public string ServiceId { get; set; }

Required. The unique identifier for the Service. It must begin with letter, and cannot end with hyphen; must contain fewer than 50 characters. The name of the service becomes {parent}/services/{service_id}.

Property Value
TypeDescription
string

ValidateOnly

public bool ValidateOnly { get; set; }

Indicates that the request should be validated and default values populated, without persisting the request or creating any resources.

Property Value
TypeDescription
bool