akeyless 5.0.38 → 5.0.40

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 (272) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +190 -0
  3. data/README.md +27 -2
  4. data/akeyless.gemspec +1 -1
  5. data/docs/AccountGeneralSettings.md +2 -0
  6. data/docs/AliCloudTargetDetails.md +28 -0
  7. data/docs/AssocTargetItem.md +17 -1
  8. data/docs/AuthMethodAccessInfo.md +2 -0
  9. data/docs/AuthMethodCreateOIDC.md +8 -0
  10. data/docs/AuthMethodCreateOutput.md +3 -1
  11. data/docs/AuthMethodCreateSAML.md +8 -0
  12. data/docs/AuthMethodUpdateOIDC.md +8 -0
  13. data/docs/AuthMethodUpdateOutput.md +3 -1
  14. data/docs/AuthMethodUpdateSAML.md +8 -0
  15. data/docs/ClientEvent.md +26 -0
  16. data/docs/ClientEventOutput.md +18 -0
  17. data/docs/Connect.md +2 -0
  18. data/docs/CreateEventForwarder.md +1 -1
  19. data/docs/CreateLdapTarget.md +3 -1
  20. data/docs/CreatePKICertIssuer.md +6 -0
  21. data/docs/CreateUSC.md +2 -0
  22. data/docs/DSProducerDetails.md +2 -0
  23. data/docs/DigiCertTargetDetails.md +8 -0
  24. data/docs/DynamicSecretCreateEks.md +3 -1
  25. data/docs/DynamicSecretCreateGke.md +3 -1
  26. data/docs/DynamicSecretCreateK8s.md +3 -1
  27. data/docs/DynamicSecretUpdateEks.md +3 -1
  28. data/docs/DynamicSecretUpdateGke.md +3 -1
  29. data/docs/DynamicSecretUpdateK8s.md +3 -1
  30. data/docs/EventForwarderCreateEmail.md +2 -2
  31. data/docs/EventForwarderCreateServiceNow.md +1 -1
  32. data/docs/EventForwarderCreateSlack.md +1 -1
  33. data/docs/EventForwarderCreateTeams.md +1 -1
  34. data/docs/EventForwarderCreateWebhook.md +1 -1
  35. data/docs/EventForwarderUpdateEmail.md +2 -2
  36. data/docs/EventForwarderUpdateServiceNow.md +1 -1
  37. data/docs/EventForwarderUpdateSlack.md +1 -1
  38. data/docs/EventForwarderUpdateTeams.md +1 -1
  39. data/docs/EventForwarderUpdateWebhook.md +1 -1
  40. data/docs/GatewayCreateAllowedAccess.md +1 -1
  41. data/docs/GatewayCreateMigration.md +2 -0
  42. data/docs/GatewayCreateProducerEks.md +3 -1
  43. data/docs/GatewayCreateProducerGke.md +3 -1
  44. data/docs/GatewayCreateProducerNativeK8S.md +3 -1
  45. data/docs/GatewayUpdateAllowedAccess.md +1 -1
  46. data/docs/GatewayUpdateMigration.md +2 -0
  47. data/docs/GatewayUpdateProducerEks.md +3 -1
  48. data/docs/GatewayUpdateProducerGke.md +3 -1
  49. data/docs/GatewayUpdateProducerNativeK8S.md +3 -1
  50. data/docs/GenerateIntermediateCA.md +48 -0
  51. data/docs/GenerateIntermediateCAOutput.md +26 -0
  52. data/docs/GetGroupOutput.md +13 -1
  53. data/docs/GetScimStatus.md +24 -0
  54. data/docs/GoogleTrustTargetDetails.md +8 -0
  55. data/docs/GrantedRole.md +20 -0
  56. data/docs/Group.md +13 -1
  57. data/docs/InjectorCertificateEvent.md +28 -0
  58. data/docs/Item.md +2 -0
  59. data/docs/LdapTargetDetails.md +3 -1
  60. data/docs/LetsEncryptTargetDetails.md +8 -0
  61. data/docs/ListSRASessions.md +2 -0
  62. data/docs/ListSraSessionsOutput.md +3 -3
  63. data/docs/ListTargets.md +1 -1
  64. data/docs/LockItem.md +1 -1
  65. data/docs/MigrationGeneral.md +6 -0
  66. data/docs/PKICertificateIssueDetails.md +4 -0
  67. data/docs/RequestAccess.md +2 -0
  68. data/docs/RotatedSecretCreateAliCloud.md +90 -0
  69. data/docs/RotatedSecretCreateAzure.md +1 -1
  70. data/docs/RotatedSecretCreateOkta.md +82 -0
  71. data/docs/RotatedSecretUpdateAliCloud.md +92 -0
  72. data/docs/RotatedSecretUpdateAzure.md +1 -1
  73. data/docs/RotatedSecretUpdateOkta.md +84 -0
  74. data/docs/ScimSettings.md +30 -0
  75. data/docs/ScimStatus.md +42 -0
  76. data/docs/Target.md +2 -0
  77. data/docs/TargetCreateAliCloud.md +52 -0
  78. data/docs/TargetCreateDigiCert.md +8 -0
  79. data/docs/TargetCreateGoogleTrust.md +8 -0
  80. data/docs/TargetCreateLdap.md +3 -1
  81. data/docs/TargetCreateLetsEncrypt.md +8 -0
  82. data/docs/TargetList.md +1 -1
  83. data/docs/TargetTypeDetailsInput.md +2 -0
  84. data/docs/TargetUpdateAliCloud.md +56 -0
  85. data/docs/TargetUpdateDigiCert.md +8 -0
  86. data/docs/TargetUpdateGoogleTrust.md +8 -0
  87. data/docs/TargetUpdateLdap.md +3 -1
  88. data/docs/TargetUpdateLetsEncrypt.md +8 -0
  89. data/docs/UpdateItem.md +3 -1
  90. data/docs/UpdateLdapTarget.md +3 -1
  91. data/docs/UpdatePKICertIssuer.md +6 -0
  92. data/docs/UpdateRotatedSecret.md +3 -1
  93. data/docs/UscCreate.md +3 -1
  94. data/docs/UscDelete.md +4 -0
  95. data/docs/UscGet.md +4 -0
  96. data/docs/UscList.md +4 -0
  97. data/docs/UscUpdate.md +4 -0
  98. data/docs/V2Api.md +579 -9
  99. data/lib/akeyless/api/v2_api.rb +585 -5
  100. data/lib/akeyless/models/account_general_settings.rb +13 -1
  101. data/lib/akeyless/models/ali_cloud_target_details.rb +259 -0
  102. data/lib/akeyless/models/assoc_target_item.rb +86 -2
  103. data/lib/akeyless/models/attribute_type_and_value.rb +1 -1
  104. data/lib/akeyless/models/auth_method_access_info.rb +10 -1
  105. data/lib/akeyless/models/auth_method_create_oidc.rb +41 -1
  106. data/lib/akeyless/models/auth_method_create_output.rb +14 -4
  107. data/lib/akeyless/models/auth_method_create_saml.rb +41 -1
  108. data/lib/akeyless/models/auth_method_update_oidc.rb +41 -1
  109. data/lib/akeyless/models/auth_method_update_output.rb +14 -4
  110. data/lib/akeyless/models/auth_method_update_saml.rb +41 -1
  111. data/lib/akeyless/models/client_event.rb +256 -0
  112. data/lib/akeyless/models/client_event_output.rb +214 -0
  113. data/lib/akeyless/models/connect.rb +11 -1
  114. data/lib/akeyless/models/create_event_forwarder.rb +1 -1
  115. data/lib/akeyless/models/create_ldap_target.rb +14 -4
  116. data/lib/akeyless/models/create_mcp_secret_bearer_token.rb +3 -0
  117. data/lib/akeyless/models/create_mcp_secret_o_auth_auth_code.rb +3 -0
  118. data/lib/akeyless/models/create_mcp_secret_o_auth_client_creds.rb +3 -0
  119. data/lib/akeyless/models/create_pki_cert_issuer.rb +31 -1
  120. data/lib/akeyless/models/create_secret.rb +3 -0
  121. data/lib/akeyless/models/create_usc.rb +11 -1
  122. data/lib/akeyless/models/digi_cert_target_details.rb +43 -1
  123. data/lib/akeyless/models/ds_producer_details.rb +10 -1
  124. data/lib/akeyless/models/dynamic_secret_create_eks.rb +12 -2
  125. data/lib/akeyless/models/dynamic_secret_create_gke.rb +12 -2
  126. data/lib/akeyless/models/dynamic_secret_create_k8s.rb +12 -2
  127. data/lib/akeyless/models/dynamic_secret_update_eks.rb +12 -2
  128. data/lib/akeyless/models/dynamic_secret_update_gke.rb +12 -2
  129. data/lib/akeyless/models/dynamic_secret_update_k8s.rb +12 -2
  130. data/lib/akeyless/models/event_forwarder_create_email.rb +2 -2
  131. data/lib/akeyless/models/event_forwarder_create_service_now.rb +1 -1
  132. data/lib/akeyless/models/event_forwarder_create_slack.rb +1 -1
  133. data/lib/akeyless/models/event_forwarder_create_teams.rb +1 -1
  134. data/lib/akeyless/models/event_forwarder_create_webhook.rb +1 -1
  135. data/lib/akeyless/models/event_forwarder_update_email.rb +2 -2
  136. data/lib/akeyless/models/event_forwarder_update_service_now.rb +1 -1
  137. data/lib/akeyless/models/event_forwarder_update_slack.rb +1 -1
  138. data/lib/akeyless/models/event_forwarder_update_teams.rb +1 -1
  139. data/lib/akeyless/models/event_forwarder_update_webhook.rb +1 -1
  140. data/lib/akeyless/models/gateway_create_allowed_access.rb +1 -1
  141. data/lib/akeyless/models/gateway_create_migration.rb +12 -1
  142. data/lib/akeyless/models/gateway_create_producer_artifactory.rb +4 -0
  143. data/lib/akeyless/models/gateway_create_producer_aws.rb +4 -0
  144. data/lib/akeyless/models/gateway_create_producer_azure.rb +4 -0
  145. data/lib/akeyless/models/gateway_create_producer_cassandra.rb +4 -0
  146. data/lib/akeyless/models/gateway_create_producer_chef.rb +4 -0
  147. data/lib/akeyless/models/gateway_create_producer_custom.rb +4 -0
  148. data/lib/akeyless/models/gateway_create_producer_dockerhub.rb +4 -0
  149. data/lib/akeyless/models/gateway_create_producer_eks.rb +16 -2
  150. data/lib/akeyless/models/gateway_create_producer_gcp.rb +4 -0
  151. data/lib/akeyless/models/gateway_create_producer_github.rb +4 -0
  152. data/lib/akeyless/models/gateway_create_producer_gke.rb +16 -2
  153. data/lib/akeyless/models/gateway_create_producer_hana_db.rb +4 -0
  154. data/lib/akeyless/models/gateway_create_producer_ldap.rb +4 -0
  155. data/lib/akeyless/models/gateway_create_producer_mongo.rb +4 -0
  156. data/lib/akeyless/models/gateway_create_producer_mssql.rb +4 -0
  157. data/lib/akeyless/models/gateway_create_producer_my_sql.rb +4 -0
  158. data/lib/akeyless/models/gateway_create_producer_native_k8_s.rb +16 -2
  159. data/lib/akeyless/models/gateway_create_producer_oracle_db.rb +4 -0
  160. data/lib/akeyless/models/gateway_create_producer_ping.rb +4 -0
  161. data/lib/akeyless/models/gateway_create_producer_postgre_sql.rb +4 -0
  162. data/lib/akeyless/models/gateway_create_producer_rabbit_mq.rb +4 -0
  163. data/lib/akeyless/models/gateway_create_producer_rdp.rb +4 -0
  164. data/lib/akeyless/models/gateway_create_producer_redis.rb +4 -0
  165. data/lib/akeyless/models/gateway_create_producer_redshift.rb +4 -0
  166. data/lib/akeyless/models/gateway_create_producer_snowflake.rb +4 -0
  167. data/lib/akeyless/models/gateway_create_producer_venafi.rb +4 -0
  168. data/lib/akeyless/models/gateway_delete_producer.rb +4 -0
  169. data/lib/akeyless/models/gateway_get_producer.rb +4 -0
  170. data/lib/akeyless/models/gateway_get_tmp_users.rb +4 -0
  171. data/lib/akeyless/models/gateway_revoke_tmp_users.rb +4 -0
  172. data/lib/akeyless/models/gateway_start_producer.rb +4 -0
  173. data/lib/akeyless/models/gateway_stop_producer.rb +4 -0
  174. data/lib/akeyless/models/gateway_update_allowed_access.rb +1 -1
  175. data/lib/akeyless/models/gateway_update_migration.rb +12 -1
  176. data/lib/akeyless/models/gateway_update_producer_artifactory.rb +4 -0
  177. data/lib/akeyless/models/gateway_update_producer_aws.rb +4 -0
  178. data/lib/akeyless/models/gateway_update_producer_azure.rb +4 -0
  179. data/lib/akeyless/models/gateway_update_producer_cassandra.rb +4 -0
  180. data/lib/akeyless/models/gateway_update_producer_chef.rb +4 -0
  181. data/lib/akeyless/models/gateway_update_producer_custom.rb +4 -0
  182. data/lib/akeyless/models/gateway_update_producer_dockerhub.rb +4 -0
  183. data/lib/akeyless/models/gateway_update_producer_eks.rb +16 -2
  184. data/lib/akeyless/models/gateway_update_producer_gcp.rb +4 -0
  185. data/lib/akeyless/models/gateway_update_producer_github.rb +4 -0
  186. data/lib/akeyless/models/gateway_update_producer_gke.rb +16 -2
  187. data/lib/akeyless/models/gateway_update_producer_hana_db.rb +4 -0
  188. data/lib/akeyless/models/gateway_update_producer_ldap.rb +4 -0
  189. data/lib/akeyless/models/gateway_update_producer_mongo.rb +4 -0
  190. data/lib/akeyless/models/gateway_update_producer_mssql.rb +4 -0
  191. data/lib/akeyless/models/gateway_update_producer_my_sql.rb +4 -0
  192. data/lib/akeyless/models/gateway_update_producer_native_k8_s.rb +16 -2
  193. data/lib/akeyless/models/gateway_update_producer_oracle_db.rb +4 -0
  194. data/lib/akeyless/models/gateway_update_producer_ping.rb +4 -0
  195. data/lib/akeyless/models/gateway_update_producer_postgre_sql.rb +4 -0
  196. data/lib/akeyless/models/gateway_update_producer_rabbit_mq.rb +4 -0
  197. data/lib/akeyless/models/gateway_update_producer_rdp.rb +4 -0
  198. data/lib/akeyless/models/gateway_update_producer_redis.rb +4 -0
  199. data/lib/akeyless/models/gateway_update_producer_redshift.rb +4 -0
  200. data/lib/akeyless/models/gateway_update_producer_snowflake.rb +4 -0
  201. data/lib/akeyless/models/gateway_update_producer_venafi.rb +4 -0
  202. data/lib/akeyless/models/gateway_update_tmp_users.rb +4 -0
  203. data/lib/akeyless/models/generate_intermediate_ca.rb +379 -0
  204. data/lib/akeyless/models/generate_intermediate_ca_output.rb +250 -0
  205. data/lib/akeyless/models/get_group_output.rb +63 -4
  206. data/lib/akeyless/models/get_scim_status.rb +254 -0
  207. data/lib/akeyless/models/google_trust_target_details.rb +43 -1
  208. data/lib/akeyless/models/granted_role.rb +224 -0
  209. data/lib/akeyless/models/group.rb +63 -4
  210. data/lib/akeyless/models/injector_certificate_event.rb +259 -0
  211. data/lib/akeyless/models/item.rb +10 -1
  212. data/lib/akeyless/models/ldap_target_details.rb +13 -4
  213. data/lib/akeyless/models/lets_encrypt_target_details.rb +43 -1
  214. data/lib/akeyless/models/list_sra_sessions.rb +12 -2
  215. data/lib/akeyless/models/list_sra_sessions_output.rb +3 -0
  216. data/lib/akeyless/models/list_targets.rb +1 -1
  217. data/lib/akeyless/models/lock_item.rb +1 -1
  218. data/lib/akeyless/models/migration_general.rb +28 -1
  219. data/lib/akeyless/models/pki_certificate_issue_details.rb +21 -1
  220. data/lib/akeyless/models/request_access.rb +11 -1
  221. data/lib/akeyless/models/rotated_secret_create_ali_cloud.rb +605 -0
  222. data/lib/akeyless/models/rotated_secret_create_azure.rb +1 -1
  223. data/lib/akeyless/models/rotated_secret_create_okta.rb +556 -0
  224. data/lib/akeyless/models/rotated_secret_update_ali_cloud.rb +605 -0
  225. data/lib/akeyless/models/rotated_secret_update_azure.rb +1 -1
  226. data/lib/akeyless/models/rotated_secret_update_okta.rb +563 -0
  227. data/lib/akeyless/models/scim_settings.rb +271 -0
  228. data/lib/akeyless/models/scim_status.rb +323 -0
  229. data/lib/akeyless/models/target.rb +10 -1
  230. data/lib/akeyless/models/target_create_ali_cloud.rb +394 -0
  231. data/lib/akeyless/models/target_create_digi_cert.rb +43 -1
  232. data/lib/akeyless/models/target_create_google_trust.rb +43 -1
  233. data/lib/akeyless/models/target_create_ldap.rb +14 -4
  234. data/lib/akeyless/models/target_create_lets_encrypt.rb +43 -1
  235. data/lib/akeyless/models/target_list.rb +1 -1
  236. data/lib/akeyless/models/target_type_details_input.rb +10 -1
  237. data/lib/akeyless/models/target_update_ali_cloud.rb +414 -0
  238. data/lib/akeyless/models/target_update_digi_cert.rb +43 -1
  239. data/lib/akeyless/models/target_update_google_trust.rb +43 -1
  240. data/lib/akeyless/models/target_update_ldap.rb +14 -4
  241. data/lib/akeyless/models/target_update_lets_encrypt.rb +43 -1
  242. data/lib/akeyless/models/update_item.rb +23 -2
  243. data/lib/akeyless/models/update_ldap_target.rb +14 -4
  244. data/lib/akeyless/models/update_mcp_secret_bearer_token.rb +3 -0
  245. data/lib/akeyless/models/update_mcp_secret_o_auth_auth_code.rb +3 -0
  246. data/lib/akeyless/models/update_mcp_secret_o_auth_client_creds.rb +3 -0
  247. data/lib/akeyless/models/update_pki_cert_issuer.rb +31 -1
  248. data/lib/akeyless/models/update_rotated_secret.rb +20 -2
  249. data/lib/akeyless/models/usc_create.rb +12 -2
  250. data/lib/akeyless/models/usc_delete.rb +21 -1
  251. data/lib/akeyless/models/usc_get.rb +21 -1
  252. data/lib/akeyless/models/usc_list.rb +21 -1
  253. data/lib/akeyless/models/usc_update.rb +21 -1
  254. data/lib/akeyless/version.rb +1 -1
  255. data/lib/akeyless.rb +16 -0
  256. data/spec/models/ali_cloud_target_details_spec.rb +66 -0
  257. data/spec/models/client_event_output_spec.rb +36 -0
  258. data/spec/models/client_event_spec.rb +60 -0
  259. data/spec/models/generate_intermediate_ca_output_spec.rb +60 -0
  260. data/spec/models/generate_intermediate_ca_spec.rb +126 -0
  261. data/spec/models/get_scim_status_spec.rb +54 -0
  262. data/spec/models/granted_role_spec.rb +42 -0
  263. data/spec/models/injector_certificate_event_spec.rb +66 -0
  264. data/spec/models/rotated_secret_create_ali_cloud_spec.rb +252 -0
  265. data/spec/models/rotated_secret_create_okta_spec.rb +228 -0
  266. data/spec/models/rotated_secret_update_ali_cloud_spec.rb +258 -0
  267. data/spec/models/rotated_secret_update_okta_spec.rb +234 -0
  268. data/spec/models/scim_settings_spec.rb +72 -0
  269. data/spec/models/scim_status_spec.rb +108 -0
  270. data/spec/models/target_create_ali_cloud_spec.rb +138 -0
  271. data/spec/models/target_update_ali_cloud_spec.rb +150 -0
  272. metadata +75 -10
@@ -0,0 +1,224 @@
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 GrantedRole
18
+ # Conditional is set when the role association also needs something besides this group: another claim, or membership in another group (\" AND \").
19
+ attr_accessor :conditional
20
+
21
+ attr_accessor :name
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'conditional' => :'conditional',
27
+ :'name' => :'name'
28
+ }
29
+ end
30
+
31
+ # Returns all the JSON keys this model knows about
32
+ def self.acceptable_attributes
33
+ attribute_map.values
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.openapi_types
38
+ {
39
+ :'conditional' => :'Boolean',
40
+ :'name' => :'String'
41
+ }
42
+ end
43
+
44
+ # List of attributes with nullable: true
45
+ def self.openapi_nullable
46
+ Set.new([
47
+ ])
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param [Hash] attributes Model attributes in the form of hash
52
+ def initialize(attributes = {})
53
+ if (!attributes.is_a?(Hash))
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::GrantedRole` initialize method"
55
+ end
56
+
57
+ # check to see if the attribute exists and convert string to symbol for hash key
58
+ attributes = attributes.each_with_object({}) { |(k, v), h|
59
+ if (!self.class.attribute_map.key?(k.to_sym))
60
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::GrantedRole`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
+ end
62
+ h[k.to_sym] = v
63
+ }
64
+
65
+ if attributes.key?(:'conditional')
66
+ self.conditional = attributes[:'conditional']
67
+ end
68
+
69
+ if attributes.key?(:'name')
70
+ self.name = attributes[:'name']
71
+ end
72
+ end
73
+
74
+ # Show invalid properties with the reasons. Usually used together with valid?
75
+ # @return Array for valid properties with the reasons
76
+ def list_invalid_properties
77
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
78
+ invalid_properties = Array.new
79
+ invalid_properties
80
+ end
81
+
82
+ # Check to see if the all the properties in the model are valid
83
+ # @return true if the model is valid
84
+ def valid?
85
+ warn '[DEPRECATED] the `valid?` method is obsolete'
86
+ true
87
+ end
88
+
89
+ # Checks equality by comparing each attribute.
90
+ # @param [Object] Object to be compared
91
+ def ==(o)
92
+ return true if self.equal?(o)
93
+ self.class == o.class &&
94
+ conditional == o.conditional &&
95
+ name == o.name
96
+ end
97
+
98
+ # @see the `==` method
99
+ # @param [Object] Object to be compared
100
+ def eql?(o)
101
+ self == o
102
+ end
103
+
104
+ # Calculates hash code according to all attributes.
105
+ # @return [Integer] Hash code
106
+ def hash
107
+ [conditional, name].hash
108
+ end
109
+
110
+ # Builds the object from hash
111
+ # @param [Hash] attributes Model attributes in the form of hash
112
+ # @return [Object] Returns the model itself
113
+ def self.build_from_hash(attributes)
114
+ return nil unless attributes.is_a?(Hash)
115
+ attributes = attributes.transform_keys(&:to_sym)
116
+ transformed_hash = {}
117
+ openapi_types.each_pair do |key, type|
118
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
119
+ transformed_hash["#{key}"] = nil
120
+ elsif type =~ /\AArray<(.*)>/i
121
+ # check to ensure the input is an array given that the attribute
122
+ # is documented as an array but the input is not
123
+ if attributes[attribute_map[key]].is_a?(Array)
124
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
125
+ end
126
+ elsif !attributes[attribute_map[key]].nil?
127
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
128
+ end
129
+ end
130
+ new(transformed_hash)
131
+ end
132
+
133
+ # Deserializes the data based on type
134
+ # @param string type Data type
135
+ # @param string value Value to be deserialized
136
+ # @return [Object] Deserialized data
137
+ def self._deserialize(type, value)
138
+ case type.to_sym
139
+ when :Time
140
+ Time.parse(value)
141
+ when :Date
142
+ Date.parse(value)
143
+ when :String
144
+ value.to_s
145
+ when :Integer
146
+ value.to_i
147
+ when :Float
148
+ value.to_f
149
+ when :Boolean
150
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
151
+ true
152
+ else
153
+ false
154
+ end
155
+ when :Object
156
+ # generic object (usually a Hash), return directly
157
+ value
158
+ when /\AArray<(?<inner_type>.+)>\z/
159
+ inner_type = Regexp.last_match[:inner_type]
160
+ value.map { |v| _deserialize(inner_type, v) }
161
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
162
+ k_type = Regexp.last_match[:k_type]
163
+ v_type = Regexp.last_match[:v_type]
164
+ {}.tap do |hash|
165
+ value.each do |k, v|
166
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
167
+ end
168
+ end
169
+ else # model
170
+ # models (e.g. Pet) or oneOf
171
+ klass = Akeyless.const_get(type)
172
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
173
+ end
174
+ end
175
+
176
+ # Returns the string representation of the object
177
+ # @return [String] String presentation of the object
178
+ def to_s
179
+ to_hash.to_s
180
+ end
181
+
182
+ # to_body is an alias to to_hash (backward compatibility)
183
+ # @return [Hash] Returns the object in the form of hash
184
+ def to_body
185
+ to_hash
186
+ end
187
+
188
+ # Returns the object in the form of hash
189
+ # @return [Hash] Returns the object in the form of hash
190
+ def to_hash
191
+ hash = {}
192
+ self.class.attribute_map.each_pair do |attr, param|
193
+ value = self.send(attr)
194
+ if value.nil?
195
+ is_nullable = self.class.openapi_nullable.include?(attr)
196
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
197
+ end
198
+
199
+ hash[param] = _to_hash(value)
200
+ end
201
+ hash
202
+ end
203
+
204
+ # Outputs non-array value in the form of hash
205
+ # For object, use to_hash. Otherwise, just return the value
206
+ # @param [Object] value Any valid value
207
+ # @return [Hash] Returns the value in the form of hash
208
+ def _to_hash(value)
209
+ if value.is_a?(Array)
210
+ value.compact.map { |v| _to_hash(v) }
211
+ elsif value.is_a?(Hash)
212
+ {}.tap do |hash|
213
+ value.each { |k, v| hash[k] = _to_hash(v) }
214
+ end
215
+ elsif value.respond_to? :to_hash
216
+ value.to_hash
217
+ else
218
+ value
219
+ end
220
+ end
221
+
222
+ end
223
+
224
+ end
@@ -21,6 +21,12 @@ module Akeyless
21
21
 
22
22
  attr_accessor :description
23
23
 
24
+ # GrantedRoles are the roles a member of this group gets at login, through the group's akeyless_groups claim. Read-only, and filled only for the SCIM bearer that owns the group: a group name on its own says nothing about the access it carries, which is what a reviewer certifying the entitlement has to judge.
25
+ attr_accessor :granted_roles
26
+
27
+ # GrantedRolesKnown is set when GrantedRoles was computed, so an empty list means \"grants no role\" rather than \"not computed\" (another caller, or an older UAM).
28
+ attr_accessor :granted_roles_known
29
+
24
30
  attr_accessor :group_alias
25
31
 
26
32
  attr_accessor :group_id
@@ -31,20 +37,35 @@ module Akeyless
31
37
 
32
38
  attr_accessor :modification_date
33
39
 
40
+ attr_accessor :scim_external_id
41
+
42
+ attr_accessor :scim_managed
43
+
44
+ attr_accessor :scim_provisioned_access_id
45
+
34
46
  attr_accessor :user_assignments
35
47
 
48
+ # Version identifies the member assignments this group was read with. Pass it back as UpdateGroupInput.ExpectedVersion to make the update conditional.
49
+ attr_accessor :version
50
+
36
51
  # Attribute mapping from ruby-style variable name to JSON key.
37
52
  def self.attribute_map
38
53
  {
39
54
  :'account_id' => :'account_id',
40
55
  :'creation_date' => :'creation_date',
41
56
  :'description' => :'description',
57
+ :'granted_roles' => :'granted_roles',
58
+ :'granted_roles_known' => :'granted_roles_known',
42
59
  :'group_alias' => :'group_alias',
43
60
  :'group_id' => :'group_id',
44
61
  :'group_name' => :'group_name',
45
62
  :'is_subclaims_with_operator' => :'is_subclaims_with_operator',
46
63
  :'modification_date' => :'modification_date',
47
- :'user_assignments' => :'user_assignments'
64
+ :'scim_external_id' => :'scim_external_id',
65
+ :'scim_managed' => :'scim_managed',
66
+ :'scim_provisioned_access_id' => :'scim_provisioned_access_id',
67
+ :'user_assignments' => :'user_assignments',
68
+ :'version' => :'version'
48
69
  }
49
70
  end
50
71
 
@@ -59,12 +80,18 @@ module Akeyless
59
80
  :'account_id' => :'String',
60
81
  :'creation_date' => :'Time',
61
82
  :'description' => :'String',
83
+ :'granted_roles' => :'Array<GrantedRole>',
84
+ :'granted_roles_known' => :'Boolean',
62
85
  :'group_alias' => :'String',
63
86
  :'group_id' => :'String',
64
87
  :'group_name' => :'String',
65
88
  :'is_subclaims_with_operator' => :'Boolean',
66
89
  :'modification_date' => :'Time',
67
- :'user_assignments' => :'Array<AccessPermissionAssignment>'
90
+ :'scim_external_id' => :'String',
91
+ :'scim_managed' => :'Boolean',
92
+ :'scim_provisioned_access_id' => :'String',
93
+ :'user_assignments' => :'Array<AccessPermissionAssignment>',
94
+ :'version' => :'String'
68
95
  }
69
96
  end
70
97
 
@@ -101,6 +128,16 @@ module Akeyless
101
128
  self.description = attributes[:'description']
102
129
  end
103
130
 
131
+ if attributes.key?(:'granted_roles')
132
+ if (value = attributes[:'granted_roles']).is_a?(Array)
133
+ self.granted_roles = value
134
+ end
135
+ end
136
+
137
+ if attributes.key?(:'granted_roles_known')
138
+ self.granted_roles_known = attributes[:'granted_roles_known']
139
+ end
140
+
104
141
  if attributes.key?(:'group_alias')
105
142
  self.group_alias = attributes[:'group_alias']
106
143
  end
@@ -121,11 +158,27 @@ module Akeyless
121
158
  self.modification_date = attributes[:'modification_date']
122
159
  end
123
160
 
161
+ if attributes.key?(:'scim_external_id')
162
+ self.scim_external_id = attributes[:'scim_external_id']
163
+ end
164
+
165
+ if attributes.key?(:'scim_managed')
166
+ self.scim_managed = attributes[:'scim_managed']
167
+ end
168
+
169
+ if attributes.key?(:'scim_provisioned_access_id')
170
+ self.scim_provisioned_access_id = attributes[:'scim_provisioned_access_id']
171
+ end
172
+
124
173
  if attributes.key?(:'user_assignments')
125
174
  if (value = attributes[:'user_assignments']).is_a?(Array)
126
175
  self.user_assignments = value
127
176
  end
128
177
  end
178
+
179
+ if attributes.key?(:'version')
180
+ self.version = attributes[:'version']
181
+ end
129
182
  end
130
183
 
131
184
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -151,12 +204,18 @@ module Akeyless
151
204
  account_id == o.account_id &&
152
205
  creation_date == o.creation_date &&
153
206
  description == o.description &&
207
+ granted_roles == o.granted_roles &&
208
+ granted_roles_known == o.granted_roles_known &&
154
209
  group_alias == o.group_alias &&
155
210
  group_id == o.group_id &&
156
211
  group_name == o.group_name &&
157
212
  is_subclaims_with_operator == o.is_subclaims_with_operator &&
158
213
  modification_date == o.modification_date &&
159
- user_assignments == o.user_assignments
214
+ scim_external_id == o.scim_external_id &&
215
+ scim_managed == o.scim_managed &&
216
+ scim_provisioned_access_id == o.scim_provisioned_access_id &&
217
+ user_assignments == o.user_assignments &&
218
+ version == o.version
160
219
  end
161
220
 
162
221
  # @see the `==` method
@@ -168,7 +227,7 @@ module Akeyless
168
227
  # Calculates hash code according to all attributes.
169
228
  # @return [Integer] Hash code
170
229
  def hash
171
- [account_id, creation_date, description, group_alias, group_id, group_name, is_subclaims_with_operator, modification_date, user_assignments].hash
230
+ [account_id, creation_date, description, granted_roles, granted_roles_known, group_alias, group_id, group_name, is_subclaims_with_operator, modification_date, scim_external_id, scim_managed, scim_provisioned_access_id, user_assignments, version].hash
172
231
  end
173
232
 
174
233
  # Builds the object from hash
@@ -0,0 +1,259 @@
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 InjectorCertificateEvent
18
+ attr_accessor :fingerprint_sha256
19
+
20
+ attr_accessor :injector_name
21
+
22
+ attr_accessor :injector_namespace
23
+
24
+ attr_accessor :installation_id
25
+
26
+ attr_accessor :not_after
27
+
28
+ attr_accessor :threshold
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+ :'fingerprint_sha256' => :'fingerprint-sha256',
34
+ :'injector_name' => :'injector-name',
35
+ :'injector_namespace' => :'injector-namespace',
36
+ :'installation_id' => :'installation-id',
37
+ :'not_after' => :'not-after',
38
+ :'threshold' => :'threshold'
39
+ }
40
+ end
41
+
42
+ # Returns all the JSON keys this model knows about
43
+ def self.acceptable_attributes
44
+ attribute_map.values
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ def self.openapi_types
49
+ {
50
+ :'fingerprint_sha256' => :'String',
51
+ :'injector_name' => :'String',
52
+ :'injector_namespace' => :'String',
53
+ :'installation_id' => :'String',
54
+ :'not_after' => :'Time',
55
+ :'threshold' => :'String'
56
+ }
57
+ end
58
+
59
+ # List of attributes with nullable: true
60
+ def self.openapi_nullable
61
+ Set.new([
62
+ ])
63
+ end
64
+
65
+ # Initializes the object
66
+ # @param [Hash] attributes Model attributes in the form of hash
67
+ def initialize(attributes = {})
68
+ if (!attributes.is_a?(Hash))
69
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::InjectorCertificateEvent` initialize method"
70
+ end
71
+
72
+ # check to see if the attribute exists and convert string to symbol for hash key
73
+ attributes = attributes.each_with_object({}) { |(k, v), h|
74
+ if (!self.class.attribute_map.key?(k.to_sym))
75
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::InjectorCertificateEvent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
76
+ end
77
+ h[k.to_sym] = v
78
+ }
79
+
80
+ if attributes.key?(:'fingerprint_sha256')
81
+ self.fingerprint_sha256 = attributes[:'fingerprint_sha256']
82
+ end
83
+
84
+ if attributes.key?(:'injector_name')
85
+ self.injector_name = attributes[:'injector_name']
86
+ end
87
+
88
+ if attributes.key?(:'injector_namespace')
89
+ self.injector_namespace = attributes[:'injector_namespace']
90
+ end
91
+
92
+ if attributes.key?(:'installation_id')
93
+ self.installation_id = attributes[:'installation_id']
94
+ end
95
+
96
+ if attributes.key?(:'not_after')
97
+ self.not_after = attributes[:'not_after']
98
+ end
99
+
100
+ if attributes.key?(:'threshold')
101
+ self.threshold = attributes[:'threshold']
102
+ end
103
+ end
104
+
105
+ # Show invalid properties with the reasons. Usually used together with valid?
106
+ # @return Array for valid properties with the reasons
107
+ def list_invalid_properties
108
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
109
+ invalid_properties = Array.new
110
+ invalid_properties
111
+ end
112
+
113
+ # Check to see if the all the properties in the model are valid
114
+ # @return true if the model is valid
115
+ def valid?
116
+ warn '[DEPRECATED] the `valid?` method is obsolete'
117
+ true
118
+ end
119
+
120
+ # Checks equality by comparing each attribute.
121
+ # @param [Object] Object to be compared
122
+ def ==(o)
123
+ return true if self.equal?(o)
124
+ self.class == o.class &&
125
+ fingerprint_sha256 == o.fingerprint_sha256 &&
126
+ injector_name == o.injector_name &&
127
+ injector_namespace == o.injector_namespace &&
128
+ installation_id == o.installation_id &&
129
+ not_after == o.not_after &&
130
+ threshold == o.threshold
131
+ end
132
+
133
+ # @see the `==` method
134
+ # @param [Object] Object to be compared
135
+ def eql?(o)
136
+ self == o
137
+ end
138
+
139
+ # Calculates hash code according to all attributes.
140
+ # @return [Integer] Hash code
141
+ def hash
142
+ [fingerprint_sha256, injector_name, injector_namespace, installation_id, not_after, threshold].hash
143
+ end
144
+
145
+ # Builds the object from hash
146
+ # @param [Hash] attributes Model attributes in the form of hash
147
+ # @return [Object] Returns the model itself
148
+ def self.build_from_hash(attributes)
149
+ return nil unless attributes.is_a?(Hash)
150
+ attributes = attributes.transform_keys(&:to_sym)
151
+ transformed_hash = {}
152
+ openapi_types.each_pair do |key, type|
153
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
154
+ transformed_hash["#{key}"] = nil
155
+ elsif type =~ /\AArray<(.*)>/i
156
+ # check to ensure the input is an array given that the attribute
157
+ # is documented as an array but the input is not
158
+ if attributes[attribute_map[key]].is_a?(Array)
159
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
160
+ end
161
+ elsif !attributes[attribute_map[key]].nil?
162
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
163
+ end
164
+ end
165
+ new(transformed_hash)
166
+ end
167
+
168
+ # Deserializes the data based on type
169
+ # @param string type Data type
170
+ # @param string value Value to be deserialized
171
+ # @return [Object] Deserialized data
172
+ def self._deserialize(type, value)
173
+ case type.to_sym
174
+ when :Time
175
+ Time.parse(value)
176
+ when :Date
177
+ Date.parse(value)
178
+ when :String
179
+ value.to_s
180
+ when :Integer
181
+ value.to_i
182
+ when :Float
183
+ value.to_f
184
+ when :Boolean
185
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
186
+ true
187
+ else
188
+ false
189
+ end
190
+ when :Object
191
+ # generic object (usually a Hash), return directly
192
+ value
193
+ when /\AArray<(?<inner_type>.+)>\z/
194
+ inner_type = Regexp.last_match[:inner_type]
195
+ value.map { |v| _deserialize(inner_type, v) }
196
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
197
+ k_type = Regexp.last_match[:k_type]
198
+ v_type = Regexp.last_match[:v_type]
199
+ {}.tap do |hash|
200
+ value.each do |k, v|
201
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
202
+ end
203
+ end
204
+ else # model
205
+ # models (e.g. Pet) or oneOf
206
+ klass = Akeyless.const_get(type)
207
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
208
+ end
209
+ end
210
+
211
+ # Returns the string representation of the object
212
+ # @return [String] String presentation of the object
213
+ def to_s
214
+ to_hash.to_s
215
+ end
216
+
217
+ # to_body is an alias to to_hash (backward compatibility)
218
+ # @return [Hash] Returns the object in the form of hash
219
+ def to_body
220
+ to_hash
221
+ end
222
+
223
+ # Returns the object in the form of hash
224
+ # @return [Hash] Returns the object in the form of hash
225
+ def to_hash
226
+ hash = {}
227
+ self.class.attribute_map.each_pair do |attr, param|
228
+ value = self.send(attr)
229
+ if value.nil?
230
+ is_nullable = self.class.openapi_nullable.include?(attr)
231
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
232
+ end
233
+
234
+ hash[param] = _to_hash(value)
235
+ end
236
+ hash
237
+ end
238
+
239
+ # Outputs non-array value in the form of hash
240
+ # For object, use to_hash. Otherwise, just return the value
241
+ # @param [Object] value Any valid value
242
+ # @return [Hash] Returns the value in the form of hash
243
+ def _to_hash(value)
244
+ if value.is_a?(Array)
245
+ value.compact.map { |v| _to_hash(v) }
246
+ elsif value.is_a?(Hash)
247
+ {}.tap do |hash|
248
+ value.each { |k, v| hash[k] = _to_hash(v) }
249
+ end
250
+ elsif value.respond_to? :to_hash
251
+ value.to_hash
252
+ else
253
+ value
254
+ end
255
+ end
256
+
257
+ end
258
+
259
+ end
@@ -78,6 +78,8 @@ module Akeyless
78
78
 
79
79
  attr_accessor :item_versions
80
80
 
81
+ attr_accessor :last_access_request_status
82
+
81
83
  attr_accessor :last_rotation_date
82
84
 
83
85
  attr_accessor :last_version
@@ -141,6 +143,7 @@ module Akeyless
141
143
  :'item_targets_assoc' => :'item_targets_assoc',
142
144
  :'item_type' => :'item_type',
143
145
  :'item_versions' => :'item_versions',
146
+ :'last_access_request_status' => :'last_access_request_status',
144
147
  :'last_rotation_date' => :'last_rotation_date',
145
148
  :'last_version' => :'last_version',
146
149
  :'linked_details' => :'linked_details',
@@ -197,6 +200,7 @@ module Akeyless
197
200
  :'item_targets_assoc' => :'Array<ItemTargetAssociation>',
198
201
  :'item_type' => :'String',
199
202
  :'item_versions' => :'Array<ItemVersion>',
203
+ :'last_access_request_status' => :'String',
200
204
  :'last_rotation_date' => :'Time',
201
205
  :'last_version' => :'Integer',
202
206
  :'linked_details' => :'LinkedDetails',
@@ -371,6 +375,10 @@ module Akeyless
371
375
  end
372
376
  end
373
377
 
378
+ if attributes.key?(:'last_access_request_status')
379
+ self.last_access_request_status = attributes[:'last_access_request_status']
380
+ end
381
+
374
382
  if attributes.key?(:'last_rotation_date')
375
383
  self.last_rotation_date = attributes[:'last_rotation_date']
376
384
  end
@@ -483,6 +491,7 @@ module Akeyless
483
491
  item_targets_assoc == o.item_targets_assoc &&
484
492
  item_type == o.item_type &&
485
493
  item_versions == o.item_versions &&
494
+ last_access_request_status == o.last_access_request_status &&
486
495
  last_rotation_date == o.last_rotation_date &&
487
496
  last_version == o.last_version &&
488
497
  linked_details == o.linked_details &&
@@ -508,7 +517,7 @@ module Akeyless
508
517
  # Calculates hash code according to all attributes.
509
518
  # @return [Integer] Hash code
510
519
  def hash
511
- [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, file_download, 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
520
+ [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, file_download, 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_access_request_status, 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
512
521
  end
513
522
 
514
523
  # Builds the object from hash