akeyless 3.1.2 → 3.2.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 +13 -1
- data/docs/CreateAWSTarget.md +3 -1
- data/docs/CreateArtifactoryTarget.md +3 -1
- data/docs/CreateAzureTarget.md +3 -1
- data/docs/CreateDBTarget.md +3 -1
- data/docs/CreateDockerhubTarget.md +3 -1
- data/docs/CreateEKSTarget.md +3 -1
- data/docs/CreateEventForwarder.md +3 -1
- data/docs/CreateGKETarget.md +3 -1
- data/docs/CreateGcpTarget.md +3 -1
- data/docs/CreateGithubTarget.md +3 -1
- data/docs/CreateLdapTarget.md +3 -1
- data/docs/CreateNativeK8STarget.md +3 -1
- data/docs/CreatePingTarget.md +40 -0
- data/docs/CreatePingTargetOutput.md +18 -0
- data/docs/CreateRabbitMQTarget.md +3 -1
- data/docs/CreateRole.md +3 -1
- data/docs/CreateRotatedSecret.md +2 -0
- data/docs/CreateSSHTarget.md +3 -1
- data/docs/CreateSalesforceTarget.md +3 -1
- data/docs/CreateWebTarget.md +3 -1
- data/docs/DSProducerDetails.md +40 -0
- data/docs/GatewayCreateProducerEks.md +1 -1
- data/docs/GatewayCreateProducerPing.md +66 -0
- data/docs/GatewayCreateProducerPingOutput.md +18 -0
- data/docs/GatewayUpdateProducerEks.md +1 -1
- data/docs/GatewayUpdateProducerPing.md +68 -0
- data/docs/GatewayUpdateProducerPingOutput.md +18 -0
- data/docs/GetKubeExecCreds.md +5 -3
- data/docs/GetPKICertificate.md +5 -3
- data/docs/ImporterInfo.md +20 -0
- data/docs/ItemGeneralInfo.md +2 -0
- data/docs/RequestAccess.md +3 -1
- data/docs/SecureRemoteAccess.md +2 -0
- data/docs/TargetTypeDetailsInput.md +10 -0
- data/docs/UidCreateChildToken.md +3 -1
- data/docs/UpdateAWSTarget.md +3 -1
- data/docs/UpdateArtifactoryTarget.md +3 -1
- data/docs/UpdateAzureTarget.md +3 -1
- data/docs/UpdateDBTarget.md +3 -1
- data/docs/UpdateDockerhubTarget.md +3 -1
- data/docs/UpdateEKSTarget.md +3 -1
- data/docs/UpdateEventForwarder.md +3 -1
- data/docs/UpdateGKETarget.md +3 -1
- data/docs/UpdateGcpTarget.md +3 -1
- data/docs/UpdateGithubTarget.md +3 -1
- data/docs/UpdateLdapTarget.md +3 -1
- data/docs/UpdateNativeK8STarget.md +3 -1
- data/docs/UpdatePingTarget.md +46 -0
- data/docs/UpdateRabbitMQTarget.md +3 -1
- data/docs/UpdateRole.md +3 -1
- data/docs/UpdateRotatedSecret.md +2 -0
- data/docs/UpdateSSHTarget.md +3 -1
- data/docs/UpdateSalesforceTarget.md +3 -1
- data/docs/UpdateTarget.md +3 -1
- data/docs/UpdateWebTarget.md +3 -1
- data/docs/V2Api.md +252 -0
- data/lib/akeyless/api/v2_api.rb +256 -0
- data/lib/akeyless/models/create_artifactory_target.rb +12 -2
- data/lib/akeyless/models/create_aws_target.rb +12 -2
- data/lib/akeyless/models/create_azure_target.rb +12 -2
- data/lib/akeyless/models/create_db_target.rb +12 -2
- data/lib/akeyless/models/create_dockerhub_target.rb +12 -2
- data/lib/akeyless/models/create_eks_target.rb +12 -2
- data/lib/akeyless/models/create_event_forwarder.rb +12 -2
- data/lib/akeyless/models/create_gcp_target.rb +12 -2
- data/lib/akeyless/models/create_github_target.rb +12 -2
- data/lib/akeyless/models/create_gke_target.rb +12 -2
- data/lib/akeyless/models/create_ldap_target.rb +12 -2
- data/lib/akeyless/models/create_native_k8_s_target.rb +12 -2
- data/lib/akeyless/models/create_ping_target.rb +339 -0
- data/lib/akeyless/models/create_ping_target_output.rb +219 -0
- data/lib/akeyless/models/create_rabbit_mq_target.rb +12 -2
- data/lib/akeyless/models/create_role.rb +12 -2
- data/lib/akeyless/models/create_rotated_secret.rb +13 -1
- data/lib/akeyless/models/create_salesforce_target.rb +12 -2
- data/lib/akeyless/models/create_ssh_target.rb +12 -2
- data/lib/akeyless/models/create_web_target.rb +12 -2
- data/lib/akeyless/models/ds_producer_details.rb +196 -1
- data/lib/akeyless/models/gateway_create_producer_eks.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_ping.rb +482 -0
- data/lib/akeyless/models/gateway_create_producer_ping_output.rb +219 -0
- data/lib/akeyless/models/gateway_update_producer_eks.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_ping.rb +492 -0
- data/lib/akeyless/models/gateway_update_producer_ping_output.rb +219 -0
- data/lib/akeyless/models/get_kube_exec_creds.rb +14 -4
- data/lib/akeyless/models/get_pki_certificate.rb +14 -4
- data/lib/akeyless/models/importer_info.rb +228 -0
- data/lib/akeyless/models/item_general_info.rb +10 -1
- data/lib/akeyless/models/request_access.rb +12 -2
- data/lib/akeyless/models/secure_remote_access.rb +10 -1
- data/lib/akeyless/models/target_type_details_input.rb +46 -1
- data/lib/akeyless/models/uid_create_child_token.rb +12 -2
- data/lib/akeyless/models/update_artifactory_target.rb +12 -2
- data/lib/akeyless/models/update_aws_target.rb +12 -2
- data/lib/akeyless/models/update_azure_target.rb +12 -2
- data/lib/akeyless/models/update_db_target.rb +12 -2
- data/lib/akeyless/models/update_dockerhub_target.rb +12 -2
- data/lib/akeyless/models/update_eks_target.rb +12 -2
- data/lib/akeyless/models/update_event_forwarder.rb +14 -2
- data/lib/akeyless/models/update_gcp_target.rb +12 -2
- data/lib/akeyless/models/update_github_target.rb +12 -2
- data/lib/akeyless/models/update_gke_target.rb +12 -2
- data/lib/akeyless/models/update_ldap_target.rb +12 -2
- data/lib/akeyless/models/update_native_k8_s_target.rb +12 -2
- data/lib/akeyless/models/update_ping_target.rb +368 -0
- data/lib/akeyless/models/update_rabbit_mq_target.rb +12 -2
- data/lib/akeyless/models/update_role.rb +14 -2
- data/lib/akeyless/models/update_rotated_secret.rb +13 -1
- data/lib/akeyless/models/update_salesforce_target.rb +12 -2
- data/lib/akeyless/models/update_ssh_target.rb +12 -2
- data/lib/akeyless/models/update_target.rb +14 -2
- data/lib/akeyless/models/update_web_target.rb +12 -2
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +8 -0
- data/spec/models/create_ping_target_output_spec.rb +34 -0
- data/spec/models/create_ping_target_spec.rb +94 -0
- data/spec/models/gateway_create_producer_ping_output_spec.rb +34 -0
- data/spec/models/gateway_create_producer_ping_spec.rb +178 -0
- data/spec/models/gateway_update_producer_ping_output_spec.rb +34 -0
- data/spec/models/gateway_update_producer_ping_spec.rb +184 -0
- data/spec/models/importer_info_spec.rb +40 -0
- data/spec/models/update_ping_target_spec.rb +112 -0
- metadata +594 -562
@@ -0,0 +1,482 @@
|
|
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.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Akeyless
|
17
|
+
# gatewayCreateProducerPing is a command that creates ping producer
|
18
|
+
class GatewayCreateProducerPing
|
19
|
+
# Protection from accidental deletion of this item
|
20
|
+
attr_accessor :delete_protection
|
21
|
+
|
22
|
+
# Set output format to JSON
|
23
|
+
attr_accessor :json
|
24
|
+
|
25
|
+
# Producer name
|
26
|
+
attr_accessor :name
|
27
|
+
|
28
|
+
# Ping Federate administrative port
|
29
|
+
attr_accessor :ping_administrative_port
|
30
|
+
|
31
|
+
# Set a specific Access Token Management (ATM) instance for the created OAuth Client by providing the ATM Id. If no explicit value is given, the default pingfederate server ATM will be set.
|
32
|
+
attr_accessor :ping_atm_id
|
33
|
+
|
34
|
+
# Ping Federate authorization port
|
35
|
+
attr_accessor :ping_authorization_port
|
36
|
+
|
37
|
+
# The subject DN of the client certificate. If no explicit value is given, the producer will create CA certificate and matched client certificate and return it as value. Used in conjunction with ping-issuer-dn (relevant for CLIENT_TLS_CERTIFICATE authentication method)
|
38
|
+
attr_accessor :ping_cert_subject_dn
|
39
|
+
|
40
|
+
# OAuth Client Authentication Type [CLIENT_SECRET, PRIVATE_KEY_JWT, CLIENT_TLS_CERTIFICATE]
|
41
|
+
attr_accessor :ping_client_authentication_type
|
42
|
+
|
43
|
+
# Determines whether PingFederate requires a unique signed JWT from the client for each action (relevant for PRIVATE_KEY_JWT authentication method)
|
44
|
+
attr_accessor :ping_enforce_replay_prevention
|
45
|
+
|
46
|
+
# List of OAuth client grant types [IMPLICIT, AUTHORIZATION_CODE, CLIENT_CREDENTIALS, TOKEN_EXCHANGE, REFRESH_TOKEN, ASSERTION_GRANTS, PASSWORD, RESOURCE_OWNER_CREDENTIALS]. If no explicit value is given, AUTHORIZATION_CODE will be selected as default.
|
47
|
+
attr_accessor :ping_grant_types
|
48
|
+
|
49
|
+
# Issuer DN of trusted CA certificate that imported into Ping Federate server. You may select \\\"Trust Any\\\" to trust all the existing issuers in Ping Federate server. Used in conjunction with ping-cert-subject-dn (relevant for CLIENT_TLS_CERTIFICATE authentication method)
|
50
|
+
attr_accessor :ping_issuer_dn
|
51
|
+
|
52
|
+
# Base64-encoded JSON Web Key Set (JWKS). If no explicit value is given, the producer will create JWKs and matched signed JWT (Sign Algo: RS256) and return it as value (relevant for PRIVATE_KEY_JWT authentication method)
|
53
|
+
attr_accessor :ping_jwks
|
54
|
+
|
55
|
+
# The URL of the JSON Web Key Set (JWKS). If no explicit value is given, the producer will create JWKs and matched signed JWT and return it as value (relevant for PRIVATE_KEY_JWT authentication method)
|
56
|
+
attr_accessor :ping_jwks_url
|
57
|
+
|
58
|
+
# Ping Federate privileged user password
|
59
|
+
attr_accessor :ping_password
|
60
|
+
|
61
|
+
# Ping Federate privileged user
|
62
|
+
attr_accessor :ping_privileged_user
|
63
|
+
|
64
|
+
# List of URIs to which the OAuth authorization server may redirect the resource owner's user agent after authorization is obtained. At least one redirection URI is required for the AUTHORIZATION_CODE and IMPLICIT grant types.
|
65
|
+
attr_accessor :ping_redirect_uris
|
66
|
+
|
67
|
+
# Limit the OAuth client to specific scopes list
|
68
|
+
attr_accessor :ping_restricted_scopes
|
69
|
+
|
70
|
+
# The signing algorithm that the client must use to sign its request objects [RS256,RS384,RS512,ES256,ES384,ES512,PS256,PS384,PS512] If no explicit value is given, the client can use any of the supported signing algorithms (relevant for PRIVATE_KEY_JWT authentication method)
|
71
|
+
attr_accessor :ping_signing_algo
|
72
|
+
|
73
|
+
# Ping URL
|
74
|
+
attr_accessor :ping_url
|
75
|
+
|
76
|
+
# Dynamic producer encryption key
|
77
|
+
attr_accessor :producer_encryption_key_name
|
78
|
+
|
79
|
+
# List of the tags attached to this secret
|
80
|
+
attr_accessor :tags
|
81
|
+
|
82
|
+
# Target name
|
83
|
+
attr_accessor :target_name
|
84
|
+
|
85
|
+
# Authentication token (see `/auth` and `/configure`)
|
86
|
+
attr_accessor :token
|
87
|
+
|
88
|
+
# The universal identity token, Required only for universal_identity authentication
|
89
|
+
attr_accessor :uid_token
|
90
|
+
|
91
|
+
# The time from dynamic secret creation to expiration.
|
92
|
+
attr_accessor :user_ttl
|
93
|
+
|
94
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
95
|
+
def self.attribute_map
|
96
|
+
{
|
97
|
+
:'delete_protection' => :'delete_protection',
|
98
|
+
:'json' => :'json',
|
99
|
+
:'name' => :'name',
|
100
|
+
:'ping_administrative_port' => :'ping-administrative-port',
|
101
|
+
:'ping_atm_id' => :'ping-atm-id',
|
102
|
+
:'ping_authorization_port' => :'ping-authorization-port',
|
103
|
+
:'ping_cert_subject_dn' => :'ping-cert-subject-dn',
|
104
|
+
:'ping_client_authentication_type' => :'ping-client-authentication-type',
|
105
|
+
:'ping_enforce_replay_prevention' => :'ping-enforce-replay-prevention',
|
106
|
+
:'ping_grant_types' => :'ping-grant-types',
|
107
|
+
:'ping_issuer_dn' => :'ping-issuer-dn',
|
108
|
+
:'ping_jwks' => :'ping-jwks',
|
109
|
+
:'ping_jwks_url' => :'ping-jwks-url',
|
110
|
+
:'ping_password' => :'ping-password',
|
111
|
+
:'ping_privileged_user' => :'ping-privileged-user',
|
112
|
+
:'ping_redirect_uris' => :'ping-redirect-uris',
|
113
|
+
:'ping_restricted_scopes' => :'ping-restricted-scopes',
|
114
|
+
:'ping_signing_algo' => :'ping-signing-algo',
|
115
|
+
:'ping_url' => :'ping-url',
|
116
|
+
:'producer_encryption_key_name' => :'producer-encryption-key-name',
|
117
|
+
:'tags' => :'tags',
|
118
|
+
:'target_name' => :'target-name',
|
119
|
+
:'token' => :'token',
|
120
|
+
:'uid_token' => :'uid-token',
|
121
|
+
:'user_ttl' => :'user-ttl'
|
122
|
+
}
|
123
|
+
end
|
124
|
+
|
125
|
+
# Returns all the JSON keys this model knows about
|
126
|
+
def self.acceptable_attributes
|
127
|
+
attribute_map.values
|
128
|
+
end
|
129
|
+
|
130
|
+
# Attribute type mapping.
|
131
|
+
def self.openapi_types
|
132
|
+
{
|
133
|
+
:'delete_protection' => :'String',
|
134
|
+
:'json' => :'Boolean',
|
135
|
+
:'name' => :'String',
|
136
|
+
:'ping_administrative_port' => :'String',
|
137
|
+
:'ping_atm_id' => :'String',
|
138
|
+
:'ping_authorization_port' => :'String',
|
139
|
+
:'ping_cert_subject_dn' => :'String',
|
140
|
+
:'ping_client_authentication_type' => :'String',
|
141
|
+
:'ping_enforce_replay_prevention' => :'String',
|
142
|
+
:'ping_grant_types' => :'Array<String>',
|
143
|
+
:'ping_issuer_dn' => :'String',
|
144
|
+
:'ping_jwks' => :'String',
|
145
|
+
:'ping_jwks_url' => :'String',
|
146
|
+
:'ping_password' => :'String',
|
147
|
+
:'ping_privileged_user' => :'String',
|
148
|
+
:'ping_redirect_uris' => :'Array<String>',
|
149
|
+
:'ping_restricted_scopes' => :'Array<String>',
|
150
|
+
:'ping_signing_algo' => :'String',
|
151
|
+
:'ping_url' => :'String',
|
152
|
+
:'producer_encryption_key_name' => :'String',
|
153
|
+
:'tags' => :'Array<String>',
|
154
|
+
:'target_name' => :'String',
|
155
|
+
:'token' => :'String',
|
156
|
+
:'uid_token' => :'String',
|
157
|
+
:'user_ttl' => :'String'
|
158
|
+
}
|
159
|
+
end
|
160
|
+
|
161
|
+
# List of attributes with nullable: true
|
162
|
+
def self.openapi_nullable
|
163
|
+
Set.new([
|
164
|
+
])
|
165
|
+
end
|
166
|
+
|
167
|
+
# Initializes the object
|
168
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
169
|
+
def initialize(attributes = {})
|
170
|
+
if (!attributes.is_a?(Hash))
|
171
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::GatewayCreateProducerPing` initialize method"
|
172
|
+
end
|
173
|
+
|
174
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
175
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
176
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
177
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::GatewayCreateProducerPing`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
178
|
+
end
|
179
|
+
h[k.to_sym] = v
|
180
|
+
}
|
181
|
+
|
182
|
+
if attributes.key?(:'delete_protection')
|
183
|
+
self.delete_protection = attributes[:'delete_protection']
|
184
|
+
end
|
185
|
+
|
186
|
+
if attributes.key?(:'json')
|
187
|
+
self.json = attributes[:'json']
|
188
|
+
end
|
189
|
+
|
190
|
+
if attributes.key?(:'name')
|
191
|
+
self.name = attributes[:'name']
|
192
|
+
end
|
193
|
+
|
194
|
+
if attributes.key?(:'ping_administrative_port')
|
195
|
+
self.ping_administrative_port = attributes[:'ping_administrative_port']
|
196
|
+
else
|
197
|
+
self.ping_administrative_port = '9999'
|
198
|
+
end
|
199
|
+
|
200
|
+
if attributes.key?(:'ping_atm_id')
|
201
|
+
self.ping_atm_id = attributes[:'ping_atm_id']
|
202
|
+
end
|
203
|
+
|
204
|
+
if attributes.key?(:'ping_authorization_port')
|
205
|
+
self.ping_authorization_port = attributes[:'ping_authorization_port']
|
206
|
+
else
|
207
|
+
self.ping_authorization_port = '9031'
|
208
|
+
end
|
209
|
+
|
210
|
+
if attributes.key?(:'ping_cert_subject_dn')
|
211
|
+
self.ping_cert_subject_dn = attributes[:'ping_cert_subject_dn']
|
212
|
+
end
|
213
|
+
|
214
|
+
if attributes.key?(:'ping_client_authentication_type')
|
215
|
+
self.ping_client_authentication_type = attributes[:'ping_client_authentication_type']
|
216
|
+
else
|
217
|
+
self.ping_client_authentication_type = 'CLIENT_SECRET'
|
218
|
+
end
|
219
|
+
|
220
|
+
if attributes.key?(:'ping_enforce_replay_prevention')
|
221
|
+
self.ping_enforce_replay_prevention = attributes[:'ping_enforce_replay_prevention']
|
222
|
+
end
|
223
|
+
|
224
|
+
if attributes.key?(:'ping_grant_types')
|
225
|
+
if (value = attributes[:'ping_grant_types']).is_a?(Array)
|
226
|
+
self.ping_grant_types = value
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
230
|
+
if attributes.key?(:'ping_issuer_dn')
|
231
|
+
self.ping_issuer_dn = attributes[:'ping_issuer_dn']
|
232
|
+
end
|
233
|
+
|
234
|
+
if attributes.key?(:'ping_jwks')
|
235
|
+
self.ping_jwks = attributes[:'ping_jwks']
|
236
|
+
end
|
237
|
+
|
238
|
+
if attributes.key?(:'ping_jwks_url')
|
239
|
+
self.ping_jwks_url = attributes[:'ping_jwks_url']
|
240
|
+
end
|
241
|
+
|
242
|
+
if attributes.key?(:'ping_password')
|
243
|
+
self.ping_password = attributes[:'ping_password']
|
244
|
+
end
|
245
|
+
|
246
|
+
if attributes.key?(:'ping_privileged_user')
|
247
|
+
self.ping_privileged_user = attributes[:'ping_privileged_user']
|
248
|
+
end
|
249
|
+
|
250
|
+
if attributes.key?(:'ping_redirect_uris')
|
251
|
+
if (value = attributes[:'ping_redirect_uris']).is_a?(Array)
|
252
|
+
self.ping_redirect_uris = value
|
253
|
+
end
|
254
|
+
end
|
255
|
+
|
256
|
+
if attributes.key?(:'ping_restricted_scopes')
|
257
|
+
if (value = attributes[:'ping_restricted_scopes']).is_a?(Array)
|
258
|
+
self.ping_restricted_scopes = value
|
259
|
+
end
|
260
|
+
end
|
261
|
+
|
262
|
+
if attributes.key?(:'ping_signing_algo')
|
263
|
+
self.ping_signing_algo = attributes[:'ping_signing_algo']
|
264
|
+
end
|
265
|
+
|
266
|
+
if attributes.key?(:'ping_url')
|
267
|
+
self.ping_url = attributes[:'ping_url']
|
268
|
+
end
|
269
|
+
|
270
|
+
if attributes.key?(:'producer_encryption_key_name')
|
271
|
+
self.producer_encryption_key_name = attributes[:'producer_encryption_key_name']
|
272
|
+
end
|
273
|
+
|
274
|
+
if attributes.key?(:'tags')
|
275
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
276
|
+
self.tags = value
|
277
|
+
end
|
278
|
+
end
|
279
|
+
|
280
|
+
if attributes.key?(:'target_name')
|
281
|
+
self.target_name = attributes[:'target_name']
|
282
|
+
end
|
283
|
+
|
284
|
+
if attributes.key?(:'token')
|
285
|
+
self.token = attributes[:'token']
|
286
|
+
end
|
287
|
+
|
288
|
+
if attributes.key?(:'uid_token')
|
289
|
+
self.uid_token = attributes[:'uid_token']
|
290
|
+
end
|
291
|
+
|
292
|
+
if attributes.key?(:'user_ttl')
|
293
|
+
self.user_ttl = attributes[:'user_ttl']
|
294
|
+
else
|
295
|
+
self.user_ttl = '60m'
|
296
|
+
end
|
297
|
+
end
|
298
|
+
|
299
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
300
|
+
# @return Array for valid properties with the reasons
|
301
|
+
def list_invalid_properties
|
302
|
+
invalid_properties = Array.new
|
303
|
+
if @name.nil?
|
304
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
305
|
+
end
|
306
|
+
|
307
|
+
invalid_properties
|
308
|
+
end
|
309
|
+
|
310
|
+
# Check to see if the all the properties in the model are valid
|
311
|
+
# @return true if the model is valid
|
312
|
+
def valid?
|
313
|
+
return false if @name.nil?
|
314
|
+
true
|
315
|
+
end
|
316
|
+
|
317
|
+
# Checks equality by comparing each attribute.
|
318
|
+
# @param [Object] Object to be compared
|
319
|
+
def ==(o)
|
320
|
+
return true if self.equal?(o)
|
321
|
+
self.class == o.class &&
|
322
|
+
delete_protection == o.delete_protection &&
|
323
|
+
json == o.json &&
|
324
|
+
name == o.name &&
|
325
|
+
ping_administrative_port == o.ping_administrative_port &&
|
326
|
+
ping_atm_id == o.ping_atm_id &&
|
327
|
+
ping_authorization_port == o.ping_authorization_port &&
|
328
|
+
ping_cert_subject_dn == o.ping_cert_subject_dn &&
|
329
|
+
ping_client_authentication_type == o.ping_client_authentication_type &&
|
330
|
+
ping_enforce_replay_prevention == o.ping_enforce_replay_prevention &&
|
331
|
+
ping_grant_types == o.ping_grant_types &&
|
332
|
+
ping_issuer_dn == o.ping_issuer_dn &&
|
333
|
+
ping_jwks == o.ping_jwks &&
|
334
|
+
ping_jwks_url == o.ping_jwks_url &&
|
335
|
+
ping_password == o.ping_password &&
|
336
|
+
ping_privileged_user == o.ping_privileged_user &&
|
337
|
+
ping_redirect_uris == o.ping_redirect_uris &&
|
338
|
+
ping_restricted_scopes == o.ping_restricted_scopes &&
|
339
|
+
ping_signing_algo == o.ping_signing_algo &&
|
340
|
+
ping_url == o.ping_url &&
|
341
|
+
producer_encryption_key_name == o.producer_encryption_key_name &&
|
342
|
+
tags == o.tags &&
|
343
|
+
target_name == o.target_name &&
|
344
|
+
token == o.token &&
|
345
|
+
uid_token == o.uid_token &&
|
346
|
+
user_ttl == o.user_ttl
|
347
|
+
end
|
348
|
+
|
349
|
+
# @see the `==` method
|
350
|
+
# @param [Object] Object to be compared
|
351
|
+
def eql?(o)
|
352
|
+
self == o
|
353
|
+
end
|
354
|
+
|
355
|
+
# Calculates hash code according to all attributes.
|
356
|
+
# @return [Integer] Hash code
|
357
|
+
def hash
|
358
|
+
[delete_protection, json, name, ping_administrative_port, ping_atm_id, ping_authorization_port, ping_cert_subject_dn, ping_client_authentication_type, ping_enforce_replay_prevention, ping_grant_types, ping_issuer_dn, ping_jwks, ping_jwks_url, ping_password, ping_privileged_user, ping_redirect_uris, ping_restricted_scopes, ping_signing_algo, ping_url, producer_encryption_key_name, tags, target_name, token, uid_token, user_ttl].hash
|
359
|
+
end
|
360
|
+
|
361
|
+
# Builds the object from hash
|
362
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
363
|
+
# @return [Object] Returns the model itself
|
364
|
+
def self.build_from_hash(attributes)
|
365
|
+
new.build_from_hash(attributes)
|
366
|
+
end
|
367
|
+
|
368
|
+
# Builds the object from hash
|
369
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
370
|
+
# @return [Object] Returns the model itself
|
371
|
+
def build_from_hash(attributes)
|
372
|
+
return nil unless attributes.is_a?(Hash)
|
373
|
+
attributes = attributes.transform_keys(&:to_sym)
|
374
|
+
self.class.openapi_types.each_pair do |key, type|
|
375
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
376
|
+
self.send("#{key}=", nil)
|
377
|
+
elsif type =~ /\AArray<(.*)>/i
|
378
|
+
# check to ensure the input is an array given that the attribute
|
379
|
+
# is documented as an array but the input is not
|
380
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
381
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
382
|
+
end
|
383
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
384
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
385
|
+
end
|
386
|
+
end
|
387
|
+
|
388
|
+
self
|
389
|
+
end
|
390
|
+
|
391
|
+
# Deserializes the data based on type
|
392
|
+
# @param string type Data type
|
393
|
+
# @param string value Value to be deserialized
|
394
|
+
# @return [Object] Deserialized data
|
395
|
+
def _deserialize(type, value)
|
396
|
+
case type.to_sym
|
397
|
+
when :Time
|
398
|
+
Time.parse(value)
|
399
|
+
when :Date
|
400
|
+
Date.parse(value)
|
401
|
+
when :String
|
402
|
+
value.to_s
|
403
|
+
when :Integer
|
404
|
+
value.to_i
|
405
|
+
when :Float
|
406
|
+
value.to_f
|
407
|
+
when :Boolean
|
408
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
409
|
+
true
|
410
|
+
else
|
411
|
+
false
|
412
|
+
end
|
413
|
+
when :Object
|
414
|
+
# generic object (usually a Hash), return directly
|
415
|
+
value
|
416
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
417
|
+
inner_type = Regexp.last_match[:inner_type]
|
418
|
+
value.map { |v| _deserialize(inner_type, v) }
|
419
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
420
|
+
k_type = Regexp.last_match[:k_type]
|
421
|
+
v_type = Regexp.last_match[:v_type]
|
422
|
+
{}.tap do |hash|
|
423
|
+
value.each do |k, v|
|
424
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
425
|
+
end
|
426
|
+
end
|
427
|
+
else # model
|
428
|
+
# models (e.g. Pet) or oneOf
|
429
|
+
klass = Akeyless.const_get(type)
|
430
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
431
|
+
end
|
432
|
+
end
|
433
|
+
|
434
|
+
# Returns the string representation of the object
|
435
|
+
# @return [String] String presentation of the object
|
436
|
+
def to_s
|
437
|
+
to_hash.to_s
|
438
|
+
end
|
439
|
+
|
440
|
+
# to_body is an alias to to_hash (backward compatibility)
|
441
|
+
# @return [Hash] Returns the object in the form of hash
|
442
|
+
def to_body
|
443
|
+
to_hash
|
444
|
+
end
|
445
|
+
|
446
|
+
# Returns the object in the form of hash
|
447
|
+
# @return [Hash] Returns the object in the form of hash
|
448
|
+
def to_hash
|
449
|
+
hash = {}
|
450
|
+
self.class.attribute_map.each_pair do |attr, param|
|
451
|
+
value = self.send(attr)
|
452
|
+
if value.nil?
|
453
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
454
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
455
|
+
end
|
456
|
+
|
457
|
+
hash[param] = _to_hash(value)
|
458
|
+
end
|
459
|
+
hash
|
460
|
+
end
|
461
|
+
|
462
|
+
# Outputs non-array value in the form of hash
|
463
|
+
# For object, use to_hash. Otherwise, just return the value
|
464
|
+
# @param [Object] value Any valid value
|
465
|
+
# @return [Hash] Returns the value in the form of hash
|
466
|
+
def _to_hash(value)
|
467
|
+
if value.is_a?(Array)
|
468
|
+
value.compact.map { |v| _to_hash(v) }
|
469
|
+
elsif value.is_a?(Hash)
|
470
|
+
{}.tap do |hash|
|
471
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
472
|
+
end
|
473
|
+
elsif value.respond_to? :to_hash
|
474
|
+
value.to_hash
|
475
|
+
else
|
476
|
+
value
|
477
|
+
end
|
478
|
+
end
|
479
|
+
|
480
|
+
end
|
481
|
+
|
482
|
+
end
|
@@ -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.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Akeyless
|
17
|
+
class GatewayCreateProducerPingOutput
|
18
|
+
attr_accessor :producer_details
|
19
|
+
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
21
|
+
def self.attribute_map
|
22
|
+
{
|
23
|
+
:'producer_details' => :'producer_details'
|
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
|
+
:'producer_details' => :'DSProducerDetails'
|
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::GatewayCreateProducerPingOutput` 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::GatewayCreateProducerPingOutput`. 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?(:'producer_details')
|
61
|
+
self.producer_details = attributes[:'producer_details']
|
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
|
+
producer_details == o.producer_details
|
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
|
+
[producer_details].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
|