pulp_maven_client 0.29.0 → 0.30.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 +4 -4
- data/README.md +4 -6
- data/docs/ContentArtifactApi.md +4 -0
- data/docs/ContentMavenIndexPageApi.md +4 -0
- data/docs/ContentMetadataApi.md +4 -0
- data/docs/ContentPackageApi.md +4 -0
- data/docs/RepositoriesMavenApi.md +4 -77
- data/lib/pulp_maven_client/api/content_artifact_api.rb +6 -0
- data/lib/pulp_maven_client/api/content_maven_index_page_api.rb +6 -0
- data/lib/pulp_maven_client/api/content_metadata_api.rb +6 -0
- data/lib/pulp_maven_client/api/content_package_api.rb +6 -0
- data/lib/pulp_maven_client/api/repositories_maven_api.rb +6 -77
- data/lib/pulp_maven_client/version.rb +1 -1
- data/lib/pulp_maven_client.rb +0 -1
- data/spec/api/content_artifact_api_spec.rb +2 -0
- data/spec/api/content_maven_index_page_api_spec.rb +2 -0
- data/spec/api/content_metadata_api_spec.rb +2 -0
- data/spec/api/content_package_api_spec.rb +2 -0
- data/spec/api/repositories_maven_api_spec.rb +2 -14
- metadata +2 -6
- data/docs/RepositoryAddCachedContent.md +0 -18
- data/lib/pulp_maven_client/models/repository_add_cached_content.rb +0 -216
- data/spec/models/repository_add_cached_content_spec.rb +0 -36
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4c564a4c965f4b3fd239919c62e3f935a8d419e621ffb5cf4bc5d36886d319aa
|
|
4
|
+
data.tar.gz: 0b2adbd27fec1c5495fb418703a86bf68d74dc393f204f8e87bcf859d51581be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 03260b84b0a5d1f8b90d75a1b8071ddda640f757234b60aa97e0e113c5fec08ab3ef43556f33c4643b764ab15defb79de084656bf9bca95482411e158c0975fb
|
|
7
|
+
data.tar.gz: ce46dec1b7b9194d65533241450aa9c291af8b7f2a923a9ddbfa98a4851879d69ce483c72272419fc00c30a1fc50b0c7cd91a8b42b23ed7fb54b7db7194ab893
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
9
|
- API version: v3
|
|
10
|
-
- Package version: 0.
|
|
10
|
+
- Package version: 0.30.0
|
|
11
11
|
- Generator version: 7.10.0
|
|
12
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
13
13
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
|
@@ -25,16 +25,16 @@ gem build pulp_maven_client.gemspec
|
|
|
25
25
|
Then either install the gem locally:
|
|
26
26
|
|
|
27
27
|
```shell
|
|
28
|
-
gem install ./pulp_maven_client-0.
|
|
28
|
+
gem install ./pulp_maven_client-0.30.0.gem
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
(for development, run `gem install --dev ./pulp_maven_client-0.
|
|
31
|
+
(for development, run `gem install --dev ./pulp_maven_client-0.30.0.gem` to install the development dependencies)
|
|
32
32
|
|
|
33
33
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
34
34
|
|
|
35
35
|
Finally add this to the Gemfile:
|
|
36
36
|
|
|
37
|
-
gem 'pulp_maven_client', '~> 0.
|
|
37
|
+
gem 'pulp_maven_client', '~> 0.30.0'
|
|
38
38
|
|
|
39
39
|
### Install from Git
|
|
40
40
|
|
|
@@ -143,7 +143,6 @@ Class | Method | HTTP request | Description
|
|
|
143
143
|
*PulpMavenClient::RemotesMavenApi* | [**set_label**](docs/RemotesMavenApi.md#set_label) | **POST** {maven_maven_remote_href}set_label/ | Set a label
|
|
144
144
|
*PulpMavenClient::RemotesMavenApi* | [**unset_label**](docs/RemotesMavenApi.md#unset_label) | **POST** {maven_maven_remote_href}unset_label/ | Unset a label
|
|
145
145
|
*PulpMavenClient::RemotesMavenApi* | [**update**](docs/RemotesMavenApi.md#update) | **PUT** {maven_maven_remote_href} | Update a maven remote
|
|
146
|
-
*PulpMavenClient::RepositoriesMavenApi* | [**add_cached_content**](docs/RepositoriesMavenApi.md#add_cached_content) | **POST** {maven_maven_repository_href}add_cached_content/ | Add cached content
|
|
147
146
|
*PulpMavenClient::RepositoriesMavenApi* | [**add_role**](docs/RepositoriesMavenApi.md#add_role) | **POST** {maven_maven_repository_href}add_role/ | Add a role
|
|
148
147
|
*PulpMavenClient::RepositoriesMavenApi* | [**create**](docs/RepositoriesMavenApi.md#create) | **POST** /pulp/api/v3/repositories/maven/maven/ | Create a maven repository
|
|
149
148
|
*PulpMavenClient::RepositoriesMavenApi* | [**delete**](docs/RepositoriesMavenApi.md#delete) | **DELETE** {maven_maven_repository_href} | Delete a maven repository
|
|
@@ -205,7 +204,6 @@ Class | Method | HTTP request | Description
|
|
|
205
204
|
- [PulpMavenClient::RemoteNetworkConfig](docs/RemoteNetworkConfig.md)
|
|
206
205
|
- [PulpMavenClient::RemoteNetworkConfigResponse](docs/RemoteNetworkConfigResponse.md)
|
|
207
206
|
- [PulpMavenClient::Repair](docs/Repair.md)
|
|
208
|
-
- [PulpMavenClient::RepositoryAddCachedContent](docs/RepositoryAddCachedContent.md)
|
|
209
207
|
- [PulpMavenClient::RepositoryAddRemoveContent](docs/RepositoryAddRemoveContent.md)
|
|
210
208
|
- [PulpMavenClient::RepositoryVersionResponse](docs/RepositoryVersionResponse.md)
|
|
211
209
|
- [PulpMavenClient::SetLabel](docs/SetLabel.md)
|
data/docs/ContentArtifactApi.md
CHANGED
|
@@ -125,6 +125,7 @@ end
|
|
|
125
125
|
api_instance = PulpMavenClient::ContentArtifactApi.new
|
|
126
126
|
opts = {
|
|
127
127
|
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
|
128
|
+
added_between: ['inner_example'], # Array<String> |
|
|
128
129
|
artifact_id: 'artifact_id_example', # String | Filter results where artifact_id matches value
|
|
129
130
|
filename: 'filename_example', # String | Filter results where filename matches value
|
|
130
131
|
group_id: 'group_id_example', # String | Filter results where group_id matches value
|
|
@@ -137,6 +138,7 @@ opts = {
|
|
|
137
138
|
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
|
138
139
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
|
139
140
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
|
141
|
+
removed_between: ['inner_example'], # Array<String> |
|
|
140
142
|
repository_version: 'repository_version_example', # String |
|
|
141
143
|
repository_version_added: 'repository_version_added_example', # String |
|
|
142
144
|
repository_version_removed: 'repository_version_removed_example', # String |
|
|
@@ -177,6 +179,7 @@ end
|
|
|
177
179
|
| Name | Type | Description | Notes |
|
|
178
180
|
| ---- | ---- | ----------- | ----- |
|
|
179
181
|
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
182
|
+
| **added_between** | [**Array<String>**](String.md) | | [optional] |
|
|
180
183
|
| **artifact_id** | **String** | Filter results where artifact_id matches value | [optional] |
|
|
181
184
|
| **filename** | **String** | Filter results where filename matches value | [optional] |
|
|
182
185
|
| **group_id** | **String** | Filter results where group_id matches value | [optional] |
|
|
@@ -189,6 +192,7 @@ end
|
|
|
189
192
|
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
|
190
193
|
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
|
191
194
|
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
|
195
|
+
| **removed_between** | [**Array<String>**](String.md) | | [optional] |
|
|
192
196
|
| **repository_version** | **String** | | [optional] |
|
|
193
197
|
| **repository_version_added** | **String** | | [optional] |
|
|
194
198
|
| **repository_version_removed** | **String** | | [optional] |
|
|
@@ -33,6 +33,7 @@ end
|
|
|
33
33
|
api_instance = PulpMavenClient::ContentMavenIndexPageApi.new
|
|
34
34
|
opts = {
|
|
35
35
|
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
|
36
|
+
added_between: ['inner_example'], # Array<String> |
|
|
36
37
|
limit: 56, # Integer | Number of results to return per page.
|
|
37
38
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
38
39
|
ordering: ['-pk'], # Array<String> | Ordering * `pk` - Pk * `-pk` - Pk (descending)
|
|
@@ -42,6 +43,7 @@ opts = {
|
|
|
42
43
|
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
|
43
44
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
|
44
45
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
|
46
|
+
removed_between: ['inner_example'], # Array<String> |
|
|
45
47
|
repository_version: 'repository_version_example', # String |
|
|
46
48
|
repository_version_added: 'repository_version_added_example', # String |
|
|
47
49
|
repository_version_removed: 'repository_version_removed_example', # String |
|
|
@@ -81,6 +83,7 @@ end
|
|
|
81
83
|
| Name | Type | Description | Notes |
|
|
82
84
|
| ---- | ---- | ----------- | ----- |
|
|
83
85
|
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
86
|
+
| **added_between** | [**Array<String>**](String.md) | | [optional] |
|
|
84
87
|
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
|
85
88
|
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
|
86
89
|
| **ordering** | [**Array<String>**](String.md) | Ordering * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
|
@@ -90,6 +93,7 @@ end
|
|
|
90
93
|
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
|
91
94
|
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
|
92
95
|
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
|
96
|
+
| **removed_between** | [**Array<String>**](String.md) | | [optional] |
|
|
93
97
|
| **repository_version** | **String** | | [optional] |
|
|
94
98
|
| **repository_version_added** | **String** | | [optional] |
|
|
95
99
|
| **repository_version_removed** | **String** | | [optional] |
|
data/docs/ContentMetadataApi.md
CHANGED
|
@@ -125,6 +125,7 @@ end
|
|
|
125
125
|
api_instance = PulpMavenClient::ContentMetadataApi.new
|
|
126
126
|
opts = {
|
|
127
127
|
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
|
128
|
+
added_between: ['inner_example'], # Array<String> |
|
|
128
129
|
artifact_id: 'artifact_id_example', # String | Filter results where artifact_id matches value
|
|
129
130
|
filename: 'filename_example', # String | Filter results where filename matches value
|
|
130
131
|
group_id: 'group_id_example', # String | Filter results where group_id matches value
|
|
@@ -137,6 +138,7 @@ opts = {
|
|
|
137
138
|
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
|
138
139
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
|
139
140
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
|
141
|
+
removed_between: ['inner_example'], # Array<String> |
|
|
140
142
|
repository_version: 'repository_version_example', # String |
|
|
141
143
|
repository_version_added: 'repository_version_added_example', # String |
|
|
142
144
|
repository_version_removed: 'repository_version_removed_example', # String |
|
|
@@ -177,6 +179,7 @@ end
|
|
|
177
179
|
| Name | Type | Description | Notes |
|
|
178
180
|
| ---- | ---- | ----------- | ----- |
|
|
179
181
|
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
182
|
+
| **added_between** | [**Array<String>**](String.md) | | [optional] |
|
|
180
183
|
| **artifact_id** | **String** | Filter results where artifact_id matches value | [optional] |
|
|
181
184
|
| **filename** | **String** | Filter results where filename matches value | [optional] |
|
|
182
185
|
| **group_id** | **String** | Filter results where group_id matches value | [optional] |
|
|
@@ -189,6 +192,7 @@ end
|
|
|
189
192
|
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
|
190
193
|
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
|
191
194
|
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
|
195
|
+
| **removed_between** | [**Array<String>**](String.md) | | [optional] |
|
|
192
196
|
| **repository_version** | **String** | | [optional] |
|
|
193
197
|
| **repository_version_added** | **String** | | [optional] |
|
|
194
198
|
| **repository_version_removed** | **String** | | [optional] |
|
data/docs/ContentPackageApi.md
CHANGED
|
@@ -33,6 +33,7 @@ end
|
|
|
33
33
|
api_instance = PulpMavenClient::ContentPackageApi.new
|
|
34
34
|
opts = {
|
|
35
35
|
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
|
36
|
+
added_between: ['inner_example'], # Array<String> |
|
|
36
37
|
artifact_id: 'artifact_id_example', # String | Filter results where artifact_id matches value
|
|
37
38
|
base_version: 'base_version_example', # String | Match units whose version strips to this logical version (same suffix as collapse_builds: \\.[a-zA-Z]+-[^.]+$). 5.3.17 matches 5.3.17, 5.3.17.rhlw-00001, and 5.3.17.rhlw-00001-n0001, but not 5.3.170.
|
|
38
39
|
collapse_builds: true, # Boolean | When true, collapse rebuilds of the same logical version: strip a trailing suffix matching \\.[a-zA-Z]+-[^.]+$ from version, then keep one MavenPackage per (group_id, artifact_id, base_version) with the latest pulp_created. Default false.
|
|
@@ -48,6 +49,7 @@ opts = {
|
|
|
48
49
|
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
|
49
50
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
|
50
51
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
|
52
|
+
removed_between: ['inner_example'], # Array<String> |
|
|
51
53
|
repository_version: 'repository_version_example', # String |
|
|
52
54
|
repository_version_added: 'repository_version_added_example', # String |
|
|
53
55
|
repository_version_removed: 'repository_version_removed_example', # String |
|
|
@@ -89,6 +91,7 @@ end
|
|
|
89
91
|
| Name | Type | Description | Notes |
|
|
90
92
|
| ---- | ---- | ----------- | ----- |
|
|
91
93
|
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
94
|
+
| **added_between** | [**Array<String>**](String.md) | | [optional] |
|
|
92
95
|
| **artifact_id** | **String** | Filter results where artifact_id matches value | [optional] |
|
|
93
96
|
| **base_version** | **String** | Match units whose version strips to this logical version (same suffix as collapse_builds: \\.[a-zA-Z]+-[^.]+$). 5.3.17 matches 5.3.17, 5.3.17.rhlw-00001, and 5.3.17.rhlw-00001-n0001, but not 5.3.170. | [optional] |
|
|
94
97
|
| **collapse_builds** | **Boolean** | When true, collapse rebuilds of the same logical version: strip a trailing suffix matching \\.[a-zA-Z]+-[^.]+$ from version, then keep one MavenPackage per (group_id, artifact_id, base_version) with the latest pulp_created. Default false. | [optional] |
|
|
@@ -104,6 +107,7 @@ end
|
|
|
104
107
|
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
|
105
108
|
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
|
106
109
|
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
|
110
|
+
| **removed_between** | [**Array<String>**](String.md) | | [optional] |
|
|
107
111
|
| **repository_version** | **String** | | [optional] |
|
|
108
112
|
| **repository_version_added** | **String** | | [optional] |
|
|
109
113
|
| **repository_version_removed** | **String** | | [optional] |
|
|
@@ -4,7 +4,6 @@ All URIs are relative to *http://localhost:24817*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**add_cached_content**](RepositoriesMavenApi.md#add_cached_content) | **POST** {maven_maven_repository_href}add_cached_content/ | Add cached content |
|
|
8
7
|
| [**add_role**](RepositoriesMavenApi.md#add_role) | **POST** {maven_maven_repository_href}add_role/ | Add a role |
|
|
9
8
|
| [**create**](RepositoriesMavenApi.md#create) | **POST** /pulp/api/v3/repositories/maven/maven/ | Create a maven repository |
|
|
10
9
|
| [**delete**](RepositoriesMavenApi.md#delete) | **DELETE** {maven_maven_repository_href} | Delete a maven repository |
|
|
@@ -24,82 +23,6 @@ All URIs are relative to *http://localhost:24817*
|
|
|
24
23
|
| [**update**](RepositoriesMavenApi.md#update) | **PUT** {maven_maven_repository_href} | Update a maven repository |
|
|
25
24
|
|
|
26
25
|
|
|
27
|
-
## add_cached_content
|
|
28
|
-
|
|
29
|
-
> <AsyncOperationResponse> add_cached_content(maven_maven_repository_href, repository_add_cached_content, opts)
|
|
30
|
-
|
|
31
|
-
Add cached content
|
|
32
|
-
|
|
33
|
-
Trigger an asynchronous task to add cached content to a repository.
|
|
34
|
-
|
|
35
|
-
### Examples
|
|
36
|
-
|
|
37
|
-
```ruby
|
|
38
|
-
require 'time'
|
|
39
|
-
require 'pulp_maven_client'
|
|
40
|
-
# setup authorization
|
|
41
|
-
PulpMavenClient.configure do |config|
|
|
42
|
-
# Configure HTTP basic authorization: basicAuth
|
|
43
|
-
config.username = 'YOUR USERNAME'
|
|
44
|
-
config.password = 'YOUR PASSWORD'
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
api_instance = PulpMavenClient::RepositoriesMavenApi.new
|
|
48
|
-
maven_maven_repository_href = 'maven_maven_repository_href_example' # String |
|
|
49
|
-
repository_add_cached_content = PulpMavenClient::RepositoryAddCachedContent.new # RepositoryAddCachedContent |
|
|
50
|
-
opts = {
|
|
51
|
-
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
begin
|
|
55
|
-
# Add cached content
|
|
56
|
-
result = api_instance.add_cached_content(maven_maven_repository_href, repository_add_cached_content, opts)
|
|
57
|
-
p result
|
|
58
|
-
rescue PulpMavenClient::ApiError => e
|
|
59
|
-
puts "Error when calling RepositoriesMavenApi->add_cached_content: #{e}"
|
|
60
|
-
end
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
#### Using the add_cached_content_with_http_info variant
|
|
64
|
-
|
|
65
|
-
This returns an Array which contains the response data, status code and headers.
|
|
66
|
-
|
|
67
|
-
> <Array(<AsyncOperationResponse>, Integer, Hash)> add_cached_content_with_http_info(maven_maven_repository_href, repository_add_cached_content, opts)
|
|
68
|
-
|
|
69
|
-
```ruby
|
|
70
|
-
begin
|
|
71
|
-
# Add cached content
|
|
72
|
-
data, status_code, headers = api_instance.add_cached_content_with_http_info(maven_maven_repository_href, repository_add_cached_content, opts)
|
|
73
|
-
p status_code # => 2xx
|
|
74
|
-
p headers # => { ... }
|
|
75
|
-
p data # => <AsyncOperationResponse>
|
|
76
|
-
rescue PulpMavenClient::ApiError => e
|
|
77
|
-
puts "Error when calling RepositoriesMavenApi->add_cached_content_with_http_info: #{e}"
|
|
78
|
-
end
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
### Parameters
|
|
82
|
-
|
|
83
|
-
| Name | Type | Description | Notes |
|
|
84
|
-
| ---- | ---- | ----------- | ----- |
|
|
85
|
-
| **maven_maven_repository_href** | **String** | | |
|
|
86
|
-
| **repository_add_cached_content** | [**RepositoryAddCachedContent**](RepositoryAddCachedContent.md) | | |
|
|
87
|
-
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
88
|
-
|
|
89
|
-
### Return type
|
|
90
|
-
|
|
91
|
-
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
92
|
-
|
|
93
|
-
### Authorization
|
|
94
|
-
|
|
95
|
-
[basicAuth](../README.md#basicAuth)
|
|
96
|
-
|
|
97
|
-
### HTTP request headers
|
|
98
|
-
|
|
99
|
-
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
100
|
-
- **Accept**: application/json
|
|
101
|
-
|
|
102
|
-
|
|
103
26
|
## add_role
|
|
104
27
|
|
|
105
28
|
> <NestedRoleResponse> add_role(maven_maven_repository_href, nested_role, opts)
|
|
@@ -810,6 +733,8 @@ opts = {
|
|
|
810
733
|
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
|
811
734
|
artifact_id__istartswith: 'artifact_id__istartswith_example', # String | Case-insensitive prefix on artifact_id.
|
|
812
735
|
group_id__istartswith: 'group_id__istartswith_example', # String | Case-insensitive prefix on group_id.
|
|
736
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
737
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
813
738
|
ordering: ['inner_example'], # Array<String> | Order catalog rows. Allowed: group_id, artifact_id, last_updated. Prefix with '-' for descending. Default is group_id, artifact_id. Ordering by group_id without artifact_id also sorts by artifact_id.
|
|
814
739
|
repository_version: 'repository_version_example', # String | HREF or PRN of a version of this repository. Defaults to the latest complete version.
|
|
815
740
|
search: 'search_example', # String | Case-insensitive package search. Without ':', group_id or artifact_id contains the term (OR). With ':', group_id contains the left part AND artifact_id contains the right part. A third ':' segment (version) is ignored. Empty or ':' is a no-op. Combines with prefix filters using AND.
|
|
@@ -852,6 +777,8 @@ end
|
|
|
852
777
|
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
853
778
|
| **artifact_id__istartswith** | **String** | Case-insensitive prefix on artifact_id. | [optional] |
|
|
854
779
|
| **group_id__istartswith** | **String** | Case-insensitive prefix on group_id. | [optional] |
|
|
780
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
|
781
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
|
855
782
|
| **ordering** | [**Array<String>**](String.md) | Order catalog rows. Allowed: group_id, artifact_id, last_updated. Prefix with '-' for descending. Default is group_id, artifact_id. Ordering by group_id without artifact_id also sorts by artifact_id. | [optional] |
|
|
856
783
|
| **repository_version** | **String** | HREF or PRN of a version of this repository. Defaults to the latest complete version. | [optional] |
|
|
857
784
|
| **search** | **String** | Case-insensitive package search. Without ':', group_id or artifact_id contains the term (OR). With ':', group_id contains the left part AND artifact_id contains the right part. A third ':' segment (version) is ignored. Empty or ':' is a no-op. Combines with prefix filters using AND. | [optional] |
|
|
@@ -127,6 +127,7 @@ module PulpMavenClient
|
|
|
127
127
|
# A ViewSet for MavenArtifact.
|
|
128
128
|
# @param [Hash] opts the optional parameters
|
|
129
129
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
130
|
+
# @option opts [Array<String>] :added_between
|
|
130
131
|
# @option opts [String] :artifact_id Filter results where artifact_id matches value
|
|
131
132
|
# @option opts [String] :filename Filter results where filename matches value
|
|
132
133
|
# @option opts [String] :group_id Filter results where group_id matches value
|
|
@@ -139,6 +140,7 @@ module PulpMavenClient
|
|
|
139
140
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
140
141
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
141
142
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
143
|
+
# @option opts [Array<String>] :removed_between
|
|
142
144
|
# @option opts [String] :repository_version
|
|
143
145
|
# @option opts [String] :repository_version_added
|
|
144
146
|
# @option opts [String] :repository_version_removed
|
|
@@ -155,6 +157,7 @@ module PulpMavenClient
|
|
|
155
157
|
# A ViewSet for MavenArtifact.
|
|
156
158
|
# @param [Hash] opts the optional parameters
|
|
157
159
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
160
|
+
# @option opts [Array<String>] :added_between
|
|
158
161
|
# @option opts [String] :artifact_id Filter results where artifact_id matches value
|
|
159
162
|
# @option opts [String] :filename Filter results where filename matches value
|
|
160
163
|
# @option opts [String] :group_id Filter results where group_id matches value
|
|
@@ -167,6 +170,7 @@ module PulpMavenClient
|
|
|
167
170
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
168
171
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
169
172
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
173
|
+
# @option opts [Array<String>] :removed_between
|
|
170
174
|
# @option opts [String] :repository_version
|
|
171
175
|
# @option opts [String] :repository_version_added
|
|
172
176
|
# @option opts [String] :repository_version_removed
|
|
@@ -187,6 +191,7 @@ module PulpMavenClient
|
|
|
187
191
|
|
|
188
192
|
# query parameters
|
|
189
193
|
query_params = opts[:query_params] || {}
|
|
194
|
+
query_params[:'added_between'] = @api_client.build_collection_param(opts[:'added_between'], :csv) if !opts[:'added_between'].nil?
|
|
190
195
|
query_params[:'artifact_id'] = opts[:'artifact_id'] if !opts[:'artifact_id'].nil?
|
|
191
196
|
query_params[:'filename'] = opts[:'filename'] if !opts[:'filename'].nil?
|
|
192
197
|
query_params[:'group_id'] = opts[:'group_id'] if !opts[:'group_id'].nil?
|
|
@@ -199,6 +204,7 @@ module PulpMavenClient
|
|
|
199
204
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
|
200
205
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
|
201
206
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
207
|
+
query_params[:'removed_between'] = @api_client.build_collection_param(opts[:'removed_between'], :csv) if !opts[:'removed_between'].nil?
|
|
202
208
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
|
203
209
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
|
204
210
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
|
@@ -23,6 +23,7 @@ module PulpMavenClient
|
|
|
23
23
|
# A read-only ViewSet for MavenIndexPage.
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
26
|
+
# @option opts [Array<String>] :added_between
|
|
26
27
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
27
28
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
28
29
|
# @option opts [Array<String>] :ordering Ordering * `pk` - Pk * `-pk` - Pk (descending)
|
|
@@ -32,6 +33,7 @@ module PulpMavenClient
|
|
|
32
33
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
33
34
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
34
35
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
36
|
+
# @option opts [Array<String>] :removed_between
|
|
35
37
|
# @option opts [String] :repository_version
|
|
36
38
|
# @option opts [String] :repository_version_added
|
|
37
39
|
# @option opts [String] :repository_version_removed
|
|
@@ -47,6 +49,7 @@ module PulpMavenClient
|
|
|
47
49
|
# A read-only ViewSet for MavenIndexPage.
|
|
48
50
|
# @param [Hash] opts the optional parameters
|
|
49
51
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
52
|
+
# @option opts [Array<String>] :added_between
|
|
50
53
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
51
54
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
52
55
|
# @option opts [Array<String>] :ordering Ordering * `pk` - Pk * `-pk` - Pk (descending)
|
|
@@ -56,6 +59,7 @@ module PulpMavenClient
|
|
|
56
59
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
57
60
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
58
61
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
62
|
+
# @option opts [Array<String>] :removed_between
|
|
59
63
|
# @option opts [String] :repository_version
|
|
60
64
|
# @option opts [String] :repository_version_added
|
|
61
65
|
# @option opts [String] :repository_version_removed
|
|
@@ -75,6 +79,7 @@ module PulpMavenClient
|
|
|
75
79
|
|
|
76
80
|
# query parameters
|
|
77
81
|
query_params = opts[:query_params] || {}
|
|
82
|
+
query_params[:'added_between'] = @api_client.build_collection_param(opts[:'added_between'], :csv) if !opts[:'added_between'].nil?
|
|
78
83
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
79
84
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
80
85
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
|
@@ -84,6 +89,7 @@ module PulpMavenClient
|
|
|
84
89
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
|
85
90
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
|
86
91
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
92
|
+
query_params[:'removed_between'] = @api_client.build_collection_param(opts[:'removed_between'], :csv) if !opts[:'removed_between'].nil?
|
|
87
93
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
|
88
94
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
|
89
95
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
|
@@ -127,6 +127,7 @@ module PulpMavenClient
|
|
|
127
127
|
# A ViewSet for MavenMetadata.
|
|
128
128
|
# @param [Hash] opts the optional parameters
|
|
129
129
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
130
|
+
# @option opts [Array<String>] :added_between
|
|
130
131
|
# @option opts [String] :artifact_id Filter results where artifact_id matches value
|
|
131
132
|
# @option opts [String] :filename Filter results where filename matches value
|
|
132
133
|
# @option opts [String] :group_id Filter results where group_id matches value
|
|
@@ -139,6 +140,7 @@ module PulpMavenClient
|
|
|
139
140
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
140
141
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
141
142
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
143
|
+
# @option opts [Array<String>] :removed_between
|
|
142
144
|
# @option opts [String] :repository_version
|
|
143
145
|
# @option opts [String] :repository_version_added
|
|
144
146
|
# @option opts [String] :repository_version_removed
|
|
@@ -155,6 +157,7 @@ module PulpMavenClient
|
|
|
155
157
|
# A ViewSet for MavenMetadata.
|
|
156
158
|
# @param [Hash] opts the optional parameters
|
|
157
159
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
160
|
+
# @option opts [Array<String>] :added_between
|
|
158
161
|
# @option opts [String] :artifact_id Filter results where artifact_id matches value
|
|
159
162
|
# @option opts [String] :filename Filter results where filename matches value
|
|
160
163
|
# @option opts [String] :group_id Filter results where group_id matches value
|
|
@@ -167,6 +170,7 @@ module PulpMavenClient
|
|
|
167
170
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
168
171
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
169
172
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
173
|
+
# @option opts [Array<String>] :removed_between
|
|
170
174
|
# @option opts [String] :repository_version
|
|
171
175
|
# @option opts [String] :repository_version_added
|
|
172
176
|
# @option opts [String] :repository_version_removed
|
|
@@ -187,6 +191,7 @@ module PulpMavenClient
|
|
|
187
191
|
|
|
188
192
|
# query parameters
|
|
189
193
|
query_params = opts[:query_params] || {}
|
|
194
|
+
query_params[:'added_between'] = @api_client.build_collection_param(opts[:'added_between'], :csv) if !opts[:'added_between'].nil?
|
|
190
195
|
query_params[:'artifact_id'] = opts[:'artifact_id'] if !opts[:'artifact_id'].nil?
|
|
191
196
|
query_params[:'filename'] = opts[:'filename'] if !opts[:'filename'].nil?
|
|
192
197
|
query_params[:'group_id'] = opts[:'group_id'] if !opts[:'group_id'].nil?
|
|
@@ -199,6 +204,7 @@ module PulpMavenClient
|
|
|
199
204
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
|
200
205
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
|
201
206
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
207
|
+
query_params[:'removed_between'] = @api_client.build_collection_param(opts[:'removed_between'], :csv) if !opts[:'removed_between'].nil?
|
|
202
208
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
|
203
209
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
|
204
210
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
|
@@ -23,6 +23,7 @@ module PulpMavenClient
|
|
|
23
23
|
# A read-only ViewSet for MavenPackage. MavenPackage represents a logical Maven package at the GAV (groupId, artifactId, version) level. Packages are automatically created when artifacts are added to a repository.
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
26
|
+
# @option opts [Array<String>] :added_between
|
|
26
27
|
# @option opts [String] :artifact_id Filter results where artifact_id matches value
|
|
27
28
|
# @option opts [String] :base_version Match units whose version strips to this logical version (same suffix as collapse_builds: \\.[a-zA-Z]+-[^.]+$). 5.3.17 matches 5.3.17, 5.3.17.rhlw-00001, and 5.3.17.rhlw-00001-n0001, but not 5.3.170.
|
|
28
29
|
# @option opts [Boolean] :collapse_builds When true, collapse rebuilds of the same logical version: strip a trailing suffix matching \\.[a-zA-Z]+-[^.]+$ from version, then keep one MavenPackage per (group_id, artifact_id, base_version) with the latest pulp_created. Default false.
|
|
@@ -38,6 +39,7 @@ module PulpMavenClient
|
|
|
38
39
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
39
40
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
40
41
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
42
|
+
# @option opts [Array<String>] :removed_between
|
|
41
43
|
# @option opts [String] :repository_version
|
|
42
44
|
# @option opts [String] :repository_version_added
|
|
43
45
|
# @option opts [String] :repository_version_removed
|
|
@@ -55,6 +57,7 @@ module PulpMavenClient
|
|
|
55
57
|
# A read-only ViewSet for MavenPackage. MavenPackage represents a logical Maven package at the GAV (groupId, artifactId, version) level. Packages are automatically created when artifacts are added to a repository.
|
|
56
58
|
# @param [Hash] opts the optional parameters
|
|
57
59
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
60
|
+
# @option opts [Array<String>] :added_between
|
|
58
61
|
# @option opts [String] :artifact_id Filter results where artifact_id matches value
|
|
59
62
|
# @option opts [String] :base_version Match units whose version strips to this logical version (same suffix as collapse_builds: \\.[a-zA-Z]+-[^.]+$). 5.3.17 matches 5.3.17, 5.3.17.rhlw-00001, and 5.3.17.rhlw-00001-n0001, but not 5.3.170.
|
|
60
63
|
# @option opts [Boolean] :collapse_builds When true, collapse rebuilds of the same logical version: strip a trailing suffix matching \\.[a-zA-Z]+-[^.]+$ from version, then keep one MavenPackage per (group_id, artifact_id, base_version) with the latest pulp_created. Default false.
|
|
@@ -70,6 +73,7 @@ module PulpMavenClient
|
|
|
70
73
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
71
74
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
72
75
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
76
|
+
# @option opts [Array<String>] :removed_between
|
|
73
77
|
# @option opts [String] :repository_version
|
|
74
78
|
# @option opts [String] :repository_version_added
|
|
75
79
|
# @option opts [String] :repository_version_removed
|
|
@@ -91,6 +95,7 @@ module PulpMavenClient
|
|
|
91
95
|
|
|
92
96
|
# query parameters
|
|
93
97
|
query_params = opts[:query_params] || {}
|
|
98
|
+
query_params[:'added_between'] = @api_client.build_collection_param(opts[:'added_between'], :csv) if !opts[:'added_between'].nil?
|
|
94
99
|
query_params[:'artifact_id'] = opts[:'artifact_id'] if !opts[:'artifact_id'].nil?
|
|
95
100
|
query_params[:'base_version'] = opts[:'base_version'] if !opts[:'base_version'].nil?
|
|
96
101
|
query_params[:'collapse_builds'] = opts[:'collapse_builds'] if !opts[:'collapse_builds'].nil?
|
|
@@ -106,6 +111,7 @@ module PulpMavenClient
|
|
|
106
111
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
|
107
112
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
|
108
113
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
114
|
+
query_params[:'removed_between'] = @api_client.build_collection_param(opts[:'removed_between'], :csv) if !opts[:'removed_between'].nil?
|
|
109
115
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
|
110
116
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
|
111
117
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
|
@@ -19,83 +19,6 @@ module PulpMavenClient
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
# Add cached content
|
|
23
|
-
# Trigger an asynchronous task to add cached content to a repository.
|
|
24
|
-
# @param maven_maven_repository_href [String]
|
|
25
|
-
# @param repository_add_cached_content [RepositoryAddCachedContent]
|
|
26
|
-
# @param [Hash] opts the optional parameters
|
|
27
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
28
|
-
# @return [AsyncOperationResponse]
|
|
29
|
-
def add_cached_content(maven_maven_repository_href, repository_add_cached_content, opts = {})
|
|
30
|
-
data, _status_code, _headers = add_cached_content_with_http_info(maven_maven_repository_href, repository_add_cached_content, opts)
|
|
31
|
-
data
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
# Add cached content
|
|
35
|
-
# Trigger an asynchronous task to add cached content to a repository.
|
|
36
|
-
# @param maven_maven_repository_href [String]
|
|
37
|
-
# @param repository_add_cached_content [RepositoryAddCachedContent]
|
|
38
|
-
# @param [Hash] opts the optional parameters
|
|
39
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
40
|
-
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
41
|
-
def add_cached_content_with_http_info(maven_maven_repository_href, repository_add_cached_content, opts = {})
|
|
42
|
-
if @api_client.config.debugging
|
|
43
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.add_cached_content ...'
|
|
44
|
-
end
|
|
45
|
-
# verify the required parameter 'maven_maven_repository_href' is set
|
|
46
|
-
if @api_client.config.client_side_validation && maven_maven_repository_href.nil?
|
|
47
|
-
fail ArgumentError, "Missing the required parameter 'maven_maven_repository_href' when calling RepositoriesMavenApi.add_cached_content"
|
|
48
|
-
end
|
|
49
|
-
# verify the required parameter 'repository_add_cached_content' is set
|
|
50
|
-
if @api_client.config.client_side_validation && repository_add_cached_content.nil?
|
|
51
|
-
fail ArgumentError, "Missing the required parameter 'repository_add_cached_content' when calling RepositoriesMavenApi.add_cached_content"
|
|
52
|
-
end
|
|
53
|
-
# resource path
|
|
54
|
-
local_var_path = '{maven_maven_repository_href}add_cached_content/'.sub('{' + 'maven_maven_repository_href' + '}', CGI.escape(maven_maven_repository_href.to_s).gsub('%2F', '/'))
|
|
55
|
-
|
|
56
|
-
# query parameters
|
|
57
|
-
query_params = opts[:query_params] || {}
|
|
58
|
-
|
|
59
|
-
# header parameters
|
|
60
|
-
header_params = opts[:header_params] || {}
|
|
61
|
-
# HTTP header 'Accept' (if needed)
|
|
62
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
63
|
-
# HTTP header 'Content-Type'
|
|
64
|
-
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
65
|
-
if !content_type.nil?
|
|
66
|
-
header_params['Content-Type'] = content_type
|
|
67
|
-
end
|
|
68
|
-
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
69
|
-
|
|
70
|
-
# form parameters
|
|
71
|
-
form_params = opts[:form_params] || {}
|
|
72
|
-
|
|
73
|
-
# http body (model)
|
|
74
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(repository_add_cached_content)
|
|
75
|
-
|
|
76
|
-
# return_type
|
|
77
|
-
return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
|
|
78
|
-
|
|
79
|
-
# auth_names
|
|
80
|
-
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
81
|
-
|
|
82
|
-
new_options = opts.merge(
|
|
83
|
-
:operation => :"RepositoriesMavenApi.add_cached_content",
|
|
84
|
-
:header_params => header_params,
|
|
85
|
-
:query_params => query_params,
|
|
86
|
-
:form_params => form_params,
|
|
87
|
-
:body => post_body,
|
|
88
|
-
:auth_names => auth_names,
|
|
89
|
-
:return_type => return_type
|
|
90
|
-
)
|
|
91
|
-
|
|
92
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
93
|
-
if @api_client.config.debugging
|
|
94
|
-
@api_client.config.logger.debug "API called: RepositoriesMavenApi#add_cached_content\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
95
|
-
end
|
|
96
|
-
return data, status_code, headers
|
|
97
|
-
end
|
|
98
|
-
|
|
99
22
|
# Add a role
|
|
100
23
|
# Add a role for this object to users/groups.
|
|
101
24
|
# @param maven_maven_repository_href [String]
|
|
@@ -791,6 +714,8 @@ module PulpMavenClient
|
|
|
791
714
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
792
715
|
# @option opts [String] :artifact_id__istartswith Case-insensitive prefix on artifact_id.
|
|
793
716
|
# @option opts [String] :group_id__istartswith Case-insensitive prefix on group_id.
|
|
717
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
718
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
794
719
|
# @option opts [Array<String>] :ordering Order catalog rows. Allowed: group_id, artifact_id, last_updated. Prefix with '-' for descending. Default is group_id, artifact_id. Ordering by group_id without artifact_id also sorts by artifact_id.
|
|
795
720
|
# @option opts [String] :repository_version HREF or PRN of a version of this repository. Defaults to the latest complete version.
|
|
796
721
|
# @option opts [String] :search Case-insensitive package search. Without ':', group_id or artifact_id contains the term (OR). With ':', group_id contains the left part AND artifact_id contains the right part. A third ':' segment (version) is ignored. Empty or ':' is a no-op. Combines with prefix filters using AND.
|
|
@@ -809,6 +734,8 @@ module PulpMavenClient
|
|
|
809
734
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
810
735
|
# @option opts [String] :artifact_id__istartswith Case-insensitive prefix on artifact_id.
|
|
811
736
|
# @option opts [String] :group_id__istartswith Case-insensitive prefix on group_id.
|
|
737
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
738
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
812
739
|
# @option opts [Array<String>] :ordering Order catalog rows. Allowed: group_id, artifact_id, last_updated. Prefix with '-' for descending. Default is group_id, artifact_id. Ordering by group_id without artifact_id also sorts by artifact_id.
|
|
813
740
|
# @option opts [String] :repository_version HREF or PRN of a version of this repository. Defaults to the latest complete version.
|
|
814
741
|
# @option opts [String] :search Case-insensitive package search. Without ':', group_id or artifact_id contains the term (OR). With ':', group_id contains the left part AND artifact_id contains the right part. A third ':' segment (version) is ignored. Empty or ':' is a no-op. Combines with prefix filters using AND.
|
|
@@ -830,6 +757,8 @@ module PulpMavenClient
|
|
|
830
757
|
query_params = opts[:query_params] || {}
|
|
831
758
|
query_params[:'artifact_id__istartswith'] = opts[:'artifact_id__istartswith'] if !opts[:'artifact_id__istartswith'].nil?
|
|
832
759
|
query_params[:'group_id__istartswith'] = opts[:'group_id__istartswith'] if !opts[:'group_id__istartswith'].nil?
|
|
760
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
761
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
833
762
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :multi) if !opts[:'ordering'].nil?
|
|
834
763
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
|
835
764
|
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
data/lib/pulp_maven_client.rb
CHANGED
|
@@ -53,7 +53,6 @@ require 'pulp_maven_client/models/policy_enum'
|
|
|
53
53
|
require 'pulp_maven_client/models/remote_network_config'
|
|
54
54
|
require 'pulp_maven_client/models/remote_network_config_response'
|
|
55
55
|
require 'pulp_maven_client/models/repair'
|
|
56
|
-
require 'pulp_maven_client/models/repository_add_cached_content'
|
|
57
56
|
require 'pulp_maven_client/models/repository_add_remove_content'
|
|
58
57
|
require 'pulp_maven_client/models/repository_version_response'
|
|
59
58
|
require 'pulp_maven_client/models/set_label'
|
|
@@ -58,6 +58,7 @@ describe 'ContentArtifactApi' do
|
|
|
58
58
|
# A ViewSet for MavenArtifact.
|
|
59
59
|
# @param [Hash] opts the optional parameters
|
|
60
60
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
61
|
+
# @option opts [Array<String>] :added_between
|
|
61
62
|
# @option opts [String] :artifact_id Filter results where artifact_id matches value
|
|
62
63
|
# @option opts [String] :filename Filter results where filename matches value
|
|
63
64
|
# @option opts [String] :group_id Filter results where group_id matches value
|
|
@@ -70,6 +71,7 @@ describe 'ContentArtifactApi' do
|
|
|
70
71
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
71
72
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
72
73
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
74
|
+
# @option opts [Array<String>] :removed_between
|
|
73
75
|
# @option opts [String] :repository_version
|
|
74
76
|
# @option opts [String] :repository_version_added
|
|
75
77
|
# @option opts [String] :repository_version_removed
|
|
@@ -37,6 +37,7 @@ describe 'ContentMavenIndexPageApi' do
|
|
|
37
37
|
# A read-only ViewSet for MavenIndexPage.
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
40
|
+
# @option opts [Array<String>] :added_between
|
|
40
41
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
41
42
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
42
43
|
# @option opts [Array<String>] :ordering Ordering * `pk` - Pk * `-pk` - Pk (descending)
|
|
@@ -46,6 +47,7 @@ describe 'ContentMavenIndexPageApi' do
|
|
|
46
47
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
47
48
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
48
49
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
50
|
+
# @option opts [Array<String>] :removed_between
|
|
49
51
|
# @option opts [String] :repository_version
|
|
50
52
|
# @option opts [String] :repository_version_added
|
|
51
53
|
# @option opts [String] :repository_version_removed
|
|
@@ -58,6 +58,7 @@ describe 'ContentMetadataApi' do
|
|
|
58
58
|
# A ViewSet for MavenMetadata.
|
|
59
59
|
# @param [Hash] opts the optional parameters
|
|
60
60
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
61
|
+
# @option opts [Array<String>] :added_between
|
|
61
62
|
# @option opts [String] :artifact_id Filter results where artifact_id matches value
|
|
62
63
|
# @option opts [String] :filename Filter results where filename matches value
|
|
63
64
|
# @option opts [String] :group_id Filter results where group_id matches value
|
|
@@ -70,6 +71,7 @@ describe 'ContentMetadataApi' do
|
|
|
70
71
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
71
72
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
72
73
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
74
|
+
# @option opts [Array<String>] :removed_between
|
|
73
75
|
# @option opts [String] :repository_version
|
|
74
76
|
# @option opts [String] :repository_version_added
|
|
75
77
|
# @option opts [String] :repository_version_removed
|
|
@@ -37,6 +37,7 @@ describe 'ContentPackageApi' do
|
|
|
37
37
|
# A read-only ViewSet for MavenPackage. MavenPackage represents a logical Maven package at the GAV (groupId, artifactId, version) level. Packages are automatically created when artifacts are added to a repository.
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
40
|
+
# @option opts [Array<String>] :added_between
|
|
40
41
|
# @option opts [String] :artifact_id Filter results where artifact_id matches value
|
|
41
42
|
# @option opts [String] :base_version Match units whose version strips to this logical version (same suffix as collapse_builds: \\.[a-zA-Z]+-[^.]+$). 5.3.17 matches 5.3.17, 5.3.17.rhlw-00001, and 5.3.17.rhlw-00001-n0001, but not 5.3.170.
|
|
42
43
|
# @option opts [Boolean] :collapse_builds When true, collapse rebuilds of the same logical version: strip a trailing suffix matching \\.[a-zA-Z]+-[^.]+$ from version, then keep one MavenPackage per (group_id, artifact_id, base_version) with the latest pulp_created. Default false.
|
|
@@ -52,6 +53,7 @@ describe 'ContentPackageApi' do
|
|
|
52
53
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
53
54
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
54
55
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
56
|
+
# @option opts [Array<String>] :removed_between
|
|
55
57
|
# @option opts [String] :repository_version
|
|
56
58
|
# @option opts [String] :repository_version_added
|
|
57
59
|
# @option opts [String] :repository_version_removed
|
|
@@ -32,20 +32,6 @@ describe 'RepositoriesMavenApi' do
|
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
-
# unit tests for add_cached_content
|
|
36
|
-
# Add cached content
|
|
37
|
-
# Trigger an asynchronous task to add cached content to a repository.
|
|
38
|
-
# @param maven_maven_repository_href
|
|
39
|
-
# @param repository_add_cached_content
|
|
40
|
-
# @param [Hash] opts the optional parameters
|
|
41
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
42
|
-
# @return [AsyncOperationResponse]
|
|
43
|
-
describe 'add_cached_content test' do
|
|
44
|
-
it 'should work' do
|
|
45
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
|
|
49
35
|
# unit tests for add_role
|
|
50
36
|
# Add a role
|
|
51
37
|
# Add a role for this object to users/groups.
|
|
@@ -204,6 +190,8 @@ describe 'RepositoriesMavenApi' do
|
|
|
204
190
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
205
191
|
# @option opts [String] :artifact_id__istartswith Case-insensitive prefix on artifact_id.
|
|
206
192
|
# @option opts [String] :group_id__istartswith Case-insensitive prefix on group_id.
|
|
193
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
194
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
207
195
|
# @option opts [Array<String>] :ordering Order catalog rows. Allowed: group_id, artifact_id, last_updated. Prefix with '-' for descending. Default is group_id, artifact_id. Ordering by group_id without artifact_id also sorts by artifact_id.
|
|
208
196
|
# @option opts [String] :repository_version HREF or PRN of a version of this repository. Defaults to the latest complete version.
|
|
209
197
|
# @option opts [String] :search Case-insensitive package search. Without ':', group_id or artifact_id contains the term (OR). With ':', group_id contains the left part AND artifact_id contains the right part. A third ':' segment (version) is ignored. Empty or ':' is a no-op. Combines with prefix filters using AND.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pulp_maven_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.30.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -133,7 +133,6 @@ files:
|
|
|
133
133
|
- docs/Repair.md
|
|
134
134
|
- docs/RepositoriesMavenApi.md
|
|
135
135
|
- docs/RepositoriesMavenVersionsApi.md
|
|
136
|
-
- docs/RepositoryAddCachedContent.md
|
|
137
136
|
- docs/RepositoryAddRemoveContent.md
|
|
138
137
|
- docs/RepositoryVersionResponse.md
|
|
139
138
|
- docs/SetLabel.md
|
|
@@ -189,7 +188,6 @@ files:
|
|
|
189
188
|
- lib/pulp_maven_client/models/remote_network_config.rb
|
|
190
189
|
- lib/pulp_maven_client/models/remote_network_config_response.rb
|
|
191
190
|
- lib/pulp_maven_client/models/repair.rb
|
|
192
|
-
- lib/pulp_maven_client/models/repository_add_cached_content.rb
|
|
193
191
|
- lib/pulp_maven_client/models/repository_add_remove_content.rb
|
|
194
192
|
- lib/pulp_maven_client/models/repository_version_response.rb
|
|
195
193
|
- lib/pulp_maven_client/models/set_label.rb
|
|
@@ -243,7 +241,6 @@ files:
|
|
|
243
241
|
- spec/models/remote_network_config_response_spec.rb
|
|
244
242
|
- spec/models/remote_network_config_spec.rb
|
|
245
243
|
- spec/models/repair_spec.rb
|
|
246
|
-
- spec/models/repository_add_cached_content_spec.rb
|
|
247
244
|
- spec/models/repository_add_remove_content_spec.rb
|
|
248
245
|
- spec/models/repository_version_response_spec.rb
|
|
249
246
|
- spec/models/set_label_response_spec.rb
|
|
@@ -287,7 +284,6 @@ test_files:
|
|
|
287
284
|
- spec/models/unset_label_spec.rb
|
|
288
285
|
- spec/models/maven_maven_metadata_response_spec.rb
|
|
289
286
|
- spec/models/paginated_maven_repository_package_list_response_spec.rb
|
|
290
|
-
- spec/models/repository_add_cached_content_spec.rb
|
|
291
287
|
- spec/models/maven_maven_index_page_response_spec.rb
|
|
292
288
|
- spec/models/repository_add_remove_content_spec.rb
|
|
293
289
|
- spec/models/nested_role_response_spec.rb
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# PulpMavenClient::RepositoryAddCachedContent
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **remote** | **String** | A remote to use to identify content that was cached. This will override a remote set on repository. | [optional] |
|
|
8
|
-
|
|
9
|
-
## Example
|
|
10
|
-
|
|
11
|
-
```ruby
|
|
12
|
-
require 'pulp_maven_client'
|
|
13
|
-
|
|
14
|
-
instance = PulpMavenClient::RepositoryAddCachedContent.new(
|
|
15
|
-
remote: null
|
|
16
|
-
)
|
|
17
|
-
```
|
|
18
|
-
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#Pulp 3 API
|
|
3
|
-
|
|
4
|
-
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: v3
|
|
7
|
-
Contact: pulp-list@redhat.com
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.10.0
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'date'
|
|
14
|
-
require 'time'
|
|
15
|
-
|
|
16
|
-
module PulpMavenClient
|
|
17
|
-
# A mixin for validating unknown serializers' fields.
|
|
18
|
-
class RepositoryAddCachedContent
|
|
19
|
-
# A remote to use to identify content that was cached. This will override a remote set on repository.
|
|
20
|
-
attr_accessor :remote
|
|
21
|
-
|
|
22
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
|
-
def self.attribute_map
|
|
24
|
-
{
|
|
25
|
-
:'remote' => :'remote'
|
|
26
|
-
}
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
# Returns all the JSON keys this model knows about
|
|
30
|
-
def self.acceptable_attributes
|
|
31
|
-
attribute_map.values
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
# Attribute type mapping.
|
|
35
|
-
def self.openapi_types
|
|
36
|
-
{
|
|
37
|
-
:'remote' => :'String'
|
|
38
|
-
}
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
# List of attributes with nullable: true
|
|
42
|
-
def self.openapi_nullable
|
|
43
|
-
Set.new([
|
|
44
|
-
])
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
# Initializes the object
|
|
48
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
49
|
-
def initialize(attributes = {})
|
|
50
|
-
if (!attributes.is_a?(Hash))
|
|
51
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::RepositoryAddCachedContent` initialize method"
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
|
55
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
56
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
|
57
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::RepositoryAddCachedContent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
58
|
-
end
|
|
59
|
-
h[k.to_sym] = v
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
if attributes.key?(:'remote')
|
|
63
|
-
self.remote = attributes[:'remote']
|
|
64
|
-
end
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
|
68
|
-
# @return Array for valid properties with the reasons
|
|
69
|
-
def list_invalid_properties
|
|
70
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
71
|
-
invalid_properties = Array.new
|
|
72
|
-
invalid_properties
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
# Check to see if the all the properties in the model are valid
|
|
76
|
-
# @return true if the model is valid
|
|
77
|
-
def valid?
|
|
78
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
79
|
-
true
|
|
80
|
-
end
|
|
81
|
-
|
|
82
|
-
# Checks equality by comparing each attribute.
|
|
83
|
-
# @param [Object] Object to be compared
|
|
84
|
-
def ==(o)
|
|
85
|
-
return true if self.equal?(o)
|
|
86
|
-
self.class == o.class &&
|
|
87
|
-
remote == o.remote
|
|
88
|
-
end
|
|
89
|
-
|
|
90
|
-
# @see the `==` method
|
|
91
|
-
# @param [Object] Object to be compared
|
|
92
|
-
def eql?(o)
|
|
93
|
-
self == o
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
# Calculates hash code according to all attributes.
|
|
97
|
-
# @return [Integer] Hash code
|
|
98
|
-
def hash
|
|
99
|
-
[remote].hash
|
|
100
|
-
end
|
|
101
|
-
|
|
102
|
-
# Builds the object from hash
|
|
103
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
104
|
-
# @return [Object] Returns the model itself
|
|
105
|
-
def self.build_from_hash(attributes)
|
|
106
|
-
return nil unless attributes.is_a?(Hash)
|
|
107
|
-
attributes = attributes.transform_keys(&:to_sym)
|
|
108
|
-
transformed_hash = {}
|
|
109
|
-
openapi_types.each_pair do |key, type|
|
|
110
|
-
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
111
|
-
transformed_hash["#{key}"] = nil
|
|
112
|
-
elsif type =~ /\AArray<(.*)>/i
|
|
113
|
-
# check to ensure the input is an array given that the attribute
|
|
114
|
-
# is documented as an array but the input is not
|
|
115
|
-
if attributes[attribute_map[key]].is_a?(Array)
|
|
116
|
-
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
117
|
-
end
|
|
118
|
-
elsif !attributes[attribute_map[key]].nil?
|
|
119
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
120
|
-
end
|
|
121
|
-
end
|
|
122
|
-
new(transformed_hash)
|
|
123
|
-
end
|
|
124
|
-
|
|
125
|
-
# Deserializes the data based on type
|
|
126
|
-
# @param string type Data type
|
|
127
|
-
# @param string value Value to be deserialized
|
|
128
|
-
# @return [Object] Deserialized data
|
|
129
|
-
def self._deserialize(type, value)
|
|
130
|
-
case type.to_sym
|
|
131
|
-
when :Time
|
|
132
|
-
Time.parse(value)
|
|
133
|
-
when :Date
|
|
134
|
-
Date.parse(value)
|
|
135
|
-
when :String
|
|
136
|
-
value.to_s
|
|
137
|
-
when :Integer
|
|
138
|
-
value.to_i
|
|
139
|
-
when :Float
|
|
140
|
-
value.to_f
|
|
141
|
-
when :Boolean
|
|
142
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
143
|
-
true
|
|
144
|
-
else
|
|
145
|
-
false
|
|
146
|
-
end
|
|
147
|
-
when :Object
|
|
148
|
-
# generic object (usually a Hash), return directly
|
|
149
|
-
value
|
|
150
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
151
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
152
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
153
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
154
|
-
k_type = Regexp.last_match[:k_type]
|
|
155
|
-
v_type = Regexp.last_match[:v_type]
|
|
156
|
-
{}.tap do |hash|
|
|
157
|
-
value.each do |k, v|
|
|
158
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
159
|
-
end
|
|
160
|
-
end
|
|
161
|
-
else # model
|
|
162
|
-
# models (e.g. Pet) or oneOf
|
|
163
|
-
klass = PulpMavenClient.const_get(type)
|
|
164
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
165
|
-
end
|
|
166
|
-
end
|
|
167
|
-
|
|
168
|
-
# Returns the string representation of the object
|
|
169
|
-
# @return [String] String presentation of the object
|
|
170
|
-
def to_s
|
|
171
|
-
to_hash.to_s
|
|
172
|
-
end
|
|
173
|
-
|
|
174
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
175
|
-
# @return [Hash] Returns the object in the form of hash
|
|
176
|
-
def to_body
|
|
177
|
-
to_hash
|
|
178
|
-
end
|
|
179
|
-
|
|
180
|
-
# Returns the object in the form of hash
|
|
181
|
-
# @return [Hash] Returns the object in the form of hash
|
|
182
|
-
def to_hash
|
|
183
|
-
hash = {}
|
|
184
|
-
self.class.attribute_map.each_pair do |attr, param|
|
|
185
|
-
value = self.send(attr)
|
|
186
|
-
if value.nil?
|
|
187
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
188
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
189
|
-
end
|
|
190
|
-
|
|
191
|
-
hash[param] = _to_hash(value)
|
|
192
|
-
end
|
|
193
|
-
hash
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
# Outputs non-array value in the form of hash
|
|
197
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
198
|
-
# @param [Object] value Any valid value
|
|
199
|
-
# @return [Hash] Returns the value in the form of hash
|
|
200
|
-
def _to_hash(value)
|
|
201
|
-
if value.is_a?(Array)
|
|
202
|
-
value.compact.map { |v| _to_hash(v) }
|
|
203
|
-
elsif value.is_a?(Hash)
|
|
204
|
-
{}.tap do |hash|
|
|
205
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
206
|
-
end
|
|
207
|
-
elsif value.respond_to? :to_hash
|
|
208
|
-
value.to_hash
|
|
209
|
-
else
|
|
210
|
-
value
|
|
211
|
-
end
|
|
212
|
-
end
|
|
213
|
-
|
|
214
|
-
end
|
|
215
|
-
|
|
216
|
-
end
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#Pulp 3 API
|
|
3
|
-
|
|
4
|
-
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: v3
|
|
7
|
-
Contact: pulp-list@redhat.com
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.10.0
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'spec_helper'
|
|
14
|
-
require 'json'
|
|
15
|
-
require 'date'
|
|
16
|
-
|
|
17
|
-
# Unit tests for PulpMavenClient::RepositoryAddCachedContent
|
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
-
# Please update as you see appropriate
|
|
20
|
-
describe PulpMavenClient::RepositoryAddCachedContent do
|
|
21
|
-
let(:instance) { PulpMavenClient::RepositoryAddCachedContent.new }
|
|
22
|
-
|
|
23
|
-
describe 'test an instance of RepositoryAddCachedContent' do
|
|
24
|
-
it 'should create an instance of RepositoryAddCachedContent' do
|
|
25
|
-
# uncomment below to test the instance creation
|
|
26
|
-
#expect(instance).to be_instance_of(PulpMavenClient::RepositoryAddCachedContent)
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
describe 'test attribute "remote"' do
|
|
31
|
-
it 'should work' do
|
|
32
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
end
|