Class: Google::Apis::ContainerV1::RegistryHeader

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/container_v1/classes.rb,
lib/google/apis/container_v1/representations.rb,
lib/google/apis/container_v1/representations.rb

Overview

RegistryHeader configures headers for the registry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RegistryHeader

Returns a new instance of RegistryHeader.



7664
7665
7666
# File 'lib/google/apis/container_v1/classes.rb', line 7664

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

Instance Attribute Details

#keyString

Key configures the header key. Corresponds to the JSON property key

Returns:

  • (String)


7657
7658
7659
# File 'lib/google/apis/container_v1/classes.rb', line 7657

def key
  @key
end

#valueArray<String>

Value configures the header value. Corresponds to the JSON property value

Returns:

  • (Array<String>)


7662
7663
7664
# File 'lib/google/apis/container_v1/classes.rb', line 7662

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7669
7670
7671
7672
# File 'lib/google/apis/container_v1/classes.rb', line 7669

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