pulpcore_client 3.39.25 → 3.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/docs/AccessPoliciesApi.md +1 -1
- data/docs/ArtifactDistributionResponse.md +8 -8
- data/docs/ArtifactsApi.md +1 -1
- data/docs/ContentApi.md +5 -5
- data/docs/ContentguardsApi.md +1 -1
- data/docs/ContentguardsContentRedirectApi.md +1 -1
- data/docs/ContentguardsHeaderApi.md +1 -1
- data/docs/ContentguardsRbacApi.md +1 -1
- data/docs/DistributionsApi.md +5 -5
- data/docs/DistributionsArtifactsApi.md +1 -1
- data/docs/DomainsApi.md +1 -1
- data/docs/ExportersFilesystemApi.md +1 -1
- data/docs/ExportersFilesystemExportsApi.md +1 -1
- data/docs/ExportersPulpApi.md +1 -1
- data/docs/ExportersPulpExportsApi.md +1 -1
- data/docs/GroupsApi.md +1 -1
- data/docs/GroupsRolesApi.md +1 -1
- data/docs/GroupsUsersApi.md +1 -1
- data/docs/ImportersPulpApi.md +1 -1
- data/docs/ImportersPulpImportCheckApi.md +1 -1
- data/docs/ImportersPulpImportsApi.md +1 -1
- data/docs/OrphansApi.md +1 -1
- data/docs/OrphansCleanupApi.md +1 -1
- data/docs/PublicationsApi.md +5 -5
- data/docs/RemoteResponseHiddenFields.md +2 -2
- data/docs/RemotesApi.md +5 -5
- data/docs/RepairApi.md +1 -1
- data/docs/RepositoriesApi.md +5 -5
- data/docs/RepositoriesReclaimSpaceApi.md +1 -1
- data/docs/RepositoryVersionsApi.md +1 -1
- data/docs/RolesApi.md +1 -1
- data/docs/SigningServicesApi.md +1 -1
- data/docs/StatusApi.md +1 -1
- data/docs/TaskGroupsApi.md +1 -1
- data/docs/TaskSchedulesApi.md +1 -1
- data/docs/TasksApi.md +3 -3
- data/docs/UploadsApi.md +1 -1
- data/docs/UpstreamPulpsApi.md +1 -1
- data/docs/UsersApi.md +1 -1
- data/docs/UsersRolesApi.md +1 -1
- data/docs/WorkersApi.md +1 -1
- data/lib/pulpcore_client/api/content_api.rb +6 -6
- data/lib/pulpcore_client/api/distributions_api.rb +6 -6
- data/lib/pulpcore_client/api/publications_api.rb +12 -4
- data/lib/pulpcore_client/api/remotes_api.rb +12 -4
- data/lib/pulpcore_client/api/repositories_api.rb +12 -4
- data/lib/pulpcore_client/api/tasks_api.rb +3 -3
- data/lib/pulpcore_client/configuration.rb +2 -2
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +37 -37
- data/lib/pulpcore_client/models/remote_response_hidden_fields.rb +0 -10
- data/lib/pulpcore_client/version.rb +1 -1
- data/spec/api/content_api_spec.rb +2 -2
- data/spec/api/distributions_api_spec.rb +2 -2
- data/spec/api/publications_api_spec.rb +2 -2
- data/spec/api/remotes_api_spec.rb +2 -2
- data/spec/api/repositories_api_spec.rb +2 -2
- data/spec/api/tasks_api_spec.rb +1 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/artifact_distribution_response_spec.rb +6 -6
- metadata +165 -165
@@ -27,8 +27,8 @@ module PulpcoreClient
|
|
27
27
|
# @option opts [Array<String>] :ordering Ordering * `pk` - Pk * `-pk` - Pk (descending)
|
28
28
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
29
29
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
30
|
-
# @option opts [String] :pulp_type Pulp type * `core.publishedmetadata` - core.publishedmetadata
|
31
|
-
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `core.publishedmetadata` - core.publishedmetadata
|
30
|
+
# @option opts [String] :pulp_type Pulp type * `core.publishedmetadata` - core.publishedmetadata * `file.file` - file.file
|
31
|
+
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `core.publishedmetadata` - core.publishedmetadata * `file.file` - file.file
|
32
32
|
# @option opts [String] :q
|
33
33
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
34
34
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
@@ -49,8 +49,8 @@ module PulpcoreClient
|
|
49
49
|
# @option opts [Array<String>] :ordering Ordering * `pk` - Pk * `-pk` - Pk (descending)
|
50
50
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
51
51
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
52
|
-
# @option opts [String] :pulp_type Pulp type * `core.publishedmetadata` - core.publishedmetadata
|
53
|
-
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `core.publishedmetadata` - core.publishedmetadata
|
52
|
+
# @option opts [String] :pulp_type Pulp type * `core.publishedmetadata` - core.publishedmetadata * `file.file` - file.file
|
53
|
+
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `core.publishedmetadata` - core.publishedmetadata * `file.file` - file.file
|
54
54
|
# @option opts [String] :q
|
55
55
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
56
56
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
@@ -66,11 +66,11 @@ module PulpcoreClient
|
|
66
66
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
67
67
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
68
68
|
end
|
69
|
-
allowable_values = ["core.publishedmetadata"]
|
69
|
+
allowable_values = ["core.publishedmetadata", "file.file"]
|
70
70
|
if @api_client.config.client_side_validation && opts[:'pulp_type'] && !allowable_values.include?(opts[:'pulp_type'])
|
71
71
|
fail ArgumentError, "invalid value for \"pulp_type\", must be one of #{allowable_values}"
|
72
72
|
end
|
73
|
-
allowable_values = ["core.publishedmetadata"]
|
73
|
+
allowable_values = ["core.publishedmetadata", "file.file"]
|
74
74
|
if @api_client.config.client_side_validation && opts[:'pulp_type__in'] && !opts[:'pulp_type__in'].all? { |item| allowable_values.include?(item) }
|
75
75
|
fail ArgumentError, "invalid value for \"pulp_type__in\", must include one of #{allowable_values}"
|
76
76
|
end
|
@@ -41,8 +41,8 @@ module PulpcoreClient
|
|
41
41
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
42
42
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
43
43
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
44
|
-
# @option opts [String] :pulp_type Pulp type * `core.artifact` - core.artifact
|
45
|
-
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `core.artifact` - core.artifact
|
44
|
+
# @option opts [String] :pulp_type Pulp type * `core.artifact` - core.artifact * `file.file` - file.file
|
45
|
+
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `core.artifact` - core.artifact * `file.file` - file.file
|
46
46
|
# @option opts [String] :q
|
47
47
|
# @option opts [String] :repository Filter results where repository matches value
|
48
48
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
@@ -77,8 +77,8 @@ module PulpcoreClient
|
|
77
77
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
78
78
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
79
79
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
80
|
-
# @option opts [String] :pulp_type Pulp type * `core.artifact` - core.artifact
|
81
|
-
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `core.artifact` - core.artifact
|
80
|
+
# @option opts [String] :pulp_type Pulp type * `core.artifact` - core.artifact * `file.file` - file.file
|
81
|
+
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `core.artifact` - core.artifact * `file.file` - file.file
|
82
82
|
# @option opts [String] :q
|
83
83
|
# @option opts [String] :repository Filter results where repository matches value
|
84
84
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
@@ -94,11 +94,11 @@ module PulpcoreClient
|
|
94
94
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
95
95
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
96
96
|
end
|
97
|
-
allowable_values = ["core.artifact"]
|
97
|
+
allowable_values = ["core.artifact", "file.file"]
|
98
98
|
if @api_client.config.client_side_validation && opts[:'pulp_type'] && !allowable_values.include?(opts[:'pulp_type'])
|
99
99
|
fail ArgumentError, "invalid value for \"pulp_type\", must be one of #{allowable_values}"
|
100
100
|
end
|
101
|
-
allowable_values = ["core.artifact"]
|
101
|
+
allowable_values = ["core.artifact", "file.file"]
|
102
102
|
if @api_client.config.client_side_validation && opts[:'pulp_type__in'] && !opts[:'pulp_type__in'].all? { |item| allowable_values.include?(item) }
|
103
103
|
fail ArgumentError, "invalid value for \"pulp_type__in\", must include one of #{allowable_values}"
|
104
104
|
end
|
@@ -35,8 +35,8 @@ module PulpcoreClient
|
|
35
35
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
36
36
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
37
37
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
38
|
-
# @option opts [String] :pulp_type Pulp type
|
39
|
-
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas.
|
38
|
+
# @option opts [String] :pulp_type Pulp type * `file.file` - file.file
|
39
|
+
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `file.file` - file.file
|
40
40
|
# @option opts [String] :q
|
41
41
|
# @option opts [String] :repository Repository referenced by HREF
|
42
42
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
@@ -64,8 +64,8 @@ module PulpcoreClient
|
|
64
64
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
65
65
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
66
66
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
67
|
-
# @option opts [String] :pulp_type Pulp type
|
68
|
-
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas.
|
67
|
+
# @option opts [String] :pulp_type Pulp type * `file.file` - file.file
|
68
|
+
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `file.file` - file.file
|
69
69
|
# @option opts [String] :q
|
70
70
|
# @option opts [String] :repository Repository referenced by HREF
|
71
71
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
@@ -80,6 +80,14 @@ module PulpcoreClient
|
|
80
80
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
81
81
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
82
82
|
end
|
83
|
+
allowable_values = ["file.file"]
|
84
|
+
if @api_client.config.client_side_validation && opts[:'pulp_type'] && !allowable_values.include?(opts[:'pulp_type'])
|
85
|
+
fail ArgumentError, "invalid value for \"pulp_type\", must be one of #{allowable_values}"
|
86
|
+
end
|
87
|
+
allowable_values = ["file.file"]
|
88
|
+
if @api_client.config.client_side_validation && opts[:'pulp_type__in'] && !opts[:'pulp_type__in'].all? { |item| allowable_values.include?(item) }
|
89
|
+
fail ArgumentError, "invalid value for \"pulp_type__in\", must include one of #{allowable_values}"
|
90
|
+
end
|
83
91
|
# resource path
|
84
92
|
local_var_path = '/pulp/api/v3/publications/'
|
85
93
|
|
@@ -43,8 +43,8 @@ module PulpcoreClient
|
|
43
43
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
44
44
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
45
45
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
46
|
-
# @option opts [String] :pulp_type Pulp type
|
47
|
-
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas.
|
46
|
+
# @option opts [String] :pulp_type Pulp type * `file.file` - file.file
|
47
|
+
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `file.file` - file.file
|
48
48
|
# @option opts [String] :q
|
49
49
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
50
50
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
@@ -78,8 +78,8 @@ module PulpcoreClient
|
|
78
78
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
79
79
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
80
80
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
81
|
-
# @option opts [String] :pulp_type Pulp type
|
82
|
-
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas.
|
81
|
+
# @option opts [String] :pulp_type Pulp type * `file.file` - file.file
|
82
|
+
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `file.file` - file.file
|
83
83
|
# @option opts [String] :q
|
84
84
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
85
85
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
@@ -92,6 +92,14 @@ module PulpcoreClient
|
|
92
92
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
93
93
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
94
94
|
end
|
95
|
+
allowable_values = ["file.file"]
|
96
|
+
if @api_client.config.client_side_validation && opts[:'pulp_type'] && !allowable_values.include?(opts[:'pulp_type'])
|
97
|
+
fail ArgumentError, "invalid value for \"pulp_type\", must be one of #{allowable_values}"
|
98
|
+
end
|
99
|
+
allowable_values = ["file.file"]
|
100
|
+
if @api_client.config.client_side_validation && opts[:'pulp_type__in'] && !opts[:'pulp_type__in'].all? { |item| allowable_values.include?(item) }
|
101
|
+
fail ArgumentError, "invalid value for \"pulp_type__in\", must include one of #{allowable_values}"
|
102
|
+
end
|
95
103
|
# resource path
|
96
104
|
local_var_path = '/pulp/api/v3/remotes/'
|
97
105
|
|
@@ -38,8 +38,8 @@ module PulpcoreClient
|
|
38
38
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
39
39
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
40
40
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
41
|
-
# @option opts [String] :pulp_type Pulp type
|
42
|
-
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas.
|
41
|
+
# @option opts [String] :pulp_type Pulp type * `file.file` - file.file
|
42
|
+
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `file.file` - file.file
|
43
43
|
# @option opts [String] :q
|
44
44
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
45
45
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
@@ -78,8 +78,8 @@ module PulpcoreClient
|
|
78
78
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
79
79
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
80
80
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
81
|
-
# @option opts [String] :pulp_type Pulp type
|
82
|
-
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas.
|
81
|
+
# @option opts [String] :pulp_type Pulp type * `file.file` - file.file
|
82
|
+
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `file.file` - file.file
|
83
83
|
# @option opts [String] :q
|
84
84
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
85
85
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
@@ -102,6 +102,14 @@ module PulpcoreClient
|
|
102
102
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
103
103
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
104
104
|
end
|
105
|
+
allowable_values = ["file.file"]
|
106
|
+
if @api_client.config.client_side_validation && opts[:'pulp_type'] && !allowable_values.include?(opts[:'pulp_type'])
|
107
|
+
fail ArgumentError, "invalid value for \"pulp_type\", must be one of #{allowable_values}"
|
108
|
+
end
|
109
|
+
allowable_values = ["file.file"]
|
110
|
+
if @api_client.config.client_side_validation && opts[:'pulp_type__in'] && !opts[:'pulp_type__in'].all? { |item| allowable_values.include?(item) }
|
111
|
+
fail ArgumentError, "invalid value for \"pulp_type__in\", must include one of #{allowable_values}"
|
112
|
+
end
|
105
113
|
# resource path
|
106
114
|
local_var_path = '/pulp/api/v3/repositories/'
|
107
115
|
|
@@ -170,7 +170,7 @@ module PulpcoreClient
|
|
170
170
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
171
171
|
# @option opts [String] :name__ne Filter results where name not equal to value
|
172
172
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
173
|
-
# @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) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `
|
173
|
+
# @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) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `enc_args` - Enc args * `-enc_args` - Enc args (descending) * `enc_kwargs` - Enc kwargs * `-enc_kwargs` - Enc kwargs (descending) * `reserved_resources_record` - Reserved resources record * `-reserved_resources_record` - Reserved resources record (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
174
174
|
# @option opts [String] :parent_task Filter results where parent_task matches value
|
175
175
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
176
176
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
@@ -222,7 +222,7 @@ module PulpcoreClient
|
|
222
222
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
223
223
|
# @option opts [String] :name__ne Filter results where name not equal to value
|
224
224
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
225
|
-
# @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) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `
|
225
|
+
# @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) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `enc_args` - Enc args * `-enc_args` - Enc args (descending) * `enc_kwargs` - Enc kwargs * `-enc_kwargs` - Enc kwargs (descending) * `reserved_resources_record` - Reserved resources record * `-reserved_resources_record` - Reserved resources record (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
226
226
|
# @option opts [String] :parent_task Filter results where parent_task matches value
|
227
227
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
228
228
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
@@ -252,7 +252,7 @@ module PulpcoreClient
|
|
252
252
|
if @api_client.config.debugging
|
253
253
|
@api_client.config.logger.debug 'Calling API: TasksApi.list ...'
|
254
254
|
end
|
255
|
-
allowable_values = ["-
|
255
|
+
allowable_values = ["-enc_args", "-enc_kwargs", "-error", "-finished_at", "-logging_cid", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-reserved_resources_record", "-started_at", "-state", "-versions", "enc_args", "enc_kwargs", "error", "finished_at", "logging_cid", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "reserved_resources_record", "started_at", "state", "versions"]
|
256
256
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
257
257
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
258
258
|
end
|
@@ -128,7 +128,7 @@ module PulpcoreClient
|
|
128
128
|
|
129
129
|
def initialize
|
130
130
|
@scheme = 'http'
|
131
|
-
@host = '
|
131
|
+
@host = 'pulp'
|
132
132
|
@base_path = ''
|
133
133
|
@api_key = {}
|
134
134
|
@api_key_prefix = {}
|
@@ -210,7 +210,7 @@ module PulpcoreClient
|
|
210
210
|
def server_settings
|
211
211
|
[
|
212
212
|
{
|
213
|
-
url: "http://
|
213
|
+
url: "http://pulp/",
|
214
214
|
description: "No description provided",
|
215
215
|
}
|
216
216
|
]
|
@@ -15,60 +15,60 @@ require 'date'
|
|
15
15
|
module PulpcoreClient
|
16
16
|
# A serializer for ArtifactDistribution.
|
17
17
|
class ArtifactDistributionResponse
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
19
|
+
attr_accessor :name
|
20
20
|
|
21
|
-
|
21
|
+
# The URL for accessing the publication as defined by this distribution.
|
22
|
+
attr_accessor :base_url
|
22
23
|
|
23
24
|
# Timestamp of creation.
|
24
25
|
attr_accessor :pulp_created
|
25
26
|
|
26
|
-
# The URL for accessing the publication as defined by this distribution.
|
27
|
-
attr_accessor :base_url
|
28
|
-
|
29
27
|
attr_accessor :pulp_labels
|
30
28
|
|
31
29
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
32
30
|
attr_accessor :base_path
|
33
31
|
|
32
|
+
attr_accessor :pulp_href
|
33
|
+
|
34
34
|
# Whether this distribution should be shown in the content app.
|
35
35
|
attr_accessor :hidden
|
36
36
|
|
37
|
-
#
|
38
|
-
attr_accessor :
|
37
|
+
# An optional content-guard.
|
38
|
+
attr_accessor :content_guard
|
39
39
|
|
40
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
41
|
def self.attribute_map
|
42
42
|
{
|
43
|
-
:'
|
44
|
-
:'pulp_href' => :'pulp_href',
|
45
|
-
:'pulp_created' => :'pulp_created',
|
43
|
+
:'name' => :'name',
|
46
44
|
:'base_url' => :'base_url',
|
45
|
+
:'pulp_created' => :'pulp_created',
|
47
46
|
:'pulp_labels' => :'pulp_labels',
|
48
47
|
:'base_path' => :'base_path',
|
48
|
+
:'pulp_href' => :'pulp_href',
|
49
49
|
:'hidden' => :'hidden',
|
50
|
-
:'
|
50
|
+
:'content_guard' => :'content_guard'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
54
54
|
# Attribute type mapping.
|
55
55
|
def self.openapi_types
|
56
56
|
{
|
57
|
-
:'
|
58
|
-
:'pulp_href' => :'String',
|
59
|
-
:'pulp_created' => :'DateTime',
|
57
|
+
:'name' => :'String',
|
60
58
|
:'base_url' => :'String',
|
59
|
+
:'pulp_created' => :'DateTime',
|
61
60
|
:'pulp_labels' => :'Hash<String, String>',
|
62
61
|
:'base_path' => :'String',
|
62
|
+
:'pulp_href' => :'String',
|
63
63
|
:'hidden' => :'Boolean',
|
64
|
-
:'
|
64
|
+
:'content_guard' => :'String'
|
65
65
|
}
|
66
66
|
end
|
67
67
|
|
68
68
|
# List of attributes with nullable: true
|
69
69
|
def self.openapi_nullable
|
70
70
|
Set.new([
|
71
|
-
:'content_guard'
|
71
|
+
:'content_guard'
|
72
72
|
])
|
73
73
|
end
|
74
74
|
|
@@ -87,22 +87,18 @@ module PulpcoreClient
|
|
87
87
|
h[k.to_sym] = v
|
88
88
|
}
|
89
89
|
|
90
|
-
if attributes.key?(:'
|
91
|
-
self.
|
90
|
+
if attributes.key?(:'name')
|
91
|
+
self.name = attributes[:'name']
|
92
92
|
end
|
93
93
|
|
94
|
-
if attributes.key?(:'
|
95
|
-
self.
|
94
|
+
if attributes.key?(:'base_url')
|
95
|
+
self.base_url = attributes[:'base_url']
|
96
96
|
end
|
97
97
|
|
98
98
|
if attributes.key?(:'pulp_created')
|
99
99
|
self.pulp_created = attributes[:'pulp_created']
|
100
100
|
end
|
101
101
|
|
102
|
-
if attributes.key?(:'base_url')
|
103
|
-
self.base_url = attributes[:'base_url']
|
104
|
-
end
|
105
|
-
|
106
102
|
if attributes.key?(:'pulp_labels')
|
107
103
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
108
104
|
self.pulp_labels = value
|
@@ -113,14 +109,18 @@ module PulpcoreClient
|
|
113
109
|
self.base_path = attributes[:'base_path']
|
114
110
|
end
|
115
111
|
|
112
|
+
if attributes.key?(:'pulp_href')
|
113
|
+
self.pulp_href = attributes[:'pulp_href']
|
114
|
+
end
|
115
|
+
|
116
116
|
if attributes.key?(:'hidden')
|
117
117
|
self.hidden = attributes[:'hidden']
|
118
118
|
else
|
119
119
|
self.hidden = false
|
120
120
|
end
|
121
121
|
|
122
|
-
if attributes.key?(:'
|
123
|
-
self.
|
122
|
+
if attributes.key?(:'content_guard')
|
123
|
+
self.content_guard = attributes[:'content_guard']
|
124
124
|
end
|
125
125
|
end
|
126
126
|
|
@@ -128,22 +128,22 @@ module PulpcoreClient
|
|
128
128
|
# @return Array for valid properties with the reasons
|
129
129
|
def list_invalid_properties
|
130
130
|
invalid_properties = Array.new
|
131
|
-
if @base_path.nil?
|
132
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
133
|
-
end
|
134
|
-
|
135
131
|
if @name.nil?
|
136
132
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
137
133
|
end
|
138
134
|
|
135
|
+
if @base_path.nil?
|
136
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
137
|
+
end
|
138
|
+
|
139
139
|
invalid_properties
|
140
140
|
end
|
141
141
|
|
142
142
|
# Check to see if the all the properties in the model are valid
|
143
143
|
# @return true if the model is valid
|
144
144
|
def valid?
|
145
|
-
return false if @base_path.nil?
|
146
145
|
return false if @name.nil?
|
146
|
+
return false if @base_path.nil?
|
147
147
|
true
|
148
148
|
end
|
149
149
|
|
@@ -152,14 +152,14 @@ module PulpcoreClient
|
|
152
152
|
def ==(o)
|
153
153
|
return true if self.equal?(o)
|
154
154
|
self.class == o.class &&
|
155
|
-
|
156
|
-
pulp_href == o.pulp_href &&
|
157
|
-
pulp_created == o.pulp_created &&
|
155
|
+
name == o.name &&
|
158
156
|
base_url == o.base_url &&
|
157
|
+
pulp_created == o.pulp_created &&
|
159
158
|
pulp_labels == o.pulp_labels &&
|
160
159
|
base_path == o.base_path &&
|
160
|
+
pulp_href == o.pulp_href &&
|
161
161
|
hidden == o.hidden &&
|
162
|
-
|
162
|
+
content_guard == o.content_guard
|
163
163
|
end
|
164
164
|
|
165
165
|
# @see the `==` method
|
@@ -171,7 +171,7 @@ module PulpcoreClient
|
|
171
171
|
# Calculates hash code according to all attributes.
|
172
172
|
# @return [Integer] Hash code
|
173
173
|
def hash
|
174
|
-
[
|
174
|
+
[name, base_url, pulp_created, pulp_labels, base_path, pulp_href, hidden, content_guard].hash
|
175
175
|
end
|
176
176
|
|
177
177
|
# Builds the object from hash
|
@@ -68,22 +68,12 @@ module PulpcoreClient
|
|
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
|
-
|
79
71
|
invalid_properties
|
80
72
|
end
|
81
73
|
|
82
74
|
# Check to see if the all the properties in the model are valid
|
83
75
|
# @return true if the model is valid
|
84
76
|
def valid?
|
85
|
-
return false if @name.nil?
|
86
|
-
return false if @is_set.nil?
|
87
77
|
true
|
88
78
|
end
|
89
79
|
|
@@ -41,8 +41,8 @@ describe 'ContentApi' do
|
|
41
41
|
# @option opts [Array<String>] :ordering Ordering * `pk` - Pk * `-pk` - Pk (descending)
|
42
42
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
43
43
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
44
|
-
# @option opts [String] :pulp_type Pulp type * `core.publishedmetadata` - core.publishedmetadata
|
45
|
-
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `core.publishedmetadata` - core.publishedmetadata
|
44
|
+
# @option opts [String] :pulp_type Pulp type * `core.publishedmetadata` - core.publishedmetadata * `file.file` - file.file
|
45
|
+
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `core.publishedmetadata` - core.publishedmetadata * `file.file` - file.file
|
46
46
|
# @option opts [String] :q
|
47
47
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
48
48
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
@@ -55,8 +55,8 @@ describe 'DistributionsApi' do
|
|
55
55
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
56
56
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
57
57
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
58
|
-
# @option opts [String] :pulp_type Pulp type * `core.artifact` - core.artifact
|
59
|
-
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `core.artifact` - core.artifact
|
58
|
+
# @option opts [String] :pulp_type Pulp type * `core.artifact` - core.artifact * `file.file` - file.file
|
59
|
+
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `core.artifact` - core.artifact * `file.file` - file.file
|
60
60
|
# @option opts [String] :q
|
61
61
|
# @option opts [String] :repository Filter results where repository matches value
|
62
62
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
@@ -49,8 +49,8 @@ describe 'PublicationsApi' do
|
|
49
49
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
50
50
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
51
51
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
52
|
-
# @option opts [String] :pulp_type Pulp type
|
53
|
-
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas.
|
52
|
+
# @option opts [String] :pulp_type Pulp type * `file.file` - file.file
|
53
|
+
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `file.file` - file.file
|
54
54
|
# @option opts [String] :q
|
55
55
|
# @option opts [String] :repository Repository referenced by HREF
|
56
56
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
@@ -57,8 +57,8 @@ describe 'RemotesApi' do
|
|
57
57
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
58
58
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
59
59
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
60
|
-
# @option opts [String] :pulp_type Pulp type
|
61
|
-
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas.
|
60
|
+
# @option opts [String] :pulp_type Pulp type * `file.file` - file.file
|
61
|
+
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `file.file` - file.file
|
62
62
|
# @option opts [String] :q
|
63
63
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
64
64
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
@@ -52,8 +52,8 @@ describe 'RepositoriesApi' do
|
|
52
52
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
53
53
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
54
54
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
55
|
-
# @option opts [String] :pulp_type Pulp type
|
56
|
-
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas.
|
55
|
+
# @option opts [String] :pulp_type Pulp type * `file.file` - file.file
|
56
|
+
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `file.file` - file.file
|
57
57
|
# @option opts [String] :q
|
58
58
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
59
59
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
data/spec/api/tasks_api_spec.rb
CHANGED
@@ -79,7 +79,7 @@ describe 'TasksApi' do
|
|
79
79
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
80
80
|
# @option opts [String] :name__ne Filter results where name not equal to value
|
81
81
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
82
|
-
# @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) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `
|
82
|
+
# @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) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `enc_args` - Enc args * `-enc_args` - Enc args (descending) * `enc_kwargs` - Enc kwargs * `-enc_kwargs` - Enc kwargs (descending) * `reserved_resources_record` - Reserved resources record * `-reserved_resources_record` - Reserved resources record (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
83
83
|
# @option opts [String] :parent_task Filter results where parent_task matches value
|
84
84
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
85
85
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
data/spec/configuration_spec.rb
CHANGED
@@ -18,7 +18,7 @@ describe PulpcoreClient::Configuration do
|
|
18
18
|
before(:each) do
|
19
19
|
# uncomment below to setup host and base_path
|
20
20
|
# require 'URI'
|
21
|
-
# uri = URI.parse("http://
|
21
|
+
# uri = URI.parse("http://pulp")
|
22
22
|
# PulpcoreClient.configure do |c|
|
23
23
|
# c.host = uri.host
|
24
24
|
# c.base_path = uri.path
|
@@ -28,14 +28,14 @@ describe PulpcoreClient::Configuration do
|
|
28
28
|
describe '#base_url' do
|
29
29
|
it 'should have the default value' do
|
30
30
|
# uncomment below to test default value of the base path
|
31
|
-
# expect(config.base_url).to eq("http://
|
31
|
+
# expect(config.base_url).to eq("http://pulp")
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'should remove trailing slashes' do
|
35
35
|
[nil, '', '/', '//'].each do |base_path|
|
36
36
|
config.base_path = base_path
|
37
37
|
# uncomment below to test trailing slashes
|
38
|
-
# expect(config.base_url).to eq("http://
|
38
|
+
# expect(config.base_url).to eq("http://pulp")
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -32,13 +32,13 @@ describe 'ArtifactDistributionResponse' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpcoreClient::ArtifactDistributionResponse)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "name"' 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 "base_url"' 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
|
@@ -50,19 +50,19 @@ describe 'ArtifactDistributionResponse' do
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "pulp_labels"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
describe 'test attribute "
|
59
|
+
describe 'test attribute "base_path"' do
|
60
60
|
it 'should work' do
|
61
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
-
describe 'test attribute "
|
65
|
+
describe 'test attribute "pulp_href"' do
|
66
66
|
it 'should work' do
|
67
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
68
|
end
|
@@ -74,7 +74,7 @@ describe 'ArtifactDistributionResponse' do
|
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
|
-
describe 'test attribute "
|
77
|
+
describe 'test attribute "content_guard"' do
|
78
78
|
it 'should work' do
|
79
79
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
80
|
end
|