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.



2261
2262
2263
# File 'lib/google/apis/container_v1/classes.rb', line 2261

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

Instance Attribute Details

#algString

Algorithm. Corresponds to the JSON property alg

Returns:

  • (String)


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

def alg
  @alg
end

#crvString

Used for ECDSA keys. Corresponds to the JSON property crv

Returns:

  • (String)


2224
2225
2226
# File 'lib/google/apis/container_v1/classes.rb', line 2224

def crv
  @crv
end

#eString

Used for RSA keys. Corresponds to the JSON property e

Returns:

  • (String)


2229
2230
2231
# File 'lib/google/apis/container_v1/classes.rb', line 2229

def e
  @e
end

#kidString

Key ID. Corresponds to the JSON property kid

Returns:

  • (String)


2234
2235
2236
# File 'lib/google/apis/container_v1/classes.rb', line 2234

def kid
  @kid
end

#ktyString

Key Type. Corresponds to the JSON property kty

Returns:

  • (String)


2239
2240
2241
# File 'lib/google/apis/container_v1/classes.rb', line 2239

def kty
  @kty
end

#nString

Used for RSA keys. Corresponds to the JSON property n

Returns:

  • (String)


2244
2245
2246
# File 'lib/google/apis/container_v1/classes.rb', line 2244

def n
  @n
end

#useString

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

Returns:

  • (String)


2249
2250
2251
# File 'lib/google/apis/container_v1/classes.rb', line 2249

def use
  @use
end

#xString

Used for ECDSA keys. Corresponds to the JSON property x

Returns:

  • (String)


2254
2255
2256
# File 'lib/google/apis/container_v1/classes.rb', line 2254

def x
  @x
end

#yString

Used for ECDSA keys. Corresponds to the JSON property y

Returns:

  • (String)


2259
2260
2261
# File 'lib/google/apis/container_v1/classes.rb', line 2259

def y
  @y
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
# File 'lib/google/apis/container_v1/classes.rb', line 2266

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