pulp_file_client 1.10.5 → 1.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +35 -12
- data/docs/AcsFileApi.md +235 -8
- data/docs/ContentFilesApi.md +5 -3
- data/docs/DistributionsFileApi.md +230 -2
- data/docs/FileFileContent.md +3 -1
- data/docs/FileFileRemote.md +3 -3
- data/docs/FileFileRemoteResponse.md +1 -1
- data/docs/MyPermissionsResponse.md +17 -0
- data/docs/NestedRole.md +21 -0
- data/docs/NestedRoleResponse.md +21 -0
- data/docs/ObjectRolesResponse.md +17 -0
- data/docs/PatchedfileFileRemote.md +3 -3
- data/docs/PublicationsFileApi.md +232 -2
- data/docs/RemotesFileApi.md +230 -2
- data/docs/Repair.md +17 -0
- data/docs/RepositoriesFileApi.md +233 -4
- data/docs/RepositoriesFileVersionsApi.md +6 -6
- data/lib/pulp_file_client/api/acs_file_api.rb +281 -15
- data/lib/pulp_file_client/api/content_files_api.rb +14 -3
- data/lib/pulp_file_client/api/distributions_file_api.rb +275 -3
- data/lib/pulp_file_client/api/publications_file_api.rb +278 -3
- data/lib/pulp_file_client/api/remotes_file_api.rb +275 -3
- data/lib/pulp_file_client/api/repositories_file_api.rb +277 -3
- data/lib/pulp_file_client/api/repositories_file_versions_api.rb +16 -12
- data/lib/pulp_file_client/api_client.rb +1 -1
- data/lib/pulp_file_client/models/file_file_alternate_content_source.rb +19 -0
- data/lib/pulp_file_client/models/file_file_content.rb +33 -4
- data/lib/pulp_file_client/models/file_file_distribution.rb +38 -0
- data/lib/pulp_file_client/models/file_file_publication.rb +15 -0
- data/lib/pulp_file_client/models/file_file_remote.rb +161 -3
- data/lib/pulp_file_client/models/file_file_remote_response.rb +1 -1
- data/lib/pulp_file_client/models/file_file_repository.rb +49 -0
- data/lib/pulp_file_client/models/{repository_version.rb → my_permissions_response.rb} +17 -12
- data/lib/pulp_file_client/models/{content_summary.rb → nested_role.rb} +28 -40
- data/lib/pulp_file_client/models/nested_role_response.rb +234 -0
- data/lib/pulp_file_client/models/object_roles_response.rb +213 -0
- data/lib/pulp_file_client/models/patchedfile_file_alternate_content_source.rb +15 -0
- data/lib/pulp_file_client/models/patchedfile_file_distribution.rb +30 -0
- data/lib/pulp_file_client/models/patchedfile_file_remote.rb +153 -3
- data/lib/pulp_file_client/models/patchedfile_file_repository.rb +45 -0
- data/lib/pulp_file_client/models/repair.rb +209 -0
- data/lib/pulp_file_client/version.rb +1 -1
- data/lib/pulp_file_client.rb +5 -2
- data/pulp_file_client.gemspec +1 -1
- data/spec/api/acs_file_api_spec.rb +52 -2
- data/spec/api/content_files_api_spec.rb +2 -1
- data/spec/api/distributions_file_api_spec.rb +51 -1
- data/spec/api/publications_file_api_spec.rb +52 -1
- data/spec/api/remotes_file_api_spec.rb +51 -1
- data/spec/api/repositories_file_api_spec.rb +52 -1
- data/spec/api/repositories_file_versions_api_spec.rb +2 -2
- data/spec/models/file_file_content_spec.rb +6 -0
- data/spec/models/my_permissions_response_spec.rb +41 -0
- data/spec/models/nested_role_response_spec.rb +53 -0
- data/spec/models/{content_summary_spec.rb → nested_role_spec.rb} +9 -9
- data/spec/models/object_roles_response_spec.rb +41 -0
- data/spec/models/{repository_version_spec.rb → repair_spec.rb} +7 -7
- metadata +48 -36
- data/docs/ContentSummary.md +0 -21
- data/docs/RepositoryVersion.md +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6875c22f9a6e845f0bc6368a74450314b238d3eb187a6f4c69ba60a5008ebac
|
4
|
+
data.tar.gz: 8eb5236676f8b36b7026c7b58870f9f5507b1c35e328a8786c76b7bcc7f687fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 772ca5f1eef2b9a2a8c86c0c87936cb2379ce1d9cc99f1d108f5d07c13df452376c65daf204e52f573aa4cf4bec4326ae42179f24e800afc0a29cc61058d688a
|
7
|
+
data.tar.gz: cad5a5041d12ddeb24e1c4a977e3923f9b344dd9fe384970fa7142bfa35f1d1a4c0cf963b199ed68af6f0cd9edd4921c8ab2dd3d09cbfbeb822fa391453573c4
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: v3
|
10
|
-
- Package version: 1.
|
10
|
+
- Package version: 1.11.0
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build pulp_file_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./pulp_file_client-1.
|
27
|
+
gem install ./pulp_file_client-1.11.0.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_file_client-1.
|
30
|
+
(for development, run `gem install --dev ./pulp_file_client-1.11.0.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'pulp_file_client', '~> 1.
|
36
|
+
gem 'pulp_file_client', '~> 1.11.0'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -65,14 +65,14 @@ PulpFileClient.configure do |config|
|
|
65
65
|
end
|
66
66
|
|
67
67
|
api_instance = PulpFileClient::AcsFileApi.new
|
68
|
-
|
68
|
+
file_file_alternate_content_source_href = 'file_file_alternate_content_source_href_example' # String |
|
69
|
+
nested_role = PulpFileClient::NestedRole.new # NestedRole |
|
69
70
|
|
70
71
|
begin
|
71
|
-
|
72
|
-
result = api_instance.create(file_file_alternate_content_source)
|
72
|
+
result = api_instance.add_role(file_file_alternate_content_source_href, nested_role)
|
73
73
|
p result
|
74
74
|
rescue PulpFileClient::ApiError => e
|
75
|
-
puts "Exception when calling AcsFileApi->
|
75
|
+
puts "Exception when calling AcsFileApi->add_role: #{e}"
|
76
76
|
end
|
77
77
|
|
78
78
|
```
|
@@ -83,39 +83,59 @@ All URIs are relative to *https://pulp*
|
|
83
83
|
|
84
84
|
Class | Method | HTTP request | Description
|
85
85
|
------------ | ------------- | ------------- | -------------
|
86
|
+
*PulpFileClient::AcsFileApi* | [**add_role**](docs/AcsFileApi.md#add_role) | **POST** {file_file_alternate_content_source_href}add_role/ |
|
86
87
|
*PulpFileClient::AcsFileApi* | [**create**](docs/AcsFileApi.md#create) | **POST** /pulp/api/v3/acs/file/file/ | Create a file alternate content source
|
87
88
|
*PulpFileClient::AcsFileApi* | [**delete**](docs/AcsFileApi.md#delete) | **DELETE** {file_file_alternate_content_source_href} | Delete a file alternate content source
|
88
89
|
*PulpFileClient::AcsFileApi* | [**list**](docs/AcsFileApi.md#list) | **GET** /pulp/api/v3/acs/file/file/ | List file alternate content sources
|
90
|
+
*PulpFileClient::AcsFileApi* | [**list_roles**](docs/AcsFileApi.md#list_roles) | **GET** {file_file_alternate_content_source_href}list_roles/ |
|
91
|
+
*PulpFileClient::AcsFileApi* | [**my_permissions**](docs/AcsFileApi.md#my_permissions) | **GET** {file_file_alternate_content_source_href}my_permissions/ |
|
89
92
|
*PulpFileClient::AcsFileApi* | [**partial_update**](docs/AcsFileApi.md#partial_update) | **PATCH** {file_file_alternate_content_source_href} | Update a file alternate content source
|
90
93
|
*PulpFileClient::AcsFileApi* | [**read**](docs/AcsFileApi.md#read) | **GET** {file_file_alternate_content_source_href} | Inspect a file alternate content source
|
91
|
-
*PulpFileClient::AcsFileApi* | [**refresh**](docs/AcsFileApi.md#refresh) | **POST** {file_file_alternate_content_source_href}refresh/ |
|
94
|
+
*PulpFileClient::AcsFileApi* | [**refresh**](docs/AcsFileApi.md#refresh) | **POST** {file_file_alternate_content_source_href}refresh/ | Refresh metadata
|
95
|
+
*PulpFileClient::AcsFileApi* | [**remove_role**](docs/AcsFileApi.md#remove_role) | **POST** {file_file_alternate_content_source_href}remove_role/ |
|
92
96
|
*PulpFileClient::AcsFileApi* | [**update**](docs/AcsFileApi.md#update) | **PUT** {file_file_alternate_content_source_href} | Update a file alternate content source
|
93
97
|
*PulpFileClient::ContentFilesApi* | [**create**](docs/ContentFilesApi.md#create) | **POST** /pulp/api/v3/content/file/files/ | Create a file content
|
94
98
|
*PulpFileClient::ContentFilesApi* | [**list**](docs/ContentFilesApi.md#list) | **GET** /pulp/api/v3/content/file/files/ | List file contents
|
95
99
|
*PulpFileClient::ContentFilesApi* | [**read**](docs/ContentFilesApi.md#read) | **GET** {file_file_content_href} | Inspect a file content
|
100
|
+
*PulpFileClient::DistributionsFileApi* | [**add_role**](docs/DistributionsFileApi.md#add_role) | **POST** {file_file_distribution_href}add_role/ |
|
96
101
|
*PulpFileClient::DistributionsFileApi* | [**create**](docs/DistributionsFileApi.md#create) | **POST** /pulp/api/v3/distributions/file/file/ | Create a file distribution
|
97
102
|
*PulpFileClient::DistributionsFileApi* | [**delete**](docs/DistributionsFileApi.md#delete) | **DELETE** {file_file_distribution_href} | Delete a file distribution
|
98
103
|
*PulpFileClient::DistributionsFileApi* | [**list**](docs/DistributionsFileApi.md#list) | **GET** /pulp/api/v3/distributions/file/file/ | List file distributions
|
104
|
+
*PulpFileClient::DistributionsFileApi* | [**list_roles**](docs/DistributionsFileApi.md#list_roles) | **GET** {file_file_distribution_href}list_roles/ |
|
105
|
+
*PulpFileClient::DistributionsFileApi* | [**my_permissions**](docs/DistributionsFileApi.md#my_permissions) | **GET** {file_file_distribution_href}my_permissions/ |
|
99
106
|
*PulpFileClient::DistributionsFileApi* | [**partial_update**](docs/DistributionsFileApi.md#partial_update) | **PATCH** {file_file_distribution_href} | Update a file distribution
|
100
107
|
*PulpFileClient::DistributionsFileApi* | [**read**](docs/DistributionsFileApi.md#read) | **GET** {file_file_distribution_href} | Inspect a file distribution
|
108
|
+
*PulpFileClient::DistributionsFileApi* | [**remove_role**](docs/DistributionsFileApi.md#remove_role) | **POST** {file_file_distribution_href}remove_role/ |
|
101
109
|
*PulpFileClient::DistributionsFileApi* | [**update**](docs/DistributionsFileApi.md#update) | **PUT** {file_file_distribution_href} | Update a file distribution
|
110
|
+
*PulpFileClient::PublicationsFileApi* | [**add_role**](docs/PublicationsFileApi.md#add_role) | **POST** {file_file_publication_href}add_role/ |
|
102
111
|
*PulpFileClient::PublicationsFileApi* | [**create**](docs/PublicationsFileApi.md#create) | **POST** /pulp/api/v3/publications/file/file/ | Create a file publication
|
103
112
|
*PulpFileClient::PublicationsFileApi* | [**delete**](docs/PublicationsFileApi.md#delete) | **DELETE** {file_file_publication_href} | Delete a file publication
|
104
113
|
*PulpFileClient::PublicationsFileApi* | [**list**](docs/PublicationsFileApi.md#list) | **GET** /pulp/api/v3/publications/file/file/ | List file publications
|
114
|
+
*PulpFileClient::PublicationsFileApi* | [**list_roles**](docs/PublicationsFileApi.md#list_roles) | **GET** {file_file_publication_href}list_roles/ |
|
115
|
+
*PulpFileClient::PublicationsFileApi* | [**my_permissions**](docs/PublicationsFileApi.md#my_permissions) | **GET** {file_file_publication_href}my_permissions/ |
|
105
116
|
*PulpFileClient::PublicationsFileApi* | [**read**](docs/PublicationsFileApi.md#read) | **GET** {file_file_publication_href} | Inspect a file publication
|
117
|
+
*PulpFileClient::PublicationsFileApi* | [**remove_role**](docs/PublicationsFileApi.md#remove_role) | **POST** {file_file_publication_href}remove_role/ |
|
118
|
+
*PulpFileClient::RemotesFileApi* | [**add_role**](docs/RemotesFileApi.md#add_role) | **POST** {file_file_remote_href}add_role/ |
|
106
119
|
*PulpFileClient::RemotesFileApi* | [**create**](docs/RemotesFileApi.md#create) | **POST** /pulp/api/v3/remotes/file/file/ | Create a file remote
|
107
120
|
*PulpFileClient::RemotesFileApi* | [**delete**](docs/RemotesFileApi.md#delete) | **DELETE** {file_file_remote_href} | Delete a file remote
|
108
121
|
*PulpFileClient::RemotesFileApi* | [**list**](docs/RemotesFileApi.md#list) | **GET** /pulp/api/v3/remotes/file/file/ | List file remotes
|
122
|
+
*PulpFileClient::RemotesFileApi* | [**list_roles**](docs/RemotesFileApi.md#list_roles) | **GET** {file_file_remote_href}list_roles/ |
|
123
|
+
*PulpFileClient::RemotesFileApi* | [**my_permissions**](docs/RemotesFileApi.md#my_permissions) | **GET** {file_file_remote_href}my_permissions/ |
|
109
124
|
*PulpFileClient::RemotesFileApi* | [**partial_update**](docs/RemotesFileApi.md#partial_update) | **PATCH** {file_file_remote_href} | Update a file remote
|
110
125
|
*PulpFileClient::RemotesFileApi* | [**read**](docs/RemotesFileApi.md#read) | **GET** {file_file_remote_href} | Inspect a file remote
|
126
|
+
*PulpFileClient::RemotesFileApi* | [**remove_role**](docs/RemotesFileApi.md#remove_role) | **POST** {file_file_remote_href}remove_role/ |
|
111
127
|
*PulpFileClient::RemotesFileApi* | [**update**](docs/RemotesFileApi.md#update) | **PUT** {file_file_remote_href} | Update a file remote
|
128
|
+
*PulpFileClient::RepositoriesFileApi* | [**add_role**](docs/RepositoriesFileApi.md#add_role) | **POST** {file_file_repository_href}add_role/ |
|
112
129
|
*PulpFileClient::RepositoriesFileApi* | [**create**](docs/RepositoriesFileApi.md#create) | **POST** /pulp/api/v3/repositories/file/file/ | Create a file repository
|
113
130
|
*PulpFileClient::RepositoriesFileApi* | [**delete**](docs/RepositoriesFileApi.md#delete) | **DELETE** {file_file_repository_href} | Delete a file repository
|
114
131
|
*PulpFileClient::RepositoriesFileApi* | [**list**](docs/RepositoriesFileApi.md#list) | **GET** /pulp/api/v3/repositories/file/file/ | List file repositorys
|
132
|
+
*PulpFileClient::RepositoriesFileApi* | [**list_roles**](docs/RepositoriesFileApi.md#list_roles) | **GET** {file_file_repository_href}list_roles/ |
|
115
133
|
*PulpFileClient::RepositoriesFileApi* | [**modify**](docs/RepositoriesFileApi.md#modify) | **POST** {file_file_repository_href}modify/ | Modify Repository Content
|
134
|
+
*PulpFileClient::RepositoriesFileApi* | [**my_permissions**](docs/RepositoriesFileApi.md#my_permissions) | **GET** {file_file_repository_href}my_permissions/ |
|
116
135
|
*PulpFileClient::RepositoriesFileApi* | [**partial_update**](docs/RepositoriesFileApi.md#partial_update) | **PATCH** {file_file_repository_href} | Update a file repository
|
117
136
|
*PulpFileClient::RepositoriesFileApi* | [**read**](docs/RepositoriesFileApi.md#read) | **GET** {file_file_repository_href} | Inspect a file repository
|
118
|
-
*PulpFileClient::RepositoriesFileApi* | [**
|
137
|
+
*PulpFileClient::RepositoriesFileApi* | [**remove_role**](docs/RepositoriesFileApi.md#remove_role) | **POST** {file_file_repository_href}remove_role/ |
|
138
|
+
*PulpFileClient::RepositoriesFileApi* | [**sync**](docs/RepositoriesFileApi.md#sync) | **POST** {file_file_repository_href}sync/ | Sync from a remote
|
119
139
|
*PulpFileClient::RepositoriesFileApi* | [**update**](docs/RepositoriesFileApi.md#update) | **PUT** {file_file_repository_href} | Update a file repository
|
120
140
|
*PulpFileClient::RepositoriesFileVersionsApi* | [**delete**](docs/RepositoriesFileVersionsApi.md#delete) | **DELETE** {file_file_repository_version_href} | Delete a repository version
|
121
141
|
*PulpFileClient::RepositoriesFileVersionsApi* | [**list**](docs/RepositoriesFileVersionsApi.md#list) | **GET** {file_file_repository_href}versions/ | List repository versions
|
@@ -126,7 +146,6 @@ Class | Method | HTTP request | Description
|
|
126
146
|
## Documentation for Models
|
127
147
|
|
128
148
|
- [PulpFileClient::AsyncOperationResponse](docs/AsyncOperationResponse.md)
|
129
|
-
- [PulpFileClient::ContentSummary](docs/ContentSummary.md)
|
130
149
|
- [PulpFileClient::ContentSummaryResponse](docs/ContentSummaryResponse.md)
|
131
150
|
- [PulpFileClient::FileFileAlternateContentSource](docs/FileFileAlternateContentSource.md)
|
132
151
|
- [PulpFileClient::FileFileAlternateContentSourceResponse](docs/FileFileAlternateContentSourceResponse.md)
|
@@ -140,6 +159,10 @@ Class | Method | HTTP request | Description
|
|
140
159
|
- [PulpFileClient::FileFileRemoteResponse](docs/FileFileRemoteResponse.md)
|
141
160
|
- [PulpFileClient::FileFileRepository](docs/FileFileRepository.md)
|
142
161
|
- [PulpFileClient::FileFileRepositoryResponse](docs/FileFileRepositoryResponse.md)
|
162
|
+
- [PulpFileClient::MyPermissionsResponse](docs/MyPermissionsResponse.md)
|
163
|
+
- [PulpFileClient::NestedRole](docs/NestedRole.md)
|
164
|
+
- [PulpFileClient::NestedRoleResponse](docs/NestedRoleResponse.md)
|
165
|
+
- [PulpFileClient::ObjectRolesResponse](docs/ObjectRolesResponse.md)
|
143
166
|
- [PulpFileClient::PaginatedRepositoryVersionResponseList](docs/PaginatedRepositoryVersionResponseList.md)
|
144
167
|
- [PulpFileClient::PaginatedfileFileAlternateContentSourceResponseList](docs/PaginatedfileFileAlternateContentSourceResponseList.md)
|
145
168
|
- [PulpFileClient::PaginatedfileFileContentResponseList](docs/PaginatedfileFileContentResponseList.md)
|
@@ -152,9 +175,9 @@ Class | Method | HTTP request | Description
|
|
152
175
|
- [PulpFileClient::PatchedfileFileRemote](docs/PatchedfileFileRemote.md)
|
153
176
|
- [PulpFileClient::PatchedfileFileRepository](docs/PatchedfileFileRepository.md)
|
154
177
|
- [PulpFileClient::PolicyEnum](docs/PolicyEnum.md)
|
178
|
+
- [PulpFileClient::Repair](docs/Repair.md)
|
155
179
|
- [PulpFileClient::RepositoryAddRemoveContent](docs/RepositoryAddRemoveContent.md)
|
156
180
|
- [PulpFileClient::RepositorySyncURL](docs/RepositorySyncURL.md)
|
157
|
-
- [PulpFileClient::RepositoryVersion](docs/RepositoryVersion.md)
|
158
181
|
- [PulpFileClient::RepositoryVersionResponse](docs/RepositoryVersionResponse.md)
|
159
182
|
- [PulpFileClient::TaskGroupOperationResponse](docs/TaskGroupOperationResponse.md)
|
160
183
|
|
data/docs/AcsFileApi.md
CHANGED
@@ -4,16 +4,74 @@ All URIs are relative to *https://pulp*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
+
[**add_role**](AcsFileApi.md#add_role) | **POST** {file_file_alternate_content_source_href}add_role/ |
|
7
8
|
[**create**](AcsFileApi.md#create) | **POST** /pulp/api/v3/acs/file/file/ | Create a file alternate content source
|
8
9
|
[**delete**](AcsFileApi.md#delete) | **DELETE** {file_file_alternate_content_source_href} | Delete a file alternate content source
|
9
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/ |
|
12
|
+
[**my_permissions**](AcsFileApi.md#my_permissions) | **GET** {file_file_alternate_content_source_href}my_permissions/ |
|
10
13
|
[**partial_update**](AcsFileApi.md#partial_update) | **PATCH** {file_file_alternate_content_source_href} | Update a file alternate content source
|
11
14
|
[**read**](AcsFileApi.md#read) | **GET** {file_file_alternate_content_source_href} | Inspect a file alternate content source
|
12
|
-
[**refresh**](AcsFileApi.md#refresh) | **POST** {file_file_alternate_content_source_href}refresh/ |
|
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/ |
|
13
17
|
[**update**](AcsFileApi.md#update) | **PUT** {file_file_alternate_content_source_href} | Update a file alternate content source
|
14
18
|
|
15
19
|
|
16
20
|
|
21
|
+
## add_role
|
22
|
+
|
23
|
+
> NestedRoleResponse add_role(file_file_alternate_content_source_href, nested_role)
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
Add a role for this object to users/groups.
|
28
|
+
|
29
|
+
### Example
|
30
|
+
|
31
|
+
```ruby
|
32
|
+
# load the gem
|
33
|
+
require 'pulp_file_client'
|
34
|
+
# setup authorization
|
35
|
+
PulpFileClient.configure do |config|
|
36
|
+
# Configure HTTP basic authorization: basicAuth
|
37
|
+
config.username = 'YOUR USERNAME'
|
38
|
+
config.password = 'YOUR PASSWORD'
|
39
|
+
end
|
40
|
+
|
41
|
+
api_instance = PulpFileClient::AcsFileApi.new
|
42
|
+
file_file_alternate_content_source_href = 'file_file_alternate_content_source_href_example' # String |
|
43
|
+
nested_role = PulpFileClient::NestedRole.new # NestedRole |
|
44
|
+
|
45
|
+
begin
|
46
|
+
result = api_instance.add_role(file_file_alternate_content_source_href, nested_role)
|
47
|
+
p result
|
48
|
+
rescue PulpFileClient::ApiError => e
|
49
|
+
puts "Exception when calling AcsFileApi->add_role: #{e}"
|
50
|
+
end
|
51
|
+
```
|
52
|
+
|
53
|
+
### Parameters
|
54
|
+
|
55
|
+
|
56
|
+
Name | Type | Description | Notes
|
57
|
+
------------- | ------------- | ------------- | -------------
|
58
|
+
**file_file_alternate_content_source_href** | **String**| |
|
59
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
60
|
+
|
61
|
+
### Return type
|
62
|
+
|
63
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
64
|
+
|
65
|
+
### Authorization
|
66
|
+
|
67
|
+
[basicAuth](../README.md#basicAuth)
|
68
|
+
|
69
|
+
### HTTP request headers
|
70
|
+
|
71
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
72
|
+
- **Accept**: application/json
|
73
|
+
|
74
|
+
|
17
75
|
## create
|
18
76
|
|
19
77
|
> FileFileAlternateContentSourceResponse create(file_file_alternate_content_source)
|
@@ -149,7 +207,7 @@ opts = {
|
|
149
207
|
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
150
208
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
151
209
|
offset: 56, # Integer | The initial index from which to return the results.
|
152
|
-
ordering: 'ordering_example', # String |
|
210
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
153
211
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
154
212
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
155
213
|
}
|
@@ -175,7 +233,7 @@ Name | Type | Description | Notes
|
|
175
233
|
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
176
234
|
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
177
235
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
178
|
-
**ordering** | **String
|
236
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
179
237
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
180
238
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
181
239
|
|
@@ -193,6 +251,122 @@ Name | Type | Description | Notes
|
|
193
251
|
- **Accept**: application/json
|
194
252
|
|
195
253
|
|
254
|
+
## list_roles
|
255
|
+
|
256
|
+
> ObjectRolesResponse list_roles(file_file_alternate_content_source_href, opts)
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
List roles assigned to this object.
|
261
|
+
|
262
|
+
### Example
|
263
|
+
|
264
|
+
```ruby
|
265
|
+
# load the gem
|
266
|
+
require 'pulp_file_client'
|
267
|
+
# setup authorization
|
268
|
+
PulpFileClient.configure do |config|
|
269
|
+
# Configure HTTP basic authorization: basicAuth
|
270
|
+
config.username = 'YOUR USERNAME'
|
271
|
+
config.password = 'YOUR PASSWORD'
|
272
|
+
end
|
273
|
+
|
274
|
+
api_instance = PulpFileClient::AcsFileApi.new
|
275
|
+
file_file_alternate_content_source_href = 'file_file_alternate_content_source_href_example' # String |
|
276
|
+
opts = {
|
277
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
278
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
279
|
+
}
|
280
|
+
|
281
|
+
begin
|
282
|
+
result = api_instance.list_roles(file_file_alternate_content_source_href, opts)
|
283
|
+
p result
|
284
|
+
rescue PulpFileClient::ApiError => e
|
285
|
+
puts "Exception when calling AcsFileApi->list_roles: #{e}"
|
286
|
+
end
|
287
|
+
```
|
288
|
+
|
289
|
+
### Parameters
|
290
|
+
|
291
|
+
|
292
|
+
Name | Type | Description | Notes
|
293
|
+
------------- | ------------- | ------------- | -------------
|
294
|
+
**file_file_alternate_content_source_href** | **String**| |
|
295
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
296
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
297
|
+
|
298
|
+
### Return type
|
299
|
+
|
300
|
+
[**ObjectRolesResponse**](ObjectRolesResponse.md)
|
301
|
+
|
302
|
+
### Authorization
|
303
|
+
|
304
|
+
[basicAuth](../README.md#basicAuth)
|
305
|
+
|
306
|
+
### HTTP request headers
|
307
|
+
|
308
|
+
- **Content-Type**: Not defined
|
309
|
+
- **Accept**: application/json
|
310
|
+
|
311
|
+
|
312
|
+
## my_permissions
|
313
|
+
|
314
|
+
> MyPermissionsResponse my_permissions(file_file_alternate_content_source_href, opts)
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
List permissions available to the current user on this object.
|
319
|
+
|
320
|
+
### Example
|
321
|
+
|
322
|
+
```ruby
|
323
|
+
# load the gem
|
324
|
+
require 'pulp_file_client'
|
325
|
+
# setup authorization
|
326
|
+
PulpFileClient.configure do |config|
|
327
|
+
# Configure HTTP basic authorization: basicAuth
|
328
|
+
config.username = 'YOUR USERNAME'
|
329
|
+
config.password = 'YOUR PASSWORD'
|
330
|
+
end
|
331
|
+
|
332
|
+
api_instance = PulpFileClient::AcsFileApi.new
|
333
|
+
file_file_alternate_content_source_href = 'file_file_alternate_content_source_href_example' # String |
|
334
|
+
opts = {
|
335
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
336
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
337
|
+
}
|
338
|
+
|
339
|
+
begin
|
340
|
+
result = api_instance.my_permissions(file_file_alternate_content_source_href, opts)
|
341
|
+
p result
|
342
|
+
rescue PulpFileClient::ApiError => e
|
343
|
+
puts "Exception when calling AcsFileApi->my_permissions: #{e}"
|
344
|
+
end
|
345
|
+
```
|
346
|
+
|
347
|
+
### Parameters
|
348
|
+
|
349
|
+
|
350
|
+
Name | Type | Description | Notes
|
351
|
+
------------- | ------------- | ------------- | -------------
|
352
|
+
**file_file_alternate_content_source_href** | **String**| |
|
353
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
354
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
355
|
+
|
356
|
+
### Return type
|
357
|
+
|
358
|
+
[**MyPermissionsResponse**](MyPermissionsResponse.md)
|
359
|
+
|
360
|
+
### Authorization
|
361
|
+
|
362
|
+
[basicAuth](../README.md#basicAuth)
|
363
|
+
|
364
|
+
### HTTP request headers
|
365
|
+
|
366
|
+
- **Content-Type**: Not defined
|
367
|
+
- **Accept**: application/json
|
368
|
+
|
369
|
+
|
196
370
|
## partial_update
|
197
371
|
|
198
372
|
> AsyncOperationResponse partial_update(file_file_alternate_content_source_href, patchedfile_file_alternate_content_source)
|
@@ -309,9 +483,9 @@ Name | Type | Description | Notes
|
|
309
483
|
|
310
484
|
## refresh
|
311
485
|
|
312
|
-
> TaskGroupOperationResponse refresh(file_file_alternate_content_source_href
|
313
|
-
|
486
|
+
> TaskGroupOperationResponse refresh(file_file_alternate_content_source_href)
|
314
487
|
|
488
|
+
Refresh metadata
|
315
489
|
|
316
490
|
Trigger an asynchronous task to create Alternate Content Source content.
|
317
491
|
|
@@ -329,10 +503,10 @@ end
|
|
329
503
|
|
330
504
|
api_instance = PulpFileClient::AcsFileApi.new
|
331
505
|
file_file_alternate_content_source_href = 'file_file_alternate_content_source_href_example' # String |
|
332
|
-
file_file_alternate_content_source = PulpFileClient::FileFileAlternateContentSource.new # FileFileAlternateContentSource |
|
333
506
|
|
334
507
|
begin
|
335
|
-
|
508
|
+
#Refresh metadata
|
509
|
+
result = api_instance.refresh(file_file_alternate_content_source_href)
|
336
510
|
p result
|
337
511
|
rescue PulpFileClient::ApiError => e
|
338
512
|
puts "Exception when calling AcsFileApi->refresh: #{e}"
|
@@ -345,7 +519,6 @@ end
|
|
345
519
|
Name | Type | Description | Notes
|
346
520
|
------------- | ------------- | ------------- | -------------
|
347
521
|
**file_file_alternate_content_source_href** | **String**| |
|
348
|
-
**file_file_alternate_content_source** | [**FileFileAlternateContentSource**](FileFileAlternateContentSource.md)| |
|
349
522
|
|
350
523
|
### Return type
|
351
524
|
|
@@ -357,6 +530,60 @@ Name | Type | Description | Notes
|
|
357
530
|
|
358
531
|
### HTTP request headers
|
359
532
|
|
533
|
+
- **Content-Type**: Not defined
|
534
|
+
- **Accept**: application/json
|
535
|
+
|
536
|
+
|
537
|
+
## remove_role
|
538
|
+
|
539
|
+
> NestedRoleResponse remove_role(file_file_alternate_content_source_href, nested_role)
|
540
|
+
|
541
|
+
|
542
|
+
|
543
|
+
Remove a role for this object from users/groups.
|
544
|
+
|
545
|
+
### Example
|
546
|
+
|
547
|
+
```ruby
|
548
|
+
# load the gem
|
549
|
+
require 'pulp_file_client'
|
550
|
+
# setup authorization
|
551
|
+
PulpFileClient.configure do |config|
|
552
|
+
# Configure HTTP basic authorization: basicAuth
|
553
|
+
config.username = 'YOUR USERNAME'
|
554
|
+
config.password = 'YOUR PASSWORD'
|
555
|
+
end
|
556
|
+
|
557
|
+
api_instance = PulpFileClient::AcsFileApi.new
|
558
|
+
file_file_alternate_content_source_href = 'file_file_alternate_content_source_href_example' # String |
|
559
|
+
nested_role = PulpFileClient::NestedRole.new # NestedRole |
|
560
|
+
|
561
|
+
begin
|
562
|
+
result = api_instance.remove_role(file_file_alternate_content_source_href, nested_role)
|
563
|
+
p result
|
564
|
+
rescue PulpFileClient::ApiError => e
|
565
|
+
puts "Exception when calling AcsFileApi->remove_role: #{e}"
|
566
|
+
end
|
567
|
+
```
|
568
|
+
|
569
|
+
### Parameters
|
570
|
+
|
571
|
+
|
572
|
+
Name | Type | Description | Notes
|
573
|
+
------------- | ------------- | ------------- | -------------
|
574
|
+
**file_file_alternate_content_source_href** | **String**| |
|
575
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
576
|
+
|
577
|
+
### Return type
|
578
|
+
|
579
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
580
|
+
|
581
|
+
### Authorization
|
582
|
+
|
583
|
+
[basicAuth](../README.md#basicAuth)
|
584
|
+
|
585
|
+
### HTTP request headers
|
586
|
+
|
360
587
|
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
361
588
|
- **Accept**: application/json
|
362
589
|
|
data/docs/ContentFilesApi.md
CHANGED
@@ -35,7 +35,8 @@ relative_path = 'relative_path_example' # String | Path where the artifact is lo
|
|
35
35
|
opts = {
|
36
36
|
artifact: 'artifact_example', # String | Artifact file representing the physical content
|
37
37
|
file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the artifact of the content unit.
|
38
|
-
repository: 'repository_example' # String | A URI of a repository the new content unit should be associated with.
|
38
|
+
repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
|
39
|
+
upload: 'upload_example' # String | An uncommitted upload that may be turned into the artifact of the content unit.
|
39
40
|
}
|
40
41
|
|
41
42
|
begin
|
@@ -56,6 +57,7 @@ Name | Type | Description | Notes
|
|
56
57
|
**artifact** | **String**| Artifact file representing the physical content | [optional]
|
57
58
|
**file** | **File**| An uploaded file that may be turned into the artifact of the content unit. | [optional]
|
58
59
|
**repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
|
60
|
+
**upload** | **String**| An uncommitted upload that may be turned into the artifact of the content unit. | [optional]
|
59
61
|
|
60
62
|
### Return type
|
61
63
|
|
@@ -95,7 +97,7 @@ api_instance = PulpFileClient::ContentFilesApi.new
|
|
95
97
|
opts = {
|
96
98
|
limit: 56, # Integer | Number of results to return per page.
|
97
99
|
offset: 56, # Integer | The initial index from which to return the results.
|
98
|
-
ordering: 'ordering_example', # String |
|
100
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
99
101
|
relative_path: 'relative_path_example', # String | Filter results where relative_path matches value
|
100
102
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
|
101
103
|
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
|
@@ -121,7 +123,7 @@ Name | Type | Description | Notes
|
|
121
123
|
------------- | ------------- | ------------- | -------------
|
122
124
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
123
125
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
124
|
-
**ordering** | **String
|
126
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
125
127
|
**relative_path** | **String**| Filter results where relative_path matches value | [optional]
|
126
128
|
**repository_version** | **String**| Repository Version referenced by HREF | [optional]
|
127
129
|
**repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
|