API hub v1 API - Class CreateVersionRequest (1.0.0-beta02)

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

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

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

Inheritance

object > CreateVersionRequest

Namespace

Google.Cloud.ApiHub.V1

Assembly

Google.Cloud.ApiHub.V1.dll

Constructors

CreateVersionRequest()

public CreateVersionRequest()

CreateVersionRequest(CreateVersionRequest)

public CreateVersionRequest(CreateVersionRequest other)
Parameter
Name Description
other CreateVersionRequest

Properties

Parent

public string Parent { get; set; }

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

Property Value
Type Description
string

ParentAsApiName

public ApiName ParentAsApiName { get; set; }

ApiName-typed view over the Parent resource name property.

Property Value
Type Description
ApiName

Version

public Version Version { get; set; }

Required. The version to create.

Property Value
Type Description
Version

VersionId

public string VersionId { get; set; }

Optional. The ID to use for the API version, which will become the final component of the version'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 version in the API resource.
  • 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