akeyless 5.0.21 → 5.0.22

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 (87) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -1
  3. data/docs/AccountGeneralSettings.md +2 -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/AuthMethodUpdateCert.md +2 -0
  8. data/docs/AzureADAccessRules.md +2 -0
  9. data/docs/AzureTargetDetails.md +2 -0
  10. data/docs/CertAccessRules.md +2 -0
  11. data/docs/CertificateChainInfo.md +2 -0
  12. data/docs/Configure.md +2 -0
  13. data/docs/ConjurMigration.md +20 -0
  14. data/docs/ConjurPayload.md +24 -0
  15. data/docs/CreateAuthMethodCert.md +2 -0
  16. data/docs/CreateAzureTarget.md +2 -0
  17. data/docs/CreateUSC.md +10 -0
  18. data/docs/DSProducerDetails.md +2 -0
  19. data/docs/DefaultAuthMethodSettings.md +20 -0
  20. data/docs/GatewayCreateMigration.md +15 -1
  21. data/docs/GatewayUpdateMigration.md +14 -0
  22. data/docs/GetPKICertificateOutput.md +2 -0
  23. data/docs/GithubMetadata.md +28 -0
  24. data/docs/HTTPChallengeInfo.md +26 -0
  25. data/docs/IssuerOverviewInfo.md +22 -0
  26. data/docs/ItemGeneralInfo.md +2 -0
  27. data/docs/MigrationStatusReplyObj.md +2 -0
  28. data/docs/MigrationsConfigPart.md +2 -0
  29. data/docs/SecretInfo.md +2 -0
  30. data/docs/TargetCreateAzure.md +2 -0
  31. data/docs/TargetUpdateAzure.md +2 -0
  32. data/docs/UpdateAuthMethodCert.md +2 -0
  33. data/docs/UpdateAzureTarget.md +2 -0
  34. data/docs/V2Api.md +126 -0
  35. data/docs/ValidateCertificateChallenge.md +30 -0
  36. data/docs/ValidateCertificateChallengeOutput.md +24 -0
  37. data/docs/VaultAddress.md +20 -0
  38. data/docs/VaultAddressOutput.md +20 -0
  39. data/lib/akeyless/api/v2_api.rb +128 -0
  40. data/lib/akeyless/models/account_general_settings.rb +10 -1
  41. data/lib/akeyless/models/active_directory_payload.rb +30 -1
  42. data/lib/akeyless/models/auth.rb +13 -1
  43. data/lib/akeyless/models/auth_method_create_cert.rb +11 -1
  44. data/lib/akeyless/models/auth_method_update_cert.rb +11 -1
  45. data/lib/akeyless/models/azure_ad_access_rules.rb +11 -1
  46. data/lib/akeyless/models/azure_target_details.rb +10 -1
  47. data/lib/akeyless/models/cert_access_rules.rb +11 -1
  48. data/lib/akeyless/models/certificate_chain_info.rb +11 -1
  49. data/lib/akeyless/models/configure.rb +13 -1
  50. data/lib/akeyless/models/conjur_migration.rb +223 -0
  51. data/lib/akeyless/models/conjur_payload.rb +241 -0
  52. data/lib/akeyless/models/create_auth_method_cert.rb +11 -1
  53. data/lib/akeyless/models/create_azure_target.rb +13 -1
  54. data/lib/akeyless/models/create_usc.rb +54 -1
  55. data/lib/akeyless/models/default_auth_method_settings.rb +223 -0
  56. data/lib/akeyless/models/ds_producer_details.rb +10 -1
  57. data/lib/akeyless/models/gateway_create_migration.rb +74 -2
  58. data/lib/akeyless/models/gateway_update_migration.rb +73 -1
  59. data/lib/akeyless/models/get_pki_certificate_output.rb +10 -1
  60. data/lib/akeyless/models/github_metadata.rb +259 -0
  61. data/lib/akeyless/models/http_challenge_info.rb +251 -0
  62. data/lib/akeyless/models/issuer_overview_info.rb +232 -0
  63. data/lib/akeyless/models/item_general_info.rb +10 -1
  64. data/lib/akeyless/models/migration_status_reply_obj.rb +10 -1
  65. data/lib/akeyless/models/migrations_config_part.rb +12 -1
  66. data/lib/akeyless/models/secret_info.rb +10 -1
  67. data/lib/akeyless/models/target_create_azure.rb +13 -1
  68. data/lib/akeyless/models/target_update_azure.rb +13 -1
  69. data/lib/akeyless/models/update_auth_method_cert.rb +11 -1
  70. data/lib/akeyless/models/update_azure_target.rb +13 -1
  71. data/lib/akeyless/models/validate_certificate_challenge.rb +279 -0
  72. data/lib/akeyless/models/validate_certificate_challenge_output.rb +242 -0
  73. data/lib/akeyless/models/vault_address.rb +227 -0
  74. data/lib/akeyless/models/vault_address_output.rb +223 -0
  75. data/lib/akeyless/version.rb +1 -1
  76. data/lib/akeyless.rb +10 -0
  77. data/spec/models/conjur_migration_spec.rb +42 -0
  78. data/spec/models/conjur_payload_spec.rb +54 -0
  79. data/spec/models/default_auth_method_settings_spec.rb +42 -0
  80. data/spec/models/github_metadata_spec.rb +66 -0
  81. data/spec/models/http_challenge_info_spec.rb +60 -0
  82. data/spec/models/issuer_overview_info_spec.rb +48 -0
  83. data/spec/models/validate_certificate_challenge_output_spec.rb +54 -0
  84. data/spec/models/validate_certificate_challenge_spec.rb +72 -0
  85. data/spec/models/vault_address_output_spec.rb +42 -0
  86. data/spec/models/vault_address_spec.rb +42 -0
  87. metadata +41 -1
@@ -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
@@ -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
@@ -15,6 +15,8 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class MigrationStatusReplyObj
18
+ attr_accessor :certificates
19
+
18
20
  attr_accessor :computers
19
21
 
20
22
  attr_accessor :duration_time
@@ -48,6 +50,7 @@ module Akeyless
48
50
  # Attribute mapping from ruby-style variable name to JSON key.
49
51
  def self.attribute_map
50
52
  {
53
+ :'certificates' => :'certificates',
51
54
  :'computers' => :'computers',
52
55
  :'duration_time' => :'duration_time',
53
56
  :'error' => :'error',
@@ -74,6 +77,7 @@ module Akeyless
74
77
  # Attribute type mapping.
75
78
  def self.openapi_types
76
79
  {
80
+ :'certificates' => :'MigrationItems',
77
81
  :'computers' => :'Integer',
78
82
  :'duration_time' => :'String',
79
83
  :'error' => :'String',
@@ -113,6 +117,10 @@ module Akeyless
113
117
  h[k.to_sym] = v
114
118
  }
115
119
 
120
+ if attributes.key?(:'certificates')
121
+ self.certificates = attributes[:'certificates']
122
+ end
123
+
116
124
  if attributes.key?(:'computers')
117
125
  self.computers = attributes[:'computers']
118
126
  end
@@ -194,6 +202,7 @@ module Akeyless
194
202
  def ==(o)
195
203
  return true if self.equal?(o)
196
204
  self.class == o.class &&
205
+ certificates == o.certificates &&
197
206
  computers == o.computers &&
198
207
  duration_time == o.duration_time &&
199
208
  error == o.error &&
@@ -220,7 +229,7 @@ module Akeyless
220
229
  # Calculates hash code according to all attributes.
221
230
  # @return [Integer] Hash code
222
231
  def hash
223
- [computers, duration_time, error, last_status_message, max_name_length, max_value_length, migration_id, migration_items, migration_name, migration_state, migration_type, migration_type_name, rotated_secrets, start_time, targets].hash
232
+ [certificates, computers, duration_time, error, last_status_message, max_name_length, max_value_length, migration_id, migration_items, migration_name, migration_state, migration_type, migration_type_name, rotated_secrets, start_time, targets].hash
224
233
  end
225
234
 
226
235
  # Builds the object from hash
@@ -23,6 +23,8 @@ module Akeyless
23
23
 
24
24
  attr_accessor :certificate_migrations
25
25
 
26
+ attr_accessor :conjur_migrations
27
+
26
28
  attr_accessor :gcp_secrets_migrations
27
29
 
28
30
  attr_accessor :hashi_migrations
@@ -42,6 +44,7 @@ module Akeyless
42
44
  :'aws_secrets_migrations' => :'aws_secrets_migrations',
43
45
  :'azure_kv_migrations' => :'azure_kv_migrations',
44
46
  :'certificate_migrations' => :'certificate_migrations',
47
+ :'conjur_migrations' => :'conjur_migrations',
45
48
  :'gcp_secrets_migrations' => :'gcp_secrets_migrations',
46
49
  :'hashi_migrations' => :'hashi_migrations',
47
50
  :'k8s_migrations' => :'k8s_migrations',
@@ -63,6 +66,7 @@ module Akeyless
63
66
  :'aws_secrets_migrations' => :'Array<AWSSecretsMigration>',
64
67
  :'azure_kv_migrations' => :'Array<AzureKeyVaultMigration>',
65
68
  :'certificate_migrations' => :'Array<CertificateMigration>',
69
+ :'conjur_migrations' => :'Array<ConjurMigration>',
66
70
  :'gcp_secrets_migrations' => :'Array<GCPSecretsMigration>',
67
71
  :'hashi_migrations' => :'Array<HashiMigration>',
68
72
  :'k8s_migrations' => :'Array<K8SMigration>',
@@ -117,6 +121,12 @@ module Akeyless
117
121
  end
118
122
  end
119
123
 
124
+ if attributes.key?(:'conjur_migrations')
125
+ if (value = attributes[:'conjur_migrations']).is_a?(Array)
126
+ self.conjur_migrations = value
127
+ end
128
+ end
129
+
120
130
  if attributes.key?(:'gcp_secrets_migrations')
121
131
  if (value = attributes[:'gcp_secrets_migrations']).is_a?(Array)
122
132
  self.gcp_secrets_migrations = value
@@ -178,6 +188,7 @@ module Akeyless
178
188
  aws_secrets_migrations == o.aws_secrets_migrations &&
179
189
  azure_kv_migrations == o.azure_kv_migrations &&
180
190
  certificate_migrations == o.certificate_migrations &&
191
+ conjur_migrations == o.conjur_migrations &&
181
192
  gcp_secrets_migrations == o.gcp_secrets_migrations &&
182
193
  hashi_migrations == o.hashi_migrations &&
183
194
  k8s_migrations == o.k8s_migrations &&
@@ -195,7 +206,7 @@ module Akeyless
195
206
  # Calculates hash code according to all attributes.
196
207
  # @return [Integer] Hash code
197
208
  def hash
198
- [active_directory_migrations, aws_secrets_migrations, azure_kv_migrations, certificate_migrations, gcp_secrets_migrations, hashi_migrations, k8s_migrations, mock_migrations, one_password_migrations, server_inventory_migrations].hash
209
+ [active_directory_migrations, aws_secrets_migrations, azure_kv_migrations, certificate_migrations, conjur_migrations, gcp_secrets_migrations, hashi_migrations, k8s_migrations, mock_migrations, one_password_migrations, server_inventory_migrations].hash
199
210
  end
200
211
 
201
212
  # Builds the object from hash
@@ -21,6 +21,8 @@ module Akeyless
21
21
 
22
22
  attr_accessor :expiration
23
23
 
24
+ attr_accessor :github
25
+
24
26
  attr_accessor :key_id
25
27
 
26
28
  attr_accessor :last_retrieved
@@ -49,6 +51,7 @@ module Akeyless
49
51
  :'created' => :'created',
50
52
  :'description' => :'description',
51
53
  :'expiration' => :'expiration',
54
+ :'github' => :'github',
52
55
  :'key_id' => :'key_id',
53
56
  :'last_retrieved' => :'last_retrieved',
54
57
  :'location' => :'location',
@@ -74,6 +77,7 @@ module Akeyless
74
77
  :'created' => :'Time',
75
78
  :'description' => :'String',
76
79
  :'expiration' => :'Time',
80
+ :'github' => :'GithubMetadata',
77
81
  :'key_id' => :'String',
78
82
  :'last_retrieved' => :'Time',
79
83
  :'location' => :'Object',
@@ -122,6 +126,10 @@ module Akeyless
122
126
  self.expiration = attributes[:'expiration']
123
127
  end
124
128
 
129
+ if attributes.key?(:'github')
130
+ self.github = attributes[:'github']
131
+ end
132
+
125
133
  if attributes.key?(:'key_id')
126
134
  self.key_id = attributes[:'key_id']
127
135
  end
@@ -192,6 +200,7 @@ module Akeyless
192
200
  created == o.created &&
193
201
  description == o.description &&
194
202
  expiration == o.expiration &&
203
+ github == o.github &&
195
204
  key_id == o.key_id &&
196
205
  last_retrieved == o.last_retrieved &&
197
206
  location == o.location &&
@@ -214,7 +223,7 @@ module Akeyless
214
223
  # Calculates hash code according to all attributes.
215
224
  # @return [Integer] Hash code
216
225
  def hash
217
- [created, description, expiration, key_id, last_retrieved, location, name, region, secret_id, status, tags, thumbprint, type, version].hash
226
+ [created, description, expiration, github, key_id, last_retrieved, location, name, region, secret_id, status, tags, thumbprint, type, version].hash
218
227
  end
219
228
 
220
229
  # Builds the object from hash
@@ -15,6 +15,9 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class TargetCreateAzure
18
+ # Azure cloud environment to use. Values: AzureCloud (default), AzureUSGovernment, AzureChinaCloud.
19
+ attr_accessor :azure_cloud
20
+
18
21
  # Azure client/application id
19
22
  attr_accessor :client_id
20
23
 
@@ -63,6 +66,7 @@ module Akeyless
63
66
  # Attribute mapping from ruby-style variable name to JSON key.
64
67
  def self.attribute_map
65
68
  {
69
+ :'azure_cloud' => :'azure-cloud',
66
70
  :'client_id' => :'client-id',
67
71
  :'client_secret' => :'client-secret',
68
72
  :'connection_type' => :'connection-type',
@@ -89,6 +93,7 @@ module Akeyless
89
93
  # Attribute type mapping.
90
94
  def self.openapi_types
91
95
  {
96
+ :'azure_cloud' => :'String',
92
97
  :'client_id' => :'String',
93
98
  :'client_secret' => :'String',
94
99
  :'connection_type' => :'String',
@@ -128,6 +133,12 @@ module Akeyless
128
133
  h[k.to_sym] = v
129
134
  }
130
135
 
136
+ if attributes.key?(:'azure_cloud')
137
+ self.azure_cloud = attributes[:'azure_cloud']
138
+ else
139
+ self.azure_cloud = 'AzureCloud'
140
+ end
141
+
131
142
  if attributes.key?(:'client_id')
132
143
  self.client_id = attributes[:'client_id']
133
144
  end
@@ -220,6 +231,7 @@ module Akeyless
220
231
  def ==(o)
221
232
  return true if self.equal?(o)
222
233
  self.class == o.class &&
234
+ azure_cloud == o.azure_cloud &&
223
235
  client_id == o.client_id &&
224
236
  client_secret == o.client_secret &&
225
237
  connection_type == o.connection_type &&
@@ -246,7 +258,7 @@ module Akeyless
246
258
  # Calculates hash code according to all attributes.
247
259
  # @return [Integer] Hash code
248
260
  def hash
249
- [client_id, client_secret, connection_type, description, json, key, max_versions, name, resource_group_name, resource_name, subscription_id, tenant_id, token, uid_token, use_gw_cloud_identity].hash
261
+ [azure_cloud, client_id, client_secret, connection_type, description, json, key, max_versions, name, resource_group_name, resource_name, subscription_id, tenant_id, token, uid_token, use_gw_cloud_identity].hash
250
262
  end
251
263
 
252
264
  # Builds the object from hash
@@ -15,6 +15,9 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class TargetUpdateAzure
18
+ # Azure cloud environment to use. Values: AzureCloud (default), AzureUSGovernment, AzureChinaCloud.
19
+ attr_accessor :azure_cloud
20
+
18
21
  # Azure client/application id
19
22
  attr_accessor :client_id
20
23
 
@@ -69,6 +72,7 @@ module Akeyless
69
72
  # Attribute mapping from ruby-style variable name to JSON key.
70
73
  def self.attribute_map
71
74
  {
75
+ :'azure_cloud' => :'azure-cloud',
72
76
  :'client_id' => :'client-id',
73
77
  :'client_secret' => :'client-secret',
74
78
  :'connection_type' => :'connection-type',
@@ -97,6 +101,7 @@ module Akeyless
97
101
  # Attribute type mapping.
98
102
  def self.openapi_types
99
103
  {
104
+ :'azure_cloud' => :'String',
100
105
  :'client_id' => :'String',
101
106
  :'client_secret' => :'String',
102
107
  :'connection_type' => :'String',
@@ -138,6 +143,12 @@ module Akeyless
138
143
  h[k.to_sym] = v
139
144
  }
140
145
 
146
+ if attributes.key?(:'azure_cloud')
147
+ self.azure_cloud = attributes[:'azure_cloud']
148
+ else
149
+ self.azure_cloud = 'AzureCloud'
150
+ end
151
+
141
152
  if attributes.key?(:'client_id')
142
153
  self.client_id = attributes[:'client_id']
143
154
  end
@@ -238,6 +249,7 @@ module Akeyless
238
249
  def ==(o)
239
250
  return true if self.equal?(o)
240
251
  self.class == o.class &&
252
+ azure_cloud == o.azure_cloud &&
241
253
  client_id == o.client_id &&
242
254
  client_secret == o.client_secret &&
243
255
  connection_type == o.connection_type &&
@@ -266,7 +278,7 @@ module Akeyless
266
278
  # Calculates hash code according to all attributes.
267
279
  # @return [Integer] Hash code
268
280
  def hash
269
- [client_id, client_secret, connection_type, description, json, keep_prev_version, key, max_versions, name, new_name, resource_group_name, resource_name, subscription_id, tenant_id, token, uid_token, use_gw_cloud_identity].hash
281
+ [azure_cloud, client_id, client_secret, connection_type, description, json, keep_prev_version, key, max_versions, name, new_name, resource_group_name, resource_name, subscription_id, tenant_id, token, uid_token, use_gw_cloud_identity].hash
270
282
  end
271
283
 
272
284
  # Builds the object from hash
@@ -82,6 +82,9 @@ module Akeyless
82
82
  # Choose the relevant product type for the auth method [sm, sra, pm, dp, ca]
83
83
  attr_accessor :product_type
84
84
 
85
+ # Require certificate CRL distribution points (CDP) and enforce CRL validation during authentication.
86
+ attr_accessor :require_crl_dp
87
+
85
88
  # A list of revoked cert ids
86
89
  attr_accessor :revoked_cert_ids
87
90
 
@@ -119,6 +122,7 @@ module Akeyless
119
122
  :'name' => :'name',
120
123
  :'new_name' => :'new-name',
121
124
  :'product_type' => :'product-type',
125
+ :'require_crl_dp' => :'require-crl-dp',
122
126
  :'revoked_cert_ids' => :'revoked-cert-ids',
123
127
  :'token' => :'token',
124
128
  :'uid_token' => :'uid-token',
@@ -156,6 +160,7 @@ module Akeyless
156
160
  :'name' => :'String',
157
161
  :'new_name' => :'String',
158
162
  :'product_type' => :'Array<String>',
163
+ :'require_crl_dp' => :'Boolean',
159
164
  :'revoked_cert_ids' => :'Array<String>',
160
165
  :'token' => :'String',
161
166
  :'uid_token' => :'String',
@@ -304,6 +309,10 @@ module Akeyless
304
309
  end
305
310
  end
306
311
 
312
+ if attributes.key?(:'require_crl_dp')
313
+ self.require_crl_dp = attributes[:'require_crl_dp']
314
+ end
315
+
307
316
  if attributes.key?(:'revoked_cert_ids')
308
317
  if (value = attributes[:'revoked_cert_ids']).is_a?(Array)
309
318
  self.revoked_cert_ids = value
@@ -377,6 +386,7 @@ module Akeyless
377
386
  name == o.name &&
378
387
  new_name == o.new_name &&
379
388
  product_type == o.product_type &&
389
+ require_crl_dp == o.require_crl_dp &&
380
390
  revoked_cert_ids == o.revoked_cert_ids &&
381
391
  token == o.token &&
382
392
  uid_token == o.uid_token &&
@@ -392,7 +402,7 @@ module Akeyless
392
402
  # Calculates hash code according to all attributes.
393
403
  # @return [Integer] Hash code
394
404
  def hash
395
- [access_expires, allowed_client_type, allowed_cors, audit_logs_claims, bound_common_names, bound_dns_sans, bound_email_sans, bound_extensions, bound_ips, bound_organizational_units, bound_uri_sans, certificate_data, delete_protection, description, expiration_event_in, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, new_name, product_type, revoked_cert_ids, token, uid_token, unique_identifier].hash
405
+ [access_expires, allowed_client_type, allowed_cors, audit_logs_claims, bound_common_names, bound_dns_sans, bound_email_sans, bound_extensions, bound_ips, bound_organizational_units, bound_uri_sans, certificate_data, delete_protection, description, expiration_event_in, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, new_name, product_type, require_crl_dp, revoked_cert_ids, token, uid_token, unique_identifier].hash
396
406
  end
397
407
 
398
408
  # Builds the object from hash
@@ -16,6 +16,9 @@ require 'time'
16
16
  module Akeyless
17
17
  # updateAzureTarget is a command that updates an existing target. [Deprecated: Use target-update-azure command]
18
18
  class UpdateAzureTarget
19
+ # Azure cloud environment to use. Values: AzureCloud (default), AzureUSGovernment, AzureChinaCloud.
20
+ attr_accessor :azure_cloud
21
+
19
22
  # Azure client/application id
20
23
  attr_accessor :client_id
21
24
 
@@ -76,6 +79,7 @@ module Akeyless
76
79
  # Attribute mapping from ruby-style variable name to JSON key.
77
80
  def self.attribute_map
78
81
  {
82
+ :'azure_cloud' => :'azure-cloud',
79
83
  :'client_id' => :'client-id',
80
84
  :'client_secret' => :'client-secret',
81
85
  :'comment' => :'comment',
@@ -106,6 +110,7 @@ module Akeyless
106
110
  # Attribute type mapping.
107
111
  def self.openapi_types
108
112
  {
113
+ :'azure_cloud' => :'String',
109
114
  :'client_id' => :'String',
110
115
  :'client_secret' => :'String',
111
116
  :'comment' => :'String',
@@ -149,6 +154,12 @@ module Akeyless
149
154
  h[k.to_sym] = v
150
155
  }
151
156
 
157
+ if attributes.key?(:'azure_cloud')
158
+ self.azure_cloud = attributes[:'azure_cloud']
159
+ else
160
+ self.azure_cloud = 'AzureCloud'
161
+ end
162
+
152
163
  if attributes.key?(:'client_id')
153
164
  self.client_id = attributes[:'client_id']
154
165
  end
@@ -257,6 +268,7 @@ module Akeyless
257
268
  def ==(o)
258
269
  return true if self.equal?(o)
259
270
  self.class == o.class &&
271
+ azure_cloud == o.azure_cloud &&
260
272
  client_id == o.client_id &&
261
273
  client_secret == o.client_secret &&
262
274
  comment == o.comment &&
@@ -287,7 +299,7 @@ module Akeyless
287
299
  # Calculates hash code according to all attributes.
288
300
  # @return [Integer] Hash code
289
301
  def hash
290
- [client_id, client_secret, comment, connection_type, description, json, keep_prev_version, key, max_versions, name, new_name, resource_group_name, resource_name, subscription_id, tenant_id, token, uid_token, update_version, use_gw_cloud_identity].hash
302
+ [azure_cloud, client_id, client_secret, comment, connection_type, description, json, keep_prev_version, key, max_versions, name, new_name, resource_group_name, resource_name, subscription_id, tenant_id, token, uid_token, update_version, use_gw_cloud_identity].hash
291
303
  end
292
304
 
293
305
  # Builds the object from hash