pulp_ostree_client 2.4.5 → 2.4.7
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 +29 -12
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContentCommitsApi.md +228 -47
- data/docs/ContentConfigsApi.md +227 -46
- data/docs/ContentContentApi.md +255 -57
- data/docs/ContentObjectsApi.md +228 -47
- data/docs/ContentRefsApi.md +238 -57
- data/docs/ContentSummariesApi.md +227 -46
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/DistributionsOstreeApi.md +387 -182
- 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/OstreeImportAll.md +10 -9
- data/docs/OstreeImportCommitsToRef.md +12 -11
- data/docs/OstreeOstreeCommitResponse.md +26 -23
- data/docs/OstreeOstreeConfigResponse.md +20 -17
- data/docs/OstreeOstreeContent.md +16 -13
- data/docs/OstreeOstreeContentResponse.md +22 -19
- data/docs/OstreeOstreeDistribution.md +20 -19
- data/docs/OstreeOstreeDistributionResponse.md +32 -31
- data/docs/OstreeOstreeObjectResponse.md +24 -21
- data/docs/OstreeOstreeRefResponse.md +26 -23
- data/docs/OstreeOstreeRemote.md +54 -53
- data/docs/OstreeOstreeRemoteResponse.md +54 -53
- data/docs/OstreeOstreeRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/OstreeOstreeRepository.md +18 -17
- data/docs/OstreeOstreeRepositoryResponse.md +30 -29
- data/docs/OstreeOstreeSummaryResponse.md +20 -17
- data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
- data/docs/PaginatedostreeOstreeCommitResponseList.md +14 -13
- data/docs/PaginatedostreeOstreeConfigResponseList.md +14 -13
- data/docs/PaginatedostreeOstreeContentResponseList.md +14 -13
- data/docs/PaginatedostreeOstreeDistributionResponseList.md +14 -13
- data/docs/PaginatedostreeOstreeObjectResponseList.md +14 -13
- data/docs/PaginatedostreeOstreeRefResponseList.md +14 -13
- data/docs/PaginatedostreeOstreeRemoteResponseList.md +14 -13
- data/docs/PaginatedostreeOstreeRepositoryResponseList.md +14 -13
- data/docs/PaginatedostreeOstreeSummaryResponseList.md +14 -13
- data/docs/PatchedostreeOstreeDistribution.md +20 -19
- data/docs/PatchedostreeOstreeRemote.md +54 -53
- data/docs/PatchedostreeOstreeRepository.md +18 -17
- data/docs/PolicyEnum.md +4 -5
- data/docs/RemotesOstreeApi.md +389 -184
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesOstreeApi.md +502 -231
- data/docs/RepositoriesOstreeVersionsApi.md +152 -82
- data/docs/RepositoryAddRemoveContent.md +12 -11
- data/docs/RepositorySyncURL.md +10 -9
- data/docs/RepositoryVersionResponse.md +22 -21
- data/docs/SetLabel.md +10 -9
- data/docs/SetLabelResponse.md +10 -9
- data/docs/UnsetLabel.md +8 -7
- data/docs/UnsetLabelResponse.md +10 -9
- data/lib/pulp_ostree_client/api/content_commits_api.rb +165 -12
- data/lib/pulp_ostree_client/api/content_configs_api.rb +162 -9
- data/lib/pulp_ostree_client/api/content_content_api.rb +171 -14
- data/lib/pulp_ostree_client/api/content_objects_api.rb +165 -12
- data/lib/pulp_ostree_client/api/content_refs_api.rb +165 -12
- data/lib/pulp_ostree_client/api/content_summaries_api.rb +162 -9
- data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +95 -59
- data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +104 -68
- data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +125 -76
- data/lib/pulp_ostree_client/api/repositories_ostree_versions_api.rb +40 -30
- data/lib/pulp_ostree_client/api_client.rb +137 -102
- data/lib/pulp_ostree_client/api_error.rb +2 -1
- data/lib/pulp_ostree_client/configuration.rb +162 -21
- data/lib/pulp_ostree_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_ostree_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_ostree_client/models/my_permissions_response.rb +32 -22
- data/lib/pulp_ostree_client/models/nested_role.rb +32 -22
- data/lib/pulp_ostree_client/models/nested_role_response.rb +32 -22
- data/lib/pulp_ostree_client/models/object_roles_response.rb +32 -22
- data/lib/pulp_ostree_client/models/ostree_import_all.rb +34 -22
- data/lib/pulp_ostree_client/models/ostree_import_commits_to_ref.rb +36 -22
- data/lib/pulp_ostree_client/models/ostree_ostree_commit_response.rb +53 -25
- data/lib/pulp_ostree_client/models/ostree_ostree_config_response.rb +49 -25
- data/lib/pulp_ostree_client/models/ostree_ostree_content.rb +49 -23
- data/lib/pulp_ostree_client/models/ostree_ostree_content_response.rb +51 -25
- data/lib/pulp_ostree_client/models/ostree_ostree_distribution.rb +34 -22
- data/lib/pulp_ostree_client/models/ostree_ostree_distribution_response.rb +36 -24
- data/lib/pulp_ostree_client/models/ostree_ostree_object_response.rb +53 -25
- data/lib/pulp_ostree_client/models/ostree_ostree_ref_response.rb +53 -25
- data/lib/pulp_ostree_client/models/ostree_ostree_remote.rb +61 -23
- data/lib/pulp_ostree_client/models/ostree_ostree_remote_response.rb +64 -26
- data/lib/pulp_ostree_client/models/{ostree_ostree_remote_response_hidden_fields.rb → ostree_ostree_remote_response_hidden_fields_inner.rb} +37 -25
- data/lib/pulp_ostree_client/models/ostree_ostree_repository.rb +32 -22
- data/lib/pulp_ostree_client/models/ostree_ostree_repository_response.rb +34 -24
- data/lib/pulp_ostree_client/models/ostree_ostree_summary_response.rb +49 -25
- data/lib/pulp_ostree_client/models/paginated_repository_version_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_commit_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_config_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_content_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_distribution_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_object_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_ref_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_remote_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_repository_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_summary_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/patchedostree_ostree_distribution.rb +40 -24
- data/lib/pulp_ostree_client/models/patchedostree_ostree_remote.rb +67 -25
- data/lib/pulp_ostree_client/models/patchedostree_ostree_repository.rb +35 -23
- data/lib/pulp_ostree_client/models/policy_enum.rb +8 -4
- data/lib/pulp_ostree_client/models/repair.rb +30 -22
- data/lib/pulp_ostree_client/models/repository_add_remove_content.rb +30 -22
- data/lib/pulp_ostree_client/models/repository_sync_url.rb +30 -22
- data/lib/pulp_ostree_client/models/repository_version_response.rb +32 -24
- data/lib/pulp_ostree_client/models/set_label.rb +34 -22
- data/lib/pulp_ostree_client/models/set_label_response.rb +34 -22
- data/lib/pulp_ostree_client/models/unset_label.rb +33 -23
- data/lib/pulp_ostree_client/models/unset_label_response.rb +33 -23
- data/lib/pulp_ostree_client/version.rb +2 -2
- data/lib/pulp_ostree_client.rb +2 -2
- data/pulp_ostree_client.gemspec +9 -6
- data/spec/api/content_commits_api_spec.rb +31 -4
- data/spec/api/content_configs_api_spec.rb +30 -3
- data/spec/api/content_content_api_spec.rb +31 -4
- data/spec/api/content_objects_api_spec.rb +31 -4
- data/spec/api/content_refs_api_spec.rb +31 -4
- data/spec/api/content_summaries_api_spec.rb +30 -3
- data/spec/api/distributions_ostree_api_spec.rb +15 -14
- data/spec/api/remotes_ostree_api_spec.rb +20 -19
- data/spec/api/repositories_ostree_api_spec.rb +17 -17
- data/spec/api/repositories_ostree_versions_api_spec.rb +12 -11
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/content_summary_response_spec.rb +9 -14
- 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/ostree_import_all_spec.rb +8 -13
- data/spec/models/ostree_import_commits_to_ref_spec.rb +9 -14
- data/spec/models/ostree_ostree_commit_response_spec.rb +21 -20
- data/spec/models/ostree_ostree_config_response_spec.rb +18 -17
- data/spec/models/ostree_ostree_content_response_spec.rb +19 -18
- data/spec/models/ostree_ostree_content_spec.rb +16 -15
- data/spec/models/ostree_ostree_distribution_response_spec.rb +19 -24
- data/spec/models/ostree_ostree_distribution_spec.rb +13 -18
- data/spec/models/ostree_ostree_object_response_spec.rb +20 -19
- data/spec/models/ostree_ostree_ref_response_spec.rb +21 -20
- data/spec/models/{ostree_ostree_remote_response_hidden_fields_spec.rb → ostree_ostree_remote_response_hidden_fields_inner_spec.rb} +11 -16
- data/spec/models/ostree_ostree_remote_response_spec.rb +30 -35
- data/spec/models/ostree_ostree_remote_spec.rb +30 -35
- data/spec/models/ostree_ostree_repository_response_spec.rb +18 -23
- data/spec/models/ostree_ostree_repository_spec.rb +12 -17
- data/spec/models/ostree_ostree_summary_response_spec.rb +18 -17
- data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
- data/spec/models/paginatedostree_ostree_commit_response_list_spec.rb +10 -15
- data/spec/models/paginatedostree_ostree_config_response_list_spec.rb +10 -15
- data/spec/models/paginatedostree_ostree_content_response_list_spec.rb +10 -15
- data/spec/models/paginatedostree_ostree_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginatedostree_ostree_object_response_list_spec.rb +10 -15
- data/spec/models/paginatedostree_ostree_ref_response_list_spec.rb +10 -15
- data/spec/models/paginatedostree_ostree_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedostree_ostree_repository_response_list_spec.rb +10 -15
- data/spec/models/paginatedostree_ostree_summary_response_list_spec.rb +10 -15
- data/spec/models/patchedostree_ostree_distribution_spec.rb +13 -18
- data/spec/models/patchedostree_ostree_remote_spec.rb +30 -35
- data/spec/models/patchedostree_ostree_repository_spec.rb +12 -17
- data/spec/models/policy_enum_spec.rb +6 -11
- data/spec/models/repair_spec.rb +7 -12
- data/spec/models/repository_add_remove_content_spec.rb +9 -14
- data/spec/models/repository_sync_url_spec.rb +8 -13
- 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/unset_label_response_spec.rb +8 -13
- data/spec/models/unset_label_spec.rb +7 -12
- data/spec/spec_helper.rb +1 -1
- metadata +83 -59
- data/docs/OstreeOstreeRemoteResponseHiddenFields.md +0 -19
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
data/docs/ContentContentApi.md
CHANGED
@@ -2,26 +2,27 @@
|
|
2
2
|
|
3
3
|
All URIs are relative to *http://localhost:24817*
|
4
4
|
|
5
|
-
Method | HTTP request | Description
|
6
|
-
|
7
|
-
[**create**](ContentContentApi.md#create) | **POST** /pulp/api/v3/content/ostree/content/ | Create an ostree content
|
8
|
-
[**list**](ContentContentApi.md#list) | **GET** /pulp/api/v3/content/ostree/content/ | List ostree contents
|
9
|
-
[**read**](ContentContentApi.md#read) | **GET** {ostree_ostree_content_href} | Inspect an ostree content
|
10
|
-
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**create**](ContentContentApi.md#create) | **POST** /pulp/api/v3/content/ostree/content/ | Create an ostree content |
|
8
|
+
| [**list**](ContentContentApi.md#list) | **GET** /pulp/api/v3/content/ostree/content/ | List ostree contents |
|
9
|
+
| [**read**](ContentContentApi.md#read) | **GET** {ostree_ostree_content_href} | Inspect an ostree content |
|
10
|
+
| [**set_label**](ContentContentApi.md#set_label) | **POST** {ostree_ostree_content_href}set_label/ | Set a label |
|
11
|
+
| [**unset_label**](ContentContentApi.md#unset_label) | **POST** {ostree_ostree_content_href}unset_label/ | Unset a label |
|
11
12
|
|
12
13
|
|
13
14
|
## create
|
14
15
|
|
15
|
-
> AsyncOperationResponse create(ostree_ostree_content)
|
16
|
+
> <AsyncOperationResponse> create(ostree_ostree_content)
|
16
17
|
|
17
18
|
Create an ostree content
|
18
19
|
|
19
20
|
Trigger an asynchronous task to create content,optionally create new repository version.
|
20
21
|
|
21
|
-
###
|
22
|
+
### Examples
|
22
23
|
|
23
24
|
```ruby
|
24
|
-
|
25
|
+
require 'time'
|
25
26
|
require 'pulp_ostree_client'
|
26
27
|
# setup authorization
|
27
28
|
PulpOstreeClient.configure do |config|
|
@@ -31,23 +32,40 @@ PulpOstreeClient.configure do |config|
|
|
31
32
|
end
|
32
33
|
|
33
34
|
api_instance = PulpOstreeClient::ContentContentApi.new
|
34
|
-
ostree_ostree_content = PulpOstreeClient::OstreeOstreeContent.new # OstreeOstreeContent |
|
35
|
+
ostree_ostree_content = PulpOstreeClient::OstreeOstreeContent.new({artifact: 'artifact_example', relative_path: 'relative_path_example', digest: 'digest_example'}) # OstreeOstreeContent |
|
35
36
|
|
36
37
|
begin
|
37
|
-
#Create an ostree content
|
38
|
+
# Create an ostree content
|
38
39
|
result = api_instance.create(ostree_ostree_content)
|
39
40
|
p result
|
40
41
|
rescue PulpOstreeClient::ApiError => e
|
41
|
-
puts "
|
42
|
+
puts "Error when calling ContentContentApi->create: #{e}"
|
42
43
|
end
|
43
44
|
```
|
44
45
|
|
45
|
-
|
46
|
+
#### Using the create_with_http_info variant
|
47
|
+
|
48
|
+
This returns an Array which contains the response data, status code and headers.
|
49
|
+
|
50
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> create_with_http_info(ostree_ostree_content)
|
51
|
+
|
52
|
+
```ruby
|
53
|
+
begin
|
54
|
+
# Create an ostree content
|
55
|
+
data, status_code, headers = api_instance.create_with_http_info(ostree_ostree_content)
|
56
|
+
p status_code # => 2xx
|
57
|
+
p headers # => { ... }
|
58
|
+
p data # => <AsyncOperationResponse>
|
59
|
+
rescue PulpOstreeClient::ApiError => e
|
60
|
+
puts "Error when calling ContentContentApi->create_with_http_info: #{e}"
|
61
|
+
end
|
62
|
+
```
|
46
63
|
|
64
|
+
### Parameters
|
47
65
|
|
48
|
-
Name | Type | Description
|
49
|
-
|
50
|
-
**ostree_ostree_content** | [**OstreeOstreeContent**](OstreeOstreeContent.md)| |
|
66
|
+
| Name | Type | Description | Notes |
|
67
|
+
| ---- | ---- | ----------- | ----- |
|
68
|
+
| **ostree_ostree_content** | [**OstreeOstreeContent**](OstreeOstreeContent.md) | | |
|
51
69
|
|
52
70
|
### Return type
|
53
71
|
|
@@ -65,16 +83,16 @@ Name | Type | Description | Notes
|
|
65
83
|
|
66
84
|
## list
|
67
85
|
|
68
|
-
> PaginatedostreeOstreeContentResponseList list(opts)
|
86
|
+
> <PaginatedostreeOstreeContentResponseList> list(opts)
|
69
87
|
|
70
88
|
List ostree contents
|
71
89
|
|
72
90
|
A ViewSet class for uncategorized content units (e.g., static deltas).
|
73
91
|
|
74
|
-
###
|
92
|
+
### Examples
|
75
93
|
|
76
94
|
```ruby
|
77
|
-
|
95
|
+
require 'time'
|
78
96
|
require 'pulp_ostree_client'
|
79
97
|
# setup authorization
|
80
98
|
PulpOstreeClient.configure do |config|
|
@@ -87,46 +105,65 @@ api_instance = PulpOstreeClient::ContentContentApi.new
|
|
87
105
|
opts = {
|
88
106
|
limit: 56, # Integer | Number of results to return per page.
|
89
107
|
offset: 56, # Integer | The initial index from which to return the results.
|
90
|
-
ordering: ['
|
91
|
-
orphaned_for:
|
92
|
-
prn__in: ['
|
93
|
-
pulp_href__in: ['
|
94
|
-
pulp_id__in: ['
|
108
|
+
ordering: ['-pk'], # Array<String> | Ordering * `pk` - Pk * `-pk` - Pk (descending)
|
109
|
+
orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
110
|
+
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
111
|
+
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
112
|
+
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
113
|
+
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
95
114
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
96
115
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
|
97
116
|
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF/PRN
|
98
117
|
repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF/PRN
|
99
|
-
fields: ['
|
100
|
-
exclude_fields: ['
|
118
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
119
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
101
120
|
}
|
102
121
|
|
103
122
|
begin
|
104
|
-
#List ostree contents
|
123
|
+
# List ostree contents
|
105
124
|
result = api_instance.list(opts)
|
106
125
|
p result
|
107
126
|
rescue PulpOstreeClient::ApiError => e
|
108
|
-
puts "
|
127
|
+
puts "Error when calling ContentContentApi->list: #{e}"
|
109
128
|
end
|
110
129
|
```
|
111
130
|
|
112
|
-
|
131
|
+
#### Using the list_with_http_info variant
|
132
|
+
|
133
|
+
This returns an Array which contains the response data, status code and headers.
|
134
|
+
|
135
|
+
> <Array(<PaginatedostreeOstreeContentResponseList>, Integer, Hash)> list_with_http_info(opts)
|
136
|
+
|
137
|
+
```ruby
|
138
|
+
begin
|
139
|
+
# List ostree contents
|
140
|
+
data, status_code, headers = api_instance.list_with_http_info(opts)
|
141
|
+
p status_code # => 2xx
|
142
|
+
p headers # => { ... }
|
143
|
+
p data # => <PaginatedostreeOstreeContentResponseList>
|
144
|
+
rescue PulpOstreeClient::ApiError => e
|
145
|
+
puts "Error when calling ContentContentApi->list_with_http_info: #{e}"
|
146
|
+
end
|
147
|
+
```
|
113
148
|
|
149
|
+
### Parameters
|
114
150
|
|
115
|
-
Name | Type | Description
|
116
|
-
|
117
|
-
**limit** | **Integer
|
118
|
-
**offset** | **Integer
|
119
|
-
**ordering** | [**Array<String>**](String.md)| Ordering * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
120
|
-
**orphaned_for** | **Float
|
121
|
-
**prn__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
122
|
-
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
123
|
-
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
124
|
-
**
|
125
|
-
**
|
126
|
-
**
|
127
|
-
**
|
128
|
-
**
|
129
|
-
**
|
151
|
+
| Name | Type | Description | Notes |
|
152
|
+
| ---- | ---- | ----------- | ----- |
|
153
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
154
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
155
|
+
| **ordering** | [**Array<String>**](String.md) | Ordering * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
156
|
+
| **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
|
157
|
+
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
158
|
+
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
159
|
+
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
160
|
+
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
161
|
+
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
162
|
+
| **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
163
|
+
| **repository_version_added** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
164
|
+
| **repository_version_removed** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
165
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
166
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
130
167
|
|
131
168
|
### Return type
|
132
169
|
|
@@ -144,16 +181,16 @@ Name | Type | Description | Notes
|
|
144
181
|
|
145
182
|
## read
|
146
183
|
|
147
|
-
> OstreeOstreeContentResponse read(ostree_ostree_content_href, opts)
|
184
|
+
> <OstreeOstreeContentResponse> read(ostree_ostree_content_href, opts)
|
148
185
|
|
149
186
|
Inspect an ostree content
|
150
187
|
|
151
188
|
A ViewSet class for uncategorized content units (e.g., static deltas).
|
152
189
|
|
153
|
-
###
|
190
|
+
### Examples
|
154
191
|
|
155
192
|
```ruby
|
156
|
-
|
193
|
+
require 'time'
|
157
194
|
require 'pulp_ostree_client'
|
158
195
|
# setup authorization
|
159
196
|
PulpOstreeClient.configure do |config|
|
@@ -165,27 +202,44 @@ end
|
|
165
202
|
api_instance = PulpOstreeClient::ContentContentApi.new
|
166
203
|
ostree_ostree_content_href = 'ostree_ostree_content_href_example' # String |
|
167
204
|
opts = {
|
168
|
-
fields: ['
|
169
|
-
exclude_fields: ['
|
205
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
206
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
170
207
|
}
|
171
208
|
|
172
209
|
begin
|
173
|
-
#Inspect an ostree content
|
210
|
+
# Inspect an ostree content
|
174
211
|
result = api_instance.read(ostree_ostree_content_href, opts)
|
175
212
|
p result
|
176
213
|
rescue PulpOstreeClient::ApiError => e
|
177
|
-
puts "
|
214
|
+
puts "Error when calling ContentContentApi->read: #{e}"
|
178
215
|
end
|
179
216
|
```
|
180
217
|
|
181
|
-
|
218
|
+
#### Using the read_with_http_info variant
|
219
|
+
|
220
|
+
This returns an Array which contains the response data, status code and headers.
|
221
|
+
|
222
|
+
> <Array(<OstreeOstreeContentResponse>, Integer, Hash)> read_with_http_info(ostree_ostree_content_href, opts)
|
182
223
|
|
224
|
+
```ruby
|
225
|
+
begin
|
226
|
+
# Inspect an ostree content
|
227
|
+
data, status_code, headers = api_instance.read_with_http_info(ostree_ostree_content_href, opts)
|
228
|
+
p status_code # => 2xx
|
229
|
+
p headers # => { ... }
|
230
|
+
p data # => <OstreeOstreeContentResponse>
|
231
|
+
rescue PulpOstreeClient::ApiError => e
|
232
|
+
puts "Error when calling ContentContentApi->read_with_http_info: #{e}"
|
233
|
+
end
|
234
|
+
```
|
235
|
+
|
236
|
+
### Parameters
|
183
237
|
|
184
|
-
Name | Type | Description
|
185
|
-
|
186
|
-
**ostree_ostree_content_href** | **String
|
187
|
-
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
188
|
-
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
238
|
+
| Name | Type | Description | Notes |
|
239
|
+
| ---- | ---- | ----------- | ----- |
|
240
|
+
| **ostree_ostree_content_href** | **String** | | |
|
241
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
242
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
189
243
|
|
190
244
|
### Return type
|
191
245
|
|
@@ -200,3 +254,147 @@ Name | Type | Description | Notes
|
|
200
254
|
- **Content-Type**: Not defined
|
201
255
|
- **Accept**: application/json
|
202
256
|
|
257
|
+
|
258
|
+
## set_label
|
259
|
+
|
260
|
+
> <SetLabelResponse> set_label(ostree_ostree_content_href, set_label)
|
261
|
+
|
262
|
+
Set a label
|
263
|
+
|
264
|
+
Set a single pulp_label on the object to a specific value or null.
|
265
|
+
|
266
|
+
### Examples
|
267
|
+
|
268
|
+
```ruby
|
269
|
+
require 'time'
|
270
|
+
require 'pulp_ostree_client'
|
271
|
+
# setup authorization
|
272
|
+
PulpOstreeClient.configure do |config|
|
273
|
+
# Configure HTTP basic authorization: basicAuth
|
274
|
+
config.username = 'YOUR USERNAME'
|
275
|
+
config.password = 'YOUR PASSWORD'
|
276
|
+
end
|
277
|
+
|
278
|
+
api_instance = PulpOstreeClient::ContentContentApi.new
|
279
|
+
ostree_ostree_content_href = 'ostree_ostree_content_href_example' # String |
|
280
|
+
set_label = PulpOstreeClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
|
281
|
+
|
282
|
+
begin
|
283
|
+
# Set a label
|
284
|
+
result = api_instance.set_label(ostree_ostree_content_href, set_label)
|
285
|
+
p result
|
286
|
+
rescue PulpOstreeClient::ApiError => e
|
287
|
+
puts "Error when calling ContentContentApi->set_label: #{e}"
|
288
|
+
end
|
289
|
+
```
|
290
|
+
|
291
|
+
#### Using the set_label_with_http_info variant
|
292
|
+
|
293
|
+
This returns an Array which contains the response data, status code and headers.
|
294
|
+
|
295
|
+
> <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(ostree_ostree_content_href, set_label)
|
296
|
+
|
297
|
+
```ruby
|
298
|
+
begin
|
299
|
+
# Set a label
|
300
|
+
data, status_code, headers = api_instance.set_label_with_http_info(ostree_ostree_content_href, set_label)
|
301
|
+
p status_code # => 2xx
|
302
|
+
p headers # => { ... }
|
303
|
+
p data # => <SetLabelResponse>
|
304
|
+
rescue PulpOstreeClient::ApiError => e
|
305
|
+
puts "Error when calling ContentContentApi->set_label_with_http_info: #{e}"
|
306
|
+
end
|
307
|
+
```
|
308
|
+
|
309
|
+
### Parameters
|
310
|
+
|
311
|
+
| Name | Type | Description | Notes |
|
312
|
+
| ---- | ---- | ----------- | ----- |
|
313
|
+
| **ostree_ostree_content_href** | **String** | | |
|
314
|
+
| **set_label** | [**SetLabel**](SetLabel.md) | | |
|
315
|
+
|
316
|
+
### Return type
|
317
|
+
|
318
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
319
|
+
|
320
|
+
### Authorization
|
321
|
+
|
322
|
+
[basicAuth](../README.md#basicAuth)
|
323
|
+
|
324
|
+
### HTTP request headers
|
325
|
+
|
326
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
327
|
+
- **Accept**: application/json
|
328
|
+
|
329
|
+
|
330
|
+
## unset_label
|
331
|
+
|
332
|
+
> <UnsetLabelResponse> unset_label(ostree_ostree_content_href, unset_label)
|
333
|
+
|
334
|
+
Unset a label
|
335
|
+
|
336
|
+
Unset a single pulp_label on the object.
|
337
|
+
|
338
|
+
### Examples
|
339
|
+
|
340
|
+
```ruby
|
341
|
+
require 'time'
|
342
|
+
require 'pulp_ostree_client'
|
343
|
+
# setup authorization
|
344
|
+
PulpOstreeClient.configure do |config|
|
345
|
+
# Configure HTTP basic authorization: basicAuth
|
346
|
+
config.username = 'YOUR USERNAME'
|
347
|
+
config.password = 'YOUR PASSWORD'
|
348
|
+
end
|
349
|
+
|
350
|
+
api_instance = PulpOstreeClient::ContentContentApi.new
|
351
|
+
ostree_ostree_content_href = 'ostree_ostree_content_href_example' # String |
|
352
|
+
unset_label = PulpOstreeClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
|
353
|
+
|
354
|
+
begin
|
355
|
+
# Unset a label
|
356
|
+
result = api_instance.unset_label(ostree_ostree_content_href, unset_label)
|
357
|
+
p result
|
358
|
+
rescue PulpOstreeClient::ApiError => e
|
359
|
+
puts "Error when calling ContentContentApi->unset_label: #{e}"
|
360
|
+
end
|
361
|
+
```
|
362
|
+
|
363
|
+
#### Using the unset_label_with_http_info variant
|
364
|
+
|
365
|
+
This returns an Array which contains the response data, status code and headers.
|
366
|
+
|
367
|
+
> <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(ostree_ostree_content_href, unset_label)
|
368
|
+
|
369
|
+
```ruby
|
370
|
+
begin
|
371
|
+
# Unset a label
|
372
|
+
data, status_code, headers = api_instance.unset_label_with_http_info(ostree_ostree_content_href, unset_label)
|
373
|
+
p status_code # => 2xx
|
374
|
+
p headers # => { ... }
|
375
|
+
p data # => <UnsetLabelResponse>
|
376
|
+
rescue PulpOstreeClient::ApiError => e
|
377
|
+
puts "Error when calling ContentContentApi->unset_label_with_http_info: #{e}"
|
378
|
+
end
|
379
|
+
```
|
380
|
+
|
381
|
+
### Parameters
|
382
|
+
|
383
|
+
| Name | Type | Description | Notes |
|
384
|
+
| ---- | ---- | ----------- | ----- |
|
385
|
+
| **ostree_ostree_content_href** | **String** | | |
|
386
|
+
| **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
|
387
|
+
|
388
|
+
### Return type
|
389
|
+
|
390
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
391
|
+
|
392
|
+
### Authorization
|
393
|
+
|
394
|
+
[basicAuth](../README.md#basicAuth)
|
395
|
+
|
396
|
+
### HTTP request headers
|
397
|
+
|
398
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
399
|
+
- **Accept**: application/json
|
400
|
+
|