Class: Google::Apis::ComputeAlpha::NotificationEndpointGrpcSettings
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::NotificationEndpointGrpcSettings
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb
Overview
Represents a gRPC setting that describes one gRPC notification endpoint and the retry duration attempting to send notification to this endpoint.
Instance Attribute Summary collapse
-
#authority ⇒ String
Optional.
-
#endpoint ⇒ String
Endpoint to which gRPC notifications are sent.
-
#payload_name ⇒ String
Optional.
-
#retry_duration_sec ⇒ Fixnum
How much time (in seconds) is spent attempting notification retries until a successful response is received.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NotificationEndpointGrpcSettings
constructor
A new instance of NotificationEndpointGrpcSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ NotificationEndpointGrpcSettings
Returns a new instance of NotificationEndpointGrpcSettings
21295 21296 21297 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 21295 def initialize(**args) update!(**args) end |
Instance Attribute Details
#authority ⇒ String
Optional. If specified, this field is used to set the authority header by the
sender of notifications. See https://tools.ietf.org/html/rfc7540#section-8.1.2.
3
Corresponds to the JSON property authority
21274 21275 21276 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 21274 def @authority end |
#endpoint ⇒ String
Endpoint to which gRPC notifications are sent. This must be a valid gRPCLB DNS
name.
Corresponds to the JSON property endpoint
21280 21281 21282 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 21280 def endpoint @endpoint end |
#payload_name ⇒ String
Optional. If specified, this field is used to populate the ?name? field in
gRPC requests.
Corresponds to the JSON property payloadName
21286 21287 21288 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 21286 def payload_name @payload_name end |
#retry_duration_sec ⇒ Fixnum
How much time (in seconds) is spent attempting notification retries until a
successful response is received. Default is 30s. Limit is 20m (1200s). Must be
a positive number.
Corresponds to the JSON property retryDurationSec
21293 21294 21295 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 21293 def retry_duration_sec @retry_duration_sec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
21300 21301 21302 21303 21304 21305 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 21300 def update!(**args) @authority = args[:authority] if args.key?(:authority) @endpoint = args[:endpoint] if args.key?(:endpoint) @payload_name = args[:payload_name] if args.key?(:payload_name) @retry_duration_sec = args[:retry_duration_sec] if args.key?(:retry_duration_sec) end |