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/ContentConfigsApi.md
CHANGED
@@ -2,25 +2,26 @@
|
|
2
2
|
|
3
3
|
All URIs are relative to *http://localhost:24817*
|
4
4
|
|
5
|
-
Method | HTTP request | Description
|
6
|
-
|
7
|
-
[**list**](ContentConfigsApi.md#list) | **GET** /pulp/api/v3/content/ostree/configs/ | List ostree configs
|
8
|
-
[**read**](ContentConfigsApi.md#read) | **GET** {ostree_ostree_config_href} | Inspect an ostree config
|
9
|
-
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**list**](ContentConfigsApi.md#list) | **GET** /pulp/api/v3/content/ostree/configs/ | List ostree configs |
|
8
|
+
| [**read**](ContentConfigsApi.md#read) | **GET** {ostree_ostree_config_href} | Inspect an ostree config |
|
9
|
+
| [**set_label**](ContentConfigsApi.md#set_label) | **POST** {ostree_ostree_config_href}set_label/ | Set a label |
|
10
|
+
| [**unset_label**](ContentConfigsApi.md#unset_label) | **POST** {ostree_ostree_config_href}unset_label/ | Unset a label |
|
10
11
|
|
11
12
|
|
12
13
|
## list
|
13
14
|
|
14
|
-
> PaginatedostreeOstreeConfigResponseList list(opts)
|
15
|
+
> <PaginatedostreeOstreeConfigResponseList> list(opts)
|
15
16
|
|
16
17
|
List ostree configs
|
17
18
|
|
18
19
|
A ViewSet class for OSTree repository configurations.
|
19
20
|
|
20
|
-
###
|
21
|
+
### Examples
|
21
22
|
|
22
23
|
```ruby
|
23
|
-
|
24
|
+
require 'time'
|
24
25
|
require 'pulp_ostree_client'
|
25
26
|
# setup authorization
|
26
27
|
PulpOstreeClient.configure do |config|
|
@@ -33,46 +34,65 @@ api_instance = PulpOstreeClient::ContentConfigsApi.new
|
|
33
34
|
opts = {
|
34
35
|
limit: 56, # Integer | Number of results to return per page.
|
35
36
|
offset: 56, # Integer | The initial index from which to return the results.
|
36
|
-
ordering: ['
|
37
|
-
orphaned_for:
|
38
|
-
prn__in: ['
|
39
|
-
pulp_href__in: ['
|
40
|
-
pulp_id__in: ['
|
37
|
+
ordering: ['-pk'], # Array<String> | Ordering * `pk` - Pk * `-pk` - Pk (descending)
|
38
|
+
orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
39
|
+
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
40
|
+
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
41
|
+
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
42
|
+
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
41
43
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
42
44
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
|
43
45
|
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF/PRN
|
44
46
|
repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF/PRN
|
45
|
-
fields: ['
|
46
|
-
exclude_fields: ['
|
47
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
48
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
47
49
|
}
|
48
50
|
|
49
51
|
begin
|
50
|
-
#List ostree configs
|
52
|
+
# List ostree configs
|
51
53
|
result = api_instance.list(opts)
|
52
54
|
p result
|
53
55
|
rescue PulpOstreeClient::ApiError => e
|
54
|
-
puts "
|
56
|
+
puts "Error when calling ContentConfigsApi->list: #{e}"
|
55
57
|
end
|
56
58
|
```
|
57
59
|
|
58
|
-
|
60
|
+
#### Using the list_with_http_info variant
|
59
61
|
|
62
|
+
This returns an Array which contains the response data, status code and headers.
|
60
63
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
64
|
+
> <Array(<PaginatedostreeOstreeConfigResponseList>, Integer, Hash)> list_with_http_info(opts)
|
65
|
+
|
66
|
+
```ruby
|
67
|
+
begin
|
68
|
+
# List ostree configs
|
69
|
+
data, status_code, headers = api_instance.list_with_http_info(opts)
|
70
|
+
p status_code # => 2xx
|
71
|
+
p headers # => { ... }
|
72
|
+
p data # => <PaginatedostreeOstreeConfigResponseList>
|
73
|
+
rescue PulpOstreeClient::ApiError => e
|
74
|
+
puts "Error when calling ContentConfigsApi->list_with_http_info: #{e}"
|
75
|
+
end
|
76
|
+
```
|
77
|
+
|
78
|
+
### Parameters
|
79
|
+
|
80
|
+
| Name | Type | Description | Notes |
|
81
|
+
| ---- | ---- | ----------- | ----- |
|
82
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
83
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
84
|
+
| **ordering** | [**Array<String>**](String.md) | Ordering * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
85
|
+
| **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
|
86
|
+
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
87
|
+
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
88
|
+
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
89
|
+
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
90
|
+
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
91
|
+
| **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
92
|
+
| **repository_version_added** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
93
|
+
| **repository_version_removed** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
94
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
95
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
76
96
|
|
77
97
|
### Return type
|
78
98
|
|
@@ -90,16 +110,16 @@ Name | Type | Description | Notes
|
|
90
110
|
|
91
111
|
## read
|
92
112
|
|
93
|
-
> OstreeOstreeConfigResponse read(ostree_ostree_config_href, opts)
|
113
|
+
> <OstreeOstreeConfigResponse> read(ostree_ostree_config_href, opts)
|
94
114
|
|
95
115
|
Inspect an ostree config
|
96
116
|
|
97
117
|
A ViewSet class for OSTree repository configurations.
|
98
118
|
|
99
|
-
###
|
119
|
+
### Examples
|
100
120
|
|
101
121
|
```ruby
|
102
|
-
|
122
|
+
require 'time'
|
103
123
|
require 'pulp_ostree_client'
|
104
124
|
# setup authorization
|
105
125
|
PulpOstreeClient.configure do |config|
|
@@ -111,27 +131,44 @@ end
|
|
111
131
|
api_instance = PulpOstreeClient::ContentConfigsApi.new
|
112
132
|
ostree_ostree_config_href = 'ostree_ostree_config_href_example' # String |
|
113
133
|
opts = {
|
114
|
-
fields: ['
|
115
|
-
exclude_fields: ['
|
134
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
135
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
116
136
|
}
|
117
137
|
|
118
138
|
begin
|
119
|
-
#Inspect an ostree config
|
139
|
+
# Inspect an ostree config
|
120
140
|
result = api_instance.read(ostree_ostree_config_href, opts)
|
121
141
|
p result
|
122
142
|
rescue PulpOstreeClient::ApiError => e
|
123
|
-
puts "
|
143
|
+
puts "Error when calling ContentConfigsApi->read: #{e}"
|
124
144
|
end
|
125
145
|
```
|
126
146
|
|
127
|
-
|
147
|
+
#### Using the read_with_http_info variant
|
128
148
|
|
149
|
+
This returns an Array which contains the response data, status code and headers.
|
129
150
|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
151
|
+
> <Array(<OstreeOstreeConfigResponse>, Integer, Hash)> read_with_http_info(ostree_ostree_config_href, opts)
|
152
|
+
|
153
|
+
```ruby
|
154
|
+
begin
|
155
|
+
# Inspect an ostree config
|
156
|
+
data, status_code, headers = api_instance.read_with_http_info(ostree_ostree_config_href, opts)
|
157
|
+
p status_code # => 2xx
|
158
|
+
p headers # => { ... }
|
159
|
+
p data # => <OstreeOstreeConfigResponse>
|
160
|
+
rescue PulpOstreeClient::ApiError => e
|
161
|
+
puts "Error when calling ContentConfigsApi->read_with_http_info: #{e}"
|
162
|
+
end
|
163
|
+
```
|
164
|
+
|
165
|
+
### Parameters
|
166
|
+
|
167
|
+
| Name | Type | Description | Notes |
|
168
|
+
| ---- | ---- | ----------- | ----- |
|
169
|
+
| **ostree_ostree_config_href** | **String** | | |
|
170
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
171
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
135
172
|
|
136
173
|
### Return type
|
137
174
|
|
@@ -146,3 +183,147 @@ Name | Type | Description | Notes
|
|
146
183
|
- **Content-Type**: Not defined
|
147
184
|
- **Accept**: application/json
|
148
185
|
|
186
|
+
|
187
|
+
## set_label
|
188
|
+
|
189
|
+
> <SetLabelResponse> set_label(ostree_ostree_config_href, set_label)
|
190
|
+
|
191
|
+
Set a label
|
192
|
+
|
193
|
+
Set a single pulp_label on the object to a specific value or null.
|
194
|
+
|
195
|
+
### Examples
|
196
|
+
|
197
|
+
```ruby
|
198
|
+
require 'time'
|
199
|
+
require 'pulp_ostree_client'
|
200
|
+
# setup authorization
|
201
|
+
PulpOstreeClient.configure do |config|
|
202
|
+
# Configure HTTP basic authorization: basicAuth
|
203
|
+
config.username = 'YOUR USERNAME'
|
204
|
+
config.password = 'YOUR PASSWORD'
|
205
|
+
end
|
206
|
+
|
207
|
+
api_instance = PulpOstreeClient::ContentConfigsApi.new
|
208
|
+
ostree_ostree_config_href = 'ostree_ostree_config_href_example' # String |
|
209
|
+
set_label = PulpOstreeClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
|
210
|
+
|
211
|
+
begin
|
212
|
+
# Set a label
|
213
|
+
result = api_instance.set_label(ostree_ostree_config_href, set_label)
|
214
|
+
p result
|
215
|
+
rescue PulpOstreeClient::ApiError => e
|
216
|
+
puts "Error when calling ContentConfigsApi->set_label: #{e}"
|
217
|
+
end
|
218
|
+
```
|
219
|
+
|
220
|
+
#### Using the set_label_with_http_info variant
|
221
|
+
|
222
|
+
This returns an Array which contains the response data, status code and headers.
|
223
|
+
|
224
|
+
> <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(ostree_ostree_config_href, set_label)
|
225
|
+
|
226
|
+
```ruby
|
227
|
+
begin
|
228
|
+
# Set a label
|
229
|
+
data, status_code, headers = api_instance.set_label_with_http_info(ostree_ostree_config_href, set_label)
|
230
|
+
p status_code # => 2xx
|
231
|
+
p headers # => { ... }
|
232
|
+
p data # => <SetLabelResponse>
|
233
|
+
rescue PulpOstreeClient::ApiError => e
|
234
|
+
puts "Error when calling ContentConfigsApi->set_label_with_http_info: #{e}"
|
235
|
+
end
|
236
|
+
```
|
237
|
+
|
238
|
+
### Parameters
|
239
|
+
|
240
|
+
| Name | Type | Description | Notes |
|
241
|
+
| ---- | ---- | ----------- | ----- |
|
242
|
+
| **ostree_ostree_config_href** | **String** | | |
|
243
|
+
| **set_label** | [**SetLabel**](SetLabel.md) | | |
|
244
|
+
|
245
|
+
### Return type
|
246
|
+
|
247
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
248
|
+
|
249
|
+
### Authorization
|
250
|
+
|
251
|
+
[basicAuth](../README.md#basicAuth)
|
252
|
+
|
253
|
+
### HTTP request headers
|
254
|
+
|
255
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
256
|
+
- **Accept**: application/json
|
257
|
+
|
258
|
+
|
259
|
+
## unset_label
|
260
|
+
|
261
|
+
> <UnsetLabelResponse> unset_label(ostree_ostree_config_href, unset_label)
|
262
|
+
|
263
|
+
Unset a label
|
264
|
+
|
265
|
+
Unset a single pulp_label on the object.
|
266
|
+
|
267
|
+
### Examples
|
268
|
+
|
269
|
+
```ruby
|
270
|
+
require 'time'
|
271
|
+
require 'pulp_ostree_client'
|
272
|
+
# setup authorization
|
273
|
+
PulpOstreeClient.configure do |config|
|
274
|
+
# Configure HTTP basic authorization: basicAuth
|
275
|
+
config.username = 'YOUR USERNAME'
|
276
|
+
config.password = 'YOUR PASSWORD'
|
277
|
+
end
|
278
|
+
|
279
|
+
api_instance = PulpOstreeClient::ContentConfigsApi.new
|
280
|
+
ostree_ostree_config_href = 'ostree_ostree_config_href_example' # String |
|
281
|
+
unset_label = PulpOstreeClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
|
282
|
+
|
283
|
+
begin
|
284
|
+
# Unset a label
|
285
|
+
result = api_instance.unset_label(ostree_ostree_config_href, unset_label)
|
286
|
+
p result
|
287
|
+
rescue PulpOstreeClient::ApiError => e
|
288
|
+
puts "Error when calling ContentConfigsApi->unset_label: #{e}"
|
289
|
+
end
|
290
|
+
```
|
291
|
+
|
292
|
+
#### Using the unset_label_with_http_info variant
|
293
|
+
|
294
|
+
This returns an Array which contains the response data, status code and headers.
|
295
|
+
|
296
|
+
> <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(ostree_ostree_config_href, unset_label)
|
297
|
+
|
298
|
+
```ruby
|
299
|
+
begin
|
300
|
+
# Unset a label
|
301
|
+
data, status_code, headers = api_instance.unset_label_with_http_info(ostree_ostree_config_href, unset_label)
|
302
|
+
p status_code # => 2xx
|
303
|
+
p headers # => { ... }
|
304
|
+
p data # => <UnsetLabelResponse>
|
305
|
+
rescue PulpOstreeClient::ApiError => e
|
306
|
+
puts "Error when calling ContentConfigsApi->unset_label_with_http_info: #{e}"
|
307
|
+
end
|
308
|
+
```
|
309
|
+
|
310
|
+
### Parameters
|
311
|
+
|
312
|
+
| Name | Type | Description | Notes |
|
313
|
+
| ---- | ---- | ----------- | ----- |
|
314
|
+
| **ostree_ostree_config_href** | **String** | | |
|
315
|
+
| **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
|
316
|
+
|
317
|
+
### Return type
|
318
|
+
|
319
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
320
|
+
|
321
|
+
### Authorization
|
322
|
+
|
323
|
+
[basicAuth](../README.md#basicAuth)
|
324
|
+
|
325
|
+
### HTTP request headers
|
326
|
+
|
327
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
328
|
+
- **Accept**: application/json
|
329
|
+
|