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
data/docs/Endpoint.md
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
# SourcesApiClient::Endpoint
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**availability_status** | **String** | | [optional]
|
8
|
+
**availability_status_error** | **String** | | [optional]
|
9
|
+
**certificate_authority** | **String** | Optional X.509 Certificate Authority | [optional]
|
10
|
+
**created_at** | **DateTime** | | [optional] [readonly]
|
11
|
+
**default** | **Boolean** | | [optional]
|
12
|
+
**host** | **String** | URI host component | [optional]
|
13
|
+
**id** | **String** | ID of the resource | [optional] [readonly]
|
14
|
+
**path** | **String** | URI path component | [optional]
|
15
|
+
**port** | **Integer** | URI port component | [optional]
|
16
|
+
**receptor_node** | **String** | Identifier of a receptor node | [optional]
|
17
|
+
**role** | **String** | | [optional]
|
18
|
+
**scheme** | **String** | URI scheme component | [optional]
|
19
|
+
**source_id** | **String** | ID of the resource | [optional] [readonly]
|
20
|
+
**tenant** | **String** | | [optional] [readonly]
|
21
|
+
**updated_at** | **DateTime** | | [optional] [readonly]
|
22
|
+
**verify_ssl** | **Boolean** | Should SSL be verified | [optional]
|
23
|
+
|
24
|
+
## Code Sample
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
require 'SourcesApiClient'
|
28
|
+
|
29
|
+
instance = SourcesApiClient::Endpoint.new(availability_status: null,
|
30
|
+
availability_status_error: null,
|
31
|
+
certificate_authority: null,
|
32
|
+
created_at: null,
|
33
|
+
default: null,
|
34
|
+
host: www.example.com,
|
35
|
+
id: null,
|
36
|
+
path: /api/v1,
|
37
|
+
port: 80,
|
38
|
+
receptor_node: null,
|
39
|
+
role: default,
|
40
|
+
scheme: https,
|
41
|
+
source_id: null,
|
42
|
+
tenant: null,
|
43
|
+
updated_at: null,
|
44
|
+
verify_ssl: true)
|
45
|
+
```
|
46
|
+
|
47
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# SourcesApiClient::EndpointsCollection
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**meta** | [**CollectionMetadata**](CollectionMetadata.md) | | [optional]
|
8
|
+
**links** | [**CollectionLinks**](CollectionLinks.md) | | [optional]
|
9
|
+
**data** | [**Array<Endpoint>**](Endpoint.md) | | [optional]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'SourcesApiClient'
|
15
|
+
|
16
|
+
instance = SourcesApiClient::EndpointsCollection.new(meta: null,
|
17
|
+
links: null,
|
18
|
+
data: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# SourcesApiClient::ErrorNotFound
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**errors** | [**Array<ErrorNotFoundErrors>**](ErrorNotFoundErrors.md) | | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'SourcesApiClient'
|
13
|
+
|
14
|
+
instance = SourcesApiClient::ErrorNotFound.new(errors: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# SourcesApiClient::ErrorNotFoundErrors
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**status** | **Integer** | | [optional]
|
8
|
+
**detail** | **String** | | [optional]
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'SourcesApiClient'
|
14
|
+
|
15
|
+
instance = SourcesApiClient::ErrorNotFoundErrors.new(status: 404,
|
16
|
+
detail: Record not found)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# SourcesApiClient::GraphQLRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**query** | **String** | The GraphQL query | [default to '{}']
|
8
|
+
**operation_name** | **String** | If the Query contains several named operations, the operationName controls which one should be executed | [optional] [default to '']
|
9
|
+
**variables** | [**Object**](.md) | Optional Query variables | [optional]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'SourcesApiClient'
|
15
|
+
|
16
|
+
instance = SourcesApiClient::GraphQLRequest.new(query: null,
|
17
|
+
operation_name: null,
|
18
|
+
variables: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# SourcesApiClient::GraphQLResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**data** | [**Object**](.md) | Results from the GraphQL query | [optional]
|
8
|
+
**errors** | **Array<Object>** | Errors resulting from the GraphQL query | [optional]
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'SourcesApiClient'
|
14
|
+
|
15
|
+
instance = SourcesApiClient::GraphQLResponse.new(data: null,
|
16
|
+
errors: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
data/docs/Source.md
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# SourcesApiClient::Source
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**availability_status** | **String** | | [optional]
|
8
|
+
**created_at** | **DateTime** | | [optional] [readonly]
|
9
|
+
**id** | **String** | ID of the resource | [optional] [readonly]
|
10
|
+
**imported** | **String** | | [optional]
|
11
|
+
**name** | **String** | | [optional]
|
12
|
+
**source_ref** | **String** | | [optional]
|
13
|
+
**source_type_id** | **String** | ID of the resource | [optional] [readonly]
|
14
|
+
**tenant** | **String** | | [optional] [readonly]
|
15
|
+
**uid** | **String** | | [optional] [readonly]
|
16
|
+
**updated_at** | **DateTime** | | [optional] [readonly]
|
17
|
+
**version** | **String** | | [optional] [readonly]
|
18
|
+
|
19
|
+
## Code Sample
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'SourcesApiClient'
|
23
|
+
|
24
|
+
instance = SourcesApiClient::Source.new(availability_status: null,
|
25
|
+
created_at: null,
|
26
|
+
id: null,
|
27
|
+
imported: null,
|
28
|
+
name: Sample Provider,
|
29
|
+
source_ref: null,
|
30
|
+
source_type_id: null,
|
31
|
+
tenant: null,
|
32
|
+
uid: null,
|
33
|
+
updated_at: null,
|
34
|
+
version: 6.5.0)
|
35
|
+
```
|
36
|
+
|
37
|
+
|
data/docs/SourceType.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# SourcesApiClient::SourceType
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**created_at** | **DateTime** | | [optional] [readonly]
|
8
|
+
**icon_url** | **String** | | [optional]
|
9
|
+
**id** | **String** | ID of the resource | [optional] [readonly]
|
10
|
+
**name** | **String** | | [optional]
|
11
|
+
**product_name** | **String** | | [optional]
|
12
|
+
**schema** | **String** | | [optional]
|
13
|
+
**updated_at** | **DateTime** | | [optional] [readonly]
|
14
|
+
**vendor** | **String** | | [optional]
|
15
|
+
|
16
|
+
## Code Sample
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'SourcesApiClient'
|
20
|
+
|
21
|
+
instance = SourcesApiClient::SourceType.new(created_at: null,
|
22
|
+
icon_url: null,
|
23
|
+
id: null,
|
24
|
+
name: openshift,
|
25
|
+
product_name: OpenShift,
|
26
|
+
schema: null,
|
27
|
+
updated_at: null,
|
28
|
+
vendor: Red Hat)
|
29
|
+
```
|
30
|
+
|
31
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# SourcesApiClient::SourceTypesCollection
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**meta** | [**CollectionMetadata**](CollectionMetadata.md) | | [optional]
|
8
|
+
**links** | [**CollectionLinks**](CollectionLinks.md) | | [optional]
|
9
|
+
**data** | [**Array<SourceType>**](SourceType.md) | | [optional]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'SourcesApiClient'
|
15
|
+
|
16
|
+
instance = SourcesApiClient::SourceTypesCollection.new(meta: null,
|
17
|
+
links: null,
|
18
|
+
data: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# SourcesApiClient::SourcesCollection
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**meta** | [**CollectionMetadata**](CollectionMetadata.md) | | [optional]
|
8
|
+
**links** | [**CollectionLinks**](CollectionLinks.md) | | [optional]
|
9
|
+
**data** | [**Array<Source>**](Source.md) | | [optional]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'SourcesApiClient'
|
15
|
+
|
16
|
+
instance = SourcesApiClient::SourcesCollection.new(meta: null,
|
17
|
+
links: null,
|
18
|
+
data: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
data/docs/Tenant.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# SourcesApiClient::Tenant
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**name** | **String** | | [optional] [readonly]
|
8
|
+
**description** | **String** | | [optional] [readonly]
|
9
|
+
**external_tenant** | **String** | | [optional] [readonly]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'SourcesApiClient'
|
15
|
+
|
16
|
+
instance = SourcesApiClient::Tenant.new(name: Sample Tenant,
|
17
|
+
description: Description of the Tenant,
|
18
|
+
external_tenant: External tenant identifier)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
data/git_push.sh
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
3
|
+
#
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
|
5
|
+
|
6
|
+
git_user_id=$1
|
7
|
+
git_repo_id=$2
|
8
|
+
release_note=$3
|
9
|
+
git_host=$4
|
10
|
+
|
11
|
+
if [ "$git_host" = "" ]; then
|
12
|
+
git_host="github.com"
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
14
|
+
fi
|
15
|
+
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
17
|
+
git_user_id="GIT_USER_ID"
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
19
|
+
fi
|
20
|
+
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
22
|
+
git_repo_id="GIT_REPO_ID"
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
24
|
+
fi
|
25
|
+
|
26
|
+
if [ "$release_note" = "" ]; then
|
27
|
+
release_note="Minor update"
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
29
|
+
fi
|
30
|
+
|
31
|
+
# Initialize the local directory as a Git repository
|
32
|
+
git init
|
33
|
+
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
35
|
+
git add .
|
36
|
+
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
38
|
+
git commit -m "$release_note"
|
39
|
+
|
40
|
+
# Sets the new remote
|
41
|
+
git_remote=`git remote`
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
43
|
+
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
47
|
+
else
|
48
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
|
49
|
+
fi
|
50
|
+
|
51
|
+
fi
|
52
|
+
|
53
|
+
git pull origin master
|
54
|
+
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|
58
|
+
|
@@ -0,0 +1,61 @@
|
|
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
|
+
# Common files
|
14
|
+
require 'sources-api-client/api_client'
|
15
|
+
require 'sources-api-client/api_error'
|
16
|
+
require 'sources-api-client/version'
|
17
|
+
require 'sources-api-client/configuration'
|
18
|
+
|
19
|
+
# Models
|
20
|
+
require 'sources-api-client/models/application'
|
21
|
+
require 'sources-api-client/models/application_type'
|
22
|
+
require 'sources-api-client/models/application_types_collection'
|
23
|
+
require 'sources-api-client/models/applications_collection'
|
24
|
+
require 'sources-api-client/models/authentication'
|
25
|
+
require 'sources-api-client/models/authentication_extra'
|
26
|
+
require 'sources-api-client/models/authentication_extra_azure'
|
27
|
+
require 'sources-api-client/models/authentications_collection'
|
28
|
+
require 'sources-api-client/models/collection_links'
|
29
|
+
require 'sources-api-client/models/collection_metadata'
|
30
|
+
require 'sources-api-client/models/endpoint'
|
31
|
+
require 'sources-api-client/models/endpoints_collection'
|
32
|
+
require 'sources-api-client/models/error_not_found'
|
33
|
+
require 'sources-api-client/models/error_not_found_errors'
|
34
|
+
require 'sources-api-client/models/graph_ql_request'
|
35
|
+
require 'sources-api-client/models/graph_ql_response'
|
36
|
+
require 'sources-api-client/models/source'
|
37
|
+
require 'sources-api-client/models/source_type'
|
38
|
+
require 'sources-api-client/models/source_types_collection'
|
39
|
+
require 'sources-api-client/models/sources_collection'
|
40
|
+
require 'sources-api-client/models/tenant'
|
41
|
+
|
42
|
+
# APIs
|
43
|
+
require 'sources-api-client/api/default_api'
|
44
|
+
|
45
|
+
module SourcesApiClient
|
46
|
+
class << self
|
47
|
+
# Customize default settings for the SDK using block.
|
48
|
+
# SourcesApiClient.configure do |config|
|
49
|
+
# config.username = "xxx"
|
50
|
+
# config.password = "xxx"
|
51
|
+
# end
|
52
|
+
# If no block given, return the default Configuration object.
|
53
|
+
def configure
|
54
|
+
if block_given?
|
55
|
+
yield(Configuration.default)
|
56
|
+
else
|
57
|
+
Configuration.default
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,2523 @@
|
|
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 'cgi'
|
14
|
+
|
15
|
+
module SourcesApiClient
|
16
|
+
class DefaultApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Checks Availability of a Source
|
23
|
+
# Checks Availability of a Source
|
24
|
+
# @param id [String] ID of the resource
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [nil]
|
27
|
+
def check_availability_source(id, opts = {})
|
28
|
+
check_availability_source_with_http_info(id, opts)
|
29
|
+
nil
|
30
|
+
end
|
31
|
+
|
32
|
+
# Checks Availability of a Source
|
33
|
+
# Checks Availability of a Source
|
34
|
+
# @param id [String] ID of the resource
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
37
|
+
def check_availability_source_with_http_info(id, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.check_availability_source ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'id' is set
|
42
|
+
if @api_client.config.client_side_validation && id.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.check_availability_source"
|
44
|
+
end
|
45
|
+
pattern = Regexp.new(/^\d+$/)
|
46
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
47
|
+
fail ArgumentError, "invalid value for 'id' when calling DefaultApi.check_availability_source, must conform to the pattern #{pattern}."
|
48
|
+
end
|
49
|
+
|
50
|
+
# resource path
|
51
|
+
local_var_path = '/sources/{id}/check_availability'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
52
|
+
|
53
|
+
# query parameters
|
54
|
+
query_params = opts[:query_params] || {}
|
55
|
+
|
56
|
+
# header parameters
|
57
|
+
header_params = opts[:header_params] || {}
|
58
|
+
# HTTP header 'Accept' (if needed)
|
59
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
60
|
+
|
61
|
+
# form parameters
|
62
|
+
form_params = opts[:form_params] || {}
|
63
|
+
|
64
|
+
# http body (model)
|
65
|
+
post_body = opts[:body]
|
66
|
+
|
67
|
+
# return_type
|
68
|
+
return_type = opts[:return_type]
|
69
|
+
|
70
|
+
# auth_names
|
71
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
72
|
+
|
73
|
+
new_options = opts.merge(
|
74
|
+
:header_params => header_params,
|
75
|
+
:query_params => query_params,
|
76
|
+
:form_params => form_params,
|
77
|
+
:body => post_body,
|
78
|
+
:auth_names => auth_names,
|
79
|
+
:return_type => return_type
|
80
|
+
)
|
81
|
+
|
82
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
83
|
+
if @api_client.config.debugging
|
84
|
+
@api_client.config.logger.debug "API called: DefaultApi#check_availability_source\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
85
|
+
end
|
86
|
+
return data, status_code, headers
|
87
|
+
end
|
88
|
+
|
89
|
+
# Create a new Application
|
90
|
+
# Creates a Application object
|
91
|
+
# @param application [Application] Application attributes to create
|
92
|
+
# @param [Hash] opts the optional parameters
|
93
|
+
# @return [Application]
|
94
|
+
def create_application(application, opts = {})
|
95
|
+
data, _status_code, _headers = create_application_with_http_info(application, opts)
|
96
|
+
data
|
97
|
+
end
|
98
|
+
|
99
|
+
# Create a new Application
|
100
|
+
# Creates a Application object
|
101
|
+
# @param application [Application] Application attributes to create
|
102
|
+
# @param [Hash] opts the optional parameters
|
103
|
+
# @return [Array<(Application, Integer, Hash)>] Application data, response status code and response headers
|
104
|
+
def create_application_with_http_info(application, opts = {})
|
105
|
+
if @api_client.config.debugging
|
106
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.create_application ...'
|
107
|
+
end
|
108
|
+
# verify the required parameter 'application' is set
|
109
|
+
if @api_client.config.client_side_validation && application.nil?
|
110
|
+
fail ArgumentError, "Missing the required parameter 'application' when calling DefaultApi.create_application"
|
111
|
+
end
|
112
|
+
# resource path
|
113
|
+
local_var_path = '/applications'
|
114
|
+
|
115
|
+
# query parameters
|
116
|
+
query_params = opts[:query_params] || {}
|
117
|
+
|
118
|
+
# header parameters
|
119
|
+
header_params = opts[:header_params] || {}
|
120
|
+
# HTTP header 'Accept' (if needed)
|
121
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
122
|
+
# HTTP header 'Content-Type'
|
123
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
124
|
+
|
125
|
+
# form parameters
|
126
|
+
form_params = opts[:form_params] || {}
|
127
|
+
|
128
|
+
# http body (model)
|
129
|
+
post_body = opts[:body] || @api_client.object_to_http_body(application)
|
130
|
+
|
131
|
+
# return_type
|
132
|
+
return_type = opts[:return_type] || 'Application'
|
133
|
+
|
134
|
+
# auth_names
|
135
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
136
|
+
|
137
|
+
new_options = opts.merge(
|
138
|
+
:header_params => header_params,
|
139
|
+
:query_params => query_params,
|
140
|
+
:form_params => form_params,
|
141
|
+
:body => post_body,
|
142
|
+
:auth_names => auth_names,
|
143
|
+
:return_type => return_type
|
144
|
+
)
|
145
|
+
|
146
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
147
|
+
if @api_client.config.debugging
|
148
|
+
@api_client.config.logger.debug "API called: DefaultApi#create_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
149
|
+
end
|
150
|
+
return data, status_code, headers
|
151
|
+
end
|
152
|
+
|
153
|
+
# Create a new Authentication
|
154
|
+
# Creates a Authentication object
|
155
|
+
# @param authentication [Authentication] Authentication attributes to create
|
156
|
+
# @param [Hash] opts the optional parameters
|
157
|
+
# @return [Authentication]
|
158
|
+
def create_authentication(authentication, opts = {})
|
159
|
+
data, _status_code, _headers = create_authentication_with_http_info(authentication, opts)
|
160
|
+
data
|
161
|
+
end
|
162
|
+
|
163
|
+
# Create a new Authentication
|
164
|
+
# Creates a Authentication object
|
165
|
+
# @param authentication [Authentication] Authentication attributes to create
|
166
|
+
# @param [Hash] opts the optional parameters
|
167
|
+
# @return [Array<(Authentication, Integer, Hash)>] Authentication data, response status code and response headers
|
168
|
+
def create_authentication_with_http_info(authentication, opts = {})
|
169
|
+
if @api_client.config.debugging
|
170
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.create_authentication ...'
|
171
|
+
end
|
172
|
+
# verify the required parameter 'authentication' is set
|
173
|
+
if @api_client.config.client_side_validation && authentication.nil?
|
174
|
+
fail ArgumentError, "Missing the required parameter 'authentication' when calling DefaultApi.create_authentication"
|
175
|
+
end
|
176
|
+
# resource path
|
177
|
+
local_var_path = '/authentications'
|
178
|
+
|
179
|
+
# query parameters
|
180
|
+
query_params = opts[:query_params] || {}
|
181
|
+
|
182
|
+
# header parameters
|
183
|
+
header_params = opts[:header_params] || {}
|
184
|
+
# HTTP header 'Accept' (if needed)
|
185
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
186
|
+
# HTTP header 'Content-Type'
|
187
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
188
|
+
|
189
|
+
# form parameters
|
190
|
+
form_params = opts[:form_params] || {}
|
191
|
+
|
192
|
+
# http body (model)
|
193
|
+
post_body = opts[:body] || @api_client.object_to_http_body(authentication)
|
194
|
+
|
195
|
+
# return_type
|
196
|
+
return_type = opts[:return_type] || 'Authentication'
|
197
|
+
|
198
|
+
# auth_names
|
199
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
200
|
+
|
201
|
+
new_options = opts.merge(
|
202
|
+
:header_params => header_params,
|
203
|
+
:query_params => query_params,
|
204
|
+
:form_params => form_params,
|
205
|
+
:body => post_body,
|
206
|
+
:auth_names => auth_names,
|
207
|
+
:return_type => return_type
|
208
|
+
)
|
209
|
+
|
210
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
211
|
+
if @api_client.config.debugging
|
212
|
+
@api_client.config.logger.debug "API called: DefaultApi#create_authentication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
213
|
+
end
|
214
|
+
return data, status_code, headers
|
215
|
+
end
|
216
|
+
|
217
|
+
# Create a new Endpoint
|
218
|
+
# Creates a Endpoint object
|
219
|
+
# @param endpoint [Endpoint] Endpoint attributes to create
|
220
|
+
# @param [Hash] opts the optional parameters
|
221
|
+
# @return [Endpoint]
|
222
|
+
def create_endpoint(endpoint, opts = {})
|
223
|
+
data, _status_code, _headers = create_endpoint_with_http_info(endpoint, opts)
|
224
|
+
data
|
225
|
+
end
|
226
|
+
|
227
|
+
# Create a new Endpoint
|
228
|
+
# Creates a Endpoint object
|
229
|
+
# @param endpoint [Endpoint] Endpoint attributes to create
|
230
|
+
# @param [Hash] opts the optional parameters
|
231
|
+
# @return [Array<(Endpoint, Integer, Hash)>] Endpoint data, response status code and response headers
|
232
|
+
def create_endpoint_with_http_info(endpoint, opts = {})
|
233
|
+
if @api_client.config.debugging
|
234
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.create_endpoint ...'
|
235
|
+
end
|
236
|
+
# verify the required parameter 'endpoint' is set
|
237
|
+
if @api_client.config.client_side_validation && endpoint.nil?
|
238
|
+
fail ArgumentError, "Missing the required parameter 'endpoint' when calling DefaultApi.create_endpoint"
|
239
|
+
end
|
240
|
+
# resource path
|
241
|
+
local_var_path = '/endpoints'
|
242
|
+
|
243
|
+
# query parameters
|
244
|
+
query_params = opts[:query_params] || {}
|
245
|
+
|
246
|
+
# header parameters
|
247
|
+
header_params = opts[:header_params] || {}
|
248
|
+
# HTTP header 'Accept' (if needed)
|
249
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
250
|
+
# HTTP header 'Content-Type'
|
251
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
252
|
+
|
253
|
+
# form parameters
|
254
|
+
form_params = opts[:form_params] || {}
|
255
|
+
|
256
|
+
# http body (model)
|
257
|
+
post_body = opts[:body] || @api_client.object_to_http_body(endpoint)
|
258
|
+
|
259
|
+
# return_type
|
260
|
+
return_type = opts[:return_type] || 'Endpoint'
|
261
|
+
|
262
|
+
# auth_names
|
263
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
264
|
+
|
265
|
+
new_options = opts.merge(
|
266
|
+
:header_params => header_params,
|
267
|
+
:query_params => query_params,
|
268
|
+
:form_params => form_params,
|
269
|
+
:body => post_body,
|
270
|
+
:auth_names => auth_names,
|
271
|
+
:return_type => return_type
|
272
|
+
)
|
273
|
+
|
274
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
275
|
+
if @api_client.config.debugging
|
276
|
+
@api_client.config.logger.debug "API called: DefaultApi#create_endpoint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
277
|
+
end
|
278
|
+
return data, status_code, headers
|
279
|
+
end
|
280
|
+
|
281
|
+
# Create a new Source
|
282
|
+
# Creates a Source object
|
283
|
+
# @param source [Source] Source attributes to create
|
284
|
+
# @param [Hash] opts the optional parameters
|
285
|
+
# @return [Source]
|
286
|
+
def create_source(source, opts = {})
|
287
|
+
data, _status_code, _headers = create_source_with_http_info(source, opts)
|
288
|
+
data
|
289
|
+
end
|
290
|
+
|
291
|
+
# Create a new Source
|
292
|
+
# Creates a Source object
|
293
|
+
# @param source [Source] Source attributes to create
|
294
|
+
# @param [Hash] opts the optional parameters
|
295
|
+
# @return [Array<(Source, Integer, Hash)>] Source data, response status code and response headers
|
296
|
+
def create_source_with_http_info(source, opts = {})
|
297
|
+
if @api_client.config.debugging
|
298
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.create_source ...'
|
299
|
+
end
|
300
|
+
# verify the required parameter 'source' is set
|
301
|
+
if @api_client.config.client_side_validation && source.nil?
|
302
|
+
fail ArgumentError, "Missing the required parameter 'source' when calling DefaultApi.create_source"
|
303
|
+
end
|
304
|
+
# resource path
|
305
|
+
local_var_path = '/sources'
|
306
|
+
|
307
|
+
# query parameters
|
308
|
+
query_params = opts[:query_params] || {}
|
309
|
+
|
310
|
+
# header parameters
|
311
|
+
header_params = opts[:header_params] || {}
|
312
|
+
# HTTP header 'Accept' (if needed)
|
313
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
314
|
+
# HTTP header 'Content-Type'
|
315
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
316
|
+
|
317
|
+
# form parameters
|
318
|
+
form_params = opts[:form_params] || {}
|
319
|
+
|
320
|
+
# http body (model)
|
321
|
+
post_body = opts[:body] || @api_client.object_to_http_body(source)
|
322
|
+
|
323
|
+
# return_type
|
324
|
+
return_type = opts[:return_type] || 'Source'
|
325
|
+
|
326
|
+
# auth_names
|
327
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
328
|
+
|
329
|
+
new_options = opts.merge(
|
330
|
+
:header_params => header_params,
|
331
|
+
:query_params => query_params,
|
332
|
+
:form_params => form_params,
|
333
|
+
:body => post_body,
|
334
|
+
:auth_names => auth_names,
|
335
|
+
:return_type => return_type
|
336
|
+
)
|
337
|
+
|
338
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
339
|
+
if @api_client.config.debugging
|
340
|
+
@api_client.config.logger.debug "API called: DefaultApi#create_source\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
341
|
+
end
|
342
|
+
return data, status_code, headers
|
343
|
+
end
|
344
|
+
|
345
|
+
# Create a new SourceType
|
346
|
+
# Creates a SourceType object
|
347
|
+
# @param source_type [SourceType] SourceType attributes to create
|
348
|
+
# @param [Hash] opts the optional parameters
|
349
|
+
# @return [SourceType]
|
350
|
+
def create_source_type(source_type, opts = {})
|
351
|
+
data, _status_code, _headers = create_source_type_with_http_info(source_type, opts)
|
352
|
+
data
|
353
|
+
end
|
354
|
+
|
355
|
+
# Create a new SourceType
|
356
|
+
# Creates a SourceType object
|
357
|
+
# @param source_type [SourceType] SourceType attributes to create
|
358
|
+
# @param [Hash] opts the optional parameters
|
359
|
+
# @return [Array<(SourceType, Integer, Hash)>] SourceType data, response status code and response headers
|
360
|
+
def create_source_type_with_http_info(source_type, opts = {})
|
361
|
+
if @api_client.config.debugging
|
362
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.create_source_type ...'
|
363
|
+
end
|
364
|
+
# verify the required parameter 'source_type' is set
|
365
|
+
if @api_client.config.client_side_validation && source_type.nil?
|
366
|
+
fail ArgumentError, "Missing the required parameter 'source_type' when calling DefaultApi.create_source_type"
|
367
|
+
end
|
368
|
+
# resource path
|
369
|
+
local_var_path = '/source_types'
|
370
|
+
|
371
|
+
# query parameters
|
372
|
+
query_params = opts[:query_params] || {}
|
373
|
+
|
374
|
+
# header parameters
|
375
|
+
header_params = opts[:header_params] || {}
|
376
|
+
# HTTP header 'Accept' (if needed)
|
377
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
378
|
+
# HTTP header 'Content-Type'
|
379
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
380
|
+
|
381
|
+
# form parameters
|
382
|
+
form_params = opts[:form_params] || {}
|
383
|
+
|
384
|
+
# http body (model)
|
385
|
+
post_body = opts[:body] || @api_client.object_to_http_body(source_type)
|
386
|
+
|
387
|
+
# return_type
|
388
|
+
return_type = opts[:return_type] || 'SourceType'
|
389
|
+
|
390
|
+
# auth_names
|
391
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
392
|
+
|
393
|
+
new_options = opts.merge(
|
394
|
+
:header_params => header_params,
|
395
|
+
:query_params => query_params,
|
396
|
+
:form_params => form_params,
|
397
|
+
:body => post_body,
|
398
|
+
:auth_names => auth_names,
|
399
|
+
:return_type => return_type
|
400
|
+
)
|
401
|
+
|
402
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
403
|
+
if @api_client.config.debugging
|
404
|
+
@api_client.config.logger.debug "API called: DefaultApi#create_source_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
405
|
+
end
|
406
|
+
return data, status_code, headers
|
407
|
+
end
|
408
|
+
|
409
|
+
# Delete an existing Application
|
410
|
+
# Deletes a Application object
|
411
|
+
# @param id [String] ID of the resource
|
412
|
+
# @param [Hash] opts the optional parameters
|
413
|
+
# @return [nil]
|
414
|
+
def delete_application(id, opts = {})
|
415
|
+
delete_application_with_http_info(id, opts)
|
416
|
+
nil
|
417
|
+
end
|
418
|
+
|
419
|
+
# Delete an existing Application
|
420
|
+
# Deletes a Application object
|
421
|
+
# @param id [String] ID of the resource
|
422
|
+
# @param [Hash] opts the optional parameters
|
423
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
424
|
+
def delete_application_with_http_info(id, opts = {})
|
425
|
+
if @api_client.config.debugging
|
426
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.delete_application ...'
|
427
|
+
end
|
428
|
+
# verify the required parameter 'id' is set
|
429
|
+
if @api_client.config.client_side_validation && id.nil?
|
430
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_application"
|
431
|
+
end
|
432
|
+
pattern = Regexp.new(/^\d+$/)
|
433
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
434
|
+
fail ArgumentError, "invalid value for 'id' when calling DefaultApi.delete_application, must conform to the pattern #{pattern}."
|
435
|
+
end
|
436
|
+
|
437
|
+
# resource path
|
438
|
+
local_var_path = '/applications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
439
|
+
|
440
|
+
# query parameters
|
441
|
+
query_params = opts[:query_params] || {}
|
442
|
+
|
443
|
+
# header parameters
|
444
|
+
header_params = opts[:header_params] || {}
|
445
|
+
# HTTP header 'Accept' (if needed)
|
446
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
447
|
+
|
448
|
+
# form parameters
|
449
|
+
form_params = opts[:form_params] || {}
|
450
|
+
|
451
|
+
# http body (model)
|
452
|
+
post_body = opts[:body]
|
453
|
+
|
454
|
+
# return_type
|
455
|
+
return_type = opts[:return_type]
|
456
|
+
|
457
|
+
# auth_names
|
458
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
459
|
+
|
460
|
+
new_options = opts.merge(
|
461
|
+
:header_params => header_params,
|
462
|
+
:query_params => query_params,
|
463
|
+
:form_params => form_params,
|
464
|
+
:body => post_body,
|
465
|
+
:auth_names => auth_names,
|
466
|
+
:return_type => return_type
|
467
|
+
)
|
468
|
+
|
469
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
470
|
+
if @api_client.config.debugging
|
471
|
+
@api_client.config.logger.debug "API called: DefaultApi#delete_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
472
|
+
end
|
473
|
+
return data, status_code, headers
|
474
|
+
end
|
475
|
+
|
476
|
+
# Delete an existing Authentication
|
477
|
+
# Deletes a Authentication object
|
478
|
+
# @param id [String] ID of the resource
|
479
|
+
# @param [Hash] opts the optional parameters
|
480
|
+
# @return [nil]
|
481
|
+
def delete_authentication(id, opts = {})
|
482
|
+
delete_authentication_with_http_info(id, opts)
|
483
|
+
nil
|
484
|
+
end
|
485
|
+
|
486
|
+
# Delete an existing Authentication
|
487
|
+
# Deletes a Authentication object
|
488
|
+
# @param id [String] ID of the resource
|
489
|
+
# @param [Hash] opts the optional parameters
|
490
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
491
|
+
def delete_authentication_with_http_info(id, opts = {})
|
492
|
+
if @api_client.config.debugging
|
493
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.delete_authentication ...'
|
494
|
+
end
|
495
|
+
# verify the required parameter 'id' is set
|
496
|
+
if @api_client.config.client_side_validation && id.nil?
|
497
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_authentication"
|
498
|
+
end
|
499
|
+
pattern = Regexp.new(/^\d+$/)
|
500
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
501
|
+
fail ArgumentError, "invalid value for 'id' when calling DefaultApi.delete_authentication, must conform to the pattern #{pattern}."
|
502
|
+
end
|
503
|
+
|
504
|
+
# resource path
|
505
|
+
local_var_path = '/authentications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
506
|
+
|
507
|
+
# query parameters
|
508
|
+
query_params = opts[:query_params] || {}
|
509
|
+
|
510
|
+
# header parameters
|
511
|
+
header_params = opts[:header_params] || {}
|
512
|
+
# HTTP header 'Accept' (if needed)
|
513
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
514
|
+
|
515
|
+
# form parameters
|
516
|
+
form_params = opts[:form_params] || {}
|
517
|
+
|
518
|
+
# http body (model)
|
519
|
+
post_body = opts[:body]
|
520
|
+
|
521
|
+
# return_type
|
522
|
+
return_type = opts[:return_type]
|
523
|
+
|
524
|
+
# auth_names
|
525
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
526
|
+
|
527
|
+
new_options = opts.merge(
|
528
|
+
:header_params => header_params,
|
529
|
+
:query_params => query_params,
|
530
|
+
:form_params => form_params,
|
531
|
+
:body => post_body,
|
532
|
+
:auth_names => auth_names,
|
533
|
+
:return_type => return_type
|
534
|
+
)
|
535
|
+
|
536
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
537
|
+
if @api_client.config.debugging
|
538
|
+
@api_client.config.logger.debug "API called: DefaultApi#delete_authentication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
539
|
+
end
|
540
|
+
return data, status_code, headers
|
541
|
+
end
|
542
|
+
|
543
|
+
# Delete an existing Endpoint
|
544
|
+
# Deletes a Endpoint object
|
545
|
+
# @param id [String] ID of the resource
|
546
|
+
# @param [Hash] opts the optional parameters
|
547
|
+
# @return [nil]
|
548
|
+
def delete_endpoint(id, opts = {})
|
549
|
+
delete_endpoint_with_http_info(id, opts)
|
550
|
+
nil
|
551
|
+
end
|
552
|
+
|
553
|
+
# Delete an existing Endpoint
|
554
|
+
# Deletes a Endpoint object
|
555
|
+
# @param id [String] ID of the resource
|
556
|
+
# @param [Hash] opts the optional parameters
|
557
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
558
|
+
def delete_endpoint_with_http_info(id, opts = {})
|
559
|
+
if @api_client.config.debugging
|
560
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.delete_endpoint ...'
|
561
|
+
end
|
562
|
+
# verify the required parameter 'id' is set
|
563
|
+
if @api_client.config.client_side_validation && id.nil?
|
564
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_endpoint"
|
565
|
+
end
|
566
|
+
pattern = Regexp.new(/^\d+$/)
|
567
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
568
|
+
fail ArgumentError, "invalid value for 'id' when calling DefaultApi.delete_endpoint, must conform to the pattern #{pattern}."
|
569
|
+
end
|
570
|
+
|
571
|
+
# resource path
|
572
|
+
local_var_path = '/endpoints/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
573
|
+
|
574
|
+
# query parameters
|
575
|
+
query_params = opts[:query_params] || {}
|
576
|
+
|
577
|
+
# header parameters
|
578
|
+
header_params = opts[:header_params] || {}
|
579
|
+
# HTTP header 'Accept' (if needed)
|
580
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
581
|
+
|
582
|
+
# form parameters
|
583
|
+
form_params = opts[:form_params] || {}
|
584
|
+
|
585
|
+
# http body (model)
|
586
|
+
post_body = opts[:body]
|
587
|
+
|
588
|
+
# return_type
|
589
|
+
return_type = opts[:return_type]
|
590
|
+
|
591
|
+
# auth_names
|
592
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
593
|
+
|
594
|
+
new_options = opts.merge(
|
595
|
+
:header_params => header_params,
|
596
|
+
:query_params => query_params,
|
597
|
+
:form_params => form_params,
|
598
|
+
:body => post_body,
|
599
|
+
:auth_names => auth_names,
|
600
|
+
:return_type => return_type
|
601
|
+
)
|
602
|
+
|
603
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
604
|
+
if @api_client.config.debugging
|
605
|
+
@api_client.config.logger.debug "API called: DefaultApi#delete_endpoint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
606
|
+
end
|
607
|
+
return data, status_code, headers
|
608
|
+
end
|
609
|
+
|
610
|
+
# Delete an existing Source
|
611
|
+
# Deletes a Source object
|
612
|
+
# @param id [String] ID of the resource
|
613
|
+
# @param [Hash] opts the optional parameters
|
614
|
+
# @return [nil]
|
615
|
+
def delete_source(id, opts = {})
|
616
|
+
delete_source_with_http_info(id, opts)
|
617
|
+
nil
|
618
|
+
end
|
619
|
+
|
620
|
+
# Delete an existing Source
|
621
|
+
# Deletes a Source object
|
622
|
+
# @param id [String] ID of the resource
|
623
|
+
# @param [Hash] opts the optional parameters
|
624
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
625
|
+
def delete_source_with_http_info(id, opts = {})
|
626
|
+
if @api_client.config.debugging
|
627
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.delete_source ...'
|
628
|
+
end
|
629
|
+
# verify the required parameter 'id' is set
|
630
|
+
if @api_client.config.client_side_validation && id.nil?
|
631
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_source"
|
632
|
+
end
|
633
|
+
pattern = Regexp.new(/^\d+$/)
|
634
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
635
|
+
fail ArgumentError, "invalid value for 'id' when calling DefaultApi.delete_source, must conform to the pattern #{pattern}."
|
636
|
+
end
|
637
|
+
|
638
|
+
# resource path
|
639
|
+
local_var_path = '/sources/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
640
|
+
|
641
|
+
# query parameters
|
642
|
+
query_params = opts[:query_params] || {}
|
643
|
+
|
644
|
+
# header parameters
|
645
|
+
header_params = opts[:header_params] || {}
|
646
|
+
# HTTP header 'Accept' (if needed)
|
647
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
648
|
+
|
649
|
+
# form parameters
|
650
|
+
form_params = opts[:form_params] || {}
|
651
|
+
|
652
|
+
# http body (model)
|
653
|
+
post_body = opts[:body]
|
654
|
+
|
655
|
+
# return_type
|
656
|
+
return_type = opts[:return_type]
|
657
|
+
|
658
|
+
# auth_names
|
659
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
660
|
+
|
661
|
+
new_options = opts.merge(
|
662
|
+
:header_params => header_params,
|
663
|
+
:query_params => query_params,
|
664
|
+
:form_params => form_params,
|
665
|
+
:body => post_body,
|
666
|
+
:auth_names => auth_names,
|
667
|
+
:return_type => return_type
|
668
|
+
)
|
669
|
+
|
670
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
671
|
+
if @api_client.config.debugging
|
672
|
+
@api_client.config.logger.debug "API called: DefaultApi#delete_source\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
673
|
+
end
|
674
|
+
return data, status_code, headers
|
675
|
+
end
|
676
|
+
|
677
|
+
# Return this API document in JSON format
|
678
|
+
# @param [Hash] opts the optional parameters
|
679
|
+
# @return [Object]
|
680
|
+
def get_documentation(opts = {})
|
681
|
+
data, _status_code, _headers = get_documentation_with_http_info(opts)
|
682
|
+
data
|
683
|
+
end
|
684
|
+
|
685
|
+
# Return this API document in JSON format
|
686
|
+
# @param [Hash] opts the optional parameters
|
687
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
688
|
+
def get_documentation_with_http_info(opts = {})
|
689
|
+
if @api_client.config.debugging
|
690
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.get_documentation ...'
|
691
|
+
end
|
692
|
+
# resource path
|
693
|
+
local_var_path = '/openapi.json'
|
694
|
+
|
695
|
+
# query parameters
|
696
|
+
query_params = opts[:query_params] || {}
|
697
|
+
|
698
|
+
# header parameters
|
699
|
+
header_params = opts[:header_params] || {}
|
700
|
+
# HTTP header 'Accept' (if needed)
|
701
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
702
|
+
|
703
|
+
# form parameters
|
704
|
+
form_params = opts[:form_params] || {}
|
705
|
+
|
706
|
+
# http body (model)
|
707
|
+
post_body = opts[:body]
|
708
|
+
|
709
|
+
# return_type
|
710
|
+
return_type = opts[:return_type] || 'Object'
|
711
|
+
|
712
|
+
# auth_names
|
713
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
714
|
+
|
715
|
+
new_options = opts.merge(
|
716
|
+
:header_params => header_params,
|
717
|
+
:query_params => query_params,
|
718
|
+
:form_params => form_params,
|
719
|
+
:body => post_body,
|
720
|
+
:auth_names => auth_names,
|
721
|
+
:return_type => return_type
|
722
|
+
)
|
723
|
+
|
724
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
725
|
+
if @api_client.config.debugging
|
726
|
+
@api_client.config.logger.debug "API called: DefaultApi#get_documentation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
727
|
+
end
|
728
|
+
return data, status_code, headers
|
729
|
+
end
|
730
|
+
|
731
|
+
# List Sources for ApplicationType
|
732
|
+
# Returns an array of Source objects
|
733
|
+
# @param id [String] ID of the resource
|
734
|
+
# @param [Hash] opts the optional parameters
|
735
|
+
# @option opts [Integer] :limit The numbers of items to return per page. (default to 100)
|
736
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0)
|
737
|
+
# @option opts [Object] :filter Filter for querying collections.
|
738
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
739
|
+
# @return [SourcesCollection]
|
740
|
+
def list_application_type_sources(id, opts = {})
|
741
|
+
data, _status_code, _headers = list_application_type_sources_with_http_info(id, opts)
|
742
|
+
data
|
743
|
+
end
|
744
|
+
|
745
|
+
# List Sources for ApplicationType
|
746
|
+
# Returns an array of Source objects
|
747
|
+
# @param id [String] ID of the resource
|
748
|
+
# @param [Hash] opts the optional parameters
|
749
|
+
# @option opts [Integer] :limit The numbers of items to return per page.
|
750
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
|
751
|
+
# @option opts [Object] :filter Filter for querying collections.
|
752
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
753
|
+
# @return [Array<(SourcesCollection, Integer, Hash)>] SourcesCollection data, response status code and response headers
|
754
|
+
def list_application_type_sources_with_http_info(id, opts = {})
|
755
|
+
if @api_client.config.debugging
|
756
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list_application_type_sources ...'
|
757
|
+
end
|
758
|
+
# verify the required parameter 'id' is set
|
759
|
+
if @api_client.config.client_side_validation && id.nil?
|
760
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_application_type_sources"
|
761
|
+
end
|
762
|
+
pattern = Regexp.new(/^\d+$/)
|
763
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
764
|
+
fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_application_type_sources, must conform to the pattern #{pattern}."
|
765
|
+
end
|
766
|
+
|
767
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
|
768
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_application_type_sources, must be smaller than or equal to 1000.'
|
769
|
+
end
|
770
|
+
|
771
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
772
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_application_type_sources, must be greater than or equal to 1.'
|
773
|
+
end
|
774
|
+
|
775
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
776
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_application_type_sources, must be greater than or equal to 0.'
|
777
|
+
end
|
778
|
+
|
779
|
+
# resource path
|
780
|
+
local_var_path = '/application_types/{id}/sources'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
781
|
+
|
782
|
+
# query parameters
|
783
|
+
query_params = opts[:query_params] || {}
|
784
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
785
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
786
|
+
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
787
|
+
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
788
|
+
|
789
|
+
# header parameters
|
790
|
+
header_params = opts[:header_params] || {}
|
791
|
+
# HTTP header 'Accept' (if needed)
|
792
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
793
|
+
|
794
|
+
# form parameters
|
795
|
+
form_params = opts[:form_params] || {}
|
796
|
+
|
797
|
+
# http body (model)
|
798
|
+
post_body = opts[:body]
|
799
|
+
|
800
|
+
# return_type
|
801
|
+
return_type = opts[:return_type] || 'SourcesCollection'
|
802
|
+
|
803
|
+
# auth_names
|
804
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
805
|
+
|
806
|
+
new_options = opts.merge(
|
807
|
+
:header_params => header_params,
|
808
|
+
:query_params => query_params,
|
809
|
+
:form_params => form_params,
|
810
|
+
:body => post_body,
|
811
|
+
:auth_names => auth_names,
|
812
|
+
:return_type => return_type
|
813
|
+
)
|
814
|
+
|
815
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
816
|
+
if @api_client.config.debugging
|
817
|
+
@api_client.config.logger.debug "API called: DefaultApi#list_application_type_sources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
818
|
+
end
|
819
|
+
return data, status_code, headers
|
820
|
+
end
|
821
|
+
|
822
|
+
# List ApplicationTypes
|
823
|
+
# Returns an array of ApplicationType objects
|
824
|
+
# @param [Hash] opts the optional parameters
|
825
|
+
# @option opts [Integer] :limit The numbers of items to return per page. (default to 100)
|
826
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0)
|
827
|
+
# @option opts [Object] :filter Filter for querying collections.
|
828
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
829
|
+
# @return [ApplicationTypesCollection]
|
830
|
+
def list_application_types(opts = {})
|
831
|
+
data, _status_code, _headers = list_application_types_with_http_info(opts)
|
832
|
+
data
|
833
|
+
end
|
834
|
+
|
835
|
+
# List ApplicationTypes
|
836
|
+
# Returns an array of ApplicationType objects
|
837
|
+
# @param [Hash] opts the optional parameters
|
838
|
+
# @option opts [Integer] :limit The numbers of items to return per page.
|
839
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
|
840
|
+
# @option opts [Object] :filter Filter for querying collections.
|
841
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
842
|
+
# @return [Array<(ApplicationTypesCollection, Integer, Hash)>] ApplicationTypesCollection data, response status code and response headers
|
843
|
+
def list_application_types_with_http_info(opts = {})
|
844
|
+
if @api_client.config.debugging
|
845
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list_application_types ...'
|
846
|
+
end
|
847
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
|
848
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_application_types, must be smaller than or equal to 1000.'
|
849
|
+
end
|
850
|
+
|
851
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
852
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_application_types, must be greater than or equal to 1.'
|
853
|
+
end
|
854
|
+
|
855
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
856
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_application_types, must be greater than or equal to 0.'
|
857
|
+
end
|
858
|
+
|
859
|
+
# resource path
|
860
|
+
local_var_path = '/application_types'
|
861
|
+
|
862
|
+
# query parameters
|
863
|
+
query_params = opts[:query_params] || {}
|
864
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
865
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
866
|
+
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
867
|
+
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
868
|
+
|
869
|
+
# header parameters
|
870
|
+
header_params = opts[:header_params] || {}
|
871
|
+
# HTTP header 'Accept' (if needed)
|
872
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
873
|
+
|
874
|
+
# form parameters
|
875
|
+
form_params = opts[:form_params] || {}
|
876
|
+
|
877
|
+
# http body (model)
|
878
|
+
post_body = opts[:body]
|
879
|
+
|
880
|
+
# return_type
|
881
|
+
return_type = opts[:return_type] || 'ApplicationTypesCollection'
|
882
|
+
|
883
|
+
# auth_names
|
884
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
885
|
+
|
886
|
+
new_options = opts.merge(
|
887
|
+
:header_params => header_params,
|
888
|
+
:query_params => query_params,
|
889
|
+
:form_params => form_params,
|
890
|
+
:body => post_body,
|
891
|
+
:auth_names => auth_names,
|
892
|
+
:return_type => return_type
|
893
|
+
)
|
894
|
+
|
895
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
896
|
+
if @api_client.config.debugging
|
897
|
+
@api_client.config.logger.debug "API called: DefaultApi#list_application_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
898
|
+
end
|
899
|
+
return data, status_code, headers
|
900
|
+
end
|
901
|
+
|
902
|
+
# List Applications
|
903
|
+
# Returns an array of Application objects
|
904
|
+
# @param [Hash] opts the optional parameters
|
905
|
+
# @option opts [Integer] :limit The numbers of items to return per page. (default to 100)
|
906
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0)
|
907
|
+
# @option opts [Object] :filter Filter for querying collections.
|
908
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
909
|
+
# @return [ApplicationsCollection]
|
910
|
+
def list_applications(opts = {})
|
911
|
+
data, _status_code, _headers = list_applications_with_http_info(opts)
|
912
|
+
data
|
913
|
+
end
|
914
|
+
|
915
|
+
# List Applications
|
916
|
+
# Returns an array of Application objects
|
917
|
+
# @param [Hash] opts the optional parameters
|
918
|
+
# @option opts [Integer] :limit The numbers of items to return per page.
|
919
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
|
920
|
+
# @option opts [Object] :filter Filter for querying collections.
|
921
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
922
|
+
# @return [Array<(ApplicationsCollection, Integer, Hash)>] ApplicationsCollection data, response status code and response headers
|
923
|
+
def list_applications_with_http_info(opts = {})
|
924
|
+
if @api_client.config.debugging
|
925
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list_applications ...'
|
926
|
+
end
|
927
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
|
928
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_applications, must be smaller than or equal to 1000.'
|
929
|
+
end
|
930
|
+
|
931
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
932
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_applications, must be greater than or equal to 1.'
|
933
|
+
end
|
934
|
+
|
935
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
936
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_applications, must be greater than or equal to 0.'
|
937
|
+
end
|
938
|
+
|
939
|
+
# resource path
|
940
|
+
local_var_path = '/applications'
|
941
|
+
|
942
|
+
# query parameters
|
943
|
+
query_params = opts[:query_params] || {}
|
944
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
945
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
946
|
+
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
947
|
+
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
948
|
+
|
949
|
+
# header parameters
|
950
|
+
header_params = opts[:header_params] || {}
|
951
|
+
# HTTP header 'Accept' (if needed)
|
952
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
953
|
+
|
954
|
+
# form parameters
|
955
|
+
form_params = opts[:form_params] || {}
|
956
|
+
|
957
|
+
# http body (model)
|
958
|
+
post_body = opts[:body]
|
959
|
+
|
960
|
+
# return_type
|
961
|
+
return_type = opts[:return_type] || 'ApplicationsCollection'
|
962
|
+
|
963
|
+
# auth_names
|
964
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
965
|
+
|
966
|
+
new_options = opts.merge(
|
967
|
+
:header_params => header_params,
|
968
|
+
:query_params => query_params,
|
969
|
+
:form_params => form_params,
|
970
|
+
:body => post_body,
|
971
|
+
:auth_names => auth_names,
|
972
|
+
:return_type => return_type
|
973
|
+
)
|
974
|
+
|
975
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
976
|
+
if @api_client.config.debugging
|
977
|
+
@api_client.config.logger.debug "API called: DefaultApi#list_applications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
978
|
+
end
|
979
|
+
return data, status_code, headers
|
980
|
+
end
|
981
|
+
|
982
|
+
# List Authentications
|
983
|
+
# Returns an array of Authentication objects
|
984
|
+
# @param [Hash] opts the optional parameters
|
985
|
+
# @option opts [Integer] :limit The numbers of items to return per page. (default to 100)
|
986
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0)
|
987
|
+
# @option opts [Object] :filter Filter for querying collections.
|
988
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
989
|
+
# @return [AuthenticationsCollection]
|
990
|
+
def list_authentications(opts = {})
|
991
|
+
data, _status_code, _headers = list_authentications_with_http_info(opts)
|
992
|
+
data
|
993
|
+
end
|
994
|
+
|
995
|
+
# List Authentications
|
996
|
+
# Returns an array of Authentication objects
|
997
|
+
# @param [Hash] opts the optional parameters
|
998
|
+
# @option opts [Integer] :limit The numbers of items to return per page.
|
999
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
|
1000
|
+
# @option opts [Object] :filter Filter for querying collections.
|
1001
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
1002
|
+
# @return [Array<(AuthenticationsCollection, Integer, Hash)>] AuthenticationsCollection data, response status code and response headers
|
1003
|
+
def list_authentications_with_http_info(opts = {})
|
1004
|
+
if @api_client.config.debugging
|
1005
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list_authentications ...'
|
1006
|
+
end
|
1007
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
|
1008
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_authentications, must be smaller than or equal to 1000.'
|
1009
|
+
end
|
1010
|
+
|
1011
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
1012
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_authentications, must be greater than or equal to 1.'
|
1013
|
+
end
|
1014
|
+
|
1015
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
1016
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_authentications, must be greater than or equal to 0.'
|
1017
|
+
end
|
1018
|
+
|
1019
|
+
# resource path
|
1020
|
+
local_var_path = '/authentications'
|
1021
|
+
|
1022
|
+
# query parameters
|
1023
|
+
query_params = opts[:query_params] || {}
|
1024
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1025
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1026
|
+
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
1027
|
+
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
1028
|
+
|
1029
|
+
# header parameters
|
1030
|
+
header_params = opts[:header_params] || {}
|
1031
|
+
# HTTP header 'Accept' (if needed)
|
1032
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1033
|
+
|
1034
|
+
# form parameters
|
1035
|
+
form_params = opts[:form_params] || {}
|
1036
|
+
|
1037
|
+
# http body (model)
|
1038
|
+
post_body = opts[:body]
|
1039
|
+
|
1040
|
+
# return_type
|
1041
|
+
return_type = opts[:return_type] || 'AuthenticationsCollection'
|
1042
|
+
|
1043
|
+
# auth_names
|
1044
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
1045
|
+
|
1046
|
+
new_options = opts.merge(
|
1047
|
+
:header_params => header_params,
|
1048
|
+
:query_params => query_params,
|
1049
|
+
:form_params => form_params,
|
1050
|
+
:body => post_body,
|
1051
|
+
:auth_names => auth_names,
|
1052
|
+
:return_type => return_type
|
1053
|
+
)
|
1054
|
+
|
1055
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1056
|
+
if @api_client.config.debugging
|
1057
|
+
@api_client.config.logger.debug "API called: DefaultApi#list_authentications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1058
|
+
end
|
1059
|
+
return data, status_code, headers
|
1060
|
+
end
|
1061
|
+
|
1062
|
+
# List Authentications for Endpoint
|
1063
|
+
# Returns an array of Authentication objects
|
1064
|
+
# @param id [String] ID of the resource
|
1065
|
+
# @param [Hash] opts the optional parameters
|
1066
|
+
# @option opts [Integer] :limit The numbers of items to return per page. (default to 100)
|
1067
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0)
|
1068
|
+
# @option opts [Object] :filter Filter for querying collections.
|
1069
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
1070
|
+
# @return [AuthenticationsCollection]
|
1071
|
+
def list_endpoint_authentications(id, opts = {})
|
1072
|
+
data, _status_code, _headers = list_endpoint_authentications_with_http_info(id, opts)
|
1073
|
+
data
|
1074
|
+
end
|
1075
|
+
|
1076
|
+
# List Authentications for Endpoint
|
1077
|
+
# Returns an array of Authentication objects
|
1078
|
+
# @param id [String] ID of the resource
|
1079
|
+
# @param [Hash] opts the optional parameters
|
1080
|
+
# @option opts [Integer] :limit The numbers of items to return per page.
|
1081
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
|
1082
|
+
# @option opts [Object] :filter Filter for querying collections.
|
1083
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
1084
|
+
# @return [Array<(AuthenticationsCollection, Integer, Hash)>] AuthenticationsCollection data, response status code and response headers
|
1085
|
+
def list_endpoint_authentications_with_http_info(id, opts = {})
|
1086
|
+
if @api_client.config.debugging
|
1087
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list_endpoint_authentications ...'
|
1088
|
+
end
|
1089
|
+
# verify the required parameter 'id' is set
|
1090
|
+
if @api_client.config.client_side_validation && id.nil?
|
1091
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_endpoint_authentications"
|
1092
|
+
end
|
1093
|
+
pattern = Regexp.new(/^\d+$/)
|
1094
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
1095
|
+
fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_endpoint_authentications, must conform to the pattern #{pattern}."
|
1096
|
+
end
|
1097
|
+
|
1098
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
|
1099
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_endpoint_authentications, must be smaller than or equal to 1000.'
|
1100
|
+
end
|
1101
|
+
|
1102
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
1103
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_endpoint_authentications, must be greater than or equal to 1.'
|
1104
|
+
end
|
1105
|
+
|
1106
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
1107
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_endpoint_authentications, must be greater than or equal to 0.'
|
1108
|
+
end
|
1109
|
+
|
1110
|
+
# resource path
|
1111
|
+
local_var_path = '/endpoints/{id}/authentications'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1112
|
+
|
1113
|
+
# query parameters
|
1114
|
+
query_params = opts[:query_params] || {}
|
1115
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1116
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1117
|
+
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
1118
|
+
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
1119
|
+
|
1120
|
+
# header parameters
|
1121
|
+
header_params = opts[:header_params] || {}
|
1122
|
+
# HTTP header 'Accept' (if needed)
|
1123
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1124
|
+
|
1125
|
+
# form parameters
|
1126
|
+
form_params = opts[:form_params] || {}
|
1127
|
+
|
1128
|
+
# http body (model)
|
1129
|
+
post_body = opts[:body]
|
1130
|
+
|
1131
|
+
# return_type
|
1132
|
+
return_type = opts[:return_type] || 'AuthenticationsCollection'
|
1133
|
+
|
1134
|
+
# auth_names
|
1135
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
1136
|
+
|
1137
|
+
new_options = opts.merge(
|
1138
|
+
:header_params => header_params,
|
1139
|
+
:query_params => query_params,
|
1140
|
+
:form_params => form_params,
|
1141
|
+
:body => post_body,
|
1142
|
+
:auth_names => auth_names,
|
1143
|
+
:return_type => return_type
|
1144
|
+
)
|
1145
|
+
|
1146
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1147
|
+
if @api_client.config.debugging
|
1148
|
+
@api_client.config.logger.debug "API called: DefaultApi#list_endpoint_authentications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1149
|
+
end
|
1150
|
+
return data, status_code, headers
|
1151
|
+
end
|
1152
|
+
|
1153
|
+
# List Endpoints
|
1154
|
+
# Returns an array of Endpoint objects
|
1155
|
+
# @param [Hash] opts the optional parameters
|
1156
|
+
# @option opts [Integer] :limit The numbers of items to return per page. (default to 100)
|
1157
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0)
|
1158
|
+
# @option opts [Object] :filter Filter for querying collections.
|
1159
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
1160
|
+
# @return [EndpointsCollection]
|
1161
|
+
def list_endpoints(opts = {})
|
1162
|
+
data, _status_code, _headers = list_endpoints_with_http_info(opts)
|
1163
|
+
data
|
1164
|
+
end
|
1165
|
+
|
1166
|
+
# List Endpoints
|
1167
|
+
# Returns an array of Endpoint objects
|
1168
|
+
# @param [Hash] opts the optional parameters
|
1169
|
+
# @option opts [Integer] :limit The numbers of items to return per page.
|
1170
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
|
1171
|
+
# @option opts [Object] :filter Filter for querying collections.
|
1172
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
1173
|
+
# @return [Array<(EndpointsCollection, Integer, Hash)>] EndpointsCollection data, response status code and response headers
|
1174
|
+
def list_endpoints_with_http_info(opts = {})
|
1175
|
+
if @api_client.config.debugging
|
1176
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list_endpoints ...'
|
1177
|
+
end
|
1178
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
|
1179
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_endpoints, must be smaller than or equal to 1000.'
|
1180
|
+
end
|
1181
|
+
|
1182
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
1183
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_endpoints, must be greater than or equal to 1.'
|
1184
|
+
end
|
1185
|
+
|
1186
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
1187
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_endpoints, must be greater than or equal to 0.'
|
1188
|
+
end
|
1189
|
+
|
1190
|
+
# resource path
|
1191
|
+
local_var_path = '/endpoints'
|
1192
|
+
|
1193
|
+
# query parameters
|
1194
|
+
query_params = opts[:query_params] || {}
|
1195
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1196
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1197
|
+
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
1198
|
+
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
1199
|
+
|
1200
|
+
# header parameters
|
1201
|
+
header_params = opts[:header_params] || {}
|
1202
|
+
# HTTP header 'Accept' (if needed)
|
1203
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1204
|
+
|
1205
|
+
# form parameters
|
1206
|
+
form_params = opts[:form_params] || {}
|
1207
|
+
|
1208
|
+
# http body (model)
|
1209
|
+
post_body = opts[:body]
|
1210
|
+
|
1211
|
+
# return_type
|
1212
|
+
return_type = opts[:return_type] || 'EndpointsCollection'
|
1213
|
+
|
1214
|
+
# auth_names
|
1215
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
1216
|
+
|
1217
|
+
new_options = opts.merge(
|
1218
|
+
:header_params => header_params,
|
1219
|
+
:query_params => query_params,
|
1220
|
+
:form_params => form_params,
|
1221
|
+
:body => post_body,
|
1222
|
+
:auth_names => auth_names,
|
1223
|
+
:return_type => return_type
|
1224
|
+
)
|
1225
|
+
|
1226
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1227
|
+
if @api_client.config.debugging
|
1228
|
+
@api_client.config.logger.debug "API called: DefaultApi#list_endpoints\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1229
|
+
end
|
1230
|
+
return data, status_code, headers
|
1231
|
+
end
|
1232
|
+
|
1233
|
+
# List ApplicationTypes for Source
|
1234
|
+
# Returns an array of ApplicationType objects
|
1235
|
+
# @param id [String] ID of the resource
|
1236
|
+
# @param [Hash] opts the optional parameters
|
1237
|
+
# @option opts [Integer] :limit The numbers of items to return per page. (default to 100)
|
1238
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0)
|
1239
|
+
# @option opts [Object] :filter Filter for querying collections.
|
1240
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
1241
|
+
# @return [ApplicationTypesCollection]
|
1242
|
+
def list_source_application_types(id, opts = {})
|
1243
|
+
data, _status_code, _headers = list_source_application_types_with_http_info(id, opts)
|
1244
|
+
data
|
1245
|
+
end
|
1246
|
+
|
1247
|
+
# List ApplicationTypes for Source
|
1248
|
+
# Returns an array of ApplicationType objects
|
1249
|
+
# @param id [String] ID of the resource
|
1250
|
+
# @param [Hash] opts the optional parameters
|
1251
|
+
# @option opts [Integer] :limit The numbers of items to return per page.
|
1252
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
|
1253
|
+
# @option opts [Object] :filter Filter for querying collections.
|
1254
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
1255
|
+
# @return [Array<(ApplicationTypesCollection, Integer, Hash)>] ApplicationTypesCollection data, response status code and response headers
|
1256
|
+
def list_source_application_types_with_http_info(id, opts = {})
|
1257
|
+
if @api_client.config.debugging
|
1258
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list_source_application_types ...'
|
1259
|
+
end
|
1260
|
+
# verify the required parameter 'id' is set
|
1261
|
+
if @api_client.config.client_side_validation && id.nil?
|
1262
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_application_types"
|
1263
|
+
end
|
1264
|
+
pattern = Regexp.new(/^\d+$/)
|
1265
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
1266
|
+
fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_application_types, must conform to the pattern #{pattern}."
|
1267
|
+
end
|
1268
|
+
|
1269
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
|
1270
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_application_types, must be smaller than or equal to 1000.'
|
1271
|
+
end
|
1272
|
+
|
1273
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
1274
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_application_types, must be greater than or equal to 1.'
|
1275
|
+
end
|
1276
|
+
|
1277
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
1278
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_application_types, must be greater than or equal to 0.'
|
1279
|
+
end
|
1280
|
+
|
1281
|
+
# resource path
|
1282
|
+
local_var_path = '/sources/{id}/application_types'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1283
|
+
|
1284
|
+
# query parameters
|
1285
|
+
query_params = opts[:query_params] || {}
|
1286
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1287
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1288
|
+
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
1289
|
+
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
1290
|
+
|
1291
|
+
# header parameters
|
1292
|
+
header_params = opts[:header_params] || {}
|
1293
|
+
# HTTP header 'Accept' (if needed)
|
1294
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1295
|
+
|
1296
|
+
# form parameters
|
1297
|
+
form_params = opts[:form_params] || {}
|
1298
|
+
|
1299
|
+
# http body (model)
|
1300
|
+
post_body = opts[:body]
|
1301
|
+
|
1302
|
+
# return_type
|
1303
|
+
return_type = opts[:return_type] || 'ApplicationTypesCollection'
|
1304
|
+
|
1305
|
+
# auth_names
|
1306
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
1307
|
+
|
1308
|
+
new_options = opts.merge(
|
1309
|
+
:header_params => header_params,
|
1310
|
+
:query_params => query_params,
|
1311
|
+
:form_params => form_params,
|
1312
|
+
:body => post_body,
|
1313
|
+
:auth_names => auth_names,
|
1314
|
+
:return_type => return_type
|
1315
|
+
)
|
1316
|
+
|
1317
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1318
|
+
if @api_client.config.debugging
|
1319
|
+
@api_client.config.logger.debug "API called: DefaultApi#list_source_application_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1320
|
+
end
|
1321
|
+
return data, status_code, headers
|
1322
|
+
end
|
1323
|
+
|
1324
|
+
# List Applications for Source
|
1325
|
+
# Returns an array of Application objects
|
1326
|
+
# @param id [String] ID of the resource
|
1327
|
+
# @param [Hash] opts the optional parameters
|
1328
|
+
# @option opts [Integer] :limit The numbers of items to return per page. (default to 100)
|
1329
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0)
|
1330
|
+
# @option opts [Object] :filter Filter for querying collections.
|
1331
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
1332
|
+
# @return [ApplicationsCollection]
|
1333
|
+
def list_source_applications(id, opts = {})
|
1334
|
+
data, _status_code, _headers = list_source_applications_with_http_info(id, opts)
|
1335
|
+
data
|
1336
|
+
end
|
1337
|
+
|
1338
|
+
# List Applications for Source
|
1339
|
+
# Returns an array of Application objects
|
1340
|
+
# @param id [String] ID of the resource
|
1341
|
+
# @param [Hash] opts the optional parameters
|
1342
|
+
# @option opts [Integer] :limit The numbers of items to return per page.
|
1343
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
|
1344
|
+
# @option opts [Object] :filter Filter for querying collections.
|
1345
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
1346
|
+
# @return [Array<(ApplicationsCollection, Integer, Hash)>] ApplicationsCollection data, response status code and response headers
|
1347
|
+
def list_source_applications_with_http_info(id, opts = {})
|
1348
|
+
if @api_client.config.debugging
|
1349
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list_source_applications ...'
|
1350
|
+
end
|
1351
|
+
# verify the required parameter 'id' is set
|
1352
|
+
if @api_client.config.client_side_validation && id.nil?
|
1353
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_applications"
|
1354
|
+
end
|
1355
|
+
pattern = Regexp.new(/^\d+$/)
|
1356
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
1357
|
+
fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_applications, must conform to the pattern #{pattern}."
|
1358
|
+
end
|
1359
|
+
|
1360
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
|
1361
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_applications, must be smaller than or equal to 1000.'
|
1362
|
+
end
|
1363
|
+
|
1364
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
1365
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_applications, must be greater than or equal to 1.'
|
1366
|
+
end
|
1367
|
+
|
1368
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
1369
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_applications, must be greater than or equal to 0.'
|
1370
|
+
end
|
1371
|
+
|
1372
|
+
# resource path
|
1373
|
+
local_var_path = '/sources/{id}/applications'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1374
|
+
|
1375
|
+
# query parameters
|
1376
|
+
query_params = opts[:query_params] || {}
|
1377
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1378
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1379
|
+
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
1380
|
+
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
1381
|
+
|
1382
|
+
# header parameters
|
1383
|
+
header_params = opts[:header_params] || {}
|
1384
|
+
# HTTP header 'Accept' (if needed)
|
1385
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1386
|
+
|
1387
|
+
# form parameters
|
1388
|
+
form_params = opts[:form_params] || {}
|
1389
|
+
|
1390
|
+
# http body (model)
|
1391
|
+
post_body = opts[:body]
|
1392
|
+
|
1393
|
+
# return_type
|
1394
|
+
return_type = opts[:return_type] || 'ApplicationsCollection'
|
1395
|
+
|
1396
|
+
# auth_names
|
1397
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
1398
|
+
|
1399
|
+
new_options = opts.merge(
|
1400
|
+
:header_params => header_params,
|
1401
|
+
:query_params => query_params,
|
1402
|
+
:form_params => form_params,
|
1403
|
+
:body => post_body,
|
1404
|
+
:auth_names => auth_names,
|
1405
|
+
:return_type => return_type
|
1406
|
+
)
|
1407
|
+
|
1408
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1409
|
+
if @api_client.config.debugging
|
1410
|
+
@api_client.config.logger.debug "API called: DefaultApi#list_source_applications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1411
|
+
end
|
1412
|
+
return data, status_code, headers
|
1413
|
+
end
|
1414
|
+
|
1415
|
+
# List Endpoints for Source
|
1416
|
+
# Returns an array of Endpoint objects
|
1417
|
+
# @param id [String] ID of the resource
|
1418
|
+
# @param [Hash] opts the optional parameters
|
1419
|
+
# @option opts [Integer] :limit The numbers of items to return per page. (default to 100)
|
1420
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0)
|
1421
|
+
# @option opts [Object] :filter Filter for querying collections.
|
1422
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
1423
|
+
# @return [EndpointsCollection]
|
1424
|
+
def list_source_endpoints(id, opts = {})
|
1425
|
+
data, _status_code, _headers = list_source_endpoints_with_http_info(id, opts)
|
1426
|
+
data
|
1427
|
+
end
|
1428
|
+
|
1429
|
+
# List Endpoints for Source
|
1430
|
+
# Returns an array of Endpoint objects
|
1431
|
+
# @param id [String] ID of the resource
|
1432
|
+
# @param [Hash] opts the optional parameters
|
1433
|
+
# @option opts [Integer] :limit The numbers of items to return per page.
|
1434
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
|
1435
|
+
# @option opts [Object] :filter Filter for querying collections.
|
1436
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
1437
|
+
# @return [Array<(EndpointsCollection, Integer, Hash)>] EndpointsCollection data, response status code and response headers
|
1438
|
+
def list_source_endpoints_with_http_info(id, opts = {})
|
1439
|
+
if @api_client.config.debugging
|
1440
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list_source_endpoints ...'
|
1441
|
+
end
|
1442
|
+
# verify the required parameter 'id' is set
|
1443
|
+
if @api_client.config.client_side_validation && id.nil?
|
1444
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_endpoints"
|
1445
|
+
end
|
1446
|
+
pattern = Regexp.new(/^\d+$/)
|
1447
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
1448
|
+
fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_endpoints, must conform to the pattern #{pattern}."
|
1449
|
+
end
|
1450
|
+
|
1451
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
|
1452
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_endpoints, must be smaller than or equal to 1000.'
|
1453
|
+
end
|
1454
|
+
|
1455
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
1456
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_endpoints, must be greater than or equal to 1.'
|
1457
|
+
end
|
1458
|
+
|
1459
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
1460
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_endpoints, must be greater than or equal to 0.'
|
1461
|
+
end
|
1462
|
+
|
1463
|
+
# resource path
|
1464
|
+
local_var_path = '/sources/{id}/endpoints'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1465
|
+
|
1466
|
+
# query parameters
|
1467
|
+
query_params = opts[:query_params] || {}
|
1468
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1469
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1470
|
+
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
1471
|
+
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
1472
|
+
|
1473
|
+
# header parameters
|
1474
|
+
header_params = opts[:header_params] || {}
|
1475
|
+
# HTTP header 'Accept' (if needed)
|
1476
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1477
|
+
|
1478
|
+
# form parameters
|
1479
|
+
form_params = opts[:form_params] || {}
|
1480
|
+
|
1481
|
+
# http body (model)
|
1482
|
+
post_body = opts[:body]
|
1483
|
+
|
1484
|
+
# return_type
|
1485
|
+
return_type = opts[:return_type] || 'EndpointsCollection'
|
1486
|
+
|
1487
|
+
# auth_names
|
1488
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
1489
|
+
|
1490
|
+
new_options = opts.merge(
|
1491
|
+
:header_params => header_params,
|
1492
|
+
:query_params => query_params,
|
1493
|
+
:form_params => form_params,
|
1494
|
+
:body => post_body,
|
1495
|
+
:auth_names => auth_names,
|
1496
|
+
:return_type => return_type
|
1497
|
+
)
|
1498
|
+
|
1499
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1500
|
+
if @api_client.config.debugging
|
1501
|
+
@api_client.config.logger.debug "API called: DefaultApi#list_source_endpoints\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1502
|
+
end
|
1503
|
+
return data, status_code, headers
|
1504
|
+
end
|
1505
|
+
|
1506
|
+
# List Sources for SourceType
|
1507
|
+
# Returns an array of Source objects
|
1508
|
+
# @param id [String] ID of the resource
|
1509
|
+
# @param [Hash] opts the optional parameters
|
1510
|
+
# @option opts [Integer] :limit The numbers of items to return per page. (default to 100)
|
1511
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0)
|
1512
|
+
# @option opts [Object] :filter Filter for querying collections.
|
1513
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
1514
|
+
# @return [SourcesCollection]
|
1515
|
+
def list_source_type_sources(id, opts = {})
|
1516
|
+
data, _status_code, _headers = list_source_type_sources_with_http_info(id, opts)
|
1517
|
+
data
|
1518
|
+
end
|
1519
|
+
|
1520
|
+
# List Sources for SourceType
|
1521
|
+
# Returns an array of Source objects
|
1522
|
+
# @param id [String] ID of the resource
|
1523
|
+
# @param [Hash] opts the optional parameters
|
1524
|
+
# @option opts [Integer] :limit The numbers of items to return per page.
|
1525
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
|
1526
|
+
# @option opts [Object] :filter Filter for querying collections.
|
1527
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
1528
|
+
# @return [Array<(SourcesCollection, Integer, Hash)>] SourcesCollection data, response status code and response headers
|
1529
|
+
def list_source_type_sources_with_http_info(id, opts = {})
|
1530
|
+
if @api_client.config.debugging
|
1531
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list_source_type_sources ...'
|
1532
|
+
end
|
1533
|
+
# verify the required parameter 'id' is set
|
1534
|
+
if @api_client.config.client_side_validation && id.nil?
|
1535
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_type_sources"
|
1536
|
+
end
|
1537
|
+
pattern = Regexp.new(/^\d+$/)
|
1538
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
1539
|
+
fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_type_sources, must conform to the pattern #{pattern}."
|
1540
|
+
end
|
1541
|
+
|
1542
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
|
1543
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_type_sources, must be smaller than or equal to 1000.'
|
1544
|
+
end
|
1545
|
+
|
1546
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
1547
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_type_sources, must be greater than or equal to 1.'
|
1548
|
+
end
|
1549
|
+
|
1550
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
1551
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_type_sources, must be greater than or equal to 0.'
|
1552
|
+
end
|
1553
|
+
|
1554
|
+
# resource path
|
1555
|
+
local_var_path = '/source_types/{id}/sources'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1556
|
+
|
1557
|
+
# query parameters
|
1558
|
+
query_params = opts[:query_params] || {}
|
1559
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1560
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1561
|
+
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
1562
|
+
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
1563
|
+
|
1564
|
+
# header parameters
|
1565
|
+
header_params = opts[:header_params] || {}
|
1566
|
+
# HTTP header 'Accept' (if needed)
|
1567
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1568
|
+
|
1569
|
+
# form parameters
|
1570
|
+
form_params = opts[:form_params] || {}
|
1571
|
+
|
1572
|
+
# http body (model)
|
1573
|
+
post_body = opts[:body]
|
1574
|
+
|
1575
|
+
# return_type
|
1576
|
+
return_type = opts[:return_type] || 'SourcesCollection'
|
1577
|
+
|
1578
|
+
# auth_names
|
1579
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
1580
|
+
|
1581
|
+
new_options = opts.merge(
|
1582
|
+
:header_params => header_params,
|
1583
|
+
:query_params => query_params,
|
1584
|
+
:form_params => form_params,
|
1585
|
+
:body => post_body,
|
1586
|
+
:auth_names => auth_names,
|
1587
|
+
:return_type => return_type
|
1588
|
+
)
|
1589
|
+
|
1590
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1591
|
+
if @api_client.config.debugging
|
1592
|
+
@api_client.config.logger.debug "API called: DefaultApi#list_source_type_sources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1593
|
+
end
|
1594
|
+
return data, status_code, headers
|
1595
|
+
end
|
1596
|
+
|
1597
|
+
# List SourceTypes
|
1598
|
+
# Returns an array of SourceType objects
|
1599
|
+
# @param [Hash] opts the optional parameters
|
1600
|
+
# @option opts [Integer] :limit The numbers of items to return per page. (default to 100)
|
1601
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0)
|
1602
|
+
# @option opts [Object] :filter Filter for querying collections.
|
1603
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
1604
|
+
# @return [SourceTypesCollection]
|
1605
|
+
def list_source_types(opts = {})
|
1606
|
+
data, _status_code, _headers = list_source_types_with_http_info(opts)
|
1607
|
+
data
|
1608
|
+
end
|
1609
|
+
|
1610
|
+
# List SourceTypes
|
1611
|
+
# Returns an array of SourceType objects
|
1612
|
+
# @param [Hash] opts the optional parameters
|
1613
|
+
# @option opts [Integer] :limit The numbers of items to return per page.
|
1614
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
|
1615
|
+
# @option opts [Object] :filter Filter for querying collections.
|
1616
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
1617
|
+
# @return [Array<(SourceTypesCollection, Integer, Hash)>] SourceTypesCollection data, response status code and response headers
|
1618
|
+
def list_source_types_with_http_info(opts = {})
|
1619
|
+
if @api_client.config.debugging
|
1620
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list_source_types ...'
|
1621
|
+
end
|
1622
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
|
1623
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_types, must be smaller than or equal to 1000.'
|
1624
|
+
end
|
1625
|
+
|
1626
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
1627
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_types, must be greater than or equal to 1.'
|
1628
|
+
end
|
1629
|
+
|
1630
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
1631
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_types, must be greater than or equal to 0.'
|
1632
|
+
end
|
1633
|
+
|
1634
|
+
# resource path
|
1635
|
+
local_var_path = '/source_types'
|
1636
|
+
|
1637
|
+
# query parameters
|
1638
|
+
query_params = opts[:query_params] || {}
|
1639
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1640
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1641
|
+
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
1642
|
+
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
1643
|
+
|
1644
|
+
# header parameters
|
1645
|
+
header_params = opts[:header_params] || {}
|
1646
|
+
# HTTP header 'Accept' (if needed)
|
1647
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1648
|
+
|
1649
|
+
# form parameters
|
1650
|
+
form_params = opts[:form_params] || {}
|
1651
|
+
|
1652
|
+
# http body (model)
|
1653
|
+
post_body = opts[:body]
|
1654
|
+
|
1655
|
+
# return_type
|
1656
|
+
return_type = opts[:return_type] || 'SourceTypesCollection'
|
1657
|
+
|
1658
|
+
# auth_names
|
1659
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
1660
|
+
|
1661
|
+
new_options = opts.merge(
|
1662
|
+
:header_params => header_params,
|
1663
|
+
:query_params => query_params,
|
1664
|
+
:form_params => form_params,
|
1665
|
+
:body => post_body,
|
1666
|
+
:auth_names => auth_names,
|
1667
|
+
:return_type => return_type
|
1668
|
+
)
|
1669
|
+
|
1670
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1671
|
+
if @api_client.config.debugging
|
1672
|
+
@api_client.config.logger.debug "API called: DefaultApi#list_source_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1673
|
+
end
|
1674
|
+
return data, status_code, headers
|
1675
|
+
end
|
1676
|
+
|
1677
|
+
# List Sources
|
1678
|
+
# Returns an array of Source objects
|
1679
|
+
# @param [Hash] opts the optional parameters
|
1680
|
+
# @option opts [Integer] :limit The numbers of items to return per page. (default to 100)
|
1681
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0)
|
1682
|
+
# @option opts [Object] :filter Filter for querying collections.
|
1683
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
1684
|
+
# @return [SourcesCollection]
|
1685
|
+
def list_sources(opts = {})
|
1686
|
+
data, _status_code, _headers = list_sources_with_http_info(opts)
|
1687
|
+
data
|
1688
|
+
end
|
1689
|
+
|
1690
|
+
# List Sources
|
1691
|
+
# Returns an array of Source objects
|
1692
|
+
# @param [Hash] opts the optional parameters
|
1693
|
+
# @option opts [Integer] :limit The numbers of items to return per page.
|
1694
|
+
# @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
|
1695
|
+
# @option opts [Object] :filter Filter for querying collections.
|
1696
|
+
# @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
|
1697
|
+
# @return [Array<(SourcesCollection, Integer, Hash)>] SourcesCollection data, response status code and response headers
|
1698
|
+
def list_sources_with_http_info(opts = {})
|
1699
|
+
if @api_client.config.debugging
|
1700
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list_sources ...'
|
1701
|
+
end
|
1702
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
|
1703
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_sources, must be smaller than or equal to 1000.'
|
1704
|
+
end
|
1705
|
+
|
1706
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
1707
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_sources, must be greater than or equal to 1.'
|
1708
|
+
end
|
1709
|
+
|
1710
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
1711
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_sources, must be greater than or equal to 0.'
|
1712
|
+
end
|
1713
|
+
|
1714
|
+
# resource path
|
1715
|
+
local_var_path = '/sources'
|
1716
|
+
|
1717
|
+
# query parameters
|
1718
|
+
query_params = opts[:query_params] || {}
|
1719
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1720
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1721
|
+
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
1722
|
+
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
1723
|
+
|
1724
|
+
# header parameters
|
1725
|
+
header_params = opts[:header_params] || {}
|
1726
|
+
# HTTP header 'Accept' (if needed)
|
1727
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1728
|
+
|
1729
|
+
# form parameters
|
1730
|
+
form_params = opts[:form_params] || {}
|
1731
|
+
|
1732
|
+
# http body (model)
|
1733
|
+
post_body = opts[:body]
|
1734
|
+
|
1735
|
+
# return_type
|
1736
|
+
return_type = opts[:return_type] || 'SourcesCollection'
|
1737
|
+
|
1738
|
+
# auth_names
|
1739
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
1740
|
+
|
1741
|
+
new_options = opts.merge(
|
1742
|
+
:header_params => header_params,
|
1743
|
+
:query_params => query_params,
|
1744
|
+
:form_params => form_params,
|
1745
|
+
:body => post_body,
|
1746
|
+
:auth_names => auth_names,
|
1747
|
+
:return_type => return_type
|
1748
|
+
)
|
1749
|
+
|
1750
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1751
|
+
if @api_client.config.debugging
|
1752
|
+
@api_client.config.logger.debug "API called: DefaultApi#list_sources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1753
|
+
end
|
1754
|
+
return data, status_code, headers
|
1755
|
+
end
|
1756
|
+
|
1757
|
+
# Perform a GraphQL Query
|
1758
|
+
# Performs a GraphQL Query
|
1759
|
+
# @param graph_ql_request [GraphQLRequest] GraphQL Query Request
|
1760
|
+
# @param [Hash] opts the optional parameters
|
1761
|
+
# @return [GraphQLResponse]
|
1762
|
+
def post_graph_ql(graph_ql_request, opts = {})
|
1763
|
+
data, _status_code, _headers = post_graph_ql_with_http_info(graph_ql_request, opts)
|
1764
|
+
data
|
1765
|
+
end
|
1766
|
+
|
1767
|
+
# Perform a GraphQL Query
|
1768
|
+
# Performs a GraphQL Query
|
1769
|
+
# @param graph_ql_request [GraphQLRequest] GraphQL Query Request
|
1770
|
+
# @param [Hash] opts the optional parameters
|
1771
|
+
# @return [Array<(GraphQLResponse, Integer, Hash)>] GraphQLResponse data, response status code and response headers
|
1772
|
+
def post_graph_ql_with_http_info(graph_ql_request, opts = {})
|
1773
|
+
if @api_client.config.debugging
|
1774
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.post_graph_ql ...'
|
1775
|
+
end
|
1776
|
+
# verify the required parameter 'graph_ql_request' is set
|
1777
|
+
if @api_client.config.client_side_validation && graph_ql_request.nil?
|
1778
|
+
fail ArgumentError, "Missing the required parameter 'graph_ql_request' when calling DefaultApi.post_graph_ql"
|
1779
|
+
end
|
1780
|
+
# resource path
|
1781
|
+
local_var_path = '/graphql'
|
1782
|
+
|
1783
|
+
# query parameters
|
1784
|
+
query_params = opts[:query_params] || {}
|
1785
|
+
|
1786
|
+
# header parameters
|
1787
|
+
header_params = opts[:header_params] || {}
|
1788
|
+
# HTTP header 'Accept' (if needed)
|
1789
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1790
|
+
# HTTP header 'Content-Type'
|
1791
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1792
|
+
|
1793
|
+
# form parameters
|
1794
|
+
form_params = opts[:form_params] || {}
|
1795
|
+
|
1796
|
+
# http body (model)
|
1797
|
+
post_body = opts[:body] || @api_client.object_to_http_body(graph_ql_request)
|
1798
|
+
|
1799
|
+
# return_type
|
1800
|
+
return_type = opts[:return_type] || 'GraphQLResponse'
|
1801
|
+
|
1802
|
+
# auth_names
|
1803
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
1804
|
+
|
1805
|
+
new_options = opts.merge(
|
1806
|
+
:header_params => header_params,
|
1807
|
+
:query_params => query_params,
|
1808
|
+
:form_params => form_params,
|
1809
|
+
:body => post_body,
|
1810
|
+
:auth_names => auth_names,
|
1811
|
+
:return_type => return_type
|
1812
|
+
)
|
1813
|
+
|
1814
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1815
|
+
if @api_client.config.debugging
|
1816
|
+
@api_client.config.logger.debug "API called: DefaultApi#post_graph_ql\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1817
|
+
end
|
1818
|
+
return data, status_code, headers
|
1819
|
+
end
|
1820
|
+
|
1821
|
+
# Show an existing Application
|
1822
|
+
# Returns a Application object
|
1823
|
+
# @param id [String] ID of the resource
|
1824
|
+
# @param [Hash] opts the optional parameters
|
1825
|
+
# @return [Application]
|
1826
|
+
def show_application(id, opts = {})
|
1827
|
+
data, _status_code, _headers = show_application_with_http_info(id, opts)
|
1828
|
+
data
|
1829
|
+
end
|
1830
|
+
|
1831
|
+
# Show an existing Application
|
1832
|
+
# Returns a Application object
|
1833
|
+
# @param id [String] ID of the resource
|
1834
|
+
# @param [Hash] opts the optional parameters
|
1835
|
+
# @return [Array<(Application, Integer, Hash)>] Application data, response status code and response headers
|
1836
|
+
def show_application_with_http_info(id, opts = {})
|
1837
|
+
if @api_client.config.debugging
|
1838
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.show_application ...'
|
1839
|
+
end
|
1840
|
+
# verify the required parameter 'id' is set
|
1841
|
+
if @api_client.config.client_side_validation && id.nil?
|
1842
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_application"
|
1843
|
+
end
|
1844
|
+
pattern = Regexp.new(/^\d+$/)
|
1845
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
1846
|
+
fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_application, must conform to the pattern #{pattern}."
|
1847
|
+
end
|
1848
|
+
|
1849
|
+
# resource path
|
1850
|
+
local_var_path = '/applications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1851
|
+
|
1852
|
+
# query parameters
|
1853
|
+
query_params = opts[:query_params] || {}
|
1854
|
+
|
1855
|
+
# header parameters
|
1856
|
+
header_params = opts[:header_params] || {}
|
1857
|
+
# HTTP header 'Accept' (if needed)
|
1858
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1859
|
+
|
1860
|
+
# form parameters
|
1861
|
+
form_params = opts[:form_params] || {}
|
1862
|
+
|
1863
|
+
# http body (model)
|
1864
|
+
post_body = opts[:body]
|
1865
|
+
|
1866
|
+
# return_type
|
1867
|
+
return_type = opts[:return_type] || 'Application'
|
1868
|
+
|
1869
|
+
# auth_names
|
1870
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
1871
|
+
|
1872
|
+
new_options = opts.merge(
|
1873
|
+
:header_params => header_params,
|
1874
|
+
:query_params => query_params,
|
1875
|
+
:form_params => form_params,
|
1876
|
+
:body => post_body,
|
1877
|
+
:auth_names => auth_names,
|
1878
|
+
:return_type => return_type
|
1879
|
+
)
|
1880
|
+
|
1881
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1882
|
+
if @api_client.config.debugging
|
1883
|
+
@api_client.config.logger.debug "API called: DefaultApi#show_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1884
|
+
end
|
1885
|
+
return data, status_code, headers
|
1886
|
+
end
|
1887
|
+
|
1888
|
+
# Show an existing ApplicationType
|
1889
|
+
# Returns a ApplicationType object
|
1890
|
+
# @param id [String] ID of the resource
|
1891
|
+
# @param [Hash] opts the optional parameters
|
1892
|
+
# @return [ApplicationType]
|
1893
|
+
def show_application_type(id, opts = {})
|
1894
|
+
data, _status_code, _headers = show_application_type_with_http_info(id, opts)
|
1895
|
+
data
|
1896
|
+
end
|
1897
|
+
|
1898
|
+
# Show an existing ApplicationType
|
1899
|
+
# Returns a ApplicationType object
|
1900
|
+
# @param id [String] ID of the resource
|
1901
|
+
# @param [Hash] opts the optional parameters
|
1902
|
+
# @return [Array<(ApplicationType, Integer, Hash)>] ApplicationType data, response status code and response headers
|
1903
|
+
def show_application_type_with_http_info(id, opts = {})
|
1904
|
+
if @api_client.config.debugging
|
1905
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.show_application_type ...'
|
1906
|
+
end
|
1907
|
+
# verify the required parameter 'id' is set
|
1908
|
+
if @api_client.config.client_side_validation && id.nil?
|
1909
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_application_type"
|
1910
|
+
end
|
1911
|
+
pattern = Regexp.new(/^\d+$/)
|
1912
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
1913
|
+
fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_application_type, must conform to the pattern #{pattern}."
|
1914
|
+
end
|
1915
|
+
|
1916
|
+
# resource path
|
1917
|
+
local_var_path = '/application_types/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1918
|
+
|
1919
|
+
# query parameters
|
1920
|
+
query_params = opts[:query_params] || {}
|
1921
|
+
|
1922
|
+
# header parameters
|
1923
|
+
header_params = opts[:header_params] || {}
|
1924
|
+
# HTTP header 'Accept' (if needed)
|
1925
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1926
|
+
|
1927
|
+
# form parameters
|
1928
|
+
form_params = opts[:form_params] || {}
|
1929
|
+
|
1930
|
+
# http body (model)
|
1931
|
+
post_body = opts[:body]
|
1932
|
+
|
1933
|
+
# return_type
|
1934
|
+
return_type = opts[:return_type] || 'ApplicationType'
|
1935
|
+
|
1936
|
+
# auth_names
|
1937
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
1938
|
+
|
1939
|
+
new_options = opts.merge(
|
1940
|
+
:header_params => header_params,
|
1941
|
+
:query_params => query_params,
|
1942
|
+
:form_params => form_params,
|
1943
|
+
:body => post_body,
|
1944
|
+
:auth_names => auth_names,
|
1945
|
+
:return_type => return_type
|
1946
|
+
)
|
1947
|
+
|
1948
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1949
|
+
if @api_client.config.debugging
|
1950
|
+
@api_client.config.logger.debug "API called: DefaultApi#show_application_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1951
|
+
end
|
1952
|
+
return data, status_code, headers
|
1953
|
+
end
|
1954
|
+
|
1955
|
+
# Show an existing Authentication
|
1956
|
+
# Returns a Authentication object
|
1957
|
+
# @param id [String] ID of the resource
|
1958
|
+
# @param [Hash] opts the optional parameters
|
1959
|
+
# @return [Authentication]
|
1960
|
+
def show_authentication(id, opts = {})
|
1961
|
+
data, _status_code, _headers = show_authentication_with_http_info(id, opts)
|
1962
|
+
data
|
1963
|
+
end
|
1964
|
+
|
1965
|
+
# Show an existing Authentication
|
1966
|
+
# Returns a Authentication object
|
1967
|
+
# @param id [String] ID of the resource
|
1968
|
+
# @param [Hash] opts the optional parameters
|
1969
|
+
# @return [Array<(Authentication, Integer, Hash)>] Authentication data, response status code and response headers
|
1970
|
+
def show_authentication_with_http_info(id, opts = {})
|
1971
|
+
if @api_client.config.debugging
|
1972
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.show_authentication ...'
|
1973
|
+
end
|
1974
|
+
# verify the required parameter 'id' is set
|
1975
|
+
if @api_client.config.client_side_validation && id.nil?
|
1976
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_authentication"
|
1977
|
+
end
|
1978
|
+
pattern = Regexp.new(/^\d+$/)
|
1979
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
1980
|
+
fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_authentication, must conform to the pattern #{pattern}."
|
1981
|
+
end
|
1982
|
+
|
1983
|
+
# resource path
|
1984
|
+
local_var_path = '/authentications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1985
|
+
|
1986
|
+
# query parameters
|
1987
|
+
query_params = opts[:query_params] || {}
|
1988
|
+
|
1989
|
+
# header parameters
|
1990
|
+
header_params = opts[:header_params] || {}
|
1991
|
+
# HTTP header 'Accept' (if needed)
|
1992
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1993
|
+
|
1994
|
+
# form parameters
|
1995
|
+
form_params = opts[:form_params] || {}
|
1996
|
+
|
1997
|
+
# http body (model)
|
1998
|
+
post_body = opts[:body]
|
1999
|
+
|
2000
|
+
# return_type
|
2001
|
+
return_type = opts[:return_type] || 'Authentication'
|
2002
|
+
|
2003
|
+
# auth_names
|
2004
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
2005
|
+
|
2006
|
+
new_options = opts.merge(
|
2007
|
+
:header_params => header_params,
|
2008
|
+
:query_params => query_params,
|
2009
|
+
:form_params => form_params,
|
2010
|
+
:body => post_body,
|
2011
|
+
:auth_names => auth_names,
|
2012
|
+
:return_type => return_type
|
2013
|
+
)
|
2014
|
+
|
2015
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2016
|
+
if @api_client.config.debugging
|
2017
|
+
@api_client.config.logger.debug "API called: DefaultApi#show_authentication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2018
|
+
end
|
2019
|
+
return data, status_code, headers
|
2020
|
+
end
|
2021
|
+
|
2022
|
+
# Show an existing Endpoint
|
2023
|
+
# Returns a Endpoint object
|
2024
|
+
# @param id [String] ID of the resource
|
2025
|
+
# @param [Hash] opts the optional parameters
|
2026
|
+
# @return [Endpoint]
|
2027
|
+
def show_endpoint(id, opts = {})
|
2028
|
+
data, _status_code, _headers = show_endpoint_with_http_info(id, opts)
|
2029
|
+
data
|
2030
|
+
end
|
2031
|
+
|
2032
|
+
# Show an existing Endpoint
|
2033
|
+
# Returns a Endpoint object
|
2034
|
+
# @param id [String] ID of the resource
|
2035
|
+
# @param [Hash] opts the optional parameters
|
2036
|
+
# @return [Array<(Endpoint, Integer, Hash)>] Endpoint data, response status code and response headers
|
2037
|
+
def show_endpoint_with_http_info(id, opts = {})
|
2038
|
+
if @api_client.config.debugging
|
2039
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.show_endpoint ...'
|
2040
|
+
end
|
2041
|
+
# verify the required parameter 'id' is set
|
2042
|
+
if @api_client.config.client_side_validation && id.nil?
|
2043
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_endpoint"
|
2044
|
+
end
|
2045
|
+
pattern = Regexp.new(/^\d+$/)
|
2046
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
2047
|
+
fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_endpoint, must conform to the pattern #{pattern}."
|
2048
|
+
end
|
2049
|
+
|
2050
|
+
# resource path
|
2051
|
+
local_var_path = '/endpoints/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
2052
|
+
|
2053
|
+
# query parameters
|
2054
|
+
query_params = opts[:query_params] || {}
|
2055
|
+
|
2056
|
+
# header parameters
|
2057
|
+
header_params = opts[:header_params] || {}
|
2058
|
+
# HTTP header 'Accept' (if needed)
|
2059
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2060
|
+
|
2061
|
+
# form parameters
|
2062
|
+
form_params = opts[:form_params] || {}
|
2063
|
+
|
2064
|
+
# http body (model)
|
2065
|
+
post_body = opts[:body]
|
2066
|
+
|
2067
|
+
# return_type
|
2068
|
+
return_type = opts[:return_type] || 'Endpoint'
|
2069
|
+
|
2070
|
+
# auth_names
|
2071
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
2072
|
+
|
2073
|
+
new_options = opts.merge(
|
2074
|
+
:header_params => header_params,
|
2075
|
+
:query_params => query_params,
|
2076
|
+
:form_params => form_params,
|
2077
|
+
:body => post_body,
|
2078
|
+
:auth_names => auth_names,
|
2079
|
+
:return_type => return_type
|
2080
|
+
)
|
2081
|
+
|
2082
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2083
|
+
if @api_client.config.debugging
|
2084
|
+
@api_client.config.logger.debug "API called: DefaultApi#show_endpoint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2085
|
+
end
|
2086
|
+
return data, status_code, headers
|
2087
|
+
end
|
2088
|
+
|
2089
|
+
# Show an existing Source
|
2090
|
+
# Returns a Source object
|
2091
|
+
# @param id [String] ID of the resource
|
2092
|
+
# @param [Hash] opts the optional parameters
|
2093
|
+
# @return [Source]
|
2094
|
+
def show_source(id, opts = {})
|
2095
|
+
data, _status_code, _headers = show_source_with_http_info(id, opts)
|
2096
|
+
data
|
2097
|
+
end
|
2098
|
+
|
2099
|
+
# Show an existing Source
|
2100
|
+
# Returns a Source object
|
2101
|
+
# @param id [String] ID of the resource
|
2102
|
+
# @param [Hash] opts the optional parameters
|
2103
|
+
# @return [Array<(Source, Integer, Hash)>] Source data, response status code and response headers
|
2104
|
+
def show_source_with_http_info(id, opts = {})
|
2105
|
+
if @api_client.config.debugging
|
2106
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.show_source ...'
|
2107
|
+
end
|
2108
|
+
# verify the required parameter 'id' is set
|
2109
|
+
if @api_client.config.client_side_validation && id.nil?
|
2110
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_source"
|
2111
|
+
end
|
2112
|
+
pattern = Regexp.new(/^\d+$/)
|
2113
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
2114
|
+
fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_source, must conform to the pattern #{pattern}."
|
2115
|
+
end
|
2116
|
+
|
2117
|
+
# resource path
|
2118
|
+
local_var_path = '/sources/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
2119
|
+
|
2120
|
+
# query parameters
|
2121
|
+
query_params = opts[:query_params] || {}
|
2122
|
+
|
2123
|
+
# header parameters
|
2124
|
+
header_params = opts[:header_params] || {}
|
2125
|
+
# HTTP header 'Accept' (if needed)
|
2126
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2127
|
+
|
2128
|
+
# form parameters
|
2129
|
+
form_params = opts[:form_params] || {}
|
2130
|
+
|
2131
|
+
# http body (model)
|
2132
|
+
post_body = opts[:body]
|
2133
|
+
|
2134
|
+
# return_type
|
2135
|
+
return_type = opts[:return_type] || 'Source'
|
2136
|
+
|
2137
|
+
# auth_names
|
2138
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
2139
|
+
|
2140
|
+
new_options = opts.merge(
|
2141
|
+
:header_params => header_params,
|
2142
|
+
:query_params => query_params,
|
2143
|
+
:form_params => form_params,
|
2144
|
+
:body => post_body,
|
2145
|
+
:auth_names => auth_names,
|
2146
|
+
:return_type => return_type
|
2147
|
+
)
|
2148
|
+
|
2149
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2150
|
+
if @api_client.config.debugging
|
2151
|
+
@api_client.config.logger.debug "API called: DefaultApi#show_source\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2152
|
+
end
|
2153
|
+
return data, status_code, headers
|
2154
|
+
end
|
2155
|
+
|
2156
|
+
# Show an existing SourceType
|
2157
|
+
# Returns a SourceType object
|
2158
|
+
# @param id [String] ID of the resource
|
2159
|
+
# @param [Hash] opts the optional parameters
|
2160
|
+
# @return [SourceType]
|
2161
|
+
def show_source_type(id, opts = {})
|
2162
|
+
data, _status_code, _headers = show_source_type_with_http_info(id, opts)
|
2163
|
+
data
|
2164
|
+
end
|
2165
|
+
|
2166
|
+
# Show an existing SourceType
|
2167
|
+
# Returns a SourceType object
|
2168
|
+
# @param id [String] ID of the resource
|
2169
|
+
# @param [Hash] opts the optional parameters
|
2170
|
+
# @return [Array<(SourceType, Integer, Hash)>] SourceType data, response status code and response headers
|
2171
|
+
def show_source_type_with_http_info(id, opts = {})
|
2172
|
+
if @api_client.config.debugging
|
2173
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.show_source_type ...'
|
2174
|
+
end
|
2175
|
+
# verify the required parameter 'id' is set
|
2176
|
+
if @api_client.config.client_side_validation && id.nil?
|
2177
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_source_type"
|
2178
|
+
end
|
2179
|
+
pattern = Regexp.new(/^\d+$/)
|
2180
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
2181
|
+
fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_source_type, must conform to the pattern #{pattern}."
|
2182
|
+
end
|
2183
|
+
|
2184
|
+
# resource path
|
2185
|
+
local_var_path = '/source_types/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
2186
|
+
|
2187
|
+
# query parameters
|
2188
|
+
query_params = opts[:query_params] || {}
|
2189
|
+
|
2190
|
+
# header parameters
|
2191
|
+
header_params = opts[:header_params] || {}
|
2192
|
+
# HTTP header 'Accept' (if needed)
|
2193
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2194
|
+
|
2195
|
+
# form parameters
|
2196
|
+
form_params = opts[:form_params] || {}
|
2197
|
+
|
2198
|
+
# http body (model)
|
2199
|
+
post_body = opts[:body]
|
2200
|
+
|
2201
|
+
# return_type
|
2202
|
+
return_type = opts[:return_type] || 'SourceType'
|
2203
|
+
|
2204
|
+
# auth_names
|
2205
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
2206
|
+
|
2207
|
+
new_options = opts.merge(
|
2208
|
+
:header_params => header_params,
|
2209
|
+
:query_params => query_params,
|
2210
|
+
:form_params => form_params,
|
2211
|
+
:body => post_body,
|
2212
|
+
:auth_names => auth_names,
|
2213
|
+
:return_type => return_type
|
2214
|
+
)
|
2215
|
+
|
2216
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2217
|
+
if @api_client.config.debugging
|
2218
|
+
@api_client.config.logger.debug "API called: DefaultApi#show_source_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2219
|
+
end
|
2220
|
+
return data, status_code, headers
|
2221
|
+
end
|
2222
|
+
|
2223
|
+
# Update an existing Application
|
2224
|
+
# Updates a Application object
|
2225
|
+
# @param id [String] ID of the resource
|
2226
|
+
# @param application [Application] Application attributes to update
|
2227
|
+
# @param [Hash] opts the optional parameters
|
2228
|
+
# @return [nil]
|
2229
|
+
def update_application(id, application, opts = {})
|
2230
|
+
update_application_with_http_info(id, application, opts)
|
2231
|
+
nil
|
2232
|
+
end
|
2233
|
+
|
2234
|
+
# Update an existing Application
|
2235
|
+
# Updates a Application object
|
2236
|
+
# @param id [String] ID of the resource
|
2237
|
+
# @param application [Application] Application attributes to update
|
2238
|
+
# @param [Hash] opts the optional parameters
|
2239
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
2240
|
+
def update_application_with_http_info(id, application, opts = {})
|
2241
|
+
if @api_client.config.debugging
|
2242
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.update_application ...'
|
2243
|
+
end
|
2244
|
+
# verify the required parameter 'id' is set
|
2245
|
+
if @api_client.config.client_side_validation && id.nil?
|
2246
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.update_application"
|
2247
|
+
end
|
2248
|
+
pattern = Regexp.new(/^\d+$/)
|
2249
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
2250
|
+
fail ArgumentError, "invalid value for 'id' when calling DefaultApi.update_application, must conform to the pattern #{pattern}."
|
2251
|
+
end
|
2252
|
+
|
2253
|
+
# verify the required parameter 'application' is set
|
2254
|
+
if @api_client.config.client_side_validation && application.nil?
|
2255
|
+
fail ArgumentError, "Missing the required parameter 'application' when calling DefaultApi.update_application"
|
2256
|
+
end
|
2257
|
+
# resource path
|
2258
|
+
local_var_path = '/applications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
2259
|
+
|
2260
|
+
# query parameters
|
2261
|
+
query_params = opts[:query_params] || {}
|
2262
|
+
|
2263
|
+
# header parameters
|
2264
|
+
header_params = opts[:header_params] || {}
|
2265
|
+
# HTTP header 'Accept' (if needed)
|
2266
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2267
|
+
# HTTP header 'Content-Type'
|
2268
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2269
|
+
|
2270
|
+
# form parameters
|
2271
|
+
form_params = opts[:form_params] || {}
|
2272
|
+
|
2273
|
+
# http body (model)
|
2274
|
+
post_body = opts[:body] || @api_client.object_to_http_body(application)
|
2275
|
+
|
2276
|
+
# return_type
|
2277
|
+
return_type = opts[:return_type]
|
2278
|
+
|
2279
|
+
# auth_names
|
2280
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
2281
|
+
|
2282
|
+
new_options = opts.merge(
|
2283
|
+
:header_params => header_params,
|
2284
|
+
:query_params => query_params,
|
2285
|
+
:form_params => form_params,
|
2286
|
+
:body => post_body,
|
2287
|
+
:auth_names => auth_names,
|
2288
|
+
:return_type => return_type
|
2289
|
+
)
|
2290
|
+
|
2291
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
2292
|
+
if @api_client.config.debugging
|
2293
|
+
@api_client.config.logger.debug "API called: DefaultApi#update_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2294
|
+
end
|
2295
|
+
return data, status_code, headers
|
2296
|
+
end
|
2297
|
+
|
2298
|
+
# Update an existing Authentication
|
2299
|
+
# Updates a Authentication object
|
2300
|
+
# @param id [String] ID of the resource
|
2301
|
+
# @param authentication [Authentication] Authentication attributes to update
|
2302
|
+
# @param [Hash] opts the optional parameters
|
2303
|
+
# @return [nil]
|
2304
|
+
def update_authentication(id, authentication, opts = {})
|
2305
|
+
update_authentication_with_http_info(id, authentication, opts)
|
2306
|
+
nil
|
2307
|
+
end
|
2308
|
+
|
2309
|
+
# Update an existing Authentication
|
2310
|
+
# Updates a Authentication object
|
2311
|
+
# @param id [String] ID of the resource
|
2312
|
+
# @param authentication [Authentication] Authentication attributes to update
|
2313
|
+
# @param [Hash] opts the optional parameters
|
2314
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
2315
|
+
def update_authentication_with_http_info(id, authentication, opts = {})
|
2316
|
+
if @api_client.config.debugging
|
2317
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.update_authentication ...'
|
2318
|
+
end
|
2319
|
+
# verify the required parameter 'id' is set
|
2320
|
+
if @api_client.config.client_side_validation && id.nil?
|
2321
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.update_authentication"
|
2322
|
+
end
|
2323
|
+
pattern = Regexp.new(/^\d+$/)
|
2324
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
2325
|
+
fail ArgumentError, "invalid value for 'id' when calling DefaultApi.update_authentication, must conform to the pattern #{pattern}."
|
2326
|
+
end
|
2327
|
+
|
2328
|
+
# verify the required parameter 'authentication' is set
|
2329
|
+
if @api_client.config.client_side_validation && authentication.nil?
|
2330
|
+
fail ArgumentError, "Missing the required parameter 'authentication' when calling DefaultApi.update_authentication"
|
2331
|
+
end
|
2332
|
+
# resource path
|
2333
|
+
local_var_path = '/authentications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
2334
|
+
|
2335
|
+
# query parameters
|
2336
|
+
query_params = opts[:query_params] || {}
|
2337
|
+
|
2338
|
+
# header parameters
|
2339
|
+
header_params = opts[:header_params] || {}
|
2340
|
+
# HTTP header 'Accept' (if needed)
|
2341
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2342
|
+
# HTTP header 'Content-Type'
|
2343
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2344
|
+
|
2345
|
+
# form parameters
|
2346
|
+
form_params = opts[:form_params] || {}
|
2347
|
+
|
2348
|
+
# http body (model)
|
2349
|
+
post_body = opts[:body] || @api_client.object_to_http_body(authentication)
|
2350
|
+
|
2351
|
+
# return_type
|
2352
|
+
return_type = opts[:return_type]
|
2353
|
+
|
2354
|
+
# auth_names
|
2355
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
2356
|
+
|
2357
|
+
new_options = opts.merge(
|
2358
|
+
:header_params => header_params,
|
2359
|
+
:query_params => query_params,
|
2360
|
+
:form_params => form_params,
|
2361
|
+
:body => post_body,
|
2362
|
+
:auth_names => auth_names,
|
2363
|
+
:return_type => return_type
|
2364
|
+
)
|
2365
|
+
|
2366
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
2367
|
+
if @api_client.config.debugging
|
2368
|
+
@api_client.config.logger.debug "API called: DefaultApi#update_authentication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2369
|
+
end
|
2370
|
+
return data, status_code, headers
|
2371
|
+
end
|
2372
|
+
|
2373
|
+
# Update an existing Endpoint
|
2374
|
+
# Updates a Endpoint object
|
2375
|
+
# @param id [String] ID of the resource
|
2376
|
+
# @param endpoint [Endpoint] Endpoint attributes to update
|
2377
|
+
# @param [Hash] opts the optional parameters
|
2378
|
+
# @return [nil]
|
2379
|
+
def update_endpoint(id, endpoint, opts = {})
|
2380
|
+
update_endpoint_with_http_info(id, endpoint, opts)
|
2381
|
+
nil
|
2382
|
+
end
|
2383
|
+
|
2384
|
+
# Update an existing Endpoint
|
2385
|
+
# Updates a Endpoint object
|
2386
|
+
# @param id [String] ID of the resource
|
2387
|
+
# @param endpoint [Endpoint] Endpoint attributes to update
|
2388
|
+
# @param [Hash] opts the optional parameters
|
2389
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
2390
|
+
def update_endpoint_with_http_info(id, endpoint, opts = {})
|
2391
|
+
if @api_client.config.debugging
|
2392
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.update_endpoint ...'
|
2393
|
+
end
|
2394
|
+
# verify the required parameter 'id' is set
|
2395
|
+
if @api_client.config.client_side_validation && id.nil?
|
2396
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.update_endpoint"
|
2397
|
+
end
|
2398
|
+
pattern = Regexp.new(/^\d+$/)
|
2399
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
2400
|
+
fail ArgumentError, "invalid value for 'id' when calling DefaultApi.update_endpoint, must conform to the pattern #{pattern}."
|
2401
|
+
end
|
2402
|
+
|
2403
|
+
# verify the required parameter 'endpoint' is set
|
2404
|
+
if @api_client.config.client_side_validation && endpoint.nil?
|
2405
|
+
fail ArgumentError, "Missing the required parameter 'endpoint' when calling DefaultApi.update_endpoint"
|
2406
|
+
end
|
2407
|
+
# resource path
|
2408
|
+
local_var_path = '/endpoints/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
2409
|
+
|
2410
|
+
# query parameters
|
2411
|
+
query_params = opts[:query_params] || {}
|
2412
|
+
|
2413
|
+
# header parameters
|
2414
|
+
header_params = opts[:header_params] || {}
|
2415
|
+
# HTTP header 'Accept' (if needed)
|
2416
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2417
|
+
# HTTP header 'Content-Type'
|
2418
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2419
|
+
|
2420
|
+
# form parameters
|
2421
|
+
form_params = opts[:form_params] || {}
|
2422
|
+
|
2423
|
+
# http body (model)
|
2424
|
+
post_body = opts[:body] || @api_client.object_to_http_body(endpoint)
|
2425
|
+
|
2426
|
+
# return_type
|
2427
|
+
return_type = opts[:return_type]
|
2428
|
+
|
2429
|
+
# auth_names
|
2430
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
2431
|
+
|
2432
|
+
new_options = opts.merge(
|
2433
|
+
:header_params => header_params,
|
2434
|
+
:query_params => query_params,
|
2435
|
+
:form_params => form_params,
|
2436
|
+
:body => post_body,
|
2437
|
+
:auth_names => auth_names,
|
2438
|
+
:return_type => return_type
|
2439
|
+
)
|
2440
|
+
|
2441
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
2442
|
+
if @api_client.config.debugging
|
2443
|
+
@api_client.config.logger.debug "API called: DefaultApi#update_endpoint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2444
|
+
end
|
2445
|
+
return data, status_code, headers
|
2446
|
+
end
|
2447
|
+
|
2448
|
+
# Update an existing Source
|
2449
|
+
# Updates a Source object
|
2450
|
+
# @param id [String] ID of the resource
|
2451
|
+
# @param source [Source] Source attributes to update
|
2452
|
+
# @param [Hash] opts the optional parameters
|
2453
|
+
# @return [nil]
|
2454
|
+
def update_source(id, source, opts = {})
|
2455
|
+
update_source_with_http_info(id, source, opts)
|
2456
|
+
nil
|
2457
|
+
end
|
2458
|
+
|
2459
|
+
# Update an existing Source
|
2460
|
+
# Updates a Source object
|
2461
|
+
# @param id [String] ID of the resource
|
2462
|
+
# @param source [Source] Source attributes to update
|
2463
|
+
# @param [Hash] opts the optional parameters
|
2464
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
2465
|
+
def update_source_with_http_info(id, source, opts = {})
|
2466
|
+
if @api_client.config.debugging
|
2467
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.update_source ...'
|
2468
|
+
end
|
2469
|
+
# verify the required parameter 'id' is set
|
2470
|
+
if @api_client.config.client_side_validation && id.nil?
|
2471
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.update_source"
|
2472
|
+
end
|
2473
|
+
pattern = Regexp.new(/^\d+$/)
|
2474
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
2475
|
+
fail ArgumentError, "invalid value for 'id' when calling DefaultApi.update_source, must conform to the pattern #{pattern}."
|
2476
|
+
end
|
2477
|
+
|
2478
|
+
# verify the required parameter 'source' is set
|
2479
|
+
if @api_client.config.client_side_validation && source.nil?
|
2480
|
+
fail ArgumentError, "Missing the required parameter 'source' when calling DefaultApi.update_source"
|
2481
|
+
end
|
2482
|
+
# resource path
|
2483
|
+
local_var_path = '/sources/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
2484
|
+
|
2485
|
+
# query parameters
|
2486
|
+
query_params = opts[:query_params] || {}
|
2487
|
+
|
2488
|
+
# header parameters
|
2489
|
+
header_params = opts[:header_params] || {}
|
2490
|
+
# HTTP header 'Accept' (if needed)
|
2491
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2492
|
+
# HTTP header 'Content-Type'
|
2493
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2494
|
+
|
2495
|
+
# form parameters
|
2496
|
+
form_params = opts[:form_params] || {}
|
2497
|
+
|
2498
|
+
# http body (model)
|
2499
|
+
post_body = opts[:body] || @api_client.object_to_http_body(source)
|
2500
|
+
|
2501
|
+
# return_type
|
2502
|
+
return_type = opts[:return_type]
|
2503
|
+
|
2504
|
+
# auth_names
|
2505
|
+
auth_names = opts[:auth_names] || ['UserSecurity']
|
2506
|
+
|
2507
|
+
new_options = opts.merge(
|
2508
|
+
:header_params => header_params,
|
2509
|
+
:query_params => query_params,
|
2510
|
+
:form_params => form_params,
|
2511
|
+
:body => post_body,
|
2512
|
+
:auth_names => auth_names,
|
2513
|
+
:return_type => return_type
|
2514
|
+
)
|
2515
|
+
|
2516
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
2517
|
+
if @api_client.config.debugging
|
2518
|
+
@api_client.config.logger.debug "API called: DefaultApi#update_source\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2519
|
+
end
|
2520
|
+
return data, status_code, headers
|
2521
|
+
end
|
2522
|
+
end
|
2523
|
+
end
|