akeyless 2.16.4 → 2.16.7
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.
- checksums.yaml +4 -4
- data/README.md +44 -1
- data/docs/AwsS3LogForwardingConfig.md +2 -0
- data/docs/CertAccessRules.md +1 -1
- data/docs/CreateAuthMethod.md +1 -1
- data/docs/CreateAuthMethodAWSIAM.md +1 -1
- data/docs/CreateAuthMethodAzureAD.md +1 -1
- data/docs/CreateAuthMethodCert.md +1 -1
- data/docs/CreateAuthMethodGCP.md +1 -1
- data/docs/CreateAuthMethodHuawei.md +1 -1
- data/docs/CreateAuthMethodK8S.md +1 -1
- data/docs/CreateAuthMethodLDAP.md +1 -1
- data/docs/CreateAuthMethodOAuth2.md +1 -1
- data/docs/CreateAuthMethodOIDC.md +1 -1
- data/docs/CreateAuthMethodSAML.md +1 -1
- data/docs/CreateAuthMethodUniversalIdentity.md +1 -1
- data/docs/CreateAzureTarget.md +6 -0
- data/docs/CreateClassicKey.md +12 -0
- data/docs/CreateRotatedSecret.md +30 -0
- data/docs/CreateSalesforceTarget.md +42 -0
- data/docs/CreateSalesforceTargetOutput.md +18 -0
- data/docs/CreateTokenizer.md +42 -0
- data/docs/CreateTokenizerOutput.md +18 -0
- data/docs/DSProducerDetails.md +6 -0
- data/docs/DeleteRoleRule.md +1 -1
- data/docs/Detokenize.md +26 -0
- data/docs/DetokenizeOutput.md +18 -0
- data/docs/DynamicSecretProducerInfo.md +2 -0
- data/docs/EmailTokenizerInfo.md +22 -0
- data/docs/GatewayCreateMigration.md +50 -0
- data/docs/GatewayCreateProducerRabbitMQ.md +2 -0
- data/docs/GatewayCreateProducerRedshift.md +2 -0
- data/docs/GatewayDeleteMigration.md +22 -0
- data/docs/GatewayGetMigration.md +22 -0
- data/docs/GatewayMigrationCreateOutput.md +18 -0
- data/docs/GatewayMigrationDeleteOutput.md +18 -0
- data/docs/GatewayMigrationGetOutput.md +18 -0
- data/docs/GatewayMigrationUpdateOutput.md +18 -0
- data/docs/GatewayUpdateMigration.md +52 -0
- data/docs/GatewayUpdateProducerRabbitMQ.md +2 -0
- data/docs/GatewayUpdateProducerRedshift.md +2 -0
- data/docs/GetRSAPublicOutput.md +1 -1
- data/docs/GetSecretValue.md +2 -0
- data/docs/HashiPayload.md +2 -0
- data/docs/Item.md +2 -0
- data/docs/ItemGeneralInfo.md +5 -1
- data/docs/ListItems.md +2 -0
- data/docs/ListTargets.md +2 -0
- data/docs/LogForwardingConfigPart.md +0 -2
- data/docs/Producer.md +2 -0
- data/docs/RegexpTokenizerInfo.md +24 -0
- data/docs/RotateSecret.md +22 -0
- data/docs/RotatedSecretOutput.md +18 -0
- data/docs/SetRoleRule.md +1 -1
- data/docs/SystemAccessCredentialsReplyObj.md +2 -0
- data/docs/Target.md +2 -0
- data/docs/TargetTypeDetailsInput.md +18 -0
- data/docs/Tokenize.md +26 -0
- data/docs/TokenizeOutput.md +20 -0
- data/docs/TokenizerInfo.md +18 -0
- data/docs/UpdateAuthMethod.md +1 -1
- data/docs/UpdateAuthMethodAWSIAM.md +1 -1
- data/docs/UpdateAuthMethodAzureAD.md +1 -1
- data/docs/UpdateAuthMethodCert.md +1 -1
- data/docs/UpdateAuthMethodGCP.md +1 -1
- data/docs/UpdateAuthMethodK8S.md +1 -1
- data/docs/UpdateAuthMethodLDAP.md +1 -1
- data/docs/UpdateAuthMethodOAuth2.md +1 -1
- data/docs/UpdateAuthMethodOIDC.md +1 -1
- data/docs/UpdateAuthMethodSAML.md +1 -1
- data/docs/UpdateAuthMethodUniversalIdentity.md +1 -1
- data/docs/UpdateAzureTarget.md +6 -0
- data/docs/UpdateLdapTarget.md +42 -0
- data/docs/UpdateLdapTargetDetails.md +40 -0
- data/docs/UpdateLdapTargetOutput.md +18 -0
- data/docs/UpdateRotatedSecret.md +30 -0
- data/docs/UpdateSalesforceTarget.md +48 -0
- data/docs/UpdateSalesforceTargetOutput.md +18 -0
- data/docs/UpdateTokenizer.md +46 -0
- data/docs/UpdateTokenizerOutput.md +18 -0
- data/docs/V2Api.md +888 -6
- data/docs/VaultlessTokenizerInfo.md +28 -0
- data/lib/akeyless/api/v2_api.rb +897 -1
- data/lib/akeyless/models/aws_s3_log_forwarding_config.rb +10 -1
- data/lib/akeyless/models/cert_access_rules.rb +2 -4
- data/lib/akeyless/models/create_auth_method.rb +0 -2
- data/lib/akeyless/models/create_auth_method_awsiam.rb +0 -2
- data/lib/akeyless/models/create_auth_method_azure_ad.rb +0 -2
- data/lib/akeyless/models/create_auth_method_cert.rb +0 -2
- data/lib/akeyless/models/create_auth_method_gcp.rb +0 -2
- data/lib/akeyless/models/create_auth_method_huawei.rb +0 -2
- data/lib/akeyless/models/create_auth_method_k8_s.rb +0 -2
- data/lib/akeyless/models/create_auth_method_ldap.rb +0 -2
- data/lib/akeyless/models/create_auth_method_o_auth2.rb +0 -2
- data/lib/akeyless/models/create_auth_method_oidc.rb +0 -2
- data/lib/akeyless/models/create_auth_method_saml.rb +0 -2
- data/lib/akeyless/models/create_auth_method_universal_identity.rb +0 -2
- data/lib/akeyless/models/create_azure_target.rb +31 -1
- data/lib/akeyless/models/create_classic_key.rb +61 -1
- data/lib/akeyless/models/create_rotated_secret.rb +163 -1
- data/lib/akeyless/models/create_salesforce_target.rb +375 -0
- data/lib/akeyless/models/create_salesforce_target_output.rb +219 -0
- data/lib/akeyless/models/create_tokenizer.rb +358 -0
- data/lib/akeyless/models/create_tokenizer_output.rb +219 -0
- data/lib/akeyless/models/delete_role_rule.rb +1 -1
- data/lib/akeyless/models/detokenize.rb +271 -0
- data/lib/akeyless/models/detokenize_output.rb +219 -0
- data/lib/akeyless/models/ds_producer_details.rb +28 -1
- data/lib/akeyless/models/dynamic_secret_producer_info.rb +10 -1
- data/lib/akeyless/models/email_tokenizer_info.rb +241 -0
- data/lib/akeyless/models/gateway_create_migration.rb +374 -0
- data/lib/akeyless/models/gateway_create_producer_rabbit_mq.rb +13 -1
- data/lib/akeyless/models/gateway_create_producer_redshift.rb +11 -1
- data/lib/akeyless/models/gateway_delete_migration.rb +246 -0
- data/lib/akeyless/models/gateway_get_migration.rb +240 -0
- data/lib/akeyless/models/gateway_migration_create_output.rb +219 -0
- data/lib/akeyless/models/gateway_migration_delete_output.rb +219 -0
- data/lib/akeyless/models/gateway_migration_get_output.rb +219 -0
- data/lib/akeyless/models/gateway_migration_update_output.rb +219 -0
- data/lib/akeyless/models/gateway_update_migration.rb +383 -0
- data/lib/akeyless/models/gateway_update_producer_hana_db.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_rabbit_mq.rb +13 -1
- data/lib/akeyless/models/gateway_update_producer_redshift.rb +11 -1
- data/lib/akeyless/models/get_rsa_public_output.rb +2 -4
- data/lib/akeyless/models/get_secret_value.rb +10 -1
- data/lib/akeyless/models/hashi_payload.rb +10 -1
- data/lib/akeyless/models/item.rb +10 -1
- data/lib/akeyless/models/item_general_info.rb +22 -4
- data/lib/akeyless/models/list_items.rb +10 -1
- data/lib/akeyless/models/list_targets.rb +13 -1
- data/lib/akeyless/models/log_forwarding_config_part.rb +1 -10
- data/lib/akeyless/models/producer.rb +10 -1
- data/lib/akeyless/models/regexp_tokenizer_info.rb +251 -0
- data/lib/akeyless/models/rotate_secret.rb +245 -0
- data/lib/akeyless/models/rotated_secret_output.rb +219 -0
- data/lib/akeyless/models/set_role_rule.rb +1 -1
- data/lib/akeyless/models/system_access_credentials_reply_obj.rb +11 -1
- data/lib/akeyless/models/target.rb +13 -1
- data/lib/akeyless/models/target_type_details_input.rb +86 -1
- data/lib/akeyless/models/tokenize.rb +271 -0
- data/lib/akeyless/models/tokenize_output.rb +228 -0
- data/lib/akeyless/models/tokenizer_info.rb +219 -0
- data/lib/akeyless/models/update_auth_method.rb +0 -2
- data/lib/akeyless/models/update_auth_method_awsiam.rb +0 -2
- data/lib/akeyless/models/update_auth_method_azure_ad.rb +0 -2
- data/lib/akeyless/models/update_auth_method_cert.rb +0 -2
- data/lib/akeyless/models/update_auth_method_gcp.rb +0 -2
- data/lib/akeyless/models/update_auth_method_k8_s.rb +0 -2
- data/lib/akeyless/models/update_auth_method_ldap.rb +0 -2
- data/lib/akeyless/models/update_auth_method_o_auth2.rb +0 -2
- data/lib/akeyless/models/update_auth_method_oidc.rb +0 -2
- data/lib/akeyless/models/update_auth_method_saml.rb +0 -2
- data/lib/akeyless/models/update_auth_method_universal_identity.rb +0 -2
- data/lib/akeyless/models/update_azure_target.rb +31 -1
- data/lib/akeyless/models/update_ldap_target.rb +339 -0
- data/lib/akeyless/models/update_ldap_target_details.rb +328 -0
- data/lib/akeyless/models/update_ldap_target_output.rb +219 -0
- data/lib/akeyless/models/update_rotated_secret.rb +163 -1
- data/lib/akeyless/models/update_salesforce_target.rb +404 -0
- data/lib/akeyless/models/update_salesforce_target_output.rb +219 -0
- data/lib/akeyless/models/update_tokenizer.rb +382 -0
- data/lib/akeyless/models/update_tokenizer_output.rb +219 -0
- data/lib/akeyless/models/vaultless_tokenizer_info.rb +267 -0
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +29 -0
- data/spec/models/create_salesforce_target_output_spec.rb +34 -0
- data/spec/models/create_salesforce_target_spec.rb +106 -0
- data/spec/models/create_tokenizer_output_spec.rb +34 -0
- data/spec/models/create_tokenizer_spec.rb +106 -0
- data/spec/models/detokenize_output_spec.rb +34 -0
- data/spec/models/detokenize_spec.rb +58 -0
- data/spec/models/email_tokenizer_info_spec.rb +46 -0
- data/spec/models/gateway_create_migration_spec.rb +130 -0
- data/spec/models/gateway_delete_migration_spec.rb +46 -0
- data/spec/models/gateway_get_migration_spec.rb +46 -0
- data/spec/models/gateway_migration_create_output_spec.rb +34 -0
- data/spec/models/gateway_migration_delete_output_spec.rb +34 -0
- data/spec/models/gateway_migration_get_output_spec.rb +34 -0
- data/spec/models/gateway_migration_update_output_spec.rb +34 -0
- data/spec/models/gateway_update_migration_spec.rb +136 -0
- data/spec/models/regexp_tokenizer_info_spec.rb +52 -0
- data/spec/models/rotate_secret_spec.rb +46 -0
- data/spec/models/rotated_secret_output_spec.rb +34 -0
- data/spec/models/tokenize_output_spec.rb +40 -0
- data/spec/models/tokenize_spec.rb +58 -0
- data/spec/models/tokenizer_info_spec.rb +34 -0
- data/spec/models/update_ldap_target_details_spec.rb +100 -0
- data/spec/models/update_ldap_target_output_spec.rb +34 -0
- data/spec/models/update_ldap_target_spec.rb +106 -0
- data/spec/models/update_salesforce_target_output_spec.rb +34 -0
- data/spec/models/update_salesforce_target_spec.rb +124 -0
- data/spec/models/update_tokenizer_output_spec.rb +34 -0
- data/spec/models/update_tokenizer_spec.rb +118 -0
- data/spec/models/vaultless_tokenizer_info_spec.rb +64 -0
- metadata +575 -459
|
@@ -0,0 +1,219 @@
|
|
|
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.0.0-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Akeyless
|
|
17
|
+
class UpdateLdapTargetOutput
|
|
18
|
+
attr_accessor :target_id
|
|
19
|
+
|
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
|
+
def self.attribute_map
|
|
22
|
+
{
|
|
23
|
+
:'target_id' => :'target_id'
|
|
24
|
+
}
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Returns all the JSON keys this model knows about
|
|
28
|
+
def self.acceptable_attributes
|
|
29
|
+
attribute_map.values
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Attribute type mapping.
|
|
33
|
+
def self.openapi_types
|
|
34
|
+
{
|
|
35
|
+
:'target_id' => :'Integer'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# List of attributes with nullable: true
|
|
40
|
+
def self.openapi_nullable
|
|
41
|
+
Set.new([
|
|
42
|
+
])
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Initializes the object
|
|
46
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
47
|
+
def initialize(attributes = {})
|
|
48
|
+
if (!attributes.is_a?(Hash))
|
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::UpdateLdapTargetOutput` initialize method"
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
53
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
54
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::UpdateLdapTargetOutput`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
56
|
+
end
|
|
57
|
+
h[k.to_sym] = v
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
if attributes.key?(:'target_id')
|
|
61
|
+
self.target_id = attributes[:'target_id']
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
66
|
+
# @return Array for valid properties with the reasons
|
|
67
|
+
def list_invalid_properties
|
|
68
|
+
invalid_properties = Array.new
|
|
69
|
+
invalid_properties
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Check to see if the all the properties in the model are valid
|
|
73
|
+
# @return true if the model is valid
|
|
74
|
+
def valid?
|
|
75
|
+
true
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Checks equality by comparing each attribute.
|
|
79
|
+
# @param [Object] Object to be compared
|
|
80
|
+
def ==(o)
|
|
81
|
+
return true if self.equal?(o)
|
|
82
|
+
self.class == o.class &&
|
|
83
|
+
target_id == o.target_id
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# @see the `==` method
|
|
87
|
+
# @param [Object] Object to be compared
|
|
88
|
+
def eql?(o)
|
|
89
|
+
self == o
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Calculates hash code according to all attributes.
|
|
93
|
+
# @return [Integer] Hash code
|
|
94
|
+
def hash
|
|
95
|
+
[target_id].hash
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Builds the object from hash
|
|
99
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
100
|
+
# @return [Object] Returns the model itself
|
|
101
|
+
def self.build_from_hash(attributes)
|
|
102
|
+
new.build_from_hash(attributes)
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Builds the object from hash
|
|
106
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
107
|
+
# @return [Object] Returns the model itself
|
|
108
|
+
def build_from_hash(attributes)
|
|
109
|
+
return nil unless attributes.is_a?(Hash)
|
|
110
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
111
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
112
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
113
|
+
self.send("#{key}=", nil)
|
|
114
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
115
|
+
# check to ensure the input is an array given that the attribute
|
|
116
|
+
# is documented as an array but the input is not
|
|
117
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
118
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
119
|
+
end
|
|
120
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
121
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
self
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Deserializes the data based on type
|
|
129
|
+
# @param string type Data type
|
|
130
|
+
# @param string value Value to be deserialized
|
|
131
|
+
# @return [Object] Deserialized data
|
|
132
|
+
def _deserialize(type, value)
|
|
133
|
+
case type.to_sym
|
|
134
|
+
when :Time
|
|
135
|
+
Time.parse(value)
|
|
136
|
+
when :Date
|
|
137
|
+
Date.parse(value)
|
|
138
|
+
when :String
|
|
139
|
+
value.to_s
|
|
140
|
+
when :Integer
|
|
141
|
+
value.to_i
|
|
142
|
+
when :Float
|
|
143
|
+
value.to_f
|
|
144
|
+
when :Boolean
|
|
145
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
146
|
+
true
|
|
147
|
+
else
|
|
148
|
+
false
|
|
149
|
+
end
|
|
150
|
+
when :Object
|
|
151
|
+
# generic object (usually a Hash), return directly
|
|
152
|
+
value
|
|
153
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
154
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
155
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
156
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
157
|
+
k_type = Regexp.last_match[:k_type]
|
|
158
|
+
v_type = Regexp.last_match[:v_type]
|
|
159
|
+
{}.tap do |hash|
|
|
160
|
+
value.each do |k, v|
|
|
161
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
else # model
|
|
165
|
+
# models (e.g. Pet) or oneOf
|
|
166
|
+
klass = Akeyless.const_get(type)
|
|
167
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
168
|
+
end
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# Returns the string representation of the object
|
|
172
|
+
# @return [String] String presentation of the object
|
|
173
|
+
def to_s
|
|
174
|
+
to_hash.to_s
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
178
|
+
# @return [Hash] Returns the object in the form of hash
|
|
179
|
+
def to_body
|
|
180
|
+
to_hash
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
# Returns the object in the form of hash
|
|
184
|
+
# @return [Hash] Returns the object in the form of hash
|
|
185
|
+
def to_hash
|
|
186
|
+
hash = {}
|
|
187
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
188
|
+
value = self.send(attr)
|
|
189
|
+
if value.nil?
|
|
190
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
191
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
hash[param] = _to_hash(value)
|
|
195
|
+
end
|
|
196
|
+
hash
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# Outputs non-array value in the form of hash
|
|
200
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
201
|
+
# @param [Object] value Any valid value
|
|
202
|
+
# @return [Hash] Returns the value in the form of hash
|
|
203
|
+
def _to_hash(value)
|
|
204
|
+
if value.is_a?(Array)
|
|
205
|
+
value.compact.map { |v| _to_hash(v) }
|
|
206
|
+
elsif value.is_a?(Hash)
|
|
207
|
+
{}.tap do |hash|
|
|
208
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
209
|
+
end
|
|
210
|
+
elsif value.respond_to? :to_hash
|
|
211
|
+
value.to_hash
|
|
212
|
+
else
|
|
213
|
+
value
|
|
214
|
+
end
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
end
|
|
@@ -26,6 +26,9 @@ module Akeyless
|
|
|
26
26
|
# Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation
|
|
27
27
|
attr_accessor :auto_rotate
|
|
28
28
|
|
|
29
|
+
# Region (used in aws)
|
|
30
|
+
attr_accessor :aws_region
|
|
31
|
+
|
|
29
32
|
attr_accessor :custom_payload
|
|
30
33
|
|
|
31
34
|
attr_accessor :keep_prev_version
|
|
@@ -61,12 +64,54 @@ module Akeyless
|
|
|
61
64
|
|
|
62
65
|
attr_accessor :rotator_custom_cmd
|
|
63
66
|
|
|
67
|
+
# Secure Access Allow Providing External User (used in ssh)
|
|
68
|
+
attr_accessor :secure_access_allow_external_user
|
|
69
|
+
|
|
70
|
+
# Secure Access Account Id (used in aws)
|
|
71
|
+
attr_accessor :secure_access_aws_account_id
|
|
72
|
+
|
|
73
|
+
# Secure Access Aws Native Cli (used in aws)
|
|
74
|
+
attr_accessor :secure_access_aws_native_cli
|
|
75
|
+
|
|
76
|
+
# Secure Access Bastion Issuer
|
|
77
|
+
attr_accessor :secure_access_bastion_issuer
|
|
78
|
+
|
|
79
|
+
# Secure Access DB Name (used in data bases)
|
|
80
|
+
attr_accessor :secure_access_db_name
|
|
81
|
+
|
|
82
|
+
# Secure Access Schema (used in mssql, postgresql)
|
|
83
|
+
attr_accessor :secure_access_db_schema
|
|
84
|
+
|
|
85
|
+
# Secure Access Enabled
|
|
86
|
+
attr_accessor :secure_access_enable
|
|
87
|
+
|
|
88
|
+
# Secure Access Host
|
|
89
|
+
attr_accessor :secure_access_host
|
|
90
|
+
|
|
91
|
+
# Secure Access Domain (used in ssh)
|
|
92
|
+
attr_accessor :secure_access_rdp_domain
|
|
93
|
+
|
|
94
|
+
# Secure Access Override User (used in ssh)
|
|
95
|
+
attr_accessor :secure_access_rdp_user
|
|
96
|
+
|
|
97
|
+
# Secure Access Web
|
|
98
|
+
attr_accessor :secure_access_web
|
|
99
|
+
|
|
100
|
+
# Secure Access Isolated (used in aws, azure)
|
|
101
|
+
attr_accessor :secure_access_web_browsing
|
|
102
|
+
|
|
103
|
+
# Secure Access Web Proxy (used in aws, azure)
|
|
104
|
+
attr_accessor :secure_access_web_proxy
|
|
105
|
+
|
|
64
106
|
# Deprecated: use RotatedPassword
|
|
65
107
|
attr_accessor :ssh_password
|
|
66
108
|
|
|
67
109
|
# Deprecated: use RotatedUser
|
|
68
110
|
attr_accessor :ssh_username
|
|
69
111
|
|
|
112
|
+
# The name of the storage account key to rotate [key1/key2/kerb1/kerb2]
|
|
113
|
+
attr_accessor :storage_account_key_name
|
|
114
|
+
|
|
70
115
|
# Authentication token (see `/auth` and `/configure`)
|
|
71
116
|
attr_accessor :token
|
|
72
117
|
|
|
@@ -80,6 +125,7 @@ module Akeyless
|
|
|
80
125
|
:'api_id' => :'api-id',
|
|
81
126
|
:'api_key' => :'api-key',
|
|
82
127
|
:'auto_rotate' => :'auto-rotate',
|
|
128
|
+
:'aws_region' => :'aws-region',
|
|
83
129
|
:'custom_payload' => :'custom-payload',
|
|
84
130
|
:'keep_prev_version' => :'keep-prev-version',
|
|
85
131
|
:'key' => :'key',
|
|
@@ -94,8 +140,22 @@ module Akeyless
|
|
|
94
140
|
:'rotation_interval' => :'rotation-interval',
|
|
95
141
|
:'rotator_creds_type' => :'rotator-creds-type',
|
|
96
142
|
:'rotator_custom_cmd' => :'rotator-custom-cmd',
|
|
143
|
+
:'secure_access_allow_external_user' => :'secure-access-allow-external-user',
|
|
144
|
+
:'secure_access_aws_account_id' => :'secure-access-aws-account-id',
|
|
145
|
+
:'secure_access_aws_native_cli' => :'secure-access-aws-native-cli',
|
|
146
|
+
:'secure_access_bastion_issuer' => :'secure-access-bastion-issuer',
|
|
147
|
+
:'secure_access_db_name' => :'secure-access-db-name',
|
|
148
|
+
:'secure_access_db_schema' => :'secure-access-db-schema',
|
|
149
|
+
:'secure_access_enable' => :'secure-access-enable',
|
|
150
|
+
:'secure_access_host' => :'secure-access-host',
|
|
151
|
+
:'secure_access_rdp_domain' => :'secure-access-rdp-domain',
|
|
152
|
+
:'secure_access_rdp_user' => :'secure-access-rdp-user',
|
|
153
|
+
:'secure_access_web' => :'secure-access-web',
|
|
154
|
+
:'secure_access_web_browsing' => :'secure-access-web-browsing',
|
|
155
|
+
:'secure_access_web_proxy' => :'secure-access-web-proxy',
|
|
97
156
|
:'ssh_password' => :'ssh-password',
|
|
98
157
|
:'ssh_username' => :'ssh-username',
|
|
158
|
+
:'storage_account_key_name' => :'storage-account-key-name',
|
|
99
159
|
:'token' => :'token',
|
|
100
160
|
:'uid_token' => :'uid-token'
|
|
101
161
|
}
|
|
@@ -113,6 +173,7 @@ module Akeyless
|
|
|
113
173
|
:'api_id' => :'String',
|
|
114
174
|
:'api_key' => :'String',
|
|
115
175
|
:'auto_rotate' => :'String',
|
|
176
|
+
:'aws_region' => :'String',
|
|
116
177
|
:'custom_payload' => :'String',
|
|
117
178
|
:'keep_prev_version' => :'String',
|
|
118
179
|
:'key' => :'String',
|
|
@@ -127,8 +188,22 @@ module Akeyless
|
|
|
127
188
|
:'rotation_interval' => :'String',
|
|
128
189
|
:'rotator_creds_type' => :'String',
|
|
129
190
|
:'rotator_custom_cmd' => :'String',
|
|
191
|
+
:'secure_access_allow_external_user' => :'Boolean',
|
|
192
|
+
:'secure_access_aws_account_id' => :'String',
|
|
193
|
+
:'secure_access_aws_native_cli' => :'Boolean',
|
|
194
|
+
:'secure_access_bastion_issuer' => :'String',
|
|
195
|
+
:'secure_access_db_name' => :'String',
|
|
196
|
+
:'secure_access_db_schema' => :'String',
|
|
197
|
+
:'secure_access_enable' => :'String',
|
|
198
|
+
:'secure_access_host' => :'Array<String>',
|
|
199
|
+
:'secure_access_rdp_domain' => :'String',
|
|
200
|
+
:'secure_access_rdp_user' => :'String',
|
|
201
|
+
:'secure_access_web' => :'Boolean',
|
|
202
|
+
:'secure_access_web_browsing' => :'Boolean',
|
|
203
|
+
:'secure_access_web_proxy' => :'Boolean',
|
|
130
204
|
:'ssh_password' => :'String',
|
|
131
205
|
:'ssh_username' => :'String',
|
|
206
|
+
:'storage_account_key_name' => :'String',
|
|
132
207
|
:'token' => :'String',
|
|
133
208
|
:'uid_token' => :'String'
|
|
134
209
|
}
|
|
@@ -173,6 +248,12 @@ module Akeyless
|
|
|
173
248
|
self.auto_rotate = attributes[:'auto_rotate']
|
|
174
249
|
end
|
|
175
250
|
|
|
251
|
+
if attributes.key?(:'aws_region')
|
|
252
|
+
self.aws_region = attributes[:'aws_region']
|
|
253
|
+
else
|
|
254
|
+
self.aws_region = 'us-east-2'
|
|
255
|
+
end
|
|
256
|
+
|
|
176
257
|
if attributes.key?(:'custom_payload')
|
|
177
258
|
self.custom_payload = attributes[:'custom_payload']
|
|
178
259
|
end
|
|
@@ -233,6 +314,68 @@ module Akeyless
|
|
|
233
314
|
self.rotator_custom_cmd = attributes[:'rotator_custom_cmd']
|
|
234
315
|
end
|
|
235
316
|
|
|
317
|
+
if attributes.key?(:'secure_access_allow_external_user')
|
|
318
|
+
self.secure_access_allow_external_user = attributes[:'secure_access_allow_external_user']
|
|
319
|
+
else
|
|
320
|
+
self.secure_access_allow_external_user = false
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
if attributes.key?(:'secure_access_aws_account_id')
|
|
324
|
+
self.secure_access_aws_account_id = attributes[:'secure_access_aws_account_id']
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
if attributes.key?(:'secure_access_aws_native_cli')
|
|
328
|
+
self.secure_access_aws_native_cli = attributes[:'secure_access_aws_native_cli']
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
if attributes.key?(:'secure_access_bastion_issuer')
|
|
332
|
+
self.secure_access_bastion_issuer = attributes[:'secure_access_bastion_issuer']
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
if attributes.key?(:'secure_access_db_name')
|
|
336
|
+
self.secure_access_db_name = attributes[:'secure_access_db_name']
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
if attributes.key?(:'secure_access_db_schema')
|
|
340
|
+
self.secure_access_db_schema = attributes[:'secure_access_db_schema']
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
if attributes.key?(:'secure_access_enable')
|
|
344
|
+
self.secure_access_enable = attributes[:'secure_access_enable']
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
if attributes.key?(:'secure_access_host')
|
|
348
|
+
if (value = attributes[:'secure_access_host']).is_a?(Array)
|
|
349
|
+
self.secure_access_host = value
|
|
350
|
+
end
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
if attributes.key?(:'secure_access_rdp_domain')
|
|
354
|
+
self.secure_access_rdp_domain = attributes[:'secure_access_rdp_domain']
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
if attributes.key?(:'secure_access_rdp_user')
|
|
358
|
+
self.secure_access_rdp_user = attributes[:'secure_access_rdp_user']
|
|
359
|
+
end
|
|
360
|
+
|
|
361
|
+
if attributes.key?(:'secure_access_web')
|
|
362
|
+
self.secure_access_web = attributes[:'secure_access_web']
|
|
363
|
+
else
|
|
364
|
+
self.secure_access_web = false
|
|
365
|
+
end
|
|
366
|
+
|
|
367
|
+
if attributes.key?(:'secure_access_web_browsing')
|
|
368
|
+
self.secure_access_web_browsing = attributes[:'secure_access_web_browsing']
|
|
369
|
+
else
|
|
370
|
+
self.secure_access_web_browsing = false
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
if attributes.key?(:'secure_access_web_proxy')
|
|
374
|
+
self.secure_access_web_proxy = attributes[:'secure_access_web_proxy']
|
|
375
|
+
else
|
|
376
|
+
self.secure_access_web_proxy = false
|
|
377
|
+
end
|
|
378
|
+
|
|
236
379
|
if attributes.key?(:'ssh_password')
|
|
237
380
|
self.ssh_password = attributes[:'ssh_password']
|
|
238
381
|
end
|
|
@@ -241,6 +384,10 @@ module Akeyless
|
|
|
241
384
|
self.ssh_username = attributes[:'ssh_username']
|
|
242
385
|
end
|
|
243
386
|
|
|
387
|
+
if attributes.key?(:'storage_account_key_name')
|
|
388
|
+
self.storage_account_key_name = attributes[:'storage_account_key_name']
|
|
389
|
+
end
|
|
390
|
+
|
|
244
391
|
if attributes.key?(:'token')
|
|
245
392
|
self.token = attributes[:'token']
|
|
246
393
|
end
|
|
@@ -277,6 +424,7 @@ module Akeyless
|
|
|
277
424
|
api_id == o.api_id &&
|
|
278
425
|
api_key == o.api_key &&
|
|
279
426
|
auto_rotate == o.auto_rotate &&
|
|
427
|
+
aws_region == o.aws_region &&
|
|
280
428
|
custom_payload == o.custom_payload &&
|
|
281
429
|
keep_prev_version == o.keep_prev_version &&
|
|
282
430
|
key == o.key &&
|
|
@@ -291,8 +439,22 @@ module Akeyless
|
|
|
291
439
|
rotation_interval == o.rotation_interval &&
|
|
292
440
|
rotator_creds_type == o.rotator_creds_type &&
|
|
293
441
|
rotator_custom_cmd == o.rotator_custom_cmd &&
|
|
442
|
+
secure_access_allow_external_user == o.secure_access_allow_external_user &&
|
|
443
|
+
secure_access_aws_account_id == o.secure_access_aws_account_id &&
|
|
444
|
+
secure_access_aws_native_cli == o.secure_access_aws_native_cli &&
|
|
445
|
+
secure_access_bastion_issuer == o.secure_access_bastion_issuer &&
|
|
446
|
+
secure_access_db_name == o.secure_access_db_name &&
|
|
447
|
+
secure_access_db_schema == o.secure_access_db_schema &&
|
|
448
|
+
secure_access_enable == o.secure_access_enable &&
|
|
449
|
+
secure_access_host == o.secure_access_host &&
|
|
450
|
+
secure_access_rdp_domain == o.secure_access_rdp_domain &&
|
|
451
|
+
secure_access_rdp_user == o.secure_access_rdp_user &&
|
|
452
|
+
secure_access_web == o.secure_access_web &&
|
|
453
|
+
secure_access_web_browsing == o.secure_access_web_browsing &&
|
|
454
|
+
secure_access_web_proxy == o.secure_access_web_proxy &&
|
|
294
455
|
ssh_password == o.ssh_password &&
|
|
295
456
|
ssh_username == o.ssh_username &&
|
|
457
|
+
storage_account_key_name == o.storage_account_key_name &&
|
|
296
458
|
token == o.token &&
|
|
297
459
|
uid_token == o.uid_token
|
|
298
460
|
end
|
|
@@ -306,7 +468,7 @@ module Akeyless
|
|
|
306
468
|
# Calculates hash code according to all attributes.
|
|
307
469
|
# @return [Integer] Hash code
|
|
308
470
|
def hash
|
|
309
|
-
[add_tag, api_id, api_key, auto_rotate, custom_payload, keep_prev_version, key, name, new_metadata, new_name, new_version, rm_tag, rotated_password, rotated_username, rotation_hour, rotation_interval, rotator_creds_type, rotator_custom_cmd, ssh_password, ssh_username, token, uid_token].hash
|
|
471
|
+
[add_tag, api_id, api_key, auto_rotate, aws_region, custom_payload, keep_prev_version, key, name, new_metadata, new_name, new_version, rm_tag, rotated_password, rotated_username, rotation_hour, rotation_interval, rotator_creds_type, rotator_custom_cmd, secure_access_allow_external_user, secure_access_aws_account_id, secure_access_aws_native_cli, secure_access_bastion_issuer, secure_access_db_name, secure_access_db_schema, secure_access_enable, secure_access_host, secure_access_rdp_domain, secure_access_rdp_user, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, ssh_password, ssh_username, storage_account_key_name, token, uid_token].hash
|
|
310
472
|
end
|
|
311
473
|
|
|
312
474
|
# Builds the object from hash
|