Class: Google::Apis::ServicemanagementV1::BackendRule
- Inherits:
-
Object
- Object
- Google::Apis::ServicemanagementV1::BackendRule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/servicemanagement_v1/classes.rb,
generated/google/apis/servicemanagement_v1/representations.rb,
generated/google/apis/servicemanagement_v1/representations.rb
Overview
A backend rule provides configuration for an individual API element.
Instance Attribute Summary collapse
-
#address ⇒ String
The address of the API backend.
-
#deadline ⇒ Float
The number of seconds to wait for a response from a request.
-
#selector ⇒ String
Selects the methods to which this rule applies.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BackendRule
constructor
A new instance of BackendRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ BackendRule
Returns a new instance of BackendRule
458 459 460 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 458 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address ⇒ String
The address of the API backend.
Corresponds to the JSON property address
444 445 446 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 444 def address @address end |
#deadline ⇒ Float
The number of seconds to wait for a response from a request. The
default depends on the deployment context.
Corresponds to the JSON property deadline
456 457 458 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 456 def deadline @deadline end |
#selector ⇒ String
Selects the methods to which this rule applies.
Refer to selector for syntax details.
Corresponds to the JSON property selector
450 451 452 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 450 def selector @selector end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
463 464 465 466 467 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 463 def update!(**args) @address = args[:address] if args.key?(:address) @selector = args[:selector] if args.key?(:selector) @deadline = args[:deadline] if args.key?(:deadline) end |