pulp_file_client 3.69.1 → 3.70.0
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 +10 -7
- data/docs/AcsFileApi.md +343 -157
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContentFilesApi.md +114 -64
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/DistributionsFileApi.md +385 -182
- data/docs/FileFileAlternateContentSource.md +14 -13
- data/docs/FileFileAlternateContentSourceResponse.md +22 -21
- data/docs/FileFileContentResponse.md +30 -29
- data/docs/FileFileDistribution.md +20 -19
- data/docs/FileFileDistributionResponse.md +32 -31
- data/docs/FileFilePublication.md +12 -11
- data/docs/FileFilePublicationResponse.md +22 -21
- data/docs/FileFileRemote.md +48 -47
- data/docs/FileFileRemoteResponse.md +48 -47
- data/docs/FileFileRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/FileFileRepository.md +20 -19
- data/docs/FileFileRepositoryResponse.md +32 -31
- 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/PaginatedRepositoryVersionResponseList.md +14 -13
- data/docs/PaginatedfileFileAlternateContentSourceResponseList.md +14 -13
- data/docs/PaginatedfileFileContentResponseList.md +14 -13
- data/docs/PaginatedfileFileDistributionResponseList.md +14 -13
- data/docs/PaginatedfileFilePublicationResponseList.md +14 -13
- data/docs/PaginatedfileFileRemoteResponseList.md +14 -13
- data/docs/PaginatedfileFileRepositoryResponseList.md +14 -13
- data/docs/PatchedfileFileAlternateContentSource.md +14 -13
- data/docs/PatchedfileFileDistribution.md +20 -19
- data/docs/PatchedfileFileRemote.md +48 -47
- data/docs/PatchedfileFileRepository.md +20 -19
- data/docs/PolicyEnum.md +4 -5
- data/docs/PublicationsFileApi.md +267 -130
- data/docs/RemotesFileApi.md +389 -184
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesFileApi.md +444 -207
- data/docs/RepositoriesFileVersionsApi.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/TaskGroupOperationResponse.md +8 -7
- data/docs/UnsetLabel.md +8 -7
- data/docs/UnsetLabelResponse.md +10 -9
- data/lib/pulp_file_client/api/acs_file_api.rb +76 -50
- data/lib/pulp_file_client/api/content_files_api.rb +20 -14
- data/lib/pulp_file_client/api/distributions_file_api.rb +89 -56
- data/lib/pulp_file_client/api/publications_file_api.rb +67 -47
- data/lib/pulp_file_client/api/remotes_file_api.rb +104 -68
- data/lib/pulp_file_client/api/repositories_file_api.rb +107 -66
- data/lib/pulp_file_client/api/repositories_file_versions_api.rb +40 -30
- data/lib/pulp_file_client/api_client.rb +137 -102
- data/lib/pulp_file_client/api_error.rb +2 -1
- data/lib/pulp_file_client/configuration.rb +162 -21
- data/lib/pulp_file_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_file_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_file_client/models/file_file_alternate_content_source.rb +35 -23
- data/lib/pulp_file_client/models/file_file_alternate_content_source_response.rb +37 -25
- data/lib/pulp_file_client/models/file_file_content_response.rb +34 -24
- data/lib/pulp_file_client/models/file_file_distribution.rb +34 -22
- data/lib/pulp_file_client/models/file_file_distribution_response.rb +36 -24
- data/lib/pulp_file_client/models/file_file_publication.rb +30 -22
- data/lib/pulp_file_client/models/file_file_publication_response.rb +32 -24
- data/lib/pulp_file_client/models/file_file_remote.rb +56 -22
- data/lib/pulp_file_client/models/file_file_remote_response.rb +59 -25
- data/lib/pulp_file_client/models/{file_file_remote_response_hidden_fields.rb → file_file_remote_response_hidden_fields_inner.rb} +37 -25
- data/lib/pulp_file_client/models/file_file_repository.rb +32 -22
- data/lib/pulp_file_client/models/file_file_repository_response.rb +34 -24
- data/lib/pulp_file_client/models/my_permissions_response.rb +32 -22
- data/lib/pulp_file_client/models/nested_role.rb +32 -22
- data/lib/pulp_file_client/models/nested_role_response.rb +32 -22
- data/lib/pulp_file_client/models/object_roles_response.rb +32 -22
- data/lib/pulp_file_client/models/paginated_repository_version_response_list.rb +34 -22
- data/lib/pulp_file_client/models/paginatedfile_file_alternate_content_source_response_list.rb +34 -22
- data/lib/pulp_file_client/models/paginatedfile_file_content_response_list.rb +34 -22
- data/lib/pulp_file_client/models/paginatedfile_file_distribution_response_list.rb +34 -22
- data/lib/pulp_file_client/models/paginatedfile_file_publication_response_list.rb +34 -22
- data/lib/pulp_file_client/models/paginatedfile_file_remote_response_list.rb +34 -22
- data/lib/pulp_file_client/models/paginatedfile_file_repository_response_list.rb +34 -22
- data/lib/pulp_file_client/models/patchedfile_file_alternate_content_source.rb +36 -24
- data/lib/pulp_file_client/models/patchedfile_file_distribution.rb +40 -24
- data/lib/pulp_file_client/models/patchedfile_file_remote.rb +62 -24
- data/lib/pulp_file_client/models/patchedfile_file_repository.rb +35 -23
- data/lib/pulp_file_client/models/policy_enum.rb +8 -4
- data/lib/pulp_file_client/models/repair.rb +30 -22
- data/lib/pulp_file_client/models/repository_add_remove_content.rb +30 -22
- data/lib/pulp_file_client/models/repository_sync_url.rb +30 -22
- data/lib/pulp_file_client/models/repository_version_response.rb +32 -24
- data/lib/pulp_file_client/models/set_label.rb +34 -22
- data/lib/pulp_file_client/models/set_label_response.rb +34 -22
- data/lib/pulp_file_client/models/task_group_operation_response.rb +32 -22
- data/lib/pulp_file_client/models/unset_label.rb +32 -22
- data/lib/pulp_file_client/models/unset_label_response.rb +32 -22
- data/lib/pulp_file_client/version.rb +2 -2
- data/lib/pulp_file_client.rb +2 -3
- data/pulp_file_client.gemspec +9 -6
- data/spec/api/acs_file_api_spec.rb +12 -12
- data/spec/api/content_files_api_spec.rb +4 -4
- data/spec/api/distributions_file_api_spec.rb +13 -13
- data/spec/api/publications_file_api_spec.rb +16 -15
- data/spec/api/remotes_file_api_spec.rb +20 -19
- data/spec/api/repositories_file_api_spec.rb +15 -15
- data/spec/api/repositories_file_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/file_file_alternate_content_source_response_spec.rb +14 -19
- data/spec/models/file_file_alternate_content_source_spec.rb +10 -15
- data/spec/models/file_file_content_response_spec.rb +18 -23
- data/spec/models/file_file_distribution_response_spec.rb +19 -24
- data/spec/models/file_file_distribution_spec.rb +13 -18
- data/spec/models/file_file_publication_response_spec.rb +14 -19
- data/spec/models/file_file_publication_spec.rb +9 -14
- data/spec/models/{file_file_remote_response_hidden_fields_spec.rb → file_file_remote_response_hidden_fields_inner_spec.rb} +11 -16
- data/spec/models/file_file_remote_response_spec.rb +27 -32
- data/spec/models/file_file_remote_spec.rb +27 -32
- data/spec/models/file_file_repository_response_spec.rb +19 -24
- data/spec/models/file_file_repository_spec.rb +13 -18
- 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/paginated_repository_version_response_list_spec.rb +10 -15
- data/spec/models/paginatedfile_file_alternate_content_source_response_list_spec.rb +10 -15
- data/spec/models/paginatedfile_file_content_response_list_spec.rb +10 -15
- data/spec/models/paginatedfile_file_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginatedfile_file_publication_response_list_spec.rb +10 -15
- data/spec/models/paginatedfile_file_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedfile_file_repository_response_list_spec.rb +10 -15
- data/spec/models/patchedfile_file_alternate_content_source_spec.rb +10 -15
- data/spec/models/patchedfile_file_distribution_spec.rb +13 -18
- data/spec/models/patchedfile_file_remote_spec.rb +27 -32
- data/spec/models/patchedfile_file_repository_spec.rb +13 -18
- 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/task_group_operation_response_spec.rb +7 -12
- 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 +45 -25
- data/docs/FileFileContent.md +0 -27
- data/docs/FileFileRemoteResponseHiddenFields.md +0 -19
- data/lib/pulp_file_client/models/file_file_content.rb +0 -297
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/file_file_content_spec.rb +0 -71
data/docs/AcsFileApi.md
CHANGED
@@ -2,34 +2,33 @@
|
|
2
2
|
|
3
3
|
All URIs are relative to *http://localhost:24817*
|
4
4
|
|
5
|
-
Method | HTTP request | Description
|
6
|
-
|
7
|
-
[**add_role**](AcsFileApi.md#add_role) | **POST** {file_file_alternate_content_source_href}add_role/ | Add a role
|
8
|
-
[**create**](AcsFileApi.md#create) | **POST** /pulp/api/v3/acs/file/file/ | Create a file alternate content source
|
9
|
-
[**delete**](AcsFileApi.md#delete) | **DELETE** {file_file_alternate_content_source_href} | Delete a file alternate content source
|
10
|
-
[**list**](AcsFileApi.md#list) | **GET** /pulp/api/v3/acs/file/file/ | List file alternate content sources
|
11
|
-
[**list_roles**](AcsFileApi.md#list_roles) | **GET** {file_file_alternate_content_source_href}list_roles/ | List roles
|
12
|
-
[**my_permissions**](AcsFileApi.md#my_permissions) | **GET** {file_file_alternate_content_source_href}my_permissions/ | List user permissions
|
13
|
-
[**partial_update**](AcsFileApi.md#partial_update) | **PATCH** {file_file_alternate_content_source_href} | Update a file alternate content source
|
14
|
-
[**read**](AcsFileApi.md#read) | **GET** {file_file_alternate_content_source_href} | Inspect a file alternate content source
|
15
|
-
[**refresh**](AcsFileApi.md#refresh) | **POST** {file_file_alternate_content_source_href}refresh/ | Refresh metadata
|
16
|
-
[**remove_role**](AcsFileApi.md#remove_role) | **POST** {file_file_alternate_content_source_href}remove_role/ | Remove a role
|
17
|
-
[**update**](AcsFileApi.md#update) | **PUT** {file_file_alternate_content_source_href} | Update a file alternate content source
|
18
|
-
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**add_role**](AcsFileApi.md#add_role) | **POST** {file_file_alternate_content_source_href}add_role/ | Add a role |
|
8
|
+
| [**create**](AcsFileApi.md#create) | **POST** /pulp/api/v3/acs/file/file/ | Create a file alternate content source |
|
9
|
+
| [**delete**](AcsFileApi.md#delete) | **DELETE** {file_file_alternate_content_source_href} | Delete a file alternate content source |
|
10
|
+
| [**list**](AcsFileApi.md#list) | **GET** /pulp/api/v3/acs/file/file/ | List file alternate content sources |
|
11
|
+
| [**list_roles**](AcsFileApi.md#list_roles) | **GET** {file_file_alternate_content_source_href}list_roles/ | List roles |
|
12
|
+
| [**my_permissions**](AcsFileApi.md#my_permissions) | **GET** {file_file_alternate_content_source_href}my_permissions/ | List user permissions |
|
13
|
+
| [**partial_update**](AcsFileApi.md#partial_update) | **PATCH** {file_file_alternate_content_source_href} | Update a file alternate content source |
|
14
|
+
| [**read**](AcsFileApi.md#read) | **GET** {file_file_alternate_content_source_href} | Inspect a file alternate content source |
|
15
|
+
| [**refresh**](AcsFileApi.md#refresh) | **POST** {file_file_alternate_content_source_href}refresh/ | Refresh metadata |
|
16
|
+
| [**remove_role**](AcsFileApi.md#remove_role) | **POST** {file_file_alternate_content_source_href}remove_role/ | Remove a role |
|
17
|
+
| [**update**](AcsFileApi.md#update) | **PUT** {file_file_alternate_content_source_href} | Update a file alternate content source |
|
19
18
|
|
20
19
|
|
21
20
|
## add_role
|
22
21
|
|
23
|
-
> NestedRoleResponse add_role(file_file_alternate_content_source_href, nested_role)
|
22
|
+
> <NestedRoleResponse> add_role(file_file_alternate_content_source_href, nested_role)
|
24
23
|
|
25
24
|
Add a role
|
26
25
|
|
27
26
|
Add a role for this object to users/groups.
|
28
27
|
|
29
|
-
###
|
28
|
+
### Examples
|
30
29
|
|
31
30
|
```ruby
|
32
|
-
|
31
|
+
require 'time'
|
33
32
|
require 'pulp_file_client'
|
34
33
|
# setup authorization
|
35
34
|
PulpFileClient.configure do |config|
|
@@ -40,24 +39,41 @@ end
|
|
40
39
|
|
41
40
|
api_instance = PulpFileClient::AcsFileApi.new
|
42
41
|
file_file_alternate_content_source_href = 'file_file_alternate_content_source_href_example' # String |
|
43
|
-
nested_role = PulpFileClient::NestedRole.new # NestedRole |
|
42
|
+
nested_role = PulpFileClient::NestedRole.new({role: 'role_example'}) # NestedRole |
|
44
43
|
|
45
44
|
begin
|
46
|
-
#Add a role
|
45
|
+
# Add a role
|
47
46
|
result = api_instance.add_role(file_file_alternate_content_source_href, nested_role)
|
48
47
|
p result
|
49
48
|
rescue PulpFileClient::ApiError => e
|
50
|
-
puts "
|
49
|
+
puts "Error when calling AcsFileApi->add_role: #{e}"
|
51
50
|
end
|
52
51
|
```
|
53
52
|
|
54
|
-
|
53
|
+
#### Using the add_role_with_http_info variant
|
54
|
+
|
55
|
+
This returns an Array which contains the response data, status code and headers.
|
56
|
+
|
57
|
+
> <Array(<NestedRoleResponse>, Integer, Hash)> add_role_with_http_info(file_file_alternate_content_source_href, nested_role)
|
58
|
+
|
59
|
+
```ruby
|
60
|
+
begin
|
61
|
+
# Add a role
|
62
|
+
data, status_code, headers = api_instance.add_role_with_http_info(file_file_alternate_content_source_href, nested_role)
|
63
|
+
p status_code # => 2xx
|
64
|
+
p headers # => { ... }
|
65
|
+
p data # => <NestedRoleResponse>
|
66
|
+
rescue PulpFileClient::ApiError => e
|
67
|
+
puts "Error when calling AcsFileApi->add_role_with_http_info: #{e}"
|
68
|
+
end
|
69
|
+
```
|
55
70
|
|
71
|
+
### Parameters
|
56
72
|
|
57
|
-
Name | Type | Description
|
58
|
-
|
59
|
-
**file_file_alternate_content_source_href** | **String
|
60
|
-
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
73
|
+
| Name | Type | Description | Notes |
|
74
|
+
| ---- | ---- | ----------- | ----- |
|
75
|
+
| **file_file_alternate_content_source_href** | **String** | | |
|
76
|
+
| **nested_role** | [**NestedRole**](NestedRole.md) | | |
|
61
77
|
|
62
78
|
### Return type
|
63
79
|
|
@@ -75,16 +91,16 @@ Name | Type | Description | Notes
|
|
75
91
|
|
76
92
|
## create
|
77
93
|
|
78
|
-
> FileFileAlternateContentSourceResponse create(file_file_alternate_content_source)
|
94
|
+
> <FileFileAlternateContentSourceResponse> create(file_file_alternate_content_source)
|
79
95
|
|
80
96
|
Create a file alternate content source
|
81
97
|
|
82
98
|
Alternate Content Source ViewSet for File
|
83
99
|
|
84
|
-
###
|
100
|
+
### Examples
|
85
101
|
|
86
102
|
```ruby
|
87
|
-
|
103
|
+
require 'time'
|
88
104
|
require 'pulp_file_client'
|
89
105
|
# setup authorization
|
90
106
|
PulpFileClient.configure do |config|
|
@@ -94,23 +110,40 @@ PulpFileClient.configure do |config|
|
|
94
110
|
end
|
95
111
|
|
96
112
|
api_instance = PulpFileClient::AcsFileApi.new
|
97
|
-
file_file_alternate_content_source = PulpFileClient::FileFileAlternateContentSource.new # FileFileAlternateContentSource |
|
113
|
+
file_file_alternate_content_source = PulpFileClient::FileFileAlternateContentSource.new({name: 'name_example', remote: 'remote_example'}) # FileFileAlternateContentSource |
|
98
114
|
|
99
115
|
begin
|
100
|
-
#Create a file alternate content source
|
116
|
+
# Create a file alternate content source
|
101
117
|
result = api_instance.create(file_file_alternate_content_source)
|
102
118
|
p result
|
103
119
|
rescue PulpFileClient::ApiError => e
|
104
|
-
puts "
|
120
|
+
puts "Error when calling AcsFileApi->create: #{e}"
|
105
121
|
end
|
106
122
|
```
|
107
123
|
|
108
|
-
|
124
|
+
#### Using the create_with_http_info variant
|
125
|
+
|
126
|
+
This returns an Array which contains the response data, status code and headers.
|
127
|
+
|
128
|
+
> <Array(<FileFileAlternateContentSourceResponse>, Integer, Hash)> create_with_http_info(file_file_alternate_content_source)
|
109
129
|
|
130
|
+
```ruby
|
131
|
+
begin
|
132
|
+
# Create a file alternate content source
|
133
|
+
data, status_code, headers = api_instance.create_with_http_info(file_file_alternate_content_source)
|
134
|
+
p status_code # => 2xx
|
135
|
+
p headers # => { ... }
|
136
|
+
p data # => <FileFileAlternateContentSourceResponse>
|
137
|
+
rescue PulpFileClient::ApiError => e
|
138
|
+
puts "Error when calling AcsFileApi->create_with_http_info: #{e}"
|
139
|
+
end
|
140
|
+
```
|
141
|
+
|
142
|
+
### Parameters
|
110
143
|
|
111
|
-
Name | Type | Description
|
112
|
-
|
113
|
-
**file_file_alternate_content_source** | [**FileFileAlternateContentSource**](FileFileAlternateContentSource.md)| |
|
144
|
+
| Name | Type | Description | Notes |
|
145
|
+
| ---- | ---- | ----------- | ----- |
|
146
|
+
| **file_file_alternate_content_source** | [**FileFileAlternateContentSource**](FileFileAlternateContentSource.md) | | |
|
114
147
|
|
115
148
|
### Return type
|
116
149
|
|
@@ -128,16 +161,16 @@ Name | Type | Description | Notes
|
|
128
161
|
|
129
162
|
## delete
|
130
163
|
|
131
|
-
> AsyncOperationResponse delete(file_file_alternate_content_source_href)
|
164
|
+
> <AsyncOperationResponse> delete(file_file_alternate_content_source_href)
|
132
165
|
|
133
166
|
Delete a file alternate content source
|
134
167
|
|
135
168
|
Trigger an asynchronous delete ACS task
|
136
169
|
|
137
|
-
###
|
170
|
+
### Examples
|
138
171
|
|
139
172
|
```ruby
|
140
|
-
|
173
|
+
require 'time'
|
141
174
|
require 'pulp_file_client'
|
142
175
|
# setup authorization
|
143
176
|
PulpFileClient.configure do |config|
|
@@ -150,20 +183,37 @@ api_instance = PulpFileClient::AcsFileApi.new
|
|
150
183
|
file_file_alternate_content_source_href = 'file_file_alternate_content_source_href_example' # String |
|
151
184
|
|
152
185
|
begin
|
153
|
-
#Delete a file alternate content source
|
186
|
+
# Delete a file alternate content source
|
154
187
|
result = api_instance.delete(file_file_alternate_content_source_href)
|
155
188
|
p result
|
156
189
|
rescue PulpFileClient::ApiError => e
|
157
|
-
puts "
|
190
|
+
puts "Error when calling AcsFileApi->delete: #{e}"
|
158
191
|
end
|
159
192
|
```
|
160
193
|
|
161
|
-
|
194
|
+
#### Using the delete_with_http_info variant
|
195
|
+
|
196
|
+
This returns an Array which contains the response data, status code and headers.
|
197
|
+
|
198
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> delete_with_http_info(file_file_alternate_content_source_href)
|
199
|
+
|
200
|
+
```ruby
|
201
|
+
begin
|
202
|
+
# Delete a file alternate content source
|
203
|
+
data, status_code, headers = api_instance.delete_with_http_info(file_file_alternate_content_source_href)
|
204
|
+
p status_code # => 2xx
|
205
|
+
p headers # => { ... }
|
206
|
+
p data # => <AsyncOperationResponse>
|
207
|
+
rescue PulpFileClient::ApiError => e
|
208
|
+
puts "Error when calling AcsFileApi->delete_with_http_info: #{e}"
|
209
|
+
end
|
210
|
+
```
|
162
211
|
|
212
|
+
### Parameters
|
163
213
|
|
164
|
-
Name | Type | Description
|
165
|
-
|
166
|
-
**file_file_alternate_content_source_href** | **String
|
214
|
+
| Name | Type | Description | Notes |
|
215
|
+
| ---- | ---- | ----------- | ----- |
|
216
|
+
| **file_file_alternate_content_source_href** | **String** | | |
|
167
217
|
|
168
218
|
### Return type
|
169
219
|
|
@@ -181,16 +231,16 @@ Name | Type | Description | Notes
|
|
181
231
|
|
182
232
|
## list
|
183
233
|
|
184
|
-
> PaginatedfileFileAlternateContentSourceResponseList list(opts)
|
234
|
+
> <PaginatedfileFileAlternateContentSourceResponseList> list(opts)
|
185
235
|
|
186
236
|
List file alternate content sources
|
187
237
|
|
188
238
|
Alternate Content Source ViewSet for File
|
189
239
|
|
190
|
-
###
|
240
|
+
### Examples
|
191
241
|
|
192
242
|
```ruby
|
193
|
-
|
243
|
+
require 'time'
|
194
244
|
require 'pulp_file_client'
|
195
245
|
# setup authorization
|
196
246
|
PulpFileClient.configure do |config|
|
@@ -206,53 +256,70 @@ opts = {
|
|
206
256
|
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
207
257
|
name__icontains: 'name__icontains_example', # String | Filter results where name contains value
|
208
258
|
name__iexact: 'name__iexact_example', # String | Filter results where name matches value
|
209
|
-
name__in: ['
|
259
|
+
name__in: ['inner_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
210
260
|
name__iregex: 'name__iregex_example', # String | Filter results where name matches regex value
|
211
261
|
name__istartswith: 'name__istartswith_example', # String | Filter results where name starts with value
|
212
262
|
name__regex: 'name__regex_example', # String | Filter results where name matches regex value
|
213
263
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
214
264
|
offset: 56, # Integer | The initial index from which to return the results.
|
215
|
-
ordering: ['
|
216
|
-
prn__in: ['
|
217
|
-
pulp_href__in: ['
|
218
|
-
pulp_id__in: ['
|
265
|
+
ordering: ['-last_refreshed'], # 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) * `last_refreshed` - Last refreshed * `-last_refreshed` - Last refreshed (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
266
|
+
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
267
|
+
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
268
|
+
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
219
269
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
220
|
-
fields: ['
|
221
|
-
exclude_fields: ['
|
270
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
271
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
222
272
|
}
|
223
273
|
|
224
274
|
begin
|
225
|
-
#List file alternate content sources
|
275
|
+
# List file alternate content sources
|
226
276
|
result = api_instance.list(opts)
|
227
277
|
p result
|
228
278
|
rescue PulpFileClient::ApiError => e
|
229
|
-
puts "
|
279
|
+
puts "Error when calling AcsFileApi->list: #{e}"
|
230
280
|
end
|
231
281
|
```
|
232
282
|
|
233
|
-
|
283
|
+
#### Using the list_with_http_info variant
|
284
|
+
|
285
|
+
This returns an Array which contains the response data, status code and headers.
|
286
|
+
|
287
|
+
> <Array(<PaginatedfileFileAlternateContentSourceResponseList>, Integer, Hash)> list_with_http_info(opts)
|
288
|
+
|
289
|
+
```ruby
|
290
|
+
begin
|
291
|
+
# List file alternate content sources
|
292
|
+
data, status_code, headers = api_instance.list_with_http_info(opts)
|
293
|
+
p status_code # => 2xx
|
294
|
+
p headers # => { ... }
|
295
|
+
p data # => <PaginatedfileFileAlternateContentSourceResponseList>
|
296
|
+
rescue PulpFileClient::ApiError => e
|
297
|
+
puts "Error when calling AcsFileApi->list_with_http_info: #{e}"
|
298
|
+
end
|
299
|
+
```
|
234
300
|
|
301
|
+
### Parameters
|
235
302
|
|
236
|
-
Name | Type | Description
|
237
|
-
|
238
|
-
**limit** | **Integer
|
239
|
-
**name** | **String
|
240
|
-
**name__contains** | **String
|
241
|
-
**name__icontains** | **String
|
242
|
-
**name__iexact** | **String
|
243
|
-
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
244
|
-
**name__iregex** | **String
|
245
|
-
**name__istartswith** | **String
|
246
|
-
**name__regex** | **String
|
247
|
-
**name__startswith** | **String
|
248
|
-
**offset** | **Integer
|
249
|
-
**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) * `last_refreshed` - Last refreshed * `-last_refreshed` - Last refreshed (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
250
|
-
**prn__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
251
|
-
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
252
|
-
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
253
|
-
**q** | **String
|
254
|
-
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
255
|
-
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
303
|
+
| Name | Type | Description | Notes |
|
304
|
+
| ---- | ---- | ----------- | ----- |
|
305
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
306
|
+
| **name** | **String** | Filter results where name matches value | [optional] |
|
307
|
+
| **name__contains** | **String** | Filter results where name contains value | [optional] |
|
308
|
+
| **name__icontains** | **String** | Filter results where name contains value | [optional] |
|
309
|
+
| **name__iexact** | **String** | Filter results where name matches value | [optional] |
|
310
|
+
| **name__in** | [**Array<String>**](String.md) | Filter results where name is in a comma-separated list of values | [optional] |
|
311
|
+
| **name__iregex** | **String** | Filter results where name matches regex value | [optional] |
|
312
|
+
| **name__istartswith** | **String** | Filter results where name starts with value | [optional] |
|
313
|
+
| **name__regex** | **String** | Filter results where name matches regex value | [optional] |
|
314
|
+
| **name__startswith** | **String** | Filter results where name starts with value | [optional] |
|
315
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
316
|
+
| **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) * `last_refreshed` - Last refreshed * `-last_refreshed` - Last refreshed (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
317
|
+
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
318
|
+
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
319
|
+
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
320
|
+
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
321
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
322
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
256
323
|
|
257
324
|
### Return type
|
258
325
|
|
@@ -270,16 +337,16 @@ Name | Type | Description | Notes
|
|
270
337
|
|
271
338
|
## list_roles
|
272
339
|
|
273
|
-
> ObjectRolesResponse list_roles(file_file_alternate_content_source_href, opts)
|
340
|
+
> <ObjectRolesResponse> list_roles(file_file_alternate_content_source_href, opts)
|
274
341
|
|
275
342
|
List roles
|
276
343
|
|
277
344
|
List roles assigned to this object.
|
278
345
|
|
279
|
-
###
|
346
|
+
### Examples
|
280
347
|
|
281
348
|
```ruby
|
282
|
-
|
349
|
+
require 'time'
|
283
350
|
require 'pulp_file_client'
|
284
351
|
# setup authorization
|
285
352
|
PulpFileClient.configure do |config|
|
@@ -291,27 +358,44 @@ end
|
|
291
358
|
api_instance = PulpFileClient::AcsFileApi.new
|
292
359
|
file_file_alternate_content_source_href = 'file_file_alternate_content_source_href_example' # String |
|
293
360
|
opts = {
|
294
|
-
fields: ['
|
295
|
-
exclude_fields: ['
|
361
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
362
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
296
363
|
}
|
297
364
|
|
298
365
|
begin
|
299
|
-
#List roles
|
366
|
+
# List roles
|
300
367
|
result = api_instance.list_roles(file_file_alternate_content_source_href, opts)
|
301
368
|
p result
|
302
369
|
rescue PulpFileClient::ApiError => e
|
303
|
-
puts "
|
370
|
+
puts "Error when calling AcsFileApi->list_roles: #{e}"
|
304
371
|
end
|
305
372
|
```
|
306
373
|
|
307
|
-
|
374
|
+
#### Using the list_roles_with_http_info variant
|
308
375
|
|
376
|
+
This returns an Array which contains the response data, status code and headers.
|
309
377
|
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
378
|
+
> <Array(<ObjectRolesResponse>, Integer, Hash)> list_roles_with_http_info(file_file_alternate_content_source_href, opts)
|
379
|
+
|
380
|
+
```ruby
|
381
|
+
begin
|
382
|
+
# List roles
|
383
|
+
data, status_code, headers = api_instance.list_roles_with_http_info(file_file_alternate_content_source_href, opts)
|
384
|
+
p status_code # => 2xx
|
385
|
+
p headers # => { ... }
|
386
|
+
p data # => <ObjectRolesResponse>
|
387
|
+
rescue PulpFileClient::ApiError => e
|
388
|
+
puts "Error when calling AcsFileApi->list_roles_with_http_info: #{e}"
|
389
|
+
end
|
390
|
+
```
|
391
|
+
|
392
|
+
### Parameters
|
393
|
+
|
394
|
+
| Name | Type | Description | Notes |
|
395
|
+
| ---- | ---- | ----------- | ----- |
|
396
|
+
| **file_file_alternate_content_source_href** | **String** | | |
|
397
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
398
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
315
399
|
|
316
400
|
### Return type
|
317
401
|
|
@@ -329,16 +413,16 @@ Name | Type | Description | Notes
|
|
329
413
|
|
330
414
|
## my_permissions
|
331
415
|
|
332
|
-
> MyPermissionsResponse my_permissions(file_file_alternate_content_source_href, opts)
|
416
|
+
> <MyPermissionsResponse> my_permissions(file_file_alternate_content_source_href, opts)
|
333
417
|
|
334
418
|
List user permissions
|
335
419
|
|
336
420
|
List permissions available to the current user on this object.
|
337
421
|
|
338
|
-
###
|
422
|
+
### Examples
|
339
423
|
|
340
424
|
```ruby
|
341
|
-
|
425
|
+
require 'time'
|
342
426
|
require 'pulp_file_client'
|
343
427
|
# setup authorization
|
344
428
|
PulpFileClient.configure do |config|
|
@@ -350,27 +434,44 @@ end
|
|
350
434
|
api_instance = PulpFileClient::AcsFileApi.new
|
351
435
|
file_file_alternate_content_source_href = 'file_file_alternate_content_source_href_example' # String |
|
352
436
|
opts = {
|
353
|
-
fields: ['
|
354
|
-
exclude_fields: ['
|
437
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
438
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
355
439
|
}
|
356
440
|
|
357
441
|
begin
|
358
|
-
#List user permissions
|
442
|
+
# List user permissions
|
359
443
|
result = api_instance.my_permissions(file_file_alternate_content_source_href, opts)
|
360
444
|
p result
|
361
445
|
rescue PulpFileClient::ApiError => e
|
362
|
-
puts "
|
446
|
+
puts "Error when calling AcsFileApi->my_permissions: #{e}"
|
363
447
|
end
|
364
448
|
```
|
365
449
|
|
366
|
-
|
450
|
+
#### Using the my_permissions_with_http_info variant
|
367
451
|
|
452
|
+
This returns an Array which contains the response data, status code and headers.
|
368
453
|
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
454
|
+
> <Array(<MyPermissionsResponse>, Integer, Hash)> my_permissions_with_http_info(file_file_alternate_content_source_href, opts)
|
455
|
+
|
456
|
+
```ruby
|
457
|
+
begin
|
458
|
+
# List user permissions
|
459
|
+
data, status_code, headers = api_instance.my_permissions_with_http_info(file_file_alternate_content_source_href, opts)
|
460
|
+
p status_code # => 2xx
|
461
|
+
p headers # => { ... }
|
462
|
+
p data # => <MyPermissionsResponse>
|
463
|
+
rescue PulpFileClient::ApiError => e
|
464
|
+
puts "Error when calling AcsFileApi->my_permissions_with_http_info: #{e}"
|
465
|
+
end
|
466
|
+
```
|
467
|
+
|
468
|
+
### Parameters
|
469
|
+
|
470
|
+
| Name | Type | Description | Notes |
|
471
|
+
| ---- | ---- | ----------- | ----- |
|
472
|
+
| **file_file_alternate_content_source_href** | **String** | | |
|
473
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
474
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
374
475
|
|
375
476
|
### Return type
|
376
477
|
|
@@ -388,16 +489,16 @@ Name | Type | Description | Notes
|
|
388
489
|
|
389
490
|
## partial_update
|
390
491
|
|
391
|
-
> AsyncOperationResponse partial_update(file_file_alternate_content_source_href, patchedfile_file_alternate_content_source)
|
492
|
+
> <AsyncOperationResponse> partial_update(file_file_alternate_content_source_href, patchedfile_file_alternate_content_source)
|
392
493
|
|
393
494
|
Update a file alternate content source
|
394
495
|
|
395
496
|
Trigger an asynchronous partial update task
|
396
497
|
|
397
|
-
###
|
498
|
+
### Examples
|
398
499
|
|
399
500
|
```ruby
|
400
|
-
|
501
|
+
require 'time'
|
401
502
|
require 'pulp_file_client'
|
402
503
|
# setup authorization
|
403
504
|
PulpFileClient.configure do |config|
|
@@ -411,21 +512,38 @@ file_file_alternate_content_source_href = 'file_file_alternate_content_source_hr
|
|
411
512
|
patchedfile_file_alternate_content_source = PulpFileClient::PatchedfileFileAlternateContentSource.new # PatchedfileFileAlternateContentSource |
|
412
513
|
|
413
514
|
begin
|
414
|
-
#Update a file alternate content source
|
515
|
+
# Update a file alternate content source
|
415
516
|
result = api_instance.partial_update(file_file_alternate_content_source_href, patchedfile_file_alternate_content_source)
|
416
517
|
p result
|
417
518
|
rescue PulpFileClient::ApiError => e
|
418
|
-
puts "
|
519
|
+
puts "Error when calling AcsFileApi->partial_update: #{e}"
|
419
520
|
end
|
420
521
|
```
|
421
522
|
|
422
|
-
|
523
|
+
#### Using the partial_update_with_http_info variant
|
524
|
+
|
525
|
+
This returns an Array which contains the response data, status code and headers.
|
526
|
+
|
527
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> partial_update_with_http_info(file_file_alternate_content_source_href, patchedfile_file_alternate_content_source)
|
528
|
+
|
529
|
+
```ruby
|
530
|
+
begin
|
531
|
+
# Update a file alternate content source
|
532
|
+
data, status_code, headers = api_instance.partial_update_with_http_info(file_file_alternate_content_source_href, patchedfile_file_alternate_content_source)
|
533
|
+
p status_code # => 2xx
|
534
|
+
p headers # => { ... }
|
535
|
+
p data # => <AsyncOperationResponse>
|
536
|
+
rescue PulpFileClient::ApiError => e
|
537
|
+
puts "Error when calling AcsFileApi->partial_update_with_http_info: #{e}"
|
538
|
+
end
|
539
|
+
```
|
423
540
|
|
541
|
+
### Parameters
|
424
542
|
|
425
|
-
Name | Type | Description
|
426
|
-
|
427
|
-
**file_file_alternate_content_source_href** | **String
|
428
|
-
**patchedfile_file_alternate_content_source** | [**PatchedfileFileAlternateContentSource**](PatchedfileFileAlternateContentSource.md)| |
|
543
|
+
| Name | Type | Description | Notes |
|
544
|
+
| ---- | ---- | ----------- | ----- |
|
545
|
+
| **file_file_alternate_content_source_href** | **String** | | |
|
546
|
+
| **patchedfile_file_alternate_content_source** | [**PatchedfileFileAlternateContentSource**](PatchedfileFileAlternateContentSource.md) | | |
|
429
547
|
|
430
548
|
### Return type
|
431
549
|
|
@@ -443,16 +561,16 @@ Name | Type | Description | Notes
|
|
443
561
|
|
444
562
|
## read
|
445
563
|
|
446
|
-
> FileFileAlternateContentSourceResponse read(file_file_alternate_content_source_href, opts)
|
564
|
+
> <FileFileAlternateContentSourceResponse> read(file_file_alternate_content_source_href, opts)
|
447
565
|
|
448
566
|
Inspect a file alternate content source
|
449
567
|
|
450
568
|
Alternate Content Source ViewSet for File
|
451
569
|
|
452
|
-
###
|
570
|
+
### Examples
|
453
571
|
|
454
572
|
```ruby
|
455
|
-
|
573
|
+
require 'time'
|
456
574
|
require 'pulp_file_client'
|
457
575
|
# setup authorization
|
458
576
|
PulpFileClient.configure do |config|
|
@@ -464,27 +582,44 @@ end
|
|
464
582
|
api_instance = PulpFileClient::AcsFileApi.new
|
465
583
|
file_file_alternate_content_source_href = 'file_file_alternate_content_source_href_example' # String |
|
466
584
|
opts = {
|
467
|
-
fields: ['
|
468
|
-
exclude_fields: ['
|
585
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
586
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
469
587
|
}
|
470
588
|
|
471
589
|
begin
|
472
|
-
#Inspect a file alternate content source
|
590
|
+
# Inspect a file alternate content source
|
473
591
|
result = api_instance.read(file_file_alternate_content_source_href, opts)
|
474
592
|
p result
|
475
593
|
rescue PulpFileClient::ApiError => e
|
476
|
-
puts "
|
594
|
+
puts "Error when calling AcsFileApi->read: #{e}"
|
477
595
|
end
|
478
596
|
```
|
479
597
|
|
480
|
-
|
598
|
+
#### Using the read_with_http_info variant
|
599
|
+
|
600
|
+
This returns an Array which contains the response data, status code and headers.
|
601
|
+
|
602
|
+
> <Array(<FileFileAlternateContentSourceResponse>, Integer, Hash)> read_with_http_info(file_file_alternate_content_source_href, opts)
|
603
|
+
|
604
|
+
```ruby
|
605
|
+
begin
|
606
|
+
# Inspect a file alternate content source
|
607
|
+
data, status_code, headers = api_instance.read_with_http_info(file_file_alternate_content_source_href, opts)
|
608
|
+
p status_code # => 2xx
|
609
|
+
p headers # => { ... }
|
610
|
+
p data # => <FileFileAlternateContentSourceResponse>
|
611
|
+
rescue PulpFileClient::ApiError => e
|
612
|
+
puts "Error when calling AcsFileApi->read_with_http_info: #{e}"
|
613
|
+
end
|
614
|
+
```
|
481
615
|
|
616
|
+
### Parameters
|
482
617
|
|
483
|
-
Name | Type | Description
|
484
|
-
|
485
|
-
**file_file_alternate_content_source_href** | **String
|
486
|
-
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
487
|
-
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
618
|
+
| Name | Type | Description | Notes |
|
619
|
+
| ---- | ---- | ----------- | ----- |
|
620
|
+
| **file_file_alternate_content_source_href** | **String** | | |
|
621
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
622
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
488
623
|
|
489
624
|
### Return type
|
490
625
|
|
@@ -502,16 +637,16 @@ Name | Type | Description | Notes
|
|
502
637
|
|
503
638
|
## refresh
|
504
639
|
|
505
|
-
> TaskGroupOperationResponse refresh(file_file_alternate_content_source_href)
|
640
|
+
> <TaskGroupOperationResponse> refresh(file_file_alternate_content_source_href)
|
506
641
|
|
507
642
|
Refresh metadata
|
508
643
|
|
509
644
|
Trigger an asynchronous task to create Alternate Content Source content.
|
510
645
|
|
511
|
-
###
|
646
|
+
### Examples
|
512
647
|
|
513
648
|
```ruby
|
514
|
-
|
649
|
+
require 'time'
|
515
650
|
require 'pulp_file_client'
|
516
651
|
# setup authorization
|
517
652
|
PulpFileClient.configure do |config|
|
@@ -524,20 +659,37 @@ api_instance = PulpFileClient::AcsFileApi.new
|
|
524
659
|
file_file_alternate_content_source_href = 'file_file_alternate_content_source_href_example' # String |
|
525
660
|
|
526
661
|
begin
|
527
|
-
#Refresh metadata
|
662
|
+
# Refresh metadata
|
528
663
|
result = api_instance.refresh(file_file_alternate_content_source_href)
|
529
664
|
p result
|
530
665
|
rescue PulpFileClient::ApiError => e
|
531
|
-
puts "
|
666
|
+
puts "Error when calling AcsFileApi->refresh: #{e}"
|
532
667
|
end
|
533
668
|
```
|
534
669
|
|
535
|
-
|
670
|
+
#### Using the refresh_with_http_info variant
|
536
671
|
|
672
|
+
This returns an Array which contains the response data, status code and headers.
|
537
673
|
|
538
|
-
|
539
|
-
|
540
|
-
|
674
|
+
> <Array(<TaskGroupOperationResponse>, Integer, Hash)> refresh_with_http_info(file_file_alternate_content_source_href)
|
675
|
+
|
676
|
+
```ruby
|
677
|
+
begin
|
678
|
+
# Refresh metadata
|
679
|
+
data, status_code, headers = api_instance.refresh_with_http_info(file_file_alternate_content_source_href)
|
680
|
+
p status_code # => 2xx
|
681
|
+
p headers # => { ... }
|
682
|
+
p data # => <TaskGroupOperationResponse>
|
683
|
+
rescue PulpFileClient::ApiError => e
|
684
|
+
puts "Error when calling AcsFileApi->refresh_with_http_info: #{e}"
|
685
|
+
end
|
686
|
+
```
|
687
|
+
|
688
|
+
### Parameters
|
689
|
+
|
690
|
+
| Name | Type | Description | Notes |
|
691
|
+
| ---- | ---- | ----------- | ----- |
|
692
|
+
| **file_file_alternate_content_source_href** | **String** | | |
|
541
693
|
|
542
694
|
### Return type
|
543
695
|
|
@@ -555,16 +707,16 @@ Name | Type | Description | Notes
|
|
555
707
|
|
556
708
|
## remove_role
|
557
709
|
|
558
|
-
> NestedRoleResponse remove_role(file_file_alternate_content_source_href, nested_role)
|
710
|
+
> <NestedRoleResponse> remove_role(file_file_alternate_content_source_href, nested_role)
|
559
711
|
|
560
712
|
Remove a role
|
561
713
|
|
562
714
|
Remove a role for this object from users/groups.
|
563
715
|
|
564
|
-
###
|
716
|
+
### Examples
|
565
717
|
|
566
718
|
```ruby
|
567
|
-
|
719
|
+
require 'time'
|
568
720
|
require 'pulp_file_client'
|
569
721
|
# setup authorization
|
570
722
|
PulpFileClient.configure do |config|
|
@@ -575,24 +727,41 @@ end
|
|
575
727
|
|
576
728
|
api_instance = PulpFileClient::AcsFileApi.new
|
577
729
|
file_file_alternate_content_source_href = 'file_file_alternate_content_source_href_example' # String |
|
578
|
-
nested_role = PulpFileClient::NestedRole.new # NestedRole |
|
730
|
+
nested_role = PulpFileClient::NestedRole.new({role: 'role_example'}) # NestedRole |
|
579
731
|
|
580
732
|
begin
|
581
|
-
#Remove a role
|
733
|
+
# Remove a role
|
582
734
|
result = api_instance.remove_role(file_file_alternate_content_source_href, nested_role)
|
583
735
|
p result
|
584
736
|
rescue PulpFileClient::ApiError => e
|
585
|
-
puts "
|
737
|
+
puts "Error when calling AcsFileApi->remove_role: #{e}"
|
586
738
|
end
|
587
739
|
```
|
588
740
|
|
589
|
-
|
741
|
+
#### Using the remove_role_with_http_info variant
|
742
|
+
|
743
|
+
This returns an Array which contains the response data, status code and headers.
|
590
744
|
|
745
|
+
> <Array(<NestedRoleResponse>, Integer, Hash)> remove_role_with_http_info(file_file_alternate_content_source_href, nested_role)
|
591
746
|
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
747
|
+
```ruby
|
748
|
+
begin
|
749
|
+
# Remove a role
|
750
|
+
data, status_code, headers = api_instance.remove_role_with_http_info(file_file_alternate_content_source_href, nested_role)
|
751
|
+
p status_code # => 2xx
|
752
|
+
p headers # => { ... }
|
753
|
+
p data # => <NestedRoleResponse>
|
754
|
+
rescue PulpFileClient::ApiError => e
|
755
|
+
puts "Error when calling AcsFileApi->remove_role_with_http_info: #{e}"
|
756
|
+
end
|
757
|
+
```
|
758
|
+
|
759
|
+
### Parameters
|
760
|
+
|
761
|
+
| Name | Type | Description | Notes |
|
762
|
+
| ---- | ---- | ----------- | ----- |
|
763
|
+
| **file_file_alternate_content_source_href** | **String** | | |
|
764
|
+
| **nested_role** | [**NestedRole**](NestedRole.md) | | |
|
596
765
|
|
597
766
|
### Return type
|
598
767
|
|
@@ -610,16 +779,16 @@ Name | Type | Description | Notes
|
|
610
779
|
|
611
780
|
## update
|
612
781
|
|
613
|
-
> AsyncOperationResponse update(file_file_alternate_content_source_href, file_file_alternate_content_source)
|
782
|
+
> <AsyncOperationResponse> update(file_file_alternate_content_source_href, file_file_alternate_content_source)
|
614
783
|
|
615
784
|
Update a file alternate content source
|
616
785
|
|
617
786
|
Trigger an asynchronous update task
|
618
787
|
|
619
|
-
###
|
788
|
+
### Examples
|
620
789
|
|
621
790
|
```ruby
|
622
|
-
|
791
|
+
require 'time'
|
623
792
|
require 'pulp_file_client'
|
624
793
|
# setup authorization
|
625
794
|
PulpFileClient.configure do |config|
|
@@ -630,24 +799,41 @@ end
|
|
630
799
|
|
631
800
|
api_instance = PulpFileClient::AcsFileApi.new
|
632
801
|
file_file_alternate_content_source_href = 'file_file_alternate_content_source_href_example' # String |
|
633
|
-
file_file_alternate_content_source = PulpFileClient::FileFileAlternateContentSource.new # FileFileAlternateContentSource |
|
802
|
+
file_file_alternate_content_source = PulpFileClient::FileFileAlternateContentSource.new({name: 'name_example', remote: 'remote_example'}) # FileFileAlternateContentSource |
|
634
803
|
|
635
804
|
begin
|
636
|
-
#Update a file alternate content source
|
805
|
+
# Update a file alternate content source
|
637
806
|
result = api_instance.update(file_file_alternate_content_source_href, file_file_alternate_content_source)
|
638
807
|
p result
|
639
808
|
rescue PulpFileClient::ApiError => e
|
640
|
-
puts "
|
809
|
+
puts "Error when calling AcsFileApi->update: #{e}"
|
641
810
|
end
|
642
811
|
```
|
643
812
|
|
644
|
-
|
813
|
+
#### Using the update_with_http_info variant
|
645
814
|
|
815
|
+
This returns an Array which contains the response data, status code and headers.
|
816
|
+
|
817
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> update_with_http_info(file_file_alternate_content_source_href, file_file_alternate_content_source)
|
818
|
+
|
819
|
+
```ruby
|
820
|
+
begin
|
821
|
+
# Update a file alternate content source
|
822
|
+
data, status_code, headers = api_instance.update_with_http_info(file_file_alternate_content_source_href, file_file_alternate_content_source)
|
823
|
+
p status_code # => 2xx
|
824
|
+
p headers # => { ... }
|
825
|
+
p data # => <AsyncOperationResponse>
|
826
|
+
rescue PulpFileClient::ApiError => e
|
827
|
+
puts "Error when calling AcsFileApi->update_with_http_info: #{e}"
|
828
|
+
end
|
829
|
+
```
|
830
|
+
|
831
|
+
### Parameters
|
646
832
|
|
647
|
-
Name | Type | Description
|
648
|
-
|
649
|
-
**file_file_alternate_content_source_href** | **String
|
650
|
-
**file_file_alternate_content_source** | [**FileFileAlternateContentSource**](FileFileAlternateContentSource.md)| |
|
833
|
+
| Name | Type | Description | Notes |
|
834
|
+
| ---- | ---- | ----------- | ----- |
|
835
|
+
| **file_file_alternate_content_source_href** | **String** | | |
|
836
|
+
| **file_file_alternate_content_source** | [**FileFileAlternateContentSource**](FileFileAlternateContentSource.md) | | |
|
651
837
|
|
652
838
|
### Return type
|
653
839
|
|