Class: Google::Apis::ContainerV1::HttpCacheControlResponseHeader

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

RFC-2616: cache control support

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HttpCacheControlResponseHeader

Returns a new instance of HttpCacheControlResponseHeader.



2221
2222
2223
# File 'lib/google/apis/container_v1/classes.rb', line 2221

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

Instance Attribute Details

#ageFixnum

14.6 response cache age, in seconds since the response is generated Corresponds to the JSON property age

Returns:

  • (Fixnum)


2209
2210
2211
# File 'lib/google/apis/container_v1/classes.rb', line 2209

def age
  @age
end

#directiveString

14.9 request and response directives Corresponds to the JSON property directive

Returns:

  • (String)


2214
2215
2216
# File 'lib/google/apis/container_v1/classes.rb', line 2214

def directive
  @directive
end

#expiresString

14.21 response cache expires, in RFC 1123 date format Corresponds to the JSON property expires

Returns:

  • (String)


2219
2220
2221
# File 'lib/google/apis/container_v1/classes.rb', line 2219

def expires
  @expires
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2226
2227
2228
2229
2230
# File 'lib/google/apis/container_v1/classes.rb', line 2226

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