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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/container_v1/classes.rb,
generated/google/apis/container_v1/representations.rb,
generated/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

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

#to_json

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

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Jwk

Returns a new instance of Jwk



1376
1377
1378
# File 'generated/google/apis/container_v1/classes.rb', line 1376

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

Instance Attribute Details

#algString

Algorithm. Corresponds to the JSON property alg

Returns:

  • (String)


1334
1335
1336
# File 'generated/google/apis/container_v1/classes.rb', line 1334

def alg
  @alg
end

#crvString

Used for ECDSA keys. Corresponds to the JSON property crv

Returns:

  • (String)


1339
1340
1341
# File 'generated/google/apis/container_v1/classes.rb', line 1339

def crv
  @crv
end

#eString

Used for RSA keys. Corresponds to the JSON property e

Returns:

  • (String)


1344
1345
1346
# File 'generated/google/apis/container_v1/classes.rb', line 1344

def e
  @e
end

#kidString

Key ID. Corresponds to the JSON property kid

Returns:

  • (String)


1349
1350
1351
# File 'generated/google/apis/container_v1/classes.rb', line 1349

def kid
  @kid
end

#ktyString

Key Type. Corresponds to the JSON property kty

Returns:

  • (String)


1354
1355
1356
# File 'generated/google/apis/container_v1/classes.rb', line 1354

def kty
  @kty
end

#nString

Used for RSA keys. Corresponds to the JSON property n

Returns:

  • (String)


1359
1360
1361
# File 'generated/google/apis/container_v1/classes.rb', line 1359

def n
  @n
end

#useString

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

Returns:

  • (String)


1364
1365
1366
# File 'generated/google/apis/container_v1/classes.rb', line 1364

def use
  @use
end

#xString

Used for ECDSA keys. Corresponds to the JSON property x

Returns:

  • (String)


1369
1370
1371
# File 'generated/google/apis/container_v1/classes.rb', line 1369

def x
  @x
end

#yString

Used for ECDSA keys. Corresponds to the JSON property y

Returns:

  • (String)


1374
1375
1376
# File 'generated/google/apis/container_v1/classes.rb', line 1374

def y
  @y
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
# File 'generated/google/apis/container_v1/classes.rb', line 1381

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