Cloud Run Admin v2 API - Class CreateServiceRequest (2.17.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
Name Description
other CreateServiceRequest

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
Type Description
string

ParentAsLocationName

public LocationName ParentAsLocationName { get; set; }

LocationName-typed view over the Parent resource name property.

Property Value
Type Description
LocationName

Service

public Service Service { get; set; }

Required. The Service instance to create.

Property Value
Type Description
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
Type Description
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
Type Description
bool

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月06日 UTC.