Class: Google::Apis::ComputeAlpha::JwtHeader

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

Overview

[Deprecated] This message specifies a header location to extract JWT token. This message specifies a header location to extract JWT token.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ JwtHeader

Returns a new instance of JwtHeader.



24219
24220
24221
# File 'lib/google/apis/compute_alpha/classes.rb', line 24219

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

Instance Attribute Details

#nameString

The HTTP header name. Corresponds to the JSON property name

Returns:

  • (String)


24211
24212
24213
# File 'lib/google/apis/compute_alpha/classes.rb', line 24211

def name
  @name
end

#value_prefixString

The value prefix. The value format is "value_prefix" For example, for " Authorization: Bearer ", value_prefix="Bearer " with a space at the end. Corresponds to the JSON property valuePrefix

Returns:

  • (String)


24217
24218
24219
# File 'lib/google/apis/compute_alpha/classes.rb', line 24217

def value_prefix
  @value_prefix
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



24224
24225
24226
24227
# File 'lib/google/apis/compute_alpha/classes.rb', line 24224

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