pulp_ostree_client 2.2.1 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +23 -4
- data/docs/ContentCommitsApi.md +2 -0
- data/docs/ContentConfigsApi.md +2 -0
- data/docs/ContentContentApi.md +56 -0
- data/docs/ContentObjectsApi.md +2 -0
- data/docs/ContentRefsApi.md +2 -0
- data/docs/ContentSummariesApi.md +2 -0
- data/docs/DistributionsOstreeApi.md +232 -0
- data/docs/MyPermissionsResponse.md +17 -0
- data/docs/NestedRole.md +21 -0
- data/docs/NestedRoleResponse.md +21 -0
- data/docs/ObjectRolesResponse.md +17 -0
- data/docs/OstreeOstreeCommitResponse.md +2 -0
- data/docs/OstreeOstreeConfigResponse.md +2 -0
- data/docs/OstreeOstreeContent.md +23 -0
- data/docs/OstreeOstreeContentResponse.md +2 -0
- data/docs/OstreeOstreeDistributionResponse.md +2 -0
- data/docs/OstreeOstreeObjectResponse.md +2 -0
- data/docs/OstreeOstreeRefResponse.md +2 -0
- data/docs/OstreeOstreeRemoteResponse.md +2 -2
- data/docs/OstreeOstreeRemoteResponseHiddenFields.md +2 -2
- data/docs/OstreeOstreeRepositoryResponse.md +2 -0
- data/docs/OstreeOstreeSummaryResponse.md +2 -0
- data/docs/PaginatedRepositoryVersionResponseList.md +2 -2
- data/docs/PaginatedostreeOstreeCommitResponseList.md +2 -2
- data/docs/PaginatedostreeOstreeConfigResponseList.md +2 -2
- data/docs/PaginatedostreeOstreeContentResponseList.md +2 -2
- data/docs/PaginatedostreeOstreeDistributionResponseList.md +2 -2
- data/docs/PaginatedostreeOstreeObjectResponseList.md +2 -2
- data/docs/PaginatedostreeOstreeRefResponseList.md +2 -2
- data/docs/PaginatedostreeOstreeRemoteResponseList.md +2 -2
- data/docs/PaginatedostreeOstreeRepositoryResponseList.md +2 -2
- data/docs/PaginatedostreeOstreeSummaryResponseList.md +2 -2
- data/docs/RemotesOstreeApi.md +232 -0
- data/docs/RepositoriesOstreeApi.md +232 -0
- data/docs/RepositoryVersionResponse.md +2 -0
- data/lib/pulp_ostree_client/api/content_commits_api.rb +3 -0
- data/lib/pulp_ostree_client/api/content_configs_api.rb +3 -0
- data/lib/pulp_ostree_client/api/content_content_api.rb +67 -0
- data/lib/pulp_ostree_client/api/content_objects_api.rb +3 -0
- data/lib/pulp_ostree_client/api/content_refs_api.rb +3 -0
- data/lib/pulp_ostree_client/api/content_summaries_api.rb +3 -0
- data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +276 -0
- data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +276 -0
- data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +276 -0
- data/lib/pulp_ostree_client/models/my_permissions_response.rb +213 -0
- data/lib/pulp_ostree_client/models/nested_role.rb +253 -0
- data/lib/pulp_ostree_client/models/nested_role_response.rb +234 -0
- data/lib/pulp_ostree_client/models/object_roles_response.rb +213 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_commit_response.rb +11 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_config_response.rb +11 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_content.rb +289 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_content_response.rb +11 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_distribution_response.rb +11 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_object_response.rb +11 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_ref_response.rb +11 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_remote_response.rb +11 -11
- data/lib/pulp_ostree_client/models/ostree_ostree_remote_response_hidden_fields.rb +10 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_repository_response.rb +11 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_summary_response.rb +11 -1
- data/lib/pulp_ostree_client/models/paginated_repository_version_response_list.rb +10 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_commit_response_list.rb +10 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_config_response_list.rb +10 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_content_response_list.rb +10 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_distribution_response_list.rb +10 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_object_response_list.rb +10 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_ref_response_list.rb +10 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_remote_response_list.rb +10 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_repository_response_list.rb +10 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_summary_response_list.rb +10 -0
- data/lib/pulp_ostree_client/models/repository_version_response.rb +11 -1
- data/lib/pulp_ostree_client/version.rb +1 -1
- data/lib/pulp_ostree_client.rb +5 -0
- data/spec/api/content_commits_api_spec.rb +1 -0
- data/spec/api/content_configs_api_spec.rb +1 -0
- data/spec/api/content_content_api_spec.rb +13 -0
- data/spec/api/content_objects_api_spec.rb +1 -0
- data/spec/api/content_refs_api_spec.rb +1 -0
- data/spec/api/content_summaries_api_spec.rb +1 -0
- data/spec/api/distributions_ostree_api_spec.rb +54 -0
- data/spec/api/remotes_ostree_api_spec.rb +54 -0
- data/spec/api/repositories_ostree_api_spec.rb +54 -0
- data/spec/models/my_permissions_response_spec.rb +41 -0
- data/spec/models/nested_role_response_spec.rb +53 -0
- data/spec/models/nested_role_spec.rb +53 -0
- data/spec/models/object_roles_response_spec.rb +41 -0
- data/spec/models/ostree_ostree_commit_response_spec.rb +6 -0
- data/spec/models/ostree_ostree_config_response_spec.rb +6 -0
- data/spec/models/ostree_ostree_content_response_spec.rb +6 -0
- data/spec/models/ostree_ostree_content_spec.rb +59 -0
- data/spec/models/ostree_ostree_distribution_response_spec.rb +6 -0
- data/spec/models/ostree_ostree_object_response_spec.rb +6 -0
- data/spec/models/ostree_ostree_ref_response_spec.rb +6 -0
- data/spec/models/ostree_ostree_remote_response_spec.rb +6 -6
- data/spec/models/ostree_ostree_repository_response_spec.rb +6 -0
- data/spec/models/ostree_ostree_summary_response_spec.rb +6 -0
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +55 -35
@@ -20,6 +20,9 @@ module PulpOstreeClient
|
|
20
20
|
# Timestamp of creation.
|
21
21
|
attr_accessor :pulp_created
|
22
22
|
|
23
|
+
# Timestamp of the most recent update of the remote.
|
24
|
+
attr_accessor :pulp_last_updated
|
25
|
+
|
23
26
|
# A unique name for this remote.
|
24
27
|
attr_accessor :name
|
25
28
|
|
@@ -40,9 +43,6 @@ module PulpOstreeClient
|
|
40
43
|
|
41
44
|
attr_accessor :pulp_labels
|
42
45
|
|
43
|
-
# Timestamp of the most recent update of the remote.
|
44
|
-
attr_accessor :pulp_last_updated
|
45
|
-
|
46
46
|
# Total number of simultaneous connections. If not set then the default value will be used.
|
47
47
|
attr_accessor :download_concurrency
|
48
48
|
|
@@ -87,6 +87,7 @@ module PulpOstreeClient
|
|
87
87
|
{
|
88
88
|
:'pulp_href' => :'pulp_href',
|
89
89
|
:'pulp_created' => :'pulp_created',
|
90
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
90
91
|
:'name' => :'name',
|
91
92
|
:'url' => :'url',
|
92
93
|
:'ca_cert' => :'ca_cert',
|
@@ -94,7 +95,6 @@ module PulpOstreeClient
|
|
94
95
|
:'tls_validation' => :'tls_validation',
|
95
96
|
:'proxy_url' => :'proxy_url',
|
96
97
|
:'pulp_labels' => :'pulp_labels',
|
97
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
98
98
|
:'download_concurrency' => :'download_concurrency',
|
99
99
|
:'max_retries' => :'max_retries',
|
100
100
|
:'policy' => :'policy',
|
@@ -116,6 +116,7 @@ module PulpOstreeClient
|
|
116
116
|
{
|
117
117
|
:'pulp_href' => :'String',
|
118
118
|
:'pulp_created' => :'DateTime',
|
119
|
+
:'pulp_last_updated' => :'DateTime',
|
119
120
|
:'name' => :'String',
|
120
121
|
:'url' => :'String',
|
121
122
|
:'ca_cert' => :'String',
|
@@ -123,7 +124,6 @@ module PulpOstreeClient
|
|
123
124
|
:'tls_validation' => :'Boolean',
|
124
125
|
:'proxy_url' => :'String',
|
125
126
|
:'pulp_labels' => :'Hash<String, String>',
|
126
|
-
:'pulp_last_updated' => :'DateTime',
|
127
127
|
:'download_concurrency' => :'Integer',
|
128
128
|
:'max_retries' => :'Integer',
|
129
129
|
:'policy' => :'PolicyEnum',
|
@@ -181,6 +181,10 @@ module PulpOstreeClient
|
|
181
181
|
self.pulp_created = attributes[:'pulp_created']
|
182
182
|
end
|
183
183
|
|
184
|
+
if attributes.key?(:'pulp_last_updated')
|
185
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
186
|
+
end
|
187
|
+
|
184
188
|
if attributes.key?(:'name')
|
185
189
|
self.name = attributes[:'name']
|
186
190
|
end
|
@@ -211,10 +215,6 @@ module PulpOstreeClient
|
|
211
215
|
end
|
212
216
|
end
|
213
217
|
|
214
|
-
if attributes.key?(:'pulp_last_updated')
|
215
|
-
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
216
|
-
end
|
217
|
-
|
218
218
|
if attributes.key?(:'download_concurrency')
|
219
219
|
self.download_concurrency = attributes[:'download_concurrency']
|
220
220
|
end
|
@@ -398,6 +398,7 @@ module PulpOstreeClient
|
|
398
398
|
self.class == o.class &&
|
399
399
|
pulp_href == o.pulp_href &&
|
400
400
|
pulp_created == o.pulp_created &&
|
401
|
+
pulp_last_updated == o.pulp_last_updated &&
|
401
402
|
name == o.name &&
|
402
403
|
url == o.url &&
|
403
404
|
ca_cert == o.ca_cert &&
|
@@ -405,7 +406,6 @@ module PulpOstreeClient
|
|
405
406
|
tls_validation == o.tls_validation &&
|
406
407
|
proxy_url == o.proxy_url &&
|
407
408
|
pulp_labels == o.pulp_labels &&
|
408
|
-
pulp_last_updated == o.pulp_last_updated &&
|
409
409
|
download_concurrency == o.download_concurrency &&
|
410
410
|
max_retries == o.max_retries &&
|
411
411
|
policy == o.policy &&
|
@@ -430,7 +430,7 @@ module PulpOstreeClient
|
|
430
430
|
# Calculates hash code according to all attributes.
|
431
431
|
# @return [Integer] Hash code
|
432
432
|
def hash
|
433
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels,
|
433
|
+
[pulp_href, pulp_created, pulp_last_updated, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, depth, include_refs, exclude_refs].hash
|
434
434
|
end
|
435
435
|
|
436
436
|
# Builds the object from hash
|
@@ -68,12 +68,22 @@ module PulpOstreeClient
|
|
68
68
|
# @return Array for valid properties with the reasons
|
69
69
|
def list_invalid_properties
|
70
70
|
invalid_properties = Array.new
|
71
|
+
if @name.nil?
|
72
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
73
|
+
end
|
74
|
+
|
75
|
+
if @is_set.nil?
|
76
|
+
invalid_properties.push('invalid value for "is_set", is_set cannot be nil.')
|
77
|
+
end
|
78
|
+
|
71
79
|
invalid_properties
|
72
80
|
end
|
73
81
|
|
74
82
|
# Check to see if the all the properties in the model are valid
|
75
83
|
# @return true if the model is valid
|
76
84
|
def valid?
|
85
|
+
return false if @name.nil?
|
86
|
+
return false if @is_set.nil?
|
77
87
|
true
|
78
88
|
end
|
79
89
|
|
@@ -20,6 +20,9 @@ module PulpOstreeClient
|
|
20
20
|
# Timestamp of creation.
|
21
21
|
attr_accessor :pulp_created
|
22
22
|
|
23
|
+
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
24
|
+
attr_accessor :pulp_last_updated
|
25
|
+
|
23
26
|
attr_accessor :versions_href
|
24
27
|
|
25
28
|
attr_accessor :pulp_labels
|
@@ -45,6 +48,7 @@ module PulpOstreeClient
|
|
45
48
|
{
|
46
49
|
:'pulp_href' => :'pulp_href',
|
47
50
|
:'pulp_created' => :'pulp_created',
|
51
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
48
52
|
:'versions_href' => :'versions_href',
|
49
53
|
:'pulp_labels' => :'pulp_labels',
|
50
54
|
:'latest_version_href' => :'latest_version_href',
|
@@ -61,6 +65,7 @@ module PulpOstreeClient
|
|
61
65
|
{
|
62
66
|
:'pulp_href' => :'String',
|
63
67
|
:'pulp_created' => :'DateTime',
|
68
|
+
:'pulp_last_updated' => :'DateTime',
|
64
69
|
:'versions_href' => :'String',
|
65
70
|
:'pulp_labels' => :'Hash<String, String>',
|
66
71
|
:'latest_version_href' => :'String',
|
@@ -104,6 +109,10 @@ module PulpOstreeClient
|
|
104
109
|
self.pulp_created = attributes[:'pulp_created']
|
105
110
|
end
|
106
111
|
|
112
|
+
if attributes.key?(:'pulp_last_updated')
|
113
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
114
|
+
end
|
115
|
+
|
107
116
|
if attributes.key?(:'versions_href')
|
108
117
|
self.versions_href = attributes[:'versions_href']
|
109
118
|
end
|
@@ -181,6 +190,7 @@ module PulpOstreeClient
|
|
181
190
|
self.class == o.class &&
|
182
191
|
pulp_href == o.pulp_href &&
|
183
192
|
pulp_created == o.pulp_created &&
|
193
|
+
pulp_last_updated == o.pulp_last_updated &&
|
184
194
|
versions_href == o.versions_href &&
|
185
195
|
pulp_labels == o.pulp_labels &&
|
186
196
|
latest_version_href == o.latest_version_href &&
|
@@ -200,7 +210,7 @@ module PulpOstreeClient
|
|
200
210
|
# Calculates hash code according to all attributes.
|
201
211
|
# @return [Integer] Hash code
|
202
212
|
def hash
|
203
|
-
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, compute_delta].hash
|
213
|
+
[pulp_href, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, compute_delta].hash
|
204
214
|
end
|
205
215
|
|
206
216
|
# Builds the object from hash
|
@@ -20,6 +20,9 @@ module PulpOstreeClient
|
|
20
20
|
# Timestamp of creation.
|
21
21
|
attr_accessor :pulp_created
|
22
22
|
|
23
|
+
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
24
|
+
attr_accessor :pulp_last_updated
|
25
|
+
|
23
26
|
# Artifact file representing the physical content
|
24
27
|
attr_accessor :artifact
|
25
28
|
|
@@ -31,6 +34,7 @@ module PulpOstreeClient
|
|
31
34
|
{
|
32
35
|
:'pulp_href' => :'pulp_href',
|
33
36
|
:'pulp_created' => :'pulp_created',
|
37
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
34
38
|
:'artifact' => :'artifact',
|
35
39
|
:'relative_path' => :'relative_path'
|
36
40
|
}
|
@@ -41,6 +45,7 @@ module PulpOstreeClient
|
|
41
45
|
{
|
42
46
|
:'pulp_href' => :'String',
|
43
47
|
:'pulp_created' => :'DateTime',
|
48
|
+
:'pulp_last_updated' => :'DateTime',
|
44
49
|
:'artifact' => :'String',
|
45
50
|
:'relative_path' => :'String'
|
46
51
|
}
|
@@ -75,6 +80,10 @@ module PulpOstreeClient
|
|
75
80
|
self.pulp_created = attributes[:'pulp_created']
|
76
81
|
end
|
77
82
|
|
83
|
+
if attributes.key?(:'pulp_last_updated')
|
84
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
85
|
+
end
|
86
|
+
|
78
87
|
if attributes.key?(:'artifact')
|
79
88
|
self.artifact = attributes[:'artifact']
|
80
89
|
end
|
@@ -114,6 +123,7 @@ module PulpOstreeClient
|
|
114
123
|
self.class == o.class &&
|
115
124
|
pulp_href == o.pulp_href &&
|
116
125
|
pulp_created == o.pulp_created &&
|
126
|
+
pulp_last_updated == o.pulp_last_updated &&
|
117
127
|
artifact == o.artifact &&
|
118
128
|
relative_path == o.relative_path
|
119
129
|
end
|
@@ -127,7 +137,7 @@ module PulpOstreeClient
|
|
127
137
|
# Calculates hash code according to all attributes.
|
128
138
|
# @return [Integer] Hash code
|
129
139
|
def hash
|
130
|
-
[pulp_href, pulp_created, artifact, relative_path].hash
|
140
|
+
[pulp_href, pulp_created, pulp_last_updated, artifact, relative_path].hash
|
131
141
|
end
|
132
142
|
|
133
143
|
# Builds the object from hash
|
@@ -88,12 +88,22 @@ module PulpOstreeClient
|
|
88
88
|
# @return Array for valid properties with the reasons
|
89
89
|
def list_invalid_properties
|
90
90
|
invalid_properties = Array.new
|
91
|
+
if @count.nil?
|
92
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
if @results.nil?
|
96
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
97
|
+
end
|
98
|
+
|
91
99
|
invalid_properties
|
92
100
|
end
|
93
101
|
|
94
102
|
# Check to see if the all the properties in the model are valid
|
95
103
|
# @return true if the model is valid
|
96
104
|
def valid?
|
105
|
+
return false if @count.nil?
|
106
|
+
return false if @results.nil?
|
97
107
|
true
|
98
108
|
end
|
99
109
|
|
@@ -88,12 +88,22 @@ module PulpOstreeClient
|
|
88
88
|
# @return Array for valid properties with the reasons
|
89
89
|
def list_invalid_properties
|
90
90
|
invalid_properties = Array.new
|
91
|
+
if @count.nil?
|
92
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
if @results.nil?
|
96
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
97
|
+
end
|
98
|
+
|
91
99
|
invalid_properties
|
92
100
|
end
|
93
101
|
|
94
102
|
# Check to see if the all the properties in the model are valid
|
95
103
|
# @return true if the model is valid
|
96
104
|
def valid?
|
105
|
+
return false if @count.nil?
|
106
|
+
return false if @results.nil?
|
97
107
|
true
|
98
108
|
end
|
99
109
|
|
@@ -88,12 +88,22 @@ module PulpOstreeClient
|
|
88
88
|
# @return Array for valid properties with the reasons
|
89
89
|
def list_invalid_properties
|
90
90
|
invalid_properties = Array.new
|
91
|
+
if @count.nil?
|
92
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
if @results.nil?
|
96
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
97
|
+
end
|
98
|
+
|
91
99
|
invalid_properties
|
92
100
|
end
|
93
101
|
|
94
102
|
# Check to see if the all the properties in the model are valid
|
95
103
|
# @return true if the model is valid
|
96
104
|
def valid?
|
105
|
+
return false if @count.nil?
|
106
|
+
return false if @results.nil?
|
97
107
|
true
|
98
108
|
end
|
99
109
|
|
@@ -88,12 +88,22 @@ module PulpOstreeClient
|
|
88
88
|
# @return Array for valid properties with the reasons
|
89
89
|
def list_invalid_properties
|
90
90
|
invalid_properties = Array.new
|
91
|
+
if @count.nil?
|
92
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
if @results.nil?
|
96
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
97
|
+
end
|
98
|
+
|
91
99
|
invalid_properties
|
92
100
|
end
|
93
101
|
|
94
102
|
# Check to see if the all the properties in the model are valid
|
95
103
|
# @return true if the model is valid
|
96
104
|
def valid?
|
105
|
+
return false if @count.nil?
|
106
|
+
return false if @results.nil?
|
97
107
|
true
|
98
108
|
end
|
99
109
|
|
@@ -88,12 +88,22 @@ module PulpOstreeClient
|
|
88
88
|
# @return Array for valid properties with the reasons
|
89
89
|
def list_invalid_properties
|
90
90
|
invalid_properties = Array.new
|
91
|
+
if @count.nil?
|
92
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
if @results.nil?
|
96
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
97
|
+
end
|
98
|
+
|
91
99
|
invalid_properties
|
92
100
|
end
|
93
101
|
|
94
102
|
# Check to see if the all the properties in the model are valid
|
95
103
|
# @return true if the model is valid
|
96
104
|
def valid?
|
105
|
+
return false if @count.nil?
|
106
|
+
return false if @results.nil?
|
97
107
|
true
|
98
108
|
end
|
99
109
|
|
@@ -88,12 +88,22 @@ module PulpOstreeClient
|
|
88
88
|
# @return Array for valid properties with the reasons
|
89
89
|
def list_invalid_properties
|
90
90
|
invalid_properties = Array.new
|
91
|
+
if @count.nil?
|
92
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
if @results.nil?
|
96
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
97
|
+
end
|
98
|
+
|
91
99
|
invalid_properties
|
92
100
|
end
|
93
101
|
|
94
102
|
# Check to see if the all the properties in the model are valid
|
95
103
|
# @return true if the model is valid
|
96
104
|
def valid?
|
105
|
+
return false if @count.nil?
|
106
|
+
return false if @results.nil?
|
97
107
|
true
|
98
108
|
end
|
99
109
|
|
@@ -88,12 +88,22 @@ module PulpOstreeClient
|
|
88
88
|
# @return Array for valid properties with the reasons
|
89
89
|
def list_invalid_properties
|
90
90
|
invalid_properties = Array.new
|
91
|
+
if @count.nil?
|
92
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
if @results.nil?
|
96
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
97
|
+
end
|
98
|
+
|
91
99
|
invalid_properties
|
92
100
|
end
|
93
101
|
|
94
102
|
# Check to see if the all the properties in the model are valid
|
95
103
|
# @return true if the model is valid
|
96
104
|
def valid?
|
105
|
+
return false if @count.nil?
|
106
|
+
return false if @results.nil?
|
97
107
|
true
|
98
108
|
end
|
99
109
|
|
@@ -88,12 +88,22 @@ module PulpOstreeClient
|
|
88
88
|
# @return Array for valid properties with the reasons
|
89
89
|
def list_invalid_properties
|
90
90
|
invalid_properties = Array.new
|
91
|
+
if @count.nil?
|
92
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
if @results.nil?
|
96
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
97
|
+
end
|
98
|
+
|
91
99
|
invalid_properties
|
92
100
|
end
|
93
101
|
|
94
102
|
# Check to see if the all the properties in the model are valid
|
95
103
|
# @return true if the model is valid
|
96
104
|
def valid?
|
105
|
+
return false if @count.nil?
|
106
|
+
return false if @results.nil?
|
97
107
|
true
|
98
108
|
end
|
99
109
|
|
@@ -88,12 +88,22 @@ module PulpOstreeClient
|
|
88
88
|
# @return Array for valid properties with the reasons
|
89
89
|
def list_invalid_properties
|
90
90
|
invalid_properties = Array.new
|
91
|
+
if @count.nil?
|
92
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
if @results.nil?
|
96
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
97
|
+
end
|
98
|
+
|
91
99
|
invalid_properties
|
92
100
|
end
|
93
101
|
|
94
102
|
# Check to see if the all the properties in the model are valid
|
95
103
|
# @return true if the model is valid
|
96
104
|
def valid?
|
105
|
+
return false if @count.nil?
|
106
|
+
return false if @results.nil?
|
97
107
|
true
|
98
108
|
end
|
99
109
|
|
@@ -88,12 +88,22 @@ module PulpOstreeClient
|
|
88
88
|
# @return Array for valid properties with the reasons
|
89
89
|
def list_invalid_properties
|
90
90
|
invalid_properties = Array.new
|
91
|
+
if @count.nil?
|
92
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
if @results.nil?
|
96
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
97
|
+
end
|
98
|
+
|
91
99
|
invalid_properties
|
92
100
|
end
|
93
101
|
|
94
102
|
# Check to see if the all the properties in the model are valid
|
95
103
|
# @return true if the model is valid
|
96
104
|
def valid?
|
105
|
+
return false if @count.nil?
|
106
|
+
return false if @results.nil?
|
97
107
|
true
|
98
108
|
end
|
99
109
|
|
@@ -20,6 +20,9 @@ module PulpOstreeClient
|
|
20
20
|
# Timestamp of creation.
|
21
21
|
attr_accessor :pulp_created
|
22
22
|
|
23
|
+
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
24
|
+
attr_accessor :pulp_last_updated
|
25
|
+
|
23
26
|
attr_accessor :number
|
24
27
|
|
25
28
|
attr_accessor :repository
|
@@ -35,6 +38,7 @@ module PulpOstreeClient
|
|
35
38
|
{
|
36
39
|
:'pulp_href' => :'pulp_href',
|
37
40
|
:'pulp_created' => :'pulp_created',
|
41
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
38
42
|
:'number' => :'number',
|
39
43
|
:'repository' => :'repository',
|
40
44
|
:'base_version' => :'base_version',
|
@@ -47,6 +51,7 @@ module PulpOstreeClient
|
|
47
51
|
{
|
48
52
|
:'pulp_href' => :'String',
|
49
53
|
:'pulp_created' => :'DateTime',
|
54
|
+
:'pulp_last_updated' => :'DateTime',
|
50
55
|
:'number' => :'Integer',
|
51
56
|
:'repository' => :'String',
|
52
57
|
:'base_version' => :'String',
|
@@ -83,6 +88,10 @@ module PulpOstreeClient
|
|
83
88
|
self.pulp_created = attributes[:'pulp_created']
|
84
89
|
end
|
85
90
|
|
91
|
+
if attributes.key?(:'pulp_last_updated')
|
92
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
93
|
+
end
|
94
|
+
|
86
95
|
if attributes.key?(:'number')
|
87
96
|
self.number = attributes[:'number']
|
88
97
|
end
|
@@ -120,6 +129,7 @@ module PulpOstreeClient
|
|
120
129
|
self.class == o.class &&
|
121
130
|
pulp_href == o.pulp_href &&
|
122
131
|
pulp_created == o.pulp_created &&
|
132
|
+
pulp_last_updated == o.pulp_last_updated &&
|
123
133
|
number == o.number &&
|
124
134
|
repository == o.repository &&
|
125
135
|
base_version == o.base_version &&
|
@@ -135,7 +145,7 @@ module PulpOstreeClient
|
|
135
145
|
# Calculates hash code according to all attributes.
|
136
146
|
# @return [Integer] Hash code
|
137
147
|
def hash
|
138
|
-
[pulp_href, pulp_created, number, repository, base_version, content_summary].hash
|
148
|
+
[pulp_href, pulp_created, pulp_last_updated, number, repository, base_version, content_summary].hash
|
139
149
|
end
|
140
150
|
|
141
151
|
# Builds the object from hash
|
data/lib/pulp_ostree_client.rb
CHANGED
@@ -19,10 +19,15 @@ require 'pulp_ostree_client/configuration'
|
|
19
19
|
# Models
|
20
20
|
require 'pulp_ostree_client/models/async_operation_response'
|
21
21
|
require 'pulp_ostree_client/models/content_summary_response'
|
22
|
+
require 'pulp_ostree_client/models/my_permissions_response'
|
23
|
+
require 'pulp_ostree_client/models/nested_role'
|
24
|
+
require 'pulp_ostree_client/models/nested_role_response'
|
25
|
+
require 'pulp_ostree_client/models/object_roles_response'
|
22
26
|
require 'pulp_ostree_client/models/ostree_import_all'
|
23
27
|
require 'pulp_ostree_client/models/ostree_import_commits_to_ref'
|
24
28
|
require 'pulp_ostree_client/models/ostree_ostree_commit_response'
|
25
29
|
require 'pulp_ostree_client/models/ostree_ostree_config_response'
|
30
|
+
require 'pulp_ostree_client/models/ostree_ostree_content'
|
26
31
|
require 'pulp_ostree_client/models/ostree_ostree_content_response'
|
27
32
|
require 'pulp_ostree_client/models/ostree_ostree_distribution'
|
28
33
|
require 'pulp_ostree_client/models/ostree_ostree_distribution_response'
|
@@ -40,6 +40,7 @@ describe 'ContentCommitsApi' do
|
|
40
40
|
# @option opts [Integer] :limit Number of results to return per page.
|
41
41
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
42
42
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `checksum` - Checksum * `-checksum` - Checksum (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
43
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
43
44
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
44
45
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
45
46
|
# @option opts [String] :q
|
@@ -39,6 +39,7 @@ describe 'ContentConfigsApi' do
|
|
39
39
|
# @option opts [Integer] :limit Number of results to return per page.
|
40
40
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
41
41
|
# @option opts [Array<String>] :ordering Ordering * `pk` - Pk * `-pk` - Pk (descending)
|
42
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
42
43
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
43
44
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
44
45
|
# @option opts [String] :q
|
@@ -32,6 +32,18 @@ describe 'ContentContentApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
# unit tests for create
|
36
|
+
# Create an ostree content
|
37
|
+
# Trigger an asynchronous task to create content,optionally create new repository version.
|
38
|
+
# @param ostree_ostree_content
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [AsyncOperationResponse]
|
41
|
+
describe 'create test' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
35
47
|
# unit tests for list
|
36
48
|
# List ostree contents
|
37
49
|
# A ViewSet class for uncategorized content units (e.g., static deltas).
|
@@ -39,6 +51,7 @@ describe 'ContentContentApi' do
|
|
39
51
|
# @option opts [Integer] :limit Number of results to return per page.
|
40
52
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
41
53
|
# @option opts [Array<String>] :ordering Ordering * `pk` - Pk * `-pk` - Pk (descending)
|
54
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
42
55
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
43
56
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
44
57
|
# @option opts [String] :q
|
@@ -40,6 +40,7 @@ describe 'ContentObjectsApi' do
|
|
40
40
|
# @option opts [Integer] :limit Number of results to return per page.
|
41
41
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
42
42
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `typ` - Typ * `-typ` - Typ (descending) * `checksum` - Checksum * `-checksum` - Checksum (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
43
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
43
44
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
44
45
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
45
46
|
# @option opts [String] :q
|
@@ -49,6 +49,7 @@ describe 'ContentRefsApi' do
|
|
49
49
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
50
50
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
51
51
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
52
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
52
53
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
53
54
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
54
55
|
# @option opts [String] :q
|
@@ -39,6 +39,7 @@ describe 'ContentSummariesApi' do
|
|
39
39
|
# @option opts [Integer] :limit Number of results to return per page.
|
40
40
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
41
41
|
# @option opts [Array<String>] :ordering Ordering * `pk` - Pk * `-pk` - Pk (descending)
|
42
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
42
43
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
43
44
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
44
45
|
# @option opts [String] :q
|