proto_docs/google/pubsub/v1/schema.rb in google-cloud-pubsub-v1-0.12.1 vs proto_docs/google/pubsub/v1/schema.rb in google-cloud-pubsub-v1-0.13.0

- old
+ new

@@ -32,10 +32,16 @@ # @!attribute [rw] definition # @return [::String] # The definition of the schema. This should contain a string representing # the full definition of the schema that is a valid schema definition of # the type specified in `type`. + # @!attribute [r] revision_id + # @return [::String] + # Output only. Immutable. The revision ID of the schema. + # @!attribute [r] revision_create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp that the revision was created. class Schema include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Possible schema definition types. @@ -81,12 +87,11 @@ # Required. The name of the schema to get. # Format is `projects/{project}/schemas/{schema}`. # @!attribute [rw] view # @return [::Google::Cloud::PubSub::V1::SchemaView] # The set of fields to return in the response. If not set, returns a Schema - # with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all - # fields. + # with all fields filled out. Set to `BASIC` to omit the `definition`. class GetSchemaRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end @@ -120,9 +125,89 @@ # @!attribute [rw] next_page_token # @return [::String] # If not empty, indicates that there may be more schemas that match the # request; this value should be passed in a new `ListSchemasRequest`. class ListSchemasResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request for the `ListSchemaRevisions` method. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the schema to list revisions for. + # @!attribute [rw] view + # @return [::Google::Cloud::PubSub::V1::SchemaView] + # The set of Schema fields to return in the response. If not set, returns + # Schemas with `name` and `type`, but not `definition`. Set to `FULL` to + # retrieve all fields. + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of revisions to return per page. + # @!attribute [rw] page_token + # @return [::String] + # The page token, received from a previous ListSchemaRevisions call. + # Provide this to retrieve the subsequent page. + class ListSchemaRevisionsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response for the `ListSchemaRevisions` method. + # @!attribute [rw] schemas + # @return [::Array<::Google::Cloud::PubSub::V1::Schema>] + # The revisions of the schema. + # @!attribute [rw] next_page_token + # @return [::String] + # A token that can be sent as `page_token` to retrieve the next page. + # If this field is empty, there are no subsequent pages. + class ListSchemaRevisionsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request for CommitSchema method. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the schema we are revising. + # Format is `projects/{project}/schemas/{schema}`. + # @!attribute [rw] schema + # @return [::Google::Cloud::PubSub::V1::Schema] + # Required. The schema revision to commit. + class CommitSchemaRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request for the `RollbackSchema` method. + # @!attribute [rw] name + # @return [::String] + # Required. The schema being rolled back with revision id. + # @!attribute [rw] revision_id + # @return [::String] + # Required. The revision ID to roll back to. + # It must be a revision of the same schema. + # + # Example: c7cfa2a8 + class RollbackSchemaRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request for the `DeleteSchemaRevision` method. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the schema revision to be deleted, with a revision ID + # explicitly included. + # + # Example: projects/123/schemas/my-schema@c7cfa2a8 + # @!attribute [rw] revision_id + # @return [::String] + # Required. The revision ID to roll back to. + # It must be a revision of the same schema. + # + # Example: c7cfa2a8 + class DeleteSchemaRevisionRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Request for the `DeleteSchema` method.