pulp_maven_client 0.3.2 → 0.3.3
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 +5 -6
- data/docs/ContentArtifactApi.md +2 -2
- data/docs/DistributionsMavenApi.md +2 -2
- data/docs/MavenMavenRemote.md +2 -2
- data/docs/PatchedmavenMavenRemote.md +2 -2
- data/docs/RemotesMavenApi.md +2 -2
- data/docs/Repair.md +17 -0
- data/docs/RepositoriesMavenApi.md +2 -2
- data/docs/RepositoriesMavenVersionsApi.md +6 -6
- data/lib/pulp_maven_client/api/content_artifact_api.rb +7 -3
- data/lib/pulp_maven_client/api/distributions_maven_api.rb +7 -3
- data/lib/pulp_maven_client/api/remotes_maven_api.rb +7 -3
- data/lib/pulp_maven_client/api/repositories_maven_api.rb +7 -3
- data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +16 -12
- data/lib/pulp_maven_client/api_client.rb +1 -4
- data/lib/pulp_maven_client/configuration.rb +1 -0
- data/lib/pulp_maven_client/models/maven_maven_remote.rb +2 -2
- data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +2 -2
- data/lib/pulp_maven_client/models/{repository_version.rb → repair.rb} +13 -12
- data/lib/pulp_maven_client/version.rb +1 -1
- data/lib/pulp_maven_client.rb +1 -2
- data/pulp_maven_client.gemspec +1 -1
- data/spec/api/content_artifact_api_spec.rb +1 -1
- data/spec/api/distributions_maven_api_spec.rb +1 -1
- data/spec/api/remotes_maven_api_spec.rb +1 -1
- data/spec/api/repositories_maven_api_spec.rb +1 -1
- data/spec/api/repositories_maven_versions_api_spec.rb +2 -2
- data/spec/models/{repository_version_spec.rb → repair_spec.rb} +7 -7
- metadata +30 -28
- data/docs/ContentSummary.md +0 -21
- data/docs/RepositoryVersion.md +0 -17
- data/lib/pulp_maven_client/models/content_summary.rb +0 -246
- data/spec/models/content_summary_spec.rb +0 -53
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5f49c339b5ad7c1705e11e6dd6702cbb0882ba6fc1de6dde1d34e90502a52e1f
|
|
4
|
+
data.tar.gz: cea28224fdb24aa34e1b6da1e1925831a7012814499c0d7bf3e9dbf0eecdca1d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 89a6fbef49de90991122b65d4b735230e2ec2a777a3804f39f48febff578ea40f7e41797910e1ed848015b2a5de92338aa1ee0e7b76b01adb8f0faf904de96d5
|
|
7
|
+
data.tar.gz: 0cb46b7529cfb551ae4b69dba581eb21ae84110056a28378ace083b86859ffaa041421df62f4af4d35eb594b123900b72290d252a7ab301c18f83b3950ccf3dc
|
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.3.
|
|
10
|
+
- Package version: 0.3.3
|
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
12
12
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
|
13
13
|
|
|
@@ -24,16 +24,16 @@ gem build pulp_maven_client.gemspec
|
|
|
24
24
|
Then either install the gem locally:
|
|
25
25
|
|
|
26
26
|
```shell
|
|
27
|
-
gem install ./pulp_maven_client-0.3.
|
|
27
|
+
gem install ./pulp_maven_client-0.3.3.gem
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
(for development, run `gem install --dev ./pulp_maven_client-0.3.
|
|
30
|
+
(for development, run `gem install --dev ./pulp_maven_client-0.3.3.gem` to install the development dependencies)
|
|
31
31
|
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
33
33
|
|
|
34
34
|
Finally add this to the Gemfile:
|
|
35
35
|
|
|
36
|
-
gem 'pulp_maven_client', '~> 0.3.
|
|
36
|
+
gem 'pulp_maven_client', '~> 0.3.3'
|
|
37
37
|
|
|
38
38
|
### Install from Git
|
|
39
39
|
|
|
@@ -113,7 +113,6 @@ Class | Method | HTTP request | Description
|
|
|
113
113
|
## Documentation for Models
|
|
114
114
|
|
|
115
115
|
- [PulpMavenClient::AsyncOperationResponse](docs/AsyncOperationResponse.md)
|
|
116
|
-
- [PulpMavenClient::ContentSummary](docs/ContentSummary.md)
|
|
117
116
|
- [PulpMavenClient::ContentSummaryResponse](docs/ContentSummaryResponse.md)
|
|
118
117
|
- [PulpMavenClient::MavenMavenArtifact](docs/MavenMavenArtifact.md)
|
|
119
118
|
- [PulpMavenClient::MavenMavenArtifactResponse](docs/MavenMavenArtifactResponse.md)
|
|
@@ -132,7 +131,7 @@ Class | Method | HTTP request | Description
|
|
|
132
131
|
- [PulpMavenClient::PatchedmavenMavenRemote](docs/PatchedmavenMavenRemote.md)
|
|
133
132
|
- [PulpMavenClient::PatchedmavenMavenRepository](docs/PatchedmavenMavenRepository.md)
|
|
134
133
|
- [PulpMavenClient::PolicyEnum](docs/PolicyEnum.md)
|
|
135
|
-
- [PulpMavenClient::
|
|
134
|
+
- [PulpMavenClient::Repair](docs/Repair.md)
|
|
136
135
|
- [PulpMavenClient::RepositoryVersionResponse](docs/RepositoryVersionResponse.md)
|
|
137
136
|
|
|
138
137
|
|
data/docs/ContentArtifactApi.md
CHANGED
|
@@ -90,7 +90,7 @@ opts = {
|
|
|
90
90
|
group_id: 'group_id_example', # String | Filter results where group_id matches value
|
|
91
91
|
limit: 56, # Integer | Number of results to return per page.
|
|
92
92
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
93
|
-
ordering: 'ordering_example', # String |
|
|
93
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
|
94
94
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
|
|
95
95
|
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
|
|
96
96
|
repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
|
|
@@ -118,7 +118,7 @@ Name | Type | Description | Notes
|
|
|
118
118
|
**group_id** | **String**| Filter results where group_id matches value | [optional]
|
|
119
119
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
120
120
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
121
|
-
**ordering** | **String
|
|
121
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
|
122
122
|
**repository_version** | **String**| Repository Version referenced by HREF | [optional]
|
|
123
123
|
**repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
|
|
124
124
|
**repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
|
|
@@ -152,7 +152,7 @@ opts = {
|
|
|
152
152
|
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
|
153
153
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
|
154
154
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
155
|
-
ordering: 'ordering_example', # String |
|
|
155
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
|
156
156
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
|
157
157
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
158
158
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
@@ -183,7 +183,7 @@ Name | Type | Description | Notes
|
|
|
183
183
|
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
|
184
184
|
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
|
185
185
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
186
|
-
**ordering** | **String
|
|
186
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
|
187
187
|
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
|
188
188
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
189
189
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
data/docs/MavenMavenRemote.md
CHANGED
|
@@ -12,9 +12,9 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
|
13
13
|
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
|
14
14
|
**proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
|
|
15
|
-
**proxy_password** | **String** | The password to
|
|
15
|
+
**proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
|
16
16
|
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
|
17
|
-
**password** | **String** | The password to be used for authentication when syncing. | [optional]
|
|
17
|
+
**password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
|
18
18
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
19
19
|
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
|
20
20
|
**max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
|
|
@@ -12,9 +12,9 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
|
13
13
|
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
|
14
14
|
**proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
|
|
15
|
-
**proxy_password** | **String** | The password to
|
|
15
|
+
**proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
|
16
16
|
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
|
17
|
-
**password** | **String** | The password to be used for authentication when syncing. | [optional]
|
|
17
|
+
**password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
|
18
18
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
19
19
|
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
|
20
20
|
**max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
|
data/docs/RemotesMavenApi.md
CHANGED
|
@@ -148,7 +148,7 @@ opts = {
|
|
|
148
148
|
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
|
149
149
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
|
150
150
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
151
|
-
ordering: 'ordering_example', # String |
|
|
151
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
|
152
152
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
|
153
153
|
pulp_last_updated: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | ISO 8601 formatted dates are supported
|
|
154
154
|
pulp_last_updated__gt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_last_updated is greater than value
|
|
@@ -181,7 +181,7 @@ Name | Type | Description | Notes
|
|
|
181
181
|
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
|
182
182
|
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
|
183
183
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
184
|
-
**ordering** | **String
|
|
184
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
|
185
185
|
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
|
186
186
|
**pulp_last_updated** | **DateTime**| ISO 8601 formatted dates are supported | [optional]
|
|
187
187
|
**pulp_last_updated__gt** | **DateTime**| Filter results where pulp_last_updated is greater than value | [optional]
|
data/docs/Repair.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# PulpMavenClient::Repair
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**verify_checksums** | **Boolean** | Will verify that the checksum of all stored files matches what saved in the database. Otherwise only the existence of the files will be checked. Enabled by default | [optional] [default to true]
|
|
8
|
+
|
|
9
|
+
## Code Sample
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'PulpMavenClient'
|
|
13
|
+
|
|
14
|
+
instance = PulpMavenClient::Repair.new(verify_checksums: null)
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
|
|
@@ -148,7 +148,7 @@ opts = {
|
|
|
148
148
|
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
|
149
149
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
|
150
150
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
151
|
-
ordering: 'ordering_example', # String |
|
|
151
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
|
152
152
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
|
153
153
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
154
154
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
@@ -175,7 +175,7 @@ Name | Type | Description | Notes
|
|
|
175
175
|
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
|
176
176
|
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
|
177
177
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
178
|
-
**ordering** | **String
|
|
178
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
|
179
179
|
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
|
180
180
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
181
181
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
@@ -97,7 +97,7 @@ opts = {
|
|
|
97
97
|
number__lte: 56, # Integer | Filter results where number is less than or equal to value
|
|
98
98
|
number__range: [56], # Array<Integer> | Filter results where number is between two comma separated values
|
|
99
99
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
100
|
-
ordering: 'ordering_example', # String |
|
|
100
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
|
101
101
|
pulp_created: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | ISO 8601 formatted dates are supported
|
|
102
102
|
pulp_created__gt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than value
|
|
103
103
|
pulp_created__gte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than or equal to value
|
|
@@ -133,7 +133,7 @@ Name | Type | Description | Notes
|
|
|
133
133
|
**number__lte** | **Integer**| Filter results where number is less than or equal to value | [optional]
|
|
134
134
|
**number__range** | [**Array<Integer>**](Integer.md)| Filter results where number is between two comma separated values | [optional]
|
|
135
135
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
136
|
-
**ordering** | **String
|
|
136
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
|
137
137
|
**pulp_created** | **DateTime**| ISO 8601 formatted dates are supported | [optional]
|
|
138
138
|
**pulp_created__gt** | **DateTime**| Filter results where pulp_created is greater than value | [optional]
|
|
139
139
|
**pulp_created__gte** | **DateTime**| Filter results where pulp_created is greater than or equal to value | [optional]
|
|
@@ -218,7 +218,7 @@ Name | Type | Description | Notes
|
|
|
218
218
|
|
|
219
219
|
## repair
|
|
220
220
|
|
|
221
|
-
> AsyncOperationResponse repair(maven_maven_repository_version_href,
|
|
221
|
+
> AsyncOperationResponse repair(maven_maven_repository_version_href, repair)
|
|
222
222
|
|
|
223
223
|
|
|
224
224
|
|
|
@@ -238,10 +238,10 @@ end
|
|
|
238
238
|
|
|
239
239
|
api_instance = PulpMavenClient::RepositoriesMavenVersionsApi.new
|
|
240
240
|
maven_maven_repository_version_href = 'maven_maven_repository_version_href_example' # String |
|
|
241
|
-
|
|
241
|
+
repair = PulpMavenClient::Repair.new # Repair |
|
|
242
242
|
|
|
243
243
|
begin
|
|
244
|
-
result = api_instance.repair(maven_maven_repository_version_href,
|
|
244
|
+
result = api_instance.repair(maven_maven_repository_version_href, repair)
|
|
245
245
|
p result
|
|
246
246
|
rescue PulpMavenClient::ApiError => e
|
|
247
247
|
puts "Exception when calling RepositoriesMavenVersionsApi->repair: #{e}"
|
|
@@ -254,7 +254,7 @@ end
|
|
|
254
254
|
Name | Type | Description | Notes
|
|
255
255
|
------------- | ------------- | ------------- | -------------
|
|
256
256
|
**maven_maven_repository_version_href** | **String**| |
|
|
257
|
-
**
|
|
257
|
+
**repair** | [**Repair**](Repair.md)| |
|
|
258
258
|
|
|
259
259
|
### Return type
|
|
260
260
|
|
|
@@ -91,7 +91,7 @@ module PulpMavenClient
|
|
|
91
91
|
# @option opts [String] :group_id Filter results where group_id matches value
|
|
92
92
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
93
93
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
94
|
-
# @option opts [String] :ordering
|
|
94
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
95
95
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
96
96
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
|
97
97
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
|
@@ -112,7 +112,7 @@ module PulpMavenClient
|
|
|
112
112
|
# @option opts [String] :group_id Filter results where group_id matches value
|
|
113
113
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
114
114
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
115
|
-
# @option opts [String] :ordering
|
|
115
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
116
116
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
117
117
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
|
118
118
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
|
@@ -124,6 +124,10 @@ module PulpMavenClient
|
|
|
124
124
|
if @api_client.config.debugging
|
|
125
125
|
@api_client.config.logger.debug 'Calling API: ContentArtifactApi.list ...'
|
|
126
126
|
end
|
|
127
|
+
allowable_values = ["-_artifacts", "-artifact_id", "-content_ptr", "-contentartifact", "-filename", "-group_id", "-group_roles", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version", "-version_memberships", "_artifacts", "artifact_id", "content_ptr", "contentartifact", "filename", "group_id", "group_roles", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "timestamp_of_interest", "upstream_id", "user_roles", "version", "version_memberships"]
|
|
128
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
129
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
130
|
+
end
|
|
127
131
|
# resource path
|
|
128
132
|
local_var_path = '/pulp/api/v3/content/maven/artifact/'
|
|
129
133
|
|
|
@@ -134,7 +138,7 @@ module PulpMavenClient
|
|
|
134
138
|
query_params[:'group_id'] = opts[:'group_id'] if !opts[:'group_id'].nil?
|
|
135
139
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
136
140
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
137
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
141
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
|
138
142
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
|
139
143
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
|
140
144
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
|
@@ -159,7 +159,7 @@ module PulpMavenClient
|
|
|
159
159
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
160
160
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
161
161
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
162
|
-
# @option opts [String] :ordering
|
|
162
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
163
163
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
164
164
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
165
165
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
@@ -183,7 +183,7 @@ module PulpMavenClient
|
|
|
183
183
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
184
184
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
185
185
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
186
|
-
# @option opts [String] :ordering
|
|
186
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
187
187
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
188
188
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
189
189
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
@@ -192,6 +192,10 @@ module PulpMavenClient
|
|
|
192
192
|
if @api_client.config.debugging
|
|
193
193
|
@api_client.config.logger.debug 'Calling API: DistributionsMavenApi.list ...'
|
|
194
194
|
end
|
|
195
|
+
allowable_values = ["-base_path", "-content_guard", "-group_roles", "-maven_mavendistribution", "-name", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-remote", "-repository", "-repository_version", "-user_roles", "base_path", "content_guard", "group_roles", "maven_mavendistribution", "name", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "remote", "repository", "repository_version", "user_roles"]
|
|
196
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
197
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
198
|
+
end
|
|
195
199
|
# resource path
|
|
196
200
|
local_var_path = '/pulp/api/v3/distributions/maven/maven/'
|
|
197
201
|
|
|
@@ -208,7 +212,7 @@ module PulpMavenClient
|
|
|
208
212
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
|
209
213
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
|
210
214
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
211
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
215
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
|
212
216
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
|
213
217
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
214
218
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
@@ -155,7 +155,7 @@ module PulpMavenClient
|
|
|
155
155
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
156
156
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
157
157
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
158
|
-
# @option opts [String] :ordering
|
|
158
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
159
159
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
160
160
|
# @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
|
|
161
161
|
# @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
|
@@ -181,7 +181,7 @@ module PulpMavenClient
|
|
|
181
181
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
182
182
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
183
183
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
184
|
-
# @option opts [String] :ordering
|
|
184
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
185
185
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
186
186
|
# @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
|
|
187
187
|
# @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
|
@@ -196,6 +196,10 @@ module PulpMavenClient
|
|
|
196
196
|
if @api_client.config.debugging
|
|
197
197
|
@api_client.config.logger.debug 'Calling API: RemotesMavenApi.list ...'
|
|
198
198
|
end
|
|
199
|
+
allowable_values = ["-alternatecontentsource", "-basedistribution", "-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-distribution", "-download_concurrency", "-group_roles", "-headers", "-maven_mavenremote", "-max_retries", "-name", "-password", "-pk", "-policy", "-proxy_password", "-proxy_url", "-proxy_username", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-rate_limit", "-remoteartifact", "-repository", "-sock_connect_timeout", "-sock_read_timeout", "-tls_validation", "-total_timeout", "-url", "-user_roles", "-username", "alternatecontentsource", "basedistribution", "ca_cert", "client_cert", "client_key", "connect_timeout", "distribution", "download_concurrency", "group_roles", "headers", "maven_mavenremote", "max_retries", "name", "password", "pk", "policy", "proxy_password", "proxy_url", "proxy_username", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "rate_limit", "remoteartifact", "repository", "sock_connect_timeout", "sock_read_timeout", "tls_validation", "total_timeout", "url", "user_roles", "username"]
|
|
200
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
201
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
202
|
+
end
|
|
199
203
|
# resource path
|
|
200
204
|
local_var_path = '/pulp/api/v3/remotes/maven/maven/'
|
|
201
205
|
|
|
@@ -208,7 +212,7 @@ module PulpMavenClient
|
|
|
208
212
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
|
209
213
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
|
210
214
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
211
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
215
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
|
212
216
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
|
213
217
|
query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
|
|
214
218
|
query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
|
|
@@ -155,7 +155,7 @@ module PulpMavenClient
|
|
|
155
155
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
156
156
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
157
157
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
158
|
-
# @option opts [String] :ordering
|
|
158
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
159
159
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
160
160
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
161
161
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
@@ -175,7 +175,7 @@ module PulpMavenClient
|
|
|
175
175
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
176
176
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
177
177
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
178
|
-
# @option opts [String] :ordering
|
|
178
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
179
179
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
180
180
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
181
181
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
@@ -184,6 +184,10 @@ module PulpMavenClient
|
|
|
184
184
|
if @api_client.config.debugging
|
|
185
185
|
@api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.list ...'
|
|
186
186
|
end
|
|
187
|
+
allowable_values = ["-alternatecontentsourcepath", "-content", "-core_pulp_exporter", "-description", "-distributions", "-group_roles", "-maven_mavenrepository", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-pulpimporterrepository", "-remote", "-repositorycontent", "-retain_repo_versions", "-user_hidden", "-user_roles", "-versions", "alternatecontentsourcepath", "content", "core_pulp_exporter", "description", "distributions", "group_roles", "maven_mavenrepository", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "pulpimporterrepository", "remote", "repositorycontent", "retain_repo_versions", "user_hidden", "user_roles", "versions"]
|
|
188
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
189
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
190
|
+
end
|
|
187
191
|
# resource path
|
|
188
192
|
local_var_path = '/pulp/api/v3/repositories/maven/maven/'
|
|
189
193
|
|
|
@@ -196,7 +200,7 @@ module PulpMavenClient
|
|
|
196
200
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
|
197
201
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
|
198
202
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
199
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
203
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
|
200
204
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
|
201
205
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
202
206
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
@@ -95,7 +95,7 @@ module PulpMavenClient
|
|
|
95
95
|
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
|
96
96
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
|
97
97
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
98
|
-
# @option opts [String] :ordering
|
|
98
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
99
99
|
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
|
100
100
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
|
101
101
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
|
@@ -124,7 +124,7 @@ module PulpMavenClient
|
|
|
124
124
|
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
|
125
125
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
|
126
126
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
127
|
-
# @option opts [String] :ordering
|
|
127
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
128
128
|
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
|
129
129
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
|
130
130
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
|
@@ -142,6 +142,10 @@ module PulpMavenClient
|
|
|
142
142
|
if @api_client.config.client_side_validation && maven_maven_repository_href.nil?
|
|
143
143
|
fail ArgumentError, "Missing the required parameter 'maven_maven_repository_href' when calling RepositoriesMavenVersionsApi.list"
|
|
144
144
|
end
|
|
145
|
+
allowable_values = ["-added_memberships", "-base_version", "-complete", "-counts", "-distribution", "-group_roles", "-number", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-removed_memberships", "-repository", "-user_roles", "-versions", "added_memberships", "base_version", "complete", "counts", "distribution", "group_roles", "number", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "removed_memberships", "repository", "user_roles", "versions"]
|
|
146
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
147
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
148
|
+
end
|
|
145
149
|
# resource path
|
|
146
150
|
local_var_path = '{maven_maven_repository_href}versions/'.sub('{' + 'maven_maven_repository_href' + '}', CGI.escape(maven_maven_repository_href.to_s).gsub('%2F', '/'))
|
|
147
151
|
|
|
@@ -157,7 +161,7 @@ module PulpMavenClient
|
|
|
157
161
|
query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
|
|
158
162
|
query_params[:'number__range'] = @api_client.build_collection_param(opts[:'number__range'], :csv) if !opts[:'number__range'].nil?
|
|
159
163
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
160
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
164
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
|
161
165
|
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
|
162
166
|
query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
|
|
163
167
|
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
|
@@ -270,20 +274,20 @@ module PulpMavenClient
|
|
|
270
274
|
|
|
271
275
|
# Trigger an asynchronous task to repair a repository version.
|
|
272
276
|
# @param maven_maven_repository_version_href [String]
|
|
273
|
-
# @param
|
|
277
|
+
# @param repair [Repair]
|
|
274
278
|
# @param [Hash] opts the optional parameters
|
|
275
279
|
# @return [AsyncOperationResponse]
|
|
276
|
-
def repair(maven_maven_repository_version_href,
|
|
277
|
-
data, _status_code, _headers = repair_with_http_info(maven_maven_repository_version_href,
|
|
280
|
+
def repair(maven_maven_repository_version_href, repair, opts = {})
|
|
281
|
+
data, _status_code, _headers = repair_with_http_info(maven_maven_repository_version_href, repair, opts)
|
|
278
282
|
data
|
|
279
283
|
end
|
|
280
284
|
|
|
281
285
|
# Trigger an asynchronous task to repair a repository version.
|
|
282
286
|
# @param maven_maven_repository_version_href [String]
|
|
283
|
-
# @param
|
|
287
|
+
# @param repair [Repair]
|
|
284
288
|
# @param [Hash] opts the optional parameters
|
|
285
289
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
286
|
-
def repair_with_http_info(maven_maven_repository_version_href,
|
|
290
|
+
def repair_with_http_info(maven_maven_repository_version_href, repair, opts = {})
|
|
287
291
|
if @api_client.config.debugging
|
|
288
292
|
@api_client.config.logger.debug 'Calling API: RepositoriesMavenVersionsApi.repair ...'
|
|
289
293
|
end
|
|
@@ -291,9 +295,9 @@ module PulpMavenClient
|
|
|
291
295
|
if @api_client.config.client_side_validation && maven_maven_repository_version_href.nil?
|
|
292
296
|
fail ArgumentError, "Missing the required parameter 'maven_maven_repository_version_href' when calling RepositoriesMavenVersionsApi.repair"
|
|
293
297
|
end
|
|
294
|
-
# verify the required parameter '
|
|
295
|
-
if @api_client.config.client_side_validation &&
|
|
296
|
-
fail ArgumentError, "Missing the required parameter '
|
|
298
|
+
# verify the required parameter 'repair' is set
|
|
299
|
+
if @api_client.config.client_side_validation && repair.nil?
|
|
300
|
+
fail ArgumentError, "Missing the required parameter 'repair' when calling RepositoriesMavenVersionsApi.repair"
|
|
297
301
|
end
|
|
298
302
|
# resource path
|
|
299
303
|
local_var_path = '{maven_maven_repository_version_href}repair/'.sub('{' + 'maven_maven_repository_version_href' + '}', CGI.escape(maven_maven_repository_version_href.to_s).gsub('%2F', '/'))
|
|
@@ -312,7 +316,7 @@ module PulpMavenClient
|
|
|
312
316
|
form_params = opts[:form_params] || {}
|
|
313
317
|
|
|
314
318
|
# http body (model)
|
|
315
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
|
319
|
+
post_body = opts[:body] || @api_client.object_to_http_body(repair)
|
|
316
320
|
|
|
317
321
|
# return_type
|
|
318
322
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
@@ -118,9 +118,6 @@ module PulpMavenClient
|
|
|
118
118
|
update_params_for_auth! header_params, query_params, opts[:auth_names]
|
|
119
119
|
|
|
120
120
|
req_opts = {
|
|
121
|
-
:method => http_method,
|
|
122
|
-
:headers => header_params,
|
|
123
|
-
:params => query_params,
|
|
124
121
|
:params_encoding => @config.params_encoding,
|
|
125
122
|
:timeout => @config.timeout,
|
|
126
123
|
:verbose => @config.debugging
|
|
@@ -128,13 +125,13 @@ module PulpMavenClient
|
|
|
128
125
|
|
|
129
126
|
if [:post, :patch, :put, :delete].include?(http_method)
|
|
130
127
|
req_body = build_request_body(header_params, form_params, opts[:body])
|
|
131
|
-
req_opts.update :body => req_body
|
|
132
128
|
if @config.debugging
|
|
133
129
|
@config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n"
|
|
134
130
|
end
|
|
135
131
|
end
|
|
136
132
|
request.headers = header_params
|
|
137
133
|
request.body = req_body
|
|
134
|
+
request.options = OpenStruct.new(req_opts)
|
|
138
135
|
request.url url
|
|
139
136
|
request.params = query_params
|
|
140
137
|
download_file(request) if opts[:return_type] == 'File'
|
|
@@ -39,13 +39,13 @@ module PulpMavenClient
|
|
|
39
39
|
# The username to authenticte to the proxy.
|
|
40
40
|
attr_accessor :proxy_username
|
|
41
41
|
|
|
42
|
-
# The password to
|
|
42
|
+
# The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
|
|
43
43
|
attr_accessor :proxy_password
|
|
44
44
|
|
|
45
45
|
# The username to be used for authentication when syncing.
|
|
46
46
|
attr_accessor :username
|
|
47
47
|
|
|
48
|
-
# The password to be used for authentication when syncing.
|
|
48
|
+
# The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
|
|
49
49
|
attr_accessor :password
|
|
50
50
|
|
|
51
51
|
attr_accessor :pulp_labels
|
|
@@ -39,13 +39,13 @@ module PulpMavenClient
|
|
|
39
39
|
# The username to authenticte to the proxy.
|
|
40
40
|
attr_accessor :proxy_username
|
|
41
41
|
|
|
42
|
-
# The password to
|
|
42
|
+
# The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
|
|
43
43
|
attr_accessor :proxy_password
|
|
44
44
|
|
|
45
45
|
# The username to be used for authentication when syncing.
|
|
46
46
|
attr_accessor :username
|
|
47
47
|
|
|
48
|
-
# The password to be used for authentication when syncing.
|
|
48
|
+
# The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
|
|
49
49
|
attr_accessor :password
|
|
50
50
|
|
|
51
51
|
attr_accessor :pulp_labels
|
|
@@ -13,22 +13,21 @@ OpenAPI Generator version: 4.3.1
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module PulpMavenClient
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
attr_accessor :base_version
|
|
16
|
+
class Repair
|
|
17
|
+
# Will verify that the checksum of all stored files matches what saved in the database. Otherwise only the existence of the files will be checked. Enabled by default
|
|
18
|
+
attr_accessor :verify_checksums
|
|
20
19
|
|
|
21
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
21
|
def self.attribute_map
|
|
23
22
|
{
|
|
24
|
-
:'
|
|
23
|
+
:'verify_checksums' => :'verify_checksums'
|
|
25
24
|
}
|
|
26
25
|
end
|
|
27
26
|
|
|
28
27
|
# Attribute type mapping.
|
|
29
28
|
def self.openapi_types
|
|
30
29
|
{
|
|
31
|
-
:'
|
|
30
|
+
:'verify_checksums' => :'Boolean'
|
|
32
31
|
}
|
|
33
32
|
end
|
|
34
33
|
|
|
@@ -42,19 +41,21 @@ module PulpMavenClient
|
|
|
42
41
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
43
42
|
def initialize(attributes = {})
|
|
44
43
|
if (!attributes.is_a?(Hash))
|
|
45
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::
|
|
44
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::Repair` initialize method"
|
|
46
45
|
end
|
|
47
46
|
|
|
48
47
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
49
48
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
50
49
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
51
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::
|
|
50
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::Repair`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
52
51
|
end
|
|
53
52
|
h[k.to_sym] = v
|
|
54
53
|
}
|
|
55
54
|
|
|
56
|
-
if attributes.key?(:'
|
|
57
|
-
self.
|
|
55
|
+
if attributes.key?(:'verify_checksums')
|
|
56
|
+
self.verify_checksums = attributes[:'verify_checksums']
|
|
57
|
+
else
|
|
58
|
+
self.verify_checksums = true
|
|
58
59
|
end
|
|
59
60
|
end
|
|
60
61
|
|
|
@@ -76,7 +77,7 @@ module PulpMavenClient
|
|
|
76
77
|
def ==(o)
|
|
77
78
|
return true if self.equal?(o)
|
|
78
79
|
self.class == o.class &&
|
|
79
|
-
|
|
80
|
+
verify_checksums == o.verify_checksums
|
|
80
81
|
end
|
|
81
82
|
|
|
82
83
|
# @see the `==` method
|
|
@@ -88,7 +89,7 @@ module PulpMavenClient
|
|
|
88
89
|
# Calculates hash code according to all attributes.
|
|
89
90
|
# @return [Integer] Hash code
|
|
90
91
|
def hash
|
|
91
|
-
[
|
|
92
|
+
[verify_checksums].hash
|
|
92
93
|
end
|
|
93
94
|
|
|
94
95
|
# Builds the object from hash
|
data/lib/pulp_maven_client.rb
CHANGED
|
@@ -18,7 +18,6 @@ require 'pulp_maven_client/configuration'
|
|
|
18
18
|
|
|
19
19
|
# Models
|
|
20
20
|
require 'pulp_maven_client/models/async_operation_response'
|
|
21
|
-
require 'pulp_maven_client/models/content_summary'
|
|
22
21
|
require 'pulp_maven_client/models/content_summary_response'
|
|
23
22
|
require 'pulp_maven_client/models/maven_maven_artifact'
|
|
24
23
|
require 'pulp_maven_client/models/maven_maven_artifact_response'
|
|
@@ -37,7 +36,7 @@ require 'pulp_maven_client/models/patchedmaven_maven_distribution'
|
|
|
37
36
|
require 'pulp_maven_client/models/patchedmaven_maven_remote'
|
|
38
37
|
require 'pulp_maven_client/models/patchedmaven_maven_repository'
|
|
39
38
|
require 'pulp_maven_client/models/policy_enum'
|
|
40
|
-
require 'pulp_maven_client/models/
|
|
39
|
+
require 'pulp_maven_client/models/repair'
|
|
41
40
|
require 'pulp_maven_client/models/repository_version_response'
|
|
42
41
|
|
|
43
42
|
# APIs
|
data/pulp_maven_client.gemspec
CHANGED
|
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
|
|
|
27
27
|
s.license = 'GPL-2.0+'
|
|
28
28
|
s.required_ruby_version = ">= 1.9"
|
|
29
29
|
|
|
30
|
-
s.add_runtime_dependency 'faraday', '
|
|
30
|
+
s.add_runtime_dependency 'faraday', '~> 0.17', '< 1.9.0'
|
|
31
31
|
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
|
32
32
|
|
|
33
33
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
|
@@ -53,7 +53,7 @@ describe 'ContentArtifactApi' do
|
|
|
53
53
|
# @option opts [String] :group_id Filter results where group_id matches value
|
|
54
54
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
55
55
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
56
|
-
# @option opts [String] :ordering
|
|
56
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
57
57
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
58
58
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
|
59
59
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
|
@@ -71,7 +71,7 @@ describe 'DistributionsMavenApi' do
|
|
|
71
71
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
72
72
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
73
73
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
74
|
-
# @option opts [String] :ordering
|
|
74
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
75
75
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
76
76
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
77
77
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
@@ -67,7 +67,7 @@ describe 'RemotesMavenApi' do
|
|
|
67
67
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
68
68
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
69
69
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
70
|
-
# @option opts [String] :ordering
|
|
70
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
71
71
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
72
72
|
# @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
|
|
73
73
|
# @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
|
@@ -67,7 +67,7 @@ describe 'RepositoriesMavenApi' do
|
|
|
67
67
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
68
68
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
69
69
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
70
|
-
# @option opts [String] :ordering
|
|
70
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
71
71
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
72
72
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
73
73
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
@@ -59,7 +59,7 @@ describe 'RepositoriesMavenVersionsApi' do
|
|
|
59
59
|
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
|
60
60
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
|
61
61
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
62
|
-
# @option opts [String] :ordering
|
|
62
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
63
63
|
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
|
64
64
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
|
65
65
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
|
@@ -92,7 +92,7 @@ describe 'RepositoriesMavenVersionsApi' do
|
|
|
92
92
|
# unit tests for repair
|
|
93
93
|
# Trigger an asynchronous task to repair a repository version.
|
|
94
94
|
# @param maven_maven_repository_version_href
|
|
95
|
-
# @param
|
|
95
|
+
# @param repair
|
|
96
96
|
# @param [Hash] opts the optional parameters
|
|
97
97
|
# @return [AsyncOperationResponse]
|
|
98
98
|
describe 'repair test' do
|
|
@@ -14,25 +14,25 @@ require 'spec_helper'
|
|
|
14
14
|
require 'json'
|
|
15
15
|
require 'date'
|
|
16
16
|
|
|
17
|
-
# Unit tests for PulpMavenClient::
|
|
17
|
+
# Unit tests for PulpMavenClient::Repair
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
|
-
describe '
|
|
20
|
+
describe 'Repair' do
|
|
21
21
|
before do
|
|
22
22
|
# run before each test
|
|
23
|
-
@instance = PulpMavenClient::
|
|
23
|
+
@instance = PulpMavenClient::Repair.new
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
after do
|
|
27
27
|
# run after each test
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
describe 'test an instance of
|
|
31
|
-
it 'should create an instance of
|
|
32
|
-
expect(@instance).to be_instance_of(PulpMavenClient::
|
|
30
|
+
describe 'test an instance of Repair' do
|
|
31
|
+
it 'should create an instance of Repair' do
|
|
32
|
+
expect(@instance).to be_instance_of(PulpMavenClient::Repair)
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
|
-
describe 'test attribute "
|
|
35
|
+
describe 'test attribute "verify_checksums"' do
|
|
36
36
|
it 'should work' do
|
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
38
|
end
|
metadata
CHANGED
|
@@ -1,29 +1,35 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pulp_maven_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-06-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - "
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '0.17'
|
|
20
|
+
- - "<"
|
|
18
21
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
22
|
+
version: 1.9.0
|
|
20
23
|
type: :runtime
|
|
21
24
|
prerelease: false
|
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
26
|
requirements:
|
|
24
|
-
- - "
|
|
27
|
+
- - "~>"
|
|
25
28
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 0.
|
|
29
|
+
version: '0.17'
|
|
30
|
+
- - "<"
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: 1.9.0
|
|
27
33
|
- !ruby/object:Gem::Dependency
|
|
28
34
|
name: json
|
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -76,7 +82,6 @@ files:
|
|
|
76
82
|
- Rakefile
|
|
77
83
|
- docs/AsyncOperationResponse.md
|
|
78
84
|
- docs/ContentArtifactApi.md
|
|
79
|
-
- docs/ContentSummary.md
|
|
80
85
|
- docs/ContentSummaryResponse.md
|
|
81
86
|
- docs/DistributionsMavenApi.md
|
|
82
87
|
- docs/MavenMavenArtifact.md
|
|
@@ -97,9 +102,9 @@ files:
|
|
|
97
102
|
- docs/PatchedmavenMavenRepository.md
|
|
98
103
|
- docs/PolicyEnum.md
|
|
99
104
|
- docs/RemotesMavenApi.md
|
|
105
|
+
- docs/Repair.md
|
|
100
106
|
- docs/RepositoriesMavenApi.md
|
|
101
107
|
- docs/RepositoriesMavenVersionsApi.md
|
|
102
|
-
- docs/RepositoryVersion.md
|
|
103
108
|
- docs/RepositoryVersionResponse.md
|
|
104
109
|
- git_push.sh
|
|
105
110
|
- lib/pulp_maven_client.rb
|
|
@@ -112,7 +117,6 @@ files:
|
|
|
112
117
|
- lib/pulp_maven_client/api_error.rb
|
|
113
118
|
- lib/pulp_maven_client/configuration.rb
|
|
114
119
|
- lib/pulp_maven_client/models/async_operation_response.rb
|
|
115
|
-
- lib/pulp_maven_client/models/content_summary.rb
|
|
116
120
|
- lib/pulp_maven_client/models/content_summary_response.rb
|
|
117
121
|
- lib/pulp_maven_client/models/maven_maven_artifact.rb
|
|
118
122
|
- lib/pulp_maven_client/models/maven_maven_artifact_response.rb
|
|
@@ -131,7 +135,7 @@ files:
|
|
|
131
135
|
- lib/pulp_maven_client/models/patchedmaven_maven_remote.rb
|
|
132
136
|
- lib/pulp_maven_client/models/patchedmaven_maven_repository.rb
|
|
133
137
|
- lib/pulp_maven_client/models/policy_enum.rb
|
|
134
|
-
- lib/pulp_maven_client/models/
|
|
138
|
+
- lib/pulp_maven_client/models/repair.rb
|
|
135
139
|
- lib/pulp_maven_client/models/repository_version_response.rb
|
|
136
140
|
- lib/pulp_maven_client/version.rb
|
|
137
141
|
- pulp_maven_client.gemspec
|
|
@@ -144,7 +148,6 @@ files:
|
|
|
144
148
|
- spec/configuration_spec.rb
|
|
145
149
|
- spec/models/async_operation_response_spec.rb
|
|
146
150
|
- spec/models/content_summary_response_spec.rb
|
|
147
|
-
- spec/models/content_summary_spec.rb
|
|
148
151
|
- spec/models/maven_maven_artifact_response_spec.rb
|
|
149
152
|
- spec/models/maven_maven_artifact_spec.rb
|
|
150
153
|
- spec/models/maven_maven_distribution_response_spec.rb
|
|
@@ -162,8 +165,8 @@ files:
|
|
|
162
165
|
- spec/models/patchedmaven_maven_remote_spec.rb
|
|
163
166
|
- spec/models/patchedmaven_maven_repository_spec.rb
|
|
164
167
|
- spec/models/policy_enum_spec.rb
|
|
168
|
+
- spec/models/repair_spec.rb
|
|
165
169
|
- spec/models/repository_version_response_spec.rb
|
|
166
|
-
- spec/models/repository_version_spec.rb
|
|
167
170
|
- spec/spec_helper.rb
|
|
168
171
|
homepage: https://openapi-generator.tech
|
|
169
172
|
licenses:
|
|
@@ -189,33 +192,32 @@ signing_key:
|
|
|
189
192
|
specification_version: 4
|
|
190
193
|
summary: Pulp 3 API Ruby Gem
|
|
191
194
|
test_files:
|
|
192
|
-
- spec/api/remotes_maven_api_spec.rb
|
|
193
|
-
- spec/api/repositories_maven_versions_api_spec.rb
|
|
194
195
|
- spec/api/content_artifact_api_spec.rb
|
|
196
|
+
- spec/api/repositories_maven_versions_api_spec.rb
|
|
195
197
|
- spec/api/repositories_maven_api_spec.rb
|
|
196
198
|
- spec/api/distributions_maven_api_spec.rb
|
|
199
|
+
- spec/api/remotes_maven_api_spec.rb
|
|
197
200
|
- spec/api_client_spec.rb
|
|
198
201
|
- spec/configuration_spec.rb
|
|
199
|
-
- spec/models/maven_maven_remote_spec.rb
|
|
200
|
-
- spec/models/maven_maven_distribution_spec.rb
|
|
201
|
-
- spec/models/paginatedmaven_maven_repository_response_list_spec.rb
|
|
202
|
-
- spec/models/maven_maven_artifact_spec.rb
|
|
203
|
-
- spec/models/maven_maven_artifact_response_spec.rb
|
|
204
202
|
- spec/models/paginated_repository_version_response_list_spec.rb
|
|
205
|
-
- spec/models/
|
|
203
|
+
- spec/models/repair_spec.rb
|
|
204
|
+
- spec/models/patchedmaven_maven_remote_spec.rb
|
|
205
|
+
- spec/models/maven_maven_distribution_spec.rb
|
|
206
|
+
- spec/models/maven_maven_remote_spec.rb
|
|
206
207
|
- spec/models/patchedmaven_maven_distribution_spec.rb
|
|
208
|
+
- spec/models/content_summary_response_spec.rb
|
|
209
|
+
- spec/models/maven_maven_distribution_response_spec.rb
|
|
207
210
|
- spec/models/policy_enum_spec.rb
|
|
208
|
-
- spec/models/
|
|
211
|
+
- spec/models/paginatedmaven_maven_remote_response_list_spec.rb
|
|
212
|
+
- spec/models/maven_maven_artifact_response_spec.rb
|
|
209
213
|
- spec/models/maven_maven_repository_spec.rb
|
|
210
|
-
- spec/models/content_summary_response_spec.rb
|
|
211
214
|
- spec/models/maven_maven_remote_response_spec.rb
|
|
212
|
-
- spec/models/content_summary_spec.rb
|
|
213
|
-
- spec/models/repository_version_spec.rb
|
|
214
|
-
- spec/models/async_operation_response_spec.rb
|
|
215
|
-
- spec/models/patchedmaven_maven_remote_spec.rb
|
|
216
|
-
- spec/models/maven_maven_repository_response_spec.rb
|
|
217
215
|
- spec/models/paginatedmaven_maven_distribution_response_list_spec.rb
|
|
218
216
|
- spec/models/paginatedmaven_maven_artifact_response_list_spec.rb
|
|
219
|
-
- spec/models/maven_maven_distribution_response_spec.rb
|
|
220
217
|
- spec/models/patchedmaven_maven_repository_spec.rb
|
|
218
|
+
- spec/models/async_operation_response_spec.rb
|
|
219
|
+
- spec/models/maven_maven_repository_response_spec.rb
|
|
220
|
+
- spec/models/repository_version_response_spec.rb
|
|
221
|
+
- spec/models/maven_maven_artifact_spec.rb
|
|
222
|
+
- spec/models/paginatedmaven_maven_repository_response_list_spec.rb
|
|
221
223
|
- spec/spec_helper.rb
|
data/docs/ContentSummary.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# PulpMavenClient::ContentSummary
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
Name | Type | Description | Notes
|
|
6
|
-
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**added** | **Hash<String, Object>** | |
|
|
8
|
-
**removed** | **Hash<String, Object>** | |
|
|
9
|
-
**present** | **Hash<String, Object>** | |
|
|
10
|
-
|
|
11
|
-
## Code Sample
|
|
12
|
-
|
|
13
|
-
```ruby
|
|
14
|
-
require 'PulpMavenClient'
|
|
15
|
-
|
|
16
|
-
instance = PulpMavenClient::ContentSummary.new(added: null,
|
|
17
|
-
removed: null,
|
|
18
|
-
present: null)
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
|
data/docs/RepositoryVersion.md
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# PulpMavenClient::RepositoryVersion
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
Name | Type | Description | Notes
|
|
6
|
-
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
|
|
8
|
-
|
|
9
|
-
## Code Sample
|
|
10
|
-
|
|
11
|
-
```ruby
|
|
12
|
-
require 'PulpMavenClient'
|
|
13
|
-
|
|
14
|
-
instance = PulpMavenClient::RepositoryVersion.new(base_version: null)
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
|
|
@@ -1,246 +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
|
-
OpenAPI Generator version: 4.3.1
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'date'
|
|
14
|
-
|
|
15
|
-
module PulpMavenClient
|
|
16
|
-
# Serializer for the RepositoryVersion content summary
|
|
17
|
-
class ContentSummary
|
|
18
|
-
attr_accessor :added
|
|
19
|
-
|
|
20
|
-
attr_accessor :removed
|
|
21
|
-
|
|
22
|
-
attr_accessor :present
|
|
23
|
-
|
|
24
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
|
-
def self.attribute_map
|
|
26
|
-
{
|
|
27
|
-
:'added' => :'added',
|
|
28
|
-
:'removed' => :'removed',
|
|
29
|
-
:'present' => :'present'
|
|
30
|
-
}
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
# Attribute type mapping.
|
|
34
|
-
def self.openapi_types
|
|
35
|
-
{
|
|
36
|
-
:'added' => :'Hash<String, Object>',
|
|
37
|
-
:'removed' => :'Hash<String, Object>',
|
|
38
|
-
:'present' => :'Hash<String, Object>'
|
|
39
|
-
}
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
# List of attributes with nullable: true
|
|
43
|
-
def self.openapi_nullable
|
|
44
|
-
Set.new([
|
|
45
|
-
])
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
# Initializes the object
|
|
49
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
50
|
-
def initialize(attributes = {})
|
|
51
|
-
if (!attributes.is_a?(Hash))
|
|
52
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::ContentSummary` initialize method"
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
|
56
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
57
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
|
58
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::ContentSummary`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
59
|
-
end
|
|
60
|
-
h[k.to_sym] = v
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
if attributes.key?(:'added')
|
|
64
|
-
if (value = attributes[:'added']).is_a?(Hash)
|
|
65
|
-
self.added = value
|
|
66
|
-
end
|
|
67
|
-
end
|
|
68
|
-
|
|
69
|
-
if attributes.key?(:'removed')
|
|
70
|
-
if (value = attributes[:'removed']).is_a?(Hash)
|
|
71
|
-
self.removed = value
|
|
72
|
-
end
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
if attributes.key?(:'present')
|
|
76
|
-
if (value = attributes[:'present']).is_a?(Hash)
|
|
77
|
-
self.present = value
|
|
78
|
-
end
|
|
79
|
-
end
|
|
80
|
-
end
|
|
81
|
-
|
|
82
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
|
83
|
-
# @return Array for valid properties with the reasons
|
|
84
|
-
def list_invalid_properties
|
|
85
|
-
invalid_properties = Array.new
|
|
86
|
-
if @added.nil?
|
|
87
|
-
invalid_properties.push('invalid value for "added", added cannot be nil.')
|
|
88
|
-
end
|
|
89
|
-
|
|
90
|
-
if @removed.nil?
|
|
91
|
-
invalid_properties.push('invalid value for "removed", removed cannot be nil.')
|
|
92
|
-
end
|
|
93
|
-
|
|
94
|
-
if @present.nil?
|
|
95
|
-
invalid_properties.push('invalid value for "present", present cannot be nil.')
|
|
96
|
-
end
|
|
97
|
-
|
|
98
|
-
invalid_properties
|
|
99
|
-
end
|
|
100
|
-
|
|
101
|
-
# Check to see if the all the properties in the model are valid
|
|
102
|
-
# @return true if the model is valid
|
|
103
|
-
def valid?
|
|
104
|
-
return false if @added.nil?
|
|
105
|
-
return false if @removed.nil?
|
|
106
|
-
return false if @present.nil?
|
|
107
|
-
true
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
# Checks equality by comparing each attribute.
|
|
111
|
-
# @param [Object] Object to be compared
|
|
112
|
-
def ==(o)
|
|
113
|
-
return true if self.equal?(o)
|
|
114
|
-
self.class == o.class &&
|
|
115
|
-
added == o.added &&
|
|
116
|
-
removed == o.removed &&
|
|
117
|
-
present == o.present
|
|
118
|
-
end
|
|
119
|
-
|
|
120
|
-
# @see the `==` method
|
|
121
|
-
# @param [Object] Object to be compared
|
|
122
|
-
def eql?(o)
|
|
123
|
-
self == o
|
|
124
|
-
end
|
|
125
|
-
|
|
126
|
-
# Calculates hash code according to all attributes.
|
|
127
|
-
# @return [Integer] Hash code
|
|
128
|
-
def hash
|
|
129
|
-
[added, removed, present].hash
|
|
130
|
-
end
|
|
131
|
-
|
|
132
|
-
# Builds the object from hash
|
|
133
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
134
|
-
# @return [Object] Returns the model itself
|
|
135
|
-
def self.build_from_hash(attributes)
|
|
136
|
-
new.build_from_hash(attributes)
|
|
137
|
-
end
|
|
138
|
-
|
|
139
|
-
# Builds the object from hash
|
|
140
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
141
|
-
# @return [Object] Returns the model itself
|
|
142
|
-
def build_from_hash(attributes)
|
|
143
|
-
return nil unless attributes.is_a?(Hash)
|
|
144
|
-
self.class.openapi_types.each_pair do |key, type|
|
|
145
|
-
if type =~ /\AArray<(.*)>/i
|
|
146
|
-
# check to ensure the input is an array given that the attribute
|
|
147
|
-
# is documented as an array but the input is not
|
|
148
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
149
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
150
|
-
end
|
|
151
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
152
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
153
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
154
|
-
end
|
|
155
|
-
|
|
156
|
-
self
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
# Deserializes the data based on type
|
|
160
|
-
# @param string type Data type
|
|
161
|
-
# @param string value Value to be deserialized
|
|
162
|
-
# @return [Object] Deserialized data
|
|
163
|
-
def _deserialize(type, value)
|
|
164
|
-
case type.to_sym
|
|
165
|
-
when :DateTime
|
|
166
|
-
DateTime.parse(value)
|
|
167
|
-
when :Date
|
|
168
|
-
Date.parse(value)
|
|
169
|
-
when :String
|
|
170
|
-
value.to_s
|
|
171
|
-
when :Integer
|
|
172
|
-
value.to_i
|
|
173
|
-
when :Float
|
|
174
|
-
value.to_f
|
|
175
|
-
when :Boolean
|
|
176
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
177
|
-
true
|
|
178
|
-
else
|
|
179
|
-
false
|
|
180
|
-
end
|
|
181
|
-
when :Object
|
|
182
|
-
# generic object (usually a Hash), return directly
|
|
183
|
-
value
|
|
184
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
185
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
186
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
187
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
188
|
-
k_type = Regexp.last_match[:k_type]
|
|
189
|
-
v_type = Regexp.last_match[:v_type]
|
|
190
|
-
{}.tap do |hash|
|
|
191
|
-
value.each do |k, v|
|
|
192
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
193
|
-
end
|
|
194
|
-
end
|
|
195
|
-
else # model
|
|
196
|
-
PulpMavenClient.const_get(type).build_from_hash(value)
|
|
197
|
-
end
|
|
198
|
-
end
|
|
199
|
-
|
|
200
|
-
# Returns the string representation of the object
|
|
201
|
-
# @return [String] String presentation of the object
|
|
202
|
-
def to_s
|
|
203
|
-
to_hash.to_s
|
|
204
|
-
end
|
|
205
|
-
|
|
206
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
207
|
-
# @return [Hash] Returns the object in the form of hash
|
|
208
|
-
def to_body
|
|
209
|
-
to_hash
|
|
210
|
-
end
|
|
211
|
-
|
|
212
|
-
# Returns the object in the form of hash
|
|
213
|
-
# @return [Hash] Returns the object in the form of hash
|
|
214
|
-
def to_hash
|
|
215
|
-
hash = {}
|
|
216
|
-
self.class.attribute_map.each_pair do |attr, param|
|
|
217
|
-
value = self.send(attr)
|
|
218
|
-
if value.nil?
|
|
219
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
220
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
221
|
-
end
|
|
222
|
-
|
|
223
|
-
hash[param] = _to_hash(value)
|
|
224
|
-
end
|
|
225
|
-
hash
|
|
226
|
-
end
|
|
227
|
-
|
|
228
|
-
# Outputs non-array value in the form of hash
|
|
229
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
230
|
-
# @param [Object] value Any valid value
|
|
231
|
-
# @return [Hash] Returns the value in the form of hash
|
|
232
|
-
def _to_hash(value)
|
|
233
|
-
if value.is_a?(Array)
|
|
234
|
-
value.compact.map { |v| _to_hash(v) }
|
|
235
|
-
elsif value.is_a?(Hash)
|
|
236
|
-
{}.tap do |hash|
|
|
237
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
238
|
-
end
|
|
239
|
-
elsif value.respond_to? :to_hash
|
|
240
|
-
value.to_hash
|
|
241
|
-
else
|
|
242
|
-
value
|
|
243
|
-
end
|
|
244
|
-
end
|
|
245
|
-
end
|
|
246
|
-
end
|
|
@@ -1,53 +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
|
-
OpenAPI Generator version: 4.3.1
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'spec_helper'
|
|
14
|
-
require 'json'
|
|
15
|
-
require 'date'
|
|
16
|
-
|
|
17
|
-
# Unit tests for PulpMavenClient::ContentSummary
|
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
-
# Please update as you see appropriate
|
|
20
|
-
describe 'ContentSummary' do
|
|
21
|
-
before do
|
|
22
|
-
# run before each test
|
|
23
|
-
@instance = PulpMavenClient::ContentSummary.new
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
after do
|
|
27
|
-
# run after each test
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
describe 'test an instance of ContentSummary' do
|
|
31
|
-
it 'should create an instance of ContentSummary' do
|
|
32
|
-
expect(@instance).to be_instance_of(PulpMavenClient::ContentSummary)
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
describe 'test attribute "added"' do
|
|
36
|
-
it 'should work' do
|
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
describe 'test attribute "removed"' do
|
|
42
|
-
it 'should work' do
|
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
describe 'test attribute "present"' do
|
|
48
|
-
it 'should work' do
|
|
49
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
-
end
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
end
|