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