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



1129
1130
1131
# File 'generated/google/apis/container_v1/classes.rb', line 1129

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

Instance Attribute Details

#algString

NOLINT Corresponds to the JSON property alg

Returns:

  • (String)


1085
1086
1087
# File 'generated/google/apis/container_v1/classes.rb', line 1085

def alg
  @alg
end

#crvString

NOLINT Corresponds to the JSON property crv

Returns:

  • (String)


1090
1091
1092
# File 'generated/google/apis/container_v1/classes.rb', line 1090

def crv
  @crv
end

#eString

NOLINT Corresponds to the JSON property e

Returns:

  • (String)


1095
1096
1097
# File 'generated/google/apis/container_v1/classes.rb', line 1095

def e
  @e
end

#kidString

NOLINT Corresponds to the JSON property kid

Returns:

  • (String)


1100
1101
1102
# File 'generated/google/apis/container_v1/classes.rb', line 1100

def kid
  @kid
end

#ktyString

NOLINT Corresponds to the JSON property kty

Returns:

  • (String)


1105
1106
1107
# File 'generated/google/apis/container_v1/classes.rb', line 1105

def kty
  @kty
end

#nString

Fields for RSA keys. NOLINT Corresponds to the JSON property n

Returns:

  • (String)


1111
1112
1113
# File 'generated/google/apis/container_v1/classes.rb', line 1111

def n
  @n
end

#useString

NOLINT Corresponds to the JSON property use

Returns:

  • (String)


1116
1117
1118
# File 'generated/google/apis/container_v1/classes.rb', line 1116

def use
  @use
end

#xString

Fields for ECDSA keys. NOLINT Corresponds to the JSON property x

Returns:

  • (String)


1122
1123
1124
# File 'generated/google/apis/container_v1/classes.rb', line 1122

def x
  @x
end

#yString

NOLINT Corresponds to the JSON property y

Returns:

  • (String)


1127
1128
1129
# File 'generated/google/apis/container_v1/classes.rb', line 1127

def y
  @y
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
# File 'generated/google/apis/container_v1/classes.rb', line 1134

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