Class: Google::Apis::ConnectorsV1::Header

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Header

Returns a new instance of Header.



3788
3789
3790
# File 'lib/google/apis/connectors_v1/classes.rb', line 3788

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

Instance Attribute Details

#keyString

Optional. Key of Header. Corresponds to the JSON property key

Returns:

  • (String)


3781
3782
3783
# File 'lib/google/apis/connectors_v1/classes.rb', line 3781

def key
  @key
end

#valueString

Optional. Value of Header. Corresponds to the JSON property value

Returns:

  • (String)


3786
3787
3788
# File 'lib/google/apis/connectors_v1/classes.rb', line 3786

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3793
3794
3795
3796
# File 'lib/google/apis/connectors_v1/classes.rb', line 3793

def update!(**args)
  @key = args[:key] if args.key?(:key)
  @value = args[:value] if args.key?(:value)
end