akeyless 3.5.4 → 3.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -2
  3. data/docs/AssocTargetItem.md +8 -0
  4. data/docs/AuthMethod.md +2 -0
  5. data/docs/CertificateChainInfo.md +4 -0
  6. data/docs/CertificateVersionInfo.md +22 -0
  7. data/docs/Connect.md +1 -1
  8. data/docs/CreateAuthMethod.md +2 -0
  9. data/docs/CreateAuthMethodAWSIAM.md +2 -0
  10. data/docs/CreateAuthMethodAzureAD.md +3 -1
  11. data/docs/CreateAuthMethodCert.md +2 -0
  12. data/docs/CreateAuthMethodEmail.md +2 -0
  13. data/docs/CreateAuthMethodGCP.md +2 -0
  14. data/docs/CreateAuthMethodHuawei.md +2 -0
  15. data/docs/CreateAuthMethodK8S.md +2 -0
  16. data/docs/CreateAuthMethodLDAP.md +2 -0
  17. data/docs/CreateAuthMethodOAuth2.md +2 -0
  18. data/docs/CreateAuthMethodOIDC.md +2 -0
  19. data/docs/CreateAuthMethodSAML.md +2 -0
  20. data/docs/CreateAuthMethodUniversalIdentity.md +2 -0
  21. data/docs/CreateEventForwarder.md +1 -1
  22. data/docs/CreateLinkedTarget.md +2 -0
  23. data/docs/CreateRole.md +4 -0
  24. data/docs/CreateRotatedSecret.md +7 -1
  25. data/docs/CreateSSHCertIssuer.md +4 -4
  26. data/docs/CreateSecret.md +2 -0
  27. data/docs/GatewayCreateMigration.md +2 -0
  28. data/docs/GatewayCreateProducerCassandra.md +4 -0
  29. data/docs/GatewayUpdateItem.md +2 -0
  30. data/docs/GatewayUpdateMigration.md +2 -0
  31. data/docs/GatewayUpdateProducerCassandra.md +4 -0
  32. data/docs/GenerateCsr.md +1 -1
  33. data/docs/GwClusterIdentity.md +2 -0
  34. data/docs/ImportPasswords.md +3 -1
  35. data/docs/ImportPasswordsOutput.md +3 -1
  36. data/docs/ItemVersion.md +2 -0
  37. data/docs/ProvisionCertificate.md +28 -0
  38. data/docs/ProvisionCertificateOutput.md +24 -0
  39. data/docs/RenewCertificate.md +28 -0
  40. data/docs/RenewCertificateOutput.md +28 -0
  41. data/docs/SecureRemoteAccess.md +2 -0
  42. data/docs/ServerInventoryPayload.md +2 -0
  43. data/docs/SetRoleRule.md +1 -1
  44. data/docs/SignDataWithClassicKey.md +2 -0
  45. data/docs/SignEcDsa.md +5 -1
  46. data/docs/SignPKCS1.md +9 -1
  47. data/docs/SignPKCS1Output.md +1 -1
  48. data/docs/SignRsaSsaPss.md +5 -1
  49. data/docs/StaticSecretDetailsInfo.md +2 -0
  50. data/docs/TargetItemVersion.md +2 -0
  51. data/docs/UpdateAuthMethod.md +2 -0
  52. data/docs/UpdateAuthMethodAWSIAM.md +2 -0
  53. data/docs/UpdateAuthMethodAzureAD.md +3 -1
  54. data/docs/UpdateAuthMethodCert.md +2 -0
  55. data/docs/UpdateAuthMethodGCP.md +2 -0
  56. data/docs/UpdateAuthMethodK8S.md +2 -0
  57. data/docs/UpdateAuthMethodLDAP.md +2 -0
  58. data/docs/UpdateAuthMethodOAuth2.md +2 -0
  59. data/docs/UpdateAuthMethodOIDC.md +2 -0
  60. data/docs/UpdateAuthMethodSAML.md +2 -0
  61. data/docs/UpdateAuthMethodUniversalIdentity.md +2 -0
  62. data/docs/UpdateCertificateValue.md +2 -0
  63. data/docs/UpdateItem.md +6 -0
  64. data/docs/UpdateLinkedTarget.md +2 -0
  65. data/docs/UpdateRole.md +4 -0
  66. data/docs/UpdateSSHCertIssuer.md +3 -3
  67. data/docs/UpdateSecretVal.md +2 -0
  68. data/docs/V2Api.md +138 -9
  69. data/docs/VerifyEcDsa.md +5 -1
  70. data/docs/VerifyPKCS1.md +9 -1
  71. data/docs/VerifyRsaSsaPss.md +5 -1
  72. data/lib/akeyless/api/v2_api.rb +146 -7
  73. data/lib/akeyless/models/assoc_target_item.rb +43 -1
  74. data/lib/akeyless/models/auth_method.rb +10 -1
  75. data/lib/akeyless/models/certificate_chain_info.rb +19 -1
  76. data/lib/akeyless/models/certificate_version_info.rb +232 -0
  77. data/lib/akeyless/models/connect.rb +1 -1
  78. data/lib/akeyless/models/create_auth_method.rb +11 -1
  79. data/lib/akeyless/models/create_auth_method_awsiam.rb +11 -1
  80. data/lib/akeyless/models/create_auth_method_azure_ad.rb +12 -2
  81. data/lib/akeyless/models/create_auth_method_cert.rb +11 -1
  82. data/lib/akeyless/models/create_auth_method_email.rb +11 -1
  83. data/lib/akeyless/models/create_auth_method_gcp.rb +11 -1
  84. data/lib/akeyless/models/create_auth_method_huawei.rb +11 -1
  85. data/lib/akeyless/models/create_auth_method_k8_s.rb +11 -1
  86. data/lib/akeyless/models/create_auth_method_ldap.rb +11 -1
  87. data/lib/akeyless/models/create_auth_method_o_auth2.rb +11 -1
  88. data/lib/akeyless/models/create_auth_method_oidc.rb +11 -1
  89. data/lib/akeyless/models/create_auth_method_saml.rb +11 -1
  90. data/lib/akeyless/models/create_auth_method_universal_identity.rb +11 -1
  91. data/lib/akeyless/models/create_event_forwarder.rb +1 -1
  92. data/lib/akeyless/models/create_linked_target.rb +11 -1
  93. data/lib/akeyless/models/create_role.rb +21 -1
  94. data/lib/akeyless/models/create_rotated_secret.rb +35 -2
  95. data/lib/akeyless/models/create_secret.rb +11 -1
  96. data/lib/akeyless/models/create_ssh_cert_issuer.rb +9 -9
  97. data/lib/akeyless/models/gateway_create_migration.rb +11 -1
  98. data/lib/akeyless/models/gateway_create_producer_cassandra.rb +23 -1
  99. data/lib/akeyless/models/gateway_update_item.rb +11 -1
  100. data/lib/akeyless/models/gateway_update_migration.rb +11 -1
  101. data/lib/akeyless/models/gateway_update_producer_cassandra.rb +23 -1
  102. data/lib/akeyless/models/generate_csr.rb +1 -1
  103. data/lib/akeyless/models/gw_cluster_identity.rb +10 -1
  104. data/lib/akeyless/models/import_passwords.rb +13 -4
  105. data/lib/akeyless/models/import_passwords_output.rb +13 -4
  106. data/lib/akeyless/models/item_version.rb +10 -1
  107. data/lib/akeyless/models/provision_certificate.rb +275 -0
  108. data/lib/akeyless/models/provision_certificate_output.rb +243 -0
  109. data/lib/akeyless/models/renew_certificate.rb +267 -0
  110. data/lib/akeyless/models/renew_certificate_output.rb +259 -0
  111. data/lib/akeyless/models/secure_remote_access.rb +12 -1
  112. data/lib/akeyless/models/server_inventory_payload.rb +12 -1
  113. data/lib/akeyless/models/set_role_rule.rb +1 -1
  114. data/lib/akeyless/models/sign_data_with_classic_key.rb +13 -1
  115. data/lib/akeyless/models/sign_ec_dsa.rb +24 -4
  116. data/lib/akeyless/models/sign_pkcs1.rb +44 -4
  117. data/lib/akeyless/models/sign_pkcs1_output.rb +2 -4
  118. data/lib/akeyless/models/sign_rsa_ssa_pss.rb +24 -4
  119. data/lib/akeyless/models/static_secret_details_info.rb +10 -1
  120. data/lib/akeyless/models/target_item_version.rb +10 -1
  121. data/lib/akeyless/models/update_auth_method.rb +11 -1
  122. data/lib/akeyless/models/update_auth_method_awsiam.rb +11 -1
  123. data/lib/akeyless/models/update_auth_method_azure_ad.rb +12 -2
  124. data/lib/akeyless/models/update_auth_method_cert.rb +11 -1
  125. data/lib/akeyless/models/update_auth_method_gcp.rb +11 -1
  126. data/lib/akeyless/models/update_auth_method_k8_s.rb +11 -1
  127. data/lib/akeyless/models/update_auth_method_ldap.rb +11 -1
  128. data/lib/akeyless/models/update_auth_method_o_auth2.rb +11 -1
  129. data/lib/akeyless/models/update_auth_method_oidc.rb +11 -1
  130. data/lib/akeyless/models/update_auth_method_saml.rb +11 -1
  131. data/lib/akeyless/models/update_auth_method_universal_identity.rb +11 -1
  132. data/lib/akeyless/models/update_certificate_value.rb +11 -1
  133. data/lib/akeyless/models/update_item.rb +32 -1
  134. data/lib/akeyless/models/update_linked_target.rb +11 -1
  135. data/lib/akeyless/models/update_role.rb +21 -1
  136. data/lib/akeyless/models/update_secret_val.rb +11 -1
  137. data/lib/akeyless/models/update_ssh_cert_issuer.rb +8 -8
  138. data/lib/akeyless/models/verify_ec_dsa.rb +24 -4
  139. data/lib/akeyless/models/verify_pkcs1.rb +44 -4
  140. data/lib/akeyless/models/verify_rsa_ssa_pss.rb +24 -4
  141. data/lib/akeyless/version.rb +1 -1
  142. data/lib/akeyless.rb +5 -0
  143. data/spec/models/certificate_version_info_spec.rb +48 -0
  144. data/spec/models/provision_certificate_output_spec.rb +54 -0
  145. data/spec/models/provision_certificate_spec.rb +66 -0
  146. data/spec/models/renew_certificate_output_spec.rb +66 -0
  147. data/spec/models/renew_certificate_spec.rb +66 -0
  148. metadata +23 -3
@@ -33,6 +33,9 @@ module Akeyless
33
33
  # The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
34
34
  attr_accessor :key
35
35
 
36
+ # The last version number before the update
37
+ attr_accessor :last_version
38
+
36
39
  # The provided value is a multiline value (separated by '\\n')
37
40
  attr_accessor :multiline
38
41
 
@@ -66,6 +69,7 @@ module Akeyless
66
69
  :'json' => :'json',
67
70
  :'keep_prev_version' => :'keep-prev-version',
68
71
  :'key' => :'key',
72
+ :'last_version' => :'last-version',
69
73
  :'multiline' => :'multiline',
70
74
  :'name' => :'name',
71
75
  :'new_version' => :'new-version',
@@ -91,6 +95,7 @@ module Akeyless
91
95
  :'json' => :'Boolean',
92
96
  :'keep_prev_version' => :'String',
93
97
  :'key' => :'String',
98
+ :'last_version' => :'Integer',
94
99
  :'multiline' => :'Boolean',
95
100
  :'name' => :'String',
96
101
  :'new_version' => :'Boolean',
@@ -155,6 +160,10 @@ module Akeyless
155
160
  self.key = attributes[:'key']
156
161
  end
157
162
 
163
+ if attributes.key?(:'last_version')
164
+ self.last_version = attributes[:'last_version']
165
+ end
166
+
158
167
  if attributes.key?(:'multiline')
159
168
  self.multiline = attributes[:'multiline']
160
169
  end
@@ -228,6 +237,7 @@ module Akeyless
228
237
  json == o.json &&
229
238
  keep_prev_version == o.keep_prev_version &&
230
239
  key == o.key &&
240
+ last_version == o.last_version &&
231
241
  multiline == o.multiline &&
232
242
  name == o.name &&
233
243
  new_version == o.new_version &&
@@ -247,7 +257,7 @@ module Akeyless
247
257
  # Calculates hash code according to all attributes.
248
258
  # @return [Integer] Hash code
249
259
  def hash
250
- [accessibility, custom_field, inject_url, json, keep_prev_version, key, multiline, name, new_version, password, token, uid_token, username, value].hash
260
+ [accessibility, custom_field, inject_url, json, keep_prev_version, key, last_version, multiline, name, new_version, password, token, uid_token, username, value].hash
251
261
  end
252
262
 
253
263
  # Builds the object from hash
@@ -15,7 +15,7 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class UpdateSSHCertIssuer
18
- attr_accessor :ssh_cert_issuer_host_provider
18
+ attr_accessor :provider_type
19
19
 
20
20
  # List of the new tags that will be attached to this item
21
21
  attr_accessor :add_tag
@@ -32,7 +32,7 @@ module Akeyless
32
32
  # Signed certificates with extensions, e.g permit-port-forwarding=\\\"\\\"
33
33
  attr_accessor :extensions
34
34
 
35
- # Host provider type [explicit/target]
35
+ # Host provider type [explicit/target], Relevant only for Secure Remote Access of ssh cert issuer and ldap rotated secret
36
36
  attr_accessor :host_provider
37
37
 
38
38
  # Set output format to JSON
@@ -86,7 +86,7 @@ module Akeyless
86
86
  # Attribute mapping from ruby-style variable name to JSON key.
87
87
  def self.attribute_map
88
88
  {
89
- :'ssh_cert_issuer_host_provider' => :'SshCertIssuerHostProvider',
89
+ :'provider_type' => :'ProviderType',
90
90
  :'add_tag' => :'add-tag',
91
91
  :'allowed_users' => :'allowed-users',
92
92
  :'delete_protection' => :'delete_protection',
@@ -120,7 +120,7 @@ module Akeyless
120
120
  # Attribute type mapping.
121
121
  def self.openapi_types
122
122
  {
123
- :'ssh_cert_issuer_host_provider' => :'String',
123
+ :'provider_type' => :'String',
124
124
  :'add_tag' => :'Array<String>',
125
125
  :'allowed_users' => :'String',
126
126
  :'delete_protection' => :'String',
@@ -167,8 +167,8 @@ module Akeyless
167
167
  h[k.to_sym] = v
168
168
  }
169
169
 
170
- if attributes.key?(:'ssh_cert_issuer_host_provider')
171
- self.ssh_cert_issuer_host_provider = attributes[:'ssh_cert_issuer_host_provider']
170
+ if attributes.key?(:'provider_type')
171
+ self.provider_type = attributes[:'provider_type']
172
172
  end
173
173
 
174
174
  if attributes.key?(:'add_tag')
@@ -320,7 +320,7 @@ module Akeyless
320
320
  def ==(o)
321
321
  return true if self.equal?(o)
322
322
  self.class == o.class &&
323
- ssh_cert_issuer_host_provider == o.ssh_cert_issuer_host_provider &&
323
+ provider_type == o.provider_type &&
324
324
  add_tag == o.add_tag &&
325
325
  allowed_users == o.allowed_users &&
326
326
  delete_protection == o.delete_protection &&
@@ -354,7 +354,7 @@ module Akeyless
354
354
  # Calculates hash code according to all attributes.
355
355
  # @return [Integer] Hash code
356
356
  def hash
357
- [ssh_cert_issuer_host_provider, add_tag, allowed_users, delete_protection, description, extensions, host_provider, json, metadata, name, new_name, principals, rm_tag, secure_access_bastion_api, secure_access_bastion_ssh, secure_access_enable, secure_access_host, secure_access_ssh_creds_user, secure_access_use_internal_bastion, signer_key_name, token, ttl, uid_token].hash
357
+ [provider_type, add_tag, allowed_users, delete_protection, description, extensions, host_provider, json, metadata, name, new_name, principals, rm_tag, secure_access_bastion_api, secure_access_bastion_ssh, secure_access_enable, secure_access_host, secure_access_ssh_creds_user, secure_access_use_internal_bastion, signer_key_name, token, ttl, uid_token].hash
358
358
  end
359
359
 
360
360
  # Builds the object from hash
@@ -31,6 +31,9 @@ module Akeyless
31
31
  # The message to be verified in a base64 format
32
32
  attr_accessor :message
33
33
 
34
+ # Markes that the message is already hashed
35
+ attr_accessor :prehashed
36
+
34
37
  # The message's signature
35
38
  attr_accessor :signature
36
39
 
@@ -40,6 +43,9 @@ module Akeyless
40
43
  # The universal identity token, Required only for universal_identity authentication
41
44
  attr_accessor :uid_token
42
45
 
46
+ # The version of the key to use for verification
47
+ attr_accessor :version
48
+
43
49
  # Attribute mapping from ruby-style variable name to JSON key.
44
50
  def self.attribute_map
45
51
  {
@@ -48,9 +54,11 @@ module Akeyless
48
54
  :'json' => :'json',
49
55
  :'key_name' => :'key-name',
50
56
  :'message' => :'message',
57
+ :'prehashed' => :'prehashed',
51
58
  :'signature' => :'signature',
52
59
  :'token' => :'token',
53
- :'uid_token' => :'uid-token'
60
+ :'uid_token' => :'uid-token',
61
+ :'version' => :'version'
54
62
  }
55
63
  end
56
64
 
@@ -67,9 +75,11 @@ module Akeyless
67
75
  :'json' => :'Boolean',
68
76
  :'key_name' => :'String',
69
77
  :'message' => :'String',
78
+ :'prehashed' => :'Boolean',
70
79
  :'signature' => :'String',
71
80
  :'token' => :'String',
72
- :'uid_token' => :'String'
81
+ :'uid_token' => :'String',
82
+ :'version' => :'Integer'
73
83
  }
74
84
  end
75
85
 
@@ -118,6 +128,10 @@ module Akeyless
118
128
  self.message = nil
119
129
  end
120
130
 
131
+ if attributes.key?(:'prehashed')
132
+ self.prehashed = attributes[:'prehashed']
133
+ end
134
+
121
135
  if attributes.key?(:'signature')
122
136
  self.signature = attributes[:'signature']
123
137
  else
@@ -131,6 +145,10 @@ module Akeyless
131
145
  if attributes.key?(:'uid_token')
132
146
  self.uid_token = attributes[:'uid_token']
133
147
  end
148
+
149
+ if attributes.key?(:'version')
150
+ self.version = attributes[:'version']
151
+ end
134
152
  end
135
153
 
136
154
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -168,9 +186,11 @@ module Akeyless
168
186
  json == o.json &&
169
187
  key_name == o.key_name &&
170
188
  message == o.message &&
189
+ prehashed == o.prehashed &&
171
190
  signature == o.signature &&
172
191
  token == o.token &&
173
- uid_token == o.uid_token
192
+ uid_token == o.uid_token &&
193
+ version == o.version
174
194
  end
175
195
 
176
196
  # @see the `==` method
@@ -182,7 +202,7 @@ module Akeyless
182
202
  # Calculates hash code according to all attributes.
183
203
  # @return [Integer] Hash code
184
204
  def hash
185
- [display_id, item_id, json, key_name, message, signature, token, uid_token].hash
205
+ [display_id, item_id, json, key_name, message, prehashed, signature, token, uid_token, version].hash
186
206
  end
187
207
 
188
208
  # Builds the object from hash
@@ -18,6 +18,12 @@ module Akeyless
18
18
  # The display id of the key to use in the verification process
19
19
  attr_accessor :display_id
20
20
 
21
+ # HashFunction defines the hash function (e.g. sha-256)
22
+ attr_accessor :hash_function
23
+
24
+ # Select default assumed format for the plaintext message. Currently supported options: [base64]
25
+ attr_accessor :input_format
26
+
21
27
  # The item id of the key to use in the verification process
22
28
  attr_accessor :item_id
23
29
 
@@ -30,6 +36,9 @@ module Akeyless
30
36
  # The message to be verified
31
37
  attr_accessor :message
32
38
 
39
+ # Markes that the message is already hashed
40
+ attr_accessor :prehashed
41
+
33
42
  # The message's signature
34
43
  attr_accessor :signature
35
44
 
@@ -39,17 +48,24 @@ module Akeyless
39
48
  # The universal identity token, Required only for universal_identity authentication
40
49
  attr_accessor :uid_token
41
50
 
51
+ # The version of the key to use for verification
52
+ attr_accessor :version
53
+
42
54
  # Attribute mapping from ruby-style variable name to JSON key.
43
55
  def self.attribute_map
44
56
  {
45
57
  :'display_id' => :'display-id',
58
+ :'hash_function' => :'hash-function',
59
+ :'input_format' => :'input-format',
46
60
  :'item_id' => :'item-id',
47
61
  :'json' => :'json',
48
62
  :'key_name' => :'key-name',
49
63
  :'message' => :'message',
64
+ :'prehashed' => :'prehashed',
50
65
  :'signature' => :'signature',
51
66
  :'token' => :'token',
52
- :'uid_token' => :'uid-token'
67
+ :'uid_token' => :'uid-token',
68
+ :'version' => :'version'
53
69
  }
54
70
  end
55
71
 
@@ -62,13 +78,17 @@ module Akeyless
62
78
  def self.openapi_types
63
79
  {
64
80
  :'display_id' => :'String',
81
+ :'hash_function' => :'String',
82
+ :'input_format' => :'String',
65
83
  :'item_id' => :'Integer',
66
84
  :'json' => :'Boolean',
67
85
  :'key_name' => :'String',
68
86
  :'message' => :'String',
87
+ :'prehashed' => :'Boolean',
69
88
  :'signature' => :'String',
70
89
  :'token' => :'String',
71
- :'uid_token' => :'String'
90
+ :'uid_token' => :'String',
91
+ :'version' => :'Integer'
72
92
  }
73
93
  end
74
94
 
@@ -97,6 +117,14 @@ module Akeyless
97
117
  self.display_id = attributes[:'display_id']
98
118
  end
99
119
 
120
+ if attributes.key?(:'hash_function')
121
+ self.hash_function = attributes[:'hash_function']
122
+ end
123
+
124
+ if attributes.key?(:'input_format')
125
+ self.input_format = attributes[:'input_format']
126
+ end
127
+
100
128
  if attributes.key?(:'item_id')
101
129
  self.item_id = attributes[:'item_id']
102
130
  end
@@ -119,6 +147,10 @@ module Akeyless
119
147
  self.message = nil
120
148
  end
121
149
 
150
+ if attributes.key?(:'prehashed')
151
+ self.prehashed = attributes[:'prehashed']
152
+ end
153
+
122
154
  if attributes.key?(:'signature')
123
155
  self.signature = attributes[:'signature']
124
156
  else
@@ -132,6 +164,10 @@ module Akeyless
132
164
  if attributes.key?(:'uid_token')
133
165
  self.uid_token = attributes[:'uid_token']
134
166
  end
167
+
168
+ if attributes.key?(:'version')
169
+ self.version = attributes[:'version']
170
+ end
135
171
  end
136
172
 
137
173
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -170,13 +206,17 @@ module Akeyless
170
206
  return true if self.equal?(o)
171
207
  self.class == o.class &&
172
208
  display_id == o.display_id &&
209
+ hash_function == o.hash_function &&
210
+ input_format == o.input_format &&
173
211
  item_id == o.item_id &&
174
212
  json == o.json &&
175
213
  key_name == o.key_name &&
176
214
  message == o.message &&
215
+ prehashed == o.prehashed &&
177
216
  signature == o.signature &&
178
217
  token == o.token &&
179
- uid_token == o.uid_token
218
+ uid_token == o.uid_token &&
219
+ version == o.version
180
220
  end
181
221
 
182
222
  # @see the `==` method
@@ -188,7 +228,7 @@ module Akeyless
188
228
  # Calculates hash code according to all attributes.
189
229
  # @return [Integer] Hash code
190
230
  def hash
191
- [display_id, item_id, json, key_name, message, signature, token, uid_token].hash
231
+ [display_id, hash_function, input_format, item_id, json, key_name, message, prehashed, signature, token, uid_token, version].hash
192
232
  end
193
233
 
194
234
  # Builds the object from hash
@@ -34,6 +34,9 @@ module Akeyless
34
34
  # The input message to verify in a base64 format
35
35
  attr_accessor :message
36
36
 
37
+ # Markes that the message is already hashed
38
+ attr_accessor :prehashed
39
+
37
40
  # The message's signature
38
41
  attr_accessor :signature
39
42
 
@@ -43,6 +46,9 @@ module Akeyless
43
46
  # The universal identity token, Required only for universal_identity authentication
44
47
  attr_accessor :uid_token
45
48
 
49
+ # The version of the key to use for verification
50
+ attr_accessor :version
51
+
46
52
  # Attribute mapping from ruby-style variable name to JSON key.
47
53
  def self.attribute_map
48
54
  {
@@ -52,9 +58,11 @@ module Akeyless
52
58
  :'json' => :'json',
53
59
  :'key_name' => :'key-name',
54
60
  :'message' => :'message',
61
+ :'prehashed' => :'prehashed',
55
62
  :'signature' => :'signature',
56
63
  :'token' => :'token',
57
- :'uid_token' => :'uid-token'
64
+ :'uid_token' => :'uid-token',
65
+ :'version' => :'version'
58
66
  }
59
67
  end
60
68
 
@@ -72,9 +80,11 @@ module Akeyless
72
80
  :'json' => :'Boolean',
73
81
  :'key_name' => :'String',
74
82
  :'message' => :'String',
83
+ :'prehashed' => :'Boolean',
75
84
  :'signature' => :'String',
76
85
  :'token' => :'String',
77
- :'uid_token' => :'String'
86
+ :'uid_token' => :'String',
87
+ :'version' => :'Integer'
78
88
  }
79
89
  end
80
90
 
@@ -127,6 +137,10 @@ module Akeyless
127
137
  self.message = nil
128
138
  end
129
139
 
140
+ if attributes.key?(:'prehashed')
141
+ self.prehashed = attributes[:'prehashed']
142
+ end
143
+
130
144
  if attributes.key?(:'signature')
131
145
  self.signature = attributes[:'signature']
132
146
  else
@@ -140,6 +154,10 @@ module Akeyless
140
154
  if attributes.key?(:'uid_token')
141
155
  self.uid_token = attributes[:'uid_token']
142
156
  end
157
+
158
+ if attributes.key?(:'version')
159
+ self.version = attributes[:'version']
160
+ end
143
161
  end
144
162
 
145
163
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -178,9 +196,11 @@ module Akeyless
178
196
  json == o.json &&
179
197
  key_name == o.key_name &&
180
198
  message == o.message &&
199
+ prehashed == o.prehashed &&
181
200
  signature == o.signature &&
182
201
  token == o.token &&
183
- uid_token == o.uid_token
202
+ uid_token == o.uid_token &&
203
+ version == o.version
184
204
  end
185
205
 
186
206
  # @see the `==` method
@@ -192,7 +212,7 @@ module Akeyless
192
212
  # Calculates hash code according to all attributes.
193
213
  # @return [Integer] Hash code
194
214
  def hash
195
- [display_id, hash_function, item_id, json, key_name, message, signature, token, uid_token].hash
215
+ [display_id, hash_function, item_id, json, key_name, message, prehashed, signature, token, uid_token, version].hash
196
216
  end
197
217
 
198
218
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 7.3.0-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module Akeyless
14
- VERSION = '3.5.4'
14
+ VERSION = '3.6.0'
15
15
  end
data/lib/akeyless.rb CHANGED
@@ -58,6 +58,7 @@ require 'akeyless/models/certificate_expiration_event'
58
58
  require 'akeyless/models/certificate_info'
59
59
  require 'akeyless/models/certificate_issue_info'
60
60
  require 'akeyless/models/certificate_template_info'
61
+ require 'akeyless/models/certificate_version_info'
61
62
  require 'akeyless/models/cf_info'
62
63
  require 'akeyless/models/chef_target_details'
63
64
  require 'akeyless/models/classic_key_details_info'
@@ -549,11 +550,15 @@ require 'akeyless/models/path_rule'
549
550
  require 'akeyless/models/ping_target_details'
550
551
  require 'akeyless/models/producer'
551
552
  require 'akeyless/models/producers_config_part'
553
+ require 'akeyless/models/provision_certificate'
554
+ require 'akeyless/models/provision_certificate_output'
552
555
  require 'akeyless/models/rabbit_mq_target_details'
553
556
  require 'akeyless/models/raw_creds'
554
557
  require 'akeyless/models/refresh_key'
555
558
  require 'akeyless/models/refresh_key_output'
556
559
  require 'akeyless/models/regexp_tokenizer_info'
560
+ require 'akeyless/models/renew_certificate'
561
+ require 'akeyless/models/renew_certificate_output'
557
562
  require 'akeyless/models/request_access'
558
563
  require 'akeyless/models/request_access_output'
559
564
  require 'akeyless/models/required_activity'
@@ -0,0 +1,48 @@
1
+ =begin
2
+ #Akeyless API
3
+
4
+ #The purpose of this application is to provide access to Akeyless API.
5
+
6
+ The version of the OpenAPI document: 2.0
7
+ Contact: support@akeyless.io
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.3.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Akeyless::CertificateVersionInfo
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Akeyless::CertificateVersionInfo do
21
+ let(:instance) { Akeyless::CertificateVersionInfo.new }
22
+
23
+ describe 'test an instance of CertificateVersionInfo' do
24
+ it 'should create an instance of CertificateVersionInfo' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Akeyless::CertificateVersionInfo)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "not_after"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "not_before"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "status"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ end
@@ -0,0 +1,54 @@
1
+ =begin
2
+ #Akeyless API
3
+
4
+ #The purpose of this application is to provide access to Akeyless API.
5
+
6
+ The version of the OpenAPI document: 2.0
7
+ Contact: support@akeyless.io
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.3.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Akeyless::ProvisionCertificateOutput
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Akeyless::ProvisionCertificateOutput do
21
+ let(:instance) { Akeyless::ProvisionCertificateOutput.new }
22
+
23
+ describe 'test an instance of ProvisionCertificateOutput' do
24
+ it 'should create an instance of ProvisionCertificateOutput' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Akeyless::ProvisionCertificateOutput)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "fail_message"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "success_message"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "host_names"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ describe 'test attribute "provisioned_at"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ end
52
+ end
53
+
54
+ end
@@ -0,0 +1,66 @@
1
+ =begin
2
+ #Akeyless API
3
+
4
+ #The purpose of this application is to provide access to Akeyless API.
5
+
6
+ The version of the OpenAPI document: 2.0
7
+ Contact: support@akeyless.io
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.3.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Akeyless::ProvisionCertificate
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Akeyless::ProvisionCertificate do
21
+ let(:instance) { Akeyless::ProvisionCertificate.new }
22
+
23
+ describe 'test an instance of ProvisionCertificate' do
24
+ it 'should create an instance of ProvisionCertificate' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Akeyless::ProvisionCertificate)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "display_id"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "item_id"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "json"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ describe 'test attribute "name"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ end
52
+ end
53
+
54
+ describe 'test attribute "token"' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ end
58
+ end
59
+
60
+ describe 'test attribute "uid_token"' do
61
+ it 'should work' do
62
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
63
+ end
64
+ end
65
+
66
+ end