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

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

Overview

This message specifies a header location to extract JWT token.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ JwtHeader

Returns a new instance of JwtHeader



16585
16586
16587
# File 'generated/google/apis/compute_alpha/classes.rb', line 16585

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

Instance Attribute Details

#nameString

The HTTP header name. Corresponds to the JSON property name

Returns:

  • (String)


16577
16578
16579
# File 'generated/google/apis/compute_alpha/classes.rb', line 16577

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)


16583
16584
16585
# File 'generated/google/apis/compute_alpha/classes.rb', line 16583

def value_prefix
  @value_prefix
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16590
16591
16592
16593
# File 'generated/google/apis/compute_alpha/classes.rb', line 16590

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