API hub v1 API - Class CreateApiRequest (1.0.0)

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

Reference documentation and code samples for the API hub v1 API class CreateApiRequest.

The [CreateApi][google.cloud.apihub.v1.ApiHub.CreateApi] method's request.

Inheritance

object > CreateApiRequest

Namespace

Google.Cloud.ApiHub.V1

Assembly

Google.Cloud.ApiHub.V1.dll

Constructors

CreateApiRequest()

public CreateApiRequest()

CreateApiRequest(CreateApiRequest)

public CreateApiRequest(CreateApiRequest other)
Parameter
Name Description
other CreateApiRequest

Properties

Api

public Api Api { get; set; }

Required. The API resource to create.

Property Value
Type Description
Api

ApiId

public string ApiId { get; set; }

Optional. The ID to use for the API resource, which will become the final component of the API's resource name. This field is optional.

  • If provided, the same will be used. The service will throw an error if the specified id is already used by another API resource in the API hub.
  • If not provided, a system generated id will be used.

This value should be 4-500 characters, and valid characters are /[a-z][A-Z][0-9]-_/.

Property Value
Type Description
string

Parent

public string Parent { get; set; }

Required. The parent resource for the API resource. Format: projects/{project}/locations/{location}

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