Class: Google::Apis::ContainerV1::Jwk

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

Jwk is a JSON Web Key as specified in RFC 7517

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Jwk

Returns a new instance of Jwk.



4105
4106
4107
# File 'lib/google/apis/container_v1/classes.rb', line 4105

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

Instance Attribute Details

#algString

Algorithm. Corresponds to the JSON property alg

Returns:

  • (String)


4063
4064
4065
# File 'lib/google/apis/container_v1/classes.rb', line 4063

def alg
  @alg
end

#crvString

Used for ECDSA keys. Corresponds to the JSON property crv

Returns:

  • (String)


4068
4069
4070
# File 'lib/google/apis/container_v1/classes.rb', line 4068

def crv
  @crv
end

#eString

Used for RSA keys. Corresponds to the JSON property e

Returns:

  • (String)


4073
4074
4075
# File 'lib/google/apis/container_v1/classes.rb', line 4073

def e
  @e
end

#kidString

Key ID. Corresponds to the JSON property kid

Returns:

  • (String)


4078
4079
4080
# File 'lib/google/apis/container_v1/classes.rb', line 4078

def kid
  @kid
end

#ktyString

Key Type. Corresponds to the JSON property kty

Returns:

  • (String)


4083
4084
4085
# File 'lib/google/apis/container_v1/classes.rb', line 4083

def kty
  @kty
end

#nString

Used for RSA keys. Corresponds to the JSON property n

Returns:

  • (String)


4088
4089
4090
# File 'lib/google/apis/container_v1/classes.rb', line 4088

def n
  @n
end

#useString

Permitted uses for the public keys. Corresponds to the JSON property use

Returns:

  • (String)


4093
4094
4095
# File 'lib/google/apis/container_v1/classes.rb', line 4093

def use
  @use
end

#xString

Used for ECDSA keys. Corresponds to the JSON property x

Returns:

  • (String)


4098
4099
4100
# File 'lib/google/apis/container_v1/classes.rb', line 4098

def x
  @x
end

#yString

Used for ECDSA keys. Corresponds to the JSON property y

Returns:

  • (String)


4103
4104
4105
# File 'lib/google/apis/container_v1/classes.rb', line 4103

def y
  @y
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
# File 'lib/google/apis/container_v1/classes.rb', line 4110

def update!(**args)
  @alg = args[:alg] if args.key?(:alg)
  @crv = args[:crv] if args.key?(:crv)
  @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)
  @x = args[:x] if args.key?(:x)
  @y = args[:y] if args.key?(:y)
end