Class: Google::Apis::ComputeAlpha::NotificationEndpointGrpcSettings

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ NotificationEndpointGrpcSettings

Returns a new instance of NotificationEndpointGrpcSettings



20712
20713
20714
# File 'generated/google/apis/compute_alpha/classes.rb', line 20712

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#authorityString

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

Returns:

  • (String)


20691
20692
20693
# File 'generated/google/apis/compute_alpha/classes.rb', line 20691

def authority
  @authority
end

#endpointString

Endpoint to which gRPC notifications are sent. This must be a valid gRPCLB DNS name. Corresponds to the JSON property endpoint

Returns:

  • (String)


20697
20698
20699
# File 'generated/google/apis/compute_alpha/classes.rb', line 20697

def endpoint
  @endpoint
end

#payload_nameString

Optional. If specified, this field is used to populate the ?name? field in gRPC requests. Corresponds to the JSON property payloadName

Returns:

  • (String)


20703
20704
20705
# File 'generated/google/apis/compute_alpha/classes.rb', line 20703

def payload_name
  @payload_name
end

#retry_duration_secFixnum

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

Returns:

  • (Fixnum)


20710
20711
20712
# File 'generated/google/apis/compute_alpha/classes.rb', line 20710

def retry_duration_sec
  @retry_duration_sec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20717
20718
20719
20720
20721
20722
# File 'generated/google/apis/compute_alpha/classes.rb', line 20717

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