pulp_ostree_client 2.4.5 → 2.4.6
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 +16 -12
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContentCommitsApi.md +80 -47
- data/docs/ContentConfigsApi.md +79 -46
- data/docs/ContentContentApi.md +107 -57
- data/docs/ContentObjectsApi.md +80 -47
- data/docs/ContentRefsApi.md +90 -57
- data/docs/ContentSummariesApi.md +79 -46
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/DistributionsOstreeApi.md +385 -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 +24 -23
- data/docs/OstreeOstreeConfigResponse.md +18 -17
- data/docs/OstreeOstreeContent.md +14 -13
- data/docs/OstreeOstreeContentResponse.md +20 -19
- data/docs/OstreeOstreeDistribution.md +20 -19
- data/docs/OstreeOstreeDistributionResponse.md +32 -31
- data/docs/OstreeOstreeObjectResponse.md +22 -21
- data/docs/OstreeOstreeRefResponse.md +24 -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 +18 -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 +11 -9
- data/lib/pulp_ostree_client/api/content_configs_api.rb +11 -9
- data/lib/pulp_ostree_client/api/content_content_api.rb +20 -14
- data/lib/pulp_ostree_client/api/content_objects_api.rb +11 -9
- data/lib/pulp_ostree_client/api/content_refs_api.rb +11 -9
- data/lib/pulp_ostree_client/api/content_summaries_api.rb +11 -9
- data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +89 -56
- 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 +40 -24
- data/lib/pulp_ostree_client/models/ostree_ostree_config_response.rb +36 -24
- data/lib/pulp_ostree_client/models/ostree_ostree_content.rb +36 -22
- data/lib/pulp_ostree_client/models/ostree_ostree_content_response.rb +38 -24
- 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 +40 -24
- data/lib/pulp_ostree_client/models/ostree_ostree_ref_response.rb +40 -24
- 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 +36 -24
- 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 +32 -22
- data/lib/pulp_ostree_client/models/unset_label_response.rb +32 -22
- 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 +3 -3
- data/spec/api/content_configs_api_spec.rb +3 -3
- data/spec/api/content_content_api_spec.rb +4 -4
- data/spec/api/content_objects_api_spec.rb +3 -3
- data/spec/api/content_refs_api_spec.rb +3 -3
- data/spec/api/content_summaries_api_spec.rb +3 -3
- data/spec/api/distributions_ostree_api_spec.rb +13 -13
- 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 +15 -20
- data/spec/models/ostree_ostree_config_response_spec.rb +12 -17
- data/spec/models/ostree_ostree_content_response_spec.rb +13 -18
- data/spec/models/ostree_ostree_content_spec.rb +10 -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 +14 -19
- data/spec/models/ostree_ostree_ref_response_spec.rb +15 -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 +12 -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 +84 -60
- data/docs/OstreeOstreeRemoteResponseHiddenFields.md +0 -19
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
@@ -2,39 +2,38 @@
|
|
2
2
|
|
3
3
|
All URIs are relative to *http://localhost:24817*
|
4
4
|
|
5
|
-
Method | HTTP request | Description
|
6
|
-
|
7
|
-
[**add_role**](RepositoriesOstreeApi.md#add_role) | **POST** {ostree_ostree_repository_href}add_role/ | Add a role
|
8
|
-
[**create**](RepositoriesOstreeApi.md#create) | **POST** /pulp/api/v3/repositories/ostree/ostree/ | Create an ostree repository
|
9
|
-
[**delete**](RepositoriesOstreeApi.md#delete) | **DELETE** {ostree_ostree_repository_href} | Delete an ostree repository
|
10
|
-
[**import_all**](RepositoriesOstreeApi.md#import_all) | **POST** {ostree_ostree_repository_href}import_all/ | Import refs and commits to a repository
|
11
|
-
[**import_commits**](RepositoriesOstreeApi.md#import_commits) | **POST** {ostree_ostree_repository_href}import_commits/ | Append child commits to a repository
|
12
|
-
[**list**](RepositoriesOstreeApi.md#list) | **GET** /pulp/api/v3/repositories/ostree/ostree/ | List ostree repositorys
|
13
|
-
[**list_roles**](RepositoriesOstreeApi.md#list_roles) | **GET** {ostree_ostree_repository_href}list_roles/ | List roles
|
14
|
-
[**modify**](RepositoriesOstreeApi.md#modify) | **POST** {ostree_ostree_repository_href}modify/ | Modify repository
|
15
|
-
[**my_permissions**](RepositoriesOstreeApi.md#my_permissions) | **GET** {ostree_ostree_repository_href}my_permissions/ | List user permissions
|
16
|
-
[**partial_update**](RepositoriesOstreeApi.md#partial_update) | **PATCH** {ostree_ostree_repository_href} | Update an ostree repository
|
17
|
-
[**read**](RepositoriesOstreeApi.md#read) | **GET** {ostree_ostree_repository_href} | Inspect an ostree repository
|
18
|
-
[**remove_role**](RepositoriesOstreeApi.md#remove_role) | **POST** {ostree_ostree_repository_href}remove_role/ | Remove a role
|
19
|
-
[**set_label**](RepositoriesOstreeApi.md#set_label) | **POST** {ostree_ostree_repository_href}set_label/ | Set a label
|
20
|
-
[**sync**](RepositoriesOstreeApi.md#sync) | **POST** {ostree_ostree_repository_href}sync/ | Sync from remote
|
21
|
-
[**unset_label**](RepositoriesOstreeApi.md#unset_label) | **POST** {ostree_ostree_repository_href}unset_label/ | Unset a label
|
22
|
-
[**update**](RepositoriesOstreeApi.md#update) | **PUT** {ostree_ostree_repository_href} | Update an ostree repository
|
23
|
-
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**add_role**](RepositoriesOstreeApi.md#add_role) | **POST** {ostree_ostree_repository_href}add_role/ | Add a role |
|
8
|
+
| [**create**](RepositoriesOstreeApi.md#create) | **POST** /pulp/api/v3/repositories/ostree/ostree/ | Create an ostree repository |
|
9
|
+
| [**delete**](RepositoriesOstreeApi.md#delete) | **DELETE** {ostree_ostree_repository_href} | Delete an ostree repository |
|
10
|
+
| [**import_all**](RepositoriesOstreeApi.md#import_all) | **POST** {ostree_ostree_repository_href}import_all/ | Import refs and commits to a repository |
|
11
|
+
| [**import_commits**](RepositoriesOstreeApi.md#import_commits) | **POST** {ostree_ostree_repository_href}import_commits/ | Append child commits to a repository |
|
12
|
+
| [**list**](RepositoriesOstreeApi.md#list) | **GET** /pulp/api/v3/repositories/ostree/ostree/ | List ostree repositorys |
|
13
|
+
| [**list_roles**](RepositoriesOstreeApi.md#list_roles) | **GET** {ostree_ostree_repository_href}list_roles/ | List roles |
|
14
|
+
| [**modify**](RepositoriesOstreeApi.md#modify) | **POST** {ostree_ostree_repository_href}modify/ | Modify repository |
|
15
|
+
| [**my_permissions**](RepositoriesOstreeApi.md#my_permissions) | **GET** {ostree_ostree_repository_href}my_permissions/ | List user permissions |
|
16
|
+
| [**partial_update**](RepositoriesOstreeApi.md#partial_update) | **PATCH** {ostree_ostree_repository_href} | Update an ostree repository |
|
17
|
+
| [**read**](RepositoriesOstreeApi.md#read) | **GET** {ostree_ostree_repository_href} | Inspect an ostree repository |
|
18
|
+
| [**remove_role**](RepositoriesOstreeApi.md#remove_role) | **POST** {ostree_ostree_repository_href}remove_role/ | Remove a role |
|
19
|
+
| [**set_label**](RepositoriesOstreeApi.md#set_label) | **POST** {ostree_ostree_repository_href}set_label/ | Set a label |
|
20
|
+
| [**sync**](RepositoriesOstreeApi.md#sync) | **POST** {ostree_ostree_repository_href}sync/ | Sync from remote |
|
21
|
+
| [**unset_label**](RepositoriesOstreeApi.md#unset_label) | **POST** {ostree_ostree_repository_href}unset_label/ | Unset a label |
|
22
|
+
| [**update**](RepositoriesOstreeApi.md#update) | **PUT** {ostree_ostree_repository_href} | Update an ostree repository |
|
24
23
|
|
25
24
|
|
26
25
|
## add_role
|
27
26
|
|
28
|
-
> NestedRoleResponse add_role(ostree_ostree_repository_href, nested_role)
|
27
|
+
> <NestedRoleResponse> add_role(ostree_ostree_repository_href, nested_role)
|
29
28
|
|
30
29
|
Add a role
|
31
30
|
|
32
31
|
Add a role for this object to users/groups.
|
33
32
|
|
34
|
-
###
|
33
|
+
### Examples
|
35
34
|
|
36
35
|
```ruby
|
37
|
-
|
36
|
+
require 'time'
|
38
37
|
require 'pulp_ostree_client'
|
39
38
|
# setup authorization
|
40
39
|
PulpOstreeClient.configure do |config|
|
@@ -45,24 +44,41 @@ end
|
|
45
44
|
|
46
45
|
api_instance = PulpOstreeClient::RepositoriesOstreeApi.new
|
47
46
|
ostree_ostree_repository_href = 'ostree_ostree_repository_href_example' # String |
|
48
|
-
nested_role = PulpOstreeClient::NestedRole.new # NestedRole |
|
47
|
+
nested_role = PulpOstreeClient::NestedRole.new({role: 'role_example'}) # NestedRole |
|
49
48
|
|
50
49
|
begin
|
51
|
-
#Add a role
|
50
|
+
# Add a role
|
52
51
|
result = api_instance.add_role(ostree_ostree_repository_href, nested_role)
|
53
52
|
p result
|
54
53
|
rescue PulpOstreeClient::ApiError => e
|
55
|
-
puts "
|
54
|
+
puts "Error when calling RepositoriesOstreeApi->add_role: #{e}"
|
56
55
|
end
|
57
56
|
```
|
58
57
|
|
59
|
-
|
58
|
+
#### Using the add_role_with_http_info variant
|
59
|
+
|
60
|
+
This returns an Array which contains the response data, status code and headers.
|
60
61
|
|
62
|
+
> <Array(<NestedRoleResponse>, Integer, Hash)> add_role_with_http_info(ostree_ostree_repository_href, nested_role)
|
63
|
+
|
64
|
+
```ruby
|
65
|
+
begin
|
66
|
+
# Add a role
|
67
|
+
data, status_code, headers = api_instance.add_role_with_http_info(ostree_ostree_repository_href, nested_role)
|
68
|
+
p status_code # => 2xx
|
69
|
+
p headers # => { ... }
|
70
|
+
p data # => <NestedRoleResponse>
|
71
|
+
rescue PulpOstreeClient::ApiError => e
|
72
|
+
puts "Error when calling RepositoriesOstreeApi->add_role_with_http_info: #{e}"
|
73
|
+
end
|
74
|
+
```
|
75
|
+
|
76
|
+
### Parameters
|
61
77
|
|
62
|
-
Name | Type | Description
|
63
|
-
|
64
|
-
**ostree_ostree_repository_href** | **String
|
65
|
-
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
78
|
+
| Name | Type | Description | Notes |
|
79
|
+
| ---- | ---- | ----------- | ----- |
|
80
|
+
| **ostree_ostree_repository_href** | **String** | | |
|
81
|
+
| **nested_role** | [**NestedRole**](NestedRole.md) | | |
|
66
82
|
|
67
83
|
### Return type
|
68
84
|
|
@@ -80,16 +96,16 @@ Name | Type | Description | Notes
|
|
80
96
|
|
81
97
|
## create
|
82
98
|
|
83
|
-
> OstreeOstreeRepositoryResponse create(ostree_ostree_repository)
|
99
|
+
> <OstreeOstreeRepositoryResponse> create(ostree_ostree_repository)
|
84
100
|
|
85
101
|
Create an ostree repository
|
86
102
|
|
87
103
|
A ViewSet class for OSTree repositories.
|
88
104
|
|
89
|
-
###
|
105
|
+
### Examples
|
90
106
|
|
91
107
|
```ruby
|
92
|
-
|
108
|
+
require 'time'
|
93
109
|
require 'pulp_ostree_client'
|
94
110
|
# setup authorization
|
95
111
|
PulpOstreeClient.configure do |config|
|
@@ -99,23 +115,40 @@ PulpOstreeClient.configure do |config|
|
|
99
115
|
end
|
100
116
|
|
101
117
|
api_instance = PulpOstreeClient::RepositoriesOstreeApi.new
|
102
|
-
ostree_ostree_repository = PulpOstreeClient::OstreeOstreeRepository.new # OstreeOstreeRepository |
|
118
|
+
ostree_ostree_repository = PulpOstreeClient::OstreeOstreeRepository.new({name: 'name_example'}) # OstreeOstreeRepository |
|
103
119
|
|
104
120
|
begin
|
105
|
-
#Create an ostree repository
|
121
|
+
# Create an ostree repository
|
106
122
|
result = api_instance.create(ostree_ostree_repository)
|
107
123
|
p result
|
108
124
|
rescue PulpOstreeClient::ApiError => e
|
109
|
-
puts "
|
125
|
+
puts "Error when calling RepositoriesOstreeApi->create: #{e}"
|
110
126
|
end
|
111
127
|
```
|
112
128
|
|
113
|
-
|
129
|
+
#### Using the create_with_http_info variant
|
130
|
+
|
131
|
+
This returns an Array which contains the response data, status code and headers.
|
132
|
+
|
133
|
+
> <Array(<OstreeOstreeRepositoryResponse>, Integer, Hash)> create_with_http_info(ostree_ostree_repository)
|
134
|
+
|
135
|
+
```ruby
|
136
|
+
begin
|
137
|
+
# Create an ostree repository
|
138
|
+
data, status_code, headers = api_instance.create_with_http_info(ostree_ostree_repository)
|
139
|
+
p status_code # => 2xx
|
140
|
+
p headers # => { ... }
|
141
|
+
p data # => <OstreeOstreeRepositoryResponse>
|
142
|
+
rescue PulpOstreeClient::ApiError => e
|
143
|
+
puts "Error when calling RepositoriesOstreeApi->create_with_http_info: #{e}"
|
144
|
+
end
|
145
|
+
```
|
114
146
|
|
147
|
+
### Parameters
|
115
148
|
|
116
|
-
Name | Type | Description
|
117
|
-
|
118
|
-
**ostree_ostree_repository** | [**OstreeOstreeRepository**](OstreeOstreeRepository.md)| |
|
149
|
+
| Name | Type | Description | Notes |
|
150
|
+
| ---- | ---- | ----------- | ----- |
|
151
|
+
| **ostree_ostree_repository** | [**OstreeOstreeRepository**](OstreeOstreeRepository.md) | | |
|
119
152
|
|
120
153
|
### Return type
|
121
154
|
|
@@ -133,16 +166,16 @@ Name | Type | Description | Notes
|
|
133
166
|
|
134
167
|
## delete
|
135
168
|
|
136
|
-
> AsyncOperationResponse delete(ostree_ostree_repository_href)
|
169
|
+
> <AsyncOperationResponse> delete(ostree_ostree_repository_href)
|
137
170
|
|
138
171
|
Delete an ostree repository
|
139
172
|
|
140
173
|
Trigger an asynchronous delete task
|
141
174
|
|
142
|
-
###
|
175
|
+
### Examples
|
143
176
|
|
144
177
|
```ruby
|
145
|
-
|
178
|
+
require 'time'
|
146
179
|
require 'pulp_ostree_client'
|
147
180
|
# setup authorization
|
148
181
|
PulpOstreeClient.configure do |config|
|
@@ -155,20 +188,37 @@ api_instance = PulpOstreeClient::RepositoriesOstreeApi.new
|
|
155
188
|
ostree_ostree_repository_href = 'ostree_ostree_repository_href_example' # String |
|
156
189
|
|
157
190
|
begin
|
158
|
-
#Delete an ostree repository
|
191
|
+
# Delete an ostree repository
|
159
192
|
result = api_instance.delete(ostree_ostree_repository_href)
|
160
193
|
p result
|
161
194
|
rescue PulpOstreeClient::ApiError => e
|
162
|
-
puts "
|
195
|
+
puts "Error when calling RepositoriesOstreeApi->delete: #{e}"
|
163
196
|
end
|
164
197
|
```
|
165
198
|
|
166
|
-
|
199
|
+
#### Using the delete_with_http_info variant
|
200
|
+
|
201
|
+
This returns an Array which contains the response data, status code and headers.
|
202
|
+
|
203
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> delete_with_http_info(ostree_ostree_repository_href)
|
204
|
+
|
205
|
+
```ruby
|
206
|
+
begin
|
207
|
+
# Delete an ostree repository
|
208
|
+
data, status_code, headers = api_instance.delete_with_http_info(ostree_ostree_repository_href)
|
209
|
+
p status_code # => 2xx
|
210
|
+
p headers # => { ... }
|
211
|
+
p data # => <AsyncOperationResponse>
|
212
|
+
rescue PulpOstreeClient::ApiError => e
|
213
|
+
puts "Error when calling RepositoriesOstreeApi->delete_with_http_info: #{e}"
|
214
|
+
end
|
215
|
+
```
|
167
216
|
|
217
|
+
### Parameters
|
168
218
|
|
169
|
-
Name | Type | Description
|
170
|
-
|
171
|
-
**ostree_ostree_repository_href** | **String
|
219
|
+
| Name | Type | Description | Notes |
|
220
|
+
| ---- | ---- | ----------- | ----- |
|
221
|
+
| **ostree_ostree_repository_href** | **String** | | |
|
172
222
|
|
173
223
|
### Return type
|
174
224
|
|
@@ -186,16 +236,16 @@ Name | Type | Description | Notes
|
|
186
236
|
|
187
237
|
## import_all
|
188
238
|
|
189
|
-
> AsyncOperationResponse import_all(ostree_ostree_repository_href, ostree_import_all)
|
239
|
+
> <AsyncOperationResponse> import_all(ostree_ostree_repository_href, ostree_import_all)
|
190
240
|
|
191
241
|
Import refs and commits to a repository
|
192
242
|
|
193
243
|
Trigger an asynchronous task to import all refs and commits to a repository.
|
194
244
|
|
195
|
-
###
|
245
|
+
### Examples
|
196
246
|
|
197
247
|
```ruby
|
198
|
-
|
248
|
+
require 'time'
|
199
249
|
require 'pulp_ostree_client'
|
200
250
|
# setup authorization
|
201
251
|
PulpOstreeClient.configure do |config|
|
@@ -206,24 +256,41 @@ end
|
|
206
256
|
|
207
257
|
api_instance = PulpOstreeClient::RepositoriesOstreeApi.new
|
208
258
|
ostree_ostree_repository_href = 'ostree_ostree_repository_href_example' # String |
|
209
|
-
ostree_import_all = PulpOstreeClient::OstreeImportAll.new # OstreeImportAll |
|
259
|
+
ostree_import_all = PulpOstreeClient::OstreeImportAll.new({artifact: 'artifact_example', repository_name: 'repository_name_example'}) # OstreeImportAll |
|
210
260
|
|
211
261
|
begin
|
212
|
-
#Import refs and commits to a repository
|
262
|
+
# Import refs and commits to a repository
|
213
263
|
result = api_instance.import_all(ostree_ostree_repository_href, ostree_import_all)
|
214
264
|
p result
|
215
265
|
rescue PulpOstreeClient::ApiError => e
|
216
|
-
puts "
|
266
|
+
puts "Error when calling RepositoriesOstreeApi->import_all: #{e}"
|
217
267
|
end
|
218
268
|
```
|
219
269
|
|
220
|
-
|
270
|
+
#### Using the import_all_with_http_info variant
|
271
|
+
|
272
|
+
This returns an Array which contains the response data, status code and headers.
|
273
|
+
|
274
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> import_all_with_http_info(ostree_ostree_repository_href, ostree_import_all)
|
275
|
+
|
276
|
+
```ruby
|
277
|
+
begin
|
278
|
+
# Import refs and commits to a repository
|
279
|
+
data, status_code, headers = api_instance.import_all_with_http_info(ostree_ostree_repository_href, ostree_import_all)
|
280
|
+
p status_code # => 2xx
|
281
|
+
p headers # => { ... }
|
282
|
+
p data # => <AsyncOperationResponse>
|
283
|
+
rescue PulpOstreeClient::ApiError => e
|
284
|
+
puts "Error when calling RepositoriesOstreeApi->import_all_with_http_info: #{e}"
|
285
|
+
end
|
286
|
+
```
|
221
287
|
|
288
|
+
### Parameters
|
222
289
|
|
223
|
-
Name | Type | Description
|
224
|
-
|
225
|
-
**ostree_ostree_repository_href** | **String
|
226
|
-
**ostree_import_all** | [**OstreeImportAll**](OstreeImportAll.md)| |
|
290
|
+
| Name | Type | Description | Notes |
|
291
|
+
| ---- | ---- | ----------- | ----- |
|
292
|
+
| **ostree_ostree_repository_href** | **String** | | |
|
293
|
+
| **ostree_import_all** | [**OstreeImportAll**](OstreeImportAll.md) | | |
|
227
294
|
|
228
295
|
### Return type
|
229
296
|
|
@@ -241,16 +308,16 @@ Name | Type | Description | Notes
|
|
241
308
|
|
242
309
|
## import_commits
|
243
310
|
|
244
|
-
> AsyncOperationResponse import_commits(ostree_ostree_repository_href, ostree_import_commits_to_ref)
|
311
|
+
> <AsyncOperationResponse> import_commits(ostree_ostree_repository_href, ostree_import_commits_to_ref)
|
245
312
|
|
246
313
|
Append child commits to a repository
|
247
314
|
|
248
315
|
Trigger an asynchronous task to append child commits to a repository.
|
249
316
|
|
250
|
-
###
|
317
|
+
### Examples
|
251
318
|
|
252
319
|
```ruby
|
253
|
-
|
320
|
+
require 'time'
|
254
321
|
require 'pulp_ostree_client'
|
255
322
|
# setup authorization
|
256
323
|
PulpOstreeClient.configure do |config|
|
@@ -261,24 +328,41 @@ end
|
|
261
328
|
|
262
329
|
api_instance = PulpOstreeClient::RepositoriesOstreeApi.new
|
263
330
|
ostree_ostree_repository_href = 'ostree_ostree_repository_href_example' # String |
|
264
|
-
ostree_import_commits_to_ref = PulpOstreeClient::OstreeImportCommitsToRef.new # OstreeImportCommitsToRef |
|
331
|
+
ostree_import_commits_to_ref = PulpOstreeClient::OstreeImportCommitsToRef.new({artifact: 'artifact_example', repository_name: 'repository_name_example', ref: 'ref_example'}) # OstreeImportCommitsToRef |
|
265
332
|
|
266
333
|
begin
|
267
|
-
#Append child commits to a repository
|
334
|
+
# Append child commits to a repository
|
268
335
|
result = api_instance.import_commits(ostree_ostree_repository_href, ostree_import_commits_to_ref)
|
269
336
|
p result
|
270
337
|
rescue PulpOstreeClient::ApiError => e
|
271
|
-
puts "
|
338
|
+
puts "Error when calling RepositoriesOstreeApi->import_commits: #{e}"
|
272
339
|
end
|
273
340
|
```
|
274
341
|
|
275
|
-
|
342
|
+
#### Using the import_commits_with_http_info variant
|
343
|
+
|
344
|
+
This returns an Array which contains the response data, status code and headers.
|
345
|
+
|
346
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> import_commits_with_http_info(ostree_ostree_repository_href, ostree_import_commits_to_ref)
|
347
|
+
|
348
|
+
```ruby
|
349
|
+
begin
|
350
|
+
# Append child commits to a repository
|
351
|
+
data, status_code, headers = api_instance.import_commits_with_http_info(ostree_ostree_repository_href, ostree_import_commits_to_ref)
|
352
|
+
p status_code # => 2xx
|
353
|
+
p headers # => { ... }
|
354
|
+
p data # => <AsyncOperationResponse>
|
355
|
+
rescue PulpOstreeClient::ApiError => e
|
356
|
+
puts "Error when calling RepositoriesOstreeApi->import_commits_with_http_info: #{e}"
|
357
|
+
end
|
358
|
+
```
|
276
359
|
|
360
|
+
### Parameters
|
277
361
|
|
278
|
-
Name | Type | Description
|
279
|
-
|
280
|
-
**ostree_ostree_repository_href** | **String
|
281
|
-
**ostree_import_commits_to_ref** | [**OstreeImportCommitsToRef**](OstreeImportCommitsToRef.md)| |
|
362
|
+
| Name | Type | Description | Notes |
|
363
|
+
| ---- | ---- | ----------- | ----- |
|
364
|
+
| **ostree_ostree_repository_href** | **String** | | |
|
365
|
+
| **ostree_import_commits_to_ref** | [**OstreeImportCommitsToRef**](OstreeImportCommitsToRef.md) | | |
|
282
366
|
|
283
367
|
### Return type
|
284
368
|
|
@@ -296,16 +380,16 @@ Name | Type | Description | Notes
|
|
296
380
|
|
297
381
|
## list
|
298
382
|
|
299
|
-
> PaginatedostreeOstreeRepositoryResponseList list(opts)
|
383
|
+
> <PaginatedostreeOstreeRepositoryResponseList> list(opts)
|
300
384
|
|
301
385
|
List ostree repositorys
|
302
386
|
|
303
387
|
A ViewSet class for OSTree repositories.
|
304
388
|
|
305
|
-
###
|
389
|
+
### Examples
|
306
390
|
|
307
391
|
```ruby
|
308
|
-
|
392
|
+
require 'time'
|
309
393
|
require 'pulp_ostree_client'
|
310
394
|
# setup authorization
|
311
395
|
PulpOstreeClient.configure do |config|
|
@@ -322,19 +406,19 @@ opts = {
|
|
322
406
|
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
323
407
|
name__icontains: 'name__icontains_example', # String | Filter results where name contains value
|
324
408
|
name__iexact: 'name__iexact_example', # String | Filter results where name matches value
|
325
|
-
name__in: ['
|
409
|
+
name__in: ['inner_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
326
410
|
name__iregex: 'name__iregex_example', # String | Filter results where name matches regex value
|
327
411
|
name__istartswith: 'name__istartswith_example', # String | Filter results where name starts with value
|
328
412
|
name__regex: 'name__regex_example', # String | Filter results where name matches regex value
|
329
413
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
330
414
|
offset: 56, # Integer | The initial index from which to return the results.
|
331
|
-
ordering: ['
|
332
|
-
prn__in: ['
|
333
|
-
pulp_href__in: ['
|
334
|
-
pulp_id__in: ['
|
415
|
+
ordering: ['-description'], # 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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
416
|
+
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
417
|
+
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
418
|
+
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
335
419
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
336
420
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
337
|
-
remote: '
|
421
|
+
remote: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | Foreign Key referenced by HREF
|
338
422
|
retain_repo_versions: 56, # Integer | Filter results where retain_repo_versions matches value
|
339
423
|
retain_repo_versions__gt: 56, # Integer | Filter results where retain_repo_versions is greater than value
|
340
424
|
retain_repo_versions__gte: 56, # Integer | Filter results where retain_repo_versions is greater than or equal to value
|
@@ -342,56 +426,73 @@ opts = {
|
|
342
426
|
retain_repo_versions__lt: 56, # Integer | Filter results where retain_repo_versions is less than value
|
343
427
|
retain_repo_versions__lte: 56, # Integer | Filter results where retain_repo_versions is less than or equal to value
|
344
428
|
retain_repo_versions__ne: 56, # Integer | Filter results where retain_repo_versions not equal to value
|
345
|
-
retain_repo_versions__range: [
|
429
|
+
retain_repo_versions__range: [37], # Array<Integer> | Filter results where retain_repo_versions is between two comma separated values
|
346
430
|
with_content: 'with_content_example', # String | Content Unit referenced by HREF/PRN
|
347
|
-
fields: ['
|
348
|
-
exclude_fields: ['
|
431
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
432
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
349
433
|
}
|
350
434
|
|
351
435
|
begin
|
352
|
-
#List ostree repositorys
|
436
|
+
# List ostree repositorys
|
353
437
|
result = api_instance.list(opts)
|
354
438
|
p result
|
355
439
|
rescue PulpOstreeClient::ApiError => e
|
356
|
-
puts "
|
440
|
+
puts "Error when calling RepositoriesOstreeApi->list: #{e}"
|
357
441
|
end
|
358
442
|
```
|
359
443
|
|
360
|
-
|
444
|
+
#### Using the list_with_http_info variant
|
445
|
+
|
446
|
+
This returns an Array which contains the response data, status code and headers.
|
447
|
+
|
448
|
+
> <Array(<PaginatedostreeOstreeRepositoryResponseList>, Integer, Hash)> list_with_http_info(opts)
|
449
|
+
|
450
|
+
```ruby
|
451
|
+
begin
|
452
|
+
# List ostree repositorys
|
453
|
+
data, status_code, headers = api_instance.list_with_http_info(opts)
|
454
|
+
p status_code # => 2xx
|
455
|
+
p headers # => { ... }
|
456
|
+
p data # => <PaginatedostreeOstreeRepositoryResponseList>
|
457
|
+
rescue PulpOstreeClient::ApiError => e
|
458
|
+
puts "Error when calling RepositoriesOstreeApi->list_with_http_info: #{e}"
|
459
|
+
end
|
460
|
+
```
|
361
461
|
|
462
|
+
### Parameters
|
362
463
|
|
363
|
-
Name | Type | Description
|
364
|
-
|
365
|
-
**latest_with_content** | **String
|
366
|
-
**limit** | **Integer
|
367
|
-
**name** | **String
|
368
|
-
**name__contains** | **String
|
369
|
-
**name__icontains** | **String
|
370
|
-
**name__iexact** | **String
|
371
|
-
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
372
|
-
**name__iregex** | **String
|
373
|
-
**name__istartswith** | **String
|
374
|
-
**name__regex** | **String
|
375
|
-
**name__startswith** | **String
|
376
|
-
**offset** | **Integer
|
377
|
-
**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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
378
|
-
**prn__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
379
|
-
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
380
|
-
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
381
|
-
**pulp_label_select** | **String
|
382
|
-
**q** | **String
|
383
|
-
**remote** |
|
384
|
-
**retain_repo_versions** | **Integer
|
385
|
-
**retain_repo_versions__gt** | **Integer
|
386
|
-
**retain_repo_versions__gte** | **Integer
|
387
|
-
**retain_repo_versions__isnull** | **Boolean
|
388
|
-
**retain_repo_versions__lt** | **Integer
|
389
|
-
**retain_repo_versions__lte** | **Integer
|
390
|
-
**retain_repo_versions__ne** | **Integer
|
391
|
-
**retain_repo_versions__range** | [**Array<Integer>**](Integer.md)| Filter results where retain_repo_versions is between two comma separated values | [optional]
|
392
|
-
**with_content** | **String
|
393
|
-
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
394
|
-
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
464
|
+
| Name | Type | Description | Notes |
|
465
|
+
| ---- | ---- | ----------- | ----- |
|
466
|
+
| **latest_with_content** | **String** | Content Unit referenced by HREF/PRN | [optional] |
|
467
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
468
|
+
| **name** | **String** | Filter results where name matches value | [optional] |
|
469
|
+
| **name__contains** | **String** | Filter results where name contains value | [optional] |
|
470
|
+
| **name__icontains** | **String** | Filter results where name contains value | [optional] |
|
471
|
+
| **name__iexact** | **String** | Filter results where name matches value | [optional] |
|
472
|
+
| **name__in** | [**Array<String>**](String.md) | Filter results where name is in a comma-separated list of values | [optional] |
|
473
|
+
| **name__iregex** | **String** | Filter results where name matches regex value | [optional] |
|
474
|
+
| **name__istartswith** | **String** | Filter results where name starts with value | [optional] |
|
475
|
+
| **name__regex** | **String** | Filter results where name matches regex value | [optional] |
|
476
|
+
| **name__startswith** | **String** | Filter results where name starts with value | [optional] |
|
477
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
478
|
+
| **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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
479
|
+
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
480
|
+
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
481
|
+
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
482
|
+
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
483
|
+
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
484
|
+
| **remote** | **String** | Foreign Key referenced by HREF | [optional] |
|
485
|
+
| **retain_repo_versions** | **Integer** | Filter results where retain_repo_versions matches value | [optional] |
|
486
|
+
| **retain_repo_versions__gt** | **Integer** | Filter results where retain_repo_versions is greater than value | [optional] |
|
487
|
+
| **retain_repo_versions__gte** | **Integer** | Filter results where retain_repo_versions is greater than or equal to value | [optional] |
|
488
|
+
| **retain_repo_versions__isnull** | **Boolean** | Filter results where retain_repo_versions has a null value | [optional] |
|
489
|
+
| **retain_repo_versions__lt** | **Integer** | Filter results where retain_repo_versions is less than value | [optional] |
|
490
|
+
| **retain_repo_versions__lte** | **Integer** | Filter results where retain_repo_versions is less than or equal to value | [optional] |
|
491
|
+
| **retain_repo_versions__ne** | **Integer** | Filter results where retain_repo_versions not equal to value | [optional] |
|
492
|
+
| **retain_repo_versions__range** | [**Array<Integer>**](Integer.md) | Filter results where retain_repo_versions is between two comma separated values | [optional] |
|
493
|
+
| **with_content** | **String** | Content Unit referenced by HREF/PRN | [optional] |
|
494
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
495
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
395
496
|
|
396
497
|
### Return type
|
397
498
|
|
@@ -409,16 +510,16 @@ Name | Type | Description | Notes
|
|
409
510
|
|
410
511
|
## list_roles
|
411
512
|
|
412
|
-
> ObjectRolesResponse list_roles(ostree_ostree_repository_href, opts)
|
513
|
+
> <ObjectRolesResponse> list_roles(ostree_ostree_repository_href, opts)
|
413
514
|
|
414
515
|
List roles
|
415
516
|
|
416
517
|
List roles assigned to this object.
|
417
518
|
|
418
|
-
###
|
519
|
+
### Examples
|
419
520
|
|
420
521
|
```ruby
|
421
|
-
|
522
|
+
require 'time'
|
422
523
|
require 'pulp_ostree_client'
|
423
524
|
# setup authorization
|
424
525
|
PulpOstreeClient.configure do |config|
|
@@ -430,27 +531,44 @@ end
|
|
430
531
|
api_instance = PulpOstreeClient::RepositoriesOstreeApi.new
|
431
532
|
ostree_ostree_repository_href = 'ostree_ostree_repository_href_example' # String |
|
432
533
|
opts = {
|
433
|
-
fields: ['
|
434
|
-
exclude_fields: ['
|
534
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
535
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
435
536
|
}
|
436
537
|
|
437
538
|
begin
|
438
|
-
#List roles
|
539
|
+
# List roles
|
439
540
|
result = api_instance.list_roles(ostree_ostree_repository_href, opts)
|
440
541
|
p result
|
441
542
|
rescue PulpOstreeClient::ApiError => e
|
442
|
-
puts "
|
543
|
+
puts "Error when calling RepositoriesOstreeApi->list_roles: #{e}"
|
443
544
|
end
|
444
545
|
```
|
445
546
|
|
446
|
-
|
547
|
+
#### Using the list_roles_with_http_info variant
|
548
|
+
|
549
|
+
This returns an Array which contains the response data, status code and headers.
|
550
|
+
|
551
|
+
> <Array(<ObjectRolesResponse>, Integer, Hash)> list_roles_with_http_info(ostree_ostree_repository_href, opts)
|
552
|
+
|
553
|
+
```ruby
|
554
|
+
begin
|
555
|
+
# List roles
|
556
|
+
data, status_code, headers = api_instance.list_roles_with_http_info(ostree_ostree_repository_href, opts)
|
557
|
+
p status_code # => 2xx
|
558
|
+
p headers # => { ... }
|
559
|
+
p data # => <ObjectRolesResponse>
|
560
|
+
rescue PulpOstreeClient::ApiError => e
|
561
|
+
puts "Error when calling RepositoriesOstreeApi->list_roles_with_http_info: #{e}"
|
562
|
+
end
|
563
|
+
```
|
447
564
|
|
565
|
+
### Parameters
|
448
566
|
|
449
|
-
Name | Type | Description
|
450
|
-
|
451
|
-
**ostree_ostree_repository_href** | **String
|
452
|
-
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
453
|
-
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
567
|
+
| Name | Type | Description | Notes |
|
568
|
+
| ---- | ---- | ----------- | ----- |
|
569
|
+
| **ostree_ostree_repository_href** | **String** | | |
|
570
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
571
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
454
572
|
|
455
573
|
### Return type
|
456
574
|
|
@@ -468,16 +586,16 @@ Name | Type | Description | Notes
|
|
468
586
|
|
469
587
|
## modify
|
470
588
|
|
471
|
-
> AsyncOperationResponse modify(ostree_ostree_repository_href, repository_add_remove_content)
|
589
|
+
> <AsyncOperationResponse> modify(ostree_ostree_repository_href, repository_add_remove_content)
|
472
590
|
|
473
591
|
Modify repository
|
474
592
|
|
475
593
|
Trigger an asynchronous task to modify content.
|
476
594
|
|
477
|
-
###
|
595
|
+
### Examples
|
478
596
|
|
479
597
|
```ruby
|
480
|
-
|
598
|
+
require 'time'
|
481
599
|
require 'pulp_ostree_client'
|
482
600
|
# setup authorization
|
483
601
|
PulpOstreeClient.configure do |config|
|
@@ -491,21 +609,38 @@ ostree_ostree_repository_href = 'ostree_ostree_repository_href_example' # String
|
|
491
609
|
repository_add_remove_content = PulpOstreeClient::RepositoryAddRemoveContent.new # RepositoryAddRemoveContent |
|
492
610
|
|
493
611
|
begin
|
494
|
-
#Modify repository
|
612
|
+
# Modify repository
|
495
613
|
result = api_instance.modify(ostree_ostree_repository_href, repository_add_remove_content)
|
496
614
|
p result
|
497
615
|
rescue PulpOstreeClient::ApiError => e
|
498
|
-
puts "
|
616
|
+
puts "Error when calling RepositoriesOstreeApi->modify: #{e}"
|
499
617
|
end
|
500
618
|
```
|
501
619
|
|
502
|
-
|
620
|
+
#### Using the modify_with_http_info variant
|
621
|
+
|
622
|
+
This returns an Array which contains the response data, status code and headers.
|
623
|
+
|
624
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> modify_with_http_info(ostree_ostree_repository_href, repository_add_remove_content)
|
625
|
+
|
626
|
+
```ruby
|
627
|
+
begin
|
628
|
+
# Modify repository
|
629
|
+
data, status_code, headers = api_instance.modify_with_http_info(ostree_ostree_repository_href, repository_add_remove_content)
|
630
|
+
p status_code # => 2xx
|
631
|
+
p headers # => { ... }
|
632
|
+
p data # => <AsyncOperationResponse>
|
633
|
+
rescue PulpOstreeClient::ApiError => e
|
634
|
+
puts "Error when calling RepositoriesOstreeApi->modify_with_http_info: #{e}"
|
635
|
+
end
|
636
|
+
```
|
503
637
|
|
638
|
+
### Parameters
|
504
639
|
|
505
|
-
Name | Type | Description
|
506
|
-
|
507
|
-
**ostree_ostree_repository_href** | **String
|
508
|
-
**repository_add_remove_content** | [**RepositoryAddRemoveContent**](RepositoryAddRemoveContent.md)| |
|
640
|
+
| Name | Type | Description | Notes |
|
641
|
+
| ---- | ---- | ----------- | ----- |
|
642
|
+
| **ostree_ostree_repository_href** | **String** | | |
|
643
|
+
| **repository_add_remove_content** | [**RepositoryAddRemoveContent**](RepositoryAddRemoveContent.md) | | |
|
509
644
|
|
510
645
|
### Return type
|
511
646
|
|
@@ -523,16 +658,16 @@ Name | Type | Description | Notes
|
|
523
658
|
|
524
659
|
## my_permissions
|
525
660
|
|
526
|
-
> MyPermissionsResponse my_permissions(ostree_ostree_repository_href, opts)
|
661
|
+
> <MyPermissionsResponse> my_permissions(ostree_ostree_repository_href, opts)
|
527
662
|
|
528
663
|
List user permissions
|
529
664
|
|
530
665
|
List permissions available to the current user on this object.
|
531
666
|
|
532
|
-
###
|
667
|
+
### Examples
|
533
668
|
|
534
669
|
```ruby
|
535
|
-
|
670
|
+
require 'time'
|
536
671
|
require 'pulp_ostree_client'
|
537
672
|
# setup authorization
|
538
673
|
PulpOstreeClient.configure do |config|
|
@@ -544,27 +679,44 @@ end
|
|
544
679
|
api_instance = PulpOstreeClient::RepositoriesOstreeApi.new
|
545
680
|
ostree_ostree_repository_href = 'ostree_ostree_repository_href_example' # String |
|
546
681
|
opts = {
|
547
|
-
fields: ['
|
548
|
-
exclude_fields: ['
|
682
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
683
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
549
684
|
}
|
550
685
|
|
551
686
|
begin
|
552
|
-
#List user permissions
|
687
|
+
# List user permissions
|
553
688
|
result = api_instance.my_permissions(ostree_ostree_repository_href, opts)
|
554
689
|
p result
|
555
690
|
rescue PulpOstreeClient::ApiError => e
|
556
|
-
puts "
|
691
|
+
puts "Error when calling RepositoriesOstreeApi->my_permissions: #{e}"
|
557
692
|
end
|
558
693
|
```
|
559
694
|
|
560
|
-
|
695
|
+
#### Using the my_permissions_with_http_info variant
|
696
|
+
|
697
|
+
This returns an Array which contains the response data, status code and headers.
|
698
|
+
|
699
|
+
> <Array(<MyPermissionsResponse>, Integer, Hash)> my_permissions_with_http_info(ostree_ostree_repository_href, opts)
|
700
|
+
|
701
|
+
```ruby
|
702
|
+
begin
|
703
|
+
# List user permissions
|
704
|
+
data, status_code, headers = api_instance.my_permissions_with_http_info(ostree_ostree_repository_href, opts)
|
705
|
+
p status_code # => 2xx
|
706
|
+
p headers # => { ... }
|
707
|
+
p data # => <MyPermissionsResponse>
|
708
|
+
rescue PulpOstreeClient::ApiError => e
|
709
|
+
puts "Error when calling RepositoriesOstreeApi->my_permissions_with_http_info: #{e}"
|
710
|
+
end
|
711
|
+
```
|
561
712
|
|
713
|
+
### Parameters
|
562
714
|
|
563
|
-
Name | Type | Description
|
564
|
-
|
565
|
-
**ostree_ostree_repository_href** | **String
|
566
|
-
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
567
|
-
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
715
|
+
| Name | Type | Description | Notes |
|
716
|
+
| ---- | ---- | ----------- | ----- |
|
717
|
+
| **ostree_ostree_repository_href** | **String** | | |
|
718
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
719
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
568
720
|
|
569
721
|
### Return type
|
570
722
|
|
@@ -582,16 +734,16 @@ Name | Type | Description | Notes
|
|
582
734
|
|
583
735
|
## partial_update
|
584
736
|
|
585
|
-
> AsyncOperationResponse partial_update(ostree_ostree_repository_href, patchedostree_ostree_repository)
|
737
|
+
> <AsyncOperationResponse> partial_update(ostree_ostree_repository_href, patchedostree_ostree_repository)
|
586
738
|
|
587
739
|
Update an ostree repository
|
588
740
|
|
589
741
|
Trigger an asynchronous partial update task
|
590
742
|
|
591
|
-
###
|
743
|
+
### Examples
|
592
744
|
|
593
745
|
```ruby
|
594
|
-
|
746
|
+
require 'time'
|
595
747
|
require 'pulp_ostree_client'
|
596
748
|
# setup authorization
|
597
749
|
PulpOstreeClient.configure do |config|
|
@@ -605,21 +757,38 @@ ostree_ostree_repository_href = 'ostree_ostree_repository_href_example' # String
|
|
605
757
|
patchedostree_ostree_repository = PulpOstreeClient::PatchedostreeOstreeRepository.new # PatchedostreeOstreeRepository |
|
606
758
|
|
607
759
|
begin
|
608
|
-
#Update an ostree repository
|
760
|
+
# Update an ostree repository
|
609
761
|
result = api_instance.partial_update(ostree_ostree_repository_href, patchedostree_ostree_repository)
|
610
762
|
p result
|
611
763
|
rescue PulpOstreeClient::ApiError => e
|
612
|
-
puts "
|
764
|
+
puts "Error when calling RepositoriesOstreeApi->partial_update: #{e}"
|
613
765
|
end
|
614
766
|
```
|
615
767
|
|
616
|
-
|
768
|
+
#### Using the partial_update_with_http_info variant
|
769
|
+
|
770
|
+
This returns an Array which contains the response data, status code and headers.
|
771
|
+
|
772
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> partial_update_with_http_info(ostree_ostree_repository_href, patchedostree_ostree_repository)
|
773
|
+
|
774
|
+
```ruby
|
775
|
+
begin
|
776
|
+
# Update an ostree repository
|
777
|
+
data, status_code, headers = api_instance.partial_update_with_http_info(ostree_ostree_repository_href, patchedostree_ostree_repository)
|
778
|
+
p status_code # => 2xx
|
779
|
+
p headers # => { ... }
|
780
|
+
p data # => <AsyncOperationResponse>
|
781
|
+
rescue PulpOstreeClient::ApiError => e
|
782
|
+
puts "Error when calling RepositoriesOstreeApi->partial_update_with_http_info: #{e}"
|
783
|
+
end
|
784
|
+
```
|
617
785
|
|
786
|
+
### Parameters
|
618
787
|
|
619
|
-
Name | Type | Description
|
620
|
-
|
621
|
-
**ostree_ostree_repository_href** | **String
|
622
|
-
**patchedostree_ostree_repository** | [**PatchedostreeOstreeRepository**](PatchedostreeOstreeRepository.md)| |
|
788
|
+
| Name | Type | Description | Notes |
|
789
|
+
| ---- | ---- | ----------- | ----- |
|
790
|
+
| **ostree_ostree_repository_href** | **String** | | |
|
791
|
+
| **patchedostree_ostree_repository** | [**PatchedostreeOstreeRepository**](PatchedostreeOstreeRepository.md) | | |
|
623
792
|
|
624
793
|
### Return type
|
625
794
|
|
@@ -637,16 +806,16 @@ Name | Type | Description | Notes
|
|
637
806
|
|
638
807
|
## read
|
639
808
|
|
640
|
-
> OstreeOstreeRepositoryResponse read(ostree_ostree_repository_href, opts)
|
809
|
+
> <OstreeOstreeRepositoryResponse> read(ostree_ostree_repository_href, opts)
|
641
810
|
|
642
811
|
Inspect an ostree repository
|
643
812
|
|
644
813
|
A ViewSet class for OSTree repositories.
|
645
814
|
|
646
|
-
###
|
815
|
+
### Examples
|
647
816
|
|
648
817
|
```ruby
|
649
|
-
|
818
|
+
require 'time'
|
650
819
|
require 'pulp_ostree_client'
|
651
820
|
# setup authorization
|
652
821
|
PulpOstreeClient.configure do |config|
|
@@ -658,27 +827,44 @@ end
|
|
658
827
|
api_instance = PulpOstreeClient::RepositoriesOstreeApi.new
|
659
828
|
ostree_ostree_repository_href = 'ostree_ostree_repository_href_example' # String |
|
660
829
|
opts = {
|
661
|
-
fields: ['
|
662
|
-
exclude_fields: ['
|
830
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
831
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
663
832
|
}
|
664
833
|
|
665
834
|
begin
|
666
|
-
#Inspect an ostree repository
|
835
|
+
# Inspect an ostree repository
|
667
836
|
result = api_instance.read(ostree_ostree_repository_href, opts)
|
668
837
|
p result
|
669
838
|
rescue PulpOstreeClient::ApiError => e
|
670
|
-
puts "
|
839
|
+
puts "Error when calling RepositoriesOstreeApi->read: #{e}"
|
671
840
|
end
|
672
841
|
```
|
673
842
|
|
674
|
-
|
843
|
+
#### Using the read_with_http_info variant
|
844
|
+
|
845
|
+
This returns an Array which contains the response data, status code and headers.
|
846
|
+
|
847
|
+
> <Array(<OstreeOstreeRepositoryResponse>, Integer, Hash)> read_with_http_info(ostree_ostree_repository_href, opts)
|
848
|
+
|
849
|
+
```ruby
|
850
|
+
begin
|
851
|
+
# Inspect an ostree repository
|
852
|
+
data, status_code, headers = api_instance.read_with_http_info(ostree_ostree_repository_href, opts)
|
853
|
+
p status_code # => 2xx
|
854
|
+
p headers # => { ... }
|
855
|
+
p data # => <OstreeOstreeRepositoryResponse>
|
856
|
+
rescue PulpOstreeClient::ApiError => e
|
857
|
+
puts "Error when calling RepositoriesOstreeApi->read_with_http_info: #{e}"
|
858
|
+
end
|
859
|
+
```
|
675
860
|
|
861
|
+
### Parameters
|
676
862
|
|
677
|
-
Name | Type | Description
|
678
|
-
|
679
|
-
**ostree_ostree_repository_href** | **String
|
680
|
-
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
681
|
-
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
863
|
+
| Name | Type | Description | Notes |
|
864
|
+
| ---- | ---- | ----------- | ----- |
|
865
|
+
| **ostree_ostree_repository_href** | **String** | | |
|
866
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
867
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
682
868
|
|
683
869
|
### Return type
|
684
870
|
|
@@ -696,16 +882,16 @@ Name | Type | Description | Notes
|
|
696
882
|
|
697
883
|
## remove_role
|
698
884
|
|
699
|
-
> NestedRoleResponse remove_role(ostree_ostree_repository_href, nested_role)
|
885
|
+
> <NestedRoleResponse> remove_role(ostree_ostree_repository_href, nested_role)
|
700
886
|
|
701
887
|
Remove a role
|
702
888
|
|
703
889
|
Remove a role for this object from users/groups.
|
704
890
|
|
705
|
-
###
|
891
|
+
### Examples
|
706
892
|
|
707
893
|
```ruby
|
708
|
-
|
894
|
+
require 'time'
|
709
895
|
require 'pulp_ostree_client'
|
710
896
|
# setup authorization
|
711
897
|
PulpOstreeClient.configure do |config|
|
@@ -716,24 +902,41 @@ end
|
|
716
902
|
|
717
903
|
api_instance = PulpOstreeClient::RepositoriesOstreeApi.new
|
718
904
|
ostree_ostree_repository_href = 'ostree_ostree_repository_href_example' # String |
|
719
|
-
nested_role = PulpOstreeClient::NestedRole.new # NestedRole |
|
905
|
+
nested_role = PulpOstreeClient::NestedRole.new({role: 'role_example'}) # NestedRole |
|
720
906
|
|
721
907
|
begin
|
722
|
-
#Remove a role
|
908
|
+
# Remove a role
|
723
909
|
result = api_instance.remove_role(ostree_ostree_repository_href, nested_role)
|
724
910
|
p result
|
725
911
|
rescue PulpOstreeClient::ApiError => e
|
726
|
-
puts "
|
912
|
+
puts "Error when calling RepositoriesOstreeApi->remove_role: #{e}"
|
727
913
|
end
|
728
914
|
```
|
729
915
|
|
730
|
-
|
916
|
+
#### Using the remove_role_with_http_info variant
|
917
|
+
|
918
|
+
This returns an Array which contains the response data, status code and headers.
|
919
|
+
|
920
|
+
> <Array(<NestedRoleResponse>, Integer, Hash)> remove_role_with_http_info(ostree_ostree_repository_href, nested_role)
|
921
|
+
|
922
|
+
```ruby
|
923
|
+
begin
|
924
|
+
# Remove a role
|
925
|
+
data, status_code, headers = api_instance.remove_role_with_http_info(ostree_ostree_repository_href, nested_role)
|
926
|
+
p status_code # => 2xx
|
927
|
+
p headers # => { ... }
|
928
|
+
p data # => <NestedRoleResponse>
|
929
|
+
rescue PulpOstreeClient::ApiError => e
|
930
|
+
puts "Error when calling RepositoriesOstreeApi->remove_role_with_http_info: #{e}"
|
931
|
+
end
|
932
|
+
```
|
731
933
|
|
934
|
+
### Parameters
|
732
935
|
|
733
|
-
Name | Type | Description
|
734
|
-
|
735
|
-
**ostree_ostree_repository_href** | **String
|
736
|
-
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
936
|
+
| Name | Type | Description | Notes |
|
937
|
+
| ---- | ---- | ----------- | ----- |
|
938
|
+
| **ostree_ostree_repository_href** | **String** | | |
|
939
|
+
| **nested_role** | [**NestedRole**](NestedRole.md) | | |
|
737
940
|
|
738
941
|
### Return type
|
739
942
|
|
@@ -751,16 +954,16 @@ Name | Type | Description | Notes
|
|
751
954
|
|
752
955
|
## set_label
|
753
956
|
|
754
|
-
> SetLabelResponse set_label(ostree_ostree_repository_href, set_label)
|
957
|
+
> <SetLabelResponse> set_label(ostree_ostree_repository_href, set_label)
|
755
958
|
|
756
959
|
Set a label
|
757
960
|
|
758
961
|
Set a single pulp_label on the object to a specific value or null.
|
759
962
|
|
760
|
-
###
|
963
|
+
### Examples
|
761
964
|
|
762
965
|
```ruby
|
763
|
-
|
966
|
+
require 'time'
|
764
967
|
require 'pulp_ostree_client'
|
765
968
|
# setup authorization
|
766
969
|
PulpOstreeClient.configure do |config|
|
@@ -771,24 +974,41 @@ end
|
|
771
974
|
|
772
975
|
api_instance = PulpOstreeClient::RepositoriesOstreeApi.new
|
773
976
|
ostree_ostree_repository_href = 'ostree_ostree_repository_href_example' # String |
|
774
|
-
set_label = PulpOstreeClient::SetLabel.new # SetLabel |
|
977
|
+
set_label = PulpOstreeClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
|
775
978
|
|
776
979
|
begin
|
777
|
-
#Set a label
|
980
|
+
# Set a label
|
778
981
|
result = api_instance.set_label(ostree_ostree_repository_href, set_label)
|
779
982
|
p result
|
780
983
|
rescue PulpOstreeClient::ApiError => e
|
781
|
-
puts "
|
984
|
+
puts "Error when calling RepositoriesOstreeApi->set_label: #{e}"
|
782
985
|
end
|
783
986
|
```
|
784
987
|
|
785
|
-
|
988
|
+
#### Using the set_label_with_http_info variant
|
989
|
+
|
990
|
+
This returns an Array which contains the response data, status code and headers.
|
991
|
+
|
992
|
+
> <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(ostree_ostree_repository_href, set_label)
|
993
|
+
|
994
|
+
```ruby
|
995
|
+
begin
|
996
|
+
# Set a label
|
997
|
+
data, status_code, headers = api_instance.set_label_with_http_info(ostree_ostree_repository_href, set_label)
|
998
|
+
p status_code # => 2xx
|
999
|
+
p headers # => { ... }
|
1000
|
+
p data # => <SetLabelResponse>
|
1001
|
+
rescue PulpOstreeClient::ApiError => e
|
1002
|
+
puts "Error when calling RepositoriesOstreeApi->set_label_with_http_info: #{e}"
|
1003
|
+
end
|
1004
|
+
```
|
786
1005
|
|
1006
|
+
### Parameters
|
787
1007
|
|
788
|
-
Name | Type | Description
|
789
|
-
|
790
|
-
**ostree_ostree_repository_href** | **String
|
791
|
-
**set_label** | [**SetLabel**](SetLabel.md)| |
|
1008
|
+
| Name | Type | Description | Notes |
|
1009
|
+
| ---- | ---- | ----------- | ----- |
|
1010
|
+
| **ostree_ostree_repository_href** | **String** | | |
|
1011
|
+
| **set_label** | [**SetLabel**](SetLabel.md) | | |
|
792
1012
|
|
793
1013
|
### Return type
|
794
1014
|
|
@@ -806,16 +1026,16 @@ Name | Type | Description | Notes
|
|
806
1026
|
|
807
1027
|
## sync
|
808
1028
|
|
809
|
-
> AsyncOperationResponse sync(ostree_ostree_repository_href, repository_sync_url)
|
1029
|
+
> <AsyncOperationResponse> sync(ostree_ostree_repository_href, repository_sync_url)
|
810
1030
|
|
811
1031
|
Sync from remote
|
812
1032
|
|
813
1033
|
Trigger an asynchronous task to sync content.
|
814
1034
|
|
815
|
-
###
|
1035
|
+
### Examples
|
816
1036
|
|
817
1037
|
```ruby
|
818
|
-
|
1038
|
+
require 'time'
|
819
1039
|
require 'pulp_ostree_client'
|
820
1040
|
# setup authorization
|
821
1041
|
PulpOstreeClient.configure do |config|
|
@@ -829,21 +1049,38 @@ ostree_ostree_repository_href = 'ostree_ostree_repository_href_example' # String
|
|
829
1049
|
repository_sync_url = PulpOstreeClient::RepositorySyncURL.new # RepositorySyncURL |
|
830
1050
|
|
831
1051
|
begin
|
832
|
-
#Sync from remote
|
1052
|
+
# Sync from remote
|
833
1053
|
result = api_instance.sync(ostree_ostree_repository_href, repository_sync_url)
|
834
1054
|
p result
|
835
1055
|
rescue PulpOstreeClient::ApiError => e
|
836
|
-
puts "
|
1056
|
+
puts "Error when calling RepositoriesOstreeApi->sync: #{e}"
|
837
1057
|
end
|
838
1058
|
```
|
839
1059
|
|
840
|
-
|
1060
|
+
#### Using the sync_with_http_info variant
|
1061
|
+
|
1062
|
+
This returns an Array which contains the response data, status code and headers.
|
1063
|
+
|
1064
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> sync_with_http_info(ostree_ostree_repository_href, repository_sync_url)
|
1065
|
+
|
1066
|
+
```ruby
|
1067
|
+
begin
|
1068
|
+
# Sync from remote
|
1069
|
+
data, status_code, headers = api_instance.sync_with_http_info(ostree_ostree_repository_href, repository_sync_url)
|
1070
|
+
p status_code # => 2xx
|
1071
|
+
p headers # => { ... }
|
1072
|
+
p data # => <AsyncOperationResponse>
|
1073
|
+
rescue PulpOstreeClient::ApiError => e
|
1074
|
+
puts "Error when calling RepositoriesOstreeApi->sync_with_http_info: #{e}"
|
1075
|
+
end
|
1076
|
+
```
|
841
1077
|
|
1078
|
+
### Parameters
|
842
1079
|
|
843
|
-
Name | Type | Description
|
844
|
-
|
845
|
-
**ostree_ostree_repository_href** | **String
|
846
|
-
**repository_sync_url** | [**RepositorySyncURL**](RepositorySyncURL.md)| |
|
1080
|
+
| Name | Type | Description | Notes |
|
1081
|
+
| ---- | ---- | ----------- | ----- |
|
1082
|
+
| **ostree_ostree_repository_href** | **String** | | |
|
1083
|
+
| **repository_sync_url** | [**RepositorySyncURL**](RepositorySyncURL.md) | | |
|
847
1084
|
|
848
1085
|
### Return type
|
849
1086
|
|
@@ -861,16 +1098,16 @@ Name | Type | Description | Notes
|
|
861
1098
|
|
862
1099
|
## unset_label
|
863
1100
|
|
864
|
-
> UnsetLabelResponse unset_label(ostree_ostree_repository_href, unset_label)
|
1101
|
+
> <UnsetLabelResponse> unset_label(ostree_ostree_repository_href, unset_label)
|
865
1102
|
|
866
1103
|
Unset a label
|
867
1104
|
|
868
1105
|
Unset a single pulp_label on the object.
|
869
1106
|
|
870
|
-
###
|
1107
|
+
### Examples
|
871
1108
|
|
872
1109
|
```ruby
|
873
|
-
|
1110
|
+
require 'time'
|
874
1111
|
require 'pulp_ostree_client'
|
875
1112
|
# setup authorization
|
876
1113
|
PulpOstreeClient.configure do |config|
|
@@ -881,24 +1118,41 @@ end
|
|
881
1118
|
|
882
1119
|
api_instance = PulpOstreeClient::RepositoriesOstreeApi.new
|
883
1120
|
ostree_ostree_repository_href = 'ostree_ostree_repository_href_example' # String |
|
884
|
-
unset_label = PulpOstreeClient::UnsetLabel.new # UnsetLabel |
|
1121
|
+
unset_label = PulpOstreeClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
|
885
1122
|
|
886
1123
|
begin
|
887
|
-
#Unset a label
|
1124
|
+
# Unset a label
|
888
1125
|
result = api_instance.unset_label(ostree_ostree_repository_href, unset_label)
|
889
1126
|
p result
|
890
1127
|
rescue PulpOstreeClient::ApiError => e
|
891
|
-
puts "
|
1128
|
+
puts "Error when calling RepositoriesOstreeApi->unset_label: #{e}"
|
892
1129
|
end
|
893
1130
|
```
|
894
1131
|
|
895
|
-
|
1132
|
+
#### Using the unset_label_with_http_info variant
|
1133
|
+
|
1134
|
+
This returns an Array which contains the response data, status code and headers.
|
1135
|
+
|
1136
|
+
> <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(ostree_ostree_repository_href, unset_label)
|
1137
|
+
|
1138
|
+
```ruby
|
1139
|
+
begin
|
1140
|
+
# Unset a label
|
1141
|
+
data, status_code, headers = api_instance.unset_label_with_http_info(ostree_ostree_repository_href, unset_label)
|
1142
|
+
p status_code # => 2xx
|
1143
|
+
p headers # => { ... }
|
1144
|
+
p data # => <UnsetLabelResponse>
|
1145
|
+
rescue PulpOstreeClient::ApiError => e
|
1146
|
+
puts "Error when calling RepositoriesOstreeApi->unset_label_with_http_info: #{e}"
|
1147
|
+
end
|
1148
|
+
```
|
896
1149
|
|
1150
|
+
### Parameters
|
897
1151
|
|
898
|
-
Name | Type | Description
|
899
|
-
|
900
|
-
**ostree_ostree_repository_href** | **String
|
901
|
-
**unset_label** | [**UnsetLabel**](UnsetLabel.md)| |
|
1152
|
+
| Name | Type | Description | Notes |
|
1153
|
+
| ---- | ---- | ----------- | ----- |
|
1154
|
+
| **ostree_ostree_repository_href** | **String** | | |
|
1155
|
+
| **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
|
902
1156
|
|
903
1157
|
### Return type
|
904
1158
|
|
@@ -916,16 +1170,16 @@ Name | Type | Description | Notes
|
|
916
1170
|
|
917
1171
|
## update
|
918
1172
|
|
919
|
-
> AsyncOperationResponse update(ostree_ostree_repository_href, ostree_ostree_repository)
|
1173
|
+
> <AsyncOperationResponse> update(ostree_ostree_repository_href, ostree_ostree_repository)
|
920
1174
|
|
921
1175
|
Update an ostree repository
|
922
1176
|
|
923
1177
|
Trigger an asynchronous update task
|
924
1178
|
|
925
|
-
###
|
1179
|
+
### Examples
|
926
1180
|
|
927
1181
|
```ruby
|
928
|
-
|
1182
|
+
require 'time'
|
929
1183
|
require 'pulp_ostree_client'
|
930
1184
|
# setup authorization
|
931
1185
|
PulpOstreeClient.configure do |config|
|
@@ -936,24 +1190,41 @@ end
|
|
936
1190
|
|
937
1191
|
api_instance = PulpOstreeClient::RepositoriesOstreeApi.new
|
938
1192
|
ostree_ostree_repository_href = 'ostree_ostree_repository_href_example' # String |
|
939
|
-
ostree_ostree_repository = PulpOstreeClient::OstreeOstreeRepository.new # OstreeOstreeRepository |
|
1193
|
+
ostree_ostree_repository = PulpOstreeClient::OstreeOstreeRepository.new({name: 'name_example'}) # OstreeOstreeRepository |
|
940
1194
|
|
941
1195
|
begin
|
942
|
-
#Update an ostree repository
|
1196
|
+
# Update an ostree repository
|
943
1197
|
result = api_instance.update(ostree_ostree_repository_href, ostree_ostree_repository)
|
944
1198
|
p result
|
945
1199
|
rescue PulpOstreeClient::ApiError => e
|
946
|
-
puts "
|
1200
|
+
puts "Error when calling RepositoriesOstreeApi->update: #{e}"
|
947
1201
|
end
|
948
1202
|
```
|
949
1203
|
|
950
|
-
|
1204
|
+
#### Using the update_with_http_info variant
|
1205
|
+
|
1206
|
+
This returns an Array which contains the response data, status code and headers.
|
1207
|
+
|
1208
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> update_with_http_info(ostree_ostree_repository_href, ostree_ostree_repository)
|
1209
|
+
|
1210
|
+
```ruby
|
1211
|
+
begin
|
1212
|
+
# Update an ostree repository
|
1213
|
+
data, status_code, headers = api_instance.update_with_http_info(ostree_ostree_repository_href, ostree_ostree_repository)
|
1214
|
+
p status_code # => 2xx
|
1215
|
+
p headers # => { ... }
|
1216
|
+
p data # => <AsyncOperationResponse>
|
1217
|
+
rescue PulpOstreeClient::ApiError => e
|
1218
|
+
puts "Error when calling RepositoriesOstreeApi->update_with_http_info: #{e}"
|
1219
|
+
end
|
1220
|
+
```
|
951
1221
|
|
1222
|
+
### Parameters
|
952
1223
|
|
953
|
-
Name | Type | Description
|
954
|
-
|
955
|
-
**ostree_ostree_repository_href** | **String
|
956
|
-
**ostree_ostree_repository** | [**OstreeOstreeRepository**](OstreeOstreeRepository.md)| |
|
1224
|
+
| Name | Type | Description | Notes |
|
1225
|
+
| ---- | ---- | ----------- | ----- |
|
1226
|
+
| **ostree_ostree_repository_href** | **String** | | |
|
1227
|
+
| **ostree_ostree_repository** | [**OstreeOstreeRepository**](OstreeOstreeRepository.md) | | |
|
957
1228
|
|
958
1229
|
### Return type
|
959
1230
|
|