Reference documentation and code samples for the Advisory Notifications V1 API class Google::Cloud::AdvisoryNotifications::V1::AdvisoryNotificationsService::Rest::ServiceStub.
REST service stub for the AdvisoryNotificationsService service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#get_notification
def get_notification(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AdvisoryNotifications::V1::Notification
Baseline implementation for the get_notification REST call
- request_pb (::Google::Cloud::AdvisoryNotifications::V1::GetNotificationRequest) — 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::Cloud::AdvisoryNotifications::V1::Notification)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::AdvisoryNotifications::V1::Notification) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_settings
def get_settings(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AdvisoryNotifications::V1::Settings
Baseline implementation for the get_settings REST call
- request_pb (::Google::Cloud::AdvisoryNotifications::V1::GetSettingsRequest) — 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::Cloud::AdvisoryNotifications::V1::Settings)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::AdvisoryNotifications::V1::Settings) — 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_notifications
def list_notifications(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AdvisoryNotifications::V1::ListNotificationsResponse
Baseline implementation for the list_notifications REST call
- request_pb (::Google::Cloud::AdvisoryNotifications::V1::ListNotificationsRequest) — 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::Cloud::AdvisoryNotifications::V1::ListNotificationsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::AdvisoryNotifications::V1::ListNotificationsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)
#update_settings
def update_settings(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AdvisoryNotifications::V1::Settings
Baseline implementation for the update_settings REST call
- request_pb (::Google::Cloud::AdvisoryNotifications::V1::UpdateSettingsRequest) — 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::Cloud::AdvisoryNotifications::V1::Settings)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::AdvisoryNotifications::V1::Settings) — A result object deserialized from the server's reply
- (::ArgumentError)