Cloud Pub/Sub v1 API - Class CreateSchemaRequest (3.7.0)

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.

Inheritance

object > CreateSchemaRequest

Namespace

Google.Cloud.PubSub.V1

Assembly

Google.Cloud.PubSub.V1.dll

Constructors

CreateSchemaRequest()

public CreateSchemaRequest()

CreateSchemaRequest(CreateSchemaRequest)

public CreateSchemaRequest(CreateSchemaRequest other)
Parameter
NameDescription
otherCreateSchemaRequest

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
TypeDescription
string

ParentAsProjectName

public ProjectName ParentAsProjectName { get; set; }

ProjectName-typed view over the Parent resource name property.

Property Value
TypeDescription
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
TypeDescription
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/admin#resource_names for resource name constraints.

Property Value
TypeDescription
string