sources-api-client 1.0.0
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/Gemfile +9 -0
- data/Gemfile.lock +70 -0
- data/LICENSE.txt +202 -0
- data/README.md +151 -0
- data/Rakefile +10 -0
- data/docs/Application.md +31 -0
- data/docs/ApplicationType.md +31 -0
- data/docs/ApplicationTypesCollection.md +21 -0
- data/docs/ApplicationsCollection.md +21 -0
- data/docs/Authentication.md +41 -0
- data/docs/AuthenticationExtra.md +17 -0
- data/docs/AuthenticationExtraAzure.md +17 -0
- data/docs/AuthenticationsCollection.md +21 -0
- data/docs/CollectionLinks.md +23 -0
- data/docs/CollectionMetadata.md +21 -0
- data/docs/DefaultApi.md +1945 -0
- data/docs/Endpoint.md +47 -0
- data/docs/EndpointsCollection.md +21 -0
- data/docs/ErrorNotFound.md +17 -0
- data/docs/ErrorNotFoundErrors.md +19 -0
- data/docs/GraphQLRequest.md +21 -0
- data/docs/GraphQLResponse.md +19 -0
- data/docs/Source.md +37 -0
- data/docs/SourceType.md +31 -0
- data/docs/SourceTypesCollection.md +21 -0
- data/docs/SourcesCollection.md +21 -0
- data/docs/Tenant.md +21 -0
- data/git_push.sh +58 -0
- data/lib/sources-api-client.rb +61 -0
- data/lib/sources-api-client/api/default_api.rb +2523 -0
- data/lib/sources-api-client/api_client.rb +386 -0
- data/lib/sources-api-client/api_error.rb +57 -0
- data/lib/sources-api-client/configuration.rb +268 -0
- data/lib/sources-api-client/models/application.rb +323 -0
- data/lib/sources-api-client/models/application_type.rb +287 -0
- data/lib/sources-api-client/models/application_types_collection.rb +226 -0
- data/lib/sources-api-client/models/applications_collection.rb +226 -0
- data/lib/sources-api-client/models/authentication.rb +350 -0
- data/lib/sources-api-client/models/authentication_extra.rb +206 -0
- data/lib/sources-api-client/models/authentication_extra_azure.rb +206 -0
- data/lib/sources-api-client/models/authentications_collection.rb +226 -0
- data/lib/sources-api-client/models/collection_links.rb +233 -0
- data/lib/sources-api-client/models/collection_metadata.rb +224 -0
- data/lib/sources-api-client/models/endpoint.rb +384 -0
- data/lib/sources-api-client/models/endpoints_collection.rb +226 -0
- data/lib/sources-api-client/models/error_not_found.rb +208 -0
- data/lib/sources-api-client/models/error_not_found_errors.rb +215 -0
- data/lib/sources-api-client/models/graph_ql_request.rb +237 -0
- data/lib/sources-api-client/models/graph_ql_response.rb +219 -0
- data/lib/sources-api-client/models/source.rb +332 -0
- data/lib/sources-api-client/models/source_type.rb +287 -0
- data/lib/sources-api-client/models/source_types_collection.rb +226 -0
- data/lib/sources-api-client/models/sources_collection.rb +226 -0
- data/lib/sources-api-client/models/tenant.rb +224 -0
- data/lib/sources-api-client/version.rb +15 -0
- data/pkg/sources-api-client-1.0.0.gem +0 -0
- data/sources-api-client.gemspec +39 -0
- data/spec/api/default_api_spec.rb +487 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/application_spec.rb +83 -0
- data/spec/models/application_type_spec.rb +83 -0
- data/spec/models/application_types_collection_spec.rb +53 -0
- data/spec/models/applications_collection_spec.rb +53 -0
- data/spec/models/authentication_extra_azure_spec.rb +41 -0
- data/spec/models/authentication_extra_spec.rb +41 -0
- data/spec/models/authentication_spec.rb +113 -0
- data/spec/models/authentications_collection_spec.rb +53 -0
- data/spec/models/collection_links_spec.rb +59 -0
- data/spec/models/collection_metadata_spec.rb +53 -0
- data/spec/models/endpoint_spec.rb +131 -0
- data/spec/models/endpoints_collection_spec.rb +53 -0
- data/spec/models/error_not_found_errors_spec.rb +47 -0
- data/spec/models/error_not_found_spec.rb +41 -0
- data/spec/models/graph_ql_request_spec.rb +53 -0
- data/spec/models/graph_ql_response_spec.rb +47 -0
- data/spec/models/source_spec.rb +101 -0
- data/spec/models/source_type_spec.rb +83 -0
- data/spec/models/source_types_collection_spec.rb +53 -0
- data/spec/models/sources_collection_spec.rb +53 -0
- data/spec/models/tenant_spec.rb +53 -0
- data/spec/spec_helper.rb +111 -0
- metadata +210 -0
@@ -0,0 +1,224 @@
|
|
1
|
+
=begin
|
2
|
+
#Sources
|
3
|
+
|
4
|
+
#Sources
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: support@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module SourcesApiClient
|
16
|
+
class Tenant
|
17
|
+
attr_accessor :name
|
18
|
+
|
19
|
+
attr_accessor :description
|
20
|
+
|
21
|
+
attr_accessor :external_tenant
|
22
|
+
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
+
def self.attribute_map
|
25
|
+
{
|
26
|
+
:'name' => :'name',
|
27
|
+
:'description' => :'description',
|
28
|
+
:'external_tenant' => :'external_tenant'
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
# Attribute type mapping.
|
33
|
+
def self.openapi_types
|
34
|
+
{
|
35
|
+
:'name' => :'String',
|
36
|
+
:'description' => :'String',
|
37
|
+
:'external_tenant' => :'String'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# List of attributes with nullable: true
|
42
|
+
def self.openapi_nullable
|
43
|
+
Set.new([
|
44
|
+
])
|
45
|
+
end
|
46
|
+
|
47
|
+
# Initializes the object
|
48
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
49
|
+
def initialize(attributes = {})
|
50
|
+
if (!attributes.is_a?(Hash))
|
51
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SourcesApiClient::Tenant` initialize method"
|
52
|
+
end
|
53
|
+
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
57
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SourcesApiClient::Tenant`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
58
|
+
end
|
59
|
+
h[k.to_sym] = v
|
60
|
+
}
|
61
|
+
|
62
|
+
if attributes.key?(:'name')
|
63
|
+
self.name = attributes[:'name']
|
64
|
+
end
|
65
|
+
|
66
|
+
if attributes.key?(:'description')
|
67
|
+
self.description = attributes[:'description']
|
68
|
+
end
|
69
|
+
|
70
|
+
if attributes.key?(:'external_tenant')
|
71
|
+
self.external_tenant = attributes[:'external_tenant']
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
76
|
+
# @return Array for valid properties with the reasons
|
77
|
+
def list_invalid_properties
|
78
|
+
invalid_properties = Array.new
|
79
|
+
invalid_properties
|
80
|
+
end
|
81
|
+
|
82
|
+
# Check to see if the all the properties in the model are valid
|
83
|
+
# @return true if the model is valid
|
84
|
+
def valid?
|
85
|
+
true
|
86
|
+
end
|
87
|
+
|
88
|
+
# Checks equality by comparing each attribute.
|
89
|
+
# @param [Object] Object to be compared
|
90
|
+
def ==(o)
|
91
|
+
return true if self.equal?(o)
|
92
|
+
self.class == o.class &&
|
93
|
+
name == o.name &&
|
94
|
+
description == o.description &&
|
95
|
+
external_tenant == o.external_tenant
|
96
|
+
end
|
97
|
+
|
98
|
+
# @see the `==` method
|
99
|
+
# @param [Object] Object to be compared
|
100
|
+
def eql?(o)
|
101
|
+
self == o
|
102
|
+
end
|
103
|
+
|
104
|
+
# Calculates hash code according to all attributes.
|
105
|
+
# @return [Integer] Hash code
|
106
|
+
def hash
|
107
|
+
[name, description, external_tenant].hash
|
108
|
+
end
|
109
|
+
|
110
|
+
# Builds the object from hash
|
111
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
112
|
+
# @return [Object] Returns the model itself
|
113
|
+
def self.build_from_hash(attributes)
|
114
|
+
new.build_from_hash(attributes)
|
115
|
+
end
|
116
|
+
|
117
|
+
# Builds the object from hash
|
118
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
119
|
+
# @return [Object] Returns the model itself
|
120
|
+
def build_from_hash(attributes)
|
121
|
+
return nil unless attributes.is_a?(Hash)
|
122
|
+
self.class.openapi_types.each_pair do |key, type|
|
123
|
+
if type =~ /\AArray<(.*)>/i
|
124
|
+
# check to ensure the input is an array given that the attribute
|
125
|
+
# is documented as an array but the input is not
|
126
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
127
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
128
|
+
end
|
129
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
130
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
131
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
132
|
+
end
|
133
|
+
|
134
|
+
self
|
135
|
+
end
|
136
|
+
|
137
|
+
# Deserializes the data based on type
|
138
|
+
# @param string type Data type
|
139
|
+
# @param string value Value to be deserialized
|
140
|
+
# @return [Object] Deserialized data
|
141
|
+
def _deserialize(type, value)
|
142
|
+
case type.to_sym
|
143
|
+
when :DateTime
|
144
|
+
DateTime.parse(value)
|
145
|
+
when :Date
|
146
|
+
Date.parse(value)
|
147
|
+
when :String
|
148
|
+
value.to_s
|
149
|
+
when :Integer
|
150
|
+
value.to_i
|
151
|
+
when :Float
|
152
|
+
value.to_f
|
153
|
+
when :Boolean
|
154
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
155
|
+
true
|
156
|
+
else
|
157
|
+
false
|
158
|
+
end
|
159
|
+
when :Object
|
160
|
+
# generic object (usually a Hash), return directly
|
161
|
+
value
|
162
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
163
|
+
inner_type = Regexp.last_match[:inner_type]
|
164
|
+
value.map { |v| _deserialize(inner_type, v) }
|
165
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
166
|
+
k_type = Regexp.last_match[:k_type]
|
167
|
+
v_type = Regexp.last_match[:v_type]
|
168
|
+
{}.tap do |hash|
|
169
|
+
value.each do |k, v|
|
170
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
171
|
+
end
|
172
|
+
end
|
173
|
+
else # model
|
174
|
+
SourcesApiClient.const_get(type).build_from_hash(value)
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
# Returns the string representation of the object
|
179
|
+
# @return [String] String presentation of the object
|
180
|
+
def to_s
|
181
|
+
to_hash.to_s
|
182
|
+
end
|
183
|
+
|
184
|
+
# to_body is an alias to to_hash (backward compatibility)
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
186
|
+
def to_body
|
187
|
+
to_hash
|
188
|
+
end
|
189
|
+
|
190
|
+
# Returns the object in the form of hash
|
191
|
+
# @return [Hash] Returns the object in the form of hash
|
192
|
+
def to_hash
|
193
|
+
hash = {}
|
194
|
+
self.class.attribute_map.each_pair do |attr, param|
|
195
|
+
value = self.send(attr)
|
196
|
+
if value.nil?
|
197
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
198
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
199
|
+
end
|
200
|
+
|
201
|
+
hash[param] = _to_hash(value)
|
202
|
+
end
|
203
|
+
hash
|
204
|
+
end
|
205
|
+
|
206
|
+
# Outputs non-array value in the form of hash
|
207
|
+
# For object, use to_hash. Otherwise, just return the value
|
208
|
+
# @param [Object] value Any valid value
|
209
|
+
# @return [Hash] Returns the value in the form of hash
|
210
|
+
def _to_hash(value)
|
211
|
+
if value.is_a?(Array)
|
212
|
+
value.compact.map { |v| _to_hash(v) }
|
213
|
+
elsif value.is_a?(Hash)
|
214
|
+
{}.tap do |hash|
|
215
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
216
|
+
end
|
217
|
+
elsif value.respond_to? :to_hash
|
218
|
+
value.to_hash
|
219
|
+
else
|
220
|
+
value
|
221
|
+
end
|
222
|
+
end
|
223
|
+
end
|
224
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
=begin
|
2
|
+
#Sources
|
3
|
+
|
4
|
+
#Sources
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: support@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
module SourcesApiClient
|
14
|
+
VERSION = '1.0.0'
|
15
|
+
end
|
Binary file
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
=begin
|
4
|
+
#Sources
|
5
|
+
|
6
|
+
#Sources
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
|
+
Contact: support@redhat.com
|
10
|
+
Generated by: https://openapi-generator.tech
|
11
|
+
OpenAPI Generator version: 4.2.1
|
12
|
+
|
13
|
+
=end
|
14
|
+
|
15
|
+
$:.push File.expand_path("../lib", __FILE__)
|
16
|
+
require "sources-api-client/version"
|
17
|
+
|
18
|
+
Gem::Specification.new do |s|
|
19
|
+
s.name = "sources-api-client"
|
20
|
+
s.version = SourcesApiClient::VERSION
|
21
|
+
s.platform = Gem::Platform::RUBY
|
22
|
+
s.authors = ["OpenAPI-Generator"]
|
23
|
+
s.email = ["support@redhat.com"]
|
24
|
+
s.homepage = "https://openapi-generator.tech"
|
25
|
+
s.summary = "Sources Ruby Gem"
|
26
|
+
s.description = "Sources"
|
27
|
+
s.license = "Unlicense"
|
28
|
+
s.required_ruby_version = ">= 1.9"
|
29
|
+
|
30
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
31
|
+
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
|
+
|
33
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
34
|
+
|
35
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
36
|
+
s.test_files = `find spec/*`.split("\n")
|
37
|
+
s.executables = []
|
38
|
+
s.require_paths = ["lib"]
|
39
|
+
end
|
@@ -0,0 +1,487 @@
|
|
1
|
+
=begin
|
2
|
+
#Sources
|
3
|
+
|
4
|
+
#Sources
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: support@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for SourcesApiClient::DefaultApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'DefaultApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = SourcesApiClient::DefaultApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of DefaultApi' do
|
30
|
+
it 'should create an instance of DefaultApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(SourcesApiClient::DefaultApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for check_availability_source
|
36
|
+
# Checks Availability of a Source
|
37
|
+
# Checks Availability of a Source
|
38
|
+
# @param id ID of the resource
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [nil]
|
41
|
+
describe 'check_availability_source test' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# unit tests for create_application
|
48
|
+
# Create a new Application
|
49
|
+
# Creates a Application object
|
50
|
+
# @param application Application attributes to create
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [Application]
|
53
|
+
describe 'create_application test' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# unit tests for create_authentication
|
60
|
+
# Create a new Authentication
|
61
|
+
# Creates a Authentication object
|
62
|
+
# @param authentication Authentication attributes to create
|
63
|
+
# @param [Hash] opts the optional parameters
|
64
|
+
# @return [Authentication]
|
65
|
+
describe 'create_authentication test' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# unit tests for create_endpoint
|
72
|
+
# Create a new Endpoint
|
73
|
+
# Creates a Endpoint object
|
74
|
+
# @param endpoint Endpoint attributes to create
|
75
|
+
# @param [Hash] opts the optional parameters
|
76
|
+
# @return [Endpoint]
|
77
|
+
describe 'create_endpoint test' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
# unit tests for create_source
|
84
|
+
# Create a new Source
|
85
|
+
# Creates a Source object
|
86
|
+
# @param source Source attributes to create
|
87
|
+
# @param [Hash] opts the optional parameters
|
88
|
+
# @return [Source]
|
89
|
+
describe 'create_source test' do
|
90
|
+
it 'should work' do
|
91
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
# unit tests for create_source_type
|
96
|
+
# Create a new SourceType
|
97
|
+
# Creates a SourceType object
|
98
|
+
# @param source_type SourceType attributes to create
|
99
|
+
# @param [Hash] opts the optional parameters
|
100
|
+
# @return [SourceType]
|
101
|
+
describe 'create_source_type test' do
|
102
|
+
it 'should work' do
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
# unit tests for delete_application
|
108
|
+
# Delete an existing Application
|
109
|
+
# Deletes a Application object
|
110
|
+
# @param id ID of the resource
|
111
|
+
# @param [Hash] opts the optional parameters
|
112
|
+
# @return [nil]
|
113
|
+
describe 'delete_application test' do
|
114
|
+
it 'should work' do
|
115
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
# unit tests for delete_authentication
|
120
|
+
# Delete an existing Authentication
|
121
|
+
# Deletes a Authentication object
|
122
|
+
# @param id ID of the resource
|
123
|
+
# @param [Hash] opts the optional parameters
|
124
|
+
# @return [nil]
|
125
|
+
describe 'delete_authentication test' do
|
126
|
+
it 'should work' do
|
127
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
# unit tests for delete_endpoint
|
132
|
+
# Delete an existing Endpoint
|
133
|
+
# Deletes a Endpoint object
|
134
|
+
# @param id ID of the resource
|
135
|
+
# @param [Hash] opts the optional parameters
|
136
|
+
# @return [nil]
|
137
|
+
describe 'delete_endpoint test' do
|
138
|
+
it 'should work' do
|
139
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
# unit tests for delete_source
|
144
|
+
# Delete an existing Source
|
145
|
+
# Deletes a Source object
|
146
|
+
# @param id ID of the resource
|
147
|
+
# @param [Hash] opts the optional parameters
|
148
|
+
# @return [nil]
|
149
|
+
describe 'delete_source test' do
|
150
|
+
it 'should work' do
|
151
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
# unit tests for get_documentation
|
156
|
+
# Return this API document in JSON format
|
157
|
+
# @param [Hash] opts the optional parameters
|
158
|
+
# @return [Object]
|
159
|
+
describe 'get_documentation test' do
|
160
|
+
it 'should work' do
|
161
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
# unit tests for list_application_type_sources
|
166
|
+
# List Sources for ApplicationType
|
167
|
+
# Returns an array of Source objects
|
168
|
+
# @param id ID of the resource
|
169
|
+
# @param [Hash] opts the optional parameters
|
170
|
+
# @option opts [Integer] :limit The numbers of items to return per page.
|
171
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
|
172
|
+
# @option opts [Object] :filter Filter for querying collections.
|
173
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
174
|
+
# @return [SourcesCollection]
|
175
|
+
describe 'list_application_type_sources test' do
|
176
|
+
it 'should work' do
|
177
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
# unit tests for list_application_types
|
182
|
+
# List ApplicationTypes
|
183
|
+
# Returns an array of ApplicationType objects
|
184
|
+
# @param [Hash] opts the optional parameters
|
185
|
+
# @option opts [Integer] :limit The numbers of items to return per page.
|
186
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
|
187
|
+
# @option opts [Object] :filter Filter for querying collections.
|
188
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
189
|
+
# @return [ApplicationTypesCollection]
|
190
|
+
describe 'list_application_types test' do
|
191
|
+
it 'should work' do
|
192
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
# unit tests for list_applications
|
197
|
+
# List Applications
|
198
|
+
# Returns an array of Application objects
|
199
|
+
# @param [Hash] opts the optional parameters
|
200
|
+
# @option opts [Integer] :limit The numbers of items to return per page.
|
201
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
|
202
|
+
# @option opts [Object] :filter Filter for querying collections.
|
203
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
204
|
+
# @return [ApplicationsCollection]
|
205
|
+
describe 'list_applications test' do
|
206
|
+
it 'should work' do
|
207
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
# unit tests for list_authentications
|
212
|
+
# List Authentications
|
213
|
+
# Returns an array of Authentication objects
|
214
|
+
# @param [Hash] opts the optional parameters
|
215
|
+
# @option opts [Integer] :limit The numbers of items to return per page.
|
216
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
|
217
|
+
# @option opts [Object] :filter Filter for querying collections.
|
218
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
219
|
+
# @return [AuthenticationsCollection]
|
220
|
+
describe 'list_authentications test' do
|
221
|
+
it 'should work' do
|
222
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
# unit tests for list_endpoint_authentications
|
227
|
+
# List Authentications for Endpoint
|
228
|
+
# Returns an array of Authentication objects
|
229
|
+
# @param id ID of the resource
|
230
|
+
# @param [Hash] opts the optional parameters
|
231
|
+
# @option opts [Integer] :limit The numbers of items to return per page.
|
232
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
|
233
|
+
# @option opts [Object] :filter Filter for querying collections.
|
234
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
235
|
+
# @return [AuthenticationsCollection]
|
236
|
+
describe 'list_endpoint_authentications test' do
|
237
|
+
it 'should work' do
|
238
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
239
|
+
end
|
240
|
+
end
|
241
|
+
|
242
|
+
# unit tests for list_endpoints
|
243
|
+
# List Endpoints
|
244
|
+
# Returns an array of Endpoint objects
|
245
|
+
# @param [Hash] opts the optional parameters
|
246
|
+
# @option opts [Integer] :limit The numbers of items to return per page.
|
247
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
|
248
|
+
# @option opts [Object] :filter Filter for querying collections.
|
249
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
250
|
+
# @return [EndpointsCollection]
|
251
|
+
describe 'list_endpoints test' do
|
252
|
+
it 'should work' do
|
253
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
257
|
+
# unit tests for list_source_application_types
|
258
|
+
# List ApplicationTypes for Source
|
259
|
+
# Returns an array of ApplicationType objects
|
260
|
+
# @param id ID of the resource
|
261
|
+
# @param [Hash] opts the optional parameters
|
262
|
+
# @option opts [Integer] :limit The numbers of items to return per page.
|
263
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
|
264
|
+
# @option opts [Object] :filter Filter for querying collections.
|
265
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
266
|
+
# @return [ApplicationTypesCollection]
|
267
|
+
describe 'list_source_application_types test' do
|
268
|
+
it 'should work' do
|
269
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
270
|
+
end
|
271
|
+
end
|
272
|
+
|
273
|
+
# unit tests for list_source_applications
|
274
|
+
# List Applications for Source
|
275
|
+
# Returns an array of Application objects
|
276
|
+
# @param id ID of the resource
|
277
|
+
# @param [Hash] opts the optional parameters
|
278
|
+
# @option opts [Integer] :limit The numbers of items to return per page.
|
279
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
|
280
|
+
# @option opts [Object] :filter Filter for querying collections.
|
281
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
282
|
+
# @return [ApplicationsCollection]
|
283
|
+
describe 'list_source_applications test' do
|
284
|
+
it 'should work' do
|
285
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
286
|
+
end
|
287
|
+
end
|
288
|
+
|
289
|
+
# unit tests for list_source_endpoints
|
290
|
+
# List Endpoints for Source
|
291
|
+
# Returns an array of Endpoint objects
|
292
|
+
# @param id ID of the resource
|
293
|
+
# @param [Hash] opts the optional parameters
|
294
|
+
# @option opts [Integer] :limit The numbers of items to return per page.
|
295
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
|
296
|
+
# @option opts [Object] :filter Filter for querying collections.
|
297
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
298
|
+
# @return [EndpointsCollection]
|
299
|
+
describe 'list_source_endpoints test' do
|
300
|
+
it 'should work' do
|
301
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
302
|
+
end
|
303
|
+
end
|
304
|
+
|
305
|
+
# unit tests for list_source_type_sources
|
306
|
+
# List Sources for SourceType
|
307
|
+
# Returns an array of Source objects
|
308
|
+
# @param id ID of the resource
|
309
|
+
# @param [Hash] opts the optional parameters
|
310
|
+
# @option opts [Integer] :limit The numbers of items to return per page.
|
311
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
|
312
|
+
# @option opts [Object] :filter Filter for querying collections.
|
313
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
314
|
+
# @return [SourcesCollection]
|
315
|
+
describe 'list_source_type_sources test' do
|
316
|
+
it 'should work' do
|
317
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
318
|
+
end
|
319
|
+
end
|
320
|
+
|
321
|
+
# unit tests for list_source_types
|
322
|
+
# List SourceTypes
|
323
|
+
# Returns an array of SourceType objects
|
324
|
+
# @param [Hash] opts the optional parameters
|
325
|
+
# @option opts [Integer] :limit The numbers of items to return per page.
|
326
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
|
327
|
+
# @option opts [Object] :filter Filter for querying collections.
|
328
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
329
|
+
# @return [SourceTypesCollection]
|
330
|
+
describe 'list_source_types test' do
|
331
|
+
it 'should work' do
|
332
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
333
|
+
end
|
334
|
+
end
|
335
|
+
|
336
|
+
# unit tests for list_sources
|
337
|
+
# List Sources
|
338
|
+
# Returns an array of Source objects
|
339
|
+
# @param [Hash] opts the optional parameters
|
340
|
+
# @option opts [Integer] :limit The numbers of items to return per page.
|
341
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
|
342
|
+
# @option opts [Object] :filter Filter for querying collections.
|
343
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
344
|
+
# @return [SourcesCollection]
|
345
|
+
describe 'list_sources test' do
|
346
|
+
it 'should work' do
|
347
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
348
|
+
end
|
349
|
+
end
|
350
|
+
|
351
|
+
# unit tests for post_graph_ql
|
352
|
+
# Perform a GraphQL Query
|
353
|
+
# Performs a GraphQL Query
|
354
|
+
# @param graph_ql_request GraphQL Query Request
|
355
|
+
# @param [Hash] opts the optional parameters
|
356
|
+
# @return [GraphQLResponse]
|
357
|
+
describe 'post_graph_ql test' do
|
358
|
+
it 'should work' do
|
359
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
360
|
+
end
|
361
|
+
end
|
362
|
+
|
363
|
+
# unit tests for show_application
|
364
|
+
# Show an existing Application
|
365
|
+
# Returns a Application object
|
366
|
+
# @param id ID of the resource
|
367
|
+
# @param [Hash] opts the optional parameters
|
368
|
+
# @return [Application]
|
369
|
+
describe 'show_application test' do
|
370
|
+
it 'should work' do
|
371
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
372
|
+
end
|
373
|
+
end
|
374
|
+
|
375
|
+
# unit tests for show_application_type
|
376
|
+
# Show an existing ApplicationType
|
377
|
+
# Returns a ApplicationType object
|
378
|
+
# @param id ID of the resource
|
379
|
+
# @param [Hash] opts the optional parameters
|
380
|
+
# @return [ApplicationType]
|
381
|
+
describe 'show_application_type test' do
|
382
|
+
it 'should work' do
|
383
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
384
|
+
end
|
385
|
+
end
|
386
|
+
|
387
|
+
# unit tests for show_authentication
|
388
|
+
# Show an existing Authentication
|
389
|
+
# Returns a Authentication object
|
390
|
+
# @param id ID of the resource
|
391
|
+
# @param [Hash] opts the optional parameters
|
392
|
+
# @return [Authentication]
|
393
|
+
describe 'show_authentication test' do
|
394
|
+
it 'should work' do
|
395
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
396
|
+
end
|
397
|
+
end
|
398
|
+
|
399
|
+
# unit tests for show_endpoint
|
400
|
+
# Show an existing Endpoint
|
401
|
+
# Returns a Endpoint object
|
402
|
+
# @param id ID of the resource
|
403
|
+
# @param [Hash] opts the optional parameters
|
404
|
+
# @return [Endpoint]
|
405
|
+
describe 'show_endpoint test' do
|
406
|
+
it 'should work' do
|
407
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
408
|
+
end
|
409
|
+
end
|
410
|
+
|
411
|
+
# unit tests for show_source
|
412
|
+
# Show an existing Source
|
413
|
+
# Returns a Source object
|
414
|
+
# @param id ID of the resource
|
415
|
+
# @param [Hash] opts the optional parameters
|
416
|
+
# @return [Source]
|
417
|
+
describe 'show_source test' do
|
418
|
+
it 'should work' do
|
419
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
420
|
+
end
|
421
|
+
end
|
422
|
+
|
423
|
+
# unit tests for show_source_type
|
424
|
+
# Show an existing SourceType
|
425
|
+
# Returns a SourceType object
|
426
|
+
# @param id ID of the resource
|
427
|
+
# @param [Hash] opts the optional parameters
|
428
|
+
# @return [SourceType]
|
429
|
+
describe 'show_source_type test' do
|
430
|
+
it 'should work' do
|
431
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
432
|
+
end
|
433
|
+
end
|
434
|
+
|
435
|
+
# unit tests for update_application
|
436
|
+
# Update an existing Application
|
437
|
+
# Updates a Application object
|
438
|
+
# @param id ID of the resource
|
439
|
+
# @param application Application attributes to update
|
440
|
+
# @param [Hash] opts the optional parameters
|
441
|
+
# @return [nil]
|
442
|
+
describe 'update_application test' do
|
443
|
+
it 'should work' do
|
444
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
445
|
+
end
|
446
|
+
end
|
447
|
+
|
448
|
+
# unit tests for update_authentication
|
449
|
+
# Update an existing Authentication
|
450
|
+
# Updates a Authentication object
|
451
|
+
# @param id ID of the resource
|
452
|
+
# @param authentication Authentication attributes to update
|
453
|
+
# @param [Hash] opts the optional parameters
|
454
|
+
# @return [nil]
|
455
|
+
describe 'update_authentication test' do
|
456
|
+
it 'should work' do
|
457
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
458
|
+
end
|
459
|
+
end
|
460
|
+
|
461
|
+
# unit tests for update_endpoint
|
462
|
+
# Update an existing Endpoint
|
463
|
+
# Updates a Endpoint object
|
464
|
+
# @param id ID of the resource
|
465
|
+
# @param endpoint Endpoint attributes to update
|
466
|
+
# @param [Hash] opts the optional parameters
|
467
|
+
# @return [nil]
|
468
|
+
describe 'update_endpoint test' do
|
469
|
+
it 'should work' do
|
470
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
471
|
+
end
|
472
|
+
end
|
473
|
+
|
474
|
+
# unit tests for update_source
|
475
|
+
# Update an existing Source
|
476
|
+
# Updates a Source object
|
477
|
+
# @param id ID of the resource
|
478
|
+
# @param source Source attributes to update
|
479
|
+
# @param [Hash] opts the optional parameters
|
480
|
+
# @return [nil]
|
481
|
+
describe 'update_source test' do
|
482
|
+
it 'should work' do
|
483
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
484
|
+
end
|
485
|
+
end
|
486
|
+
|
487
|
+
end
|