akeyless 2.16.11 → 2.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -8
  3. data/docs/AccountGeneralSettings.md +20 -0
  4. data/docs/CreateArtifactoryTarget.md +1 -1
  5. data/docs/CreateAuthMethodK8S.md +2 -2
  6. data/docs/CreateAuthMethodLDAP.md +3 -1
  7. data/docs/CreateAuthMethodLDAPOutput.md +3 -1
  8. data/docs/CreateKeyOutput.md +5 -1
  9. data/docs/CreateLdapTarget.md +2 -0
  10. data/docs/CreatePKICertIssuer.md +5 -5
  11. data/docs/CreateSSHCertIssuer.md +1 -1
  12. data/docs/CreateSalesforceTarget.md +7 -3
  13. data/docs/CreateSecret.md +11 -19
  14. data/docs/DSProducerDetails.md +2 -0
  15. data/docs/DataProtectionSection.md +18 -0
  16. data/docs/Decrypt.md +3 -1
  17. data/docs/DecryptFile.md +6 -0
  18. data/docs/DecryptPKCS1.md +5 -1
  19. data/docs/DeleteItem.md +2 -2
  20. data/docs/DescribeItem.md +4 -0
  21. data/docs/DescribeSubClaims.md +20 -0
  22. data/docs/DescribeSubClaimsOutput.md +18 -0
  23. data/docs/Encrypt.md +3 -1
  24. data/docs/EncryptFile.md +4 -0
  25. data/docs/EncryptPKCS1.md +5 -1
  26. data/docs/GatewayCreateK8SAuthConfig.md +10 -4
  27. data/docs/GatewayCreateProducerDockerhub.md +1 -1
  28. data/docs/GatewayGetK8SAuthConfigOutput.md +7 -1
  29. data/docs/GatewayRevokeTmpUsers.md +4 -2
  30. data/docs/GatewayUpdateK8SAuthConfig.md +10 -4
  31. data/docs/GatewayUpdateLdapAuthConfig.md +2 -2
  32. data/docs/GatewayUpdateProducerDockerhub.md +1 -1
  33. data/docs/GetAccountSettingsCommandOutput.md +2 -0
  34. data/docs/GetSecretValue.md +2 -2
  35. data/docs/Item.md +2 -0
  36. data/docs/K8SAuth.md +7 -1
  37. data/docs/KubernetesAccessRules.md +2 -0
  38. data/docs/LDAPAccessRules.md +2 -0
  39. data/docs/ListItems.md +2 -2
  40. data/docs/LogForwardingConfigPart.md +2 -0
  41. data/docs/RuleAssigner.md +20 -0
  42. data/docs/SignPKCS1.md +5 -1
  43. data/docs/TargetTypeDetailsInput.md +5 -1
  44. data/docs/UpdateAccountSettings.md +13 -1
  45. data/docs/UpdateAuthMethodK8S.md +2 -2
  46. data/docs/UpdateAuthMethodLDAP.md +3 -1
  47. data/docs/UpdateAuthMethodLDAPOutput.md +18 -0
  48. data/docs/UpdateItem.md +2 -2
  49. data/docs/UpdateLdapTarget.md +2 -0
  50. data/docs/UpdateSalesforceTarget.md +7 -3
  51. data/docs/UpdateSecretVal.md +11 -9
  52. data/docs/V2Api.md +46 -109
  53. data/docs/VerifyPKCS1.md +4 -0
  54. data/lib/akeyless/api/v2_api.rb +43 -107
  55. data/lib/akeyless/models/account_general_settings.rb +229 -0
  56. data/lib/akeyless/models/create_artifactory_target.rb +1 -1
  57. data/lib/akeyless/models/create_auth_method_k8_s.rb +2 -2
  58. data/lib/akeyless/models/create_auth_method_ldap.rb +14 -2
  59. data/lib/akeyless/models/create_auth_method_ldap_output.rb +13 -4
  60. data/lib/akeyless/models/create_key_output.rb +22 -4
  61. data/lib/akeyless/models/create_ldap_target.rb +13 -1
  62. data/lib/akeyless/models/create_pki_cert_issuer.rb +5 -5
  63. data/lib/akeyless/models/create_salesforce_target.rb +29 -19
  64. data/lib/akeyless/models/create_secret.rb +50 -90
  65. data/lib/akeyless/models/create_ssh_cert_issuer.rb +1 -1
  66. data/lib/akeyless/models/data_protection_section.rb +220 -0
  67. data/lib/akeyless/models/decrypt.rb +16 -1
  68. data/lib/akeyless/models/decrypt_file.rb +36 -1
  69. data/lib/akeyless/models/decrypt_pkcs1.rb +22 -2
  70. data/lib/akeyless/models/delete_item.rb +11 -11
  71. data/lib/akeyless/models/describe_item.rb +21 -1
  72. data/lib/akeyless/models/describe_sub_claims.rb +231 -0
  73. data/lib/akeyless/models/describe_sub_claims_output.rb +221 -0
  74. data/lib/akeyless/models/ds_producer_details.rb +10 -1
  75. data/lib/akeyless/models/encrypt.rb +16 -1
  76. data/lib/akeyless/models/encrypt_file.rb +21 -1
  77. data/lib/akeyless/models/encrypt_pkcs1.rb +22 -2
  78. data/lib/akeyless/models/gateway_create_k8_s_auth_config.rb +38 -4
  79. data/lib/akeyless/models/gateway_create_producer_dockerhub.rb +1 -1
  80. data/lib/akeyless/models/gateway_get_k8_s_auth_config_output.rb +32 -2
  81. data/lib/akeyless/models/gateway_revoke_tmp_users.rb +14 -2
  82. data/lib/akeyless/models/gateway_update_k8_s_auth_config.rb +38 -4
  83. data/lib/akeyless/models/gateway_update_ldap_auth_config.rb +2 -2
  84. data/lib/akeyless/models/gateway_update_producer_dockerhub.rb +1 -1
  85. data/lib/akeyless/models/get_account_settings_command_output.rb +10 -1
  86. data/lib/akeyless/models/get_secret_value.rb +7 -7
  87. data/lib/akeyless/models/item.rb +10 -1
  88. data/lib/akeyless/models/k8_s_auth.rb +32 -2
  89. data/lib/akeyless/models/kubernetes_access_rules.rb +11 -1
  90. data/lib/akeyless/models/ldap_access_rules.rb +11 -1
  91. data/lib/akeyless/models/list_items.rb +11 -11
  92. data/lib/akeyless/models/log_forwarding_config_part.rb +10 -1
  93. data/lib/akeyless/models/rule_assigner.rb +228 -0
  94. data/lib/akeyless/models/sign_pkcs1.rb +21 -6
  95. data/lib/akeyless/models/target_type_details_input.rb +23 -1
  96. data/lib/akeyless/models/update_account_settings.rb +64 -4
  97. data/lib/akeyless/models/update_auth_method_k8_s.rb +2 -4
  98. data/lib/akeyless/models/update_auth_method_ldap.rb +12 -2
  99. data/lib/akeyless/models/update_auth_method_ldap_output.rb +219 -0
  100. data/lib/akeyless/models/update_item.rb +11 -11
  101. data/lib/akeyless/models/update_ldap_target.rb +11 -1
  102. data/lib/akeyless/models/update_salesforce_target.rb +29 -19
  103. data/lib/akeyless/models/update_secret_val.rb +52 -42
  104. data/lib/akeyless/models/verify_pkcs1.rb +21 -1
  105. data/lib/akeyless/version.rb +1 -1
  106. data/lib/akeyless.rb +6 -4
  107. data/spec/models/account_general_settings_spec.rb +34 -0
  108. data/spec/models/data_protection_section_spec.rb +34 -0
  109. data/spec/models/describe_sub_claims_output_spec.rb +34 -0
  110. data/spec/models/describe_sub_claims_spec.rb +40 -0
  111. data/spec/models/rule_assigner_spec.rb +40 -0
  112. data/spec/models/update_auth_method_ldap_output_spec.rb +34 -0
  113. metadata +525 -501
@@ -72,6 +72,8 @@ module Akeyless
72
72
 
73
73
  attr_accessor :rotation_interval
74
74
 
75
+ attr_accessor :shared_by
76
+
75
77
  attr_accessor :target_versions
76
78
 
77
79
  attr_accessor :with_customer_fragment
@@ -107,6 +109,7 @@ module Akeyless
107
109
  :'protection_key_type' => :'protection_key_type',
108
110
  :'public_value' => :'public_value',
109
111
  :'rotation_interval' => :'rotation_interval',
112
+ :'shared_by' => :'shared_by',
110
113
  :'target_versions' => :'target_versions',
111
114
  :'with_customer_fragment' => :'with_customer_fragment'
112
115
  }
@@ -148,6 +151,7 @@ module Akeyless
148
151
  :'protection_key_type' => :'String',
149
152
  :'public_value' => :'String',
150
153
  :'rotation_interval' => :'Integer',
154
+ :'shared_by' => :'RuleAssigner',
151
155
  :'target_versions' => :'Array<TargetItemVersion>',
152
156
  :'with_customer_fragment' => :'Boolean'
153
157
  }
@@ -294,6 +298,10 @@ module Akeyless
294
298
  self.rotation_interval = attributes[:'rotation_interval']
295
299
  end
296
300
 
301
+ if attributes.key?(:'shared_by')
302
+ self.shared_by = attributes[:'shared_by']
303
+ end
304
+
297
305
  if attributes.key?(:'target_versions')
298
306
  if (value = attributes[:'target_versions']).is_a?(Array)
299
307
  self.target_versions = value
@@ -351,6 +359,7 @@ module Akeyless
351
359
  protection_key_type == o.protection_key_type &&
352
360
  public_value == o.public_value &&
353
361
  rotation_interval == o.rotation_interval &&
362
+ shared_by == o.shared_by &&
354
363
  target_versions == o.target_versions &&
355
364
  with_customer_fragment == o.with_customer_fragment
356
365
  end
@@ -364,7 +373,7 @@ module Akeyless
364
373
  # Calculates hash code according to all attributes.
365
374
  # @return [Integer] Hash code
366
375
  def hash
367
- [auto_rotate, cert_issuer_signer_key_name, certificate_issue_details, certificates, client_permissions, customer_fragment_id, delete_protection, deletion_date, display_id, is_enabled, item_accessibility, 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_version, next_rotation_date, protection_key_name, protection_key_type, public_value, rotation_interval, target_versions, with_customer_fragment].hash
376
+ [auto_rotate, cert_issuer_signer_key_name, certificate_issue_details, certificates, client_permissions, customer_fragment_id, delete_protection, deletion_date, display_id, is_enabled, item_accessibility, 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_version, next_rotation_date, protection_key_name, protection_key_type, public_value, rotation_interval, shared_by, target_versions, with_customer_fragment].hash
368
377
  end
369
378
 
370
379
  # Builds the object from hash
@@ -24,6 +24,9 @@ module Akeyless
24
24
  # AuthMethodSigningKey is the private key (in base64 of the PEM format) associated with the public key defined in the Kubernetes auth method, that used to sign the internal token for the Akeyless Kubernetes Auth Method
25
25
  attr_accessor :auth_method_prv_key_pem
26
26
 
27
+ # ClusterApiType defines types of API access to cluster
28
+ attr_accessor :cluster_api_type
29
+
27
30
  # DisableISSValidation is optional parameter to disable ISS validation
28
31
  attr_accessor :disable_iss_validation
29
32
 
@@ -41,13 +44,19 @@ module Akeyless
41
44
  # K8SPublicKeysPEM is the list of public key in PEM format
42
45
  attr_accessor :k8s_pub_keys_pem
43
46
 
44
- # K8STokenReviewerJW\"K8S Auth config %v successfully created\\n\", clictx.Color().Bold(c.K8SAuthConfigName)T is the bearer to use during the TokenReview API call
47
+ # K8STokenReviewerJWT is the bearer for clusterApiTypeK8s, used during TokenReview API call
45
48
  attr_accessor :k8s_token_reviewer_jwt
46
49
 
47
50
  attr_accessor :name
48
51
 
49
52
  attr_accessor :protection_key
50
53
 
54
+ # RancherApiKey the bear token for clusterApiTypeRancher
55
+ attr_accessor :rancher_api_key
56
+
57
+ # RancherClusterId cluster id as define in rancher (in case of clusterApiTypeRancher)
58
+ attr_accessor :rancher_cluster_id
59
+
51
60
  # UseLocalCAJwt is an optional parameter to set defaulting to using the local CA cert and service account jwt when running in a Kubernetes pod
52
61
  attr_accessor :use_local_ca_jwt
53
62
 
@@ -57,6 +66,7 @@ module Akeyless
57
66
  :'am_token_expiration' => :'am_token_expiration',
58
67
  :'auth_method_access_id' => :'auth_method_access_id',
59
68
  :'auth_method_prv_key_pem' => :'auth_method_prv_key_pem',
69
+ :'cluster_api_type' => :'cluster_api_type',
60
70
  :'disable_iss_validation' => :'disable_iss_validation',
61
71
  :'id' => :'id',
62
72
  :'k8s_ca_cert' => :'k8s_ca_cert',
@@ -66,6 +76,8 @@ module Akeyless
66
76
  :'k8s_token_reviewer_jwt' => :'k8s_token_reviewer_jwt',
67
77
  :'name' => :'name',
68
78
  :'protection_key' => :'protection_key',
79
+ :'rancher_api_key' => :'rancher_api_key',
80
+ :'rancher_cluster_id' => :'rancher_cluster_id',
69
81
  :'use_local_ca_jwt' => :'use_local_ca_jwt'
70
82
  }
71
83
  end
@@ -81,6 +93,7 @@ module Akeyless
81
93
  :'am_token_expiration' => :'Integer',
82
94
  :'auth_method_access_id' => :'String',
83
95
  :'auth_method_prv_key_pem' => :'String',
96
+ :'cluster_api_type' => :'String',
84
97
  :'disable_iss_validation' => :'Boolean',
85
98
  :'id' => :'String',
86
99
  :'k8s_ca_cert' => :'String',
@@ -90,6 +103,8 @@ module Akeyless
90
103
  :'k8s_token_reviewer_jwt' => :'String',
91
104
  :'name' => :'String',
92
105
  :'protection_key' => :'String',
106
+ :'rancher_api_key' => :'String',
107
+ :'rancher_cluster_id' => :'String',
93
108
  :'use_local_ca_jwt' => :'Boolean'
94
109
  }
95
110
  end
@@ -127,6 +142,10 @@ module Akeyless
127
142
  self.auth_method_prv_key_pem = attributes[:'auth_method_prv_key_pem']
128
143
  end
129
144
 
145
+ if attributes.key?(:'cluster_api_type')
146
+ self.cluster_api_type = attributes[:'cluster_api_type']
147
+ end
148
+
130
149
  if attributes.key?(:'disable_iss_validation')
131
150
  self.disable_iss_validation = attributes[:'disable_iss_validation']
132
151
  end
@@ -165,6 +184,14 @@ module Akeyless
165
184
  self.protection_key = attributes[:'protection_key']
166
185
  end
167
186
 
187
+ if attributes.key?(:'rancher_api_key')
188
+ self.rancher_api_key = attributes[:'rancher_api_key']
189
+ end
190
+
191
+ if attributes.key?(:'rancher_cluster_id')
192
+ self.rancher_cluster_id = attributes[:'rancher_cluster_id']
193
+ end
194
+
168
195
  if attributes.key?(:'use_local_ca_jwt')
169
196
  self.use_local_ca_jwt = attributes[:'use_local_ca_jwt']
170
197
  end
@@ -191,6 +218,7 @@ module Akeyless
191
218
  am_token_expiration == o.am_token_expiration &&
192
219
  auth_method_access_id == o.auth_method_access_id &&
193
220
  auth_method_prv_key_pem == o.auth_method_prv_key_pem &&
221
+ cluster_api_type == o.cluster_api_type &&
194
222
  disable_iss_validation == o.disable_iss_validation &&
195
223
  id == o.id &&
196
224
  k8s_ca_cert == o.k8s_ca_cert &&
@@ -200,6 +228,8 @@ module Akeyless
200
228
  k8s_token_reviewer_jwt == o.k8s_token_reviewer_jwt &&
201
229
  name == o.name &&
202
230
  protection_key == o.protection_key &&
231
+ rancher_api_key == o.rancher_api_key &&
232
+ rancher_cluster_id == o.rancher_cluster_id &&
203
233
  use_local_ca_jwt == o.use_local_ca_jwt
204
234
  end
205
235
 
@@ -212,7 +242,7 @@ module Akeyless
212
242
  # Calculates hash code according to all attributes.
213
243
  # @return [Integer] Hash code
214
244
  def hash
215
- [am_token_expiration, auth_method_access_id, auth_method_prv_key_pem, disable_iss_validation, id, k8s_ca_cert, k8s_host, k8s_issuer, k8s_pub_keys_pem, k8s_token_reviewer_jwt, name, protection_key, use_local_ca_jwt].hash
245
+ [am_token_expiration, auth_method_access_id, auth_method_prv_key_pem, cluster_api_type, disable_iss_validation, id, k8s_ca_cert, k8s_host, k8s_issuer, k8s_pub_keys_pem, k8s_token_reviewer_jwt, name, protection_key, rancher_api_key, rancher_cluster_id, use_local_ca_jwt].hash
216
246
  end
217
247
 
218
248
  # Builds the object from hash
@@ -29,6 +29,9 @@ module Akeyless
29
29
  # A list of service account names that the authentication is restricted to.
30
30
  attr_accessor :bound_service_account_names
31
31
 
32
+ # Generate public/private key (the private key is required for the K8S Auth Config in the Akeyless Gateway)
33
+ attr_accessor :gen_key_pair
34
+
32
35
  # The public key value of the Kubernetes auth method configuration in the Akeyless Gateway.
33
36
  attr_accessor :pub_key
34
37
 
@@ -40,6 +43,7 @@ module Akeyless
40
43
  :'bound_namespaces' => :'bound_namespaces',
41
44
  :'bound_pod_names' => :'bound_pod_names',
42
45
  :'bound_service_account_names' => :'bound_service_account_names',
46
+ :'gen_key_pair' => :'gen_key_pair',
43
47
  :'pub_key' => :'pub_key'
44
48
  }
45
49
  end
@@ -57,6 +61,7 @@ module Akeyless
57
61
  :'bound_namespaces' => :'Array<String>',
58
62
  :'bound_pod_names' => :'Array<String>',
59
63
  :'bound_service_account_names' => :'Array<String>',
64
+ :'gen_key_pair' => :'String',
60
65
  :'pub_key' => :'String'
61
66
  }
62
67
  end
@@ -108,6 +113,10 @@ module Akeyless
108
113
  end
109
114
  end
110
115
 
116
+ if attributes.key?(:'gen_key_pair')
117
+ self.gen_key_pair = attributes[:'gen_key_pair']
118
+ end
119
+
111
120
  if attributes.key?(:'pub_key')
112
121
  self.pub_key = attributes[:'pub_key']
113
122
  end
@@ -136,6 +145,7 @@ module Akeyless
136
145
  bound_namespaces == o.bound_namespaces &&
137
146
  bound_pod_names == o.bound_pod_names &&
138
147
  bound_service_account_names == o.bound_service_account_names &&
148
+ gen_key_pair == o.gen_key_pair &&
139
149
  pub_key == o.pub_key
140
150
  end
141
151
 
@@ -148,7 +158,7 @@ module Akeyless
148
158
  # Calculates hash code according to all attributes.
149
159
  # @return [Integer] Hash code
150
160
  def hash
151
- [alg, audience, bound_namespaces, bound_pod_names, bound_service_account_names, pub_key].hash
161
+ [alg, audience, bound_namespaces, bound_pod_names, bound_service_account_names, gen_key_pair, pub_key].hash
152
162
  end
153
163
 
154
164
  # Builds the object from hash
@@ -17,6 +17,9 @@ module Akeyless
17
17
  class LDAPAccessRules
18
18
  attr_accessor :alg
19
19
 
20
+ # Generate public/private key (the private key is required for the LDAP Auth Config in the Akeyless Gateway)
21
+ attr_accessor :gen_key_pair
22
+
20
23
  # The public key value of LDAP.
21
24
  attr_accessor :key
22
25
 
@@ -27,6 +30,7 @@ module Akeyless
27
30
  def self.attribute_map
28
31
  {
29
32
  :'alg' => :'alg',
33
+ :'gen_key_pair' => :'gen_key_pair',
30
34
  :'key' => :'key',
31
35
  :'unique_identifier' => :'unique_identifier'
32
36
  }
@@ -41,6 +45,7 @@ module Akeyless
41
45
  def self.openapi_types
42
46
  {
43
47
  :'alg' => :'String',
48
+ :'gen_key_pair' => :'String',
44
49
  :'key' => :'String',
45
50
  :'unique_identifier' => :'String'
46
51
  }
@@ -71,6 +76,10 @@ module Akeyless
71
76
  self.alg = attributes[:'alg']
72
77
  end
73
78
 
79
+ if attributes.key?(:'gen_key_pair')
80
+ self.gen_key_pair = attributes[:'gen_key_pair']
81
+ end
82
+
74
83
  if attributes.key?(:'key')
75
84
  self.key = attributes[:'key']
76
85
  end
@@ -99,6 +108,7 @@ module Akeyless
99
108
  return true if self.equal?(o)
100
109
  self.class == o.class &&
101
110
  alg == o.alg &&
111
+ gen_key_pair == o.gen_key_pair &&
102
112
  key == o.key &&
103
113
  unique_identifier == o.unique_identifier
104
114
  end
@@ -112,7 +122,7 @@ module Akeyless
112
122
  # Calculates hash code according to all attributes.
113
123
  # @return [Integer] Hash code
114
124
  def hash
115
- [alg, key, unique_identifier].hash
125
+ [alg, gen_key_pair, key, unique_identifier].hash
116
126
  end
117
127
 
118
128
  # Builds the object from hash
@@ -15,12 +15,12 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class ListItems
18
+ # for personal password manager
19
+ attr_accessor :accessibility
20
+
18
21
  # Filter by item name or part of it
19
22
  attr_accessor :filter
20
23
 
21
- # for personal password manager
22
- attr_accessor :item_accessibility
23
-
24
24
  attr_accessor :minimal_view
25
25
 
26
26
  # Next page reference
@@ -46,8 +46,8 @@ module Akeyless
46
46
  # Attribute mapping from ruby-style variable name to JSON key.
47
47
  def self.attribute_map
48
48
  {
49
+ :'accessibility' => :'accessibility',
49
50
  :'filter' => :'filter',
50
- :'item_accessibility' => :'item-accessibility',
51
51
  :'minimal_view' => :'minimal-view',
52
52
  :'pagination_token' => :'pagination-token',
53
53
  :'path' => :'path',
@@ -67,8 +67,8 @@ module Akeyless
67
67
  # Attribute type mapping.
68
68
  def self.openapi_types
69
69
  {
70
+ :'accessibility' => :'String',
70
71
  :'filter' => :'String',
71
- :'item_accessibility' => :'String',
72
72
  :'minimal_view' => :'Boolean',
73
73
  :'pagination_token' => :'String',
74
74
  :'path' => :'String',
@@ -101,12 +101,12 @@ module Akeyless
101
101
  h[k.to_sym] = v
102
102
  }
103
103
 
104
- if attributes.key?(:'filter')
105
- self.filter = attributes[:'filter']
104
+ if attributes.key?(:'accessibility')
105
+ self.accessibility = attributes[:'accessibility']
106
106
  end
107
107
 
108
- if attributes.key?(:'item_accessibility')
109
- self.item_accessibility = attributes[:'item_accessibility']
108
+ if attributes.key?(:'filter')
109
+ self.filter = attributes[:'filter']
110
110
  end
111
111
 
112
112
  if attributes.key?(:'minimal_view')
@@ -164,8 +164,8 @@ module Akeyless
164
164
  def ==(o)
165
165
  return true if self.equal?(o)
166
166
  self.class == o.class &&
167
+ accessibility == o.accessibility &&
167
168
  filter == o.filter &&
168
- item_accessibility == o.item_accessibility &&
169
169
  minimal_view == o.minimal_view &&
170
170
  pagination_token == o.pagination_token &&
171
171
  path == o.path &&
@@ -185,7 +185,7 @@ module Akeyless
185
185
  # Calculates hash code according to all attributes.
186
186
  # @return [Integer] Hash code
187
187
  def hash
188
- [filter, item_accessibility, minimal_view, pagination_token, path, sub_types, tag, token, type, uid_token].hash
188
+ [accessibility, filter, minimal_view, pagination_token, path, sub_types, tag, token, type, uid_token].hash
189
189
  end
190
190
 
191
191
  # Builds the object from hash
@@ -23,6 +23,8 @@ module Akeyless
23
23
 
24
24
  attr_accessor :elasticsearch_config
25
25
 
26
+ attr_accessor :json_output
27
+
26
28
  attr_accessor :logan_enable
27
29
 
28
30
  attr_accessor :logan_url
@@ -46,6 +48,7 @@ module Akeyless
46
48
  :'azure_analytics_config' => :'azure_analytics_config',
47
49
  :'datadog_config' => :'datadog_config',
48
50
  :'elasticsearch_config' => :'elasticsearch_config',
51
+ :'json_output' => :'json_output',
49
52
  :'logan_enable' => :'logan_enable',
50
53
  :'logan_url' => :'logan_url',
51
54
  :'logstash_config' => :'logstash_config',
@@ -69,6 +72,7 @@ module Akeyless
69
72
  :'azure_analytics_config' => :'AzureLogAnalyticsForwardingConfig',
70
73
  :'datadog_config' => :'DatadogForwardingConfig',
71
74
  :'elasticsearch_config' => :'ElasticsearchLogForwardingConfig',
75
+ :'json_output' => :'Boolean',
72
76
  :'logan_enable' => :'Boolean',
73
77
  :'logan_url' => :'String',
74
78
  :'logstash_config' => :'LogstashLogForwardingConfig',
@@ -117,6 +121,10 @@ module Akeyless
117
121
  self.elasticsearch_config = attributes[:'elasticsearch_config']
118
122
  end
119
123
 
124
+ if attributes.key?(:'json_output')
125
+ self.json_output = attributes[:'json_output']
126
+ end
127
+
120
128
  if attributes.key?(:'logan_enable')
121
129
  self.logan_enable = attributes[:'logan_enable']
122
130
  end
@@ -172,6 +180,7 @@ module Akeyless
172
180
  azure_analytics_config == o.azure_analytics_config &&
173
181
  datadog_config == o.datadog_config &&
174
182
  elasticsearch_config == o.elasticsearch_config &&
183
+ json_output == o.json_output &&
175
184
  logan_enable == o.logan_enable &&
176
185
  logan_url == o.logan_url &&
177
186
  logstash_config == o.logstash_config &&
@@ -191,7 +200,7 @@ module Akeyless
191
200
  # Calculates hash code according to all attributes.
192
201
  # @return [Integer] Hash code
193
202
  def hash
194
- [aws_s3_config, azure_analytics_config, datadog_config, elasticsearch_config, logan_enable, logan_url, logstash_config, logz_io_config, pull_interval_sec, splunk_config, syslog_config, target_log_type].hash
203
+ [aws_s3_config, azure_analytics_config, datadog_config, elasticsearch_config, json_output, logan_enable, logan_url, logstash_config, logz_io_config, pull_interval_sec, splunk_config, syslog_config, target_log_type].hash
195
204
  end
196
205
 
197
206
  # Builds the object from hash
@@ -0,0 +1,228 @@
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: 6.1.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Akeyless
17
+ class RuleAssigner
18
+ attr_accessor :access_id
19
+
20
+ attr_accessor :unique_id
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'access_id' => :'access_id',
26
+ :'unique_id' => :'unique_id'
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
+ :'access_id' => :'String',
39
+ :'unique_id' => :'String'
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::RuleAssigner` 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::RuleAssigner`. 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?(:'access_id')
65
+ self.access_id = attributes[:'access_id']
66
+ end
67
+
68
+ if attributes.key?(:'unique_id')
69
+ self.unique_id = attributes[:'unique_id']
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
+ invalid_properties = Array.new
77
+ invalid_properties
78
+ end
79
+
80
+ # Check to see if the all the properties in the model are valid
81
+ # @return true if the model is valid
82
+ def valid?
83
+ true
84
+ end
85
+
86
+ # Checks equality by comparing each attribute.
87
+ # @param [Object] Object to be compared
88
+ def ==(o)
89
+ return true if self.equal?(o)
90
+ self.class == o.class &&
91
+ access_id == o.access_id &&
92
+ unique_id == o.unique_id
93
+ end
94
+
95
+ # @see the `==` method
96
+ # @param [Object] Object to be compared
97
+ def eql?(o)
98
+ self == o
99
+ end
100
+
101
+ # Calculates hash code according to all attributes.
102
+ # @return [Integer] Hash code
103
+ def hash
104
+ [access_id, unique_id].hash
105
+ end
106
+
107
+ # Builds the object from hash
108
+ # @param [Hash] attributes Model attributes in the form of hash
109
+ # @return [Object] Returns the model itself
110
+ def self.build_from_hash(attributes)
111
+ new.build_from_hash(attributes)
112
+ end
113
+
114
+ # Builds the object from hash
115
+ # @param [Hash] attributes Model attributes in the form of hash
116
+ # @return [Object] Returns the model itself
117
+ def build_from_hash(attributes)
118
+ return nil unless attributes.is_a?(Hash)
119
+ attributes = attributes.transform_keys(&:to_sym)
120
+ self.class.openapi_types.each_pair do |key, type|
121
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
122
+ self.send("#{key}=", nil)
123
+ elsif type =~ /\AArray<(.*)>/i
124
+ # check to ensure the input is an array given that the attribute
125
+ # is documented as an array but the input is not
126
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
127
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
128
+ end
129
+ elsif !attributes[self.class.attribute_map[key]].nil?
130
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
131
+ end
132
+ end
133
+
134
+ self
135
+ end
136
+
137
+ # Deserializes the data based on type
138
+ # @param string type Data type
139
+ # @param string value Value to be deserialized
140
+ # @return [Object] Deserialized data
141
+ def _deserialize(type, value)
142
+ case type.to_sym
143
+ when :Time
144
+ Time.parse(value)
145
+ when :Date
146
+ Date.parse(value)
147
+ when :String
148
+ value.to_s
149
+ when :Integer
150
+ value.to_i
151
+ when :Float
152
+ value.to_f
153
+ when :Boolean
154
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
155
+ true
156
+ else
157
+ false
158
+ end
159
+ when :Object
160
+ # generic object (usually a Hash), return directly
161
+ value
162
+ when /\AArray<(?<inner_type>.+)>\z/
163
+ inner_type = Regexp.last_match[:inner_type]
164
+ value.map { |v| _deserialize(inner_type, v) }
165
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
166
+ k_type = Regexp.last_match[:k_type]
167
+ v_type = Regexp.last_match[:v_type]
168
+ {}.tap do |hash|
169
+ value.each do |k, v|
170
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
171
+ end
172
+ end
173
+ else # model
174
+ # models (e.g. Pet) or oneOf
175
+ klass = Akeyless.const_get(type)
176
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
177
+ end
178
+ end
179
+
180
+ # Returns the string representation of the object
181
+ # @return [String] String presentation of the object
182
+ def to_s
183
+ to_hash.to_s
184
+ end
185
+
186
+ # to_body is an alias to to_hash (backward compatibility)
187
+ # @return [Hash] Returns the object in the form of hash
188
+ def to_body
189
+ to_hash
190
+ end
191
+
192
+ # Returns the object in the form of hash
193
+ # @return [Hash] Returns the object in the form of hash
194
+ def to_hash
195
+ hash = {}
196
+ self.class.attribute_map.each_pair do |attr, param|
197
+ value = self.send(attr)
198
+ if value.nil?
199
+ is_nullable = self.class.openapi_nullable.include?(attr)
200
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
201
+ end
202
+
203
+ hash[param] = _to_hash(value)
204
+ end
205
+ hash
206
+ end
207
+
208
+ # Outputs non-array value in the form of hash
209
+ # For object, use to_hash. Otherwise, just return the value
210
+ # @param [Object] value Any valid value
211
+ # @return [Hash] Returns the value in the form of hash
212
+ def _to_hash(value)
213
+ if value.is_a?(Array)
214
+ value.compact.map { |v| _to_hash(v) }
215
+ elsif value.is_a?(Hash)
216
+ {}.tap do |hash|
217
+ value.each { |k, v| hash[k] = _to_hash(v) }
218
+ end
219
+ elsif value.respond_to? :to_hash
220
+ value.to_hash
221
+ else
222
+ value
223
+ end
224
+ end
225
+
226
+ end
227
+
228
+ end