pulpcore_client 3.21.32 → 3.21.34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +139 -141
- data/docs/AccessPoliciesApi.md +25 -25
- data/docs/ArtifactsApi.md +20 -20
- data/docs/ContentApi.md +5 -5
- data/docs/ContentguardsApi.md +5 -5
- data/docs/ContentguardsContentRedirectApi.md +50 -50
- data/docs/ContentguardsRbacApi.md +50 -50
- data/docs/DistributionsApi.md +5 -5
- data/docs/ExportersFilesystemApi.md +30 -30
- data/docs/ExportersFilesystemExportsApi.md +20 -20
- data/docs/ExportersPulpApi.md +30 -30
- data/docs/ExportersPulpExportsApi.md +20 -20
- data/docs/GroupsApi.md +50 -50
- data/docs/GroupsRolesApi.md +20 -20
- data/docs/GroupsUsersApi.md +15 -15
- data/docs/ImportersPulpApi.md +30 -30
- data/docs/ImportersPulpImportsApi.md +20 -20
- data/docs/OrphansApi.md +5 -5
- data/docs/OrphansCleanupApi.md +5 -5
- data/docs/PublicationsApi.md +5 -5
- data/docs/RemotesApi.md +5 -5
- data/docs/RepairApi.md +5 -5
- data/docs/RepositoriesApi.md +5 -5
- data/docs/RepositoriesReclaimSpaceApi.md +5 -5
- data/docs/RepositoryVersionsApi.md +5 -5
- data/docs/RolesApi.md +30 -30
- data/docs/SigningServicesApi.md +10 -10
- data/docs/TaskGroupsApi.md +10 -10
- data/docs/TaskSchedulesApi.md +30 -30
- data/docs/TasksApi.md +95 -95
- data/docs/UploadsApi.md +50 -50
- data/docs/UsersApi.md +30 -30
- data/docs/UsersRolesApi.md +20 -20
- data/docs/WorkersApi.md +10 -10
- data/lib/pulpcore_client/api/access_policies_api.rb +31 -31
- data/lib/pulpcore_client/api/artifacts_api.rb +29 -29
- data/lib/pulpcore_client/api/content_api.rb +5 -5
- data/lib/pulpcore_client/api/contentguards_api.rb +5 -5
- data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +63 -63
- data/lib/pulpcore_client/api/contentguards_rbac_api.rb +63 -63
- data/lib/pulpcore_client/api/distributions_api.rb +5 -5
- data/lib/pulpcore_client/api/exporters_filesystem_api.rb +37 -37
- data/lib/pulpcore_client/api/exporters_filesystem_exports_api.rb +25 -25
- data/lib/pulpcore_client/api/exporters_pulp_api.rb +37 -37
- data/lib/pulpcore_client/api/exporters_pulp_exports_api.rb +25 -25
- data/lib/pulpcore_client/api/groups_api.rb +63 -63
- data/lib/pulpcore_client/api/groups_roles_api.rb +25 -25
- data/lib/pulpcore_client/api/groups_users_api.rb +19 -19
- data/lib/pulpcore_client/api/importers_pulp_api.rb +37 -37
- data/lib/pulpcore_client/api/importers_pulp_imports_api.rb +25 -25
- data/lib/pulpcore_client/api/orphans_api.rb +5 -5
- data/lib/pulpcore_client/api/orphans_cleanup_api.rb +6 -6
- data/lib/pulpcore_client/api/publications_api.rb +5 -5
- data/lib/pulpcore_client/api/remotes_api.rb +5 -5
- data/lib/pulpcore_client/api/repair_api.rb +6 -6
- data/lib/pulpcore_client/api/repositories_api.rb +5 -5
- data/lib/pulpcore_client/api/repositories_reclaim_space_api.rb +6 -6
- data/lib/pulpcore_client/api/repository_versions_api.rb +5 -5
- data/lib/pulpcore_client/api/roles_api.rb +37 -37
- data/lib/pulpcore_client/api/signing_services_api.rb +11 -11
- data/lib/pulpcore_client/api/task_groups_api.rb +11 -11
- data/lib/pulpcore_client/api/task_schedules_api.rb +37 -37
- data/lib/pulpcore_client/api/tasks_api.rb +119 -119
- data/lib/pulpcore_client/api/uploads_api.rb +65 -65
- data/lib/pulpcore_client/api/users_api.rb +37 -37
- data/lib/pulpcore_client/api/users_roles_api.rb +25 -25
- data/lib/pulpcore_client/api/workers_api.rb +11 -11
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +0 -2
- data/spec/api/access_policies_api_spec.rb +10 -10
- data/spec/api/artifacts_api_spec.rb +8 -8
- data/spec/api/content_api_spec.rb +2 -2
- data/spec/api/contentguards_api_spec.rb +2 -2
- data/spec/api/contentguards_content_redirect_api_spec.rb +20 -20
- data/spec/api/contentguards_rbac_api_spec.rb +20 -20
- data/spec/api/distributions_api_spec.rb +2 -2
- data/spec/api/exporters_filesystem_api_spec.rb +12 -12
- data/spec/api/exporters_filesystem_exports_api_spec.rb +8 -8
- data/spec/api/exporters_pulp_api_spec.rb +12 -12
- data/spec/api/exporters_pulp_exports_api_spec.rb +8 -8
- data/spec/api/groups_api_spec.rb +20 -20
- data/spec/api/groups_roles_api_spec.rb +8 -8
- data/spec/api/groups_users_api_spec.rb +6 -6
- data/spec/api/importers_pulp_api_spec.rb +12 -12
- data/spec/api/importers_pulp_imports_api_spec.rb +8 -8
- data/spec/api/orphans_api_spec.rb +2 -2
- data/spec/api/orphans_cleanup_api_spec.rb +2 -2
- data/spec/api/publications_api_spec.rb +2 -2
- data/spec/api/remotes_api_spec.rb +2 -2
- data/spec/api/repair_api_spec.rb +2 -2
- data/spec/api/repositories_api_spec.rb +2 -2
- data/spec/api/repositories_reclaim_space_api_spec.rb +2 -2
- data/spec/api/repository_versions_api_spec.rb +2 -2
- data/spec/api/roles_api_spec.rb +12 -12
- data/spec/api/signing_services_api_spec.rb +4 -4
- data/spec/api/task_groups_api_spec.rb +4 -4
- data/spec/api/task_schedules_api_spec.rb +12 -12
- data/spec/api/tasks_api_spec.rb +29 -29
- data/spec/api/uploads_api_spec.rb +20 -20
- data/spec/api/users_api_spec.rb +12 -12
- data/spec/api/users_roles_api_spec.rb +8 -8
- data/spec/api/workers_api_spec.rb +4 -4
- metadata +127 -135
- data/docs/DocsApiJsonApi.md +0 -61
- data/docs/DocsApiYamlApi.md +0 -61
- data/lib/pulpcore_client/api/docs_api_json_api.rb +0 -89
- data/lib/pulpcore_client/api/docs_api_yaml_api.rb +0 -89
- data/spec/api/docs_api_json_api_spec.rb +0 -48
- data/spec/api/docs_api_yaml_api_spec.rb +0 -48
data/docs/UsersApi.md
CHANGED
@@ -4,18 +4,18 @@ All URIs are relative to *http://localhost:24817*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**
|
8
|
-
[**
|
9
|
-
[**
|
10
|
-
[**
|
11
|
-
[**
|
12
|
-
[**
|
7
|
+
[**create**](UsersApi.md#create) | **POST** /pulp/api/v3/users/ | Create an user
|
8
|
+
[**delete**](UsersApi.md#delete) | **DELETE** {auth_user_href} | Delete an user
|
9
|
+
[**list**](UsersApi.md#list) | **GET** /pulp/api/v3/users/ | List users
|
10
|
+
[**partial_update**](UsersApi.md#partial_update) | **PATCH** {auth_user_href} | Update an user
|
11
|
+
[**read**](UsersApi.md#read) | **GET** {auth_user_href} | Inspect an user
|
12
|
+
[**update**](UsersApi.md#update) | **PUT** {auth_user_href} | Update an user
|
13
13
|
|
14
14
|
|
15
15
|
|
16
|
-
##
|
16
|
+
## create
|
17
17
|
|
18
|
-
> UserResponse
|
18
|
+
> UserResponse create(user)
|
19
19
|
|
20
20
|
Create an user
|
21
21
|
|
@@ -38,10 +38,10 @@ user = PulpcoreClient::User.new # User |
|
|
38
38
|
|
39
39
|
begin
|
40
40
|
#Create an user
|
41
|
-
result = api_instance.
|
41
|
+
result = api_instance.create(user)
|
42
42
|
p result
|
43
43
|
rescue PulpcoreClient::ApiError => e
|
44
|
-
puts "Exception when calling UsersApi->
|
44
|
+
puts "Exception when calling UsersApi->create: #{e}"
|
45
45
|
end
|
46
46
|
```
|
47
47
|
|
@@ -66,9 +66,9 @@ Name | Type | Description | Notes
|
|
66
66
|
- **Accept**: application/json
|
67
67
|
|
68
68
|
|
69
|
-
##
|
69
|
+
## delete
|
70
70
|
|
71
|
-
>
|
71
|
+
> delete(auth_user_href)
|
72
72
|
|
73
73
|
Delete an user
|
74
74
|
|
@@ -91,9 +91,9 @@ auth_user_href = 'auth_user_href_example' # String |
|
|
91
91
|
|
92
92
|
begin
|
93
93
|
#Delete an user
|
94
|
-
api_instance.
|
94
|
+
api_instance.delete(auth_user_href)
|
95
95
|
rescue PulpcoreClient::ApiError => e
|
96
|
-
puts "Exception when calling UsersApi->
|
96
|
+
puts "Exception when calling UsersApi->delete: #{e}"
|
97
97
|
end
|
98
98
|
```
|
99
99
|
|
@@ -118,9 +118,9 @@ nil (empty response body)
|
|
118
118
|
- **Accept**: Not defined
|
119
119
|
|
120
120
|
|
121
|
-
##
|
121
|
+
## list
|
122
122
|
|
123
|
-
> PaginatedUserResponseList
|
123
|
+
> PaginatedUserResponseList list(opts)
|
124
124
|
|
125
125
|
List users
|
126
126
|
|
@@ -171,10 +171,10 @@ opts = {
|
|
171
171
|
|
172
172
|
begin
|
173
173
|
#List users
|
174
|
-
result = api_instance.
|
174
|
+
result = api_instance.list(opts)
|
175
175
|
p result
|
176
176
|
rescue PulpcoreClient::ApiError => e
|
177
|
-
puts "Exception when calling UsersApi->
|
177
|
+
puts "Exception when calling UsersApi->list: #{e}"
|
178
178
|
end
|
179
179
|
```
|
180
180
|
|
@@ -225,9 +225,9 @@ Name | Type | Description | Notes
|
|
225
225
|
- **Accept**: application/json
|
226
226
|
|
227
227
|
|
228
|
-
##
|
228
|
+
## partial_update
|
229
229
|
|
230
|
-
> UserResponse
|
230
|
+
> UserResponse partial_update(auth_user_href, patched_user)
|
231
231
|
|
232
232
|
Update an user
|
233
233
|
|
@@ -251,10 +251,10 @@ patched_user = PulpcoreClient::PatchedUser.new # PatchedUser |
|
|
251
251
|
|
252
252
|
begin
|
253
253
|
#Update an user
|
254
|
-
result = api_instance.
|
254
|
+
result = api_instance.partial_update(auth_user_href, patched_user)
|
255
255
|
p result
|
256
256
|
rescue PulpcoreClient::ApiError => e
|
257
|
-
puts "Exception when calling UsersApi->
|
257
|
+
puts "Exception when calling UsersApi->partial_update: #{e}"
|
258
258
|
end
|
259
259
|
```
|
260
260
|
|
@@ -280,9 +280,9 @@ Name | Type | Description | Notes
|
|
280
280
|
- **Accept**: application/json
|
281
281
|
|
282
282
|
|
283
|
-
##
|
283
|
+
## read
|
284
284
|
|
285
|
-
> UserResponse
|
285
|
+
> UserResponse read(auth_user_href, opts)
|
286
286
|
|
287
287
|
Inspect an user
|
288
288
|
|
@@ -309,10 +309,10 @@ opts = {
|
|
309
309
|
|
310
310
|
begin
|
311
311
|
#Inspect an user
|
312
|
-
result = api_instance.
|
312
|
+
result = api_instance.read(auth_user_href, opts)
|
313
313
|
p result
|
314
314
|
rescue PulpcoreClient::ApiError => e
|
315
|
-
puts "Exception when calling UsersApi->
|
315
|
+
puts "Exception when calling UsersApi->read: #{e}"
|
316
316
|
end
|
317
317
|
```
|
318
318
|
|
@@ -339,9 +339,9 @@ Name | Type | Description | Notes
|
|
339
339
|
- **Accept**: application/json
|
340
340
|
|
341
341
|
|
342
|
-
##
|
342
|
+
## update
|
343
343
|
|
344
|
-
> UserResponse
|
344
|
+
> UserResponse update(auth_user_href, user)
|
345
345
|
|
346
346
|
Update an user
|
347
347
|
|
@@ -365,10 +365,10 @@ user = PulpcoreClient::User.new # User |
|
|
365
365
|
|
366
366
|
begin
|
367
367
|
#Update an user
|
368
|
-
result = api_instance.
|
368
|
+
result = api_instance.update(auth_user_href, user)
|
369
369
|
p result
|
370
370
|
rescue PulpcoreClient::ApiError => e
|
371
|
-
puts "Exception when calling UsersApi->
|
371
|
+
puts "Exception when calling UsersApi->update: #{e}"
|
372
372
|
end
|
373
373
|
```
|
374
374
|
|
data/docs/UsersRolesApi.md
CHANGED
@@ -4,16 +4,16 @@ All URIs are relative to *http://localhost:24817*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**
|
8
|
-
[**
|
9
|
-
[**
|
10
|
-
[**
|
7
|
+
[**create**](UsersRolesApi.md#create) | **POST** {auth_user_href}roles/ | Create an user role
|
8
|
+
[**delete**](UsersRolesApi.md#delete) | **DELETE** {auth_users_user_role_href} | Delete an user role
|
9
|
+
[**list**](UsersRolesApi.md#list) | **GET** {auth_user_href}roles/ | List user roles
|
10
|
+
[**read**](UsersRolesApi.md#read) | **GET** {auth_users_user_role_href} | Inspect an user role
|
11
11
|
|
12
12
|
|
13
13
|
|
14
|
-
##
|
14
|
+
## create
|
15
15
|
|
16
|
-
> UserRoleResponse
|
16
|
+
> UserRoleResponse create(auth_user_href, user_role)
|
17
17
|
|
18
18
|
Create an user role
|
19
19
|
|
@@ -37,10 +37,10 @@ user_role = PulpcoreClient::UserRole.new # UserRole |
|
|
37
37
|
|
38
38
|
begin
|
39
39
|
#Create an user role
|
40
|
-
result = api_instance.
|
40
|
+
result = api_instance.create(auth_user_href, user_role)
|
41
41
|
p result
|
42
42
|
rescue PulpcoreClient::ApiError => e
|
43
|
-
puts "Exception when calling UsersRolesApi->
|
43
|
+
puts "Exception when calling UsersRolesApi->create: #{e}"
|
44
44
|
end
|
45
45
|
```
|
46
46
|
|
@@ -66,9 +66,9 @@ Name | Type | Description | Notes
|
|
66
66
|
- **Accept**: application/json
|
67
67
|
|
68
68
|
|
69
|
-
##
|
69
|
+
## delete
|
70
70
|
|
71
|
-
>
|
71
|
+
> delete(auth_users_user_role_href)
|
72
72
|
|
73
73
|
Delete an user role
|
74
74
|
|
@@ -91,9 +91,9 @@ auth_users_user_role_href = 'auth_users_user_role_href_example' # String |
|
|
91
91
|
|
92
92
|
begin
|
93
93
|
#Delete an user role
|
94
|
-
api_instance.
|
94
|
+
api_instance.delete(auth_users_user_role_href)
|
95
95
|
rescue PulpcoreClient::ApiError => e
|
96
|
-
puts "Exception when calling UsersRolesApi->
|
96
|
+
puts "Exception when calling UsersRolesApi->delete: #{e}"
|
97
97
|
end
|
98
98
|
```
|
99
99
|
|
@@ -118,9 +118,9 @@ nil (empty response body)
|
|
118
118
|
- **Accept**: Not defined
|
119
119
|
|
120
120
|
|
121
|
-
##
|
121
|
+
## list
|
122
122
|
|
123
|
-
> PaginatedUserRoleResponseList
|
123
|
+
> PaginatedUserRoleResponseList list(auth_user_href, opts)
|
124
124
|
|
125
125
|
List user roles
|
126
126
|
|
@@ -156,10 +156,10 @@ opts = {
|
|
156
156
|
|
157
157
|
begin
|
158
158
|
#List user roles
|
159
|
-
result = api_instance.
|
159
|
+
result = api_instance.list(auth_user_href, opts)
|
160
160
|
p result
|
161
161
|
rescue PulpcoreClient::ApiError => e
|
162
|
-
puts "Exception when calling UsersRolesApi->
|
162
|
+
puts "Exception when calling UsersRolesApi->list: #{e}"
|
163
163
|
end
|
164
164
|
```
|
165
165
|
|
@@ -195,9 +195,9 @@ Name | Type | Description | Notes
|
|
195
195
|
- **Accept**: application/json
|
196
196
|
|
197
197
|
|
198
|
-
##
|
198
|
+
## read
|
199
199
|
|
200
|
-
> UserRoleResponse
|
200
|
+
> UserRoleResponse read(auth_users_user_role_href, opts)
|
201
201
|
|
202
202
|
Inspect an user role
|
203
203
|
|
@@ -224,10 +224,10 @@ opts = {
|
|
224
224
|
|
225
225
|
begin
|
226
226
|
#Inspect an user role
|
227
|
-
result = api_instance.
|
227
|
+
result = api_instance.read(auth_users_user_role_href, opts)
|
228
228
|
p result
|
229
229
|
rescue PulpcoreClient::ApiError => e
|
230
|
-
puts "Exception when calling UsersRolesApi->
|
230
|
+
puts "Exception when calling UsersRolesApi->read: #{e}"
|
231
231
|
end
|
232
232
|
```
|
233
233
|
|
data/docs/WorkersApi.md
CHANGED
@@ -4,14 +4,14 @@ All URIs are relative to *http://localhost:24817*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**
|
8
|
-
[**
|
7
|
+
[**list**](WorkersApi.md#list) | **GET** /pulp/api/v3/workers/ | List workers
|
8
|
+
[**read**](WorkersApi.md#read) | **GET** {worker_href} | Inspect a worker
|
9
9
|
|
10
10
|
|
11
11
|
|
12
|
-
##
|
12
|
+
## list
|
13
13
|
|
14
|
-
> PaginatedWorkerResponseList
|
14
|
+
> PaginatedWorkerResponseList list(opts)
|
15
15
|
|
16
16
|
List workers
|
17
17
|
|
@@ -53,10 +53,10 @@ opts = {
|
|
53
53
|
|
54
54
|
begin
|
55
55
|
#List workers
|
56
|
-
result = api_instance.
|
56
|
+
result = api_instance.list(opts)
|
57
57
|
p result
|
58
58
|
rescue PulpcoreClient::ApiError => e
|
59
|
-
puts "Exception when calling WorkersApi->
|
59
|
+
puts "Exception when calling WorkersApi->list: #{e}"
|
60
60
|
end
|
61
61
|
```
|
62
62
|
|
@@ -98,9 +98,9 @@ Name | Type | Description | Notes
|
|
98
98
|
- **Accept**: application/json
|
99
99
|
|
100
100
|
|
101
|
-
##
|
101
|
+
## read
|
102
102
|
|
103
|
-
> WorkerResponse
|
103
|
+
> WorkerResponse read(worker_href, opts)
|
104
104
|
|
105
105
|
Inspect a worker
|
106
106
|
|
@@ -127,10 +127,10 @@ opts = {
|
|
127
127
|
|
128
128
|
begin
|
129
129
|
#Inspect a worker
|
130
|
-
result = api_instance.
|
130
|
+
result = api_instance.read(worker_href, opts)
|
131
131
|
p result
|
132
132
|
rescue PulpcoreClient::ApiError => e
|
133
|
-
puts "Exception when calling WorkersApi->
|
133
|
+
puts "Exception when calling WorkersApi->read: #{e}"
|
134
134
|
end
|
135
135
|
```
|
136
136
|
|
@@ -34,8 +34,8 @@ module PulpcoreClient
|
|
34
34
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
35
35
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
36
36
|
# @return [PaginatedAccessPolicyResponseList]
|
37
|
-
def
|
38
|
-
data, _status_code, _headers =
|
37
|
+
def list(opts = {})
|
38
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
39
39
|
data
|
40
40
|
end
|
41
41
|
|
@@ -54,9 +54,9 @@ module PulpcoreClient
|
|
54
54
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
55
55
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
56
56
|
# @return [Array<(PaginatedAccessPolicyResponseList, Integer, Hash)>] PaginatedAccessPolicyResponseList data, response status code and response headers
|
57
|
-
def
|
57
|
+
def list_with_http_info(opts = {})
|
58
58
|
if @api_client.config.debugging
|
59
|
-
@api_client.config.logger.debug 'Calling API: AccessPoliciesApi.
|
59
|
+
@api_client.config.logger.debug 'Calling API: AccessPoliciesApi.list ...'
|
60
60
|
end
|
61
61
|
allowable_values = ["-creation_hooks", "-customized", "-group_roles", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-queryset_scoping", "-statements", "-user_roles", "-viewset_name", "creation_hooks", "customized", "group_roles", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "queryset_scoping", "statements", "user_roles", "viewset_name"]
|
62
62
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
@@ -107,7 +107,7 @@ module PulpcoreClient
|
|
107
107
|
|
108
108
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
109
109
|
if @api_client.config.debugging
|
110
|
-
@api_client.config.logger.debug "API called: AccessPoliciesApi#
|
110
|
+
@api_client.config.logger.debug "API called: AccessPoliciesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
111
111
|
end
|
112
112
|
return data, status_code, headers
|
113
113
|
end
|
@@ -118,8 +118,8 @@ module PulpcoreClient
|
|
118
118
|
# @param patched_access_policy [PatchedAccessPolicy]
|
119
119
|
# @param [Hash] opts the optional parameters
|
120
120
|
# @return [AccessPolicyResponse]
|
121
|
-
def
|
122
|
-
data, _status_code, _headers =
|
121
|
+
def partial_update(access_policy_href, patched_access_policy, opts = {})
|
122
|
+
data, _status_code, _headers = partial_update_with_http_info(access_policy_href, patched_access_policy, opts)
|
123
123
|
data
|
124
124
|
end
|
125
125
|
|
@@ -129,17 +129,17 @@ module PulpcoreClient
|
|
129
129
|
# @param patched_access_policy [PatchedAccessPolicy]
|
130
130
|
# @param [Hash] opts the optional parameters
|
131
131
|
# @return [Array<(AccessPolicyResponse, Integer, Hash)>] AccessPolicyResponse data, response status code and response headers
|
132
|
-
def
|
132
|
+
def partial_update_with_http_info(access_policy_href, patched_access_policy, opts = {})
|
133
133
|
if @api_client.config.debugging
|
134
|
-
@api_client.config.logger.debug 'Calling API: AccessPoliciesApi.
|
134
|
+
@api_client.config.logger.debug 'Calling API: AccessPoliciesApi.partial_update ...'
|
135
135
|
end
|
136
136
|
# verify the required parameter 'access_policy_href' is set
|
137
137
|
if @api_client.config.client_side_validation && access_policy_href.nil?
|
138
|
-
fail ArgumentError, "Missing the required parameter 'access_policy_href' when calling AccessPoliciesApi.
|
138
|
+
fail ArgumentError, "Missing the required parameter 'access_policy_href' when calling AccessPoliciesApi.partial_update"
|
139
139
|
end
|
140
140
|
# verify the required parameter 'patched_access_policy' is set
|
141
141
|
if @api_client.config.client_side_validation && patched_access_policy.nil?
|
142
|
-
fail ArgumentError, "Missing the required parameter 'patched_access_policy' when calling AccessPoliciesApi.
|
142
|
+
fail ArgumentError, "Missing the required parameter 'patched_access_policy' when calling AccessPoliciesApi.partial_update"
|
143
143
|
end
|
144
144
|
# resource path
|
145
145
|
local_var_path = '{access_policy_href}'.sub('{' + 'access_policy_href' + '}', CGI.escape(access_policy_href.to_s).gsub('%2F', '/'))
|
@@ -177,7 +177,7 @@ module PulpcoreClient
|
|
177
177
|
|
178
178
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
179
179
|
if @api_client.config.debugging
|
180
|
-
@api_client.config.logger.debug "API called: AccessPoliciesApi#
|
180
|
+
@api_client.config.logger.debug "API called: AccessPoliciesApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
181
181
|
end
|
182
182
|
return data, status_code, headers
|
183
183
|
end
|
@@ -189,8 +189,8 @@ module PulpcoreClient
|
|
189
189
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
190
190
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
191
191
|
# @return [AccessPolicyResponse]
|
192
|
-
def
|
193
|
-
data, _status_code, _headers =
|
192
|
+
def read(access_policy_href, opts = {})
|
193
|
+
data, _status_code, _headers = read_with_http_info(access_policy_href, opts)
|
194
194
|
data
|
195
195
|
end
|
196
196
|
|
@@ -201,13 +201,13 @@ module PulpcoreClient
|
|
201
201
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
202
202
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
203
203
|
# @return [Array<(AccessPolicyResponse, Integer, Hash)>] AccessPolicyResponse data, response status code and response headers
|
204
|
-
def
|
204
|
+
def read_with_http_info(access_policy_href, opts = {})
|
205
205
|
if @api_client.config.debugging
|
206
|
-
@api_client.config.logger.debug 'Calling API: AccessPoliciesApi.
|
206
|
+
@api_client.config.logger.debug 'Calling API: AccessPoliciesApi.read ...'
|
207
207
|
end
|
208
208
|
# verify the required parameter 'access_policy_href' is set
|
209
209
|
if @api_client.config.client_side_validation && access_policy_href.nil?
|
210
|
-
fail ArgumentError, "Missing the required parameter 'access_policy_href' when calling AccessPoliciesApi.
|
210
|
+
fail ArgumentError, "Missing the required parameter 'access_policy_href' when calling AccessPoliciesApi.read"
|
211
211
|
end
|
212
212
|
# resource path
|
213
213
|
local_var_path = '{access_policy_href}'.sub('{' + 'access_policy_href' + '}', CGI.escape(access_policy_href.to_s).gsub('%2F', '/'))
|
@@ -245,7 +245,7 @@ module PulpcoreClient
|
|
245
245
|
|
246
246
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
247
247
|
if @api_client.config.debugging
|
248
|
-
@api_client.config.logger.debug "API called: AccessPoliciesApi#
|
248
|
+
@api_client.config.logger.debug "API called: AccessPoliciesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
249
249
|
end
|
250
250
|
return data, status_code, headers
|
251
251
|
end
|
@@ -254,8 +254,8 @@ module PulpcoreClient
|
|
254
254
|
# @param access_policy_href [String]
|
255
255
|
# @param [Hash] opts the optional parameters
|
256
256
|
# @return [AccessPolicyResponse]
|
257
|
-
def
|
258
|
-
data, _status_code, _headers =
|
257
|
+
def reset(access_policy_href, opts = {})
|
258
|
+
data, _status_code, _headers = reset_with_http_info(access_policy_href, opts)
|
259
259
|
data
|
260
260
|
end
|
261
261
|
|
@@ -263,13 +263,13 @@ module PulpcoreClient
|
|
263
263
|
# @param access_policy_href [String]
|
264
264
|
# @param [Hash] opts the optional parameters
|
265
265
|
# @return [Array<(AccessPolicyResponse, Integer, Hash)>] AccessPolicyResponse data, response status code and response headers
|
266
|
-
def
|
266
|
+
def reset_with_http_info(access_policy_href, opts = {})
|
267
267
|
if @api_client.config.debugging
|
268
|
-
@api_client.config.logger.debug 'Calling API: AccessPoliciesApi.
|
268
|
+
@api_client.config.logger.debug 'Calling API: AccessPoliciesApi.reset ...'
|
269
269
|
end
|
270
270
|
# verify the required parameter 'access_policy_href' is set
|
271
271
|
if @api_client.config.client_side_validation && access_policy_href.nil?
|
272
|
-
fail ArgumentError, "Missing the required parameter 'access_policy_href' when calling AccessPoliciesApi.
|
272
|
+
fail ArgumentError, "Missing the required parameter 'access_policy_href' when calling AccessPoliciesApi.reset"
|
273
273
|
end
|
274
274
|
# resource path
|
275
275
|
local_var_path = '{access_policy_href}reset/'.sub('{' + 'access_policy_href' + '}', CGI.escape(access_policy_href.to_s).gsub('%2F', '/'))
|
@@ -305,7 +305,7 @@ module PulpcoreClient
|
|
305
305
|
|
306
306
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
307
307
|
if @api_client.config.debugging
|
308
|
-
@api_client.config.logger.debug "API called: AccessPoliciesApi#
|
308
|
+
@api_client.config.logger.debug "API called: AccessPoliciesApi#reset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
309
309
|
end
|
310
310
|
return data, status_code, headers
|
311
311
|
end
|
@@ -316,8 +316,8 @@ module PulpcoreClient
|
|
316
316
|
# @param access_policy [AccessPolicy]
|
317
317
|
# @param [Hash] opts the optional parameters
|
318
318
|
# @return [AccessPolicyResponse]
|
319
|
-
def
|
320
|
-
data, _status_code, _headers =
|
319
|
+
def update(access_policy_href, access_policy, opts = {})
|
320
|
+
data, _status_code, _headers = update_with_http_info(access_policy_href, access_policy, opts)
|
321
321
|
data
|
322
322
|
end
|
323
323
|
|
@@ -327,17 +327,17 @@ module PulpcoreClient
|
|
327
327
|
# @param access_policy [AccessPolicy]
|
328
328
|
# @param [Hash] opts the optional parameters
|
329
329
|
# @return [Array<(AccessPolicyResponse, Integer, Hash)>] AccessPolicyResponse data, response status code and response headers
|
330
|
-
def
|
330
|
+
def update_with_http_info(access_policy_href, access_policy, opts = {})
|
331
331
|
if @api_client.config.debugging
|
332
|
-
@api_client.config.logger.debug 'Calling API: AccessPoliciesApi.
|
332
|
+
@api_client.config.logger.debug 'Calling API: AccessPoliciesApi.update ...'
|
333
333
|
end
|
334
334
|
# verify the required parameter 'access_policy_href' is set
|
335
335
|
if @api_client.config.client_side_validation && access_policy_href.nil?
|
336
|
-
fail ArgumentError, "Missing the required parameter 'access_policy_href' when calling AccessPoliciesApi.
|
336
|
+
fail ArgumentError, "Missing the required parameter 'access_policy_href' when calling AccessPoliciesApi.update"
|
337
337
|
end
|
338
338
|
# verify the required parameter 'access_policy' is set
|
339
339
|
if @api_client.config.client_side_validation && access_policy.nil?
|
340
|
-
fail ArgumentError, "Missing the required parameter 'access_policy' when calling AccessPoliciesApi.
|
340
|
+
fail ArgumentError, "Missing the required parameter 'access_policy' when calling AccessPoliciesApi.update"
|
341
341
|
end
|
342
342
|
# resource path
|
343
343
|
local_var_path = '{access_policy_href}'.sub('{' + 'access_policy_href' + '}', CGI.escape(access_policy_href.to_s).gsub('%2F', '/'))
|
@@ -375,7 +375,7 @@ module PulpcoreClient
|
|
375
375
|
|
376
376
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
377
377
|
if @api_client.config.debugging
|
378
|
-
@api_client.config.logger.debug "API called: AccessPoliciesApi#
|
378
|
+
@api_client.config.logger.debug "API called: AccessPoliciesApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
379
379
|
end
|
380
380
|
return data, status_code, headers
|
381
381
|
end
|