public sealed class CreateSchemaRequest : IMessage<CreateSchemaRequest>, IEquatable<CreateSchemaRequest>, IDeepCloneable<CreateSchemaRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Pub/Sub v1 API class CreateSchemaRequest.
Request for the CreateSchema method.
Implements
IMessageCreateSchemaRequest, IEquatableCreateSchemaRequest, IDeepCloneableCreateSchemaRequest, IBufferMessage, IMessageNamespace
Google.Cloud.PubSub.V1Assembly
Google.Cloud.PubSub.V1.dll
Constructors
CreateSchemaRequest()
public CreateSchemaRequest()
CreateSchemaRequest(CreateSchemaRequest)
public CreateSchemaRequest(CreateSchemaRequest other)
Parameter | |
---|---|
Name | Description |
other | CreateSchemaRequest |
Properties
Parent
public string Parent { get; set; }
Required. The name of the project in which to create the schema.
Format is projects/{project-id}
.
Property Value | |
---|---|
Type | Description |
string |
ParentAsProjectName
public ProjectName ParentAsProjectName { get; set; }
ProjectName-typed view over the Parent resource name property.
Property Value | |
---|---|
Type | Description |
ProjectName |
Schema
public Schema Schema { get; set; }
Required. The schema object to create.
This schema's name
parameter is ignored. The schema object returned
by CreateSchema will have a name
made using the given parent
and
schema_id
.
Property Value | |
---|---|
Type | Description |
Schema |
SchemaId
public string SchemaId { get; set; }
The ID to use for the schema, which will become the final component of the schema's resource name.
See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for resource name constraints.
Property Value | |
---|---|
Type | Description |
string |