akeyless 5.0.30 → 5.0.31

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.
@@ -19,6 +19,9 @@ module Akeyless
19
19
  # Debug mode
20
20
  attr_accessor :debug
21
21
 
22
+ # A comma separated list of IP addresses, CIDR ranges, or DNS names to exclude from the scan
23
+ attr_accessor :exclude_hosts
24
+
22
25
  # How many days before the expiration of the certificate would you like to be notified.
23
26
  attr_accessor :expiration_event_in
24
27
 
@@ -47,6 +50,7 @@ module Akeyless
47
50
  def self.attribute_map
48
51
  {
49
52
  :'debug' => :'debug',
53
+ :'exclude_hosts' => :'exclude-hosts',
50
54
  :'expiration_event_in' => :'expiration-event-in',
51
55
  :'hosts' => :'hosts',
52
56
  :'json' => :'json',
@@ -67,6 +71,7 @@ module Akeyless
67
71
  def self.openapi_types
68
72
  {
69
73
  :'debug' => :'Boolean',
74
+ :'exclude_hosts' => :'String',
70
75
  :'expiration_event_in' => :'Array<String>',
71
76
  :'hosts' => :'String',
72
77
  :'json' => :'Boolean',
@@ -105,6 +110,10 @@ module Akeyless
105
110
  self.debug = false
106
111
  end
107
112
 
113
+ if attributes.key?(:'exclude_hosts')
114
+ self.exclude_hosts = attributes[:'exclude_hosts']
115
+ end
116
+
108
117
  if attributes.key?(:'expiration_event_in')
109
118
  if (value = attributes[:'expiration_event_in']).is_a?(Array)
110
119
  self.expiration_event_in = value
@@ -179,6 +188,7 @@ module Akeyless
179
188
  return true if self.equal?(o)
180
189
  self.class == o.class &&
181
190
  debug == o.debug &&
191
+ exclude_hosts == o.exclude_hosts &&
182
192
  expiration_event_in == o.expiration_event_in &&
183
193
  hosts == o.hosts &&
184
194
  json == o.json &&
@@ -198,7 +208,7 @@ module Akeyless
198
208
  # Calculates hash code according to all attributes.
199
209
  # @return [Integer] Hash code
200
210
  def hash
201
- [debug, expiration_event_in, hosts, json, port_ranges, protection_key, target_location, token, uid_token].hash
211
+ [debug, exclude_hosts, expiration_event_in, hosts, json, port_ranges, protection_key, target_location, token, uid_token].hash
202
212
  end
203
213
 
204
214
  # Builds the object from hash
@@ -15,6 +15,8 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class CertificatePayload
18
+ attr_accessor :exclude_hosts
19
+
18
20
  attr_accessor :expiration_events
19
21
 
20
22
  attr_accessor :folder
@@ -32,6 +34,7 @@ module Akeyless
32
34
  # Attribute mapping from ruby-style variable name to JSON key.
33
35
  def self.attribute_map
34
36
  {
37
+ :'exclude_hosts' => :'exclude_hosts',
35
38
  :'expiration_events' => :'expiration_events',
36
39
  :'folder' => :'folder',
37
40
  :'max_dial_timeout' => :'max_dial_timeout',
@@ -50,6 +53,7 @@ module Akeyless
50
53
  # Attribute type mapping.
51
54
  def self.openapi_types
52
55
  {
56
+ :'exclude_hosts' => :'Array<String>',
53
57
  :'expiration_events' => :'Array<CertificateExpirationEvent>',
54
58
  :'folder' => :'String',
55
59
  :'max_dial_timeout' => :'Integer',
@@ -81,6 +85,12 @@ module Akeyless
81
85
  h[k.to_sym] = v
82
86
  }
83
87
 
88
+ if attributes.key?(:'exclude_hosts')
89
+ if (value = attributes[:'exclude_hosts']).is_a?(Array)
90
+ self.exclude_hosts = value
91
+ end
92
+ end
93
+
84
94
  if attributes.key?(:'expiration_events')
85
95
  if (value = attributes[:'expiration_events']).is_a?(Array)
86
96
  self.expiration_events = value
@@ -134,6 +144,7 @@ module Akeyless
134
144
  def ==(o)
135
145
  return true if self.equal?(o)
136
146
  self.class == o.class &&
147
+ exclude_hosts == o.exclude_hosts &&
137
148
  expiration_events == o.expiration_events &&
138
149
  folder == o.folder &&
139
150
  max_dial_timeout == o.max_dial_timeout &&
@@ -152,7 +163,7 @@ module Akeyless
152
163
  # Calculates hash code according to all attributes.
153
164
  # @return [Integer] Hash code
154
165
  def hash
155
- [expiration_events, folder, max_dial_timeout, max_scan_duration, max_workers, port_ranges, targets].hash
166
+ [exclude_hosts, expiration_events, folder, max_dial_timeout, max_scan_duration, max_workers, port_ranges, targets].hash
156
167
  end
157
168
 
158
169
  # Builds the object from hash
@@ -45,6 +45,9 @@ module Akeyless
45
45
  # The universal identity token, Required only for universal_identity authentication
46
46
  attr_accessor :uid_token
47
47
 
48
+ # key version (relevant only for classic key)
49
+ attr_accessor :version
50
+
48
51
  # Attribute mapping from ruby-style variable name to JSON key.
49
52
  def self.attribute_map
50
53
  {
@@ -57,7 +60,8 @@ module Akeyless
57
60
  :'output_format' => :'output-format',
58
61
  :'passphrase' => :'passphrase',
59
62
  :'token' => :'token',
60
- :'uid_token' => :'uid-token'
63
+ :'uid_token' => :'uid-token',
64
+ :'version' => :'version'
61
65
  }
62
66
  end
63
67
 
@@ -78,7 +82,8 @@ module Akeyless
78
82
  :'output_format' => :'String',
79
83
  :'passphrase' => :'String',
80
84
  :'token' => :'String',
81
- :'uid_token' => :'String'
85
+ :'uid_token' => :'String',
86
+ :'version' => :'Integer'
82
87
  }
83
88
  end
84
89
 
@@ -150,6 +155,10 @@ module Akeyless
150
155
  if attributes.key?(:'uid_token')
151
156
  self.uid_token = attributes[:'uid_token']
152
157
  end
158
+
159
+ if attributes.key?(:'version')
160
+ self.version = attributes[:'version']
161
+ end
153
162
  end
154
163
 
155
164
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -191,7 +200,8 @@ module Akeyless
191
200
  output_format == o.output_format &&
192
201
  passphrase == o.passphrase &&
193
202
  token == o.token &&
194
- uid_token == o.uid_token
203
+ uid_token == o.uid_token &&
204
+ version == o.version
195
205
  end
196
206
 
197
207
  # @see the `==` method
@@ -203,7 +213,7 @@ module Akeyless
203
213
  # Calculates hash code according to all attributes.
204
214
  # @return [Integer] Hash code
205
215
  def hash
206
- [ciphertext, display_id, input_format, item_id, json, key_name, output_format, passphrase, token, uid_token].hash
216
+ [ciphertext, display_id, input_format, item_id, json, key_name, output_format, passphrase, token, uid_token, version].hash
207
217
  end
208
218
 
209
219
  # Builds the object from hash
@@ -39,6 +39,9 @@ module Akeyless
39
39
  # The universal identity token, Required only for universal_identity authentication
40
40
  attr_accessor :uid_token
41
41
 
42
+ # key version (relevant only for classic key)
43
+ attr_accessor :version
44
+
42
45
  # Attribute mapping from ruby-style variable name to JSON key.
43
46
  def self.attribute_map
44
47
  {
@@ -49,7 +52,8 @@ module Akeyless
49
52
  :'key_name' => :'key-name',
50
53
  :'plaintext' => :'plaintext',
51
54
  :'token' => :'token',
52
- :'uid_token' => :'uid-token'
55
+ :'uid_token' => :'uid-token',
56
+ :'version' => :'version'
53
57
  }
54
58
  end
55
59
 
@@ -68,7 +72,8 @@ module Akeyless
68
72
  :'key_name' => :'String',
69
73
  :'plaintext' => :'String',
70
74
  :'token' => :'String',
71
- :'uid_token' => :'String'
75
+ :'uid_token' => :'String',
76
+ :'version' => :'Integer'
72
77
  }
73
78
  end
74
79
 
@@ -130,6 +135,10 @@ module Akeyless
130
135
  if attributes.key?(:'uid_token')
131
136
  self.uid_token = attributes[:'uid_token']
132
137
  end
138
+
139
+ if attributes.key?(:'version')
140
+ self.version = attributes[:'version']
141
+ end
133
142
  end
134
143
 
135
144
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -169,7 +178,8 @@ module Akeyless
169
178
  key_name == o.key_name &&
170
179
  plaintext == o.plaintext &&
171
180
  token == o.token &&
172
- uid_token == o.uid_token
181
+ uid_token == o.uid_token &&
182
+ version == o.version
173
183
  end
174
184
 
175
185
  # @see the `==` method
@@ -181,7 +191,7 @@ module Akeyless
181
191
  # Calculates hash code according to all attributes.
182
192
  # @return [Integer] Hash code
183
193
  def hash
184
- [display_id, input_format, item_id, json, key_name, plaintext, token, uid_token].hash
194
+ [display_id, input_format, item_id, json, key_name, plaintext, token, uid_token, version].hash
185
195
  end
186
196
 
187
197
  # Builds the object from hash
@@ -132,6 +132,9 @@ module Akeyless
132
132
  # Delete the secret from the remote target as well, relevant only when usc-name is not empty (relevant only for HasiCorp Vault migration)
133
133
  attr_accessor :delete_remote
134
134
 
135
+ # A comma separated list of IPs, CIDR ranges, or DNS names to exclude from the scan
136
+ attr_accessor :exclude_hosts
137
+
135
138
  # How many days before the expiration of the certificate would you like to be notified.
136
139
  attr_accessor :expiration_event_in
137
140
 
@@ -285,6 +288,7 @@ module Akeyless
285
288
  :'conjur_url' => :'conjur-url',
286
289
  :'conjur_username' => :'conjur-username',
287
290
  :'delete_remote' => :'delete-remote',
291
+ :'exclude_hosts' => :'exclude-hosts',
288
292
  :'expiration_event_in' => :'expiration-event-in',
289
293
  :'gcp_key' => :'gcp-key',
290
294
  :'gcp_project_id' => :'gcp-project-id',
@@ -372,6 +376,7 @@ module Akeyless
372
376
  :'conjur_url' => :'String',
373
377
  :'conjur_username' => :'String',
374
378
  :'delete_remote' => :'Boolean',
379
+ :'exclude_hosts' => :'String',
375
380
  :'expiration_event_in' => :'Array<String>',
376
381
  :'gcp_key' => :'String',
377
382
  :'gcp_project_id' => :'String',
@@ -609,6 +614,10 @@ module Akeyless
609
614
  self.delete_remote = attributes[:'delete_remote']
610
615
  end
611
616
 
617
+ if attributes.key?(:'exclude_hosts')
618
+ self.exclude_hosts = attributes[:'exclude_hosts']
619
+ end
620
+
612
621
  if attributes.key?(:'expiration_event_in')
613
622
  if (value = attributes[:'expiration_event_in']).is_a?(Array)
614
623
  self.expiration_event_in = value
@@ -870,6 +879,7 @@ module Akeyless
870
879
  conjur_url == o.conjur_url &&
871
880
  conjur_username == o.conjur_username &&
872
881
  delete_remote == o.delete_remote &&
882
+ exclude_hosts == o.exclude_hosts &&
873
883
  expiration_event_in == o.expiration_event_in &&
874
884
  gcp_key == o.gcp_key &&
875
885
  gcp_project_id == o.gcp_project_id &&
@@ -918,7 +928,7 @@ module Akeyless
918
928
  # Calculates hash code according to all attributes.
919
929
  # @return [Integer] Hash code
920
930
  def hash
921
- [service_account_key_decoded, ad_auto_rotate, ad_cert_expiration_event_in, ad_certificates_path_template, ad_computer_base_dn, ad_discover_iis_app, ad_discover_services, ad_discovery_types, ad_domain_name, ad_domain_users_path_template, ad_local_users_ignore, ad_local_users_path_template, ad_os_filter, ad_rotation_hour, ad_rotation_interval, ad_sra_enable_rdp, ad_ssh_port, ad_target_format, ad_target_name, ad_targets_path_template, ad_targets_type, ad_user_base_dn, ad_user_groups, ad_winrm_over_http, ad_winrm_port, ad_discover_local_users, ai_certificate_discovery, aws_key, aws_key_id, aws_region, azure_client_id, azure_kv_name, azure_secret, azure_tenant_id, conjur_account, conjur_api_key, conjur_url, conjur_username, delete_remote, expiration_event_in, gcp_key, gcp_project_id, hashi_json, hashi_metadata_mode, hashi_ns, hashi_token, hashi_url, hosts, json, k8s_ca_certificate, k8s_client_certificate, k8s_client_key, k8s_namespace, k8s_password, k8s_skip_system, k8s_token, k8s_url, k8s_username, name, port_ranges, protection_key, si_auto_rotate, si_rotation_hour, si_rotation_interval, si_sra_enable_rdp, si_target_name, si_user_groups, si_users_ignore, si_users_path_template, target_location, target_name, token, type, uid_token, usc_name, use_gw_cloud_identity].hash
931
+ [service_account_key_decoded, ad_auto_rotate, ad_cert_expiration_event_in, ad_certificates_path_template, ad_computer_base_dn, ad_discover_iis_app, ad_discover_services, ad_discovery_types, ad_domain_name, ad_domain_users_path_template, ad_local_users_ignore, ad_local_users_path_template, ad_os_filter, ad_rotation_hour, ad_rotation_interval, ad_sra_enable_rdp, ad_ssh_port, ad_target_format, ad_target_name, ad_targets_path_template, ad_targets_type, ad_user_base_dn, ad_user_groups, ad_winrm_over_http, ad_winrm_port, ad_discover_local_users, ai_certificate_discovery, aws_key, aws_key_id, aws_region, azure_client_id, azure_kv_name, azure_secret, azure_tenant_id, conjur_account, conjur_api_key, conjur_url, conjur_username, delete_remote, exclude_hosts, expiration_event_in, gcp_key, gcp_project_id, hashi_json, hashi_metadata_mode, hashi_ns, hashi_token, hashi_url, hosts, json, k8s_ca_certificate, k8s_client_certificate, k8s_client_key, k8s_namespace, k8s_password, k8s_skip_system, k8s_token, k8s_url, k8s_username, name, port_ranges, protection_key, si_auto_rotate, si_rotation_hour, si_rotation_interval, si_sra_enable_rdp, si_target_name, si_user_groups, si_users_ignore, si_users_path_template, target_location, target_name, token, type, uid_token, usc_name, use_gw_cloud_identity].hash
922
932
  end
923
933
 
924
934
  # Builds the object from hash
@@ -132,6 +132,9 @@ module Akeyless
132
132
  # Delete the secret from the remote target as well, relevant only when usc-name is not empty (relevant only for HasiCorp Vault migration)
133
133
  attr_accessor :delete_remote
134
134
 
135
+ # A comma separated list of IPs, CIDR ranges, or DNS names to exclude from the scan
136
+ attr_accessor :exclude_hosts
137
+
135
138
  # How many days before the expiration of the certificate would you like to be notified.
136
139
  attr_accessor :expiration_event_in
137
140
 
@@ -288,6 +291,7 @@ module Akeyless
288
291
  :'conjur_url' => :'conjur-url',
289
292
  :'conjur_username' => :'conjur-username',
290
293
  :'delete_remote' => :'delete-remote',
294
+ :'exclude_hosts' => :'exclude-hosts',
291
295
  :'expiration_event_in' => :'expiration-event-in',
292
296
  :'gcp_key' => :'gcp-key',
293
297
  :'gcp_project_id' => :'gcp-project-id',
@@ -376,6 +380,7 @@ module Akeyless
376
380
  :'conjur_url' => :'String',
377
381
  :'conjur_username' => :'String',
378
382
  :'delete_remote' => :'Boolean',
383
+ :'exclude_hosts' => :'String',
379
384
  :'expiration_event_in' => :'Array<String>',
380
385
  :'gcp_key' => :'String',
381
386
  :'gcp_project_id' => :'String',
@@ -614,6 +619,10 @@ module Akeyless
614
619
  self.delete_remote = attributes[:'delete_remote']
615
620
  end
616
621
 
622
+ if attributes.key?(:'exclude_hosts')
623
+ self.exclude_hosts = attributes[:'exclude_hosts']
624
+ end
625
+
617
626
  if attributes.key?(:'expiration_event_in')
618
627
  if (value = attributes[:'expiration_event_in']).is_a?(Array)
619
628
  self.expiration_event_in = value
@@ -872,6 +881,7 @@ module Akeyless
872
881
  conjur_url == o.conjur_url &&
873
882
  conjur_username == o.conjur_username &&
874
883
  delete_remote == o.delete_remote &&
884
+ exclude_hosts == o.exclude_hosts &&
875
885
  expiration_event_in == o.expiration_event_in &&
876
886
  gcp_key == o.gcp_key &&
877
887
  gcp_project_id == o.gcp_project_id &&
@@ -921,7 +931,7 @@ module Akeyless
921
931
  # Calculates hash code according to all attributes.
922
932
  # @return [Integer] Hash code
923
933
  def hash
924
- [service_account_key_decoded, ad_auto_rotate, ad_cert_expiration_event_in, ad_certificates_path_template, ad_computer_base_dn, ad_discover_iis_app, ad_discover_services, ad_discovery_types, ad_domain_name, ad_domain_users_path_template, ad_local_users_ignore, ad_local_users_path_template, ad_os_filter, ad_rotation_hour, ad_rotation_interval, ad_sra_enable_rdp, ad_ssh_port, ad_target_format, ad_target_name, ad_targets_path_template, ad_targets_type, ad_user_base_dn, ad_user_groups, ad_winrm_over_http, ad_winrm_port, ad_discover_local_users, ai_certificate_discovery, aws_key, aws_key_id, aws_region, azure_client_id, azure_kv_name, azure_secret, azure_tenant_id, conjur_account, conjur_api_key, conjur_url, conjur_username, delete_remote, expiration_event_in, gcp_key, gcp_project_id, hashi_json, hashi_metadata_mode, hashi_ns, hashi_token, hashi_url, hosts, id, json, k8s_ca_certificate, k8s_client_certificate, k8s_client_key, k8s_namespace, k8s_password, k8s_skip_system, k8s_token, k8s_url, k8s_username, name, new_name, port_ranges, protection_key, si_auto_rotate, si_rotation_hour, si_rotation_interval, si_sra_enable_rdp, si_target_name, si_user_groups, si_users_ignore, si_users_path_template, target_location, target_name, token, uid_token, usc_name, use_gw_cloud_identity].hash
934
+ [service_account_key_decoded, ad_auto_rotate, ad_cert_expiration_event_in, ad_certificates_path_template, ad_computer_base_dn, ad_discover_iis_app, ad_discover_services, ad_discovery_types, ad_domain_name, ad_domain_users_path_template, ad_local_users_ignore, ad_local_users_path_template, ad_os_filter, ad_rotation_hour, ad_rotation_interval, ad_sra_enable_rdp, ad_ssh_port, ad_target_format, ad_target_name, ad_targets_path_template, ad_targets_type, ad_user_base_dn, ad_user_groups, ad_winrm_over_http, ad_winrm_port, ad_discover_local_users, ai_certificate_discovery, aws_key, aws_key_id, aws_region, azure_client_id, azure_kv_name, azure_secret, azure_tenant_id, conjur_account, conjur_api_key, conjur_url, conjur_username, delete_remote, exclude_hosts, expiration_event_in, gcp_key, gcp_project_id, hashi_json, hashi_metadata_mode, hashi_ns, hashi_token, hashi_url, hosts, id, json, k8s_ca_certificate, k8s_client_certificate, k8s_client_key, k8s_namespace, k8s_password, k8s_skip_system, k8s_token, k8s_url, k8s_username, name, new_name, port_ranges, protection_key, si_auto_rotate, si_rotation_hour, si_rotation_interval, si_sra_enable_rdp, si_target_name, si_user_groups, si_users_ignore, si_users_path_template, target_location, target_name, token, uid_token, usc_name, use_gw_cloud_identity].hash
925
935
  end
926
936
 
927
937
  # Builds the object from hash