Reference documentation and code samples for the Grafeas V1 API class Grafeas::V1::Grafeas::Rest::ServiceStub.
REST service stub for the Grafeas service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#batch_create_notes
def batch_create_notes(request_pb, options = nil) { |result, operation| ... } -> ::Grafeas::V1::BatchCreateNotesResponse
Baseline implementation for the batch_create_notes REST call
- request_pb (::Grafeas::V1::BatchCreateNotesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Grafeas::V1::BatchCreateNotesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Grafeas::V1::BatchCreateNotesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#batch_create_occurrences
def batch_create_occurrences(request_pb, options = nil) { |result, operation| ... } -> ::Grafeas::V1::BatchCreateOccurrencesResponse
Baseline implementation for the batch_create_occurrences REST call
- request_pb (::Grafeas::V1::BatchCreateOccurrencesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Grafeas::V1::BatchCreateOccurrencesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Grafeas::V1::BatchCreateOccurrencesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_note
def create_note(request_pb, options = nil) { |result, operation| ... } -> ::Grafeas::V1::Note
Baseline implementation for the create_note REST call
- request_pb (::Grafeas::V1::CreateNoteRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Grafeas::V1::Note)
- operation (::Gapic::Rest::TransportOperation)
- (::Grafeas::V1::Note) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_occurrence
def create_occurrence(request_pb, options = nil) { |result, operation| ... } -> ::Grafeas::V1::Occurrence
Baseline implementation for the create_occurrence REST call
- request_pb (::Grafeas::V1::CreateOccurrenceRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Grafeas::V1::Occurrence)
- operation (::Gapic::Rest::TransportOperation)
- (::Grafeas::V1::Occurrence) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_note
def delete_note(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_note REST call
- request_pb (::Grafeas::V1::DeleteNoteRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_occurrence
def delete_occurrence(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_occurrence REST call
- request_pb (::Grafeas::V1::DeleteOccurrenceRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#endpoint
def endpoint() -> String
The effective endpoint
- (String)
#get_note
def get_note(request_pb, options = nil) { |result, operation| ... } -> ::Grafeas::V1::Note
Baseline implementation for the get_note REST call
- request_pb (::Grafeas::V1::GetNoteRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Grafeas::V1::Note)
- operation (::Gapic::Rest::TransportOperation)
- (::Grafeas::V1::Note) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_occurrence
def get_occurrence(request_pb, options = nil) { |result, operation| ... } -> ::Grafeas::V1::Occurrence
Baseline implementation for the get_occurrence REST call
- request_pb (::Grafeas::V1::GetOccurrenceRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Grafeas::V1::Occurrence)
- operation (::Gapic::Rest::TransportOperation)
- (::Grafeas::V1::Occurrence) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_occurrence_note
def get_occurrence_note(request_pb, options = nil) { |result, operation| ... } -> ::Grafeas::V1::Note
Baseline implementation for the get_occurrence_note REST call
- request_pb (::Grafeas::V1::GetOccurrenceNoteRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Grafeas::V1::Note)
- operation (::Gapic::Rest::TransportOperation)
- (::Grafeas::V1::Note) — A result object deserialized from the server's reply
- (::ArgumentError)
#initialize
def initialize(endpoint:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#list_note_occurrences
def list_note_occurrences(request_pb, options = nil) { |result, operation| ... } -> ::Grafeas::V1::ListNoteOccurrencesResponse
Baseline implementation for the list_note_occurrences REST call
- request_pb (::Grafeas::V1::ListNoteOccurrencesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Grafeas::V1::ListNoteOccurrencesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Grafeas::V1::ListNoteOccurrencesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_notes
def list_notes(request_pb, options = nil) { |result, operation| ... } -> ::Grafeas::V1::ListNotesResponse
Baseline implementation for the list_notes REST call
- request_pb (::Grafeas::V1::ListNotesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Grafeas::V1::ListNotesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Grafeas::V1::ListNotesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_occurrences
def list_occurrences(request_pb, options = nil) { |result, operation| ... } -> ::Grafeas::V1::ListOccurrencesResponse
Baseline implementation for the list_occurrences REST call
- request_pb (::Grafeas::V1::ListOccurrencesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Grafeas::V1::ListOccurrencesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Grafeas::V1::ListOccurrencesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)
#update_note
def update_note(request_pb, options = nil) { |result, operation| ... } -> ::Grafeas::V1::Note
Baseline implementation for the update_note REST call
- request_pb (::Grafeas::V1::UpdateNoteRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Grafeas::V1::Note)
- operation (::Gapic::Rest::TransportOperation)
- (::Grafeas::V1::Note) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_occurrence
def update_occurrence(request_pb, options = nil) { |result, operation| ... } -> ::Grafeas::V1::Occurrence
Baseline implementation for the update_occurrence REST call
- request_pb (::Grafeas::V1::UpdateOccurrenceRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Grafeas::V1::Occurrence)
- operation (::Gapic::Rest::TransportOperation)
- (::Grafeas::V1::Occurrence) — A result object deserialized from the server's reply
- (::ArgumentError)