pulp_container_client 1.0.0rc1
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 +7 -0
- data/Gemfile +9 -0
- data/README.md +164 -0
- data/Rakefile +10 -0
- data/docs/AsyncOperationResponse.md +17 -0
- data/docs/ContainerBlob.md +25 -0
- data/docs/ContainerContainerDistribution.md +31 -0
- data/docs/ContainerContainerRemote.md +43 -0
- data/docs/ContainerContainerRepository.md +27 -0
- data/docs/ContainerManifest.md +33 -0
- data/docs/ContainerTag.md +25 -0
- data/docs/ContentBlobsApi.md +142 -0
- data/docs/ContentManifestsApi.md +142 -0
- data/docs/ContentSummary.md +21 -0
- data/docs/ContentTagsApi.md +144 -0
- data/docs/DistributionsContainerApi.md +362 -0
- data/docs/InlineResponse200.md +23 -0
- data/docs/InlineResponse2001.md +23 -0
- data/docs/InlineResponse2002.md +23 -0
- data/docs/InlineResponse2003.md +23 -0
- data/docs/InlineResponse2004.md +23 -0
- data/docs/InlineResponse2005.md +23 -0
- data/docs/InlineResponse2006.md +23 -0
- data/docs/ManifestCopy.md +23 -0
- data/docs/RecursiveManage.md +17 -0
- data/docs/RemotesContainerApi.md +366 -0
- data/docs/RepositoriesContainerApi.md +739 -0
- data/docs/RepositoriesContainerVersionsApi.md +214 -0
- data/docs/RepositorySyncURL.md +19 -0
- data/docs/RepositoryVersion.md +25 -0
- data/docs/TagCopy.md +21 -0
- data/docs/TagImage.md +19 -0
- data/docs/UnTagImage.md +17 -0
- data/git_push.sh +58 -0
- data/lib/pulp_container_client/api/content_blobs_api.rb +176 -0
- data/lib/pulp_container_client/api/content_manifests_api.rb +176 -0
- data/lib/pulp_container_client/api/content_tags_api.rb +179 -0
- data/lib/pulp_container_client/api/distributions_container_api.rb +442 -0
- data/lib/pulp_container_client/api/remotes_container_api.rb +448 -0
- data/lib/pulp_container_client/api/repositories_container_api.rb +906 -0
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +268 -0
- data/lib/pulp_container_client/api_client.rb +402 -0
- data/lib/pulp_container_client/api_error.rb +57 -0
- data/lib/pulp_container_client/configuration.rb +243 -0
- data/lib/pulp_container_client/models/async_operation_response.rb +212 -0
- data/lib/pulp_container_client/models/container_blob.rb +299 -0
- data/lib/pulp_container_client/models/container_container_distribution.rb +342 -0
- data/lib/pulp_container_client/models/container_container_remote.rb +526 -0
- data/lib/pulp_container_client/models/container_container_repository.rb +294 -0
- data/lib/pulp_container_client/models/container_manifest.rb +363 -0
- data/lib/pulp_container_client/models/container_tag.rb +280 -0
- data/lib/pulp_container_client/models/content_summary.rb +246 -0
- data/lib/pulp_container_client/models/inline_response200.rb +247 -0
- data/lib/pulp_container_client/models/inline_response2001.rb +247 -0
- data/lib/pulp_container_client/models/inline_response2002.rb +247 -0
- data/lib/pulp_container_client/models/inline_response2003.rb +247 -0
- data/lib/pulp_container_client/models/inline_response2004.rb +247 -0
- data/lib/pulp_container_client/models/inline_response2005.rb +247 -0
- data/lib/pulp_container_client/models/inline_response2006.rb +247 -0
- data/lib/pulp_container_client/models/manifest_copy.rb +263 -0
- data/lib/pulp_container_client/models/recursive_manage.rb +209 -0
- data/lib/pulp_container_client/models/repository_sync_url.rb +224 -0
- data/lib/pulp_container_client/models/repository_version.rb +244 -0
- data/lib/pulp_container_client/models/tag_copy.rb +229 -0
- data/lib/pulp_container_client/models/tag_image.rb +265 -0
- data/lib/pulp_container_client/models/un_tag_image.rb +231 -0
- data/lib/pulp_container_client/version.rb +15 -0
- data/lib/pulp_container_client.rb +68 -0
- data/pulp_container_client.gemspec +39 -0
- data/spec/api/content_blobs_api_spec.rb +70 -0
- data/spec/api/content_manifests_api_spec.rb +70 -0
- data/spec/api/content_tags_api_spec.rb +71 -0
- data/spec/api/distributions_container_api_spec.rb +120 -0
- data/spec/api/remotes_container_api_spec.rb +122 -0
- data/spec/api/repositories_container_api_spec.rb +200 -0
- data/spec/api/repositories_container_versions_api_spec.rb +91 -0
- data/spec/api_client_spec.rb +188 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/async_operation_response_spec.rb +41 -0
- data/spec/models/container_blob_spec.rb +65 -0
- data/spec/models/container_container_distribution_spec.rb +83 -0
- data/spec/models/container_container_remote_spec.rb +123 -0
- data/spec/models/container_container_repository_spec.rb +71 -0
- data/spec/models/container_manifest_spec.rb +89 -0
- data/spec/models/container_tag_spec.rb +65 -0
- data/spec/models/content_summary_spec.rb +53 -0
- data/spec/models/inline_response2001_spec.rb +59 -0
- data/spec/models/inline_response2002_spec.rb +59 -0
- data/spec/models/inline_response2003_spec.rb +59 -0
- data/spec/models/inline_response2004_spec.rb +59 -0
- data/spec/models/inline_response2005_spec.rb +59 -0
- data/spec/models/inline_response2006_spec.rb +59 -0
- data/spec/models/inline_response200_spec.rb +59 -0
- data/spec/models/manifest_copy_spec.rb +63 -0
- data/spec/models/recursive_manage_spec.rb +41 -0
- data/spec/models/repository_sync_url_spec.rb +47 -0
- data/spec/models/repository_version_spec.rb +65 -0
- data/spec/models/tag_copy_spec.rb +53 -0
- data/spec/models/tag_image_spec.rb +47 -0
- data/spec/models/un_tag_image_spec.rb +41 -0
- data/spec/spec_helper.rb +111 -0
- metadata +230 -0
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# PulpContainerClient::ContentManifestsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**list**](ContentManifestsApi.md#list) | **GET** /pulp/api/v3/content/container/manifests/ | List manifests
|
|
8
|
+
[**read**](ContentManifestsApi.md#read) | **GET** {manifest_href} | Inspect a manifest
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## list
|
|
13
|
+
|
|
14
|
+
> InlineResponse2001 list(opts)
|
|
15
|
+
|
|
16
|
+
List manifests
|
|
17
|
+
|
|
18
|
+
ViewSet for Manifest.
|
|
19
|
+
|
|
20
|
+
### Example
|
|
21
|
+
|
|
22
|
+
```ruby
|
|
23
|
+
# load the gem
|
|
24
|
+
require 'pulp_container_client'
|
|
25
|
+
# setup authorization
|
|
26
|
+
PulpContainerClient.configure do |config|
|
|
27
|
+
# Configure HTTP basic authorization: Basic
|
|
28
|
+
config.username = 'YOUR USERNAME'
|
|
29
|
+
config.password = 'YOUR PASSWORD'
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
api_instance = PulpContainerClient::ContentManifestsApi.new
|
|
33
|
+
opts = {
|
|
34
|
+
digest: 'digest_example', # String | Filter results where digest matches value
|
|
35
|
+
digest__in: 'digest__in_example', # String | Filter results where digest is in a comma-separated list of values
|
|
36
|
+
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
|
|
37
|
+
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
|
|
38
|
+
repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
|
|
39
|
+
media_type: 'media_type_example', # String |
|
|
40
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
41
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
42
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
43
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
begin
|
|
47
|
+
#List manifests
|
|
48
|
+
result = api_instance.list(opts)
|
|
49
|
+
p result
|
|
50
|
+
rescue PulpContainerClient::ApiError => e
|
|
51
|
+
puts "Exception when calling ContentManifestsApi->list: #{e}"
|
|
52
|
+
end
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Parameters
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
Name | Type | Description | Notes
|
|
59
|
+
------------- | ------------- | ------------- | -------------
|
|
60
|
+
**digest** | **String**| Filter results where digest matches value | [optional]
|
|
61
|
+
**digest__in** | **String**| Filter results where digest is in a comma-separated list of values | [optional]
|
|
62
|
+
**repository_version** | **String**| Repository Version referenced by HREF | [optional]
|
|
63
|
+
**repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
|
|
64
|
+
**repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
|
|
65
|
+
**media_type** | **String**| | [optional]
|
|
66
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
67
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
68
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
69
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
70
|
+
|
|
71
|
+
### Return type
|
|
72
|
+
|
|
73
|
+
[**InlineResponse2001**](InlineResponse2001.md)
|
|
74
|
+
|
|
75
|
+
### Authorization
|
|
76
|
+
|
|
77
|
+
[Basic](../README.md#Basic)
|
|
78
|
+
|
|
79
|
+
### HTTP request headers
|
|
80
|
+
|
|
81
|
+
- **Content-Type**: Not defined
|
|
82
|
+
- **Accept**: application/json
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
## read
|
|
86
|
+
|
|
87
|
+
> ContainerManifest read(manifest_href, opts)
|
|
88
|
+
|
|
89
|
+
Inspect a manifest
|
|
90
|
+
|
|
91
|
+
ViewSet for Manifest.
|
|
92
|
+
|
|
93
|
+
### Example
|
|
94
|
+
|
|
95
|
+
```ruby
|
|
96
|
+
# load the gem
|
|
97
|
+
require 'pulp_container_client'
|
|
98
|
+
# setup authorization
|
|
99
|
+
PulpContainerClient.configure do |config|
|
|
100
|
+
# Configure HTTP basic authorization: Basic
|
|
101
|
+
config.username = 'YOUR USERNAME'
|
|
102
|
+
config.password = 'YOUR PASSWORD'
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
api_instance = PulpContainerClient::ContentManifestsApi.new
|
|
106
|
+
manifest_href = 'manifest_href_example' # String | URI of Manifest. e.g.: /pulp/api/v3/content/container/manifests/1/
|
|
107
|
+
opts = {
|
|
108
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
109
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
begin
|
|
113
|
+
#Inspect a manifest
|
|
114
|
+
result = api_instance.read(manifest_href, opts)
|
|
115
|
+
p result
|
|
116
|
+
rescue PulpContainerClient::ApiError => e
|
|
117
|
+
puts "Exception when calling ContentManifestsApi->read: #{e}"
|
|
118
|
+
end
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Parameters
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
Name | Type | Description | Notes
|
|
125
|
+
------------- | ------------- | ------------- | -------------
|
|
126
|
+
**manifest_href** | **String**| URI of Manifest. e.g.: /pulp/api/v3/content/container/manifests/1/ |
|
|
127
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
128
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
129
|
+
|
|
130
|
+
### Return type
|
|
131
|
+
|
|
132
|
+
[**ContainerManifest**](ContainerManifest.md)
|
|
133
|
+
|
|
134
|
+
### Authorization
|
|
135
|
+
|
|
136
|
+
[Basic](../README.md#Basic)
|
|
137
|
+
|
|
138
|
+
### HTTP request headers
|
|
139
|
+
|
|
140
|
+
- **Content-Type**: Not defined
|
|
141
|
+
- **Accept**: application/json
|
|
142
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# PulpContainerClient::ContentSummary
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**added** | **Hash<String, Hash<String, String>>** | |
|
|
8
|
+
**removed** | **Hash<String, Hash<String, String>>** | |
|
|
9
|
+
**present** | **Hash<String, Hash<String, String>>** | |
|
|
10
|
+
|
|
11
|
+
## Code Sample
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'PulpContainerClient'
|
|
15
|
+
|
|
16
|
+
instance = PulpContainerClient::ContentSummary.new(added: null,
|
|
17
|
+
removed: null,
|
|
18
|
+
present: null)
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# PulpContainerClient::ContentTagsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**list**](ContentTagsApi.md#list) | **GET** /pulp/api/v3/content/container/tags/ | List tags
|
|
8
|
+
[**read**](ContentTagsApi.md#read) | **GET** {tag_href} | Inspect a tag
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## list
|
|
13
|
+
|
|
14
|
+
> InlineResponse2002 list(opts)
|
|
15
|
+
|
|
16
|
+
List tags
|
|
17
|
+
|
|
18
|
+
ViewSet for Tag.
|
|
19
|
+
|
|
20
|
+
### Example
|
|
21
|
+
|
|
22
|
+
```ruby
|
|
23
|
+
# load the gem
|
|
24
|
+
require 'pulp_container_client'
|
|
25
|
+
# setup authorization
|
|
26
|
+
PulpContainerClient.configure do |config|
|
|
27
|
+
# Configure HTTP basic authorization: Basic
|
|
28
|
+
config.username = 'YOUR USERNAME'
|
|
29
|
+
config.password = 'YOUR PASSWORD'
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
api_instance = PulpContainerClient::ContentTagsApi.new
|
|
33
|
+
opts = {
|
|
34
|
+
name: 'name_example', # String | Filter results where name matches value
|
|
35
|
+
name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
|
|
36
|
+
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
|
|
37
|
+
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
|
|
38
|
+
repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
|
|
39
|
+
media_type: 'media_type_example', # String |
|
|
40
|
+
digest: 'digest_example', # String | Multiple values may be separated by commas.
|
|
41
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
42
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
43
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
44
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
begin
|
|
48
|
+
#List tags
|
|
49
|
+
result = api_instance.list(opts)
|
|
50
|
+
p result
|
|
51
|
+
rescue PulpContainerClient::ApiError => e
|
|
52
|
+
puts "Exception when calling ContentTagsApi->list: #{e}"
|
|
53
|
+
end
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Parameters
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
Name | Type | Description | Notes
|
|
60
|
+
------------- | ------------- | ------------- | -------------
|
|
61
|
+
**name** | **String**| Filter results where name matches value | [optional]
|
|
62
|
+
**name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
|
|
63
|
+
**repository_version** | **String**| Repository Version referenced by HREF | [optional]
|
|
64
|
+
**repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
|
|
65
|
+
**repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
|
|
66
|
+
**media_type** | **String**| | [optional]
|
|
67
|
+
**digest** | **String**| Multiple values may be separated by commas. | [optional]
|
|
68
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
69
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
70
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
71
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
72
|
+
|
|
73
|
+
### Return type
|
|
74
|
+
|
|
75
|
+
[**InlineResponse2002**](InlineResponse2002.md)
|
|
76
|
+
|
|
77
|
+
### Authorization
|
|
78
|
+
|
|
79
|
+
[Basic](../README.md#Basic)
|
|
80
|
+
|
|
81
|
+
### HTTP request headers
|
|
82
|
+
|
|
83
|
+
- **Content-Type**: Not defined
|
|
84
|
+
- **Accept**: application/json
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
## read
|
|
88
|
+
|
|
89
|
+
> ContainerTag read(tag_href, opts)
|
|
90
|
+
|
|
91
|
+
Inspect a tag
|
|
92
|
+
|
|
93
|
+
ViewSet for Tag.
|
|
94
|
+
|
|
95
|
+
### Example
|
|
96
|
+
|
|
97
|
+
```ruby
|
|
98
|
+
# load the gem
|
|
99
|
+
require 'pulp_container_client'
|
|
100
|
+
# setup authorization
|
|
101
|
+
PulpContainerClient.configure do |config|
|
|
102
|
+
# Configure HTTP basic authorization: Basic
|
|
103
|
+
config.username = 'YOUR USERNAME'
|
|
104
|
+
config.password = 'YOUR PASSWORD'
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
api_instance = PulpContainerClient::ContentTagsApi.new
|
|
108
|
+
tag_href = 'tag_href_example' # String | URI of Tag. e.g.: /pulp/api/v3/content/container/tags/1/
|
|
109
|
+
opts = {
|
|
110
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
111
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
begin
|
|
115
|
+
#Inspect a tag
|
|
116
|
+
result = api_instance.read(tag_href, opts)
|
|
117
|
+
p result
|
|
118
|
+
rescue PulpContainerClient::ApiError => e
|
|
119
|
+
puts "Exception when calling ContentTagsApi->read: #{e}"
|
|
120
|
+
end
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### Parameters
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
Name | Type | Description | Notes
|
|
127
|
+
------------- | ------------- | ------------- | -------------
|
|
128
|
+
**tag_href** | **String**| URI of Tag. e.g.: /pulp/api/v3/content/container/tags/1/ |
|
|
129
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
130
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
131
|
+
|
|
132
|
+
### Return type
|
|
133
|
+
|
|
134
|
+
[**ContainerTag**](ContainerTag.md)
|
|
135
|
+
|
|
136
|
+
### Authorization
|
|
137
|
+
|
|
138
|
+
[Basic](../README.md#Basic)
|
|
139
|
+
|
|
140
|
+
### HTTP request headers
|
|
141
|
+
|
|
142
|
+
- **Content-Type**: Not defined
|
|
143
|
+
- **Accept**: application/json
|
|
144
|
+
|
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
# PulpContainerClient::DistributionsContainerApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**create**](DistributionsContainerApi.md#create) | **POST** /pulp/api/v3/distributions/container/container/ | Create a container distribution
|
|
8
|
+
[**delete**](DistributionsContainerApi.md#delete) | **DELETE** {container_distribution_href} | Delete a container distribution
|
|
9
|
+
[**list**](DistributionsContainerApi.md#list) | **GET** /pulp/api/v3/distributions/container/container/ | List container distributions
|
|
10
|
+
[**partial_update**](DistributionsContainerApi.md#partial_update) | **PATCH** {container_distribution_href} | Partially update a container distribution
|
|
11
|
+
[**read**](DistributionsContainerApi.md#read) | **GET** {container_distribution_href} | Inspect a container distribution
|
|
12
|
+
[**update**](DistributionsContainerApi.md#update) | **PUT** {container_distribution_href} | Update a container distribution
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## create
|
|
17
|
+
|
|
18
|
+
> AsyncOperationResponse create(data)
|
|
19
|
+
|
|
20
|
+
Create a container distribution
|
|
21
|
+
|
|
22
|
+
Trigger an asynchronous create task
|
|
23
|
+
|
|
24
|
+
### Example
|
|
25
|
+
|
|
26
|
+
```ruby
|
|
27
|
+
# load the gem
|
|
28
|
+
require 'pulp_container_client'
|
|
29
|
+
# setup authorization
|
|
30
|
+
PulpContainerClient.configure do |config|
|
|
31
|
+
# Configure HTTP basic authorization: Basic
|
|
32
|
+
config.username = 'YOUR USERNAME'
|
|
33
|
+
config.password = 'YOUR PASSWORD'
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
api_instance = PulpContainerClient::DistributionsContainerApi.new
|
|
37
|
+
data = PulpContainerClient::ContainerContainerDistribution.new # ContainerContainerDistribution |
|
|
38
|
+
|
|
39
|
+
begin
|
|
40
|
+
#Create a container distribution
|
|
41
|
+
result = api_instance.create(data)
|
|
42
|
+
p result
|
|
43
|
+
rescue PulpContainerClient::ApiError => e
|
|
44
|
+
puts "Exception when calling DistributionsContainerApi->create: #{e}"
|
|
45
|
+
end
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Parameters
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
Name | Type | Description | Notes
|
|
52
|
+
------------- | ------------- | ------------- | -------------
|
|
53
|
+
**data** | [**ContainerContainerDistribution**](ContainerContainerDistribution.md)| |
|
|
54
|
+
|
|
55
|
+
### Return type
|
|
56
|
+
|
|
57
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
58
|
+
|
|
59
|
+
### Authorization
|
|
60
|
+
|
|
61
|
+
[Basic](../README.md#Basic)
|
|
62
|
+
|
|
63
|
+
### HTTP request headers
|
|
64
|
+
|
|
65
|
+
- **Content-Type**: application/json
|
|
66
|
+
- **Accept**: application/json
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
## delete
|
|
70
|
+
|
|
71
|
+
> AsyncOperationResponse delete(container_distribution_href)
|
|
72
|
+
|
|
73
|
+
Delete a container distribution
|
|
74
|
+
|
|
75
|
+
Trigger an asynchronous delete task
|
|
76
|
+
|
|
77
|
+
### Example
|
|
78
|
+
|
|
79
|
+
```ruby
|
|
80
|
+
# load the gem
|
|
81
|
+
require 'pulp_container_client'
|
|
82
|
+
# setup authorization
|
|
83
|
+
PulpContainerClient.configure do |config|
|
|
84
|
+
# Configure HTTP basic authorization: Basic
|
|
85
|
+
config.username = 'YOUR USERNAME'
|
|
86
|
+
config.password = 'YOUR PASSWORD'
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
api_instance = PulpContainerClient::DistributionsContainerApi.new
|
|
90
|
+
container_distribution_href = 'container_distribution_href_example' # String | URI of Container Distribution. e.g.: /pulp/api/v3/distributions/container/container/1/
|
|
91
|
+
|
|
92
|
+
begin
|
|
93
|
+
#Delete a container distribution
|
|
94
|
+
result = api_instance.delete(container_distribution_href)
|
|
95
|
+
p result
|
|
96
|
+
rescue PulpContainerClient::ApiError => e
|
|
97
|
+
puts "Exception when calling DistributionsContainerApi->delete: #{e}"
|
|
98
|
+
end
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Parameters
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
Name | Type | Description | Notes
|
|
105
|
+
------------- | ------------- | ------------- | -------------
|
|
106
|
+
**container_distribution_href** | **String**| URI of Container Distribution. e.g.: /pulp/api/v3/distributions/container/container/1/ |
|
|
107
|
+
|
|
108
|
+
### Return type
|
|
109
|
+
|
|
110
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
111
|
+
|
|
112
|
+
### Authorization
|
|
113
|
+
|
|
114
|
+
[Basic](../README.md#Basic)
|
|
115
|
+
|
|
116
|
+
### HTTP request headers
|
|
117
|
+
|
|
118
|
+
- **Content-Type**: Not defined
|
|
119
|
+
- **Accept**: application/json
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
## list
|
|
123
|
+
|
|
124
|
+
> InlineResponse2003 list(opts)
|
|
125
|
+
|
|
126
|
+
List container distributions
|
|
127
|
+
|
|
128
|
+
The Container Distribution will serve the latest version of a Repository if ``repository`` is specified. The Container Distribution will serve a specific repository version if ``repository_version``. Note that **either** ``repository`` or ``repository_version`` can be set on a Container Distribution, but not both.
|
|
129
|
+
|
|
130
|
+
### Example
|
|
131
|
+
|
|
132
|
+
```ruby
|
|
133
|
+
# load the gem
|
|
134
|
+
require 'pulp_container_client'
|
|
135
|
+
# setup authorization
|
|
136
|
+
PulpContainerClient.configure do |config|
|
|
137
|
+
# Configure HTTP basic authorization: Basic
|
|
138
|
+
config.username = 'YOUR USERNAME'
|
|
139
|
+
config.password = 'YOUR PASSWORD'
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
api_instance = PulpContainerClient::DistributionsContainerApi.new
|
|
143
|
+
opts = {
|
|
144
|
+
name: 'name_example', # String |
|
|
145
|
+
name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
|
|
146
|
+
base_path: 'base_path_example', # String |
|
|
147
|
+
base_path__contains: 'base_path__contains_example', # String | Filter results where base_path contains value
|
|
148
|
+
base_path__icontains: 'base_path__icontains_example', # String | Filter results where base_path contains value
|
|
149
|
+
base_path__in: 'base_path__in_example', # String | Filter results where base_path is in a comma-separated list of values
|
|
150
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
151
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
152
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
153
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
begin
|
|
157
|
+
#List container distributions
|
|
158
|
+
result = api_instance.list(opts)
|
|
159
|
+
p result
|
|
160
|
+
rescue PulpContainerClient::ApiError => e
|
|
161
|
+
puts "Exception when calling DistributionsContainerApi->list: #{e}"
|
|
162
|
+
end
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### Parameters
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
Name | Type | Description | Notes
|
|
169
|
+
------------- | ------------- | ------------- | -------------
|
|
170
|
+
**name** | **String**| | [optional]
|
|
171
|
+
**name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
|
|
172
|
+
**base_path** | **String**| | [optional]
|
|
173
|
+
**base_path__contains** | **String**| Filter results where base_path contains value | [optional]
|
|
174
|
+
**base_path__icontains** | **String**| Filter results where base_path contains value | [optional]
|
|
175
|
+
**base_path__in** | **String**| Filter results where base_path is in a comma-separated list of values | [optional]
|
|
176
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
177
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
178
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
179
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
180
|
+
|
|
181
|
+
### Return type
|
|
182
|
+
|
|
183
|
+
[**InlineResponse2003**](InlineResponse2003.md)
|
|
184
|
+
|
|
185
|
+
### Authorization
|
|
186
|
+
|
|
187
|
+
[Basic](../README.md#Basic)
|
|
188
|
+
|
|
189
|
+
### HTTP request headers
|
|
190
|
+
|
|
191
|
+
- **Content-Type**: Not defined
|
|
192
|
+
- **Accept**: application/json
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
## partial_update
|
|
196
|
+
|
|
197
|
+
> AsyncOperationResponse partial_update(container_distribution_href, data)
|
|
198
|
+
|
|
199
|
+
Partially update a container distribution
|
|
200
|
+
|
|
201
|
+
Trigger an asynchronous partial update task
|
|
202
|
+
|
|
203
|
+
### Example
|
|
204
|
+
|
|
205
|
+
```ruby
|
|
206
|
+
# load the gem
|
|
207
|
+
require 'pulp_container_client'
|
|
208
|
+
# setup authorization
|
|
209
|
+
PulpContainerClient.configure do |config|
|
|
210
|
+
# Configure HTTP basic authorization: Basic
|
|
211
|
+
config.username = 'YOUR USERNAME'
|
|
212
|
+
config.password = 'YOUR PASSWORD'
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
api_instance = PulpContainerClient::DistributionsContainerApi.new
|
|
216
|
+
container_distribution_href = 'container_distribution_href_example' # String | URI of Container Distribution. e.g.: /pulp/api/v3/distributions/container/container/1/
|
|
217
|
+
data = PulpContainerClient::ContainerContainerDistribution.new # ContainerContainerDistribution |
|
|
218
|
+
|
|
219
|
+
begin
|
|
220
|
+
#Partially update a container distribution
|
|
221
|
+
result = api_instance.partial_update(container_distribution_href, data)
|
|
222
|
+
p result
|
|
223
|
+
rescue PulpContainerClient::ApiError => e
|
|
224
|
+
puts "Exception when calling DistributionsContainerApi->partial_update: #{e}"
|
|
225
|
+
end
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
### Parameters
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
Name | Type | Description | Notes
|
|
232
|
+
------------- | ------------- | ------------- | -------------
|
|
233
|
+
**container_distribution_href** | **String**| URI of Container Distribution. e.g.: /pulp/api/v3/distributions/container/container/1/ |
|
|
234
|
+
**data** | [**ContainerContainerDistribution**](ContainerContainerDistribution.md)| |
|
|
235
|
+
|
|
236
|
+
### Return type
|
|
237
|
+
|
|
238
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
239
|
+
|
|
240
|
+
### Authorization
|
|
241
|
+
|
|
242
|
+
[Basic](../README.md#Basic)
|
|
243
|
+
|
|
244
|
+
### HTTP request headers
|
|
245
|
+
|
|
246
|
+
- **Content-Type**: application/json
|
|
247
|
+
- **Accept**: application/json
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
## read
|
|
251
|
+
|
|
252
|
+
> ContainerContainerDistribution read(container_distribution_href, opts)
|
|
253
|
+
|
|
254
|
+
Inspect a container distribution
|
|
255
|
+
|
|
256
|
+
The Container Distribution will serve the latest version of a Repository if ``repository`` is specified. The Container Distribution will serve a specific repository version if ``repository_version``. Note that **either** ``repository`` or ``repository_version`` can be set on a Container Distribution, but not both.
|
|
257
|
+
|
|
258
|
+
### Example
|
|
259
|
+
|
|
260
|
+
```ruby
|
|
261
|
+
# load the gem
|
|
262
|
+
require 'pulp_container_client'
|
|
263
|
+
# setup authorization
|
|
264
|
+
PulpContainerClient.configure do |config|
|
|
265
|
+
# Configure HTTP basic authorization: Basic
|
|
266
|
+
config.username = 'YOUR USERNAME'
|
|
267
|
+
config.password = 'YOUR PASSWORD'
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
api_instance = PulpContainerClient::DistributionsContainerApi.new
|
|
271
|
+
container_distribution_href = 'container_distribution_href_example' # String | URI of Container Distribution. e.g.: /pulp/api/v3/distributions/container/container/1/
|
|
272
|
+
opts = {
|
|
273
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
274
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
begin
|
|
278
|
+
#Inspect a container distribution
|
|
279
|
+
result = api_instance.read(container_distribution_href, opts)
|
|
280
|
+
p result
|
|
281
|
+
rescue PulpContainerClient::ApiError => e
|
|
282
|
+
puts "Exception when calling DistributionsContainerApi->read: #{e}"
|
|
283
|
+
end
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
### Parameters
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
Name | Type | Description | Notes
|
|
290
|
+
------------- | ------------- | ------------- | -------------
|
|
291
|
+
**container_distribution_href** | **String**| URI of Container Distribution. e.g.: /pulp/api/v3/distributions/container/container/1/ |
|
|
292
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
293
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
294
|
+
|
|
295
|
+
### Return type
|
|
296
|
+
|
|
297
|
+
[**ContainerContainerDistribution**](ContainerContainerDistribution.md)
|
|
298
|
+
|
|
299
|
+
### Authorization
|
|
300
|
+
|
|
301
|
+
[Basic](../README.md#Basic)
|
|
302
|
+
|
|
303
|
+
### HTTP request headers
|
|
304
|
+
|
|
305
|
+
- **Content-Type**: Not defined
|
|
306
|
+
- **Accept**: application/json
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
## update
|
|
310
|
+
|
|
311
|
+
> AsyncOperationResponse update(container_distribution_href, data)
|
|
312
|
+
|
|
313
|
+
Update a container distribution
|
|
314
|
+
|
|
315
|
+
Trigger an asynchronous update task
|
|
316
|
+
|
|
317
|
+
### Example
|
|
318
|
+
|
|
319
|
+
```ruby
|
|
320
|
+
# load the gem
|
|
321
|
+
require 'pulp_container_client'
|
|
322
|
+
# setup authorization
|
|
323
|
+
PulpContainerClient.configure do |config|
|
|
324
|
+
# Configure HTTP basic authorization: Basic
|
|
325
|
+
config.username = 'YOUR USERNAME'
|
|
326
|
+
config.password = 'YOUR PASSWORD'
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
api_instance = PulpContainerClient::DistributionsContainerApi.new
|
|
330
|
+
container_distribution_href = 'container_distribution_href_example' # String | URI of Container Distribution. e.g.: /pulp/api/v3/distributions/container/container/1/
|
|
331
|
+
data = PulpContainerClient::ContainerContainerDistribution.new # ContainerContainerDistribution |
|
|
332
|
+
|
|
333
|
+
begin
|
|
334
|
+
#Update a container distribution
|
|
335
|
+
result = api_instance.update(container_distribution_href, data)
|
|
336
|
+
p result
|
|
337
|
+
rescue PulpContainerClient::ApiError => e
|
|
338
|
+
puts "Exception when calling DistributionsContainerApi->update: #{e}"
|
|
339
|
+
end
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
### Parameters
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
Name | Type | Description | Notes
|
|
346
|
+
------------- | ------------- | ------------- | -------------
|
|
347
|
+
**container_distribution_href** | **String**| URI of Container Distribution. e.g.: /pulp/api/v3/distributions/container/container/1/ |
|
|
348
|
+
**data** | [**ContainerContainerDistribution**](ContainerContainerDistribution.md)| |
|
|
349
|
+
|
|
350
|
+
### Return type
|
|
351
|
+
|
|
352
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
353
|
+
|
|
354
|
+
### Authorization
|
|
355
|
+
|
|
356
|
+
[Basic](../README.md#Basic)
|
|
357
|
+
|
|
358
|
+
### HTTP request headers
|
|
359
|
+
|
|
360
|
+
- **Content-Type**: application/json
|
|
361
|
+
- **Accept**: application/json
|
|
362
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# PulpContainerClient::InlineResponse200
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**count** | **Integer** | |
|
|
8
|
+
**_next** | **String** | | [optional]
|
|
9
|
+
**previous** | **String** | | [optional]
|
|
10
|
+
**results** | [**Array<ContainerBlob>**](ContainerBlob.md) | |
|
|
11
|
+
|
|
12
|
+
## Code Sample
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'PulpContainerClient'
|
|
16
|
+
|
|
17
|
+
instance = PulpContainerClient::InlineResponse200.new(count: null,
|
|
18
|
+
_next: null,
|
|
19
|
+
previous: null,
|
|
20
|
+
results: null)
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
|