test-sdk-raza 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +28 -0
- data/README.md +116 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/api_helper.rb +10 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/apis/base_api.rb +67 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/apis/m5_gbi_device_actions_api.rb +91 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/apis/oauth_authorization_api.rb +44 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/client.rb +80 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/configuration.rb +116 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/exceptions/api_exception.rb +21 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/exceptions/m5_gbi_rest_error_response_exception.rb +52 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/exceptions/oauth_provider_exception.rb +64 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/http/api_response.rb +19 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/http/auth/thingspace_oauth.rb +133 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/http/auth/vz_m2_m_session_token.rb +42 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/http/http_call_back.rb +10 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/http/http_method_enum.rb +10 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/http/http_request.rb +10 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/http/http_response.rb +10 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/http/proxy_settings.rb +13 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/logging/configuration/api_logging_configuration.rb +114 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/logging/sdk_logger.rb +17 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/models/base_model.rb +110 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/models/group_name.rb +85 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/models/m5_gbi_address.rb +154 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/models/m5_gbi_carrier_information.rb +86 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/models/m5_gbi_customer_name.rb +125 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/models/m5_gbi_request_response.rb +76 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/models/m5_gbiaccount_nameobject.rb +228 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/models/m5_gbiactivate_request.rb +146 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/models/m5_gbiaddress_andcustomerinfo.rb +87 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/models/m5_gbiaddress_andcustomerinfo2.rb +87 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/models/m5_gbiattribute1.rb +84 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/models/m5_gbiattribute2.rb +95 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/models/m5_gbichange_request.rb +126 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/models/m5_gbidevice_detailsresponse.rb +95 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/models/m5_gbidevice_id.rb +76 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/models/m5_gbidevice_id1.rb +95 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/models/m5_gbidevice_idarray.rb +88 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/models/m5_gbidevice_idarray2.rb +95 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/models/m5_gbikey_value1.rb +95 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/models/m5_gbiprimary_placeofuse.rb +96 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/models/oauth_provider_error.rb +45 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/models/oauth_token.rb +96 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/utilities/date_time_helper.rb +11 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/utilities/file_wrapper.rb +28 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi/utilities/union_type_lookup.rb +85 -0
- data/lib/api_endpoints_for5_g_business_internet5_g_bi.rb +110 -0
- metadata +132 -0
@@ -0,0 +1,95 @@
|
|
1
|
+
# api_endpoints_for5_g_business_internet5_g_bi
|
2
|
+
#
|
3
|
+
# This file was automatically
|
4
|
+
# generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
5
|
+
|
6
|
+
module ApiEndpointsFor5GBusinessInternet5GBi
|
7
|
+
# M5GbideviceDetailsresponse Model.
|
8
|
+
class M5GbideviceDetailsresponse < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# TODO: Write general description for this method
|
13
|
+
# @return [TrueClass | FalseClass]
|
14
|
+
attr_accessor :has_more_data
|
15
|
+
|
16
|
+
# TODO: Write general description for this method
|
17
|
+
# @return [Array[M5GbiaccountNameobject]]
|
18
|
+
attr_accessor :devices
|
19
|
+
|
20
|
+
# A mapping from model property names to API property names.
|
21
|
+
def self.names
|
22
|
+
@_hash = {} if @_hash.nil?
|
23
|
+
@_hash['has_more_data'] = 'hasMoreData'
|
24
|
+
@_hash['devices'] = 'devices'
|
25
|
+
@_hash
|
26
|
+
end
|
27
|
+
|
28
|
+
# An array for optional fields
|
29
|
+
def self.optionals
|
30
|
+
%w[
|
31
|
+
has_more_data
|
32
|
+
devices
|
33
|
+
]
|
34
|
+
end
|
35
|
+
|
36
|
+
# An array for nullable fields
|
37
|
+
def self.nullables
|
38
|
+
[]
|
39
|
+
end
|
40
|
+
|
41
|
+
def initialize(has_more_data: SKIP, devices: SKIP,
|
42
|
+
additional_properties: nil)
|
43
|
+
# Add additional model properties to the instance
|
44
|
+
additional_properties = {} if additional_properties.nil?
|
45
|
+
|
46
|
+
@has_more_data = has_more_data unless has_more_data == SKIP
|
47
|
+
@devices = devices unless devices == SKIP
|
48
|
+
@additional_properties = additional_properties
|
49
|
+
end
|
50
|
+
|
51
|
+
# Creates an instance of the object from a hash.
|
52
|
+
def self.from_hash(hash)
|
53
|
+
return nil unless hash
|
54
|
+
|
55
|
+
# Extract variables from the hash.
|
56
|
+
has_more_data = hash.key?('hasMoreData') ? hash['hasMoreData'] : SKIP
|
57
|
+
# Parameter is an array, so we need to iterate through it
|
58
|
+
devices = nil
|
59
|
+
unless hash['devices'].nil?
|
60
|
+
devices = []
|
61
|
+
hash['devices'].each do |structure|
|
62
|
+
devices << (M5GbiaccountNameobject.from_hash(structure) if structure)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
devices = SKIP unless hash.key?('devices')
|
67
|
+
|
68
|
+
# Create a new hash for additional properties, removing known properties.
|
69
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
70
|
+
|
71
|
+
additional_properties = APIHelper.get_additional_properties(
|
72
|
+
new_hash, proc { |value| value }
|
73
|
+
)
|
74
|
+
|
75
|
+
# Create object from extracted values.
|
76
|
+
M5GbideviceDetailsresponse.new(has_more_data: has_more_data,
|
77
|
+
devices: devices,
|
78
|
+
additional_properties: additional_properties)
|
79
|
+
end
|
80
|
+
|
81
|
+
# Provides a human-readable string representation of the object.
|
82
|
+
def to_s
|
83
|
+
class_name = self.class.name.split('::').last
|
84
|
+
"<#{class_name} has_more_data: #{@has_more_data}, devices: #{@devices},"\
|
85
|
+
" additional_properties: #{@additional_properties}>"
|
86
|
+
end
|
87
|
+
|
88
|
+
# Provides a debugging-friendly string with detailed object information.
|
89
|
+
def inspect
|
90
|
+
class_name = self.class.name.split('::').last
|
91
|
+
"<#{class_name} has_more_data: #{@has_more_data.inspect}, devices: #{@devices.inspect},"\
|
92
|
+
" additional_properties: #{@additional_properties}>"
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
@@ -0,0 +1,76 @@
|
|
1
|
+
# api_endpoints_for5_g_business_internet5_g_bi
|
2
|
+
#
|
3
|
+
# This file was automatically
|
4
|
+
# generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
5
|
+
|
6
|
+
module ApiEndpointsFor5GBusinessInternet5GBi
|
7
|
+
# M5GbideviceId Model.
|
8
|
+
class M5GbideviceId < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# TODO: Write general description for this method
|
13
|
+
# @return [M5GbideviceId1]
|
14
|
+
attr_accessor :device_id
|
15
|
+
|
16
|
+
# A mapping from model property names to API property names.
|
17
|
+
def self.names
|
18
|
+
@_hash = {} if @_hash.nil?
|
19
|
+
@_hash['device_id'] = 'deviceId'
|
20
|
+
@_hash
|
21
|
+
end
|
22
|
+
|
23
|
+
# An array for optional fields
|
24
|
+
def self.optionals
|
25
|
+
%w[
|
26
|
+
device_id
|
27
|
+
]
|
28
|
+
end
|
29
|
+
|
30
|
+
# An array for nullable fields
|
31
|
+
def self.nullables
|
32
|
+
[]
|
33
|
+
end
|
34
|
+
|
35
|
+
def initialize(device_id: SKIP, additional_properties: nil)
|
36
|
+
# Add additional model properties to the instance
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
38
|
+
|
39
|
+
@device_id = device_id unless device_id == SKIP
|
40
|
+
@additional_properties = additional_properties
|
41
|
+
end
|
42
|
+
|
43
|
+
# Creates an instance of the object from a hash.
|
44
|
+
def self.from_hash(hash)
|
45
|
+
return nil unless hash
|
46
|
+
|
47
|
+
# Extract variables from the hash.
|
48
|
+
device_id = M5GbideviceId1.from_hash(hash['deviceId']) if hash['deviceId']
|
49
|
+
|
50
|
+
# Create a new hash for additional properties, removing known properties.
|
51
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
52
|
+
|
53
|
+
additional_properties = APIHelper.get_additional_properties(
|
54
|
+
new_hash, proc { |value| value }
|
55
|
+
)
|
56
|
+
|
57
|
+
# Create object from extracted values.
|
58
|
+
M5GbideviceId.new(device_id: device_id,
|
59
|
+
additional_properties: additional_properties)
|
60
|
+
end
|
61
|
+
|
62
|
+
# Provides a human-readable string representation of the object.
|
63
|
+
def to_s
|
64
|
+
class_name = self.class.name.split('::').last
|
65
|
+
"<#{class_name} device_id: #{@device_id}, additional_properties:"\
|
66
|
+
" #{@additional_properties}>"
|
67
|
+
end
|
68
|
+
|
69
|
+
# Provides a debugging-friendly string with detailed object information.
|
70
|
+
def inspect
|
71
|
+
class_name = self.class.name.split('::').last
|
72
|
+
"<#{class_name} device_id: #{@device_id.inspect}, additional_properties:"\
|
73
|
+
" #{@additional_properties}>"
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
@@ -0,0 +1,95 @@
|
|
1
|
+
# api_endpoints_for5_g_business_internet5_g_bi
|
2
|
+
#
|
3
|
+
# This file was automatically
|
4
|
+
# generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
5
|
+
|
6
|
+
module ApiEndpointsFor5GBusinessInternet5GBi
|
7
|
+
# M5GbideviceId1 Model.
|
8
|
+
class M5GbideviceId1 < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# TODO: Write general description for this method
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :id
|
15
|
+
|
16
|
+
# TODO: Write general description for this method
|
17
|
+
# @return [String]
|
18
|
+
attr_accessor :kind
|
19
|
+
|
20
|
+
# A mapping from model property names to API property names.
|
21
|
+
def self.names
|
22
|
+
@_hash = {} if @_hash.nil?
|
23
|
+
@_hash['id'] = 'id'
|
24
|
+
@_hash['kind'] = 'kind'
|
25
|
+
@_hash
|
26
|
+
end
|
27
|
+
|
28
|
+
# An array for optional fields
|
29
|
+
def self.optionals
|
30
|
+
%w[
|
31
|
+
id
|
32
|
+
kind
|
33
|
+
]
|
34
|
+
end
|
35
|
+
|
36
|
+
# An array for nullable fields
|
37
|
+
def self.nullables
|
38
|
+
[]
|
39
|
+
end
|
40
|
+
|
41
|
+
def initialize(id: SKIP, kind: SKIP, additional_properties: nil)
|
42
|
+
# Add additional model properties to the instance
|
43
|
+
additional_properties = {} if additional_properties.nil?
|
44
|
+
|
45
|
+
@id = id unless id == SKIP
|
46
|
+
@kind = kind unless kind == SKIP
|
47
|
+
@additional_properties = additional_properties
|
48
|
+
end
|
49
|
+
|
50
|
+
# Creates an instance of the object from a hash.
|
51
|
+
def self.from_hash(hash)
|
52
|
+
return nil unless hash
|
53
|
+
|
54
|
+
# Extract variables from the hash.
|
55
|
+
id = hash.key?('id') ? hash['id'] : SKIP
|
56
|
+
kind = hash.key?('kind') ? hash['kind'] : SKIP
|
57
|
+
|
58
|
+
# Create a new hash for additional properties, removing known properties.
|
59
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
60
|
+
|
61
|
+
additional_properties = APIHelper.get_additional_properties(
|
62
|
+
new_hash, proc { |value| value }
|
63
|
+
)
|
64
|
+
|
65
|
+
# Create object from extracted values.
|
66
|
+
M5GbideviceId1.new(id: id,
|
67
|
+
kind: kind,
|
68
|
+
additional_properties: additional_properties)
|
69
|
+
end
|
70
|
+
|
71
|
+
# Validates an instance of the object from a given value.
|
72
|
+
# @param [M5GbideviceId1 | Hash] The value against the validation is performed.
|
73
|
+
def self.validate(value)
|
74
|
+
return true if value.instance_of? self
|
75
|
+
|
76
|
+
return false unless value.instance_of? Hash
|
77
|
+
|
78
|
+
true
|
79
|
+
end
|
80
|
+
|
81
|
+
# Provides a human-readable string representation of the object.
|
82
|
+
def to_s
|
83
|
+
class_name = self.class.name.split('::').last
|
84
|
+
"<#{class_name} id: #{@id}, kind: #{@kind}, additional_properties:"\
|
85
|
+
" #{@additional_properties}>"
|
86
|
+
end
|
87
|
+
|
88
|
+
# Provides a debugging-friendly string with detailed object information.
|
89
|
+
def inspect
|
90
|
+
class_name = self.class.name.split('::').last
|
91
|
+
"<#{class_name} id: #{@id.inspect}, kind: #{@kind.inspect}, additional_properties:"\
|
92
|
+
" #{@additional_properties}>"
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
@@ -0,0 +1,88 @@
|
|
1
|
+
# api_endpoints_for5_g_business_internet5_g_bi
|
2
|
+
#
|
3
|
+
# This file was automatically
|
4
|
+
# generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
5
|
+
|
6
|
+
module ApiEndpointsFor5GBusinessInternet5GBi
|
7
|
+
# M5GbideviceIdarray Model.
|
8
|
+
class M5GbideviceIdarray < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# TODO: Write general description for this method
|
13
|
+
# @return [Array[Object]]
|
14
|
+
attr_accessor :device_id
|
15
|
+
|
16
|
+
# A mapping from model property names to API property names.
|
17
|
+
def self.names
|
18
|
+
@_hash = {} if @_hash.nil?
|
19
|
+
@_hash['device_id'] = 'deviceId'
|
20
|
+
@_hash
|
21
|
+
end
|
22
|
+
|
23
|
+
# An array for optional fields
|
24
|
+
def self.optionals
|
25
|
+
%w[
|
26
|
+
device_id
|
27
|
+
]
|
28
|
+
end
|
29
|
+
|
30
|
+
# An array for nullable fields
|
31
|
+
def self.nullables
|
32
|
+
[]
|
33
|
+
end
|
34
|
+
|
35
|
+
def initialize(device_id: SKIP, additional_properties: nil)
|
36
|
+
# Add additional model properties to the instance
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
38
|
+
|
39
|
+
@device_id = device_id unless device_id == SKIP
|
40
|
+
@additional_properties = additional_properties
|
41
|
+
end
|
42
|
+
|
43
|
+
# Creates an instance of the object from a hash.
|
44
|
+
def self.from_hash(hash)
|
45
|
+
return nil unless hash
|
46
|
+
|
47
|
+
# Extract variables from the hash.
|
48
|
+
device_id = hash.key?('deviceId') ? APIHelper.deserialize_union_type(
|
49
|
+
UnionTypeLookUp.get(:M5GbideviceIdarrayDeviceId), hash['deviceId']
|
50
|
+
) : SKIP
|
51
|
+
|
52
|
+
# Create a new hash for additional properties, removing known properties.
|
53
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
54
|
+
|
55
|
+
additional_properties = APIHelper.get_additional_properties(
|
56
|
+
new_hash, proc { |value| value }
|
57
|
+
)
|
58
|
+
|
59
|
+
# Create object from extracted values.
|
60
|
+
M5GbideviceIdarray.new(device_id: device_id,
|
61
|
+
additional_properties: additional_properties)
|
62
|
+
end
|
63
|
+
|
64
|
+
# Validates an instance of the object from a given value.
|
65
|
+
# @param [M5GbideviceIdarray | Hash] The value against the validation is performed.
|
66
|
+
def self.validate(value)
|
67
|
+
return true if value.instance_of? self
|
68
|
+
|
69
|
+
return false unless value.instance_of? Hash
|
70
|
+
|
71
|
+
true
|
72
|
+
end
|
73
|
+
|
74
|
+
# Provides a human-readable string representation of the object.
|
75
|
+
def to_s
|
76
|
+
class_name = self.class.name.split('::').last
|
77
|
+
"<#{class_name} device_id: #{@device_id}, additional_properties:"\
|
78
|
+
" #{@additional_properties}>"
|
79
|
+
end
|
80
|
+
|
81
|
+
# Provides a debugging-friendly string with detailed object information.
|
82
|
+
def inspect
|
83
|
+
class_name = self.class.name.split('::').last
|
84
|
+
"<#{class_name} device_id: #{@device_id.inspect}, additional_properties:"\
|
85
|
+
" #{@additional_properties}>"
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
@@ -0,0 +1,95 @@
|
|
1
|
+
# api_endpoints_for5_g_business_internet5_g_bi
|
2
|
+
#
|
3
|
+
# This file was automatically
|
4
|
+
# generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
5
|
+
|
6
|
+
module ApiEndpointsFor5GBusinessInternet5GBi
|
7
|
+
# M5GbideviceIdarray2 Model.
|
8
|
+
class M5GbideviceIdarray2 < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# TODO: Write general description for this method
|
13
|
+
# @return [Array[M5GbideviceId1]]
|
14
|
+
attr_accessor :device_id
|
15
|
+
|
16
|
+
# A mapping from model property names to API property names.
|
17
|
+
def self.names
|
18
|
+
@_hash = {} if @_hash.nil?
|
19
|
+
@_hash['device_id'] = 'deviceId'
|
20
|
+
@_hash
|
21
|
+
end
|
22
|
+
|
23
|
+
# An array for optional fields
|
24
|
+
def self.optionals
|
25
|
+
%w[
|
26
|
+
device_id
|
27
|
+
]
|
28
|
+
end
|
29
|
+
|
30
|
+
# An array for nullable fields
|
31
|
+
def self.nullables
|
32
|
+
[]
|
33
|
+
end
|
34
|
+
|
35
|
+
def initialize(device_id: SKIP, additional_properties: nil)
|
36
|
+
# Add additional model properties to the instance
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
38
|
+
|
39
|
+
@device_id = device_id unless device_id == SKIP
|
40
|
+
@additional_properties = additional_properties
|
41
|
+
end
|
42
|
+
|
43
|
+
# Creates an instance of the object from a hash.
|
44
|
+
def self.from_hash(hash)
|
45
|
+
return nil unless hash
|
46
|
+
|
47
|
+
# Extract variables from the hash.
|
48
|
+
# Parameter is an array, so we need to iterate through it
|
49
|
+
device_id = nil
|
50
|
+
unless hash['deviceId'].nil?
|
51
|
+
device_id = []
|
52
|
+
hash['deviceId'].each do |structure|
|
53
|
+
device_id << (M5GbideviceId1.from_hash(structure) if structure)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
device_id = SKIP unless hash.key?('deviceId')
|
58
|
+
|
59
|
+
# Create a new hash for additional properties, removing known properties.
|
60
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
61
|
+
|
62
|
+
additional_properties = APIHelper.get_additional_properties(
|
63
|
+
new_hash, proc { |value| value }
|
64
|
+
)
|
65
|
+
|
66
|
+
# Create object from extracted values.
|
67
|
+
M5GbideviceIdarray2.new(device_id: device_id,
|
68
|
+
additional_properties: additional_properties)
|
69
|
+
end
|
70
|
+
|
71
|
+
# Validates an instance of the object from a given value.
|
72
|
+
# @param [M5GbideviceIdarray2 | Hash] The value against the validation is performed.
|
73
|
+
def self.validate(value)
|
74
|
+
return true if value.instance_of? self
|
75
|
+
|
76
|
+
return false unless value.instance_of? Hash
|
77
|
+
|
78
|
+
true
|
79
|
+
end
|
80
|
+
|
81
|
+
# Provides a human-readable string representation of the object.
|
82
|
+
def to_s
|
83
|
+
class_name = self.class.name.split('::').last
|
84
|
+
"<#{class_name} device_id: #{@device_id}, additional_properties:"\
|
85
|
+
" #{@additional_properties}>"
|
86
|
+
end
|
87
|
+
|
88
|
+
# Provides a debugging-friendly string with detailed object information.
|
89
|
+
def inspect
|
90
|
+
class_name = self.class.name.split('::').last
|
91
|
+
"<#{class_name} device_id: #{@device_id.inspect}, additional_properties:"\
|
92
|
+
" #{@additional_properties}>"
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
@@ -0,0 +1,95 @@
|
|
1
|
+
# api_endpoints_for5_g_business_internet5_g_bi
|
2
|
+
#
|
3
|
+
# This file was automatically
|
4
|
+
# generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
5
|
+
|
6
|
+
module ApiEndpointsFor5GBusinessInternet5GBi
|
7
|
+
# M5GbikeyValue1 Model.
|
8
|
+
class M5GbikeyValue1 < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# TODO: Write general description for this method
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :key
|
15
|
+
|
16
|
+
# TODO: Write general description for this method
|
17
|
+
# @return [String]
|
18
|
+
attr_accessor :value
|
19
|
+
|
20
|
+
# A mapping from model property names to API property names.
|
21
|
+
def self.names
|
22
|
+
@_hash = {} if @_hash.nil?
|
23
|
+
@_hash['key'] = 'key'
|
24
|
+
@_hash['value'] = 'value'
|
25
|
+
@_hash
|
26
|
+
end
|
27
|
+
|
28
|
+
# An array for optional fields
|
29
|
+
def self.optionals
|
30
|
+
%w[
|
31
|
+
key
|
32
|
+
value
|
33
|
+
]
|
34
|
+
end
|
35
|
+
|
36
|
+
# An array for nullable fields
|
37
|
+
def self.nullables
|
38
|
+
[]
|
39
|
+
end
|
40
|
+
|
41
|
+
def initialize(key: SKIP, value: SKIP, additional_properties: nil)
|
42
|
+
# Add additional model properties to the instance
|
43
|
+
additional_properties = {} if additional_properties.nil?
|
44
|
+
|
45
|
+
@key = key unless key == SKIP
|
46
|
+
@value = value unless value == SKIP
|
47
|
+
@additional_properties = additional_properties
|
48
|
+
end
|
49
|
+
|
50
|
+
# Creates an instance of the object from a hash.
|
51
|
+
def self.from_hash(hash)
|
52
|
+
return nil unless hash
|
53
|
+
|
54
|
+
# Extract variables from the hash.
|
55
|
+
key = hash.key?('key') ? hash['key'] : SKIP
|
56
|
+
value = hash.key?('value') ? hash['value'] : SKIP
|
57
|
+
|
58
|
+
# Create a new hash for additional properties, removing known properties.
|
59
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
60
|
+
|
61
|
+
additional_properties = APIHelper.get_additional_properties(
|
62
|
+
new_hash, proc { |value| value }
|
63
|
+
)
|
64
|
+
|
65
|
+
# Create object from extracted values.
|
66
|
+
M5GbikeyValue1.new(key: key,
|
67
|
+
value: value,
|
68
|
+
additional_properties: additional_properties)
|
69
|
+
end
|
70
|
+
|
71
|
+
# Validates an instance of the object from a given value.
|
72
|
+
# @param [M5GbikeyValue1 | Hash] The value against the validation is performed.
|
73
|
+
def self.validate(value)
|
74
|
+
return true if value.instance_of? self
|
75
|
+
|
76
|
+
return false unless value.instance_of? Hash
|
77
|
+
|
78
|
+
true
|
79
|
+
end
|
80
|
+
|
81
|
+
# Provides a human-readable string representation of the object.
|
82
|
+
def to_s
|
83
|
+
class_name = self.class.name.split('::').last
|
84
|
+
"<#{class_name} key: #{@key}, value: #{@value}, additional_properties:"\
|
85
|
+
" #{@additional_properties}>"
|
86
|
+
end
|
87
|
+
|
88
|
+
# Provides a debugging-friendly string with detailed object information.
|
89
|
+
def inspect
|
90
|
+
class_name = self.class.name.split('::').last
|
91
|
+
"<#{class_name} key: #{@key.inspect}, value: #{@value.inspect}, additional_properties:"\
|
92
|
+
" #{@additional_properties}>"
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
@@ -0,0 +1,96 @@
|
|
1
|
+
# api_endpoints_for5_g_business_internet5_g_bi
|
2
|
+
#
|
3
|
+
# This file was automatically
|
4
|
+
# generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
5
|
+
|
6
|
+
module ApiEndpointsFor5GBusinessInternet5GBi
|
7
|
+
# M5GbiprimaryPlaceofuse Model.
|
8
|
+
class M5GbiprimaryPlaceofuse < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# TODO: Write general description for this method
|
13
|
+
# @return [M5GbiAddress]
|
14
|
+
attr_accessor :address
|
15
|
+
|
16
|
+
# TODO: Write general description for this method
|
17
|
+
# @return [M5GbiCustomerName]
|
18
|
+
attr_accessor :customer_name
|
19
|
+
|
20
|
+
# A mapping from model property names to API property names.
|
21
|
+
def self.names
|
22
|
+
@_hash = {} if @_hash.nil?
|
23
|
+
@_hash['address'] = 'address'
|
24
|
+
@_hash['customer_name'] = 'customerName'
|
25
|
+
@_hash
|
26
|
+
end
|
27
|
+
|
28
|
+
# An array for optional fields
|
29
|
+
def self.optionals
|
30
|
+
%w[
|
31
|
+
address
|
32
|
+
customer_name
|
33
|
+
]
|
34
|
+
end
|
35
|
+
|
36
|
+
# An array for nullable fields
|
37
|
+
def self.nullables
|
38
|
+
[]
|
39
|
+
end
|
40
|
+
|
41
|
+
def initialize(address: SKIP, customer_name: SKIP,
|
42
|
+
additional_properties: nil)
|
43
|
+
# Add additional model properties to the instance
|
44
|
+
additional_properties = {} if additional_properties.nil?
|
45
|
+
|
46
|
+
@address = address unless address == SKIP
|
47
|
+
@customer_name = customer_name unless customer_name == SKIP
|
48
|
+
@additional_properties = additional_properties
|
49
|
+
end
|
50
|
+
|
51
|
+
# Creates an instance of the object from a hash.
|
52
|
+
def self.from_hash(hash)
|
53
|
+
return nil unless hash
|
54
|
+
|
55
|
+
# Extract variables from the hash.
|
56
|
+
address = M5GbiAddress.from_hash(hash['address']) if hash['address']
|
57
|
+
customer_name = M5GbiCustomerName.from_hash(hash['customerName']) if hash['customerName']
|
58
|
+
|
59
|
+
# Create a new hash for additional properties, removing known properties.
|
60
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
61
|
+
|
62
|
+
additional_properties = APIHelper.get_additional_properties(
|
63
|
+
new_hash, proc { |value| value }
|
64
|
+
)
|
65
|
+
|
66
|
+
# Create object from extracted values.
|
67
|
+
M5GbiprimaryPlaceofuse.new(address: address,
|
68
|
+
customer_name: customer_name,
|
69
|
+
additional_properties: additional_properties)
|
70
|
+
end
|
71
|
+
|
72
|
+
# Validates an instance of the object from a given value.
|
73
|
+
# @param [M5GbiprimaryPlaceofuse | Hash] The value against the validation is performed.
|
74
|
+
def self.validate(value)
|
75
|
+
return true if value.instance_of? self
|
76
|
+
|
77
|
+
return false unless value.instance_of? Hash
|
78
|
+
|
79
|
+
true
|
80
|
+
end
|
81
|
+
|
82
|
+
# Provides a human-readable string representation of the object.
|
83
|
+
def to_s
|
84
|
+
class_name = self.class.name.split('::').last
|
85
|
+
"<#{class_name} address: #{@address}, customer_name: #{@customer_name},"\
|
86
|
+
" additional_properties: #{@additional_properties}>"
|
87
|
+
end
|
88
|
+
|
89
|
+
# Provides a debugging-friendly string with detailed object information.
|
90
|
+
def inspect
|
91
|
+
class_name = self.class.name.split('::').last
|
92
|
+
"<#{class_name} address: #{@address.inspect}, customer_name: #{@customer_name.inspect},"\
|
93
|
+
" additional_properties: #{@additional_properties}>"
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# api_endpoints_for5_g_business_internet5_g_bi
|
2
|
+
#
|
3
|
+
# This file was automatically
|
4
|
+
# generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
5
|
+
|
6
|
+
module ApiEndpointsFor5GBusinessInternet5GBi
|
7
|
+
# OAuth 2 Authorization error codes
|
8
|
+
class OauthProviderError
|
9
|
+
OAUTH_PROVIDER_ERROR = [
|
10
|
+
# The request is missing a required parameter, includes an unsupported
|
11
|
+
# parameter value (other than grant type), repeats a parameter, includes
|
12
|
+
# multiple credentials, utilizes more than one mechanism for
|
13
|
+
# authenticating the client, or is otherwise malformed.
|
14
|
+
INVALID_REQUEST = 'invalid_request'.freeze,
|
15
|
+
|
16
|
+
# Client authentication failed (e.g., unknown client, no client
|
17
|
+
# authentication included, or unsupported authentication method).
|
18
|
+
INVALID_CLIENT = 'invalid_client'.freeze,
|
19
|
+
|
20
|
+
# The provided authorization grant (e.g., authorization code, resource
|
21
|
+
# owner credentials) or refresh token is invalid, expired, revoked, does
|
22
|
+
# not match the redirection URI used in the authorization request, or was
|
23
|
+
# issued to another client.
|
24
|
+
INVALID_GRANT = 'invalid_grant'.freeze,
|
25
|
+
|
26
|
+
# The authenticated client is not authorized to use this authorization
|
27
|
+
# grant type.
|
28
|
+
UNAUTHORIZED_CLIENT = 'unauthorized_client'.freeze,
|
29
|
+
|
30
|
+
# The authorization grant type is not supported by the authorization
|
31
|
+
# server.
|
32
|
+
UNSUPPORTED_GRANT_TYPE = 'unsupported_grant_type'.freeze,
|
33
|
+
|
34
|
+
# The requested scope is invalid, unknown, malformed, or exceeds the scope
|
35
|
+
# granted by the resource owner.
|
36
|
+
INVALID_SCOPE = 'invalid_scope'.freeze
|
37
|
+
].freeze
|
38
|
+
|
39
|
+
def self.validate(value)
|
40
|
+
return false if value.nil?
|
41
|
+
|
42
|
+
OAUTH_PROVIDER_ERROR.include?(value)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|