Class: Google::Cloud::PubSub::V1::CreateSchemaRequest

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/pubsub/v1/schema.rb

Overview

Request for the CreateSchema method.

Instance Attribute Summary collapse

Instance Attribute Details

#parent::String

Returns Required. The name of the project in which to create the schema. Format is projects/{project-id}.

Returns:

  • (::String)

    Required. The name of the project in which to create the schema. Format is projects/{project-id}.



73
74
75
76
# File 'proto_docs/google/pubsub/v1/schema.rb', line 73

class CreateSchemaRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#schema::Google::Cloud::PubSub::V1::Schema

Returns 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.

Returns:

  • (::Google::Cloud::PubSub::V1::Schema)

    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.



73
74
75
76
# File 'proto_docs/google/pubsub/v1/schema.rb', line 73

class CreateSchemaRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#schema_id::String

Returns 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.

Returns:



73
74
75
76
# File 'proto_docs/google/pubsub/v1/schema.rb', line 73

class CreateSchemaRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end