pulp_container_client 2.22.1 → 2.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -14
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContainerBlobResponse.md +18 -17
- data/docs/ContainerContainerDistribution.md +24 -23
- data/docs/ContainerContainerDistributionResponse.md +40 -39
- data/docs/ContainerContainerNamespace.md +8 -7
- data/docs/ContainerContainerNamespaceResponse.md +16 -15
- data/docs/ContainerContainerPullThroughDistribution.md +26 -25
- data/docs/ContainerContainerPullThroughDistributionResponse.md +38 -37
- data/docs/ContainerContainerPullThroughRemote.md +52 -51
- data/docs/ContainerContainerPullThroughRemoteResponse.md +52 -51
- data/docs/ContainerContainerPullThroughRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/ContainerContainerPushRepository.md +16 -15
- data/docs/ContainerContainerPushRepositoryResponse.md +28 -27
- data/docs/ContainerContainerRemote.md +56 -55
- data/docs/ContainerContainerRemoteResponse.md +56 -55
- data/docs/ContainerContainerRepository.md +18 -17
- data/docs/ContainerContainerRepositoryResponse.md +30 -29
- data/docs/ContainerManifestResponse.md +42 -41
- data/docs/ContainerManifestSignatureResponse.md +28 -27
- data/docs/ContainerRepositorySyncURL.md +12 -11
- data/docs/ContainerTagResponse.md +18 -17
- data/docs/ContentBlobsApi.md +82 -49
- data/docs/ContentManifestsApi.md +86 -53
- data/docs/ContentSignaturesApi.md +97 -64
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/ContentTagsApi.md +86 -53
- data/docs/DistributionsContainerApi.md +386 -183
- data/docs/DistributionsPullThroughApi.md +385 -182
- data/docs/ManifestCopy.md +14 -13
- data/docs/MediaTypesEnum.md +4 -5
- data/docs/MyPermissionsResponse.md +8 -7
- data/docs/NestedRole.md +12 -11
- data/docs/NestedRoleResponse.md +12 -11
- data/docs/ObjectRolesResponse.md +8 -7
- data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
- data/docs/PaginatedcontainerBlobResponseList.md +14 -13
- data/docs/PaginatedcontainerContainerDistributionResponseList.md +14 -13
- data/docs/PaginatedcontainerContainerNamespaceResponseList.md +14 -13
- data/docs/PaginatedcontainerContainerPullThroughDistributionResponseList.md +14 -13
- data/docs/PaginatedcontainerContainerPullThroughRemoteResponseList.md +14 -13
- data/docs/PaginatedcontainerContainerPushRepositoryResponseList.md +14 -13
- data/docs/PaginatedcontainerContainerRemoteResponseList.md +14 -13
- data/docs/PaginatedcontainerContainerRepositoryResponseList.md +14 -13
- data/docs/PaginatedcontainerManifestResponseList.md +14 -13
- data/docs/PaginatedcontainerManifestSignatureResponseList.md +14 -13
- data/docs/PaginatedcontainerTagResponseList.md +14 -13
- data/docs/PatchedcontainerContainerDistribution.md +24 -23
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +26 -25
- data/docs/PatchedcontainerContainerPullThroughRemote.md +52 -51
- data/docs/PatchedcontainerContainerPushRepository.md +16 -15
- data/docs/PatchedcontainerContainerRemote.md +56 -55
- data/docs/PatchedcontainerContainerRepository.md +18 -17
- data/docs/Policy692Enum.md +4 -5
- data/docs/Policy7e0Enum.md +4 -5
- data/docs/PulpContainerNamespacesApi.md +259 -124
- data/docs/RecursiveManage.md +8 -7
- data/docs/RemotesContainerApi.md +389 -184
- data/docs/RemotesPullThroughApi.md +389 -184
- data/docs/RemoveImage.md +8 -7
- data/docs/RemoveSignatures.md +8 -7
- data/docs/RemoveSignaturesResponse.md +8 -7
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesContainerApi.md +647 -291
- data/docs/RepositoriesContainerPushApi.md +419 -198
- data/docs/RepositoriesContainerPushVersionsApi.md +152 -82
- data/docs/RepositoriesContainerVersionsApi.md +152 -82
- data/docs/RepositorySign.md +12 -11
- data/docs/RepositoryVersionResponse.md +22 -21
- data/docs/SetLabel.md +10 -9
- data/docs/SetLabelResponse.md +10 -9
- data/docs/TagCopy.md +12 -11
- data/docs/TagImage.md +10 -9
- data/docs/TokenApi.md +25 -7
- data/docs/UnTagImage.md +8 -7
- data/docs/UnsetLabel.md +8 -7
- data/docs/UnsetLabelResponse.md +10 -9
- data/lib/pulp_container_client/api/content_blobs_api.rb +11 -9
- data/lib/pulp_container_client/api/content_manifests_api.rb +11 -9
- data/lib/pulp_container_client/api/content_signatures_api.rb +11 -9
- data/lib/pulp_container_client/api/content_tags_api.rb +11 -9
- data/lib/pulp_container_client/api/distributions_container_api.rb +89 -56
- data/lib/pulp_container_client/api/distributions_pull_through_api.rb +89 -56
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +53 -36
- data/lib/pulp_container_client/api/remotes_container_api.rb +104 -68
- data/lib/pulp_container_client/api/remotes_pull_through_api.rb +104 -68
- data/lib/pulp_container_client/api/repositories_container_api.rb +171 -102
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +102 -62
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +40 -30
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +40 -30
- data/lib/pulp_container_client/api/token_api.rb +5 -4
- data/lib/pulp_container_client/api_client.rb +137 -102
- data/lib/pulp_container_client/api_error.rb +2 -1
- data/lib/pulp_container_client/configuration.rb +162 -21
- data/lib/pulp_container_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_container_client/models/container_blob_response.rb +37 -29
- data/lib/pulp_container_client/models/container_container_distribution.rb +86 -74
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +95 -83
- data/lib/pulp_container_client/models/container_container_namespace.rb +32 -22
- data/lib/pulp_container_client/models/container_container_namespace_response.rb +34 -24
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +88 -74
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +97 -83
- data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +56 -22
- data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +59 -25
- data/lib/pulp_container_client/models/{container_container_pull_through_remote_response_hidden_fields.rb → container_container_pull_through_remote_response_hidden_fields_inner.rb} +37 -25
- data/lib/pulp_container_client/models/container_container_push_repository.rb +83 -73
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +91 -81
- data/lib/pulp_container_client/models/container_container_remote.rb +63 -23
- data/lib/pulp_container_client/models/container_container_remote_response.rb +61 -25
- data/lib/pulp_container_client/models/container_container_repository.rb +32 -22
- data/lib/pulp_container_client/models/container_container_repository_response.rb +34 -24
- data/lib/pulp_container_client/models/container_manifest_response.rb +42 -24
- data/lib/pulp_container_client/models/container_manifest_signature_response.rb +46 -24
- data/lib/pulp_container_client/models/container_repository_sync_url.rb +30 -22
- data/lib/pulp_container_client/models/container_tag_response.rb +36 -24
- data/lib/pulp_container_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_container_client/models/manifest_copy.rb +31 -23
- data/lib/pulp_container_client/models/media_types_enum.rb +8 -4
- data/lib/pulp_container_client/models/my_permissions_response.rb +32 -22
- data/lib/pulp_container_client/models/nested_role.rb +32 -22
- data/lib/pulp_container_client/models/nested_role_response.rb +32 -22
- data/lib/pulp_container_client/models/object_roles_response.rb +32 -22
- data/lib/pulp_container_client/models/paginated_repository_version_response_list.rb +34 -22
- data/lib/pulp_container_client/models/paginatedcontainer_blob_response_list.rb +34 -22
- data/lib/pulp_container_client/models/paginatedcontainer_container_distribution_response_list.rb +34 -22
- data/lib/pulp_container_client/models/paginatedcontainer_container_namespace_response_list.rb +34 -22
- data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_distribution_response_list.rb +34 -22
- data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_remote_response_list.rb +34 -22
- data/lib/pulp_container_client/models/paginatedcontainer_container_push_repository_response_list.rb +34 -22
- data/lib/pulp_container_client/models/paginatedcontainer_container_remote_response_list.rb +34 -22
- data/lib/pulp_container_client/models/paginatedcontainer_container_repository_response_list.rb +34 -22
- data/lib/pulp_container_client/models/paginatedcontainer_manifest_response_list.rb +34 -22
- data/lib/pulp_container_client/models/paginatedcontainer_manifest_signature_response_list.rb +34 -22
- data/lib/pulp_container_client/models/paginatedcontainer_tag_response_list.rb +34 -22
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +81 -65
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +81 -65
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +62 -24
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +77 -65
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +72 -26
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +35 -23
- data/lib/pulp_container_client/models/policy692_enum.rb +8 -4
- data/lib/pulp_container_client/models/policy7e0_enum.rb +8 -4
- data/lib/pulp_container_client/models/recursive_manage.rb +31 -23
- data/lib/pulp_container_client/models/remove_image.rb +32 -22
- data/lib/pulp_container_client/models/remove_signatures.rb +32 -22
- data/lib/pulp_container_client/models/remove_signatures_response.rb +32 -22
- data/lib/pulp_container_client/models/repair.rb +30 -22
- data/lib/pulp_container_client/models/repository_sign.rb +36 -24
- data/lib/pulp_container_client/models/repository_version_response.rb +32 -24
- data/lib/pulp_container_client/models/set_label.rb +34 -22
- data/lib/pulp_container_client/models/set_label_response.rb +34 -22
- data/lib/pulp_container_client/models/tag_copy.rb +31 -23
- data/lib/pulp_container_client/models/tag_image.rb +34 -22
- data/lib/pulp_container_client/models/un_tag_image.rb +32 -22
- data/lib/pulp_container_client/models/unset_label.rb +32 -22
- data/lib/pulp_container_client/models/unset_label_response.rb +32 -22
- data/lib/pulp_container_client/version.rb +2 -2
- data/lib/pulp_container_client.rb +2 -3
- data/pulp_container_client.gemspec +9 -6
- data/spec/api/content_blobs_api_spec.rb +3 -3
- data/spec/api/content_manifests_api_spec.rb +3 -3
- data/spec/api/content_signatures_api_spec.rb +3 -3
- data/spec/api/content_tags_api_spec.rb +3 -3
- data/spec/api/distributions_container_api_spec.rb +13 -13
- data/spec/api/distributions_pull_through_api_spec.rb +13 -13
- data/spec/api/pulp_container_namespaces_api_spec.rb +9 -9
- data/spec/api/remotes_container_api_spec.rb +20 -19
- data/spec/api/remotes_pull_through_api_spec.rb +20 -19
- data/spec/api/repositories_container_api_spec.rb +22 -22
- data/spec/api/repositories_container_push_api_spec.rb +14 -14
- data/spec/api/repositories_container_push_versions_api_spec.rb +12 -11
- data/spec/api/repositories_container_versions_api_spec.rb +12 -11
- data/spec/api/token_api_spec.rb +2 -2
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/container_blob_response_spec.rb +12 -17
- data/spec/models/container_container_distribution_response_spec.rb +34 -39
- data/spec/models/container_container_distribution_spec.rb +20 -25
- data/spec/models/container_container_namespace_response_spec.rb +11 -16
- data/spec/models/container_container_namespace_spec.rb +7 -12
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +33 -38
- data/spec/models/container_container_pull_through_distribution_spec.rb +21 -26
- data/spec/models/{container_container_pull_through_remote_response_hidden_fields_spec.rb → container_container_pull_through_remote_response_hidden_fields_inner_spec.rb} +11 -16
- data/spec/models/container_container_pull_through_remote_response_spec.rb +29 -34
- data/spec/models/container_container_pull_through_remote_spec.rb +29 -34
- data/spec/models/container_container_push_repository_response_spec.rb +28 -33
- data/spec/models/container_container_push_repository_spec.rb +15 -20
- data/spec/models/container_container_remote_response_spec.rb +31 -36
- data/spec/models/container_container_remote_spec.rb +31 -36
- data/spec/models/container_container_repository_response_spec.rb +18 -23
- data/spec/models/container_container_repository_spec.rb +12 -17
- data/spec/models/container_manifest_response_spec.rb +24 -29
- data/spec/models/container_manifest_signature_response_spec.rb +17 -22
- data/spec/models/container_repository_sync_url_spec.rb +9 -14
- data/spec/models/container_tag_response_spec.rb +12 -17
- data/spec/models/content_summary_response_spec.rb +9 -14
- data/spec/models/manifest_copy_spec.rb +10 -15
- data/spec/models/media_types_enum_spec.rb +6 -11
- data/spec/models/my_permissions_response_spec.rb +7 -12
- data/spec/models/nested_role_response_spec.rb +9 -14
- data/spec/models/nested_role_spec.rb +9 -14
- data/spec/models/object_roles_response_spec.rb +7 -12
- data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
- data/spec/models/paginatedcontainer_blob_response_list_spec.rb +10 -15
- data/spec/models/paginatedcontainer_container_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginatedcontainer_container_namespace_response_list_spec.rb +10 -15
- data/spec/models/paginatedcontainer_container_pull_through_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginatedcontainer_container_pull_through_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedcontainer_container_push_repository_response_list_spec.rb +10 -15
- data/spec/models/paginatedcontainer_container_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedcontainer_container_repository_response_list_spec.rb +10 -15
- data/spec/models/paginatedcontainer_manifest_response_list_spec.rb +10 -15
- data/spec/models/paginatedcontainer_manifest_signature_response_list_spec.rb +10 -15
- data/spec/models/paginatedcontainer_tag_response_list_spec.rb +10 -15
- data/spec/models/patchedcontainer_container_distribution_spec.rb +20 -25
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +21 -26
- data/spec/models/patchedcontainer_container_pull_through_remote_spec.rb +29 -34
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +15 -20
- data/spec/models/patchedcontainer_container_remote_spec.rb +31 -36
- data/spec/models/patchedcontainer_container_repository_spec.rb +12 -17
- data/spec/models/policy692_enum_spec.rb +6 -11
- data/spec/models/policy7e0_enum_spec.rb +6 -11
- data/spec/models/recursive_manage_spec.rb +7 -12
- data/spec/models/remove_image_spec.rb +7 -12
- data/spec/models/remove_signatures_response_spec.rb +7 -12
- data/spec/models/remove_signatures_spec.rb +7 -12
- data/spec/models/repair_spec.rb +7 -12
- data/spec/models/repository_sign_spec.rb +9 -14
- data/spec/models/repository_version_response_spec.rb +14 -19
- data/spec/models/set_label_response_spec.rb +8 -13
- data/spec/models/set_label_spec.rb +8 -13
- data/spec/models/tag_copy_spec.rb +9 -14
- data/spec/models/tag_image_spec.rb +8 -13
- data/spec/models/un_tag_image_spec.rb +7 -12
- data/spec/models/unset_label_response_spec.rb +8 -13
- data/spec/models/unset_label_spec.rb +7 -12
- data/spec/spec_helper.rb +1 -1
- metadata +105 -85
- data/docs/ContainerContainerPullThroughRemoteResponseHiddenFields.md +0 -19
- data/docs/OCIBuildImage.md +0 -23
- data/lib/pulp_container_client/models/oci_build_image.rb +0 -256
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/oci_build_image_spec.rb +0 -59
@@ -2,27 +2,26 @@
|
|
2
2
|
|
3
3
|
All URIs are relative to *http://localhost:24817*
|
4
4
|
|
5
|
-
Method | HTTP request | Description
|
6
|
-
|
7
|
-
[**delete**](RepositoriesContainerVersionsApi.md#delete) | **DELETE** {container_container_repository_version_href} | Delete a repository version
|
8
|
-
[**list**](RepositoriesContainerVersionsApi.md#list) | **GET** {container_container_repository_href}versions/ | List repository versions
|
9
|
-
[**read**](RepositoriesContainerVersionsApi.md#read) | **GET** {container_container_repository_version_href} | Inspect a repository version
|
10
|
-
[**repair**](RepositoriesContainerVersionsApi.md#repair) | **POST** {container_container_repository_version_href}repair/ |
|
11
|
-
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**delete**](RepositoriesContainerVersionsApi.md#delete) | **DELETE** {container_container_repository_version_href} | Delete a repository version |
|
8
|
+
| [**list**](RepositoriesContainerVersionsApi.md#list) | **GET** {container_container_repository_href}versions/ | List repository versions |
|
9
|
+
| [**read**](RepositoriesContainerVersionsApi.md#read) | **GET** {container_container_repository_version_href} | Inspect a repository version |
|
10
|
+
| [**repair**](RepositoriesContainerVersionsApi.md#repair) | **POST** {container_container_repository_version_href}repair/ | |
|
12
11
|
|
13
12
|
|
14
13
|
## delete
|
15
14
|
|
16
|
-
> AsyncOperationResponse delete(container_container_repository_version_href)
|
15
|
+
> <AsyncOperationResponse> delete(container_container_repository_version_href)
|
17
16
|
|
18
17
|
Delete a repository version
|
19
18
|
|
20
19
|
Trigger an asynchronous task to delete a repository version.
|
21
20
|
|
22
|
-
###
|
21
|
+
### Examples
|
23
22
|
|
24
23
|
```ruby
|
25
|
-
|
24
|
+
require 'time'
|
26
25
|
require 'pulp_container_client'
|
27
26
|
# setup authorization
|
28
27
|
PulpContainerClient.configure do |config|
|
@@ -35,20 +34,37 @@ api_instance = PulpContainerClient::RepositoriesContainerVersionsApi.new
|
|
35
34
|
container_container_repository_version_href = 'container_container_repository_version_href_example' # String |
|
36
35
|
|
37
36
|
begin
|
38
|
-
#Delete a repository version
|
37
|
+
# Delete a repository version
|
39
38
|
result = api_instance.delete(container_container_repository_version_href)
|
40
39
|
p result
|
41
40
|
rescue PulpContainerClient::ApiError => e
|
42
|
-
puts "
|
41
|
+
puts "Error when calling RepositoriesContainerVersionsApi->delete: #{e}"
|
43
42
|
end
|
44
43
|
```
|
45
44
|
|
46
|
-
|
45
|
+
#### Using the delete_with_http_info variant
|
46
|
+
|
47
|
+
This returns an Array which contains the response data, status code and headers.
|
47
48
|
|
49
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> delete_with_http_info(container_container_repository_version_href)
|
50
|
+
|
51
|
+
```ruby
|
52
|
+
begin
|
53
|
+
# Delete a repository version
|
54
|
+
data, status_code, headers = api_instance.delete_with_http_info(container_container_repository_version_href)
|
55
|
+
p status_code # => 2xx
|
56
|
+
p headers # => { ... }
|
57
|
+
p data # => <AsyncOperationResponse>
|
58
|
+
rescue PulpContainerClient::ApiError => e
|
59
|
+
puts "Error when calling RepositoriesContainerVersionsApi->delete_with_http_info: #{e}"
|
60
|
+
end
|
61
|
+
```
|
62
|
+
|
63
|
+
### Parameters
|
48
64
|
|
49
|
-
Name | Type | Description
|
50
|
-
|
51
|
-
**container_container_repository_version_href** | **String
|
65
|
+
| Name | Type | Description | Notes |
|
66
|
+
| ---- | ---- | ----------- | ----- |
|
67
|
+
| **container_container_repository_version_href** | **String** | | |
|
52
68
|
|
53
69
|
### Return type
|
54
70
|
|
@@ -66,16 +82,16 @@ Name | Type | Description | Notes
|
|
66
82
|
|
67
83
|
## list
|
68
84
|
|
69
|
-
> PaginatedRepositoryVersionResponseList list(container_container_repository_href, opts)
|
85
|
+
> <PaginatedRepositoryVersionResponseList> list(container_container_repository_href, opts)
|
70
86
|
|
71
87
|
List repository versions
|
72
88
|
|
73
89
|
ContainerRepositoryVersion represents a single container repository version.
|
74
90
|
|
75
|
-
###
|
91
|
+
### Examples
|
76
92
|
|
77
93
|
```ruby
|
78
|
-
|
94
|
+
require 'time'
|
79
95
|
require 'pulp_container_client'
|
80
96
|
# setup authorization
|
81
97
|
PulpContainerClient.configure do |config|
|
@@ -88,66 +104,85 @@ api_instance = PulpContainerClient::RepositoriesContainerVersionsApi.new
|
|
88
104
|
container_container_repository_href = 'container_container_repository_href_example' # String |
|
89
105
|
opts = {
|
90
106
|
content: 'content_example', # String | Content Unit referenced by HREF/PRN
|
91
|
-
content__in: ['
|
107
|
+
content__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
92
108
|
limit: 56, # Integer | Number of results to return per page.
|
93
109
|
number: 56, # Integer | Filter results where number matches value
|
94
110
|
number__gt: 56, # Integer | Filter results where number is greater than value
|
95
111
|
number__gte: 56, # Integer | Filter results where number is greater than or equal to value
|
96
112
|
number__lt: 56, # Integer | Filter results where number is less than value
|
97
113
|
number__lte: 56, # Integer | Filter results where number is less than or equal to value
|
98
|
-
number__range: [
|
114
|
+
number__range: [37], # Array<Integer> | Filter results where number is between two comma separated values
|
99
115
|
offset: 56, # Integer | The initial index from which to return the results.
|
100
|
-
ordering: ['
|
101
|
-
prn__in: ['
|
102
|
-
pulp_created:
|
103
|
-
pulp_created__gt:
|
104
|
-
pulp_created__gte:
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
116
|
+
ordering: ['-complete'], # Array<String> | 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) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
117
|
+
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
118
|
+
pulp_created: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filter results where pulp_created matches value
|
119
|
+
pulp_created__gt: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filter results where pulp_created is greater than value
|
120
|
+
pulp_created__gte: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filter results where pulp_created is greater than or equal to value
|
121
|
+
pulp_created__isnull: true, # Boolean | Filter results where pulp_created has a null value
|
122
|
+
pulp_created__lt: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filter results where pulp_created is less than value
|
123
|
+
pulp_created__lte: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filter results where pulp_created is less than or equal to value
|
124
|
+
pulp_created__range: [Time.now], # Array<Time> | Filter results where pulp_created is between two comma separated values
|
125
|
+
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
109
126
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
110
|
-
fields: ['
|
111
|
-
exclude_fields: ['
|
127
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
128
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
112
129
|
}
|
113
130
|
|
114
131
|
begin
|
115
|
-
#List repository versions
|
132
|
+
# List repository versions
|
116
133
|
result = api_instance.list(container_container_repository_href, opts)
|
117
134
|
p result
|
118
135
|
rescue PulpContainerClient::ApiError => e
|
119
|
-
puts "
|
136
|
+
puts "Error when calling RepositoriesContainerVersionsApi->list: #{e}"
|
120
137
|
end
|
121
138
|
```
|
122
139
|
|
123
|
-
|
140
|
+
#### Using the list_with_http_info variant
|
141
|
+
|
142
|
+
This returns an Array which contains the response data, status code and headers.
|
143
|
+
|
144
|
+
> <Array(<PaginatedRepositoryVersionResponseList>, Integer, Hash)> list_with_http_info(container_container_repository_href, opts)
|
145
|
+
|
146
|
+
```ruby
|
147
|
+
begin
|
148
|
+
# List repository versions
|
149
|
+
data, status_code, headers = api_instance.list_with_http_info(container_container_repository_href, opts)
|
150
|
+
p status_code # => 2xx
|
151
|
+
p headers # => { ... }
|
152
|
+
p data # => <PaginatedRepositoryVersionResponseList>
|
153
|
+
rescue PulpContainerClient::ApiError => e
|
154
|
+
puts "Error when calling RepositoriesContainerVersionsApi->list_with_http_info: #{e}"
|
155
|
+
end
|
156
|
+
```
|
124
157
|
|
158
|
+
### Parameters
|
125
159
|
|
126
|
-
Name | Type | Description
|
127
|
-
|
128
|
-
**container_container_repository_href** | **String
|
129
|
-
**content** | **String
|
130
|
-
**content__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
131
|
-
**limit** | **Integer
|
132
|
-
**number** | **Integer
|
133
|
-
**number__gt** | **Integer
|
134
|
-
**number__gte** | **Integer
|
135
|
-
**number__lt** | **Integer
|
136
|
-
**number__lte** | **Integer
|
137
|
-
**number__range** | [**Array<Integer>**](Integer.md)| Filter results where number is between two comma separated values | [optional]
|
138
|
-
**offset** | **Integer
|
139
|
-
**ordering** | [**Array<String>**](String.md)| 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) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
140
|
-
**prn__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
141
|
-
**pulp_created** | **
|
142
|
-
**pulp_created__gt** | **
|
143
|
-
**pulp_created__gte** | **
|
144
|
-
**
|
145
|
-
**
|
146
|
-
**
|
147
|
-
**
|
148
|
-
**
|
149
|
-
**
|
150
|
-
**
|
160
|
+
| Name | Type | Description | Notes |
|
161
|
+
| ---- | ---- | ----------- | ----- |
|
162
|
+
| **container_container_repository_href** | **String** | | |
|
163
|
+
| **content** | **String** | Content Unit referenced by HREF/PRN | [optional] |
|
164
|
+
| **content__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
165
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
166
|
+
| **number** | **Integer** | Filter results where number matches value | [optional] |
|
167
|
+
| **number__gt** | **Integer** | Filter results where number is greater than value | [optional] |
|
168
|
+
| **number__gte** | **Integer** | Filter results where number is greater than or equal to value | [optional] |
|
169
|
+
| **number__lt** | **Integer** | Filter results where number is less than value | [optional] |
|
170
|
+
| **number__lte** | **Integer** | Filter results where number is less than or equal to value | [optional] |
|
171
|
+
| **number__range** | [**Array<Integer>**](Integer.md) | Filter results where number is between two comma separated values | [optional] |
|
172
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
173
|
+
| **ordering** | [**Array<String>**](String.md) | 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) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
174
|
+
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
175
|
+
| **pulp_created** | **Time** | Filter results where pulp_created matches value | [optional] |
|
176
|
+
| **pulp_created__gt** | **Time** | Filter results where pulp_created is greater than value | [optional] |
|
177
|
+
| **pulp_created__gte** | **Time** | Filter results where pulp_created is greater than or equal to value | [optional] |
|
178
|
+
| **pulp_created__isnull** | **Boolean** | Filter results where pulp_created has a null value | [optional] |
|
179
|
+
| **pulp_created__lt** | **Time** | Filter results where pulp_created is less than value | [optional] |
|
180
|
+
| **pulp_created__lte** | **Time** | Filter results where pulp_created is less than or equal to value | [optional] |
|
181
|
+
| **pulp_created__range** | [**Array<Time>**](Time.md) | Filter results where pulp_created is between two comma separated values | [optional] |
|
182
|
+
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
183
|
+
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
184
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
185
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
151
186
|
|
152
187
|
### Return type
|
153
188
|
|
@@ -165,16 +200,16 @@ Name | Type | Description | Notes
|
|
165
200
|
|
166
201
|
## read
|
167
202
|
|
168
|
-
> RepositoryVersionResponse read(container_container_repository_version_href, opts)
|
203
|
+
> <RepositoryVersionResponse> read(container_container_repository_version_href, opts)
|
169
204
|
|
170
205
|
Inspect a repository version
|
171
206
|
|
172
207
|
ContainerRepositoryVersion represents a single container repository version.
|
173
208
|
|
174
|
-
###
|
209
|
+
### Examples
|
175
210
|
|
176
211
|
```ruby
|
177
|
-
|
212
|
+
require 'time'
|
178
213
|
require 'pulp_container_client'
|
179
214
|
# setup authorization
|
180
215
|
PulpContainerClient.configure do |config|
|
@@ -186,27 +221,44 @@ end
|
|
186
221
|
api_instance = PulpContainerClient::RepositoriesContainerVersionsApi.new
|
187
222
|
container_container_repository_version_href = 'container_container_repository_version_href_example' # String |
|
188
223
|
opts = {
|
189
|
-
fields: ['
|
190
|
-
exclude_fields: ['
|
224
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
225
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
191
226
|
}
|
192
227
|
|
193
228
|
begin
|
194
|
-
#Inspect a repository version
|
229
|
+
# Inspect a repository version
|
195
230
|
result = api_instance.read(container_container_repository_version_href, opts)
|
196
231
|
p result
|
197
232
|
rescue PulpContainerClient::ApiError => e
|
198
|
-
puts "
|
233
|
+
puts "Error when calling RepositoriesContainerVersionsApi->read: #{e}"
|
199
234
|
end
|
200
235
|
```
|
201
236
|
|
202
|
-
|
237
|
+
#### Using the read_with_http_info variant
|
238
|
+
|
239
|
+
This returns an Array which contains the response data, status code and headers.
|
240
|
+
|
241
|
+
> <Array(<RepositoryVersionResponse>, Integer, Hash)> read_with_http_info(container_container_repository_version_href, opts)
|
242
|
+
|
243
|
+
```ruby
|
244
|
+
begin
|
245
|
+
# Inspect a repository version
|
246
|
+
data, status_code, headers = api_instance.read_with_http_info(container_container_repository_version_href, opts)
|
247
|
+
p status_code # => 2xx
|
248
|
+
p headers # => { ... }
|
249
|
+
p data # => <RepositoryVersionResponse>
|
250
|
+
rescue PulpContainerClient::ApiError => e
|
251
|
+
puts "Error when calling RepositoriesContainerVersionsApi->read_with_http_info: #{e}"
|
252
|
+
end
|
253
|
+
```
|
203
254
|
|
255
|
+
### Parameters
|
204
256
|
|
205
|
-
Name | Type | Description
|
206
|
-
|
207
|
-
**container_container_repository_version_href** | **String
|
208
|
-
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
209
|
-
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
257
|
+
| Name | Type | Description | Notes |
|
258
|
+
| ---- | ---- | ----------- | ----- |
|
259
|
+
| **container_container_repository_version_href** | **String** | | |
|
260
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
261
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
210
262
|
|
211
263
|
### Return type
|
212
264
|
|
@@ -224,16 +276,16 @@ Name | Type | Description | Notes
|
|
224
276
|
|
225
277
|
## repair
|
226
278
|
|
227
|
-
> AsyncOperationResponse repair(container_container_repository_version_href, repair)
|
279
|
+
> <AsyncOperationResponse> repair(container_container_repository_version_href, repair)
|
228
280
|
|
229
281
|
|
230
282
|
|
231
283
|
Trigger an asynchronous task to repair a repository version.
|
232
284
|
|
233
|
-
###
|
285
|
+
### Examples
|
234
286
|
|
235
287
|
```ruby
|
236
|
-
|
288
|
+
require 'time'
|
237
289
|
require 'pulp_container_client'
|
238
290
|
# setup authorization
|
239
291
|
PulpContainerClient.configure do |config|
|
@@ -247,20 +299,38 @@ container_container_repository_version_href = 'container_container_repository_ve
|
|
247
299
|
repair = PulpContainerClient::Repair.new # Repair |
|
248
300
|
|
249
301
|
begin
|
302
|
+
|
250
303
|
result = api_instance.repair(container_container_repository_version_href, repair)
|
251
304
|
p result
|
252
305
|
rescue PulpContainerClient::ApiError => e
|
253
|
-
puts "
|
306
|
+
puts "Error when calling RepositoriesContainerVersionsApi->repair: #{e}"
|
254
307
|
end
|
255
308
|
```
|
256
309
|
|
257
|
-
|
310
|
+
#### Using the repair_with_http_info variant
|
311
|
+
|
312
|
+
This returns an Array which contains the response data, status code and headers.
|
313
|
+
|
314
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> repair_with_http_info(container_container_repository_version_href, repair)
|
315
|
+
|
316
|
+
```ruby
|
317
|
+
begin
|
318
|
+
|
319
|
+
data, status_code, headers = api_instance.repair_with_http_info(container_container_repository_version_href, repair)
|
320
|
+
p status_code # => 2xx
|
321
|
+
p headers # => { ... }
|
322
|
+
p data # => <AsyncOperationResponse>
|
323
|
+
rescue PulpContainerClient::ApiError => e
|
324
|
+
puts "Error when calling RepositoriesContainerVersionsApi->repair_with_http_info: #{e}"
|
325
|
+
end
|
326
|
+
```
|
258
327
|
|
328
|
+
### Parameters
|
259
329
|
|
260
|
-
Name | Type | Description
|
261
|
-
|
262
|
-
**container_container_repository_version_href** | **String
|
263
|
-
**repair** | [**Repair**](Repair.md)| |
|
330
|
+
| Name | Type | Description | Notes |
|
331
|
+
| ---- | ---- | ----------- | ----- |
|
332
|
+
| **container_container_repository_version_href** | **String** | | |
|
333
|
+
| **repair** | [**Repair**](Repair.md) | | |
|
264
334
|
|
265
335
|
### Return type
|
266
336
|
|
data/docs/RepositorySign.md
CHANGED
@@ -2,20 +2,21 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**manifest_signing_service** | **String** | A signing service to sign with. This will override a signing service set on the repo. | [optional]
|
8
|
-
**future_base_path** | **String** | Future base path content will be distributed at for sync repos | [optional]
|
9
|
-
**tags_list** |
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **manifest_signing_service** | **String** | A signing service to sign with. This will override a signing service set on the repo. | [optional] |
|
8
|
+
| **future_base_path** | **String** | Future base path content will be distributed at for sync repos | [optional] |
|
9
|
+
| **tags_list** | **Array<Object>** | A list of tags to sign. | [optional] |
|
10
10
|
|
11
|
-
##
|
11
|
+
## Example
|
12
12
|
|
13
13
|
```ruby
|
14
|
-
require '
|
14
|
+
require 'pulp_container_client'
|
15
15
|
|
16
|
-
instance = PulpContainerClient::RepositorySign.new(
|
17
|
-
|
18
|
-
|
16
|
+
instance = PulpContainerClient::RepositorySign.new(
|
17
|
+
manifest_signing_service: null,
|
18
|
+
future_base_path: null,
|
19
|
+
tags_list: null
|
20
|
+
)
|
19
21
|
```
|
20
22
|
|
21
|
-
|
@@ -2,30 +2,31 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**pulp_href** | **String** | | [optional]
|
8
|
-
**prn** | **String** | The Pulp Resource Name (PRN). | [optional]
|
9
|
-
**pulp_created** | **
|
10
|
-
**pulp_last_updated** | **
|
11
|
-
**number** | **Integer** | | [optional]
|
12
|
-
**repository** | **String** | | [optional]
|
13
|
-
**base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
|
14
|
-
**content_summary** | [**ContentSummaryResponse**](ContentSummaryResponse.md) | Various count summaries of the content in the version and the HREF to view them. | [optional]
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **pulp_href** | **String** | | [optional][readonly] |
|
8
|
+
| **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
|
9
|
+
| **pulp_created** | **Time** | Timestamp of creation. | [optional][readonly] |
|
10
|
+
| **pulp_last_updated** | **Time** | 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. | [optional][readonly] |
|
11
|
+
| **number** | **Integer** | | [optional][readonly] |
|
12
|
+
| **repository** | **String** | | [optional][readonly] |
|
13
|
+
| **base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional] |
|
14
|
+
| **content_summary** | [**ContentSummaryResponse**](ContentSummaryResponse.md) | Various count summaries of the content in the version and the HREF to view them. | [optional][readonly] |
|
15
15
|
|
16
|
-
##
|
16
|
+
## Example
|
17
17
|
|
18
18
|
```ruby
|
19
|
-
require '
|
19
|
+
require 'pulp_container_client'
|
20
20
|
|
21
|
-
instance = PulpContainerClient::RepositoryVersionResponse.new(
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
21
|
+
instance = PulpContainerClient::RepositoryVersionResponse.new(
|
22
|
+
pulp_href: null,
|
23
|
+
prn: null,
|
24
|
+
pulp_created: null,
|
25
|
+
pulp_last_updated: null,
|
26
|
+
number: null,
|
27
|
+
repository: null,
|
28
|
+
base_version: null,
|
29
|
+
content_summary: null
|
30
|
+
)
|
29
31
|
```
|
30
32
|
|
31
|
-
|
data/docs/SetLabel.md
CHANGED
@@ -2,18 +2,19 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**key** | **String** | |
|
8
|
-
**value** | **String** | |
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **key** | **String** | | |
|
8
|
+
| **value** | **String** | | |
|
9
9
|
|
10
|
-
##
|
10
|
+
## Example
|
11
11
|
|
12
12
|
```ruby
|
13
|
-
require '
|
13
|
+
require 'pulp_container_client'
|
14
14
|
|
15
|
-
instance = PulpContainerClient::SetLabel.new(
|
16
|
-
|
15
|
+
instance = PulpContainerClient::SetLabel.new(
|
16
|
+
key: null,
|
17
|
+
value: null
|
18
|
+
)
|
17
19
|
```
|
18
20
|
|
19
|
-
|
data/docs/SetLabelResponse.md
CHANGED
@@ -2,18 +2,19 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**key** | **String** | |
|
8
|
-
**value** | **String** | |
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **key** | **String** | | |
|
8
|
+
| **value** | **String** | | |
|
9
9
|
|
10
|
-
##
|
10
|
+
## Example
|
11
11
|
|
12
12
|
```ruby
|
13
|
-
require '
|
13
|
+
require 'pulp_container_client'
|
14
14
|
|
15
|
-
instance = PulpContainerClient::SetLabelResponse.new(
|
16
|
-
|
15
|
+
instance = PulpContainerClient::SetLabelResponse.new(
|
16
|
+
key: null,
|
17
|
+
value: null
|
18
|
+
)
|
17
19
|
```
|
18
20
|
|
19
|
-
|
data/docs/TagCopy.md
CHANGED
@@ -2,20 +2,21 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**source_repository** | **String** | A URI of the repository to copy content from. | [optional]
|
8
|
-
**source_repository_version** | **String** | A URI of the repository version to copy content from. | [optional]
|
9
|
-
**names** |
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **source_repository** | **String** | A URI of the repository to copy content from. | [optional] |
|
8
|
+
| **source_repository_version** | **String** | A URI of the repository version to copy content from. | [optional] |
|
9
|
+
| **names** | **Array<Object>** | A list of tag names to copy. | [optional] |
|
10
10
|
|
11
|
-
##
|
11
|
+
## Example
|
12
12
|
|
13
13
|
```ruby
|
14
|
-
require '
|
14
|
+
require 'pulp_container_client'
|
15
15
|
|
16
|
-
instance = PulpContainerClient::TagCopy.new(
|
17
|
-
|
18
|
-
|
16
|
+
instance = PulpContainerClient::TagCopy.new(
|
17
|
+
source_repository: null,
|
18
|
+
source_repository_version: null,
|
19
|
+
names: null
|
20
|
+
)
|
19
21
|
```
|
20
22
|
|
21
|
-
|
data/docs/TagImage.md
CHANGED
@@ -2,18 +2,19 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**tag** | **String** | A tag name |
|
8
|
-
**digest** | **String** | sha256 of the Manifest file |
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **tag** | **String** | A tag name | |
|
8
|
+
| **digest** | **String** | sha256 of the Manifest file | |
|
9
9
|
|
10
|
-
##
|
10
|
+
## Example
|
11
11
|
|
12
12
|
```ruby
|
13
|
-
require '
|
13
|
+
require 'pulp_container_client'
|
14
14
|
|
15
|
-
instance = PulpContainerClient::TagImage.new(
|
16
|
-
|
15
|
+
instance = PulpContainerClient::TagImage.new(
|
16
|
+
tag: null,
|
17
|
+
digest: null
|
18
|
+
)
|
17
19
|
```
|
18
20
|
|
19
|
-
|
data/docs/TokenApi.md
CHANGED
@@ -2,10 +2,9 @@
|
|
2
2
|
|
3
3
|
All URIs are relative to *http://localhost:24817*
|
4
4
|
|
5
|
-
Method | HTTP request | Description
|
6
|
-
|
7
|
-
[**get**](TokenApi.md#get) | **GET** /token/ |
|
8
|
-
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**get**](TokenApi.md#get) | **GET** /token/ | |
|
9
8
|
|
10
9
|
|
11
10
|
## get
|
@@ -16,10 +15,10 @@ Method | HTTP request | Description
|
|
16
15
|
|
17
16
|
Handles GET requests for the /token/ endpoint.
|
18
17
|
|
19
|
-
###
|
18
|
+
### Examples
|
20
19
|
|
21
20
|
```ruby
|
22
|
-
|
21
|
+
require 'time'
|
23
22
|
require 'pulp_container_client'
|
24
23
|
# setup authorization
|
25
24
|
PulpContainerClient.configure do |config|
|
@@ -31,9 +30,28 @@ end
|
|
31
30
|
api_instance = PulpContainerClient::TokenApi.new
|
32
31
|
|
33
32
|
begin
|
33
|
+
|
34
34
|
api_instance.get
|
35
35
|
rescue PulpContainerClient::ApiError => e
|
36
|
-
puts "
|
36
|
+
puts "Error when calling TokenApi->get: #{e}"
|
37
|
+
end
|
38
|
+
```
|
39
|
+
|
40
|
+
#### Using the get_with_http_info variant
|
41
|
+
|
42
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
43
|
+
|
44
|
+
> <Array(nil, Integer, Hash)> get_with_http_info
|
45
|
+
|
46
|
+
```ruby
|
47
|
+
begin
|
48
|
+
|
49
|
+
data, status_code, headers = api_instance.get_with_http_info
|
50
|
+
p status_code # => 2xx
|
51
|
+
p headers # => { ... }
|
52
|
+
p data # => nil
|
53
|
+
rescue PulpContainerClient::ApiError => e
|
54
|
+
puts "Error when calling TokenApi->get_with_http_info: #{e}"
|
37
55
|
end
|
38
56
|
```
|
39
57
|
|