pulpcore_client 3.0.0rc8 → 3.0.0rc9
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 -4
- data/docs/Status.md +1 -3
- data/docs/Task.md +0 -4
- data/docs/TasksApi.md +2 -2
- data/docs/Worker.md +4 -8
- data/lib/pulpcore_client/api/artifacts_api.rb +1 -1
- data/lib/pulpcore_client/api/orphans_api.rb +1 -1
- data/lib/pulpcore_client/api/status_api.rb +1 -1
- data/lib/pulpcore_client/api/tasks_api.rb +4 -4
- data/lib/pulpcore_client/api/uploads_api.rb +1 -1
- data/lib/pulpcore_client/api/workers_api.rb +1 -1
- data/lib/pulpcore_client/api_client.rb +1 -1
- data/lib/pulpcore_client/api_error.rb +1 -1
- data/lib/pulpcore_client/configuration.rb +2 -2
- data/lib/pulpcore_client/models/artifact.rb +1 -1
- data/lib/pulpcore_client/models/async_operation_response.rb +1 -1
- data/lib/pulpcore_client/models/content_app_status.rb +2 -2
- data/lib/pulpcore_client/models/database_connection.rb +1 -1
- data/lib/pulpcore_client/models/inline_response200.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2001.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2002.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2003.rb +1 -1
- data/lib/pulpcore_client/models/progress_report.rb +1 -1
- data/lib/pulpcore_client/models/redis_connection.rb +1 -1
- data/lib/pulpcore_client/models/status.rb +3 -20
- data/lib/pulpcore_client/models/storage.rb +1 -1
- data/lib/pulpcore_client/models/task.rb +2 -24
- data/lib/pulpcore_client/models/task_cancel.rb +1 -1
- data/lib/pulpcore_client/models/upload.rb +1 -1
- data/lib/pulpcore_client/models/upload_chunk.rb +1 -1
- data/lib/pulpcore_client/models/upload_commit.rb +1 -1
- data/lib/pulpcore_client/models/upload_detail.rb +1 -1
- data/lib/pulpcore_client/models/version.rb +1 -1
- data/lib/pulpcore_client/models/worker.rb +14 -34
- data/lib/pulpcore_client/version.rb +2 -2
- data/lib/pulpcore_client.rb +1 -1
- data/pulpcore_client.gemspec +1 -1
- data/spec/api/artifacts_api_spec.rb +1 -1
- data/spec/api/orphans_api_spec.rb +1 -1
- data/spec/api/status_api_spec.rb +1 -1
- data/spec/api/tasks_api_spec.rb +2 -2
- data/spec/api/uploads_api_spec.rb +1 -1
- data/spec/api/workers_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/artifact_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_app_status_spec.rb +1 -1
- data/spec/models/database_connection_spec.rb +1 -1
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/progress_report_spec.rb +1 -1
- data/spec/models/redis_connection_spec.rb +1 -1
- data/spec/models/status_spec.rb +1 -7
- data/spec/models/storage_spec.rb +1 -1
- data/spec/models/task_cancel_spec.rb +1 -1
- data/spec/models/task_spec.rb +1 -13
- data/spec/models/upload_chunk_spec.rb +1 -1
- data/spec/models/upload_commit_spec.rb +1 -1
- data/spec/models/upload_detail_spec.rb +1 -1
- data/spec/models/upload_spec.rb +1 -1
- data/spec/models/version_spec.rb +1 -1
- data/spec/models/worker_spec.rb +3 -15
- data/spec/spec_helper.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 13f180e20f8f85e17651121148fb7afc5be003ccdef239835fa60ec78c35a41d
|
|
4
|
+
data.tar.gz: 0c23f1fb546c3ae840f9e01657f942e54e7bbef3dc39d169ed05fc197669e3d9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 948d78f76aeec032b35695e610635fe0d40bd49ab6b226a64a09ea55130f77f927a64f7b0729a915d4b0f081de6c8a0442a733ac3fb8d53dadb91e959fcee347
|
|
7
|
+
data.tar.gz: 18146287c387258cf104977ff8e319a3852fc10ec9236380432910a2208d992116c2c4c1f192af17c1f8fc4deafc7476978a0bbf44d6ae56bf631215bace07f9
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
|
|
|
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: 3.0.
|
|
10
|
+
- Package version: 3.0.0rc9
|
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
12
12
|
|
|
13
13
|
## Installation
|
|
@@ -23,16 +23,16 @@ gem build pulpcore_client.gemspec
|
|
|
23
23
|
Then either install the gem locally:
|
|
24
24
|
|
|
25
25
|
```shell
|
|
26
|
-
gem install ./pulpcore_client-3.0.
|
|
26
|
+
gem install ./pulpcore_client-3.0.0rc9.gem
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
(for development, run `gem install --dev ./pulpcore_client-3.0.
|
|
29
|
+
(for development, run `gem install --dev ./pulpcore_client-3.0.0rc9.gem` to install the development dependencies)
|
|
30
30
|
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
32
32
|
|
|
33
33
|
Finally add this to the Gemfile:
|
|
34
34
|
|
|
35
|
-
gem 'pulpcore_client', '~> 3.0.
|
|
35
|
+
gem 'pulpcore_client', '~> 3.0.0rc9'
|
|
36
36
|
|
|
37
37
|
### Install from Git
|
|
38
38
|
|
data/docs/Status.md
CHANGED
|
@@ -6,8 +6,7 @@ Name | Type | Description | Notes
|
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**versions** | [**Array<Version>**](Version.md) | Version information of Pulp components |
|
|
8
8
|
**online_workers** | [**Array<Worker>**](Worker.md) | List of online workers known to the application. An online worker is actively heartbeating and can respond to new work |
|
|
9
|
-
**
|
|
10
|
-
**online_content_apps** | [**Array<ContentAppStatus>**](ContentAppStatus.md) | List of online content apps known to the application. An online worker is actively heartbeating |
|
|
9
|
+
**online_content_apps** | [**Array<ContentAppStatus>**](ContentAppStatus.md) | List of online content apps known to the application. An online content app is actively heartbeating and can serve data to clients |
|
|
11
10
|
**database_connection** | [**DatabaseConnection**](DatabaseConnection.md) | |
|
|
12
11
|
**redis_connection** | [**RedisConnection**](RedisConnection.md) | |
|
|
13
12
|
**storage** | [**Storage**](Storage.md) | | [optional]
|
|
@@ -19,7 +18,6 @@ require 'PulpcoreClient'
|
|
|
19
18
|
|
|
20
19
|
instance = PulpcoreClient::Status.new(versions: null,
|
|
21
20
|
online_workers: null,
|
|
22
|
-
missing_workers: null,
|
|
23
21
|
online_content_apps: null,
|
|
24
22
|
database_connection: null,
|
|
25
23
|
redis_connection: null,
|
data/docs/Task.md
CHANGED
|
@@ -12,8 +12,6 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**finished_at** | **DateTime** | Timestamp of the when this task stopped execution. | [optional] [readonly]
|
|
13
13
|
**error** | **Hash<String, Object>** | A JSON Object of a fatal error encountered during the execution of this task. | [optional] [readonly]
|
|
14
14
|
**worker** | **String** | The worker associated with this task. This field is empty if a worker is not yet assigned. | [optional] [readonly]
|
|
15
|
-
**parent** | **String** | The parent task that spawned this task. | [optional] [readonly]
|
|
16
|
-
**spawned_tasks** | **Array<String>** | Any tasks spawned by this task. | [optional] [readonly]
|
|
17
15
|
**progress_reports** | [**Array<ProgressReport>**](ProgressReport.md) | | [optional] [readonly]
|
|
18
16
|
**created_resources** | **Array<String>** | Resources created by this task. | [optional] [readonly]
|
|
19
17
|
**reserved_resources_record** | **Array<Object>** | | [optional] [readonly]
|
|
@@ -31,8 +29,6 @@ instance = PulpcoreClient::Task.new(pulp_href: null,
|
|
|
31
29
|
finished_at: null,
|
|
32
30
|
error: null,
|
|
33
31
|
worker: null,
|
|
34
|
-
parent: null,
|
|
35
|
-
spawned_tasks: null,
|
|
36
32
|
progress_reports: null,
|
|
37
33
|
created_resources: null,
|
|
38
34
|
reserved_resources_record: null)
|
data/docs/TasksApi.md
CHANGED
|
@@ -97,12 +97,12 @@ opts = {
|
|
|
97
97
|
finished_at__gt: 'finished_at__gt_example', # String | Filter results where finished_at is greater than value
|
|
98
98
|
finished_at__gte: 'finished_at__gte_example', # String | Filter results where finished_at is greater than or equal to value
|
|
99
99
|
finished_at__range: 'finished_at__range_example', # String | Filter results where finished_at is between two comma separated values
|
|
100
|
-
parent: 'parent_example', # String | Foreign Key referenced by HREF
|
|
101
100
|
reserved_resources_record: 'reserved_resources_record_example', # String |
|
|
102
101
|
created_resources: 'created_resources_example', # String |
|
|
103
102
|
name: 'name_example', # String |
|
|
104
103
|
started_at: 'started_at_example', # String | ISO 8601 formatted dates are supported
|
|
105
104
|
finished_at: 'finished_at_example', # String | ISO 8601 formatted dates are supported
|
|
105
|
+
parent: 'parent_example', # String | Foreign Key referenced by HREF
|
|
106
106
|
limit: 56, # Integer | Number of results to return per page.
|
|
107
107
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
108
108
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
@@ -139,12 +139,12 @@ Name | Type | Description | Notes
|
|
|
139
139
|
**finished_at__gt** | **String**| Filter results where finished_at is greater than value | [optional]
|
|
140
140
|
**finished_at__gte** | **String**| Filter results where finished_at is greater than or equal to value | [optional]
|
|
141
141
|
**finished_at__range** | **String**| Filter results where finished_at is between two comma separated values | [optional]
|
|
142
|
-
**parent** | **String**| Foreign Key referenced by HREF | [optional]
|
|
143
142
|
**reserved_resources_record** | **String**| | [optional]
|
|
144
143
|
**created_resources** | **String**| | [optional]
|
|
145
144
|
**name** | **String**| | [optional]
|
|
146
145
|
**started_at** | **String**| ISO 8601 formatted dates are supported | [optional]
|
|
147
146
|
**finished_at** | **String**| ISO 8601 formatted dates are supported | [optional]
|
|
147
|
+
**parent** | **String**| Foreign Key referenced by HREF | [optional]
|
|
148
148
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
149
149
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
150
150
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
data/docs/Worker.md
CHANGED
|
@@ -4,24 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**pulp_href** | **String** | | [optional] [readonly]
|
|
8
7
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
8
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
|
9
9
|
**name** | **String** | The name of the worker. | [optional] [readonly]
|
|
10
10
|
**last_heartbeat** | **DateTime** | Timestamp of the last time the worker talked to the service. | [optional] [readonly]
|
|
11
|
-
**online** | **Boolean** | True if the worker is considered online, otherwise False | [optional] [readonly]
|
|
12
|
-
**missing** | **Boolean** | True if the worker is considerd missing, otherwise False | [optional] [readonly]
|
|
13
11
|
|
|
14
12
|
## Code Sample
|
|
15
13
|
|
|
16
14
|
```ruby
|
|
17
15
|
require 'PulpcoreClient'
|
|
18
16
|
|
|
19
|
-
instance = PulpcoreClient::Worker.new(
|
|
20
|
-
|
|
17
|
+
instance = PulpcoreClient::Worker.new(pulp_created: null,
|
|
18
|
+
pulp_href: null,
|
|
21
19
|
name: null,
|
|
22
|
-
last_heartbeat: null
|
|
23
|
-
online: null,
|
|
24
|
-
missing: null)
|
|
20
|
+
last_heartbeat: null)
|
|
25
21
|
```
|
|
26
22
|
|
|
27
23
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -95,12 +95,12 @@ module PulpcoreClient
|
|
|
95
95
|
# @option opts [String] :finished_at__gt Filter results where finished_at is greater than value
|
|
96
96
|
# @option opts [String] :finished_at__gte Filter results where finished_at is greater than or equal to value
|
|
97
97
|
# @option opts [String] :finished_at__range Filter results where finished_at is between two comma separated values
|
|
98
|
-
# @option opts [String] :parent Foreign Key referenced by HREF
|
|
99
98
|
# @option opts [String] :reserved_resources_record
|
|
100
99
|
# @option opts [String] :created_resources
|
|
101
100
|
# @option opts [String] :name
|
|
102
101
|
# @option opts [String] :started_at ISO 8601 formatted dates are supported
|
|
103
102
|
# @option opts [String] :finished_at ISO 8601 formatted dates are supported
|
|
103
|
+
# @option opts [String] :parent Foreign Key referenced by HREF
|
|
104
104
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
105
105
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
106
106
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
@@ -129,12 +129,12 @@ module PulpcoreClient
|
|
|
129
129
|
# @option opts [String] :finished_at__gt Filter results where finished_at is greater than value
|
|
130
130
|
# @option opts [String] :finished_at__gte Filter results where finished_at is greater than or equal to value
|
|
131
131
|
# @option opts [String] :finished_at__range Filter results where finished_at is between two comma separated values
|
|
132
|
-
# @option opts [String] :parent Foreign Key referenced by HREF
|
|
133
132
|
# @option opts [String] :reserved_resources_record
|
|
134
133
|
# @option opts [String] :created_resources
|
|
135
134
|
# @option opts [String] :name
|
|
136
135
|
# @option opts [String] :started_at ISO 8601 formatted dates are supported
|
|
137
136
|
# @option opts [String] :finished_at ISO 8601 formatted dates are supported
|
|
137
|
+
# @option opts [String] :parent Foreign Key referenced by HREF
|
|
138
138
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
139
139
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
140
140
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
@@ -165,12 +165,12 @@ module PulpcoreClient
|
|
|
165
165
|
query_params[:'finished_at__gt'] = opts[:'finished_at__gt'] if !opts[:'finished_at__gt'].nil?
|
|
166
166
|
query_params[:'finished_at__gte'] = opts[:'finished_at__gte'] if !opts[:'finished_at__gte'].nil?
|
|
167
167
|
query_params[:'finished_at__range'] = opts[:'finished_at__range'] if !opts[:'finished_at__range'].nil?
|
|
168
|
-
query_params[:'parent'] = opts[:'parent'] if !opts[:'parent'].nil?
|
|
169
168
|
query_params[:'reserved_resources_record'] = opts[:'reserved_resources_record'] if !opts[:'reserved_resources_record'].nil?
|
|
170
169
|
query_params[:'created_resources'] = opts[:'created_resources'] if !opts[:'created_resources'].nil?
|
|
171
170
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
172
171
|
query_params[:'started_at'] = opts[:'started_at'] if !opts[:'started_at'].nil?
|
|
173
172
|
query_params[:'finished_at'] = opts[:'finished_at'] if !opts[:'finished_at'].nil?
|
|
173
|
+
query_params[:'parent'] = opts[:'parent'] if !opts[:'parent'].nil?
|
|
174
174
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
175
175
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
176
176
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -203,7 +203,7 @@ module PulpcoreClient
|
|
|
203
203
|
[
|
|
204
204
|
{
|
|
205
205
|
url: "http://localhost:24817/",
|
|
206
|
-
description: "No
|
|
206
|
+
description: "No description provided",
|
|
207
207
|
}
|
|
208
208
|
]
|
|
209
209
|
end
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module PulpcoreClient
|
|
16
|
-
# List of online content apps known to the application. An online
|
|
16
|
+
# List of online content apps known to the application. An online content app is actively heartbeating and can serve data to clients
|
|
17
17
|
class ContentAppStatus
|
|
18
18
|
# The name of the worker.
|
|
19
19
|
attr_accessor :name
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -20,10 +20,7 @@ module PulpcoreClient
|
|
|
20
20
|
# List of online workers known to the application. An online worker is actively heartbeating and can respond to new work
|
|
21
21
|
attr_accessor :online_workers
|
|
22
22
|
|
|
23
|
-
# List of
|
|
24
|
-
attr_accessor :missing_workers
|
|
25
|
-
|
|
26
|
-
# List of online content apps known to the application. An online worker is actively heartbeating
|
|
23
|
+
# List of online content apps known to the application. An online content app is actively heartbeating and can serve data to clients
|
|
27
24
|
attr_accessor :online_content_apps
|
|
28
25
|
|
|
29
26
|
attr_accessor :database_connection
|
|
@@ -37,7 +34,6 @@ module PulpcoreClient
|
|
|
37
34
|
{
|
|
38
35
|
:'versions' => :'versions',
|
|
39
36
|
:'online_workers' => :'online_workers',
|
|
40
|
-
:'missing_workers' => :'missing_workers',
|
|
41
37
|
:'online_content_apps' => :'online_content_apps',
|
|
42
38
|
:'database_connection' => :'database_connection',
|
|
43
39
|
:'redis_connection' => :'redis_connection',
|
|
@@ -50,7 +46,6 @@ module PulpcoreClient
|
|
|
50
46
|
{
|
|
51
47
|
:'versions' => :'Array<Version>',
|
|
52
48
|
:'online_workers' => :'Array<Worker>',
|
|
53
|
-
:'missing_workers' => :'Array<Worker>',
|
|
54
49
|
:'online_content_apps' => :'Array<ContentAppStatus>',
|
|
55
50
|
:'database_connection' => :'DatabaseConnection',
|
|
56
51
|
:'redis_connection' => :'RedisConnection',
|
|
@@ -91,12 +86,6 @@ module PulpcoreClient
|
|
|
91
86
|
end
|
|
92
87
|
end
|
|
93
88
|
|
|
94
|
-
if attributes.key?(:'missing_workers')
|
|
95
|
-
if (value = attributes[:'missing_workers']).is_a?(Array)
|
|
96
|
-
self.missing_workers = value
|
|
97
|
-
end
|
|
98
|
-
end
|
|
99
|
-
|
|
100
89
|
if attributes.key?(:'online_content_apps')
|
|
101
90
|
if (value = attributes[:'online_content_apps']).is_a?(Array)
|
|
102
91
|
self.online_content_apps = value
|
|
@@ -128,10 +117,6 @@ module PulpcoreClient
|
|
|
128
117
|
invalid_properties.push('invalid value for "online_workers", online_workers cannot be nil.')
|
|
129
118
|
end
|
|
130
119
|
|
|
131
|
-
if @missing_workers.nil?
|
|
132
|
-
invalid_properties.push('invalid value for "missing_workers", missing_workers cannot be nil.')
|
|
133
|
-
end
|
|
134
|
-
|
|
135
120
|
if @online_content_apps.nil?
|
|
136
121
|
invalid_properties.push('invalid value for "online_content_apps", online_content_apps cannot be nil.')
|
|
137
122
|
end
|
|
@@ -152,7 +137,6 @@ module PulpcoreClient
|
|
|
152
137
|
def valid?
|
|
153
138
|
return false if @versions.nil?
|
|
154
139
|
return false if @online_workers.nil?
|
|
155
|
-
return false if @missing_workers.nil?
|
|
156
140
|
return false if @online_content_apps.nil?
|
|
157
141
|
return false if @database_connection.nil?
|
|
158
142
|
return false if @redis_connection.nil?
|
|
@@ -166,7 +150,6 @@ module PulpcoreClient
|
|
|
166
150
|
self.class == o.class &&
|
|
167
151
|
versions == o.versions &&
|
|
168
152
|
online_workers == o.online_workers &&
|
|
169
|
-
missing_workers == o.missing_workers &&
|
|
170
153
|
online_content_apps == o.online_content_apps &&
|
|
171
154
|
database_connection == o.database_connection &&
|
|
172
155
|
redis_connection == o.redis_connection &&
|
|
@@ -182,7 +165,7 @@ module PulpcoreClient
|
|
|
182
165
|
# Calculates hash code according to all attributes.
|
|
183
166
|
# @return [Integer] Hash code
|
|
184
167
|
def hash
|
|
185
|
-
[versions, online_workers,
|
|
168
|
+
[versions, online_workers, online_content_apps, database_connection, redis_connection, storage].hash
|
|
186
169
|
end
|
|
187
170
|
|
|
188
171
|
# Builds the object from hash
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -37,12 +37,6 @@ module PulpcoreClient
|
|
|
37
37
|
# The worker associated with this task. This field is empty if a worker is not yet assigned.
|
|
38
38
|
attr_accessor :worker
|
|
39
39
|
|
|
40
|
-
# The parent task that spawned this task.
|
|
41
|
-
attr_accessor :parent
|
|
42
|
-
|
|
43
|
-
# Any tasks spawned by this task.
|
|
44
|
-
attr_accessor :spawned_tasks
|
|
45
|
-
|
|
46
40
|
attr_accessor :progress_reports
|
|
47
41
|
|
|
48
42
|
# Resources created by this task.
|
|
@@ -61,8 +55,6 @@ module PulpcoreClient
|
|
|
61
55
|
:'finished_at' => :'finished_at',
|
|
62
56
|
:'error' => :'error',
|
|
63
57
|
:'worker' => :'worker',
|
|
64
|
-
:'parent' => :'parent',
|
|
65
|
-
:'spawned_tasks' => :'spawned_tasks',
|
|
66
58
|
:'progress_reports' => :'progress_reports',
|
|
67
59
|
:'created_resources' => :'created_resources',
|
|
68
60
|
:'reserved_resources_record' => :'reserved_resources_record'
|
|
@@ -80,8 +72,6 @@ module PulpcoreClient
|
|
|
80
72
|
:'finished_at' => :'DateTime',
|
|
81
73
|
:'error' => :'Hash<String, Object>',
|
|
82
74
|
:'worker' => :'String',
|
|
83
|
-
:'parent' => :'String',
|
|
84
|
-
:'spawned_tasks' => :'Array<String>',
|
|
85
75
|
:'progress_reports' => :'Array<ProgressReport>',
|
|
86
76
|
:'created_resources' => :'Array<String>',
|
|
87
77
|
:'reserved_resources_record' => :'Array<Object>'
|
|
@@ -143,16 +133,6 @@ module PulpcoreClient
|
|
|
143
133
|
self.worker = attributes[:'worker']
|
|
144
134
|
end
|
|
145
135
|
|
|
146
|
-
if attributes.key?(:'parent')
|
|
147
|
-
self.parent = attributes[:'parent']
|
|
148
|
-
end
|
|
149
|
-
|
|
150
|
-
if attributes.key?(:'spawned_tasks')
|
|
151
|
-
if (value = attributes[:'spawned_tasks']).is_a?(Array)
|
|
152
|
-
self.spawned_tasks = value
|
|
153
|
-
end
|
|
154
|
-
end
|
|
155
|
-
|
|
156
136
|
if attributes.key?(:'progress_reports')
|
|
157
137
|
if (value = attributes[:'progress_reports']).is_a?(Array)
|
|
158
138
|
self.progress_reports = value
|
|
@@ -237,8 +217,6 @@ module PulpcoreClient
|
|
|
237
217
|
finished_at == o.finished_at &&
|
|
238
218
|
error == o.error &&
|
|
239
219
|
worker == o.worker &&
|
|
240
|
-
parent == o.parent &&
|
|
241
|
-
spawned_tasks == o.spawned_tasks &&
|
|
242
220
|
progress_reports == o.progress_reports &&
|
|
243
221
|
created_resources == o.created_resources &&
|
|
244
222
|
reserved_resources_record == o.reserved_resources_record
|
|
@@ -253,7 +231,7 @@ module PulpcoreClient
|
|
|
253
231
|
# Calculates hash code according to all attributes.
|
|
254
232
|
# @return [Integer] Hash code
|
|
255
233
|
def hash
|
|
256
|
-
[pulp_href, pulp_created, state, name, started_at, finished_at, error, worker,
|
|
234
|
+
[pulp_href, pulp_created, state, name, started_at, finished_at, error, worker, progress_reports, created_resources, reserved_resources_record].hash
|
|
257
235
|
end
|
|
258
236
|
|
|
259
237
|
# Builds the object from hash
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -15,44 +15,34 @@ require 'date'
|
|
|
15
15
|
module PulpcoreClient
|
|
16
16
|
# List of online workers known to the application. An online worker is actively heartbeating and can respond to new work
|
|
17
17
|
class Worker
|
|
18
|
-
attr_accessor :pulp_href
|
|
19
|
-
|
|
20
18
|
# Timestamp of creation.
|
|
21
19
|
attr_accessor :pulp_created
|
|
22
20
|
|
|
21
|
+
attr_accessor :pulp_href
|
|
22
|
+
|
|
23
23
|
# The name of the worker.
|
|
24
24
|
attr_accessor :name
|
|
25
25
|
|
|
26
26
|
# Timestamp of the last time the worker talked to the service.
|
|
27
27
|
attr_accessor :last_heartbeat
|
|
28
28
|
|
|
29
|
-
# True if the worker is considered online, otherwise False
|
|
30
|
-
attr_accessor :online
|
|
31
|
-
|
|
32
|
-
# True if the worker is considerd missing, otherwise False
|
|
33
|
-
attr_accessor :missing
|
|
34
|
-
|
|
35
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
30
|
def self.attribute_map
|
|
37
31
|
{
|
|
38
|
-
:'pulp_href' => :'pulp_href',
|
|
39
32
|
:'pulp_created' => :'pulp_created',
|
|
33
|
+
:'pulp_href' => :'pulp_href',
|
|
40
34
|
:'name' => :'name',
|
|
41
|
-
:'last_heartbeat' => :'last_heartbeat'
|
|
42
|
-
:'online' => :'online',
|
|
43
|
-
:'missing' => :'missing'
|
|
35
|
+
:'last_heartbeat' => :'last_heartbeat'
|
|
44
36
|
}
|
|
45
37
|
end
|
|
46
38
|
|
|
47
39
|
# Attribute type mapping.
|
|
48
40
|
def self.openapi_types
|
|
49
41
|
{
|
|
50
|
-
:'pulp_href' => :'String',
|
|
51
42
|
:'pulp_created' => :'DateTime',
|
|
43
|
+
:'pulp_href' => :'String',
|
|
52
44
|
:'name' => :'String',
|
|
53
|
-
:'last_heartbeat' => :'DateTime'
|
|
54
|
-
:'online' => :'Boolean',
|
|
55
|
-
:'missing' => :'Boolean'
|
|
45
|
+
:'last_heartbeat' => :'DateTime'
|
|
56
46
|
}
|
|
57
47
|
end
|
|
58
48
|
|
|
@@ -77,14 +67,14 @@ module PulpcoreClient
|
|
|
77
67
|
h[k.to_sym] = v
|
|
78
68
|
}
|
|
79
69
|
|
|
80
|
-
if attributes.key?(:'pulp_href')
|
|
81
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
82
|
-
end
|
|
83
|
-
|
|
84
70
|
if attributes.key?(:'pulp_created')
|
|
85
71
|
self.pulp_created = attributes[:'pulp_created']
|
|
86
72
|
end
|
|
87
73
|
|
|
74
|
+
if attributes.key?(:'pulp_href')
|
|
75
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
76
|
+
end
|
|
77
|
+
|
|
88
78
|
if attributes.key?(:'name')
|
|
89
79
|
self.name = attributes[:'name']
|
|
90
80
|
end
|
|
@@ -92,14 +82,6 @@ module PulpcoreClient
|
|
|
92
82
|
if attributes.key?(:'last_heartbeat')
|
|
93
83
|
self.last_heartbeat = attributes[:'last_heartbeat']
|
|
94
84
|
end
|
|
95
|
-
|
|
96
|
-
if attributes.key?(:'online')
|
|
97
|
-
self.online = attributes[:'online']
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
if attributes.key?(:'missing')
|
|
101
|
-
self.missing = attributes[:'missing']
|
|
102
|
-
end
|
|
103
85
|
end
|
|
104
86
|
|
|
105
87
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -135,12 +117,10 @@ module PulpcoreClient
|
|
|
135
117
|
def ==(o)
|
|
136
118
|
return true if self.equal?(o)
|
|
137
119
|
self.class == o.class &&
|
|
138
|
-
pulp_href == o.pulp_href &&
|
|
139
120
|
pulp_created == o.pulp_created &&
|
|
121
|
+
pulp_href == o.pulp_href &&
|
|
140
122
|
name == o.name &&
|
|
141
|
-
last_heartbeat == o.last_heartbeat
|
|
142
|
-
online == o.online &&
|
|
143
|
-
missing == o.missing
|
|
123
|
+
last_heartbeat == o.last_heartbeat
|
|
144
124
|
end
|
|
145
125
|
|
|
146
126
|
# @see the `==` method
|
|
@@ -152,7 +132,7 @@ module PulpcoreClient
|
|
|
152
132
|
# Calculates hash code according to all attributes.
|
|
153
133
|
# @return [Integer] Hash code
|
|
154
134
|
def hash
|
|
155
|
-
[
|
|
135
|
+
[pulp_created, pulp_href, name, last_heartbeat].hash
|
|
156
136
|
end
|
|
157
137
|
|
|
158
138
|
# Builds the object from hash
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
module PulpcoreClient
|
|
14
|
-
VERSION = '3.0.
|
|
14
|
+
VERSION = '3.0.0rc9'
|
|
15
15
|
end
|
data/lib/pulpcore_client.rb
CHANGED
data/pulpcore_client.gemspec
CHANGED
data/spec/api/status_api_spec.rb
CHANGED
data/spec/api/tasks_api_spec.rb
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -62,12 +62,12 @@ describe 'TasksApi' do
|
|
|
62
62
|
# @option opts [String] :finished_at__gt Filter results where finished_at is greater than value
|
|
63
63
|
# @option opts [String] :finished_at__gte Filter results where finished_at is greater than or equal to value
|
|
64
64
|
# @option opts [String] :finished_at__range Filter results where finished_at is between two comma separated values
|
|
65
|
-
# @option opts [String] :parent Foreign Key referenced by HREF
|
|
66
65
|
# @option opts [String] :reserved_resources_record
|
|
67
66
|
# @option opts [String] :created_resources
|
|
68
67
|
# @option opts [String] :name
|
|
69
68
|
# @option opts [String] :started_at ISO 8601 formatted dates are supported
|
|
70
69
|
# @option opts [String] :finished_at ISO 8601 formatted dates are supported
|
|
70
|
+
# @option opts [String] :parent Foreign Key referenced by HREF
|
|
71
71
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
72
72
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
73
73
|
# @option opts [String] :fields A list of fields to include in the response.
|
data/spec/api_client_spec.rb
CHANGED
data/spec/configuration_spec.rb
CHANGED
data/spec/models/status_spec.rb
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -44,12 +44,6 @@ describe 'Status' do
|
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
describe 'test attribute "missing_workers"' 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
47
|
describe 'test attribute "online_content_apps"' do
|
|
54
48
|
it 'should work' do
|
|
55
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/models/storage_spec.rb
CHANGED
data/spec/models/task_spec.rb
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -80,18 +80,6 @@ describe 'Task' do
|
|
|
80
80
|
end
|
|
81
81
|
end
|
|
82
82
|
|
|
83
|
-
describe 'test attribute "parent"' do
|
|
84
|
-
it 'should work' do
|
|
85
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
86
|
-
end
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
describe 'test attribute "spawned_tasks"' do
|
|
90
|
-
it 'should work' do
|
|
91
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
92
|
-
end
|
|
93
|
-
end
|
|
94
|
-
|
|
95
83
|
describe 'test attribute "progress_reports"' do
|
|
96
84
|
it 'should work' do
|
|
97
85
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/models/upload_spec.rb
CHANGED
data/spec/models/version_spec.rb
CHANGED
data/spec/models/worker_spec.rb
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.2.
|
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -32,13 +32,13 @@ describe 'Worker' do
|
|
|
32
32
|
expect(@instance).to be_instance_of(PulpcoreClient::Worker)
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
|
-
describe 'test attribute "
|
|
35
|
+
describe 'test attribute "pulp_created"' 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
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
-
describe 'test attribute "
|
|
41
|
+
describe 'test attribute "pulp_href"' do
|
|
42
42
|
it 'should work' do
|
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
44
|
end
|
|
@@ -56,16 +56,4 @@ describe 'Worker' do
|
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
-
describe 'test attribute "online"' do
|
|
60
|
-
it 'should work' do
|
|
61
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
|
|
65
|
-
describe 'test attribute "missing"' do
|
|
66
|
-
it 'should work' do
|
|
67
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
|
-
end
|
|
69
|
-
end
|
|
70
|
-
|
|
71
59
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pulpcore_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.0rc9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-12-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|