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
Optional.
-
#value ⇒ String
Optional.
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.
3741 3742 3743 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 3741 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
Optional. Key of Header.
Corresponds to the JSON property key
3734 3735 3736 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 3734 def key @key end |
#value ⇒ String
Optional. Value of Header.
Corresponds to the JSON property value
3739 3740 3741 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 3739 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3746 3747 3748 3749 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 3746 def update!(**args) @key = args[:key] if args.key?(:key) @value = args[:value] if args.key?(:value) end |