Class: Google::Apis::ContainerV1beta1::RegistryHeader

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/container_v1beta1/classes.rb,
lib/google/apis/container_v1beta1/representations.rb,
lib/google/apis/container_v1beta1/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.



9105
9106
9107
# File 'lib/google/apis/container_v1beta1/classes.rb', line 9105

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

Instance Attribute Details

#keyString

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

Returns:

  • (String)


9098
9099
9100
# File 'lib/google/apis/container_v1beta1/classes.rb', line 9098

def key
  @key
end

#valueArray<String>

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

Returns:

  • (Array<String>)


9103
9104
9105
# File 'lib/google/apis/container_v1beta1/classes.rb', line 9103

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9110
9111
9112
9113
# File 'lib/google/apis/container_v1beta1/classes.rb', line 9110

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