vgs_api_client 0.0.21 → 0.0.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +27 -27
- data/docker-compose.yaml +3 -6
- data/docs/AliasFormat.md +2 -2
- data/docs/AliasesApi.md +23 -23
- data/docs/ApiError.md +2 -2
- data/docs/CreateAliasesRequest.md +2 -2
- data/docs/CreateAliasesRequestExisting.md +2 -2
- data/docs/CreateAliasesRequestNew.md +2 -2
- data/docs/InlineResponse200.md +2 -2
- data/docs/InlineResponse2001.md +2 -2
- data/docs/InlineResponse201.md +2 -2
- data/docs/InlineResponseDefault.md +2 -2
- data/docs/ModelAlias.md +2 -2
- data/docs/RevealedData.md +2 -2
- data/docs/UpdateAliasRequest.md +2 -2
- data/docs/UpdateAliasRequestData.md +2 -2
- data/git_push.sh +4 -3
- data/lib/vgs_api_client/api/aliases_api.rb +4 -10
- data/lib/vgs_api_client/api_client.rb +7 -7
- data/lib/vgs_api_client/api_error.rb +2 -2
- data/lib/vgs_api_client/configuration.rb +3 -4
- data/lib/vgs_api_client/models/alias_format.rb +2 -2
- data/lib/vgs_api_client/models/api_error.rb +5 -5
- data/lib/vgs_api_client/models/create_aliases_request.rb +5 -33
- data/lib/vgs_api_client/models/create_aliases_request_existing.rb +5 -5
- data/lib/vgs_api_client/models/create_aliases_request_new.rb +5 -5
- data/lib/vgs_api_client/models/inline_response200.rb +5 -5
- data/lib/vgs_api_client/models/inline_response2001.rb +5 -29
- data/lib/vgs_api_client/models/inline_response201.rb +5 -5
- data/lib/vgs_api_client/models/inline_response_default.rb +5 -20
- data/lib/vgs_api_client/models/model_alias.rb +5 -5
- data/lib/vgs_api_client/models/revealed_data.rb +5 -5
- data/lib/vgs_api_client/models/update_alias_request.rb +5 -5
- data/lib/vgs_api_client/models/update_alias_request_data.rb +5 -5
- data/lib/vgs_api_client/version.rb +3 -3
- data/lib/vgs_api_client.rb +3 -3
- data/{docker → publish}/Dockerfile +1 -1
- data/{docker → publish}/build_and_publish.sh +3 -1
- data/spec/api/aliases_api_spec.rb +11 -52
- data/spec/api/test_api_spec.rb +137 -0
- data/spec/api_client_spec.rb +32 -32
- data/spec/configuration_spec.rb +4 -4
- data/spec/models/alias_format_spec.rb +4 -4
- data/spec/models/api_error_spec.rb +4 -4
- data/spec/models/create_aliases_request_existing_spec.rb +4 -4
- data/spec/models/create_aliases_request_new_spec.rb +4 -4
- data/spec/models/create_aliases_request_spec.rb +4 -4
- data/spec/models/inline_response2001_spec.rb +4 -4
- data/spec/models/inline_response200_spec.rb +4 -4
- data/spec/models/inline_response201_spec.rb +4 -4
- data/spec/models/inline_response_default_spec.rb +4 -4
- data/spec/models/model_alias_spec.rb +4 -4
- data/spec/models/revealed_data_spec.rb +4 -4
- data/spec/models/update_alias_request_data_spec.rb +4 -4
- data/spec/models/update_alias_request_spec.rb +4 -4
- data/spec/spec_helper.rb +1 -1
- data/test/Dockerfile +16 -0
- data/vgs_api_client.gemspec +2 -2
- metadata +7 -6
- data/Gemfile.lock +0 -70
- data/docker/Dockerfile.test +0 -5
@@ -6,11 +6,11 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: support@verygoodsecurity.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
module
|
13
|
+
module VgsApiClient
|
14
14
|
class Configuration
|
15
15
|
# Defines url scheme
|
16
16
|
attr_accessor :scheme
|
@@ -147,13 +147,13 @@ module VgsapiClient
|
|
147
147
|
@server_operation_variables = {}
|
148
148
|
@api_key = {}
|
149
149
|
@api_key_prefix = {}
|
150
|
+
@timeout = 0
|
150
151
|
@client_side_validation = true
|
151
152
|
@verify_ssl = true
|
152
153
|
@verify_ssl_host = true
|
153
154
|
@params_encoding = nil
|
154
155
|
@cert_file = nil
|
155
156
|
@key_file = nil
|
156
|
-
@timeout = 0
|
157
157
|
@debugging = false
|
158
158
|
@inject_format = false
|
159
159
|
@force_ending_format = false
|
@@ -281,6 +281,5 @@ module VgsapiClient
|
|
281
281
|
|
282
282
|
url
|
283
283
|
end
|
284
|
-
|
285
284
|
end
|
286
285
|
end
|
@@ -6,14 +6,14 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: support@verygoodsecurity.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module VgsApiClient
|
17
17
|
class AliasFormat
|
18
18
|
FPE_ACC_NUM_T_FOUR = "FPE_ACC_NUM_T_FOUR".freeze
|
19
19
|
FPE_ALPHANUMERIC_ACC_NUM_T_FOUR = "FPE_ALPHANUMERIC_ACC_NUM_T_FOUR".freeze
|
@@ -6,14 +6,14 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: support@verygoodsecurity.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module VgsApiClient
|
17
17
|
class ApiError
|
18
18
|
# Explanation of what exactly went wrong.
|
19
19
|
attr_accessor :detail
|
@@ -62,13 +62,13 @@ module VgsapiClient
|
|
62
62
|
# @param [Hash] attributes Model attributes in the form of hash
|
63
63
|
def initialize(attributes = {})
|
64
64
|
if (!attributes.is_a?(Hash))
|
65
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `VgsApiClient::ApiError` initialize method"
|
66
66
|
end
|
67
67
|
|
68
68
|
# check to see if the attribute exists and convert string to symbol for hash key
|
69
69
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
70
70
|
if (!self.class.attribute_map.key?(k.to_sym))
|
71
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `VgsApiClient::ApiError`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
72
72
|
end
|
73
73
|
h[k.to_sym] = v
|
74
74
|
}
|
@@ -193,7 +193,7 @@ module VgsapiClient
|
|
193
193
|
end
|
194
194
|
else # model
|
195
195
|
# models (e.g. Pet) or oneOf
|
196
|
-
klass =
|
196
|
+
klass = VgsApiClient.const_get(type)
|
197
197
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
198
198
|
end
|
199
199
|
end
|
@@ -6,14 +6,14 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: support@verygoodsecurity.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module VgsApiClient
|
17
17
|
class CreateAliasesRequest
|
18
18
|
attr_accessor :data
|
19
19
|
|
@@ -46,13 +46,13 @@ module VgsapiClient
|
|
46
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
47
|
def initialize(attributes = {})
|
48
48
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `VgsApiClient::CreateAliasesRequest` initialize method"
|
50
50
|
end
|
51
51
|
|
52
52
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
53
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
54
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `VgsApiClient::CreateAliasesRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
56
|
end
|
57
57
|
h[k.to_sym] = v
|
58
58
|
}
|
@@ -72,14 +72,6 @@ module VgsapiClient
|
|
72
72
|
invalid_properties.push('invalid value for "data", data cannot be nil.')
|
73
73
|
end
|
74
74
|
|
75
|
-
if @data.length > 20
|
76
|
-
invalid_properties.push('invalid value for "data", number of items must be less than or equal to 20.')
|
77
|
-
end
|
78
|
-
|
79
|
-
if @data.length < 1
|
80
|
-
invalid_properties.push('invalid value for "data", number of items must be greater than or equal to 1.')
|
81
|
-
end
|
82
|
-
|
83
75
|
invalid_properties
|
84
76
|
end
|
85
77
|
|
@@ -87,29 +79,9 @@ module VgsapiClient
|
|
87
79
|
# @return true if the model is valid
|
88
80
|
def valid?
|
89
81
|
return false if @data.nil?
|
90
|
-
return false if @data.length > 20
|
91
|
-
return false if @data.length < 1
|
92
82
|
true
|
93
83
|
end
|
94
84
|
|
95
|
-
# Custom attribute writer method with validation
|
96
|
-
# @param [Object] data Value to be assigned
|
97
|
-
def data=(data)
|
98
|
-
if data.nil?
|
99
|
-
fail ArgumentError, 'data cannot be nil'
|
100
|
-
end
|
101
|
-
|
102
|
-
if data.length > 20
|
103
|
-
fail ArgumentError, 'invalid value for "data", number of items must be less than or equal to 20.'
|
104
|
-
end
|
105
|
-
|
106
|
-
if data.length < 1
|
107
|
-
fail ArgumentError, 'invalid value for "data", number of items must be greater than or equal to 1.'
|
108
|
-
end
|
109
|
-
|
110
|
-
@data = data
|
111
|
-
end
|
112
|
-
|
113
85
|
# Checks equality by comparing each attribute.
|
114
86
|
# @param [Object] Object to be compared
|
115
87
|
def ==(o)
|
@@ -197,7 +169,7 @@ module VgsapiClient
|
|
197
169
|
end
|
198
170
|
else # model
|
199
171
|
# models (e.g. Pet) or oneOf
|
200
|
-
klass =
|
172
|
+
klass = VgsApiClient.const_get(type)
|
201
173
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
202
174
|
end
|
203
175
|
end
|
@@ -6,14 +6,14 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: support@verygoodsecurity.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module VgsApiClient
|
17
17
|
class CreateAliasesRequestExisting
|
18
18
|
# Existing alias to use as a reference.
|
19
19
|
attr_accessor :_alias
|
@@ -51,13 +51,13 @@ module VgsapiClient
|
|
51
51
|
# @param [Hash] attributes Model attributes in the form of hash
|
52
52
|
def initialize(attributes = {})
|
53
53
|
if (!attributes.is_a?(Hash))
|
54
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `VgsApiClient::CreateAliasesRequestExisting` initialize method"
|
55
55
|
end
|
56
56
|
|
57
57
|
# check to see if the attribute exists and convert string to symbol for hash key
|
58
58
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
59
59
|
if (!self.class.attribute_map.key?(k.to_sym))
|
60
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
60
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `VgsApiClient::CreateAliasesRequestExisting`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
61
61
|
end
|
62
62
|
h[k.to_sym] = v
|
63
63
|
}
|
@@ -182,7 +182,7 @@ module VgsapiClient
|
|
182
182
|
end
|
183
183
|
else # model
|
184
184
|
# models (e.g. Pet) or oneOf
|
185
|
-
klass =
|
185
|
+
klass = VgsApiClient.const_get(type)
|
186
186
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
187
187
|
end
|
188
188
|
end
|
@@ -6,14 +6,14 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: support@verygoodsecurity.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module VgsApiClient
|
17
17
|
class CreateAliasesRequestNew
|
18
18
|
# List of tags to classify the value with.
|
19
19
|
attr_accessor :classifiers
|
@@ -56,13 +56,13 @@ module VgsapiClient
|
|
56
56
|
# @param [Hash] attributes Model attributes in the form of hash
|
57
57
|
def initialize(attributes = {})
|
58
58
|
if (!attributes.is_a?(Hash))
|
59
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
59
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `VgsApiClient::CreateAliasesRequestNew` initialize method"
|
60
60
|
end
|
61
61
|
|
62
62
|
# check to see if the attribute exists and convert string to symbol for hash key
|
63
63
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
64
64
|
if (!self.class.attribute_map.key?(k.to_sym))
|
65
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `VgsApiClient::CreateAliasesRequestNew`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
66
66
|
end
|
67
67
|
h[k.to_sym] = v
|
68
68
|
}
|
@@ -194,7 +194,7 @@ module VgsapiClient
|
|
194
194
|
end
|
195
195
|
else # model
|
196
196
|
# models (e.g. Pet) or oneOf
|
197
|
-
klass =
|
197
|
+
klass = VgsApiClient.const_get(type)
|
198
198
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
199
199
|
end
|
200
200
|
end
|
@@ -6,14 +6,14 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: support@verygoodsecurity.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module VgsApiClient
|
17
17
|
class InlineResponse200
|
18
18
|
attr_accessor :data
|
19
19
|
|
@@ -46,13 +46,13 @@ module VgsapiClient
|
|
46
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
47
|
def initialize(attributes = {})
|
48
48
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `VgsApiClient::InlineResponse200` initialize method"
|
50
50
|
end
|
51
51
|
|
52
52
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
53
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
54
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `VgsApiClient::InlineResponse200`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
56
|
end
|
57
57
|
h[k.to_sym] = v
|
58
58
|
}
|
@@ -164,7 +164,7 @@ module VgsapiClient
|
|
164
164
|
end
|
165
165
|
else # model
|
166
166
|
# models (e.g. Pet) or oneOf
|
167
|
-
klass =
|
167
|
+
klass = VgsApiClient.const_get(type)
|
168
168
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
169
169
|
end
|
170
170
|
end
|
@@ -6,14 +6,14 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: support@verygoodsecurity.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module VgsApiClient
|
17
17
|
class InlineResponse2001
|
18
18
|
# The retrieved value.
|
19
19
|
attr_accessor :data
|
@@ -47,13 +47,13 @@ module VgsapiClient
|
|
47
47
|
# @param [Hash] attributes Model attributes in the form of hash
|
48
48
|
def initialize(attributes = {})
|
49
49
|
if (!attributes.is_a?(Hash))
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `VgsApiClient::InlineResponse2001` initialize method"
|
51
51
|
end
|
52
52
|
|
53
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
54
54
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
55
|
if (!self.class.attribute_map.key?(k.to_sym))
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `VgsApiClient::InlineResponse2001`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
57
|
end
|
58
58
|
h[k.to_sym] = v
|
59
59
|
}
|
@@ -69,39 +69,15 @@ module VgsapiClient
|
|
69
69
|
# @return Array for valid properties with the reasons
|
70
70
|
def list_invalid_properties
|
71
71
|
invalid_properties = Array.new
|
72
|
-
if !@data.nil? && @data.length > 1
|
73
|
-
invalid_properties.push('invalid value for "data", number of items must be less than or equal to 1.')
|
74
|
-
end
|
75
|
-
|
76
|
-
if !@data.nil? && @data.length < 1
|
77
|
-
invalid_properties.push('invalid value for "data", number of items must be greater than or equal to 1.')
|
78
|
-
end
|
79
|
-
|
80
72
|
invalid_properties
|
81
73
|
end
|
82
74
|
|
83
75
|
# Check to see if the all the properties in the model are valid
|
84
76
|
# @return true if the model is valid
|
85
77
|
def valid?
|
86
|
-
return false if !@data.nil? && @data.length > 1
|
87
|
-
return false if !@data.nil? && @data.length < 1
|
88
78
|
true
|
89
79
|
end
|
90
80
|
|
91
|
-
# Custom attribute writer method with validation
|
92
|
-
# @param [Object] data Value to be assigned
|
93
|
-
def data=(data)
|
94
|
-
if !data.nil? && data.length > 1
|
95
|
-
fail ArgumentError, 'invalid value for "data", number of items must be less than or equal to 1.'
|
96
|
-
end
|
97
|
-
|
98
|
-
if !data.nil? && data.length < 1
|
99
|
-
fail ArgumentError, 'invalid value for "data", number of items must be greater than or equal to 1.'
|
100
|
-
end
|
101
|
-
|
102
|
-
@data = data
|
103
|
-
end
|
104
|
-
|
105
81
|
# Checks equality by comparing each attribute.
|
106
82
|
# @param [Object] Object to be compared
|
107
83
|
def ==(o)
|
@@ -189,7 +165,7 @@ module VgsapiClient
|
|
189
165
|
end
|
190
166
|
else # model
|
191
167
|
# models (e.g. Pet) or oneOf
|
192
|
-
klass =
|
168
|
+
klass = VgsApiClient.const_get(type)
|
193
169
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
194
170
|
end
|
195
171
|
end
|
@@ -6,14 +6,14 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: support@verygoodsecurity.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module VgsApiClient
|
17
17
|
class InlineResponse201
|
18
18
|
# List of stored values along with their aliases.
|
19
19
|
attr_accessor :data
|
@@ -47,13 +47,13 @@ module VgsapiClient
|
|
47
47
|
# @param [Hash] attributes Model attributes in the form of hash
|
48
48
|
def initialize(attributes = {})
|
49
49
|
if (!attributes.is_a?(Hash))
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `VgsApiClient::InlineResponse201` initialize method"
|
51
51
|
end
|
52
52
|
|
53
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
54
54
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
55
|
if (!self.class.attribute_map.key?(k.to_sym))
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `VgsApiClient::InlineResponse201`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
57
|
end
|
58
58
|
h[k.to_sym] = v
|
59
59
|
}
|
@@ -165,7 +165,7 @@ module VgsapiClient
|
|
165
165
|
end
|
166
166
|
else # model
|
167
167
|
# models (e.g. Pet) or oneOf
|
168
|
-
klass =
|
168
|
+
klass = VgsApiClient.const_get(type)
|
169
169
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
170
170
|
end
|
171
171
|
end
|
@@ -6,14 +6,14 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: support@verygoodsecurity.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module VgsApiClient
|
17
17
|
class InlineResponseDefault
|
18
18
|
# List of errors that occurred while processing the request.
|
19
19
|
attr_accessor :errors
|
@@ -47,13 +47,13 @@ module VgsapiClient
|
|
47
47
|
# @param [Hash] attributes Model attributes in the form of hash
|
48
48
|
def initialize(attributes = {})
|
49
49
|
if (!attributes.is_a?(Hash))
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `VgsApiClient::InlineResponseDefault` initialize method"
|
51
51
|
end
|
52
52
|
|
53
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
54
54
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
55
|
if (!self.class.attribute_map.key?(k.to_sym))
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `VgsApiClient::InlineResponseDefault`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
57
|
end
|
58
58
|
h[k.to_sym] = v
|
59
59
|
}
|
@@ -69,30 +69,15 @@ module VgsapiClient
|
|
69
69
|
# @return Array for valid properties with the reasons
|
70
70
|
def list_invalid_properties
|
71
71
|
invalid_properties = Array.new
|
72
|
-
if !@errors.nil? && @errors.length < 1
|
73
|
-
invalid_properties.push('invalid value for "errors", number of items must be greater than or equal to 1.')
|
74
|
-
end
|
75
|
-
|
76
72
|
invalid_properties
|
77
73
|
end
|
78
74
|
|
79
75
|
# Check to see if the all the properties in the model are valid
|
80
76
|
# @return true if the model is valid
|
81
77
|
def valid?
|
82
|
-
return false if !@errors.nil? && @errors.length < 1
|
83
78
|
true
|
84
79
|
end
|
85
80
|
|
86
|
-
# Custom attribute writer method with validation
|
87
|
-
# @param [Object] errors Value to be assigned
|
88
|
-
def errors=(errors)
|
89
|
-
if !errors.nil? && errors.length < 1
|
90
|
-
fail ArgumentError, 'invalid value for "errors", number of items must be greater than or equal to 1.'
|
91
|
-
end
|
92
|
-
|
93
|
-
@errors = errors
|
94
|
-
end
|
95
|
-
|
96
81
|
# Checks equality by comparing each attribute.
|
97
82
|
# @param [Object] Object to be compared
|
98
83
|
def ==(o)
|
@@ -180,7 +165,7 @@ module VgsapiClient
|
|
180
165
|
end
|
181
166
|
else # model
|
182
167
|
# models (e.g. Pet) or oneOf
|
183
|
-
klass =
|
168
|
+
klass = VgsApiClient.const_get(type)
|
184
169
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
185
170
|
end
|
186
171
|
end
|
@@ -6,14 +6,14 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: support@verygoodsecurity.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module VgsApiClient
|
17
17
|
class ModelAlias
|
18
18
|
# Opaque string used to substitute the raw value.
|
19
19
|
attr_accessor :_alias
|
@@ -51,13 +51,13 @@ module VgsapiClient
|
|
51
51
|
# @param [Hash] attributes Model attributes in the form of hash
|
52
52
|
def initialize(attributes = {})
|
53
53
|
if (!attributes.is_a?(Hash))
|
54
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `VgsApiClient::ModelAlias` initialize method"
|
55
55
|
end
|
56
56
|
|
57
57
|
# check to see if the attribute exists and convert string to symbol for hash key
|
58
58
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
59
59
|
if (!self.class.attribute_map.key?(k.to_sym))
|
60
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
60
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `VgsApiClient::ModelAlias`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
61
61
|
end
|
62
62
|
h[k.to_sym] = v
|
63
63
|
}
|
@@ -172,7 +172,7 @@ module VgsapiClient
|
|
172
172
|
end
|
173
173
|
else # model
|
174
174
|
# models (e.g. Pet) or oneOf
|
175
|
-
klass =
|
175
|
+
klass = VgsApiClient.const_get(type)
|
176
176
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
177
177
|
end
|
178
178
|
end
|
@@ -6,14 +6,14 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: support@verygoodsecurity.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module VgsApiClient
|
17
17
|
class RevealedData
|
18
18
|
# List of aliases associated with the value.
|
19
19
|
attr_accessor :aliases
|
@@ -62,13 +62,13 @@ module VgsapiClient
|
|
62
62
|
# @param [Hash] attributes Model attributes in the form of hash
|
63
63
|
def initialize(attributes = {})
|
64
64
|
if (!attributes.is_a?(Hash))
|
65
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `VgsApiClient::RevealedData` initialize method"
|
66
66
|
end
|
67
67
|
|
68
68
|
# check to see if the attribute exists and convert string to symbol for hash key
|
69
69
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
70
70
|
if (!self.class.attribute_map.key?(k.to_sym))
|
71
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `VgsApiClient::RevealedData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
72
72
|
end
|
73
73
|
h[k.to_sym] = v
|
74
74
|
}
|
@@ -197,7 +197,7 @@ module VgsapiClient
|
|
197
197
|
end
|
198
198
|
else # model
|
199
199
|
# models (e.g. Pet) or oneOf
|
200
|
-
klass =
|
200
|
+
klass = VgsApiClient.const_get(type)
|
201
201
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
202
202
|
end
|
203
203
|
end
|
@@ -6,14 +6,14 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: support@verygoodsecurity.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module VgsApiClient
|
17
17
|
class UpdateAliasRequest
|
18
18
|
attr_accessor :data
|
19
19
|
|
@@ -46,13 +46,13 @@ module VgsapiClient
|
|
46
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
47
|
def initialize(attributes = {})
|
48
48
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `VgsApiClient::UpdateAliasRequest` initialize method"
|
50
50
|
end
|
51
51
|
|
52
52
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
53
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
54
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `VgsApiClient::UpdateAliasRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
56
|
end
|
57
57
|
h[k.to_sym] = v
|
58
58
|
}
|
@@ -167,7 +167,7 @@ module VgsapiClient
|
|
167
167
|
end
|
168
168
|
else # model
|
169
169
|
# models (e.g. Pet) or oneOf
|
170
|
-
klass =
|
170
|
+
klass = VgsApiClient.const_get(type)
|
171
171
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
172
172
|
end
|
173
173
|
end
|