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
@@ -0,0 +1,369 @@
|
|
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
|
+
# updateAuthMethodOCI is a command that updates an auth method that will be used in the account using OCI principle and groups.
|
18
|
+
class UpdateAuthMethodOCI
|
19
|
+
# Access expiration date in Unix timestamp (select 0 for access without expiry date)
|
20
|
+
attr_accessor :access_expires
|
21
|
+
|
22
|
+
# A CIDR whitelist with the IPs that the access is restricted to
|
23
|
+
attr_accessor :bound_ips
|
24
|
+
|
25
|
+
# Auth Method description
|
26
|
+
attr_accessor :description
|
27
|
+
|
28
|
+
# if true: enforce role-association must include sub claims
|
29
|
+
attr_accessor :force_sub_claims
|
30
|
+
|
31
|
+
# A list of required groups ocids
|
32
|
+
attr_accessor :group_ocid
|
33
|
+
|
34
|
+
# A CIDR whitelist with the GW IPs that the access is restricted to
|
35
|
+
attr_accessor :gw_bound_ips
|
36
|
+
|
37
|
+
# Set output format to JSON
|
38
|
+
attr_accessor :json
|
39
|
+
|
40
|
+
# Jwt TTL
|
41
|
+
attr_accessor :jwt_ttl
|
42
|
+
|
43
|
+
# Auth Method name
|
44
|
+
attr_accessor :name
|
45
|
+
|
46
|
+
# Auth Method new name
|
47
|
+
attr_accessor :new_name
|
48
|
+
|
49
|
+
# The Oracle Cloud tenant ID
|
50
|
+
attr_accessor :tenant_ocid
|
51
|
+
|
52
|
+
# Authentication token (see `/auth` and `/configure`)
|
53
|
+
attr_accessor :token
|
54
|
+
|
55
|
+
# The universal identity token, Required only for universal_identity authentication
|
56
|
+
attr_accessor :uid_token
|
57
|
+
|
58
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
59
|
+
def self.attribute_map
|
60
|
+
{
|
61
|
+
:'access_expires' => :'access-expires',
|
62
|
+
:'bound_ips' => :'bound-ips',
|
63
|
+
:'description' => :'description',
|
64
|
+
:'force_sub_claims' => :'force-sub-claims',
|
65
|
+
:'group_ocid' => :'group-ocid',
|
66
|
+
:'gw_bound_ips' => :'gw-bound-ips',
|
67
|
+
:'json' => :'json',
|
68
|
+
:'jwt_ttl' => :'jwt-ttl',
|
69
|
+
:'name' => :'name',
|
70
|
+
:'new_name' => :'new-name',
|
71
|
+
:'tenant_ocid' => :'tenant-ocid',
|
72
|
+
:'token' => :'token',
|
73
|
+
:'uid_token' => :'uid-token'
|
74
|
+
}
|
75
|
+
end
|
76
|
+
|
77
|
+
# Returns all the JSON keys this model knows about
|
78
|
+
def self.acceptable_attributes
|
79
|
+
attribute_map.values
|
80
|
+
end
|
81
|
+
|
82
|
+
# Attribute type mapping.
|
83
|
+
def self.openapi_types
|
84
|
+
{
|
85
|
+
:'access_expires' => :'Integer',
|
86
|
+
:'bound_ips' => :'Array<String>',
|
87
|
+
:'description' => :'String',
|
88
|
+
:'force_sub_claims' => :'Boolean',
|
89
|
+
:'group_ocid' => :'Array<String>',
|
90
|
+
:'gw_bound_ips' => :'Array<String>',
|
91
|
+
:'json' => :'Boolean',
|
92
|
+
:'jwt_ttl' => :'Integer',
|
93
|
+
:'name' => :'String',
|
94
|
+
:'new_name' => :'String',
|
95
|
+
:'tenant_ocid' => :'String',
|
96
|
+
:'token' => :'String',
|
97
|
+
:'uid_token' => :'String'
|
98
|
+
}
|
99
|
+
end
|
100
|
+
|
101
|
+
# List of attributes with nullable: true
|
102
|
+
def self.openapi_nullable
|
103
|
+
Set.new([
|
104
|
+
])
|
105
|
+
end
|
106
|
+
|
107
|
+
# Initializes the object
|
108
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
109
|
+
def initialize(attributes = {})
|
110
|
+
if (!attributes.is_a?(Hash))
|
111
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::UpdateAuthMethodOCI` initialize method"
|
112
|
+
end
|
113
|
+
|
114
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
115
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
116
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
117
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::UpdateAuthMethodOCI`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
118
|
+
end
|
119
|
+
h[k.to_sym] = v
|
120
|
+
}
|
121
|
+
|
122
|
+
if attributes.key?(:'access_expires')
|
123
|
+
self.access_expires = attributes[:'access_expires']
|
124
|
+
else
|
125
|
+
self.access_expires = 0
|
126
|
+
end
|
127
|
+
|
128
|
+
if attributes.key?(:'bound_ips')
|
129
|
+
if (value = attributes[:'bound_ips']).is_a?(Array)
|
130
|
+
self.bound_ips = value
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
if attributes.key?(:'description')
|
135
|
+
self.description = attributes[:'description']
|
136
|
+
end
|
137
|
+
|
138
|
+
if attributes.key?(:'force_sub_claims')
|
139
|
+
self.force_sub_claims = attributes[:'force_sub_claims']
|
140
|
+
end
|
141
|
+
|
142
|
+
if attributes.key?(:'group_ocid')
|
143
|
+
if (value = attributes[:'group_ocid']).is_a?(Array)
|
144
|
+
self.group_ocid = value
|
145
|
+
end
|
146
|
+
else
|
147
|
+
self.group_ocid = nil
|
148
|
+
end
|
149
|
+
|
150
|
+
if attributes.key?(:'gw_bound_ips')
|
151
|
+
if (value = attributes[:'gw_bound_ips']).is_a?(Array)
|
152
|
+
self.gw_bound_ips = value
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
if attributes.key?(:'json')
|
157
|
+
self.json = attributes[:'json']
|
158
|
+
else
|
159
|
+
self.json = false
|
160
|
+
end
|
161
|
+
|
162
|
+
if attributes.key?(:'jwt_ttl')
|
163
|
+
self.jwt_ttl = attributes[:'jwt_ttl']
|
164
|
+
else
|
165
|
+
self.jwt_ttl = 0
|
166
|
+
end
|
167
|
+
|
168
|
+
if attributes.key?(:'name')
|
169
|
+
self.name = attributes[:'name']
|
170
|
+
else
|
171
|
+
self.name = nil
|
172
|
+
end
|
173
|
+
|
174
|
+
if attributes.key?(:'new_name')
|
175
|
+
self.new_name = attributes[:'new_name']
|
176
|
+
end
|
177
|
+
|
178
|
+
if attributes.key?(:'tenant_ocid')
|
179
|
+
self.tenant_ocid = attributes[:'tenant_ocid']
|
180
|
+
else
|
181
|
+
self.tenant_ocid = nil
|
182
|
+
end
|
183
|
+
|
184
|
+
if attributes.key?(:'token')
|
185
|
+
self.token = attributes[:'token']
|
186
|
+
end
|
187
|
+
|
188
|
+
if attributes.key?(:'uid_token')
|
189
|
+
self.uid_token = attributes[:'uid_token']
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
194
|
+
# @return Array for valid properties with the reasons
|
195
|
+
def list_invalid_properties
|
196
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
197
|
+
invalid_properties = Array.new
|
198
|
+
if @group_ocid.nil?
|
199
|
+
invalid_properties.push('invalid value for "group_ocid", group_ocid cannot be nil.')
|
200
|
+
end
|
201
|
+
|
202
|
+
if @name.nil?
|
203
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
204
|
+
end
|
205
|
+
|
206
|
+
if @tenant_ocid.nil?
|
207
|
+
invalid_properties.push('invalid value for "tenant_ocid", tenant_ocid cannot be nil.')
|
208
|
+
end
|
209
|
+
|
210
|
+
invalid_properties
|
211
|
+
end
|
212
|
+
|
213
|
+
# Check to see if the all the properties in the model are valid
|
214
|
+
# @return true if the model is valid
|
215
|
+
def valid?
|
216
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
217
|
+
return false if @group_ocid.nil?
|
218
|
+
return false if @name.nil?
|
219
|
+
return false if @tenant_ocid.nil?
|
220
|
+
true
|
221
|
+
end
|
222
|
+
|
223
|
+
# Checks equality by comparing each attribute.
|
224
|
+
# @param [Object] Object to be compared
|
225
|
+
def ==(o)
|
226
|
+
return true if self.equal?(o)
|
227
|
+
self.class == o.class &&
|
228
|
+
access_expires == o.access_expires &&
|
229
|
+
bound_ips == o.bound_ips &&
|
230
|
+
description == o.description &&
|
231
|
+
force_sub_claims == o.force_sub_claims &&
|
232
|
+
group_ocid == o.group_ocid &&
|
233
|
+
gw_bound_ips == o.gw_bound_ips &&
|
234
|
+
json == o.json &&
|
235
|
+
jwt_ttl == o.jwt_ttl &&
|
236
|
+
name == o.name &&
|
237
|
+
new_name == o.new_name &&
|
238
|
+
tenant_ocid == o.tenant_ocid &&
|
239
|
+
token == o.token &&
|
240
|
+
uid_token == o.uid_token
|
241
|
+
end
|
242
|
+
|
243
|
+
# @see the `==` method
|
244
|
+
# @param [Object] Object to be compared
|
245
|
+
def eql?(o)
|
246
|
+
self == o
|
247
|
+
end
|
248
|
+
|
249
|
+
# Calculates hash code according to all attributes.
|
250
|
+
# @return [Integer] Hash code
|
251
|
+
def hash
|
252
|
+
[access_expires, bound_ips, description, force_sub_claims, group_ocid, gw_bound_ips, json, jwt_ttl, name, new_name, tenant_ocid, token, uid_token].hash
|
253
|
+
end
|
254
|
+
|
255
|
+
# Builds the object from hash
|
256
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
257
|
+
# @return [Object] Returns the model itself
|
258
|
+
def self.build_from_hash(attributes)
|
259
|
+
return nil unless attributes.is_a?(Hash)
|
260
|
+
attributes = attributes.transform_keys(&:to_sym)
|
261
|
+
transformed_hash = {}
|
262
|
+
openapi_types.each_pair do |key, type|
|
263
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
264
|
+
transformed_hash["#{key}"] = nil
|
265
|
+
elsif type =~ /\AArray<(.*)>/i
|
266
|
+
# check to ensure the input is an array given that the attribute
|
267
|
+
# is documented as an array but the input is not
|
268
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
269
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
270
|
+
end
|
271
|
+
elsif !attributes[attribute_map[key]].nil?
|
272
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
273
|
+
end
|
274
|
+
end
|
275
|
+
new(transformed_hash)
|
276
|
+
end
|
277
|
+
|
278
|
+
# Deserializes the data based on type
|
279
|
+
# @param string type Data type
|
280
|
+
# @param string value Value to be deserialized
|
281
|
+
# @return [Object] Deserialized data
|
282
|
+
def self._deserialize(type, value)
|
283
|
+
case type.to_sym
|
284
|
+
when :Time
|
285
|
+
Time.parse(value)
|
286
|
+
when :Date
|
287
|
+
Date.parse(value)
|
288
|
+
when :String
|
289
|
+
value.to_s
|
290
|
+
when :Integer
|
291
|
+
value.to_i
|
292
|
+
when :Float
|
293
|
+
value.to_f
|
294
|
+
when :Boolean
|
295
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
296
|
+
true
|
297
|
+
else
|
298
|
+
false
|
299
|
+
end
|
300
|
+
when :Object
|
301
|
+
# generic object (usually a Hash), return directly
|
302
|
+
value
|
303
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
304
|
+
inner_type = Regexp.last_match[:inner_type]
|
305
|
+
value.map { |v| _deserialize(inner_type, v) }
|
306
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
307
|
+
k_type = Regexp.last_match[:k_type]
|
308
|
+
v_type = Regexp.last_match[:v_type]
|
309
|
+
{}.tap do |hash|
|
310
|
+
value.each do |k, v|
|
311
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
312
|
+
end
|
313
|
+
end
|
314
|
+
else # model
|
315
|
+
# models (e.g. Pet) or oneOf
|
316
|
+
klass = Akeyless.const_get(type)
|
317
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
318
|
+
end
|
319
|
+
end
|
320
|
+
|
321
|
+
# Returns the string representation of the object
|
322
|
+
# @return [String] String presentation of the object
|
323
|
+
def to_s
|
324
|
+
to_hash.to_s
|
325
|
+
end
|
326
|
+
|
327
|
+
# to_body is an alias to to_hash (backward compatibility)
|
328
|
+
# @return [Hash] Returns the object in the form of hash
|
329
|
+
def to_body
|
330
|
+
to_hash
|
331
|
+
end
|
332
|
+
|
333
|
+
# Returns the object in the form of hash
|
334
|
+
# @return [Hash] Returns the object in the form of hash
|
335
|
+
def to_hash
|
336
|
+
hash = {}
|
337
|
+
self.class.attribute_map.each_pair do |attr, param|
|
338
|
+
value = self.send(attr)
|
339
|
+
if value.nil?
|
340
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
341
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
342
|
+
end
|
343
|
+
|
344
|
+
hash[param] = _to_hash(value)
|
345
|
+
end
|
346
|
+
hash
|
347
|
+
end
|
348
|
+
|
349
|
+
# Outputs non-array value in the form of hash
|
350
|
+
# For object, use to_hash. Otherwise, just return the value
|
351
|
+
# @param [Object] value Any valid value
|
352
|
+
# @return [Hash] Returns the value in the form of hash
|
353
|
+
def _to_hash(value)
|
354
|
+
if value.is_a?(Array)
|
355
|
+
value.compact.map { |v| _to_hash(v) }
|
356
|
+
elsif value.is_a?(Hash)
|
357
|
+
{}.tap do |hash|
|
358
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
359
|
+
end
|
360
|
+
elsif value.respond_to? :to_hash
|
361
|
+
value.to_hash
|
362
|
+
else
|
363
|
+
value
|
364
|
+
end
|
365
|
+
end
|
366
|
+
|
367
|
+
end
|
368
|
+
|
369
|
+
end
|
@@ -0,0 +1,214 @@
|
|
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 UpdateAuthMethodOCIOutput
|
18
|
+
attr_accessor :access_id
|
19
|
+
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
21
|
+
def self.attribute_map
|
22
|
+
{
|
23
|
+
:'access_id' => :'access_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
|
+
:'access_id' => :'String'
|
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::UpdateAuthMethodOCIOutput` 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::UpdateAuthMethodOCIOutput`. 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?(:'access_id')
|
61
|
+
self.access_id = attributes[:'access_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
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
69
|
+
invalid_properties = Array.new
|
70
|
+
invalid_properties
|
71
|
+
end
|
72
|
+
|
73
|
+
# Check to see if the all the properties in the model are valid
|
74
|
+
# @return true if the model is valid
|
75
|
+
def valid?
|
76
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
77
|
+
true
|
78
|
+
end
|
79
|
+
|
80
|
+
# Checks equality by comparing each attribute.
|
81
|
+
# @param [Object] Object to be compared
|
82
|
+
def ==(o)
|
83
|
+
return true if self.equal?(o)
|
84
|
+
self.class == o.class &&
|
85
|
+
access_id == o.access_id
|
86
|
+
end
|
87
|
+
|
88
|
+
# @see the `==` method
|
89
|
+
# @param [Object] Object to be compared
|
90
|
+
def eql?(o)
|
91
|
+
self == o
|
92
|
+
end
|
93
|
+
|
94
|
+
# Calculates hash code according to all attributes.
|
95
|
+
# @return [Integer] Hash code
|
96
|
+
def hash
|
97
|
+
[access_id].hash
|
98
|
+
end
|
99
|
+
|
100
|
+
# Builds the object from hash
|
101
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
102
|
+
# @return [Object] Returns the model itself
|
103
|
+
def self.build_from_hash(attributes)
|
104
|
+
return nil unless attributes.is_a?(Hash)
|
105
|
+
attributes = attributes.transform_keys(&:to_sym)
|
106
|
+
transformed_hash = {}
|
107
|
+
openapi_types.each_pair do |key, type|
|
108
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
109
|
+
transformed_hash["#{key}"] = nil
|
110
|
+
elsif type =~ /\AArray<(.*)>/i
|
111
|
+
# check to ensure the input is an array given that the attribute
|
112
|
+
# is documented as an array but the input is not
|
113
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
114
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
115
|
+
end
|
116
|
+
elsif !attributes[attribute_map[key]].nil?
|
117
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
118
|
+
end
|
119
|
+
end
|
120
|
+
new(transformed_hash)
|
121
|
+
end
|
122
|
+
|
123
|
+
# Deserializes the data based on type
|
124
|
+
# @param string type Data type
|
125
|
+
# @param string value Value to be deserialized
|
126
|
+
# @return [Object] Deserialized data
|
127
|
+
def self._deserialize(type, value)
|
128
|
+
case type.to_sym
|
129
|
+
when :Time
|
130
|
+
Time.parse(value)
|
131
|
+
when :Date
|
132
|
+
Date.parse(value)
|
133
|
+
when :String
|
134
|
+
value.to_s
|
135
|
+
when :Integer
|
136
|
+
value.to_i
|
137
|
+
when :Float
|
138
|
+
value.to_f
|
139
|
+
when :Boolean
|
140
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
141
|
+
true
|
142
|
+
else
|
143
|
+
false
|
144
|
+
end
|
145
|
+
when :Object
|
146
|
+
# generic object (usually a Hash), return directly
|
147
|
+
value
|
148
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
149
|
+
inner_type = Regexp.last_match[:inner_type]
|
150
|
+
value.map { |v| _deserialize(inner_type, v) }
|
151
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
152
|
+
k_type = Regexp.last_match[:k_type]
|
153
|
+
v_type = Regexp.last_match[:v_type]
|
154
|
+
{}.tap do |hash|
|
155
|
+
value.each do |k, v|
|
156
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
157
|
+
end
|
158
|
+
end
|
159
|
+
else # model
|
160
|
+
# models (e.g. Pet) or oneOf
|
161
|
+
klass = Akeyless.const_get(type)
|
162
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
166
|
+
# Returns the string representation of the object
|
167
|
+
# @return [String] String presentation of the object
|
168
|
+
def to_s
|
169
|
+
to_hash.to_s
|
170
|
+
end
|
171
|
+
|
172
|
+
# to_body is an alias to to_hash (backward compatibility)
|
173
|
+
# @return [Hash] Returns the object in the form of hash
|
174
|
+
def to_body
|
175
|
+
to_hash
|
176
|
+
end
|
177
|
+
|
178
|
+
# Returns the object in the form of hash
|
179
|
+
# @return [Hash] Returns the object in the form of hash
|
180
|
+
def to_hash
|
181
|
+
hash = {}
|
182
|
+
self.class.attribute_map.each_pair do |attr, param|
|
183
|
+
value = self.send(attr)
|
184
|
+
if value.nil?
|
185
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
186
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
187
|
+
end
|
188
|
+
|
189
|
+
hash[param] = _to_hash(value)
|
190
|
+
end
|
191
|
+
hash
|
192
|
+
end
|
193
|
+
|
194
|
+
# Outputs non-array value in the form of hash
|
195
|
+
# For object, use to_hash. Otherwise, just return the value
|
196
|
+
# @param [Object] value Any valid value
|
197
|
+
# @return [Hash] Returns the value in the form of hash
|
198
|
+
def _to_hash(value)
|
199
|
+
if value.is_a?(Array)
|
200
|
+
value.compact.map { |v| _to_hash(v) }
|
201
|
+
elsif value.is_a?(Hash)
|
202
|
+
{}.tap do |hash|
|
203
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
204
|
+
end
|
205
|
+
elsif value.respond_to? :to_hash
|
206
|
+
value.to_hash
|
207
|
+
else
|
208
|
+
value
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
212
|
+
end
|
213
|
+
|
214
|
+
end
|
@@ -34,6 +34,9 @@ module Akeyless
|
|
34
34
|
# Client Secret
|
35
35
|
attr_accessor :client_secret
|
36
36
|
|
37
|
+
# Auth Method description
|
38
|
+
attr_accessor :description
|
39
|
+
|
37
40
|
# if true: enforce role-association must include sub claims
|
38
41
|
attr_accessor :force_sub_claims
|
39
42
|
|
@@ -82,6 +85,7 @@ module Akeyless
|
|
82
85
|
:'bound_ips' => :'bound-ips',
|
83
86
|
:'client_id' => :'client-id',
|
84
87
|
:'client_secret' => :'client-secret',
|
88
|
+
:'description' => :'description',
|
85
89
|
:'force_sub_claims' => :'force-sub-claims',
|
86
90
|
:'gw_bound_ips' => :'gw-bound-ips',
|
87
91
|
:'issuer' => :'issuer',
|
@@ -112,6 +116,7 @@ module Akeyless
|
|
112
116
|
:'bound_ips' => :'Array<String>',
|
113
117
|
:'client_id' => :'String',
|
114
118
|
:'client_secret' => :'String',
|
119
|
+
:'description' => :'String',
|
115
120
|
:'force_sub_claims' => :'Boolean',
|
116
121
|
:'gw_bound_ips' => :'Array<String>',
|
117
122
|
:'issuer' => :'String',
|
@@ -179,6 +184,10 @@ module Akeyless
|
|
179
184
|
self.client_secret = attributes[:'client_secret']
|
180
185
|
end
|
181
186
|
|
187
|
+
if attributes.key?(:'description')
|
188
|
+
self.description = attributes[:'description']
|
189
|
+
end
|
190
|
+
|
182
191
|
if attributes.key?(:'force_sub_claims')
|
183
192
|
self.force_sub_claims = attributes[:'force_sub_claims']
|
184
193
|
end
|
@@ -282,6 +291,7 @@ module Akeyless
|
|
282
291
|
bound_ips == o.bound_ips &&
|
283
292
|
client_id == o.client_id &&
|
284
293
|
client_secret == o.client_secret &&
|
294
|
+
description == o.description &&
|
285
295
|
force_sub_claims == o.force_sub_claims &&
|
286
296
|
gw_bound_ips == o.gw_bound_ips &&
|
287
297
|
issuer == o.issuer &&
|
@@ -306,7 +316,7 @@ module Akeyless
|
|
306
316
|
# Calculates hash code according to all attributes.
|
307
317
|
# @return [Integer] Hash code
|
308
318
|
def hash
|
309
|
-
[access_expires, allowed_redirect_uri, audience, bound_ips, client_id, client_secret, force_sub_claims, gw_bound_ips, issuer, json, jwt_ttl, name, new_name, required_scopes, required_scopes_prefix, subclaims_delimiters, token, uid_token, unique_identifier].hash
|
319
|
+
[access_expires, allowed_redirect_uri, audience, bound_ips, client_id, client_secret, description, force_sub_claims, gw_bound_ips, issuer, json, jwt_ttl, name, new_name, required_scopes, required_scopes_prefix, subclaims_delimiters, token, uid_token, unique_identifier].hash
|
310
320
|
end
|
311
321
|
|
312
322
|
# Builds the object from hash
|
@@ -25,6 +25,9 @@ module Akeyless
|
|
25
25
|
# A CIDR whitelist with the IPs that the access is restricted to
|
26
26
|
attr_accessor :bound_ips
|
27
27
|
|
28
|
+
# Auth Method description
|
29
|
+
attr_accessor :description
|
30
|
+
|
28
31
|
# if true: enforce role-association must include sub claims
|
29
32
|
attr_accessor :force_sub_claims
|
30
33
|
|
@@ -67,6 +70,7 @@ module Akeyless
|
|
67
70
|
:'access_expires' => :'access-expires',
|
68
71
|
:'allowed_redirect_uri' => :'allowed-redirect-uri',
|
69
72
|
:'bound_ips' => :'bound-ips',
|
73
|
+
:'description' => :'description',
|
70
74
|
:'force_sub_claims' => :'force-sub-claims',
|
71
75
|
:'gw_bound_ips' => :'gw-bound-ips',
|
72
76
|
:'idp_metadata_url' => :'idp-metadata-url',
|
@@ -93,6 +97,7 @@ module Akeyless
|
|
93
97
|
:'access_expires' => :'Integer',
|
94
98
|
:'allowed_redirect_uri' => :'Array<String>',
|
95
99
|
:'bound_ips' => :'Array<String>',
|
100
|
+
:'description' => :'String',
|
96
101
|
:'force_sub_claims' => :'Boolean',
|
97
102
|
:'gw_bound_ips' => :'Array<String>',
|
98
103
|
:'idp_metadata_url' => :'String',
|
@@ -147,6 +152,10 @@ module Akeyless
|
|
147
152
|
end
|
148
153
|
end
|
149
154
|
|
155
|
+
if attributes.key?(:'description')
|
156
|
+
self.description = attributes[:'description']
|
157
|
+
end
|
158
|
+
|
150
159
|
if attributes.key?(:'force_sub_claims')
|
151
160
|
self.force_sub_claims = attributes[:'force_sub_claims']
|
152
161
|
end
|
@@ -241,6 +250,7 @@ module Akeyless
|
|
241
250
|
access_expires == o.access_expires &&
|
242
251
|
allowed_redirect_uri == o.allowed_redirect_uri &&
|
243
252
|
bound_ips == o.bound_ips &&
|
253
|
+
description == o.description &&
|
244
254
|
force_sub_claims == o.force_sub_claims &&
|
245
255
|
gw_bound_ips == o.gw_bound_ips &&
|
246
256
|
idp_metadata_url == o.idp_metadata_url &&
|
@@ -264,7 +274,7 @@ module Akeyless
|
|
264
274
|
# Calculates hash code according to all attributes.
|
265
275
|
# @return [Integer] Hash code
|
266
276
|
def hash
|
267
|
-
[access_expires, allowed_redirect_uri, bound_ips, force_sub_claims, gw_bound_ips, idp_metadata_url, idp_metadata_xml_data, json, jwt_ttl, name, new_name, subclaims_delimiters, token, uid_token, unique_identifier].hash
|
277
|
+
[access_expires, allowed_redirect_uri, bound_ips, description, force_sub_claims, gw_bound_ips, idp_metadata_url, idp_metadata_xml_data, json, jwt_ttl, name, new_name, subclaims_delimiters, token, uid_token, unique_identifier].hash
|
268
278
|
end
|
269
279
|
|
270
280
|
# Builds the object from hash
|