pulp_container_client 2.22.2 → 2.23.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 +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 +66 -54
- 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 +68 -54
- 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 +73 -63
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +88 -78
- 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 +72 -56
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +72 -56
- 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 +76 -64
- 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 +27 -32
- data/spec/models/container_container_push_repository_spec.rb +16 -21
- 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 +16 -21
- 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,31 +2,30 @@
|
|
2
2
|
|
3
3
|
All URIs are relative to *http://localhost:24817*
|
4
4
|
|
5
|
-
Method | HTTP request | Description
|
6
|
-
|
7
|
-
[**add_role**](PulpContainerNamespacesApi.md#add_role) | **POST** {container_container_namespace_href}add_role/ | Add a role
|
8
|
-
[**create**](PulpContainerNamespacesApi.md#create) | **POST** /pulp/api/v3/pulp_container/namespaces/ | Create a container namespace
|
9
|
-
[**delete**](PulpContainerNamespacesApi.md#delete) | **DELETE** {container_container_namespace_href} | Delete a container namespace
|
10
|
-
[**list**](PulpContainerNamespacesApi.md#list) | **GET** /pulp/api/v3/pulp_container/namespaces/ | List container namespaces
|
11
|
-
[**list_roles**](PulpContainerNamespacesApi.md#list_roles) | **GET** {container_container_namespace_href}list_roles/ | List roles
|
12
|
-
[**my_permissions**](PulpContainerNamespacesApi.md#my_permissions) | **GET** {container_container_namespace_href}my_permissions/ | List user permissions
|
13
|
-
[**read**](PulpContainerNamespacesApi.md#read) | **GET** {container_container_namespace_href} | Inspect a container namespace
|
14
|
-
[**remove_role**](PulpContainerNamespacesApi.md#remove_role) | **POST** {container_container_namespace_href}remove_role/ | Remove a role
|
15
|
-
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**add_role**](PulpContainerNamespacesApi.md#add_role) | **POST** {container_container_namespace_href}add_role/ | Add a role |
|
8
|
+
| [**create**](PulpContainerNamespacesApi.md#create) | **POST** /pulp/api/v3/pulp_container/namespaces/ | Create a container namespace |
|
9
|
+
| [**delete**](PulpContainerNamespacesApi.md#delete) | **DELETE** {container_container_namespace_href} | Delete a container namespace |
|
10
|
+
| [**list**](PulpContainerNamespacesApi.md#list) | **GET** /pulp/api/v3/pulp_container/namespaces/ | List container namespaces |
|
11
|
+
| [**list_roles**](PulpContainerNamespacesApi.md#list_roles) | **GET** {container_container_namespace_href}list_roles/ | List roles |
|
12
|
+
| [**my_permissions**](PulpContainerNamespacesApi.md#my_permissions) | **GET** {container_container_namespace_href}my_permissions/ | List user permissions |
|
13
|
+
| [**read**](PulpContainerNamespacesApi.md#read) | **GET** {container_container_namespace_href} | Inspect a container namespace |
|
14
|
+
| [**remove_role**](PulpContainerNamespacesApi.md#remove_role) | **POST** {container_container_namespace_href}remove_role/ | Remove a role |
|
16
15
|
|
17
16
|
|
18
17
|
## add_role
|
19
18
|
|
20
|
-
> NestedRoleResponse add_role(container_container_namespace_href, nested_role)
|
19
|
+
> <NestedRoleResponse> add_role(container_container_namespace_href, nested_role)
|
21
20
|
|
22
21
|
Add a role
|
23
22
|
|
24
23
|
Add a role for this object to users/groups.
|
25
24
|
|
26
|
-
###
|
25
|
+
### Examples
|
27
26
|
|
28
27
|
```ruby
|
29
|
-
|
28
|
+
require 'time'
|
30
29
|
require 'pulp_container_client'
|
31
30
|
# setup authorization
|
32
31
|
PulpContainerClient.configure do |config|
|
@@ -37,24 +36,41 @@ end
|
|
37
36
|
|
38
37
|
api_instance = PulpContainerClient::PulpContainerNamespacesApi.new
|
39
38
|
container_container_namespace_href = 'container_container_namespace_href_example' # String |
|
40
|
-
nested_role = PulpContainerClient::NestedRole.new # NestedRole |
|
39
|
+
nested_role = PulpContainerClient::NestedRole.new({role: 'role_example'}) # NestedRole |
|
41
40
|
|
42
41
|
begin
|
43
|
-
#Add a role
|
42
|
+
# Add a role
|
44
43
|
result = api_instance.add_role(container_container_namespace_href, nested_role)
|
45
44
|
p result
|
46
45
|
rescue PulpContainerClient::ApiError => e
|
47
|
-
puts "
|
46
|
+
puts "Error when calling PulpContainerNamespacesApi->add_role: #{e}"
|
48
47
|
end
|
49
48
|
```
|
50
49
|
|
51
|
-
|
50
|
+
#### Using the add_role_with_http_info variant
|
51
|
+
|
52
|
+
This returns an Array which contains the response data, status code and headers.
|
52
53
|
|
54
|
+
> <Array(<NestedRoleResponse>, Integer, Hash)> add_role_with_http_info(container_container_namespace_href, nested_role)
|
55
|
+
|
56
|
+
```ruby
|
57
|
+
begin
|
58
|
+
# Add a role
|
59
|
+
data, status_code, headers = api_instance.add_role_with_http_info(container_container_namespace_href, nested_role)
|
60
|
+
p status_code # => 2xx
|
61
|
+
p headers # => { ... }
|
62
|
+
p data # => <NestedRoleResponse>
|
63
|
+
rescue PulpContainerClient::ApiError => e
|
64
|
+
puts "Error when calling PulpContainerNamespacesApi->add_role_with_http_info: #{e}"
|
65
|
+
end
|
66
|
+
```
|
67
|
+
|
68
|
+
### Parameters
|
53
69
|
|
54
|
-
Name | Type | Description
|
55
|
-
|
56
|
-
**container_container_namespace_href** | **String
|
57
|
-
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
70
|
+
| Name | Type | Description | Notes |
|
71
|
+
| ---- | ---- | ----------- | ----- |
|
72
|
+
| **container_container_namespace_href** | **String** | | |
|
73
|
+
| **nested_role** | [**NestedRole**](NestedRole.md) | | |
|
58
74
|
|
59
75
|
### Return type
|
60
76
|
|
@@ -72,16 +88,16 @@ Name | Type | Description | Notes
|
|
72
88
|
|
73
89
|
## create
|
74
90
|
|
75
|
-
> ContainerContainerNamespaceResponse create(container_container_namespace)
|
91
|
+
> <ContainerContainerNamespaceResponse> create(container_container_namespace)
|
76
92
|
|
77
93
|
Create a container namespace
|
78
94
|
|
79
95
|
ViewSet for ContainerNamespaces.
|
80
96
|
|
81
|
-
###
|
97
|
+
### Examples
|
82
98
|
|
83
99
|
```ruby
|
84
|
-
|
100
|
+
require 'time'
|
85
101
|
require 'pulp_container_client'
|
86
102
|
# setup authorization
|
87
103
|
PulpContainerClient.configure do |config|
|
@@ -91,23 +107,40 @@ PulpContainerClient.configure do |config|
|
|
91
107
|
end
|
92
108
|
|
93
109
|
api_instance = PulpContainerClient::PulpContainerNamespacesApi.new
|
94
|
-
container_container_namespace = PulpContainerClient::ContainerContainerNamespace.new # ContainerContainerNamespace |
|
110
|
+
container_container_namespace = PulpContainerClient::ContainerContainerNamespace.new({name: 'name_example'}) # ContainerContainerNamespace |
|
95
111
|
|
96
112
|
begin
|
97
|
-
#Create a container namespace
|
113
|
+
# Create a container namespace
|
98
114
|
result = api_instance.create(container_container_namespace)
|
99
115
|
p result
|
100
116
|
rescue PulpContainerClient::ApiError => e
|
101
|
-
puts "
|
117
|
+
puts "Error when calling PulpContainerNamespacesApi->create: #{e}"
|
102
118
|
end
|
103
119
|
```
|
104
120
|
|
105
|
-
|
121
|
+
#### Using the create_with_http_info variant
|
122
|
+
|
123
|
+
This returns an Array which contains the response data, status code and headers.
|
124
|
+
|
125
|
+
> <Array(<ContainerContainerNamespaceResponse>, Integer, Hash)> create_with_http_info(container_container_namespace)
|
126
|
+
|
127
|
+
```ruby
|
128
|
+
begin
|
129
|
+
# Create a container namespace
|
130
|
+
data, status_code, headers = api_instance.create_with_http_info(container_container_namespace)
|
131
|
+
p status_code # => 2xx
|
132
|
+
p headers # => { ... }
|
133
|
+
p data # => <ContainerContainerNamespaceResponse>
|
134
|
+
rescue PulpContainerClient::ApiError => e
|
135
|
+
puts "Error when calling PulpContainerNamespacesApi->create_with_http_info: #{e}"
|
136
|
+
end
|
137
|
+
```
|
106
138
|
|
139
|
+
### Parameters
|
107
140
|
|
108
|
-
Name | Type | Description
|
109
|
-
|
110
|
-
**container_container_namespace** | [**ContainerContainerNamespace**](ContainerContainerNamespace.md)| |
|
141
|
+
| Name | Type | Description | Notes |
|
142
|
+
| ---- | ---- | ----------- | ----- |
|
143
|
+
| **container_container_namespace** | [**ContainerContainerNamespace**](ContainerContainerNamespace.md) | | |
|
111
144
|
|
112
145
|
### Return type
|
113
146
|
|
@@ -125,16 +158,16 @@ Name | Type | Description | Notes
|
|
125
158
|
|
126
159
|
## delete
|
127
160
|
|
128
|
-
> AsyncOperationResponse delete(container_container_namespace_href)
|
161
|
+
> <AsyncOperationResponse> delete(container_container_namespace_href)
|
129
162
|
|
130
163
|
Delete a container namespace
|
131
164
|
|
132
165
|
Trigger an asynchronous delete task
|
133
166
|
|
134
|
-
###
|
167
|
+
### Examples
|
135
168
|
|
136
169
|
```ruby
|
137
|
-
|
170
|
+
require 'time'
|
138
171
|
require 'pulp_container_client'
|
139
172
|
# setup authorization
|
140
173
|
PulpContainerClient.configure do |config|
|
@@ -147,20 +180,37 @@ api_instance = PulpContainerClient::PulpContainerNamespacesApi.new
|
|
147
180
|
container_container_namespace_href = 'container_container_namespace_href_example' # String |
|
148
181
|
|
149
182
|
begin
|
150
|
-
#Delete a container namespace
|
183
|
+
# Delete a container namespace
|
151
184
|
result = api_instance.delete(container_container_namespace_href)
|
152
185
|
p result
|
153
186
|
rescue PulpContainerClient::ApiError => e
|
154
|
-
puts "
|
187
|
+
puts "Error when calling PulpContainerNamespacesApi->delete: #{e}"
|
155
188
|
end
|
156
189
|
```
|
157
190
|
|
158
|
-
|
191
|
+
#### Using the delete_with_http_info variant
|
192
|
+
|
193
|
+
This returns an Array which contains the response data, status code and headers.
|
194
|
+
|
195
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> delete_with_http_info(container_container_namespace_href)
|
196
|
+
|
197
|
+
```ruby
|
198
|
+
begin
|
199
|
+
# Delete a container namespace
|
200
|
+
data, status_code, headers = api_instance.delete_with_http_info(container_container_namespace_href)
|
201
|
+
p status_code # => 2xx
|
202
|
+
p headers # => { ... }
|
203
|
+
p data # => <AsyncOperationResponse>
|
204
|
+
rescue PulpContainerClient::ApiError => e
|
205
|
+
puts "Error when calling PulpContainerNamespacesApi->delete_with_http_info: #{e}"
|
206
|
+
end
|
207
|
+
```
|
159
208
|
|
209
|
+
### Parameters
|
160
210
|
|
161
|
-
Name | Type | Description
|
162
|
-
|
163
|
-
**container_container_namespace_href** | **String
|
211
|
+
| Name | Type | Description | Notes |
|
212
|
+
| ---- | ---- | ----------- | ----- |
|
213
|
+
| **container_container_namespace_href** | **String** | | |
|
164
214
|
|
165
215
|
### Return type
|
166
216
|
|
@@ -178,16 +228,16 @@ Name | Type | Description | Notes
|
|
178
228
|
|
179
229
|
## list
|
180
230
|
|
181
|
-
> PaginatedcontainerContainerNamespaceResponseList list(opts)
|
231
|
+
> <PaginatedcontainerContainerNamespaceResponseList> list(opts)
|
182
232
|
|
183
233
|
List container namespaces
|
184
234
|
|
185
235
|
ViewSet for ContainerNamespaces.
|
186
236
|
|
187
|
-
###
|
237
|
+
### Examples
|
188
238
|
|
189
239
|
```ruby
|
190
|
-
|
240
|
+
require 'time'
|
191
241
|
require 'pulp_container_client'
|
192
242
|
# setup authorization
|
193
243
|
PulpContainerClient.configure do |config|
|
@@ -203,53 +253,70 @@ opts = {
|
|
203
253
|
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
204
254
|
name__icontains: 'name__icontains_example', # String | Filter results where name contains value
|
205
255
|
name__iexact: 'name__iexact_example', # String | Filter results where name matches value
|
206
|
-
name__in: ['
|
256
|
+
name__in: ['inner_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
207
257
|
name__iregex: 'name__iregex_example', # String | Filter results where name matches regex value
|
208
258
|
name__istartswith: 'name__istartswith_example', # String | Filter results where name starts with value
|
209
259
|
name__regex: 'name__regex_example', # String | Filter results where name matches regex value
|
210
260
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
211
261
|
offset: 56, # Integer | The initial index from which to return the results.
|
212
|
-
ordering: ['
|
213
|
-
prn__in: ['
|
214
|
-
pulp_href__in: ['
|
215
|
-
pulp_id__in: ['
|
262
|
+
ordering: ['-name'], # 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) * `name` - Name * `-name` - Name (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
263
|
+
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
264
|
+
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
265
|
+
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
216
266
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
217
|
-
fields: ['
|
218
|
-
exclude_fields: ['
|
267
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
268
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
219
269
|
}
|
220
270
|
|
221
271
|
begin
|
222
|
-
#List container namespaces
|
272
|
+
# List container namespaces
|
223
273
|
result = api_instance.list(opts)
|
224
274
|
p result
|
225
275
|
rescue PulpContainerClient::ApiError => e
|
226
|
-
puts "
|
276
|
+
puts "Error when calling PulpContainerNamespacesApi->list: #{e}"
|
227
277
|
end
|
228
278
|
```
|
229
279
|
|
230
|
-
|
280
|
+
#### Using the list_with_http_info variant
|
281
|
+
|
282
|
+
This returns an Array which contains the response data, status code and headers.
|
283
|
+
|
284
|
+
> <Array(<PaginatedcontainerContainerNamespaceResponseList>, Integer, Hash)> list_with_http_info(opts)
|
285
|
+
|
286
|
+
```ruby
|
287
|
+
begin
|
288
|
+
# List container namespaces
|
289
|
+
data, status_code, headers = api_instance.list_with_http_info(opts)
|
290
|
+
p status_code # => 2xx
|
291
|
+
p headers # => { ... }
|
292
|
+
p data # => <PaginatedcontainerContainerNamespaceResponseList>
|
293
|
+
rescue PulpContainerClient::ApiError => e
|
294
|
+
puts "Error when calling PulpContainerNamespacesApi->list_with_http_info: #{e}"
|
295
|
+
end
|
296
|
+
```
|
231
297
|
|
298
|
+
### Parameters
|
232
299
|
|
233
|
-
Name | Type | Description
|
234
|
-
|
235
|
-
**limit** | **Integer
|
236
|
-
**name** | **String
|
237
|
-
**name__contains** | **String
|
238
|
-
**name__icontains** | **String
|
239
|
-
**name__iexact** | **String
|
240
|
-
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
241
|
-
**name__iregex** | **String
|
242
|
-
**name__istartswith** | **String
|
243
|
-
**name__regex** | **String
|
244
|
-
**name__startswith** | **String
|
245
|
-
**offset** | **Integer
|
246
|
-
**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) * `name` - Name * `-name` - Name (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
247
|
-
**prn__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
248
|
-
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
249
|
-
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
250
|
-
**q** | **String
|
251
|
-
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
252
|
-
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
300
|
+
| Name | Type | Description | Notes |
|
301
|
+
| ---- | ---- | ----------- | ----- |
|
302
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
303
|
+
| **name** | **String** | Filter results where name matches value | [optional] |
|
304
|
+
| **name__contains** | **String** | Filter results where name contains value | [optional] |
|
305
|
+
| **name__icontains** | **String** | Filter results where name contains value | [optional] |
|
306
|
+
| **name__iexact** | **String** | Filter results where name matches value | [optional] |
|
307
|
+
| **name__in** | [**Array<String>**](String.md) | Filter results where name is in a comma-separated list of values | [optional] |
|
308
|
+
| **name__iregex** | **String** | Filter results where name matches regex value | [optional] |
|
309
|
+
| **name__istartswith** | **String** | Filter results where name starts with value | [optional] |
|
310
|
+
| **name__regex** | **String** | Filter results where name matches regex value | [optional] |
|
311
|
+
| **name__startswith** | **String** | Filter results where name starts with value | [optional] |
|
312
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
313
|
+
| **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) * `name` - Name * `-name` - Name (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
314
|
+
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
315
|
+
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
316
|
+
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
317
|
+
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
318
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
319
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
253
320
|
|
254
321
|
### Return type
|
255
322
|
|
@@ -267,16 +334,16 @@ Name | Type | Description | Notes
|
|
267
334
|
|
268
335
|
## list_roles
|
269
336
|
|
270
|
-
> ObjectRolesResponse list_roles(container_container_namespace_href, opts)
|
337
|
+
> <ObjectRolesResponse> list_roles(container_container_namespace_href, opts)
|
271
338
|
|
272
339
|
List roles
|
273
340
|
|
274
341
|
List roles assigned to this object.
|
275
342
|
|
276
|
-
###
|
343
|
+
### Examples
|
277
344
|
|
278
345
|
```ruby
|
279
|
-
|
346
|
+
require 'time'
|
280
347
|
require 'pulp_container_client'
|
281
348
|
# setup authorization
|
282
349
|
PulpContainerClient.configure do |config|
|
@@ -288,27 +355,44 @@ end
|
|
288
355
|
api_instance = PulpContainerClient::PulpContainerNamespacesApi.new
|
289
356
|
container_container_namespace_href = 'container_container_namespace_href_example' # String |
|
290
357
|
opts = {
|
291
|
-
fields: ['
|
292
|
-
exclude_fields: ['
|
358
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
359
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
293
360
|
}
|
294
361
|
|
295
362
|
begin
|
296
|
-
#List roles
|
363
|
+
# List roles
|
297
364
|
result = api_instance.list_roles(container_container_namespace_href, opts)
|
298
365
|
p result
|
299
366
|
rescue PulpContainerClient::ApiError => e
|
300
|
-
puts "
|
367
|
+
puts "Error when calling PulpContainerNamespacesApi->list_roles: #{e}"
|
301
368
|
end
|
302
369
|
```
|
303
370
|
|
304
|
-
|
371
|
+
#### Using the list_roles_with_http_info variant
|
372
|
+
|
373
|
+
This returns an Array which contains the response data, status code and headers.
|
374
|
+
|
375
|
+
> <Array(<ObjectRolesResponse>, Integer, Hash)> list_roles_with_http_info(container_container_namespace_href, opts)
|
376
|
+
|
377
|
+
```ruby
|
378
|
+
begin
|
379
|
+
# List roles
|
380
|
+
data, status_code, headers = api_instance.list_roles_with_http_info(container_container_namespace_href, opts)
|
381
|
+
p status_code # => 2xx
|
382
|
+
p headers # => { ... }
|
383
|
+
p data # => <ObjectRolesResponse>
|
384
|
+
rescue PulpContainerClient::ApiError => e
|
385
|
+
puts "Error when calling PulpContainerNamespacesApi->list_roles_with_http_info: #{e}"
|
386
|
+
end
|
387
|
+
```
|
305
388
|
|
389
|
+
### Parameters
|
306
390
|
|
307
|
-
Name | Type | Description
|
308
|
-
|
309
|
-
**container_container_namespace_href** | **String
|
310
|
-
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
311
|
-
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
391
|
+
| Name | Type | Description | Notes |
|
392
|
+
| ---- | ---- | ----------- | ----- |
|
393
|
+
| **container_container_namespace_href** | **String** | | |
|
394
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
395
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
312
396
|
|
313
397
|
### Return type
|
314
398
|
|
@@ -326,16 +410,16 @@ Name | Type | Description | Notes
|
|
326
410
|
|
327
411
|
## my_permissions
|
328
412
|
|
329
|
-
> MyPermissionsResponse my_permissions(container_container_namespace_href, opts)
|
413
|
+
> <MyPermissionsResponse> my_permissions(container_container_namespace_href, opts)
|
330
414
|
|
331
415
|
List user permissions
|
332
416
|
|
333
417
|
List permissions available to the current user on this object.
|
334
418
|
|
335
|
-
###
|
419
|
+
### Examples
|
336
420
|
|
337
421
|
```ruby
|
338
|
-
|
422
|
+
require 'time'
|
339
423
|
require 'pulp_container_client'
|
340
424
|
# setup authorization
|
341
425
|
PulpContainerClient.configure do |config|
|
@@ -347,27 +431,44 @@ end
|
|
347
431
|
api_instance = PulpContainerClient::PulpContainerNamespacesApi.new
|
348
432
|
container_container_namespace_href = 'container_container_namespace_href_example' # String |
|
349
433
|
opts = {
|
350
|
-
fields: ['
|
351
|
-
exclude_fields: ['
|
434
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
435
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
352
436
|
}
|
353
437
|
|
354
438
|
begin
|
355
|
-
#List user permissions
|
439
|
+
# List user permissions
|
356
440
|
result = api_instance.my_permissions(container_container_namespace_href, opts)
|
357
441
|
p result
|
358
442
|
rescue PulpContainerClient::ApiError => e
|
359
|
-
puts "
|
443
|
+
puts "Error when calling PulpContainerNamespacesApi->my_permissions: #{e}"
|
360
444
|
end
|
361
445
|
```
|
362
446
|
|
363
|
-
|
447
|
+
#### Using the my_permissions_with_http_info variant
|
448
|
+
|
449
|
+
This returns an Array which contains the response data, status code and headers.
|
450
|
+
|
451
|
+
> <Array(<MyPermissionsResponse>, Integer, Hash)> my_permissions_with_http_info(container_container_namespace_href, opts)
|
452
|
+
|
453
|
+
```ruby
|
454
|
+
begin
|
455
|
+
# List user permissions
|
456
|
+
data, status_code, headers = api_instance.my_permissions_with_http_info(container_container_namespace_href, opts)
|
457
|
+
p status_code # => 2xx
|
458
|
+
p headers # => { ... }
|
459
|
+
p data # => <MyPermissionsResponse>
|
460
|
+
rescue PulpContainerClient::ApiError => e
|
461
|
+
puts "Error when calling PulpContainerNamespacesApi->my_permissions_with_http_info: #{e}"
|
462
|
+
end
|
463
|
+
```
|
364
464
|
|
465
|
+
### Parameters
|
365
466
|
|
366
|
-
Name | Type | Description
|
367
|
-
|
368
|
-
**container_container_namespace_href** | **String
|
369
|
-
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
370
|
-
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
467
|
+
| Name | Type | Description | Notes |
|
468
|
+
| ---- | ---- | ----------- | ----- |
|
469
|
+
| **container_container_namespace_href** | **String** | | |
|
470
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
471
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
371
472
|
|
372
473
|
### Return type
|
373
474
|
|
@@ -385,16 +486,16 @@ Name | Type | Description | Notes
|
|
385
486
|
|
386
487
|
## read
|
387
488
|
|
388
|
-
> ContainerContainerNamespaceResponse read(container_container_namespace_href, opts)
|
489
|
+
> <ContainerContainerNamespaceResponse> read(container_container_namespace_href, opts)
|
389
490
|
|
390
491
|
Inspect a container namespace
|
391
492
|
|
392
493
|
ViewSet for ContainerNamespaces.
|
393
494
|
|
394
|
-
###
|
495
|
+
### Examples
|
395
496
|
|
396
497
|
```ruby
|
397
|
-
|
498
|
+
require 'time'
|
398
499
|
require 'pulp_container_client'
|
399
500
|
# setup authorization
|
400
501
|
PulpContainerClient.configure do |config|
|
@@ -406,27 +507,44 @@ end
|
|
406
507
|
api_instance = PulpContainerClient::PulpContainerNamespacesApi.new
|
407
508
|
container_container_namespace_href = 'container_container_namespace_href_example' # String |
|
408
509
|
opts = {
|
409
|
-
fields: ['
|
410
|
-
exclude_fields: ['
|
510
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
511
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
411
512
|
}
|
412
513
|
|
413
514
|
begin
|
414
|
-
#Inspect a container namespace
|
515
|
+
# Inspect a container namespace
|
415
516
|
result = api_instance.read(container_container_namespace_href, opts)
|
416
517
|
p result
|
417
518
|
rescue PulpContainerClient::ApiError => e
|
418
|
-
puts "
|
519
|
+
puts "Error when calling PulpContainerNamespacesApi->read: #{e}"
|
419
520
|
end
|
420
521
|
```
|
421
522
|
|
422
|
-
|
523
|
+
#### Using the read_with_http_info variant
|
524
|
+
|
525
|
+
This returns an Array which contains the response data, status code and headers.
|
526
|
+
|
527
|
+
> <Array(<ContainerContainerNamespaceResponse>, Integer, Hash)> read_with_http_info(container_container_namespace_href, opts)
|
528
|
+
|
529
|
+
```ruby
|
530
|
+
begin
|
531
|
+
# Inspect a container namespace
|
532
|
+
data, status_code, headers = api_instance.read_with_http_info(container_container_namespace_href, opts)
|
533
|
+
p status_code # => 2xx
|
534
|
+
p headers # => { ... }
|
535
|
+
p data # => <ContainerContainerNamespaceResponse>
|
536
|
+
rescue PulpContainerClient::ApiError => e
|
537
|
+
puts "Error when calling PulpContainerNamespacesApi->read_with_http_info: #{e}"
|
538
|
+
end
|
539
|
+
```
|
423
540
|
|
541
|
+
### Parameters
|
424
542
|
|
425
|
-
Name | Type | Description
|
426
|
-
|
427
|
-
**container_container_namespace_href** | **String
|
428
|
-
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
429
|
-
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
543
|
+
| Name | Type | Description | Notes |
|
544
|
+
| ---- | ---- | ----------- | ----- |
|
545
|
+
| **container_container_namespace_href** | **String** | | |
|
546
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
547
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
430
548
|
|
431
549
|
### Return type
|
432
550
|
|
@@ -444,16 +562,16 @@ Name | Type | Description | Notes
|
|
444
562
|
|
445
563
|
## remove_role
|
446
564
|
|
447
|
-
> NestedRoleResponse remove_role(container_container_namespace_href, nested_role)
|
565
|
+
> <NestedRoleResponse> remove_role(container_container_namespace_href, nested_role)
|
448
566
|
|
449
567
|
Remove a role
|
450
568
|
|
451
569
|
Remove a role for this object from users/groups.
|
452
570
|
|
453
|
-
###
|
571
|
+
### Examples
|
454
572
|
|
455
573
|
```ruby
|
456
|
-
|
574
|
+
require 'time'
|
457
575
|
require 'pulp_container_client'
|
458
576
|
# setup authorization
|
459
577
|
PulpContainerClient.configure do |config|
|
@@ -464,24 +582,41 @@ end
|
|
464
582
|
|
465
583
|
api_instance = PulpContainerClient::PulpContainerNamespacesApi.new
|
466
584
|
container_container_namespace_href = 'container_container_namespace_href_example' # String |
|
467
|
-
nested_role = PulpContainerClient::NestedRole.new # NestedRole |
|
585
|
+
nested_role = PulpContainerClient::NestedRole.new({role: 'role_example'}) # NestedRole |
|
468
586
|
|
469
587
|
begin
|
470
|
-
#Remove a role
|
588
|
+
# Remove a role
|
471
589
|
result = api_instance.remove_role(container_container_namespace_href, nested_role)
|
472
590
|
p result
|
473
591
|
rescue PulpContainerClient::ApiError => e
|
474
|
-
puts "
|
592
|
+
puts "Error when calling PulpContainerNamespacesApi->remove_role: #{e}"
|
475
593
|
end
|
476
594
|
```
|
477
595
|
|
478
|
-
|
596
|
+
#### Using the remove_role_with_http_info variant
|
597
|
+
|
598
|
+
This returns an Array which contains the response data, status code and headers.
|
599
|
+
|
600
|
+
> <Array(<NestedRoleResponse>, Integer, Hash)> remove_role_with_http_info(container_container_namespace_href, nested_role)
|
601
|
+
|
602
|
+
```ruby
|
603
|
+
begin
|
604
|
+
# Remove a role
|
605
|
+
data, status_code, headers = api_instance.remove_role_with_http_info(container_container_namespace_href, nested_role)
|
606
|
+
p status_code # => 2xx
|
607
|
+
p headers # => { ... }
|
608
|
+
p data # => <NestedRoleResponse>
|
609
|
+
rescue PulpContainerClient::ApiError => e
|
610
|
+
puts "Error when calling PulpContainerNamespacesApi->remove_role_with_http_info: #{e}"
|
611
|
+
end
|
612
|
+
```
|
479
613
|
|
614
|
+
### Parameters
|
480
615
|
|
481
|
-
Name | Type | Description
|
482
|
-
|
483
|
-
**container_container_namespace_href** | **String
|
484
|
-
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
616
|
+
| Name | Type | Description | Notes |
|
617
|
+
| ---- | ---- | ----------- | ----- |
|
618
|
+
| **container_container_namespace_href** | **String** | | |
|
619
|
+
| **nested_role** | [**NestedRole**](NestedRole.md) | | |
|
485
620
|
|
486
621
|
### Return type
|
487
622
|
|
data/docs/RecursiveManage.md
CHANGED
@@ -2,16 +2,17 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**content_units** |
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **content_units** | **Array<Object>** | A list of content units to operate on. | [optional] |
|
8
8
|
|
9
|
-
##
|
9
|
+
## Example
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
require '
|
12
|
+
require 'pulp_container_client'
|
13
13
|
|
14
|
-
instance = PulpContainerClient::RecursiveManage.new(
|
14
|
+
instance = PulpContainerClient::RecursiveManage.new(
|
15
|
+
content_units: null
|
16
|
+
)
|
15
17
|
```
|
16
18
|
|
17
|
-
|