akeyless 5.0.21 → 5.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +35 -1
  3. data/docs/AccountGeneralSettings.md +6 -0
  4. data/docs/ActiveDirectoryPayload.md +6 -0
  5. data/docs/Auth.md +2 -0
  6. data/docs/AuthMethodCreateCert.md +2 -0
  7. data/docs/AuthMethodCreateUniversalIdentity.md +4 -0
  8. data/docs/AuthMethodUpdateCert.md +2 -0
  9. data/docs/AuthMethodUpdateUniversalIdentity.md +4 -0
  10. data/docs/AwsStorage.md +2 -0
  11. data/docs/AzureADAccessRules.md +2 -0
  12. data/docs/AzureTargetDetails.md +2 -0
  13. data/docs/CertAccessRules.md +2 -0
  14. data/docs/CertificateChainInfo.md +2 -0
  15. data/docs/Configure.md +2 -0
  16. data/docs/ConjurMigration.md +20 -0
  17. data/docs/ConjurPayload.md +24 -0
  18. data/docs/CreateAuthMethodCert.md +2 -0
  19. data/docs/CreateAuthMethodUniversalIdentity.md +4 -0
  20. data/docs/CreateAzureTarget.md +2 -0
  21. data/docs/CreateRotatedSecret.md +3 -1
  22. data/docs/CreateSecret.md +2 -0
  23. data/docs/CreateUSC.md +10 -0
  24. data/docs/DSProducerDetails.md +2 -0
  25. data/docs/DefaultAuthMethodSettings.md +20 -0
  26. data/docs/DeleteRoleRule.md +1 -1
  27. data/docs/DescribePermissions.md +1 -1
  28. data/docs/DigiCertTargetDetails.md +42 -0
  29. data/docs/EsmListSecretsOutput.md +3 -1
  30. data/docs/GatewayCreateMigration.md +19 -1
  31. data/docs/GatewayUpdateMigration.md +18 -0
  32. data/docs/GatewayUpdateRemoteAccessRdpRecordings.md +2 -0
  33. data/docs/GeneralConfigPart.md +4 -0
  34. data/docs/GetPKICertificateOutput.md +2 -0
  35. data/docs/GithubMetadata.md +28 -0
  36. data/docs/GoogleTrustTargetDetails.md +42 -0
  37. data/docs/HTTPChallengeInfo.md +26 -0
  38. data/docs/HashiPayload.md +5 -1
  39. data/docs/IssuerOverviewInfo.md +22 -0
  40. data/docs/Item.md +2 -0
  41. data/docs/ItemGeneralInfo.md +2 -0
  42. data/docs/ItemLockingSetting.md +20 -0
  43. data/docs/LockItem.md +28 -0
  44. data/docs/LockTarget.md +28 -0
  45. data/docs/LockingInfo.md +24 -0
  46. data/docs/MigrationStatusReplyObj.md +4 -0
  47. data/docs/MigrationsConfigPart.md +2 -0
  48. data/docs/NetappStorage.md +30 -0
  49. data/docs/ReverseRBAC.md +1 -1
  50. data/docs/RotatedSecretCreateAws.md +3 -1
  51. data/docs/RotatedSecretCreateAzure.md +3 -1
  52. data/docs/RotatedSecretCreateCustom.md +3 -1
  53. data/docs/RotatedSecretCreateLdap.md +3 -1
  54. data/docs/RotatedSecretCreateMongodb.md +3 -1
  55. data/docs/RotatedSecretCreateMssql.md +3 -1
  56. data/docs/RotatedSecretCreateMysql.md +3 -1
  57. data/docs/RotatedSecretCreateOracledb.md +3 -1
  58. data/docs/RotatedSecretCreatePostgresql.md +3 -1
  59. data/docs/RotatedSecretCreateRedshift.md +3 -1
  60. data/docs/RotatedSecretCreateSsh.md +3 -1
  61. data/docs/RotatedSecretCreateWindows.md +3 -1
  62. data/docs/RotatedSecretUpdateAws.md +3 -1
  63. data/docs/RotatedSecretUpdateAzure.md +3 -1
  64. data/docs/RotatedSecretUpdateCustom.md +3 -1
  65. data/docs/RotatedSecretUpdateLdap.md +3 -1
  66. data/docs/RotatedSecretUpdateMongodb.md +3 -1
  67. data/docs/RotatedSecretUpdateMssql.md +3 -1
  68. data/docs/RotatedSecretUpdateMysql.md +3 -1
  69. data/docs/RotatedSecretUpdateOracledb.md +3 -1
  70. data/docs/RotatedSecretUpdatePostgresql.md +3 -1
  71. data/docs/RotatedSecretUpdateRedshift.md +3 -1
  72. data/docs/RotatedSecretUpdateSsh.md +3 -1
  73. data/docs/RotatedSecretUpdateWindows.md +3 -1
  74. data/docs/SecretInfo.md +4 -0
  75. data/docs/SecureRemoteAccess.md +4 -0
  76. data/docs/SetRoleRule.md +1 -1
  77. data/docs/SyncCounters.md +22 -0
  78. data/docs/Target.md +2 -0
  79. data/docs/TargetCreateAzure.md +2 -0
  80. data/docs/TargetCreateDigiCert.md +50 -0
  81. data/docs/TargetCreateGoogleTrust.md +50 -0
  82. data/docs/TargetCreateLetsEncrypt.md +1 -1
  83. data/docs/TargetCreateSplunk.md +3 -1
  84. data/docs/TargetTypeDetailsInput.md +4 -0
  85. data/docs/TargetUpdateAzure.md +2 -0
  86. data/docs/TargetUpdateDigiCert.md +54 -0
  87. data/docs/TargetUpdateGoogleTrust.md +54 -0
  88. data/docs/TargetUpdateLetsEncrypt.md +1 -1
  89. data/docs/UniversalIdentityAccessRules.md +4 -0
  90. data/docs/UnlockItem.md +24 -0
  91. data/docs/UnlockTarget.md +24 -0
  92. data/docs/UpdateAccountSettings.md +4 -0
  93. data/docs/UpdateAuthMethodCert.md +2 -0
  94. data/docs/UpdateAuthMethodUniversalIdentity.md +4 -0
  95. data/docs/UpdateAzureTarget.md +2 -0
  96. data/docs/UpdateItem.md +3 -1
  97. data/docs/UpdateRotatedSecret.md +3 -1
  98. data/docs/UscCreate.md +2 -0
  99. data/docs/UscDelete.md +4 -0
  100. data/docs/UscGet.md +4 -0
  101. data/docs/UscListSecretsOutput.md +3 -1
  102. data/docs/UscUpdate.md +4 -0
  103. data/docs/V2Api.md +632 -2
  104. data/docs/ValidateCertificateChallenge.md +30 -0
  105. data/docs/ValidateCertificateChallengeOutput.md +24 -0
  106. data/docs/VaultAddress.md +20 -0
  107. data/docs/VaultAddressOutput.md +20 -0
  108. data/docs/WebBastionRdpRecord.md +2 -0
  109. data/lib/akeyless/api/v2_api.rb +640 -0
  110. data/lib/akeyless/models/account_general_settings.rb +28 -1
  111. data/lib/akeyless/models/active_directory_payload.rb +30 -1
  112. data/lib/akeyless/models/auth.rb +13 -1
  113. data/lib/akeyless/models/auth_method_create_cert.rb +11 -1
  114. data/lib/akeyless/models/auth_method_create_universal_identity.rb +25 -1
  115. data/lib/akeyless/models/auth_method_update_cert.rb +11 -1
  116. data/lib/akeyless/models/auth_method_update_universal_identity.rb +25 -1
  117. data/lib/akeyless/models/aws_storage.rb +10 -1
  118. data/lib/akeyless/models/azure_ad_access_rules.rb +11 -1
  119. data/lib/akeyless/models/azure_target_details.rb +10 -1
  120. data/lib/akeyless/models/cert_access_rules.rb +11 -1
  121. data/lib/akeyless/models/certificate_chain_info.rb +11 -1
  122. data/lib/akeyless/models/configure.rb +13 -1
  123. data/lib/akeyless/models/conjur_migration.rb +223 -0
  124. data/lib/akeyless/models/conjur_payload.rb +241 -0
  125. data/lib/akeyless/models/create_auth_method_cert.rb +11 -1
  126. data/lib/akeyless/models/create_auth_method_universal_identity.rb +25 -1
  127. data/lib/akeyless/models/create_azure_target.rb +13 -1
  128. data/lib/akeyless/models/create_rotated_secret.rb +12 -4
  129. data/lib/akeyless/models/create_secret.rb +11 -1
  130. data/lib/akeyless/models/create_usc.rb +54 -1
  131. data/lib/akeyless/models/default_auth_method_settings.rb +223 -0
  132. data/lib/akeyless/models/delete_role_rule.rb +1 -1
  133. data/lib/akeyless/models/describe_permissions.rb +1 -1
  134. data/lib/akeyless/models/digi_cert_target_details.rb +333 -0
  135. data/lib/akeyless/models/ds_producer_details.rb +10 -1
  136. data/lib/akeyless/models/esm_list_secrets_output.rb +15 -4
  137. data/lib/akeyless/models/gateway_create_migration.rb +94 -2
  138. data/lib/akeyless/models/gateway_update_migration.rb +93 -1
  139. data/lib/akeyless/models/gateway_update_remote_access_rdp_recordings.rb +11 -1
  140. data/lib/akeyless/models/general_config_part.rb +19 -1
  141. data/lib/akeyless/models/get_pki_certificate_output.rb +10 -1
  142. data/lib/akeyless/models/github_metadata.rb +259 -0
  143. data/lib/akeyless/models/google_trust_target_details.rb +335 -0
  144. data/lib/akeyless/models/hashi_payload.rb +22 -4
  145. data/lib/akeyless/models/http_challenge_info.rb +251 -0
  146. data/lib/akeyless/models/issuer_overview_info.rb +232 -0
  147. data/lib/akeyless/models/item.rb +10 -1
  148. data/lib/akeyless/models/item_general_info.rb +10 -1
  149. data/lib/akeyless/models/item_locking_setting.rb +223 -0
  150. data/lib/akeyless/models/lock_item.rb +274 -0
  151. data/lib/akeyless/models/lock_target.rb +274 -0
  152. data/lib/akeyless/models/locking_info.rb +243 -0
  153. data/lib/akeyless/models/migration_status_reply_obj.rb +19 -1
  154. data/lib/akeyless/models/migrations_config_part.rb +12 -1
  155. data/lib/akeyless/models/netapp_storage.rb +268 -0
  156. data/lib/akeyless/models/reverse_rbac.rb +1 -1
  157. data/lib/akeyless/models/rotated_secret_create_aws.rb +12 -4
  158. data/lib/akeyless/models/rotated_secret_create_azure.rb +12 -4
  159. data/lib/akeyless/models/rotated_secret_create_custom.rb +12 -4
  160. data/lib/akeyless/models/rotated_secret_create_ldap.rb +12 -4
  161. data/lib/akeyless/models/rotated_secret_create_mongodb.rb +12 -4
  162. data/lib/akeyless/models/rotated_secret_create_mssql.rb +12 -4
  163. data/lib/akeyless/models/rotated_secret_create_mysql.rb +12 -4
  164. data/lib/akeyless/models/rotated_secret_create_oracledb.rb +12 -4
  165. data/lib/akeyless/models/rotated_secret_create_postgresql.rb +12 -4
  166. data/lib/akeyless/models/rotated_secret_create_redshift.rb +12 -4
  167. data/lib/akeyless/models/rotated_secret_create_ssh.rb +12 -4
  168. data/lib/akeyless/models/rotated_secret_create_windows.rb +12 -4
  169. data/lib/akeyless/models/rotated_secret_update_aws.rb +12 -4
  170. data/lib/akeyless/models/rotated_secret_update_azure.rb +12 -4
  171. data/lib/akeyless/models/rotated_secret_update_custom.rb +12 -4
  172. data/lib/akeyless/models/rotated_secret_update_ldap.rb +12 -4
  173. data/lib/akeyless/models/rotated_secret_update_mongodb.rb +12 -4
  174. data/lib/akeyless/models/rotated_secret_update_mssql.rb +12 -4
  175. data/lib/akeyless/models/rotated_secret_update_mysql.rb +12 -4
  176. data/lib/akeyless/models/rotated_secret_update_oracledb.rb +12 -4
  177. data/lib/akeyless/models/rotated_secret_update_postgresql.rb +12 -4
  178. data/lib/akeyless/models/rotated_secret_update_redshift.rb +12 -4
  179. data/lib/akeyless/models/rotated_secret_update_ssh.rb +12 -4
  180. data/lib/akeyless/models/rotated_secret_update_windows.rb +12 -4
  181. data/lib/akeyless/models/secret_info.rb +19 -1
  182. data/lib/akeyless/models/secure_remote_access.rb +19 -1
  183. data/lib/akeyless/models/set_role_rule.rb +1 -1
  184. data/lib/akeyless/models/sync_counters.rb +233 -0
  185. data/lib/akeyless/models/target.rb +10 -1
  186. data/lib/akeyless/models/target_create_azure.rb +13 -1
  187. data/lib/akeyless/models/target_create_digi_cert.rb +398 -0
  188. data/lib/akeyless/models/target_create_google_trust.rb +398 -0
  189. data/lib/akeyless/models/target_create_lets_encrypt.rb +7 -0
  190. data/lib/akeyless/models/target_create_splunk.rb +11 -1
  191. data/lib/akeyless/models/target_type_details_input.rb +19 -1
  192. data/lib/akeyless/models/target_update_azure.rb +13 -1
  193. data/lib/akeyless/models/target_update_digi_cert.rb +418 -0
  194. data/lib/akeyless/models/target_update_google_trust.rb +418 -0
  195. data/lib/akeyless/models/target_update_lets_encrypt.rb +7 -0
  196. data/lib/akeyless/models/universal_identity_access_rules.rb +19 -1
  197. data/lib/akeyless/models/unlock_item.rb +254 -0
  198. data/lib/akeyless/models/unlock_target.rb +254 -0
  199. data/lib/akeyless/models/update_account_settings.rb +21 -1
  200. data/lib/akeyless/models/update_auth_method_cert.rb +11 -1
  201. data/lib/akeyless/models/update_auth_method_universal_identity.rb +25 -1
  202. data/lib/akeyless/models/update_azure_target.rb +13 -1
  203. data/lib/akeyless/models/update_item.rb +12 -4
  204. data/lib/akeyless/models/update_rotated_secret.rb +12 -4
  205. data/lib/akeyless/models/usc_create.rb +10 -1
  206. data/lib/akeyless/models/usc_delete.rb +20 -1
  207. data/lib/akeyless/models/usc_get.rb +20 -1
  208. data/lib/akeyless/models/usc_list_secrets_output.rb +15 -4
  209. data/lib/akeyless/models/usc_update.rb +20 -1
  210. data/lib/akeyless/models/validate_certificate_challenge.rb +279 -0
  211. data/lib/akeyless/models/validate_certificate_challenge_output.rb +242 -0
  212. data/lib/akeyless/models/vault_address.rb +227 -0
  213. data/lib/akeyless/models/vault_address_output.rb +223 -0
  214. data/lib/akeyless/models/web_bastion_rdp_record.rb +10 -1
  215. data/lib/akeyless/version.rb +1 -1
  216. data/lib/akeyless.rb +24 -0
  217. data/spec/models/conjur_migration_spec.rb +42 -0
  218. data/spec/models/conjur_payload_spec.rb +54 -0
  219. data/spec/models/default_auth_method_settings_spec.rb +42 -0
  220. data/spec/models/digi_cert_target_details_spec.rb +108 -0
  221. data/spec/models/github_metadata_spec.rb +66 -0
  222. data/spec/models/google_trust_target_details_spec.rb +108 -0
  223. data/spec/models/http_challenge_info_spec.rb +60 -0
  224. data/spec/models/issuer_overview_info_spec.rb +48 -0
  225. data/spec/models/item_locking_setting_spec.rb +42 -0
  226. data/spec/models/lock_item_spec.rb +66 -0
  227. data/spec/models/lock_target_spec.rb +66 -0
  228. data/spec/models/locking_info_spec.rb +54 -0
  229. data/spec/models/netapp_storage_spec.rb +72 -0
  230. data/spec/models/sync_counters_spec.rb +48 -0
  231. data/spec/models/target_create_digi_cert_spec.rb +132 -0
  232. data/spec/models/target_create_google_trust_spec.rb +132 -0
  233. data/spec/models/target_update_digi_cert_spec.rb +144 -0
  234. data/spec/models/target_update_google_trust_spec.rb +144 -0
  235. data/spec/models/unlock_item_spec.rb +54 -0
  236. data/spec/models/unlock_target_spec.rb +54 -0
  237. data/spec/models/validate_certificate_challenge_output_spec.rb +54 -0
  238. data/spec/models/validate_certificate_challenge_spec.rb +72 -0
  239. data/spec/models/vault_address_output_spec.rb +42 -0
  240. data/spec/models/vault_address_spec.rb +42 -0
  241. metadata +1233 -1134
@@ -0,0 +1,232 @@
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: 3.0
7
+ Contact: support@akeyless.io
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Akeyless
17
+ class IssuerOverviewInfo
18
+ attr_accessor :certificate_authority_mode
19
+
20
+ attr_accessor :expiration_date
21
+
22
+ attr_accessor :key_type
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'certificate_authority_mode' => :'certificate_authority_mode',
28
+ :'expiration_date' => :'expiration_date',
29
+ :'key_type' => :'key_type'
30
+ }
31
+ end
32
+
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ attribute_map.values
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'certificate_authority_mode' => :'String',
42
+ :'expiration_date' => :'Time',
43
+ :'key_type' => :'String'
44
+ }
45
+ end
46
+
47
+ # List of attributes with nullable: true
48
+ def self.openapi_nullable
49
+ Set.new([
50
+ ])
51
+ end
52
+
53
+ # Initializes the object
54
+ # @param [Hash] attributes Model attributes in the form of hash
55
+ def initialize(attributes = {})
56
+ if (!attributes.is_a?(Hash))
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::IssuerOverviewInfo` initialize method"
58
+ end
59
+
60
+ # check to see if the attribute exists and convert string to symbol for hash key
61
+ attributes = attributes.each_with_object({}) { |(k, v), h|
62
+ if (!self.class.attribute_map.key?(k.to_sym))
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::IssuerOverviewInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
+ end
65
+ h[k.to_sym] = v
66
+ }
67
+
68
+ if attributes.key?(:'certificate_authority_mode')
69
+ self.certificate_authority_mode = attributes[:'certificate_authority_mode']
70
+ end
71
+
72
+ if attributes.key?(:'expiration_date')
73
+ self.expiration_date = attributes[:'expiration_date']
74
+ end
75
+
76
+ if attributes.key?(:'key_type')
77
+ self.key_type = attributes[:'key_type']
78
+ end
79
+ end
80
+
81
+ # Show invalid properties with the reasons. Usually used together with valid?
82
+ # @return Array for valid properties with the reasons
83
+ def list_invalid_properties
84
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
85
+ invalid_properties = Array.new
86
+ invalid_properties
87
+ end
88
+
89
+ # Check to see if the all the properties in the model are valid
90
+ # @return true if the model is valid
91
+ def valid?
92
+ warn '[DEPRECATED] the `valid?` method is obsolete'
93
+ true
94
+ end
95
+
96
+ # Checks equality by comparing each attribute.
97
+ # @param [Object] Object to be compared
98
+ def ==(o)
99
+ return true if self.equal?(o)
100
+ self.class == o.class &&
101
+ certificate_authority_mode == o.certificate_authority_mode &&
102
+ expiration_date == o.expiration_date &&
103
+ key_type == o.key_type
104
+ end
105
+
106
+ # @see the `==` method
107
+ # @param [Object] Object to be compared
108
+ def eql?(o)
109
+ self == o
110
+ end
111
+
112
+ # Calculates hash code according to all attributes.
113
+ # @return [Integer] Hash code
114
+ def hash
115
+ [certificate_authority_mode, expiration_date, key_type].hash
116
+ end
117
+
118
+ # Builds the object from hash
119
+ # @param [Hash] attributes Model attributes in the form of hash
120
+ # @return [Object] Returns the model itself
121
+ def self.build_from_hash(attributes)
122
+ return nil unless attributes.is_a?(Hash)
123
+ attributes = attributes.transform_keys(&:to_sym)
124
+ transformed_hash = {}
125
+ openapi_types.each_pair do |key, type|
126
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
127
+ transformed_hash["#{key}"] = nil
128
+ elsif type =~ /\AArray<(.*)>/i
129
+ # check to ensure the input is an array given that the attribute
130
+ # is documented as an array but the input is not
131
+ if attributes[attribute_map[key]].is_a?(Array)
132
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
133
+ end
134
+ elsif !attributes[attribute_map[key]].nil?
135
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
136
+ end
137
+ end
138
+ new(transformed_hash)
139
+ end
140
+
141
+ # Deserializes the data based on type
142
+ # @param string type Data type
143
+ # @param string value Value to be deserialized
144
+ # @return [Object] Deserialized data
145
+ def self._deserialize(type, value)
146
+ case type.to_sym
147
+ when :Time
148
+ Time.parse(value)
149
+ when :Date
150
+ Date.parse(value)
151
+ when :String
152
+ value.to_s
153
+ when :Integer
154
+ value.to_i
155
+ when :Float
156
+ value.to_f
157
+ when :Boolean
158
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
159
+ true
160
+ else
161
+ false
162
+ end
163
+ when :Object
164
+ # generic object (usually a Hash), return directly
165
+ value
166
+ when /\AArray<(?<inner_type>.+)>\z/
167
+ inner_type = Regexp.last_match[:inner_type]
168
+ value.map { |v| _deserialize(inner_type, v) }
169
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
170
+ k_type = Regexp.last_match[:k_type]
171
+ v_type = Regexp.last_match[:v_type]
172
+ {}.tap do |hash|
173
+ value.each do |k, v|
174
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
175
+ end
176
+ end
177
+ else # model
178
+ # models (e.g. Pet) or oneOf
179
+ klass = Akeyless.const_get(type)
180
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
181
+ end
182
+ end
183
+
184
+ # Returns the string representation of the object
185
+ # @return [String] String presentation of the object
186
+ def to_s
187
+ to_hash.to_s
188
+ end
189
+
190
+ # to_body is an alias to to_hash (backward compatibility)
191
+ # @return [Hash] Returns the object in the form of hash
192
+ def to_body
193
+ to_hash
194
+ end
195
+
196
+ # Returns the object in the form of hash
197
+ # @return [Hash] Returns the object in the form of hash
198
+ def to_hash
199
+ hash = {}
200
+ self.class.attribute_map.each_pair do |attr, param|
201
+ value = self.send(attr)
202
+ if value.nil?
203
+ is_nullable = self.class.openapi_nullable.include?(attr)
204
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
205
+ end
206
+
207
+ hash[param] = _to_hash(value)
208
+ end
209
+ hash
210
+ end
211
+
212
+ # Outputs non-array value in the form of hash
213
+ # For object, use to_hash. Otherwise, just return the value
214
+ # @param [Object] value Any valid value
215
+ # @return [Hash] Returns the value in the form of hash
216
+ def _to_hash(value)
217
+ if value.is_a?(Array)
218
+ value.compact.map { |v| _to_hash(v) }
219
+ elsif value.is_a?(Hash)
220
+ {}.tap do |hash|
221
+ value.each { |k, v| hash[k] = _to_hash(v) }
222
+ end
223
+ elsif value.respond_to? :to_hash
224
+ value.to_hash
225
+ else
226
+ value
227
+ end
228
+ end
229
+
230
+ end
231
+
232
+ end
@@ -82,6 +82,8 @@ module Akeyless
82
82
 
83
83
  attr_accessor :linked_details
84
84
 
85
+ attr_accessor :locking_info
86
+
85
87
  attr_accessor :modification_date
86
88
 
87
89
  attr_accessor :next_rotation_date
@@ -139,6 +141,7 @@ module Akeyless
139
141
  :'last_rotation_date' => :'last_rotation_date',
140
142
  :'last_version' => :'last_version',
141
143
  :'linked_details' => :'linked_details',
144
+ :'locking_info' => :'locking_info',
142
145
  :'modification_date' => :'modification_date',
143
146
  :'next_rotation_date' => :'next_rotation_date',
144
147
  :'protection_key_name' => :'protection_key_name',
@@ -193,6 +196,7 @@ module Akeyless
193
196
  :'last_rotation_date' => :'Time',
194
197
  :'last_version' => :'Integer',
195
198
  :'linked_details' => :'LinkedDetails',
199
+ :'locking_info' => :'LockingInfo',
196
200
  :'modification_date' => :'Time',
197
201
  :'next_rotation_date' => :'Time',
198
202
  :'protection_key_name' => :'String',
@@ -371,6 +375,10 @@ module Akeyless
371
375
  self.linked_details = attributes[:'linked_details']
372
376
  end
373
377
 
378
+ if attributes.key?(:'locking_info')
379
+ self.locking_info = attributes[:'locking_info']
380
+ end
381
+
374
382
  if attributes.key?(:'modification_date')
375
383
  self.modification_date = attributes[:'modification_date']
376
384
  end
@@ -469,6 +477,7 @@ module Akeyless
469
477
  last_rotation_date == o.last_rotation_date &&
470
478
  last_version == o.last_version &&
471
479
  linked_details == o.linked_details &&
480
+ locking_info == o.locking_info &&
472
481
  modification_date == o.modification_date &&
473
482
  next_rotation_date == o.next_rotation_date &&
474
483
  protection_key_name == o.protection_key_name &&
@@ -490,7 +499,7 @@ module Akeyless
490
499
  # Calculates hash code according to all attributes.
491
500
  # @return [Integer] Hash code
492
501
  def hash
493
- [access_date, access_date_display, access_request_status, auto_rotate, bastion_details, cert_issuer_signer_key_name, certificate_issue_details, certificates, client_permissions, creation_date, customer_fragment_id, delete_protection, deletion_date, display_id, gateway_details, is_access_request_enabled, is_enabled, item_accessibility, item_custom_fields_details, item_general_info, item_id, item_metadata, item_name, item_size, item_state, item_sub_type, item_tags, item_targets_assoc, item_type, item_versions, last_rotation_date, last_version, linked_details, modification_date, next_rotation_date, protection_key_name, protection_key_type, public_value, rotation_interval, shared_by, target_versions, usc_sync_associated_items, with_customer_fragment].hash
502
+ [access_date, access_date_display, access_request_status, auto_rotate, bastion_details, cert_issuer_signer_key_name, certificate_issue_details, certificates, client_permissions, creation_date, customer_fragment_id, delete_protection, deletion_date, display_id, gateway_details, is_access_request_enabled, is_enabled, item_accessibility, item_custom_fields_details, item_general_info, item_id, item_metadata, item_name, item_size, item_state, item_sub_type, item_tags, item_targets_assoc, item_type, item_versions, last_rotation_date, last_version, linked_details, locking_info, modification_date, next_rotation_date, protection_key_name, protection_key_type, public_value, rotation_interval, shared_by, target_versions, usc_sync_associated_items, with_customer_fragment].hash
494
503
  end
495
504
 
496
505
  # Builds the object from hash
@@ -35,6 +35,8 @@ module Akeyless
35
35
 
36
36
  attr_accessor :importer_info
37
37
 
38
+ attr_accessor :issuer_overview_info
39
+
38
40
  attr_accessor :next_rotation_events
39
41
 
40
42
  attr_accessor :oidc_client_info
@@ -62,6 +64,7 @@ module Akeyless
62
64
  :'dynamic_secret_producer_details' => :'dynamic_secret_producer_details',
63
65
  :'expiration_events' => :'expiration_events',
64
66
  :'importer_info' => :'importer_info',
67
+ :'issuer_overview_info' => :'issuer_overview_info',
65
68
  :'next_rotation_events' => :'next_rotation_events',
66
69
  :'oidc_client_info' => :'oidc_client_info',
67
70
  :'password_policy' => :'password_policy',
@@ -90,6 +93,7 @@ module Akeyless
90
93
  :'dynamic_secret_producer_details' => :'DynamicSecretProducerInfo',
91
94
  :'expiration_events' => :'Array<CertificateExpirationEvent>',
92
95
  :'importer_info' => :'ImporterInfo',
96
+ :'issuer_overview_info' => :'IssuerOverviewInfo',
93
97
  :'next_rotation_events' => :'Array<NextAutoRotationEvent>',
94
98
  :'oidc_client_info' => :'OidcClientInfo',
95
99
  :'password_policy' => :'PasswordPolicyInfo',
@@ -163,6 +167,10 @@ module Akeyless
163
167
  self.importer_info = attributes[:'importer_info']
164
168
  end
165
169
 
170
+ if attributes.key?(:'issuer_overview_info')
171
+ self.issuer_overview_info = attributes[:'issuer_overview_info']
172
+ end
173
+
166
174
  if attributes.key?(:'next_rotation_events')
167
175
  if (value = attributes[:'next_rotation_events']).is_a?(Array)
168
176
  self.next_rotation_events = value
@@ -224,6 +232,7 @@ module Akeyless
224
232
  dynamic_secret_producer_details == o.dynamic_secret_producer_details &&
225
233
  expiration_events == o.expiration_events &&
226
234
  importer_info == o.importer_info &&
235
+ issuer_overview_info == o.issuer_overview_info &&
227
236
  next_rotation_events == o.next_rotation_events &&
228
237
  oidc_client_info == o.oidc_client_info &&
229
238
  password_policy == o.password_policy &&
@@ -242,7 +251,7 @@ module Akeyless
242
251
  # Calculates hash code according to all attributes.
243
252
  # @return [Integer] Hash code
244
253
  def hash
245
- [cert_issue_details, certificate_chain_info, certificate_format, certificates_template_info, classic_key_details, cluster_gw_url, display_metadata, dynamic_secret_producer_details, expiration_events, importer_info, next_rotation_events, oidc_client_info, password_policy, rotated_secret_details, secure_remote_access_details, static_secret_info, tokenizer_info].hash
254
+ [cert_issue_details, certificate_chain_info, certificate_format, certificates_template_info, classic_key_details, cluster_gw_url, display_metadata, dynamic_secret_producer_details, expiration_events, importer_info, issuer_overview_info, next_rotation_events, oidc_client_info, password_policy, rotated_secret_details, secure_remote_access_details, static_secret_info, tokenizer_info].hash
246
255
  end
247
256
 
248
257
  # Builds the object from hash
@@ -0,0 +1,223 @@
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: 3.0
7
+ Contact: support@akeyless.io
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Akeyless
17
+ class ItemLockingSetting
18
+ attr_accessor :enable
19
+
20
+ attr_accessor :max_lock_ttl_mins
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'enable' => :'enable',
26
+ :'max_lock_ttl_mins' => :'max_lock_ttl_mins'
27
+ }
28
+ end
29
+
30
+ # Returns all the JSON keys this model knows about
31
+ def self.acceptable_attributes
32
+ attribute_map.values
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.openapi_types
37
+ {
38
+ :'enable' => :'Boolean',
39
+ :'max_lock_ttl_mins' => :'Integer'
40
+ }
41
+ end
42
+
43
+ # List of attributes with nullable: true
44
+ def self.openapi_nullable
45
+ Set.new([
46
+ ])
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::ItemLockingSetting` initialize method"
54
+ end
55
+
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h|
58
+ if (!self.class.attribute_map.key?(k.to_sym))
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::ItemLockingSetting`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ end
61
+ h[k.to_sym] = v
62
+ }
63
+
64
+ if attributes.key?(:'enable')
65
+ self.enable = attributes[:'enable']
66
+ end
67
+
68
+ if attributes.key?(:'max_lock_ttl_mins')
69
+ self.max_lock_ttl_mins = attributes[:'max_lock_ttl_mins']
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
77
+ invalid_properties = Array.new
78
+ invalid_properties
79
+ end
80
+
81
+ # Check to see if the all the properties in the model are valid
82
+ # @return true if the model is valid
83
+ def valid?
84
+ warn '[DEPRECATED] the `valid?` method is obsolete'
85
+ true
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param [Object] Object to be compared
90
+ def ==(o)
91
+ return true if self.equal?(o)
92
+ self.class == o.class &&
93
+ enable == o.enable &&
94
+ max_lock_ttl_mins == o.max_lock_ttl_mins
95
+ end
96
+
97
+ # @see the `==` method
98
+ # @param [Object] Object to be compared
99
+ def eql?(o)
100
+ self == o
101
+ end
102
+
103
+ # Calculates hash code according to all attributes.
104
+ # @return [Integer] Hash code
105
+ def hash
106
+ [enable, max_lock_ttl_mins].hash
107
+ end
108
+
109
+ # Builds the object from hash
110
+ # @param [Hash] attributes Model attributes in the form of hash
111
+ # @return [Object] Returns the model itself
112
+ def self.build_from_hash(attributes)
113
+ return nil unless attributes.is_a?(Hash)
114
+ attributes = attributes.transform_keys(&:to_sym)
115
+ transformed_hash = {}
116
+ openapi_types.each_pair do |key, type|
117
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
118
+ transformed_hash["#{key}"] = nil
119
+ elsif type =~ /\AArray<(.*)>/i
120
+ # check to ensure the input is an array given that the attribute
121
+ # is documented as an array but the input is not
122
+ if attributes[attribute_map[key]].is_a?(Array)
123
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
124
+ end
125
+ elsif !attributes[attribute_map[key]].nil?
126
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
127
+ end
128
+ end
129
+ new(transformed_hash)
130
+ end
131
+
132
+ # Deserializes the data based on type
133
+ # @param string type Data type
134
+ # @param string value Value to be deserialized
135
+ # @return [Object] Deserialized data
136
+ def self._deserialize(type, value)
137
+ case type.to_sym
138
+ when :Time
139
+ Time.parse(value)
140
+ when :Date
141
+ Date.parse(value)
142
+ when :String
143
+ value.to_s
144
+ when :Integer
145
+ value.to_i
146
+ when :Float
147
+ value.to_f
148
+ when :Boolean
149
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
150
+ true
151
+ else
152
+ false
153
+ end
154
+ when :Object
155
+ # generic object (usually a Hash), return directly
156
+ value
157
+ when /\AArray<(?<inner_type>.+)>\z/
158
+ inner_type = Regexp.last_match[:inner_type]
159
+ value.map { |v| _deserialize(inner_type, v) }
160
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
161
+ k_type = Regexp.last_match[:k_type]
162
+ v_type = Regexp.last_match[:v_type]
163
+ {}.tap do |hash|
164
+ value.each do |k, v|
165
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
166
+ end
167
+ end
168
+ else # model
169
+ # models (e.g. Pet) or oneOf
170
+ klass = Akeyless.const_get(type)
171
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
172
+ end
173
+ end
174
+
175
+ # Returns the string representation of the object
176
+ # @return [String] String presentation of the object
177
+ def to_s
178
+ to_hash.to_s
179
+ end
180
+
181
+ # to_body is an alias to to_hash (backward compatibility)
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_body
184
+ to_hash
185
+ end
186
+
187
+ # Returns the object in the form of hash
188
+ # @return [Hash] Returns the object in the form of hash
189
+ def to_hash
190
+ hash = {}
191
+ self.class.attribute_map.each_pair do |attr, param|
192
+ value = self.send(attr)
193
+ if value.nil?
194
+ is_nullable = self.class.openapi_nullable.include?(attr)
195
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
196
+ end
197
+
198
+ hash[param] = _to_hash(value)
199
+ end
200
+ hash
201
+ end
202
+
203
+ # Outputs non-array value in the form of hash
204
+ # For object, use to_hash. Otherwise, just return the value
205
+ # @param [Object] value Any valid value
206
+ # @return [Hash] Returns the value in the form of hash
207
+ def _to_hash(value)
208
+ if value.is_a?(Array)
209
+ value.compact.map { |v| _to_hash(v) }
210
+ elsif value.is_a?(Hash)
211
+ {}.tap do |hash|
212
+ value.each { |k, v| hash[k] = _to_hash(v) }
213
+ end
214
+ elsif value.respond_to? :to_hash
215
+ value.to_hash
216
+ else
217
+ value
218
+ end
219
+ end
220
+
221
+ end
222
+
223
+ end