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.
Implements
IMessageCreateVersionRequest, IEquatableCreateVersionRequest, IDeepCloneableCreateVersionRequest, IBufferMessage, IMessageNamespace
Google.Cloud.ApiHub.V1Assembly
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; }
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 |