Cloud Pub/Sub V1 API - Class Google::Cloud::PubSub::V1::SchemaService::Rest::ServiceStub (v1.18.0)

Reference documentation and code samples for the Cloud Pub/Sub V1 API class Google::Cloud::PubSub::V1::SchemaService::Rest::ServiceStub.

REST service stub for the SchemaService service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.

Inherits

  • Object

Methods

#commit_schema

def commit_schema(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PubSub::V1::Schema

Baseline implementation for the commit_schema REST call

Parameters
  • request_pb (::Google::Cloud::PubSub::V1::CommitSchemaRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_schema

def create_schema(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PubSub::V1::Schema

Baseline implementation for the create_schema REST call

Parameters
  • request_pb (::Google::Cloud::PubSub::V1::CreateSchemaRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_schema

def delete_schema(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_schema REST call

Parameters
  • request_pb (::Google::Cloud::PubSub::V1::DeleteSchemaRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_schema_revision

def delete_schema_revision(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PubSub::V1::Schema

Baseline implementation for the delete_schema_revision REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#endpoint

def endpoint() -> String

The effective endpoint

Returns
  • (String)

#get_schema

def get_schema(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PubSub::V1::Schema

Baseline implementation for the get_schema REST call

Parameters
  • request_pb (::Google::Cloud::PubSub::V1::GetSchemaRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_schema_revisions

def list_schema_revisions(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PubSub::V1::ListSchemaRevisionsResponse

Baseline implementation for the list_schema_revisions REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_schemas

def list_schemas(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PubSub::V1::ListSchemasResponse

Baseline implementation for the list_schemas REST call

Parameters
  • request_pb (::Google::Cloud::PubSub::V1::ListSchemasRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#logger

def logger(stub: false) -> Logger

The logger used for request/response debug logging.

Returns
  • (Logger)

#rollback_schema

def rollback_schema(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PubSub::V1::Schema

Baseline implementation for the rollback_schema REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)

#validate_message

def validate_message(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PubSub::V1::ValidateMessageResponse

Baseline implementation for the validate_message REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#validate_schema

def validate_schema(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PubSub::V1::ValidateSchemaResponse

Baseline implementation for the validate_schema REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)