akeyless 3.5.4 → 3.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -2
- data/docs/AssocTargetItem.md +8 -0
- data/docs/Auth.md +4 -0
- data/docs/AuthMethod.md +2 -0
- data/docs/AuthMethodAccessInfo.md +2 -0
- data/docs/CertificateChainInfo.md +4 -0
- data/docs/CertificateVersionInfo.md +22 -0
- data/docs/Configure.md +5 -1
- data/docs/Connect.md +1 -1
- data/docs/CreateAuthMethod.md +2 -0
- data/docs/CreateAuthMethodAWSIAM.md +2 -0
- data/docs/CreateAuthMethodAzureAD.md +3 -1
- data/docs/CreateAuthMethodCert.md +2 -0
- data/docs/CreateAuthMethodEmail.md +2 -0
- data/docs/CreateAuthMethodGCP.md +2 -0
- data/docs/CreateAuthMethodHuawei.md +2 -0
- data/docs/CreateAuthMethodK8S.md +2 -0
- data/docs/CreateAuthMethodLDAP.md +2 -0
- data/docs/CreateAuthMethodOAuth2.md +2 -0
- data/docs/CreateAuthMethodOCI.md +40 -0
- data/docs/CreateAuthMethodOCIOutput.md +18 -0
- data/docs/CreateAuthMethodOIDC.md +2 -0
- data/docs/CreateAuthMethodSAML.md +2 -0
- data/docs/CreateAuthMethodUniversalIdentity.md +2 -0
- data/docs/CreateEventForwarder.md +1 -1
- data/docs/CreateLinkedTarget.md +2 -0
- data/docs/CreateRole.md +4 -0
- data/docs/CreateRotatedSecret.md +7 -1
- data/docs/CreateSSHCertIssuer.md +4 -4
- data/docs/CreateSecret.md +2 -0
- data/docs/GatewayCreateMigration.md +2 -0
- data/docs/GatewayCreateProducerCassandra.md +4 -0
- data/docs/GatewayUpdateItem.md +2 -0
- data/docs/GatewayUpdateMigration.md +2 -0
- data/docs/GatewayUpdateProducerCassandra.md +4 -0
- data/docs/GenerateCsr.md +1 -1
- data/docs/GwClusterIdentity.md +2 -0
- data/docs/ImportPasswords.md +3 -1
- data/docs/ImportPasswordsOutput.md +3 -1
- data/docs/ItemVersion.md +2 -0
- data/docs/OCIAccessRules.md +20 -0
- data/docs/ProvisionCertificate.md +28 -0
- data/docs/ProvisionCertificateOutput.md +24 -0
- data/docs/RenewCertificate.md +28 -0
- data/docs/RenewCertificateOutput.md +28 -0
- data/docs/SecureRemoteAccess.md +2 -0
- data/docs/ServerInventoryPayload.md +2 -0
- data/docs/SetRoleRule.md +1 -1
- data/docs/SignDataWithClassicKey.md +2 -0
- data/docs/SignEcDsa.md +5 -1
- data/docs/SignPKCS1.md +9 -1
- data/docs/SignPKCS1Output.md +1 -1
- data/docs/SignRsaSsaPss.md +5 -1
- data/docs/StaticSecretDetailsInfo.md +2 -0
- data/docs/TargetItemVersion.md +2 -0
- data/docs/UpdateAuthMethod.md +2 -0
- data/docs/UpdateAuthMethodAWSIAM.md +2 -0
- data/docs/UpdateAuthMethodAzureAD.md +3 -1
- data/docs/UpdateAuthMethodCert.md +2 -0
- data/docs/UpdateAuthMethodGCP.md +2 -0
- data/docs/UpdateAuthMethodK8S.md +2 -0
- data/docs/UpdateAuthMethodLDAP.md +2 -0
- data/docs/UpdateAuthMethodOAuth2.md +2 -0
- data/docs/UpdateAuthMethodOCI.md +42 -0
- data/docs/UpdateAuthMethodOCIOutput.md +18 -0
- data/docs/UpdateAuthMethodOIDC.md +2 -0
- data/docs/UpdateAuthMethodSAML.md +2 -0
- data/docs/UpdateAuthMethodUniversalIdentity.md +2 -0
- data/docs/UpdateCertificateValue.md +2 -0
- data/docs/UpdateItem.md +6 -0
- data/docs/UpdateLinkedTarget.md +2 -0
- data/docs/UpdateRole.md +4 -0
- data/docs/UpdateSSHCertIssuer.md +3 -3
- data/docs/UpdateSecretVal.md +2 -0
- data/docs/V2Api.md +264 -9
- data/docs/VerifyEcDsa.md +5 -1
- data/docs/VerifyPKCS1.md +9 -1
- data/docs/VerifyRsaSsaPss.md +5 -1
- data/lib/akeyless/api/v2_api.rb +274 -7
- data/lib/akeyless/models/assoc_target_item.rb +43 -1
- data/lib/akeyless/models/auth.rb +25 -1
- data/lib/akeyless/models/auth_method.rb +10 -1
- data/lib/akeyless/models/auth_method_access_info.rb +10 -1
- data/lib/akeyless/models/certificate_chain_info.rb +19 -1
- data/lib/akeyless/models/certificate_version_info.rb +232 -0
- data/lib/akeyless/models/configure.rb +28 -4
- data/lib/akeyless/models/connect.rb +1 -1
- data/lib/akeyless/models/create_auth_method.rb +11 -1
- data/lib/akeyless/models/create_auth_method_awsiam.rb +11 -1
- data/lib/akeyless/models/create_auth_method_azure_ad.rb +12 -2
- data/lib/akeyless/models/create_auth_method_cert.rb +11 -1
- data/lib/akeyless/models/create_auth_method_email.rb +11 -1
- data/lib/akeyless/models/create_auth_method_gcp.rb +11 -1
- data/lib/akeyless/models/create_auth_method_huawei.rb +11 -1
- data/lib/akeyless/models/create_auth_method_k8_s.rb +11 -1
- data/lib/akeyless/models/create_auth_method_ldap.rb +11 -1
- data/lib/akeyless/models/create_auth_method_o_auth2.rb +11 -1
- data/lib/akeyless/models/create_auth_method_oci.rb +359 -0
- data/lib/akeyless/models/create_auth_method_oci_output.rb +214 -0
- data/lib/akeyless/models/create_auth_method_oidc.rb +11 -1
- data/lib/akeyless/models/create_auth_method_saml.rb +11 -1
- data/lib/akeyless/models/create_auth_method_universal_identity.rb +11 -1
- data/lib/akeyless/models/create_event_forwarder.rb +1 -1
- data/lib/akeyless/models/create_linked_target.rb +11 -1
- data/lib/akeyless/models/create_role.rb +21 -1
- data/lib/akeyless/models/create_rotated_secret.rb +35 -2
- data/lib/akeyless/models/create_secret.rb +11 -1
- data/lib/akeyless/models/create_ssh_cert_issuer.rb +9 -9
- data/lib/akeyless/models/gateway_create_migration.rb +11 -1
- data/lib/akeyless/models/gateway_create_producer_cassandra.rb +23 -1
- data/lib/akeyless/models/gateway_update_item.rb +11 -1
- data/lib/akeyless/models/gateway_update_migration.rb +11 -1
- data/lib/akeyless/models/gateway_update_producer_cassandra.rb +23 -1
- data/lib/akeyless/models/generate_csr.rb +1 -1
- data/lib/akeyless/models/gw_cluster_identity.rb +10 -1
- data/lib/akeyless/models/import_passwords.rb +13 -4
- data/lib/akeyless/models/import_passwords_output.rb +13 -4
- data/lib/akeyless/models/item_version.rb +10 -1
- data/lib/akeyless/models/oci_access_rules.rb +226 -0
- data/lib/akeyless/models/provision_certificate.rb +275 -0
- data/lib/akeyless/models/provision_certificate_output.rb +243 -0
- data/lib/akeyless/models/renew_certificate.rb +267 -0
- data/lib/akeyless/models/renew_certificate_output.rb +259 -0
- data/lib/akeyless/models/secure_remote_access.rb +12 -1
- data/lib/akeyless/models/server_inventory_payload.rb +12 -1
- data/lib/akeyless/models/set_role_rule.rb +1 -1
- data/lib/akeyless/models/sign_data_with_classic_key.rb +13 -1
- data/lib/akeyless/models/sign_ec_dsa.rb +24 -4
- data/lib/akeyless/models/sign_pkcs1.rb +44 -4
- data/lib/akeyless/models/sign_pkcs1_output.rb +2 -4
- data/lib/akeyless/models/sign_rsa_ssa_pss.rb +24 -4
- data/lib/akeyless/models/static_secret_details_info.rb +10 -1
- data/lib/akeyless/models/target_item_version.rb +10 -1
- data/lib/akeyless/models/update_auth_method.rb +11 -1
- data/lib/akeyless/models/update_auth_method_awsiam.rb +11 -1
- data/lib/akeyless/models/update_auth_method_azure_ad.rb +12 -2
- data/lib/akeyless/models/update_auth_method_cert.rb +11 -1
- data/lib/akeyless/models/update_auth_method_gcp.rb +11 -1
- data/lib/akeyless/models/update_auth_method_k8_s.rb +11 -1
- data/lib/akeyless/models/update_auth_method_ldap.rb +11 -1
- data/lib/akeyless/models/update_auth_method_o_auth2.rb +11 -1
- data/lib/akeyless/models/update_auth_method_oci.rb +369 -0
- data/lib/akeyless/models/update_auth_method_oci_output.rb +214 -0
- data/lib/akeyless/models/update_auth_method_oidc.rb +11 -1
- data/lib/akeyless/models/update_auth_method_saml.rb +11 -1
- data/lib/akeyless/models/update_auth_method_universal_identity.rb +11 -1
- data/lib/akeyless/models/update_certificate_value.rb +11 -1
- data/lib/akeyless/models/update_item.rb +32 -1
- data/lib/akeyless/models/update_linked_target.rb +11 -1
- data/lib/akeyless/models/update_role.rb +21 -1
- data/lib/akeyless/models/update_secret_val.rb +11 -1
- data/lib/akeyless/models/update_ssh_cert_issuer.rb +8 -8
- data/lib/akeyless/models/verify_ec_dsa.rb +24 -4
- data/lib/akeyless/models/verify_pkcs1.rb +44 -4
- data/lib/akeyless/models/verify_rsa_ssa_pss.rb +24 -4
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +10 -0
- data/spec/models/certificate_version_info_spec.rb +48 -0
- data/spec/models/create_auth_method_oci_output_spec.rb +36 -0
- data/spec/models/create_auth_method_oci_spec.rb +102 -0
- data/spec/models/oci_access_rules_spec.rb +42 -0
- data/spec/models/provision_certificate_output_spec.rb +54 -0
- data/spec/models/provision_certificate_spec.rb +66 -0
- data/spec/models/renew_certificate_output_spec.rb +66 -0
- data/spec/models/renew_certificate_spec.rb +66 -0
- data/spec/models/update_auth_method_oci_output_spec.rb +36 -0
- data/spec/models/update_auth_method_oci_spec.rb +108 -0
- metadata +43 -3
@@ -19,6 +19,10 @@ module Akeyless
|
|
19
19
|
|
20
20
|
attr_accessor :certificate_format
|
21
21
|
|
22
|
+
attr_accessor :certificate_has_private_key
|
23
|
+
|
24
|
+
attr_accessor :certificate_issuer_gw_cluster_url
|
25
|
+
|
22
26
|
attr_accessor :certificate_issuer_item_id
|
23
27
|
|
24
28
|
attr_accessor :certificate_issuer_name
|
@@ -34,6 +38,8 @@ module Akeyless
|
|
34
38
|
{
|
35
39
|
:'certificate_chain' => :'certificate_chain',
|
36
40
|
:'certificate_format' => :'certificate_format',
|
41
|
+
:'certificate_has_private_key' => :'certificate_has_private_key',
|
42
|
+
:'certificate_issuer_gw_cluster_url' => :'certificate_issuer_gw_cluster_url',
|
37
43
|
:'certificate_issuer_item_id' => :'certificate_issuer_item_id',
|
38
44
|
:'certificate_issuer_name' => :'certificate_issuer_name',
|
39
45
|
:'certificate_pem' => :'certificate_pem',
|
@@ -52,6 +58,8 @@ module Akeyless
|
|
52
58
|
{
|
53
59
|
:'certificate_chain' => :'Array<CertificateInfo>',
|
54
60
|
:'certificate_format' => :'String',
|
61
|
+
:'certificate_has_private_key' => :'Boolean',
|
62
|
+
:'certificate_issuer_gw_cluster_url' => :'String',
|
55
63
|
:'certificate_issuer_item_id' => :'Integer',
|
56
64
|
:'certificate_issuer_name' => :'String',
|
57
65
|
:'certificate_pem' => :'String',
|
@@ -91,6 +99,14 @@ module Akeyless
|
|
91
99
|
self.certificate_format = attributes[:'certificate_format']
|
92
100
|
end
|
93
101
|
|
102
|
+
if attributes.key?(:'certificate_has_private_key')
|
103
|
+
self.certificate_has_private_key = attributes[:'certificate_has_private_key']
|
104
|
+
end
|
105
|
+
|
106
|
+
if attributes.key?(:'certificate_issuer_gw_cluster_url')
|
107
|
+
self.certificate_issuer_gw_cluster_url = attributes[:'certificate_issuer_gw_cluster_url']
|
108
|
+
end
|
109
|
+
|
94
110
|
if attributes.key?(:'certificate_issuer_item_id')
|
95
111
|
self.certificate_issuer_item_id = attributes[:'certificate_issuer_item_id']
|
96
112
|
end
|
@@ -136,6 +152,8 @@ module Akeyless
|
|
136
152
|
self.class == o.class &&
|
137
153
|
certificate_chain == o.certificate_chain &&
|
138
154
|
certificate_format == o.certificate_format &&
|
155
|
+
certificate_has_private_key == o.certificate_has_private_key &&
|
156
|
+
certificate_issuer_gw_cluster_url == o.certificate_issuer_gw_cluster_url &&
|
139
157
|
certificate_issuer_item_id == o.certificate_issuer_item_id &&
|
140
158
|
certificate_issuer_name == o.certificate_issuer_name &&
|
141
159
|
certificate_pem == o.certificate_pem &&
|
@@ -152,7 +170,7 @@ module Akeyless
|
|
152
170
|
# Calculates hash code according to all attributes.
|
153
171
|
# @return [Integer] Hash code
|
154
172
|
def hash
|
155
|
-
[certificate_chain, certificate_format, certificate_issuer_item_id, certificate_issuer_name, certificate_pem, certificate_status, expiration_events].hash
|
173
|
+
[certificate_chain, certificate_format, certificate_has_private_key, certificate_issuer_gw_cluster_url, certificate_issuer_item_id, certificate_issuer_name, certificate_pem, certificate_status, expiration_events].hash
|
156
174
|
end
|
157
175
|
|
158
176
|
# Builds the object from hash
|
@@ -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: 2.0
|
7
|
+
Contact: support@akeyless.io
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Akeyless
|
17
|
+
class CertificateVersionInfo
|
18
|
+
attr_accessor :not_after
|
19
|
+
|
20
|
+
attr_accessor :not_before
|
21
|
+
|
22
|
+
attr_accessor :status
|
23
|
+
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
25
|
+
def self.attribute_map
|
26
|
+
{
|
27
|
+
:'not_after' => :'not_after',
|
28
|
+
:'not_before' => :'not_before',
|
29
|
+
:'status' => :'status'
|
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
|
+
:'not_after' => :'Time',
|
42
|
+
:'not_before' => :'Time',
|
43
|
+
:'status' => :'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::CertificateVersionInfo` 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::CertificateVersionInfo`. 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?(:'not_after')
|
69
|
+
self.not_after = attributes[:'not_after']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'not_before')
|
73
|
+
self.not_before = attributes[:'not_before']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.key?(:'status')
|
77
|
+
self.status = attributes[:'status']
|
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
|
+
not_after == o.not_after &&
|
102
|
+
not_before == o.not_before &&
|
103
|
+
status == o.status
|
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
|
+
[not_after, not_before, status].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
|
@@ -51,6 +51,12 @@ module Akeyless
|
|
51
51
|
# Private key data encoded in base64. Used if file was not provided.(relevant only for access-type=cert in Curl Context)
|
52
52
|
attr_accessor :key_data
|
53
53
|
|
54
|
+
# The type of the OCI configuration to use [instance/apikey/resource] (relevant only for access-type=oci)
|
55
|
+
attr_accessor :oci_auth_type
|
56
|
+
|
57
|
+
# A list of Oracle Cloud IDs groups (relevant only for access-type=oci)
|
58
|
+
attr_accessor :oci_group_ocid
|
59
|
+
|
54
60
|
# Attribute mapping from ruby-style variable name to JSON key.
|
55
61
|
def self.attribute_map
|
56
62
|
{
|
@@ -65,7 +71,9 @@ module Akeyless
|
|
65
71
|
:'gcp_audience' => :'gcp-audience',
|
66
72
|
:'json' => :'json',
|
67
73
|
:'k8s_auth_config_name' => :'k8s-auth-config-name',
|
68
|
-
:'key_data' => :'key-data'
|
74
|
+
:'key_data' => :'key-data',
|
75
|
+
:'oci_auth_type' => :'oci-auth-type',
|
76
|
+
:'oci_group_ocid' => :'oci-group-ocid'
|
69
77
|
}
|
70
78
|
end
|
71
79
|
|
@@ -88,7 +96,9 @@ module Akeyless
|
|
88
96
|
:'gcp_audience' => :'String',
|
89
97
|
:'json' => :'Boolean',
|
90
98
|
:'k8s_auth_config_name' => :'String',
|
91
|
-
:'key_data' => :'String'
|
99
|
+
:'key_data' => :'String',
|
100
|
+
:'oci_auth_type' => :'String',
|
101
|
+
:'oci_group_ocid' => :'Array<String>'
|
92
102
|
}
|
93
103
|
end
|
94
104
|
|
@@ -166,6 +176,18 @@ module Akeyless
|
|
166
176
|
if attributes.key?(:'key_data')
|
167
177
|
self.key_data = attributes[:'key_data']
|
168
178
|
end
|
179
|
+
|
180
|
+
if attributes.key?(:'oci_auth_type')
|
181
|
+
self.oci_auth_type = attributes[:'oci_auth_type']
|
182
|
+
else
|
183
|
+
self.oci_auth_type = 'apikey'
|
184
|
+
end
|
185
|
+
|
186
|
+
if attributes.key?(:'oci_group_ocid')
|
187
|
+
if (value = attributes[:'oci_group_ocid']).is_a?(Array)
|
188
|
+
self.oci_group_ocid = value
|
189
|
+
end
|
190
|
+
end
|
169
191
|
end
|
170
192
|
|
171
193
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -199,7 +221,9 @@ module Akeyless
|
|
199
221
|
gcp_audience == o.gcp_audience &&
|
200
222
|
json == o.json &&
|
201
223
|
k8s_auth_config_name == o.k8s_auth_config_name &&
|
202
|
-
key_data == o.key_data
|
224
|
+
key_data == o.key_data &&
|
225
|
+
oci_auth_type == o.oci_auth_type &&
|
226
|
+
oci_group_ocid == o.oci_group_ocid
|
203
227
|
end
|
204
228
|
|
205
229
|
# @see the `==` method
|
@@ -211,7 +235,7 @@ module Akeyless
|
|
211
235
|
# Calculates hash code according to all attributes.
|
212
236
|
# @return [Integer] Hash code
|
213
237
|
def hash
|
214
|
-
[access_id, access_key, access_type, account_id, admin_email, admin_password, azure_ad_object_id, cert_data, gcp_audience, json, k8s_auth_config_name, key_data].hash
|
238
|
+
[access_id, access_key, access_type, account_id, admin_email, admin_password, azure_ad_object_id, cert_data, gcp_audience, json, k8s_auth_config_name, key_data, oci_auth_type, oci_group_ocid].hash
|
215
239
|
end
|
216
240
|
|
217
241
|
# Builds the object from hash
|
@@ -50,7 +50,7 @@ module Akeyless
|
|
50
50
|
# Path to SSH executable. e.g. /usr/bin/ssh
|
51
51
|
attr_accessor :ssh_command
|
52
52
|
|
53
|
-
#
|
53
|
+
# Additional SSH arguments (except -i)
|
54
54
|
attr_accessor :ssh_extra_args
|
55
55
|
|
56
56
|
# Set this option to output legacy ('ssh-rsa-cert-v01@openssh.com') signing algorithm name in the ssh certificate.
|
@@ -21,6 +21,9 @@ module Akeyless
|
|
21
21
|
# A CIDR whitelist with the IPs that the access is restricted to
|
22
22
|
attr_accessor :bound_ips
|
23
23
|
|
24
|
+
# Auth Method description
|
25
|
+
attr_accessor :description
|
26
|
+
|
24
27
|
# if true: enforce role-association must include sub claims
|
25
28
|
attr_accessor :force_sub_claims
|
26
29
|
|
@@ -47,6 +50,7 @@ module Akeyless
|
|
47
50
|
{
|
48
51
|
:'access_expires' => :'access-expires',
|
49
52
|
:'bound_ips' => :'bound-ips',
|
53
|
+
:'description' => :'description',
|
50
54
|
:'force_sub_claims' => :'force-sub-claims',
|
51
55
|
:'gw_bound_ips' => :'gw-bound-ips',
|
52
56
|
:'json' => :'json',
|
@@ -67,6 +71,7 @@ module Akeyless
|
|
67
71
|
{
|
68
72
|
:'access_expires' => :'Integer',
|
69
73
|
:'bound_ips' => :'Array<String>',
|
74
|
+
:'description' => :'String',
|
70
75
|
:'force_sub_claims' => :'Boolean',
|
71
76
|
:'gw_bound_ips' => :'Array<String>',
|
72
77
|
:'json' => :'Boolean',
|
@@ -110,6 +115,10 @@ module Akeyless
|
|
110
115
|
end
|
111
116
|
end
|
112
117
|
|
118
|
+
if attributes.key?(:'description')
|
119
|
+
self.description = attributes[:'description']
|
120
|
+
end
|
121
|
+
|
113
122
|
if attributes.key?(:'force_sub_claims')
|
114
123
|
self.force_sub_claims = attributes[:'force_sub_claims']
|
115
124
|
end
|
@@ -174,6 +183,7 @@ module Akeyless
|
|
174
183
|
self.class == o.class &&
|
175
184
|
access_expires == o.access_expires &&
|
176
185
|
bound_ips == o.bound_ips &&
|
186
|
+
description == o.description &&
|
177
187
|
force_sub_claims == o.force_sub_claims &&
|
178
188
|
gw_bound_ips == o.gw_bound_ips &&
|
179
189
|
json == o.json &&
|
@@ -192,7 +202,7 @@ module Akeyless
|
|
192
202
|
# Calculates hash code according to all attributes.
|
193
203
|
# @return [Integer] Hash code
|
194
204
|
def hash
|
195
|
-
[access_expires, bound_ips, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, token, uid_token].hash
|
205
|
+
[access_expires, bound_ips, description, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, token, uid_token].hash
|
196
206
|
end
|
197
207
|
|
198
208
|
# Builds the object from hash
|
@@ -43,6 +43,9 @@ module Akeyless
|
|
43
43
|
# A list of full user-name that the access is restricted to
|
44
44
|
attr_accessor :bound_user_name
|
45
45
|
|
46
|
+
# Auth Method description
|
47
|
+
attr_accessor :description
|
48
|
+
|
46
49
|
# if true: enforce role-association must include sub claims
|
47
50
|
attr_accessor :force_sub_claims
|
48
51
|
|
@@ -79,6 +82,7 @@ module Akeyless
|
|
79
82
|
:'bound_role_name' => :'bound-role-name',
|
80
83
|
:'bound_user_id' => :'bound-user-id',
|
81
84
|
:'bound_user_name' => :'bound-user-name',
|
85
|
+
:'description' => :'description',
|
82
86
|
:'force_sub_claims' => :'force-sub-claims',
|
83
87
|
:'gw_bound_ips' => :'gw-bound-ips',
|
84
88
|
:'json' => :'json',
|
@@ -107,6 +111,7 @@ module Akeyless
|
|
107
111
|
:'bound_role_name' => :'Array<String>',
|
108
112
|
:'bound_user_id' => :'Array<String>',
|
109
113
|
:'bound_user_name' => :'Array<String>',
|
114
|
+
:'description' => :'String',
|
110
115
|
:'force_sub_claims' => :'Boolean',
|
111
116
|
:'gw_bound_ips' => :'Array<String>',
|
112
117
|
:'json' => :'Boolean',
|
@@ -195,6 +200,10 @@ module Akeyless
|
|
195
200
|
end
|
196
201
|
end
|
197
202
|
|
203
|
+
if attributes.key?(:'description')
|
204
|
+
self.description = attributes[:'description']
|
205
|
+
end
|
206
|
+
|
198
207
|
if attributes.key?(:'force_sub_claims')
|
199
208
|
self.force_sub_claims = attributes[:'force_sub_claims']
|
200
209
|
end
|
@@ -277,6 +286,7 @@ module Akeyless
|
|
277
286
|
bound_role_name == o.bound_role_name &&
|
278
287
|
bound_user_id == o.bound_user_id &&
|
279
288
|
bound_user_name == o.bound_user_name &&
|
289
|
+
description == o.description &&
|
280
290
|
force_sub_claims == o.force_sub_claims &&
|
281
291
|
gw_bound_ips == o.gw_bound_ips &&
|
282
292
|
json == o.json &&
|
@@ -296,7 +306,7 @@ module Akeyless
|
|
296
306
|
# Calculates hash code according to all attributes.
|
297
307
|
# @return [Integer] Hash code
|
298
308
|
def hash
|
299
|
-
[access_expires, bound_arn, bound_aws_account_id, bound_ips, bound_resource_id, bound_role_id, bound_role_name, bound_user_id, bound_user_name, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, sts_url, token, uid_token].hash
|
309
|
+
[access_expires, bound_arn, bound_aws_account_id, bound_ips, bound_resource_id, bound_role_id, bound_role_name, bound_user_id, bound_user_name, description, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, sts_url, token, uid_token].hash
|
300
310
|
end
|
301
311
|
|
302
312
|
# Builds the object from hash
|
@@ -19,7 +19,7 @@ module Akeyless
|
|
19
19
|
# Access expiration date in Unix timestamp (select 0 for access without expiry date)
|
20
20
|
attr_accessor :access_expires
|
21
21
|
|
22
|
-
# The audience in the JWT
|
22
|
+
# Deprecated (Deprecated) The audience in the JWT
|
23
23
|
attr_accessor :audience
|
24
24
|
|
25
25
|
# A list of group ids that the access is restricted to
|
@@ -52,6 +52,9 @@ module Akeyless
|
|
52
52
|
# The Azure tenant id that the access is restricted to
|
53
53
|
attr_accessor :bound_tenant_id
|
54
54
|
|
55
|
+
# Auth Method description
|
56
|
+
attr_accessor :description
|
57
|
+
|
55
58
|
# if true: enforce role-association must include sub claims
|
56
59
|
attr_accessor :force_sub_claims
|
57
60
|
|
@@ -94,6 +97,7 @@ module Akeyless
|
|
94
97
|
:'bound_spid' => :'bound-spid',
|
95
98
|
:'bound_sub_id' => :'bound-sub-id',
|
96
99
|
:'bound_tenant_id' => :'bound-tenant-id',
|
100
|
+
:'description' => :'description',
|
97
101
|
:'force_sub_claims' => :'force-sub-claims',
|
98
102
|
:'gw_bound_ips' => :'gw-bound-ips',
|
99
103
|
:'issuer' => :'issuer',
|
@@ -126,6 +130,7 @@ module Akeyless
|
|
126
130
|
:'bound_spid' => :'Array<String>',
|
127
131
|
:'bound_sub_id' => :'Array<String>',
|
128
132
|
:'bound_tenant_id' => :'String',
|
133
|
+
:'description' => :'String',
|
129
134
|
:'force_sub_claims' => :'Boolean',
|
130
135
|
:'gw_bound_ips' => :'Array<String>',
|
131
136
|
:'issuer' => :'String',
|
@@ -231,6 +236,10 @@ module Akeyless
|
|
231
236
|
self.bound_tenant_id = nil
|
232
237
|
end
|
233
238
|
|
239
|
+
if attributes.key?(:'description')
|
240
|
+
self.description = attributes[:'description']
|
241
|
+
end
|
242
|
+
|
234
243
|
if attributes.key?(:'force_sub_claims')
|
235
244
|
self.force_sub_claims = attributes[:'force_sub_claims']
|
236
245
|
end
|
@@ -322,6 +331,7 @@ module Akeyless
|
|
322
331
|
bound_spid == o.bound_spid &&
|
323
332
|
bound_sub_id == o.bound_sub_id &&
|
324
333
|
bound_tenant_id == o.bound_tenant_id &&
|
334
|
+
description == o.description &&
|
325
335
|
force_sub_claims == o.force_sub_claims &&
|
326
336
|
gw_bound_ips == o.gw_bound_ips &&
|
327
337
|
issuer == o.issuer &&
|
@@ -342,7 +352,7 @@ module Akeyless
|
|
342
352
|
# Calculates hash code according to all attributes.
|
343
353
|
# @return [Integer] Hash code
|
344
354
|
def hash
|
345
|
-
[access_expires, audience, bound_group_id, bound_ips, bound_providers, bound_resource_id, bound_resource_names, bound_resource_types, bound_rg_id, bound_spid, bound_sub_id, bound_tenant_id, force_sub_claims, gw_bound_ips, issuer, json, jwks_uri, jwt_ttl, name, token, uid_token].hash
|
355
|
+
[access_expires, audience, bound_group_id, bound_ips, bound_providers, bound_resource_id, bound_resource_names, bound_resource_types, bound_rg_id, bound_spid, bound_sub_id, bound_tenant_id, description, force_sub_claims, gw_bound_ips, issuer, json, jwks_uri, jwt_ttl, name, token, uid_token].hash
|
346
356
|
end
|
347
357
|
|
348
358
|
# Builds the object from hash
|
@@ -46,6 +46,9 @@ module Akeyless
|
|
46
46
|
# The certificate data in base64, if no file was provided
|
47
47
|
attr_accessor :certificate_data
|
48
48
|
|
49
|
+
# Auth Method description
|
50
|
+
attr_accessor :description
|
51
|
+
|
49
52
|
# if true: enforce role-association must include sub claims
|
50
53
|
attr_accessor :force_sub_claims
|
51
54
|
|
@@ -86,6 +89,7 @@ module Akeyless
|
|
86
89
|
:'bound_organizational_units' => :'bound-organizational-units',
|
87
90
|
:'bound_uri_sans' => :'bound-uri-sans',
|
88
91
|
:'certificate_data' => :'certificate-data',
|
92
|
+
:'description' => :'description',
|
89
93
|
:'force_sub_claims' => :'force-sub-claims',
|
90
94
|
:'gw_bound_ips' => :'gw-bound-ips',
|
91
95
|
:'json' => :'json',
|
@@ -116,6 +120,7 @@ module Akeyless
|
|
116
120
|
:'bound_organizational_units' => :'Array<String>',
|
117
121
|
:'bound_uri_sans' => :'Array<String>',
|
118
122
|
:'certificate_data' => :'String',
|
123
|
+
:'description' => :'String',
|
119
124
|
:'force_sub_claims' => :'Boolean',
|
120
125
|
:'gw_bound_ips' => :'Array<String>',
|
121
126
|
:'json' => :'Boolean',
|
@@ -205,6 +210,10 @@ module Akeyless
|
|
205
210
|
self.certificate_data = attributes[:'certificate_data']
|
206
211
|
end
|
207
212
|
|
213
|
+
if attributes.key?(:'description')
|
214
|
+
self.description = attributes[:'description']
|
215
|
+
end
|
216
|
+
|
208
217
|
if attributes.key?(:'force_sub_claims')
|
209
218
|
self.force_sub_claims = attributes[:'force_sub_claims']
|
210
219
|
end
|
@@ -294,6 +303,7 @@ module Akeyless
|
|
294
303
|
bound_organizational_units == o.bound_organizational_units &&
|
295
304
|
bound_uri_sans == o.bound_uri_sans &&
|
296
305
|
certificate_data == o.certificate_data &&
|
306
|
+
description == o.description &&
|
297
307
|
force_sub_claims == o.force_sub_claims &&
|
298
308
|
gw_bound_ips == o.gw_bound_ips &&
|
299
309
|
json == o.json &&
|
@@ -314,7 +324,7 @@ module Akeyless
|
|
314
324
|
# Calculates hash code according to all attributes.
|
315
325
|
# @return [Integer] Hash code
|
316
326
|
def hash
|
317
|
-
[access_expires, allowed_cors, bound_common_names, bound_dns_sans, bound_email_sans, bound_extensions, bound_ips, bound_organizational_units, bound_uri_sans, certificate_data, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, revoked_cert_ids, token, uid_token, unique_identifier].hash
|
327
|
+
[access_expires, allowed_cors, bound_common_names, bound_dns_sans, bound_email_sans, bound_extensions, bound_ips, bound_organizational_units, bound_uri_sans, certificate_data, description, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, revoked_cert_ids, token, uid_token, unique_identifier].hash
|
318
328
|
end
|
319
329
|
|
320
330
|
# Builds the object from hash
|
@@ -22,6 +22,9 @@ module Akeyless
|
|
22
22
|
# A CIDR whitelist with the IPs that the access is restricted to
|
23
23
|
attr_accessor :bound_ips
|
24
24
|
|
25
|
+
# Auth Method description
|
26
|
+
attr_accessor :description
|
27
|
+
|
25
28
|
# An email address to be invited to have access
|
26
29
|
attr_accessor :email
|
27
30
|
|
@@ -51,6 +54,7 @@ module Akeyless
|
|
51
54
|
{
|
52
55
|
:'access_expires' => :'access-expires',
|
53
56
|
:'bound_ips' => :'bound-ips',
|
57
|
+
:'description' => :'description',
|
54
58
|
:'email' => :'email',
|
55
59
|
:'force_sub_claims' => :'force-sub-claims',
|
56
60
|
:'gw_bound_ips' => :'gw-bound-ips',
|
@@ -72,6 +76,7 @@ module Akeyless
|
|
72
76
|
{
|
73
77
|
:'access_expires' => :'Integer',
|
74
78
|
:'bound_ips' => :'Array<String>',
|
79
|
+
:'description' => :'String',
|
75
80
|
:'email' => :'String',
|
76
81
|
:'force_sub_claims' => :'Boolean',
|
77
82
|
:'gw_bound_ips' => :'Array<String>',
|
@@ -116,6 +121,10 @@ module Akeyless
|
|
116
121
|
end
|
117
122
|
end
|
118
123
|
|
124
|
+
if attributes.key?(:'description')
|
125
|
+
self.description = attributes[:'description']
|
126
|
+
end
|
127
|
+
|
119
128
|
if attributes.key?(:'email')
|
120
129
|
self.email = attributes[:'email']
|
121
130
|
else
|
@@ -191,6 +200,7 @@ module Akeyless
|
|
191
200
|
self.class == o.class &&
|
192
201
|
access_expires == o.access_expires &&
|
193
202
|
bound_ips == o.bound_ips &&
|
203
|
+
description == o.description &&
|
194
204
|
email == o.email &&
|
195
205
|
force_sub_claims == o.force_sub_claims &&
|
196
206
|
gw_bound_ips == o.gw_bound_ips &&
|
@@ -210,7 +220,7 @@ module Akeyless
|
|
210
220
|
# Calculates hash code according to all attributes.
|
211
221
|
# @return [Integer] Hash code
|
212
222
|
def hash
|
213
|
-
[access_expires, bound_ips, email, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, token, uid_token].hash
|
223
|
+
[access_expires, bound_ips, description, email, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, token, uid_token].hash
|
214
224
|
end
|
215
225
|
|
216
226
|
# Builds the object from hash
|