pulpcore_client 3.19.1 → 3.20.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 +93 -16
- data/docs/AccessPoliciesApi.md +2 -2
- data/docs/AccessPolicy.md +3 -1
- data/docs/AccessPolicyResponse.md +3 -1
- data/docs/AcsApi.md +417 -0
- data/docs/AlternateContentSource.md +23 -0
- data/docs/AlternateContentSourceResponse.md +27 -0
- data/docs/ArtifactsApi.md +2 -2
- data/docs/ContentApi.md +117 -3
- data/docs/ContentGuard.md +19 -0
- data/docs/ContentguardsApi.md +282 -3
- data/docs/ContentguardsContentRedirectApi.md +230 -2
- data/docs/ContentguardsRbacApi.md +2 -2
- data/docs/Distribution.md +25 -0
- data/docs/DistributionsApi.md +283 -3
- data/docs/Export.md +17 -0
- data/docs/ExportResponse.md +25 -0
- data/docs/Exporter.md +17 -0
- data/docs/ExporterResponse.md +21 -0
- data/docs/ExportersApi.md +362 -0
- data/docs/{GroupsModelPermissionsApi.md → ExportersExportsApi.md} +46 -48
- data/docs/ExportersFilesystemApi.md +2 -2
- data/docs/ExportersFilesystemExportsApi.md +0 -2
- data/docs/ExportersPulpApi.md +2 -2
- data/docs/ExportersPulpExportsApi.md +0 -2
- data/docs/GroupRole.md +1 -1
- data/docs/GroupRoleResponse.md +6 -2
- data/docs/GroupsApi.md +2 -2
- data/docs/GroupsRolesApi.md +2 -2
- data/docs/GroupsUsersApi.md +0 -2
- data/docs/Import.md +19 -0
- data/docs/Importer.md +17 -0
- data/docs/ImporterResponse.md +21 -0
- data/docs/ImportersApi.md +361 -0
- data/docs/{GroupsObjectPermissionsApi.md → ImportersImportsApi.md} +46 -48
- data/docs/ImportersPulpApi.md +2 -2
- data/docs/ImportersPulpImportsApi.md +0 -2
- data/docs/MultipleArtifactContent.md +17 -0
- data/docs/OrphansCleanup.md +1 -1
- data/docs/PaginatedAlternateContentSourceResponseList.md +23 -0
- data/docs/{PaginatedPermissionResponseList.md → PaginatedExportResponseList.md} +3 -3
- data/docs/PaginatedExporterResponseList.md +23 -0
- data/docs/PaginatedImporterResponseList.md +23 -0
- data/docs/PaginatedRemoteResponseList.md +23 -0
- data/docs/PatchedAccessPolicy.md +3 -1
- data/docs/PatchedAlternateContentSource.md +23 -0
- data/docs/PatchedContentGuard.md +19 -0
- data/docs/PatchedDistribution.md +25 -0
- data/docs/PatchedExporter.md +17 -0
- data/docs/PatchedImporter.md +17 -0
- data/docs/PatchedRemote.md +57 -0
- data/docs/PatchedRepository.md +25 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/PublicationsApi.md +117 -2
- data/docs/Remote.md +57 -0
- data/docs/RemoteResponse.md +53 -0
- data/docs/RemotesApi.md +376 -0
- data/docs/RepositoriesApi.md +283 -3
- data/docs/RepositoriesVersionsApi.md +271 -0
- data/docs/Repository.md +25 -0
- data/docs/RepositoryVersionsApi.md +2 -0
- data/docs/RolesApi.md +6 -2
- data/docs/SigningServicesApi.md +0 -2
- data/docs/TaskGroupsApi.md +2 -2
- data/docs/TaskSchedulesApi.md +2 -2
- data/docs/TasksApi.md +2 -2
- data/docs/UploadsApi.md +0 -2
- data/docs/UserRole.md +1 -1
- data/docs/UserRoleResponse.md +6 -2
- data/docs/UsersApi.md +2 -61
- data/docs/UsersRolesApi.md +2 -2
- data/docs/VersionResponse.md +3 -1
- data/docs/WorkersApi.md +2 -2
- data/lib/pulpcore_client/api/access_policies_api.rb +7 -3
- data/lib/pulpcore_client/api/acs_api.rb +514 -0
- data/lib/pulpcore_client/api/artifacts_api.rb +7 -3
- data/lib/pulpcore_client/api/content_api.rb +141 -5
- data/lib/pulpcore_client/api/contentguards_api.rb +341 -5
- data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +275 -3
- data/lib/pulpcore_client/api/contentguards_rbac_api.rb +7 -3
- data/lib/pulpcore_client/api/distributions_api.rb +343 -5
- data/lib/pulpcore_client/api/exporters_api.rb +446 -0
- data/lib/pulpcore_client/api/{groups_model_permissions_api.rb → exporters_exports_api.rb} +76 -79
- data/lib/pulpcore_client/api/exporters_filesystem_api.rb +7 -3
- data/lib/pulpcore_client/api/exporters_filesystem_exports_api.rb +0 -3
- data/lib/pulpcore_client/api/exporters_pulp_api.rb +7 -3
- data/lib/pulpcore_client/api/exporters_pulp_exports_api.rb +0 -3
- data/lib/pulpcore_client/api/groups_api.rb +7 -3
- data/lib/pulpcore_client/api/groups_roles_api.rb +7 -3
- data/lib/pulpcore_client/api/groups_users_api.rb +0 -3
- data/lib/pulpcore_client/api/importers_api.rb +444 -0
- data/lib/pulpcore_client/api/{groups_object_permissions_api.rb → importers_imports_api.rb} +76 -79
- data/lib/pulpcore_client/api/importers_pulp_api.rb +7 -3
- data/lib/pulpcore_client/api/importers_pulp_imports_api.rb +0 -3
- data/lib/pulpcore_client/api/publications_api.rb +138 -3
- data/lib/pulpcore_client/api/remotes_api.rb +467 -0
- data/lib/pulpcore_client/api/repositories_api.rb +343 -5
- data/lib/pulpcore_client/api/repositories_versions_api.rb +343 -0
- data/lib/pulpcore_client/api/repository_versions_api.rb +7 -0
- data/lib/pulpcore_client/api/roles_api.rb +13 -3
- data/lib/pulpcore_client/api/signing_services_api.rb +0 -3
- data/lib/pulpcore_client/api/task_groups_api.rb +7 -3
- data/lib/pulpcore_client/api/task_schedules_api.rb +7 -3
- data/lib/pulpcore_client/api/tasks_api.rb +7 -3
- data/lib/pulpcore_client/api/uploads_api.rb +0 -3
- data/lib/pulpcore_client/api/users_api.rb +7 -69
- data/lib/pulpcore_client/api/users_roles_api.rb +7 -3
- data/lib/pulpcore_client/api/workers_api.rb +7 -3
- data/lib/pulpcore_client/models/access_policy.rb +14 -4
- data/lib/pulpcore_client/models/access_policy_response.rb +14 -4
- data/lib/pulpcore_client/models/alternate_content_source.rb +270 -0
- data/lib/pulpcore_client/models/alternate_content_source_response.rb +270 -0
- data/lib/pulpcore_client/models/content_guard.rb +258 -0
- data/lib/pulpcore_client/models/distribution.rb +297 -0
- data/lib/pulpcore_client/models/export.rb +209 -0
- data/lib/pulpcore_client/models/export_response.rb +250 -0
- data/lib/pulpcore_client/models/exporter.rb +232 -0
- data/lib/pulpcore_client/models/{permission_response.rb → exporter_response.rb} +24 -27
- data/lib/pulpcore_client/models/group_role.rb +1 -1
- data/lib/pulpcore_client/models/group_role_response.rb +26 -6
- data/lib/pulpcore_client/models/import.rb +228 -0
- data/lib/pulpcore_client/models/importer.rb +232 -0
- data/lib/pulpcore_client/models/importer_response.rb +232 -0
- data/lib/pulpcore_client/models/multiple_artifact_content.rb +213 -0
- data/lib/pulpcore_client/models/orphans_cleanup.rb +0 -2
- data/lib/pulpcore_client/models/paginated_alternate_content_source_response_list.rb +237 -0
- data/lib/pulpcore_client/models/{paginated_permission_response_list.rb → paginated_export_response_list.rb} +4 -4
- data/lib/pulpcore_client/models/paginated_exporter_response_list.rb +237 -0
- data/lib/pulpcore_client/models/paginated_importer_response_list.rb +237 -0
- data/lib/pulpcore_client/models/paginated_remote_response_list.rb +237 -0
- data/lib/pulpcore_client/models/patched_access_policy.rb +14 -4
- data/lib/pulpcore_client/models/patched_alternate_content_source.rb +256 -0
- data/lib/pulpcore_client/models/patched_content_guard.rb +249 -0
- data/lib/pulpcore_client/models/patched_distribution.rb +279 -0
- data/lib/pulpcore_client/models/patched_exporter.rb +223 -0
- data/lib/pulpcore_client/models/patched_importer.rb +223 -0
- data/lib/pulpcore_client/models/patched_remote.rb +649 -0
- data/lib/pulpcore_client/models/patched_repository.rb +295 -0
- data/lib/pulpcore_client/models/policy_enum.rb +36 -0
- data/lib/pulpcore_client/models/remote.rb +667 -0
- data/lib/pulpcore_client/models/remote_response.rb +483 -0
- data/lib/pulpcore_client/models/repository.rb +304 -0
- data/lib/pulpcore_client/models/user_role.rb +1 -1
- data/lib/pulpcore_client/models/user_role_response.rb +26 -6
- data/lib/pulpcore_client/models/version_response.rb +19 -4
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +35 -4
- data/spec/api/access_policies_api_spec.rb +1 -1
- data/spec/api/acs_api_spec.rb +132 -0
- data/spec/api/artifacts_api_spec.rb +1 -1
- data/spec/api/content_api_spec.rb +28 -2
- data/spec/api/contentguards_api_spec.rb +66 -2
- data/spec/api/contentguards_content_redirect_api_spec.rb +51 -1
- data/spec/api/contentguards_rbac_api_spec.rb +1 -1
- data/spec/api/distributions_api_spec.rb +66 -2
- data/spec/api/exporters_api_spec.rb +120 -0
- data/spec/api/{groups_model_permissions_api_spec.rb → exporters_exports_api_spec.rb} +22 -23
- data/spec/api/exporters_filesystem_api_spec.rb +1 -1
- data/spec/api/exporters_filesystem_exports_api_spec.rb +0 -1
- data/spec/api/exporters_pulp_api_spec.rb +1 -1
- data/spec/api/exporters_pulp_exports_api_spec.rb +0 -1
- data/spec/api/groups_api_spec.rb +1 -1
- data/spec/api/groups_roles_api_spec.rb +1 -1
- data/spec/api/groups_users_api_spec.rb +0 -1
- data/spec/api/importers_api_spec.rb +120 -0
- data/spec/api/{groups_object_permissions_api_spec.rb → importers_imports_api_spec.rb} +22 -23
- data/spec/api/importers_pulp_api_spec.rb +1 -1
- data/spec/api/importers_pulp_imports_api_spec.rb +0 -1
- data/spec/api/publications_api_spec.rb +28 -1
- data/spec/api/remotes_api_spec.rb +127 -0
- data/spec/api/repositories_api_spec.rb +66 -2
- data/spec/api/repositories_versions_api_spec.rb +104 -0
- data/spec/api/repository_versions_api_spec.rb +1 -0
- data/spec/api/roles_api_spec.rb +3 -1
- data/spec/api/signing_services_api_spec.rb +0 -1
- data/spec/api/task_groups_api_spec.rb +1 -1
- data/spec/api/task_schedules_api_spec.rb +1 -1
- data/spec/api/tasks_api_spec.rb +1 -1
- data/spec/api/uploads_api_spec.rb +0 -1
- data/spec/api/users_api_spec.rb +1 -14
- data/spec/api/users_roles_api_spec.rb +1 -1
- data/spec/api/workers_api_spec.rb +1 -1
- data/spec/models/access_policy_response_spec.rb +6 -0
- data/spec/models/access_policy_spec.rb +6 -0
- data/spec/models/alternate_content_source_response_spec.rb +71 -0
- data/spec/models/{permission_response_spec.rb → alternate_content_source_spec.rb} +10 -10
- data/spec/models/content_guard_spec.rb +47 -0
- data/spec/models/distribution_spec.rb +65 -0
- data/spec/models/export_response_spec.rb +65 -0
- data/spec/models/export_spec.rb +41 -0
- data/spec/models/exporter_response_spec.rb +53 -0
- data/spec/models/exporter_spec.rb +41 -0
- data/spec/models/group_role_response_spec.rb +12 -0
- data/spec/models/import_spec.rb +47 -0
- data/spec/models/importer_response_spec.rb +53 -0
- data/spec/models/importer_spec.rb +41 -0
- data/spec/models/multiple_artifact_content_spec.rb +41 -0
- data/spec/models/paginated_alternate_content_source_response_list_spec.rb +59 -0
- data/spec/models/{paginated_permission_response_list_spec.rb → paginated_export_response_list_spec.rb} +6 -6
- data/spec/models/paginated_exporter_response_list_spec.rb +59 -0
- data/spec/models/paginated_importer_response_list_spec.rb +59 -0
- data/spec/models/paginated_remote_response_list_spec.rb +59 -0
- data/spec/models/patched_access_policy_spec.rb +6 -0
- data/spec/models/patched_alternate_content_source_spec.rb +59 -0
- data/spec/models/patched_content_guard_spec.rb +47 -0
- data/spec/models/patched_distribution_spec.rb +65 -0
- data/spec/models/patched_exporter_spec.rb +41 -0
- data/spec/models/patched_importer_spec.rb +41 -0
- data/spec/models/patched_remote_spec.rb +161 -0
- data/spec/models/patched_repository_spec.rb +65 -0
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/remote_response_spec.rb +149 -0
- data/spec/models/remote_spec.rb +161 -0
- data/spec/models/repository_spec.rb +65 -0
- data/spec/models/user_role_response_spec.rb +12 -0
- data/spec/models/version_response_spec.rb +6 -0
- metadata +263 -139
- data/docs/PermissionResponse.md +0 -23
data/docs/PublicationsApi.md
CHANGED
|
@@ -4,10 +4,64 @@ All URIs are relative to *https://pulp*
|
|
|
4
4
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
|
+
[**delete**](PublicationsApi.md#delete) | **DELETE** {publication_href} | Delete a publication
|
|
7
8
|
[**list**](PublicationsApi.md#list) | **GET** /pulp/api/v3/publications/ | List publications
|
|
9
|
+
[**read**](PublicationsApi.md#read) | **GET** {publication_href} | Inspect a publication
|
|
8
10
|
|
|
9
11
|
|
|
10
12
|
|
|
13
|
+
## delete
|
|
14
|
+
|
|
15
|
+
> delete(publication_href)
|
|
16
|
+
|
|
17
|
+
Delete a publication
|
|
18
|
+
|
|
19
|
+
A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
|
20
|
+
|
|
21
|
+
### Example
|
|
22
|
+
|
|
23
|
+
```ruby
|
|
24
|
+
# load the gem
|
|
25
|
+
require 'pulpcore_client'
|
|
26
|
+
# setup authorization
|
|
27
|
+
PulpcoreClient.configure do |config|
|
|
28
|
+
# Configure HTTP basic authorization: basicAuth
|
|
29
|
+
config.username = 'YOUR USERNAME'
|
|
30
|
+
config.password = 'YOUR PASSWORD'
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
api_instance = PulpcoreClient::PublicationsApi.new
|
|
34
|
+
publication_href = 'publication_href_example' # String |
|
|
35
|
+
|
|
36
|
+
begin
|
|
37
|
+
#Delete a publication
|
|
38
|
+
api_instance.delete(publication_href)
|
|
39
|
+
rescue PulpcoreClient::ApiError => e
|
|
40
|
+
puts "Exception when calling PublicationsApi->delete: #{e}"
|
|
41
|
+
end
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Parameters
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
Name | Type | Description | Notes
|
|
48
|
+
------------- | ------------- | ------------- | -------------
|
|
49
|
+
**publication_href** | **String**| |
|
|
50
|
+
|
|
51
|
+
### Return type
|
|
52
|
+
|
|
53
|
+
nil (empty response body)
|
|
54
|
+
|
|
55
|
+
### Authorization
|
|
56
|
+
|
|
57
|
+
[basicAuth](../README.md#basicAuth)
|
|
58
|
+
|
|
59
|
+
### HTTP request headers
|
|
60
|
+
|
|
61
|
+
- **Content-Type**: Not defined
|
|
62
|
+
- **Accept**: Not defined
|
|
63
|
+
|
|
64
|
+
|
|
11
65
|
## list
|
|
12
66
|
|
|
13
67
|
> PaginatedPublicationResponseList list(opts)
|
|
@@ -34,13 +88,14 @@ opts = {
|
|
|
34
88
|
content__in: 'content__in_example', # String | Content Unit referenced by HREF
|
|
35
89
|
limit: 56, # Integer | Number of results to return per page.
|
|
36
90
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
37
|
-
ordering: 'ordering_example', # String |
|
|
91
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
|
38
92
|
pulp_created: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | ISO 8601 formatted dates are supported
|
|
39
93
|
pulp_created__gt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than value
|
|
40
94
|
pulp_created__gte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than or equal to value
|
|
41
95
|
pulp_created__lt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is less than value
|
|
42
96
|
pulp_created__lte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is less than or equal to value
|
|
43
97
|
pulp_created__range: [DateTime.parse('2013-10-20T19:20:30+01:00')], # Array<DateTime> | Filter results where pulp_created is between two comma separated values
|
|
98
|
+
repository: 'repository_example', # String | Repository referenced by HREF
|
|
44
99
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
|
|
45
100
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
46
101
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
@@ -64,13 +119,14 @@ Name | Type | Description | Notes
|
|
|
64
119
|
**content__in** | **String**| Content Unit referenced by HREF | [optional]
|
|
65
120
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
66
121
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
67
|
-
**ordering** | **String
|
|
122
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
|
68
123
|
**pulp_created** | **DateTime**| ISO 8601 formatted dates are supported | [optional]
|
|
69
124
|
**pulp_created__gt** | **DateTime**| Filter results where pulp_created is greater than value | [optional]
|
|
70
125
|
**pulp_created__gte** | **DateTime**| Filter results where pulp_created is greater than or equal to value | [optional]
|
|
71
126
|
**pulp_created__lt** | **DateTime**| Filter results where pulp_created is less than value | [optional]
|
|
72
127
|
**pulp_created__lte** | **DateTime**| Filter results where pulp_created is less than or equal to value | [optional]
|
|
73
128
|
**pulp_created__range** | [**Array<DateTime>**](DateTime.md)| Filter results where pulp_created is between two comma separated values | [optional]
|
|
129
|
+
**repository** | **String**| Repository referenced by HREF | [optional]
|
|
74
130
|
**repository_version** | [**String**](.md)| Repository Version referenced by HREF | [optional]
|
|
75
131
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
76
132
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
@@ -88,3 +144,62 @@ Name | Type | Description | Notes
|
|
|
88
144
|
- **Content-Type**: Not defined
|
|
89
145
|
- **Accept**: application/json
|
|
90
146
|
|
|
147
|
+
|
|
148
|
+
## read
|
|
149
|
+
|
|
150
|
+
> PublicationResponse read(publication_href, opts)
|
|
151
|
+
|
|
152
|
+
Inspect a publication
|
|
153
|
+
|
|
154
|
+
A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
|
155
|
+
|
|
156
|
+
### Example
|
|
157
|
+
|
|
158
|
+
```ruby
|
|
159
|
+
# load the gem
|
|
160
|
+
require 'pulpcore_client'
|
|
161
|
+
# setup authorization
|
|
162
|
+
PulpcoreClient.configure do |config|
|
|
163
|
+
# Configure HTTP basic authorization: basicAuth
|
|
164
|
+
config.username = 'YOUR USERNAME'
|
|
165
|
+
config.password = 'YOUR PASSWORD'
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
api_instance = PulpcoreClient::PublicationsApi.new
|
|
169
|
+
publication_href = 'publication_href_example' # String |
|
|
170
|
+
opts = {
|
|
171
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
172
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
begin
|
|
176
|
+
#Inspect a publication
|
|
177
|
+
result = api_instance.read(publication_href, opts)
|
|
178
|
+
p result
|
|
179
|
+
rescue PulpcoreClient::ApiError => e
|
|
180
|
+
puts "Exception when calling PublicationsApi->read: #{e}"
|
|
181
|
+
end
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
### Parameters
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
Name | Type | Description | Notes
|
|
188
|
+
------------- | ------------- | ------------- | -------------
|
|
189
|
+
**publication_href** | **String**| |
|
|
190
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
191
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
192
|
+
|
|
193
|
+
### Return type
|
|
194
|
+
|
|
195
|
+
[**PublicationResponse**](PublicationResponse.md)
|
|
196
|
+
|
|
197
|
+
### Authorization
|
|
198
|
+
|
|
199
|
+
[basicAuth](../README.md#basicAuth)
|
|
200
|
+
|
|
201
|
+
### HTTP request headers
|
|
202
|
+
|
|
203
|
+
- **Content-Type**: Not defined
|
|
204
|
+
- **Accept**: application/json
|
|
205
|
+
|
data/docs/Remote.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# PulpcoreClient::Remote
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**name** | **String** | A unique name for this remote. |
|
|
8
|
+
**url** | **String** | The URL of an external content source. |
|
|
9
|
+
**ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
|
|
10
|
+
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
|
11
|
+
**client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
|
|
12
|
+
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
|
13
|
+
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
|
14
|
+
**proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
|
|
15
|
+
**proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
|
16
|
+
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
|
17
|
+
**password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
|
18
|
+
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
19
|
+
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
|
20
|
+
**max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
|
|
21
|
+
**policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. | [optional]
|
|
22
|
+
**total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
23
|
+
**connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
24
|
+
**sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
25
|
+
**sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
26
|
+
**headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
|
|
27
|
+
**rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
|
|
28
|
+
|
|
29
|
+
## Code Sample
|
|
30
|
+
|
|
31
|
+
```ruby
|
|
32
|
+
require 'PulpcoreClient'
|
|
33
|
+
|
|
34
|
+
instance = PulpcoreClient::Remote.new(name: null,
|
|
35
|
+
url: null,
|
|
36
|
+
ca_cert: null,
|
|
37
|
+
client_cert: null,
|
|
38
|
+
client_key: null,
|
|
39
|
+
tls_validation: null,
|
|
40
|
+
proxy_url: null,
|
|
41
|
+
proxy_username: null,
|
|
42
|
+
proxy_password: null,
|
|
43
|
+
username: null,
|
|
44
|
+
password: null,
|
|
45
|
+
pulp_labels: null,
|
|
46
|
+
download_concurrency: null,
|
|
47
|
+
max_retries: null,
|
|
48
|
+
policy: null,
|
|
49
|
+
total_timeout: null,
|
|
50
|
+
connect_timeout: null,
|
|
51
|
+
sock_connect_timeout: null,
|
|
52
|
+
sock_read_timeout: null,
|
|
53
|
+
headers: null,
|
|
54
|
+
rate_limit: null)
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# PulpcoreClient::RemoteResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
9
|
+
**name** | **String** | A unique name for this remote. |
|
|
10
|
+
**url** | **String** | The URL of an external content source. |
|
|
11
|
+
**ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
|
|
12
|
+
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
|
13
|
+
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
|
14
|
+
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
|
15
|
+
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
16
|
+
**pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
|
|
17
|
+
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
|
18
|
+
**max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
|
|
19
|
+
**policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. | [optional]
|
|
20
|
+
**total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
21
|
+
**connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
22
|
+
**sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
23
|
+
**sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
24
|
+
**headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
|
|
25
|
+
**rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
|
|
26
|
+
|
|
27
|
+
## Code Sample
|
|
28
|
+
|
|
29
|
+
```ruby
|
|
30
|
+
require 'PulpcoreClient'
|
|
31
|
+
|
|
32
|
+
instance = PulpcoreClient::RemoteResponse.new(pulp_href: null,
|
|
33
|
+
pulp_created: null,
|
|
34
|
+
name: null,
|
|
35
|
+
url: null,
|
|
36
|
+
ca_cert: null,
|
|
37
|
+
client_cert: null,
|
|
38
|
+
tls_validation: null,
|
|
39
|
+
proxy_url: null,
|
|
40
|
+
pulp_labels: null,
|
|
41
|
+
pulp_last_updated: null,
|
|
42
|
+
download_concurrency: null,
|
|
43
|
+
max_retries: null,
|
|
44
|
+
policy: null,
|
|
45
|
+
total_timeout: null,
|
|
46
|
+
connect_timeout: null,
|
|
47
|
+
sock_connect_timeout: null,
|
|
48
|
+
sock_read_timeout: null,
|
|
49
|
+
headers: null,
|
|
50
|
+
rate_limit: null)
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
|
data/docs/RemotesApi.md
ADDED
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
# PulpcoreClient::RemotesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://pulp*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**create**](RemotesApi.md#create) | **POST** /pulp/api/v3/remotes/ | Create a remote
|
|
8
|
+
[**delete**](RemotesApi.md#delete) | **DELETE** {remote_href} | Delete a remote
|
|
9
|
+
[**list**](RemotesApi.md#list) | **GET** /pulp/api/v3/remotes/ | List remotes
|
|
10
|
+
[**partial_update**](RemotesApi.md#partial_update) | **PATCH** {remote_href} | Update a remote
|
|
11
|
+
[**read**](RemotesApi.md#read) | **GET** {remote_href} | Inspect a remote
|
|
12
|
+
[**update**](RemotesApi.md#update) | **PUT** {remote_href} | Update a remote
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## create
|
|
17
|
+
|
|
18
|
+
> RemoteResponse create(remote)
|
|
19
|
+
|
|
20
|
+
Create a remote
|
|
21
|
+
|
|
22
|
+
A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
|
23
|
+
|
|
24
|
+
### Example
|
|
25
|
+
|
|
26
|
+
```ruby
|
|
27
|
+
# load the gem
|
|
28
|
+
require 'pulpcore_client'
|
|
29
|
+
# setup authorization
|
|
30
|
+
PulpcoreClient.configure do |config|
|
|
31
|
+
# Configure HTTP basic authorization: basicAuth
|
|
32
|
+
config.username = 'YOUR USERNAME'
|
|
33
|
+
config.password = 'YOUR PASSWORD'
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
api_instance = PulpcoreClient::RemotesApi.new
|
|
37
|
+
remote = PulpcoreClient::Remote.new # Remote |
|
|
38
|
+
|
|
39
|
+
begin
|
|
40
|
+
#Create a remote
|
|
41
|
+
result = api_instance.create(remote)
|
|
42
|
+
p result
|
|
43
|
+
rescue PulpcoreClient::ApiError => e
|
|
44
|
+
puts "Exception when calling RemotesApi->create: #{e}"
|
|
45
|
+
end
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Parameters
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
Name | Type | Description | Notes
|
|
52
|
+
------------- | ------------- | ------------- | -------------
|
|
53
|
+
**remote** | [**Remote**](Remote.md)| |
|
|
54
|
+
|
|
55
|
+
### Return type
|
|
56
|
+
|
|
57
|
+
[**RemoteResponse**](RemoteResponse.md)
|
|
58
|
+
|
|
59
|
+
### Authorization
|
|
60
|
+
|
|
61
|
+
[basicAuth](../README.md#basicAuth)
|
|
62
|
+
|
|
63
|
+
### HTTP request headers
|
|
64
|
+
|
|
65
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
66
|
+
- **Accept**: application/json
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
## delete
|
|
70
|
+
|
|
71
|
+
> AsyncOperationResponse delete(remote_href)
|
|
72
|
+
|
|
73
|
+
Delete a remote
|
|
74
|
+
|
|
75
|
+
Trigger an asynchronous delete task
|
|
76
|
+
|
|
77
|
+
### Example
|
|
78
|
+
|
|
79
|
+
```ruby
|
|
80
|
+
# load the gem
|
|
81
|
+
require 'pulpcore_client'
|
|
82
|
+
# setup authorization
|
|
83
|
+
PulpcoreClient.configure do |config|
|
|
84
|
+
# Configure HTTP basic authorization: basicAuth
|
|
85
|
+
config.username = 'YOUR USERNAME'
|
|
86
|
+
config.password = 'YOUR PASSWORD'
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
api_instance = PulpcoreClient::RemotesApi.new
|
|
90
|
+
remote_href = 'remote_href_example' # String |
|
|
91
|
+
|
|
92
|
+
begin
|
|
93
|
+
#Delete a remote
|
|
94
|
+
result = api_instance.delete(remote_href)
|
|
95
|
+
p result
|
|
96
|
+
rescue PulpcoreClient::ApiError => e
|
|
97
|
+
puts "Exception when calling RemotesApi->delete: #{e}"
|
|
98
|
+
end
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Parameters
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
Name | Type | Description | Notes
|
|
105
|
+
------------- | ------------- | ------------- | -------------
|
|
106
|
+
**remote_href** | **String**| |
|
|
107
|
+
|
|
108
|
+
### Return type
|
|
109
|
+
|
|
110
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
111
|
+
|
|
112
|
+
### Authorization
|
|
113
|
+
|
|
114
|
+
[basicAuth](../README.md#basicAuth)
|
|
115
|
+
|
|
116
|
+
### HTTP request headers
|
|
117
|
+
|
|
118
|
+
- **Content-Type**: Not defined
|
|
119
|
+
- **Accept**: application/json
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
## list
|
|
123
|
+
|
|
124
|
+
> PaginatedRemoteResponseList list(opts)
|
|
125
|
+
|
|
126
|
+
List remotes
|
|
127
|
+
|
|
128
|
+
A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
|
129
|
+
|
|
130
|
+
### Example
|
|
131
|
+
|
|
132
|
+
```ruby
|
|
133
|
+
# load the gem
|
|
134
|
+
require 'pulpcore_client'
|
|
135
|
+
# setup authorization
|
|
136
|
+
PulpcoreClient.configure do |config|
|
|
137
|
+
# Configure HTTP basic authorization: basicAuth
|
|
138
|
+
config.username = 'YOUR USERNAME'
|
|
139
|
+
config.password = 'YOUR PASSWORD'
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
api_instance = PulpcoreClient::RemotesApi.new
|
|
143
|
+
opts = {
|
|
144
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
145
|
+
name: 'name_example', # String |
|
|
146
|
+
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
|
147
|
+
name__icontains: 'name__icontains_example', # String | Filter results where name contains value
|
|
148
|
+
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
|
149
|
+
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
|
150
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
151
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
|
152
|
+
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
|
153
|
+
pulp_last_updated: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | ISO 8601 formatted dates are supported
|
|
154
|
+
pulp_last_updated__gt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_last_updated is greater than value
|
|
155
|
+
pulp_last_updated__gte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_last_updated is greater than or equal to value
|
|
156
|
+
pulp_last_updated__lt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_last_updated is less than value
|
|
157
|
+
pulp_last_updated__lte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_last_updated is less than or equal to value
|
|
158
|
+
pulp_last_updated__range: [DateTime.parse('2013-10-20T19:20:30+01:00')], # Array<DateTime> | Filter results where pulp_last_updated is between two comma separated values
|
|
159
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
160
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
begin
|
|
164
|
+
#List remotes
|
|
165
|
+
result = api_instance.list(opts)
|
|
166
|
+
p result
|
|
167
|
+
rescue PulpcoreClient::ApiError => e
|
|
168
|
+
puts "Exception when calling RemotesApi->list: #{e}"
|
|
169
|
+
end
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
### Parameters
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
Name | Type | Description | Notes
|
|
176
|
+
------------- | ------------- | ------------- | -------------
|
|
177
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
178
|
+
**name** | **String**| | [optional]
|
|
179
|
+
**name__contains** | **String**| Filter results where name contains value | [optional]
|
|
180
|
+
**name__icontains** | **String**| Filter results where name contains value | [optional]
|
|
181
|
+
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
|
182
|
+
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
|
183
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
184
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
|
185
|
+
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
|
186
|
+
**pulp_last_updated** | **DateTime**| ISO 8601 formatted dates are supported | [optional]
|
|
187
|
+
**pulp_last_updated__gt** | **DateTime**| Filter results where pulp_last_updated is greater than value | [optional]
|
|
188
|
+
**pulp_last_updated__gte** | **DateTime**| Filter results where pulp_last_updated is greater than or equal to value | [optional]
|
|
189
|
+
**pulp_last_updated__lt** | **DateTime**| Filter results where pulp_last_updated is less than value | [optional]
|
|
190
|
+
**pulp_last_updated__lte** | **DateTime**| Filter results where pulp_last_updated is less than or equal to value | [optional]
|
|
191
|
+
**pulp_last_updated__range** | [**Array<DateTime>**](DateTime.md)| Filter results where pulp_last_updated is between two comma separated values | [optional]
|
|
192
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
193
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
194
|
+
|
|
195
|
+
### Return type
|
|
196
|
+
|
|
197
|
+
[**PaginatedRemoteResponseList**](PaginatedRemoteResponseList.md)
|
|
198
|
+
|
|
199
|
+
### Authorization
|
|
200
|
+
|
|
201
|
+
[basicAuth](../README.md#basicAuth)
|
|
202
|
+
|
|
203
|
+
### HTTP request headers
|
|
204
|
+
|
|
205
|
+
- **Content-Type**: Not defined
|
|
206
|
+
- **Accept**: application/json
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
## partial_update
|
|
210
|
+
|
|
211
|
+
> AsyncOperationResponse partial_update(remote_href, patched_remote)
|
|
212
|
+
|
|
213
|
+
Update a remote
|
|
214
|
+
|
|
215
|
+
Trigger an asynchronous partial update task
|
|
216
|
+
|
|
217
|
+
### Example
|
|
218
|
+
|
|
219
|
+
```ruby
|
|
220
|
+
# load the gem
|
|
221
|
+
require 'pulpcore_client'
|
|
222
|
+
# setup authorization
|
|
223
|
+
PulpcoreClient.configure do |config|
|
|
224
|
+
# Configure HTTP basic authorization: basicAuth
|
|
225
|
+
config.username = 'YOUR USERNAME'
|
|
226
|
+
config.password = 'YOUR PASSWORD'
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
api_instance = PulpcoreClient::RemotesApi.new
|
|
230
|
+
remote_href = 'remote_href_example' # String |
|
|
231
|
+
patched_remote = PulpcoreClient::PatchedRemote.new # PatchedRemote |
|
|
232
|
+
|
|
233
|
+
begin
|
|
234
|
+
#Update a remote
|
|
235
|
+
result = api_instance.partial_update(remote_href, patched_remote)
|
|
236
|
+
p result
|
|
237
|
+
rescue PulpcoreClient::ApiError => e
|
|
238
|
+
puts "Exception when calling RemotesApi->partial_update: #{e}"
|
|
239
|
+
end
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
### Parameters
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
Name | Type | Description | Notes
|
|
246
|
+
------------- | ------------- | ------------- | -------------
|
|
247
|
+
**remote_href** | **String**| |
|
|
248
|
+
**patched_remote** | [**PatchedRemote**](PatchedRemote.md)| |
|
|
249
|
+
|
|
250
|
+
### Return type
|
|
251
|
+
|
|
252
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
253
|
+
|
|
254
|
+
### Authorization
|
|
255
|
+
|
|
256
|
+
[basicAuth](../README.md#basicAuth)
|
|
257
|
+
|
|
258
|
+
### HTTP request headers
|
|
259
|
+
|
|
260
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
261
|
+
- **Accept**: application/json
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
## read
|
|
265
|
+
|
|
266
|
+
> RemoteResponse read(remote_href, opts)
|
|
267
|
+
|
|
268
|
+
Inspect a remote
|
|
269
|
+
|
|
270
|
+
A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
|
271
|
+
|
|
272
|
+
### Example
|
|
273
|
+
|
|
274
|
+
```ruby
|
|
275
|
+
# load the gem
|
|
276
|
+
require 'pulpcore_client'
|
|
277
|
+
# setup authorization
|
|
278
|
+
PulpcoreClient.configure do |config|
|
|
279
|
+
# Configure HTTP basic authorization: basicAuth
|
|
280
|
+
config.username = 'YOUR USERNAME'
|
|
281
|
+
config.password = 'YOUR PASSWORD'
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
api_instance = PulpcoreClient::RemotesApi.new
|
|
285
|
+
remote_href = 'remote_href_example' # String |
|
|
286
|
+
opts = {
|
|
287
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
288
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
begin
|
|
292
|
+
#Inspect a remote
|
|
293
|
+
result = api_instance.read(remote_href, opts)
|
|
294
|
+
p result
|
|
295
|
+
rescue PulpcoreClient::ApiError => e
|
|
296
|
+
puts "Exception when calling RemotesApi->read: #{e}"
|
|
297
|
+
end
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
### Parameters
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
Name | Type | Description | Notes
|
|
304
|
+
------------- | ------------- | ------------- | -------------
|
|
305
|
+
**remote_href** | **String**| |
|
|
306
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
307
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
308
|
+
|
|
309
|
+
### Return type
|
|
310
|
+
|
|
311
|
+
[**RemoteResponse**](RemoteResponse.md)
|
|
312
|
+
|
|
313
|
+
### Authorization
|
|
314
|
+
|
|
315
|
+
[basicAuth](../README.md#basicAuth)
|
|
316
|
+
|
|
317
|
+
### HTTP request headers
|
|
318
|
+
|
|
319
|
+
- **Content-Type**: Not defined
|
|
320
|
+
- **Accept**: application/json
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
## update
|
|
324
|
+
|
|
325
|
+
> AsyncOperationResponse update(remote_href, remote)
|
|
326
|
+
|
|
327
|
+
Update a remote
|
|
328
|
+
|
|
329
|
+
Trigger an asynchronous update task
|
|
330
|
+
|
|
331
|
+
### Example
|
|
332
|
+
|
|
333
|
+
```ruby
|
|
334
|
+
# load the gem
|
|
335
|
+
require 'pulpcore_client'
|
|
336
|
+
# setup authorization
|
|
337
|
+
PulpcoreClient.configure do |config|
|
|
338
|
+
# Configure HTTP basic authorization: basicAuth
|
|
339
|
+
config.username = 'YOUR USERNAME'
|
|
340
|
+
config.password = 'YOUR PASSWORD'
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
api_instance = PulpcoreClient::RemotesApi.new
|
|
344
|
+
remote_href = 'remote_href_example' # String |
|
|
345
|
+
remote = PulpcoreClient::Remote.new # Remote |
|
|
346
|
+
|
|
347
|
+
begin
|
|
348
|
+
#Update a remote
|
|
349
|
+
result = api_instance.update(remote_href, remote)
|
|
350
|
+
p result
|
|
351
|
+
rescue PulpcoreClient::ApiError => e
|
|
352
|
+
puts "Exception when calling RemotesApi->update: #{e}"
|
|
353
|
+
end
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
### Parameters
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
Name | Type | Description | Notes
|
|
360
|
+
------------- | ------------- | ------------- | -------------
|
|
361
|
+
**remote_href** | **String**| |
|
|
362
|
+
**remote** | [**Remote**](Remote.md)| |
|
|
363
|
+
|
|
364
|
+
### Return type
|
|
365
|
+
|
|
366
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
367
|
+
|
|
368
|
+
### Authorization
|
|
369
|
+
|
|
370
|
+
[basicAuth](../README.md#basicAuth)
|
|
371
|
+
|
|
372
|
+
### HTTP request headers
|
|
373
|
+
|
|
374
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
375
|
+
- **Accept**: application/json
|
|
376
|
+
|