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



1160
1161
1162
# File 'generated/google/apis/container_v1/classes.rb', line 1160

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

Instance Attribute Details

#algString

NOLINT Corresponds to the JSON property alg

Returns:

  • (String)


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

def alg
  @alg
end

#crvString

NOLINT Corresponds to the JSON property crv

Returns:

  • (String)


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

def crv
  @crv
end

#eString

NOLINT Corresponds to the JSON property e

Returns:

  • (String)


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

def e
  @e
end

#kidString

NOLINT Corresponds to the JSON property kid

Returns:

  • (String)


1131
1132
1133
# File 'generated/google/apis/container_v1/classes.rb', line 1131

def kid
  @kid
end

#ktyString

NOLINT Corresponds to the JSON property kty

Returns:

  • (String)


1136
1137
1138
# File 'generated/google/apis/container_v1/classes.rb', line 1136

def kty
  @kty
end

#nString

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

Returns:

  • (String)


1142
1143
1144
# File 'generated/google/apis/container_v1/classes.rb', line 1142

def n
  @n
end

#useString

NOLINT Corresponds to the JSON property use

Returns:

  • (String)


1147
1148
1149
# File 'generated/google/apis/container_v1/classes.rb', line 1147

def use
  @use
end

#xString

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

Returns:

  • (String)


1153
1154
1155
# File 'generated/google/apis/container_v1/classes.rb', line 1153

def x
  @x
end

#yString

NOLINT Corresponds to the JSON property y

Returns:

  • (String)


1158
1159
1160
# File 'generated/google/apis/container_v1/classes.rb', line 1158

def y
  @y
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
# File 'generated/google/apis/container_v1/classes.rb', line 1165

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