Class: Google::Apis::Oauth2V1::Jwk::Key

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Key

Returns a new instance of Key



77
78
79
# File 'generated/google/apis/oauth2_v1/classes.rb', line 77

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

Instance Attribute Details

#algString

Corresponds to the JSON property alg

Returns:

  • (String)


50
51
52
# File 'generated/google/apis/oauth2_v1/classes.rb', line 50

def alg
  @alg
end

#eString

Corresponds to the JSON property e

Returns:

  • (String)


55
56
57
# File 'generated/google/apis/oauth2_v1/classes.rb', line 55

def e
  @e
end

#kidString

Corresponds to the JSON property kid

Returns:

  • (String)


60
61
62
# File 'generated/google/apis/oauth2_v1/classes.rb', line 60

def kid
  @kid
end

#ktyString

Corresponds to the JSON property kty

Returns:

  • (String)


65
66
67
# File 'generated/google/apis/oauth2_v1/classes.rb', line 65

def kty
  @kty
end

#nString

Corresponds to the JSON property n

Returns:

  • (String)


70
71
72
# File 'generated/google/apis/oauth2_v1/classes.rb', line 70

def n
  @n
end

#useString

Corresponds to the JSON property use

Returns:

  • (String)


75
76
77
# File 'generated/google/apis/oauth2_v1/classes.rb', line 75

def use
  @use
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



82
83
84
85
86
87
88
89
# File 'generated/google/apis/oauth2_v1/classes.rb', line 82

def update!(**args)
  @alg = args[:alg] if args.key?(:alg)
  @e = args[:e] if args.key?(:e)
  @kid = args[:kid] if args.key?(:kid)
  @kty = args[:kty] if args.key?(:kty)
  @n = args[:n] if args.key?(:n)
  @use = args[:use] if args.key?(:use)
end