Class: Google::Apis::ConnectorsV1::Header
- Inherits:
-
Object
- Object
- Google::Apis::ConnectorsV1::Header
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/connectors_v1/classes.rb,
lib/google/apis/connectors_v1/representations.rb,
lib/google/apis/connectors_v1/representations.rb
Overview
Header details for a given header to be added to Endpoint.
Instance Attribute Summary collapse
-
#key ⇒ String
Key of Header.
-
#value ⇒ String
Value of Header.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Header
constructor
A new instance of Header.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Header
Returns a new instance of Header.
2677 2678 2679 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2677 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
Key of Header.
Corresponds to the JSON property key
2670 2671 2672 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2670 def key @key end |
#value ⇒ String
Value of Header.
Corresponds to the JSON property value
2675 2676 2677 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2675 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2682 2683 2684 2685 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2682 def update!(**args) @key = args[:key] if args.key?(:key) @value = args[:value] if args.key?(:value) end |