pulpcore_client 3.31.0 → 3.32.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +28 -28
- data/docs/ArtifactDistributionResponse.md +10 -10
- data/docs/ContentguardsContentRedirectApi.md +12 -8
- data/docs/ContentguardsRbacApi.md +12 -8
- data/docs/GroupsApi.md +12 -8
- data/docs/TaskSchedulesApi.md +12 -8
- data/docs/TasksApi.md +12 -8
- data/docs/UploadsApi.md +12 -8
- data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +8 -0
- data/lib/pulpcore_client/api/contentguards_rbac_api.rb +8 -0
- data/lib/pulpcore_client/api/groups_api.rb +8 -0
- data/lib/pulpcore_client/api/task_schedules_api.rb +8 -0
- data/lib/pulpcore_client/api/tasks_api.rb +8 -0
- data/lib/pulpcore_client/api/uploads_api.rb +8 -0
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +45 -45
- data/lib/pulpcore_client/version.rb +1 -1
- data/spec/api/contentguards_content_redirect_api_spec.rb +4 -0
- data/spec/api/contentguards_rbac_api_spec.rb +4 -0
- data/spec/api/groups_api_spec.rb +4 -0
- data/spec/api/task_schedules_api_spec.rb +4 -0
- data/spec/api/tasks_api_spec.rb +4 -0
- data/spec/api/uploads_api_spec.rb +4 -0
- data/spec/models/artifact_distribution_response_spec.rb +6 -6
- metadata +138 -138
data/docs/UploadsApi.md
CHANGED
@@ -4,15 +4,15 @@ All URIs are relative to *https://pulp*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**add_role**](UploadsApi.md#add_role) | **POST** {upload_href}add_role/ |
|
7
|
+
[**add_role**](UploadsApi.md#add_role) | **POST** {upload_href}add_role/ | Add a role
|
8
8
|
[**commit**](UploadsApi.md#commit) | **POST** {upload_href}commit/ | Finish an Upload
|
9
9
|
[**create**](UploadsApi.md#create) | **POST** /pulp/api/v3/uploads/ | Create an upload
|
10
10
|
[**delete**](UploadsApi.md#delete) | **DELETE** {upload_href} | Delete an upload
|
11
11
|
[**list**](UploadsApi.md#list) | **GET** /pulp/api/v3/uploads/ | List uploads
|
12
|
-
[**list_roles**](UploadsApi.md#list_roles) | **GET** {upload_href}list_roles/ |
|
13
|
-
[**my_permissions**](UploadsApi.md#my_permissions) | **GET** {upload_href}my_permissions/ |
|
12
|
+
[**list_roles**](UploadsApi.md#list_roles) | **GET** {upload_href}list_roles/ | List roles
|
13
|
+
[**my_permissions**](UploadsApi.md#my_permissions) | **GET** {upload_href}my_permissions/ | List user permissions
|
14
14
|
[**read**](UploadsApi.md#read) | **GET** {upload_href} | Inspect an upload
|
15
|
-
[**remove_role**](UploadsApi.md#remove_role) | **POST** {upload_href}remove_role/ |
|
15
|
+
[**remove_role**](UploadsApi.md#remove_role) | **POST** {upload_href}remove_role/ | Remove a role
|
16
16
|
[**update**](UploadsApi.md#update) | **PUT** {upload_href} | Upload a file chunk
|
17
17
|
|
18
18
|
|
@@ -21,7 +21,7 @@ Method | HTTP request | Description
|
|
21
21
|
|
22
22
|
> NestedRoleResponse add_role(upload_href, upload)
|
23
23
|
|
24
|
-
|
24
|
+
Add a role
|
25
25
|
|
26
26
|
Add a role for this object to users/groups.
|
27
27
|
|
@@ -42,6 +42,7 @@ upload_href = 'upload_href_example' # String |
|
|
42
42
|
upload = PulpcoreClient::Upload.new # Upload |
|
43
43
|
|
44
44
|
begin
|
45
|
+
#Add a role
|
45
46
|
result = api_instance.add_role(upload_href, upload)
|
46
47
|
p result
|
47
48
|
rescue PulpcoreClient::ApiError => e
|
@@ -310,7 +311,7 @@ Name | Type | Description | Notes
|
|
310
311
|
|
311
312
|
> ObjectRolesResponse list_roles(upload_href, opts)
|
312
313
|
|
313
|
-
|
314
|
+
List roles
|
314
315
|
|
315
316
|
List roles assigned to this object.
|
316
317
|
|
@@ -334,6 +335,7 @@ opts = {
|
|
334
335
|
}
|
335
336
|
|
336
337
|
begin
|
338
|
+
#List roles
|
337
339
|
result = api_instance.list_roles(upload_href, opts)
|
338
340
|
p result
|
339
341
|
rescue PulpcoreClient::ApiError => e
|
@@ -368,7 +370,7 @@ Name | Type | Description | Notes
|
|
368
370
|
|
369
371
|
> MyPermissionsResponse my_permissions(upload_href, opts)
|
370
372
|
|
371
|
-
|
373
|
+
List user permissions
|
372
374
|
|
373
375
|
List permissions available to the current user on this object.
|
374
376
|
|
@@ -392,6 +394,7 @@ opts = {
|
|
392
394
|
}
|
393
395
|
|
394
396
|
begin
|
397
|
+
#List user permissions
|
395
398
|
result = api_instance.my_permissions(upload_href, opts)
|
396
399
|
p result
|
397
400
|
rescue PulpcoreClient::ApiError => e
|
@@ -485,7 +488,7 @@ Name | Type | Description | Notes
|
|
485
488
|
|
486
489
|
> NestedRoleResponse remove_role(upload_href, upload)
|
487
490
|
|
488
|
-
|
491
|
+
Remove a role
|
489
492
|
|
490
493
|
Remove a role for this object from users/groups.
|
491
494
|
|
@@ -506,6 +509,7 @@ upload_href = 'upload_href_example' # String |
|
|
506
509
|
upload = PulpcoreClient::Upload.new # Upload |
|
507
510
|
|
508
511
|
begin
|
512
|
+
#Remove a role
|
509
513
|
result = api_instance.remove_role(upload_href, upload)
|
510
514
|
p result
|
511
515
|
rescue PulpcoreClient::ApiError => e
|
@@ -19,6 +19,7 @@ module PulpcoreClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Add a role
|
22
23
|
# Add a role for this object to users/groups.
|
23
24
|
# @param content_redirect_content_guard_href [String]
|
24
25
|
# @param nested_role [NestedRole]
|
@@ -29,6 +30,7 @@ module PulpcoreClient
|
|
29
30
|
data
|
30
31
|
end
|
31
32
|
|
33
|
+
# Add a role
|
32
34
|
# Add a role for this object to users/groups.
|
33
35
|
# @param content_redirect_content_guard_href [String]
|
34
36
|
# @param nested_role [NestedRole]
|
@@ -307,6 +309,7 @@ module PulpcoreClient
|
|
307
309
|
return data, status_code, headers
|
308
310
|
end
|
309
311
|
|
312
|
+
# List roles
|
310
313
|
# List roles assigned to this object.
|
311
314
|
# @param content_redirect_content_guard_href [String]
|
312
315
|
# @param [Hash] opts the optional parameters
|
@@ -318,6 +321,7 @@ module PulpcoreClient
|
|
318
321
|
data
|
319
322
|
end
|
320
323
|
|
324
|
+
# List roles
|
321
325
|
# List roles assigned to this object.
|
322
326
|
# @param content_redirect_content_guard_href [String]
|
323
327
|
# @param [Hash] opts the optional parameters
|
@@ -373,6 +377,7 @@ module PulpcoreClient
|
|
373
377
|
return data, status_code, headers
|
374
378
|
end
|
375
379
|
|
380
|
+
# List user permissions
|
376
381
|
# List permissions available to the current user on this object.
|
377
382
|
# @param content_redirect_content_guard_href [String]
|
378
383
|
# @param [Hash] opts the optional parameters
|
@@ -384,6 +389,7 @@ module PulpcoreClient
|
|
384
389
|
data
|
385
390
|
end
|
386
391
|
|
392
|
+
# List user permissions
|
387
393
|
# List permissions available to the current user on this object.
|
388
394
|
# @param content_redirect_content_guard_href [String]
|
389
395
|
# @param [Hash] opts the optional parameters
|
@@ -577,6 +583,7 @@ module PulpcoreClient
|
|
577
583
|
return data, status_code, headers
|
578
584
|
end
|
579
585
|
|
586
|
+
# Remove a role
|
580
587
|
# Remove a role for this object from users/groups.
|
581
588
|
# @param content_redirect_content_guard_href [String]
|
582
589
|
# @param nested_role [NestedRole]
|
@@ -587,6 +594,7 @@ module PulpcoreClient
|
|
587
594
|
data
|
588
595
|
end
|
589
596
|
|
597
|
+
# Remove a role
|
590
598
|
# Remove a role for this object from users/groups.
|
591
599
|
# @param content_redirect_content_guard_href [String]
|
592
600
|
# @param nested_role [NestedRole]
|
@@ -19,6 +19,7 @@ module PulpcoreClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Add a role
|
22
23
|
# Add a role for this object to users/groups.
|
23
24
|
# @param r_b_a_c_content_guard_href [String]
|
24
25
|
# @param nested_role [NestedRole]
|
@@ -29,6 +30,7 @@ module PulpcoreClient
|
|
29
30
|
data
|
30
31
|
end
|
31
32
|
|
33
|
+
# Add a role
|
32
34
|
# Add a role for this object to users/groups.
|
33
35
|
# @param r_b_a_c_content_guard_href [String]
|
34
36
|
# @param nested_role [NestedRole]
|
@@ -307,6 +309,7 @@ module PulpcoreClient
|
|
307
309
|
return data, status_code, headers
|
308
310
|
end
|
309
311
|
|
312
|
+
# List roles
|
310
313
|
# List roles assigned to this object.
|
311
314
|
# @param r_b_a_c_content_guard_href [String]
|
312
315
|
# @param [Hash] opts the optional parameters
|
@@ -318,6 +321,7 @@ module PulpcoreClient
|
|
318
321
|
data
|
319
322
|
end
|
320
323
|
|
324
|
+
# List roles
|
321
325
|
# List roles assigned to this object.
|
322
326
|
# @param r_b_a_c_content_guard_href [String]
|
323
327
|
# @param [Hash] opts the optional parameters
|
@@ -373,6 +377,7 @@ module PulpcoreClient
|
|
373
377
|
return data, status_code, headers
|
374
378
|
end
|
375
379
|
|
380
|
+
# List user permissions
|
376
381
|
# List permissions available to the current user on this object.
|
377
382
|
# @param r_b_a_c_content_guard_href [String]
|
378
383
|
# @param [Hash] opts the optional parameters
|
@@ -384,6 +389,7 @@ module PulpcoreClient
|
|
384
389
|
data
|
385
390
|
end
|
386
391
|
|
392
|
+
# List user permissions
|
387
393
|
# List permissions available to the current user on this object.
|
388
394
|
# @param r_b_a_c_content_guard_href [String]
|
389
395
|
# @param [Hash] opts the optional parameters
|
@@ -577,6 +583,7 @@ module PulpcoreClient
|
|
577
583
|
return data, status_code, headers
|
578
584
|
end
|
579
585
|
|
586
|
+
# Remove a role
|
580
587
|
# Remove a role for this object from users/groups.
|
581
588
|
# @param r_b_a_c_content_guard_href [String]
|
582
589
|
# @param nested_role [NestedRole]
|
@@ -587,6 +594,7 @@ module PulpcoreClient
|
|
587
594
|
data
|
588
595
|
end
|
589
596
|
|
597
|
+
# Remove a role
|
590
598
|
# Remove a role for this object from users/groups.
|
591
599
|
# @param r_b_a_c_content_guard_href [String]
|
592
600
|
# @param nested_role [NestedRole]
|
@@ -19,6 +19,7 @@ module PulpcoreClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Add a role
|
22
23
|
# Add a role for this object to users/groups.
|
23
24
|
# @param group_href [String]
|
24
25
|
# @param nested_role [NestedRole]
|
@@ -29,6 +30,7 @@ module PulpcoreClient
|
|
29
30
|
data
|
30
31
|
end
|
31
32
|
|
33
|
+
# Add a role
|
32
34
|
# Add a role for this object to users/groups.
|
33
35
|
# @param group_href [String]
|
34
36
|
# @param nested_role [NestedRole]
|
@@ -313,6 +315,7 @@ module PulpcoreClient
|
|
313
315
|
return data, status_code, headers
|
314
316
|
end
|
315
317
|
|
318
|
+
# List roles
|
316
319
|
# List roles assigned to this object.
|
317
320
|
# @param group_href [String]
|
318
321
|
# @param [Hash] opts the optional parameters
|
@@ -324,6 +327,7 @@ module PulpcoreClient
|
|
324
327
|
data
|
325
328
|
end
|
326
329
|
|
330
|
+
# List roles
|
327
331
|
# List roles assigned to this object.
|
328
332
|
# @param group_href [String]
|
329
333
|
# @param [Hash] opts the optional parameters
|
@@ -379,6 +383,7 @@ module PulpcoreClient
|
|
379
383
|
return data, status_code, headers
|
380
384
|
end
|
381
385
|
|
386
|
+
# List user permissions
|
382
387
|
# List permissions available to the current user on this object.
|
383
388
|
# @param group_href [String]
|
384
389
|
# @param [Hash] opts the optional parameters
|
@@ -390,6 +395,7 @@ module PulpcoreClient
|
|
390
395
|
data
|
391
396
|
end
|
392
397
|
|
398
|
+
# List user permissions
|
393
399
|
# List permissions available to the current user on this object.
|
394
400
|
# @param group_href [String]
|
395
401
|
# @param [Hash] opts the optional parameters
|
@@ -583,6 +589,7 @@ module PulpcoreClient
|
|
583
589
|
return data, status_code, headers
|
584
590
|
end
|
585
591
|
|
592
|
+
# Remove a role
|
586
593
|
# Remove a role for this object from users/groups.
|
587
594
|
# @param group_href [String]
|
588
595
|
# @param nested_role [NestedRole]
|
@@ -593,6 +600,7 @@ module PulpcoreClient
|
|
593
600
|
data
|
594
601
|
end
|
595
602
|
|
603
|
+
# Remove a role
|
596
604
|
# Remove a role for this object from users/groups.
|
597
605
|
# @param group_href [String]
|
598
606
|
# @param nested_role [NestedRole]
|
@@ -19,6 +19,7 @@ module PulpcoreClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Add a role
|
22
23
|
# Add a role for this object to users/groups.
|
23
24
|
# @param task_schedule_href [String]
|
24
25
|
# @param nested_role [NestedRole]
|
@@ -29,6 +30,7 @@ module PulpcoreClient
|
|
29
30
|
data
|
30
31
|
end
|
31
32
|
|
33
|
+
# Add a role
|
32
34
|
# Add a role for this object to users/groups.
|
33
35
|
# @param task_schedule_href [String]
|
34
36
|
# @param nested_role [NestedRole]
|
@@ -180,6 +182,7 @@ module PulpcoreClient
|
|
180
182
|
return data, status_code, headers
|
181
183
|
end
|
182
184
|
|
185
|
+
# List roles
|
183
186
|
# List roles assigned to this object.
|
184
187
|
# @param task_schedule_href [String]
|
185
188
|
# @param [Hash] opts the optional parameters
|
@@ -191,6 +194,7 @@ module PulpcoreClient
|
|
191
194
|
data
|
192
195
|
end
|
193
196
|
|
197
|
+
# List roles
|
194
198
|
# List roles assigned to this object.
|
195
199
|
# @param task_schedule_href [String]
|
196
200
|
# @param [Hash] opts the optional parameters
|
@@ -246,6 +250,7 @@ module PulpcoreClient
|
|
246
250
|
return data, status_code, headers
|
247
251
|
end
|
248
252
|
|
253
|
+
# List user permissions
|
249
254
|
# List permissions available to the current user on this object.
|
250
255
|
# @param task_schedule_href [String]
|
251
256
|
# @param [Hash] opts the optional parameters
|
@@ -257,6 +262,7 @@ module PulpcoreClient
|
|
257
262
|
data
|
258
263
|
end
|
259
264
|
|
265
|
+
# List user permissions
|
260
266
|
# List permissions available to the current user on this object.
|
261
267
|
# @param task_schedule_href [String]
|
262
268
|
# @param [Hash] opts the optional parameters
|
@@ -380,6 +386,7 @@ module PulpcoreClient
|
|
380
386
|
return data, status_code, headers
|
381
387
|
end
|
382
388
|
|
389
|
+
# Remove a role
|
383
390
|
# Remove a role for this object from users/groups.
|
384
391
|
# @param task_schedule_href [String]
|
385
392
|
# @param nested_role [NestedRole]
|
@@ -390,6 +397,7 @@ module PulpcoreClient
|
|
390
397
|
data
|
391
398
|
end
|
392
399
|
|
400
|
+
# Remove a role
|
393
401
|
# Remove a role for this object from users/groups.
|
394
402
|
# @param task_schedule_href [String]
|
395
403
|
# @param nested_role [NestedRole]
|
@@ -19,6 +19,7 @@ module PulpcoreClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Add a role
|
22
23
|
# Add a role for this object to users/groups.
|
23
24
|
# @param task_href [String]
|
24
25
|
# @param nested_role [NestedRole]
|
@@ -29,6 +30,7 @@ module PulpcoreClient
|
|
29
30
|
data
|
30
31
|
end
|
31
32
|
|
33
|
+
# Add a role
|
32
34
|
# Add a role for this object to users/groups.
|
33
35
|
# @param task_href [String]
|
34
36
|
# @param nested_role [NestedRole]
|
@@ -328,6 +330,7 @@ module PulpcoreClient
|
|
328
330
|
return data, status_code, headers
|
329
331
|
end
|
330
332
|
|
333
|
+
# List roles
|
331
334
|
# List roles assigned to this object.
|
332
335
|
# @param task_href [String]
|
333
336
|
# @param [Hash] opts the optional parameters
|
@@ -339,6 +342,7 @@ module PulpcoreClient
|
|
339
342
|
data
|
340
343
|
end
|
341
344
|
|
345
|
+
# List roles
|
342
346
|
# List roles assigned to this object.
|
343
347
|
# @param task_href [String]
|
344
348
|
# @param [Hash] opts the optional parameters
|
@@ -394,6 +398,7 @@ module PulpcoreClient
|
|
394
398
|
return data, status_code, headers
|
395
399
|
end
|
396
400
|
|
401
|
+
# List user permissions
|
397
402
|
# List permissions available to the current user on this object.
|
398
403
|
# @param task_href [String]
|
399
404
|
# @param [Hash] opts the optional parameters
|
@@ -405,6 +410,7 @@ module PulpcoreClient
|
|
405
410
|
data
|
406
411
|
end
|
407
412
|
|
413
|
+
# List user permissions
|
408
414
|
# List permissions available to the current user on this object.
|
409
415
|
# @param task_href [String]
|
410
416
|
# @param [Hash] opts the optional parameters
|
@@ -592,6 +598,7 @@ module PulpcoreClient
|
|
592
598
|
return data, status_code, headers
|
593
599
|
end
|
594
600
|
|
601
|
+
# Remove a role
|
595
602
|
# Remove a role for this object from users/groups.
|
596
603
|
# @param task_href [String]
|
597
604
|
# @param nested_role [NestedRole]
|
@@ -602,6 +609,7 @@ module PulpcoreClient
|
|
602
609
|
data
|
603
610
|
end
|
604
611
|
|
612
|
+
# Remove a role
|
605
613
|
# Remove a role for this object from users/groups.
|
606
614
|
# @param task_href [String]
|
607
615
|
# @param nested_role [NestedRole]
|
@@ -19,6 +19,7 @@ module PulpcoreClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Add a role
|
22
23
|
# Add a role for this object to users/groups.
|
23
24
|
# @param upload_href [String]
|
24
25
|
# @param upload [Upload]
|
@@ -29,6 +30,7 @@ module PulpcoreClient
|
|
29
30
|
data
|
30
31
|
end
|
31
32
|
|
33
|
+
# Add a role
|
32
34
|
# Add a role for this object to users/groups.
|
33
35
|
# @param upload_href [String]
|
34
36
|
# @param upload [Upload]
|
@@ -374,6 +376,7 @@ module PulpcoreClient
|
|
374
376
|
return data, status_code, headers
|
375
377
|
end
|
376
378
|
|
379
|
+
# List roles
|
377
380
|
# List roles assigned to this object.
|
378
381
|
# @param upload_href [String]
|
379
382
|
# @param [Hash] opts the optional parameters
|
@@ -385,6 +388,7 @@ module PulpcoreClient
|
|
385
388
|
data
|
386
389
|
end
|
387
390
|
|
391
|
+
# List roles
|
388
392
|
# List roles assigned to this object.
|
389
393
|
# @param upload_href [String]
|
390
394
|
# @param [Hash] opts the optional parameters
|
@@ -440,6 +444,7 @@ module PulpcoreClient
|
|
440
444
|
return data, status_code, headers
|
441
445
|
end
|
442
446
|
|
447
|
+
# List user permissions
|
443
448
|
# List permissions available to the current user on this object.
|
444
449
|
# @param upload_href [String]
|
445
450
|
# @param [Hash] opts the optional parameters
|
@@ -451,6 +456,7 @@ module PulpcoreClient
|
|
451
456
|
data
|
452
457
|
end
|
453
458
|
|
459
|
+
# List user permissions
|
454
460
|
# List permissions available to the current user on this object.
|
455
461
|
# @param upload_href [String]
|
456
462
|
# @param [Hash] opts the optional parameters
|
@@ -574,6 +580,7 @@ module PulpcoreClient
|
|
574
580
|
return data, status_code, headers
|
575
581
|
end
|
576
582
|
|
583
|
+
# Remove a role
|
577
584
|
# Remove a role for this object from users/groups.
|
578
585
|
# @param upload_href [String]
|
579
586
|
# @param upload [Upload]
|
@@ -584,6 +591,7 @@ module PulpcoreClient
|
|
584
591
|
data
|
585
592
|
end
|
586
593
|
|
594
|
+
# Remove a role
|
587
595
|
# Remove a role for this object from users/groups.
|
588
596
|
# @param upload_href [String]
|
589
597
|
# @param upload [Upload]
|
@@ -15,53 +15,53 @@ require 'date'
|
|
15
15
|
module PulpcoreClient
|
16
16
|
# A serializer for ArtifactDistribution.
|
17
17
|
class ArtifactDistributionResponse
|
18
|
-
|
18
|
+
# The URL for accessing the publication as defined by this distribution.
|
19
|
+
attr_accessor :base_url
|
19
20
|
|
20
|
-
#
|
21
|
-
attr_accessor :
|
21
|
+
# An optional content-guard.
|
22
|
+
attr_accessor :content_guard
|
22
23
|
|
23
24
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
24
25
|
attr_accessor :base_path
|
25
26
|
|
26
|
-
# An optional content-guard.
|
27
|
-
attr_accessor :content_guard
|
28
|
-
|
29
27
|
attr_accessor :pulp_labels
|
30
28
|
|
31
|
-
#
|
32
|
-
attr_accessor :
|
29
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
30
|
+
attr_accessor :name
|
31
|
+
|
32
|
+
attr_accessor :pulp_href
|
33
33
|
|
34
34
|
# Timestamp of creation.
|
35
35
|
attr_accessor :pulp_created
|
36
36
|
|
37
|
-
#
|
38
|
-
attr_accessor :
|
37
|
+
# Whether this distribution should be shown in the content app.
|
38
|
+
attr_accessor :hidden
|
39
39
|
|
40
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
41
|
def self.attribute_map
|
42
42
|
{
|
43
|
-
:'
|
44
|
-
:'name' => :'name',
|
45
|
-
:'base_path' => :'base_path',
|
43
|
+
:'base_url' => :'base_url',
|
46
44
|
:'content_guard' => :'content_guard',
|
45
|
+
:'base_path' => :'base_path',
|
47
46
|
:'pulp_labels' => :'pulp_labels',
|
48
|
-
:'
|
47
|
+
:'name' => :'name',
|
48
|
+
:'pulp_href' => :'pulp_href',
|
49
49
|
:'pulp_created' => :'pulp_created',
|
50
|
-
:'
|
50
|
+
:'hidden' => :'hidden'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
54
54
|
# Attribute type mapping.
|
55
55
|
def self.openapi_types
|
56
56
|
{
|
57
|
-
:'
|
58
|
-
:'name' => :'String',
|
59
|
-
:'base_path' => :'String',
|
57
|
+
:'base_url' => :'String',
|
60
58
|
:'content_guard' => :'String',
|
59
|
+
:'base_path' => :'String',
|
61
60
|
:'pulp_labels' => :'Hash<String, String>',
|
62
|
-
:'
|
61
|
+
:'name' => :'String',
|
62
|
+
:'pulp_href' => :'String',
|
63
63
|
:'pulp_created' => :'DateTime',
|
64
|
-
:'
|
64
|
+
:'hidden' => :'Boolean'
|
65
65
|
}
|
66
66
|
end
|
67
67
|
|
@@ -87,40 +87,40 @@ module PulpcoreClient
|
|
87
87
|
h[k.to_sym] = v
|
88
88
|
}
|
89
89
|
|
90
|
-
if attributes.key?(:'
|
91
|
-
self.
|
90
|
+
if attributes.key?(:'base_url')
|
91
|
+
self.base_url = attributes[:'base_url']
|
92
92
|
end
|
93
93
|
|
94
|
-
if attributes.key?(:'
|
95
|
-
self.
|
94
|
+
if attributes.key?(:'content_guard')
|
95
|
+
self.content_guard = attributes[:'content_guard']
|
96
96
|
end
|
97
97
|
|
98
98
|
if attributes.key?(:'base_path')
|
99
99
|
self.base_path = attributes[:'base_path']
|
100
100
|
end
|
101
101
|
|
102
|
-
if attributes.key?(:'content_guard')
|
103
|
-
self.content_guard = attributes[:'content_guard']
|
104
|
-
end
|
105
|
-
|
106
102
|
if attributes.key?(:'pulp_labels')
|
107
103
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
108
104
|
self.pulp_labels = value
|
109
105
|
end
|
110
106
|
end
|
111
107
|
|
112
|
-
if attributes.key?(:'
|
113
|
-
self.
|
114
|
-
|
115
|
-
|
108
|
+
if attributes.key?(:'name')
|
109
|
+
self.name = attributes[:'name']
|
110
|
+
end
|
111
|
+
|
112
|
+
if attributes.key?(:'pulp_href')
|
113
|
+
self.pulp_href = attributes[:'pulp_href']
|
116
114
|
end
|
117
115
|
|
118
116
|
if attributes.key?(:'pulp_created')
|
119
117
|
self.pulp_created = attributes[:'pulp_created']
|
120
118
|
end
|
121
119
|
|
122
|
-
if attributes.key?(:'
|
123
|
-
self.
|
120
|
+
if attributes.key?(:'hidden')
|
121
|
+
self.hidden = attributes[:'hidden']
|
122
|
+
else
|
123
|
+
self.hidden = false
|
124
124
|
end
|
125
125
|
end
|
126
126
|
|
@@ -128,22 +128,22 @@ module PulpcoreClient
|
|
128
128
|
# @return Array for valid properties with the reasons
|
129
129
|
def list_invalid_properties
|
130
130
|
invalid_properties = Array.new
|
131
|
-
if @name.nil?
|
132
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
133
|
-
end
|
134
|
-
|
135
131
|
if @base_path.nil?
|
136
132
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
137
133
|
end
|
138
134
|
|
135
|
+
if @name.nil?
|
136
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
137
|
+
end
|
138
|
+
|
139
139
|
invalid_properties
|
140
140
|
end
|
141
141
|
|
142
142
|
# Check to see if the all the properties in the model are valid
|
143
143
|
# @return true if the model is valid
|
144
144
|
def valid?
|
145
|
-
return false if @name.nil?
|
146
145
|
return false if @base_path.nil?
|
146
|
+
return false if @name.nil?
|
147
147
|
true
|
148
148
|
end
|
149
149
|
|
@@ -152,14 +152,14 @@ module PulpcoreClient
|
|
152
152
|
def ==(o)
|
153
153
|
return true if self.equal?(o)
|
154
154
|
self.class == o.class &&
|
155
|
-
|
156
|
-
name == o.name &&
|
157
|
-
base_path == o.base_path &&
|
155
|
+
base_url == o.base_url &&
|
158
156
|
content_guard == o.content_guard &&
|
157
|
+
base_path == o.base_path &&
|
159
158
|
pulp_labels == o.pulp_labels &&
|
160
|
-
|
159
|
+
name == o.name &&
|
160
|
+
pulp_href == o.pulp_href &&
|
161
161
|
pulp_created == o.pulp_created &&
|
162
|
-
|
162
|
+
hidden == o.hidden
|
163
163
|
end
|
164
164
|
|
165
165
|
# @see the `==` method
|
@@ -171,7 +171,7 @@ module PulpcoreClient
|
|
171
171
|
# Calculates hash code according to all attributes.
|
172
172
|
# @return [Integer] Hash code
|
173
173
|
def hash
|
174
|
-
[
|
174
|
+
[base_url, content_guard, base_path, pulp_labels, name, pulp_href, pulp_created, hidden].hash
|
175
175
|
end
|
176
176
|
|
177
177
|
# Builds the object from hash
|
@@ -33,6 +33,7 @@ describe 'ContentguardsContentRedirectApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for add_role
|
36
|
+
# Add a role
|
36
37
|
# Add a role for this object to users/groups.
|
37
38
|
# @param content_redirect_content_guard_href
|
38
39
|
# @param nested_role
|
@@ -92,6 +93,7 @@ describe 'ContentguardsContentRedirectApi' do
|
|
92
93
|
end
|
93
94
|
|
94
95
|
# unit tests for list_roles
|
96
|
+
# List roles
|
95
97
|
# List roles assigned to this object.
|
96
98
|
# @param content_redirect_content_guard_href
|
97
99
|
# @param [Hash] opts the optional parameters
|
@@ -105,6 +107,7 @@ describe 'ContentguardsContentRedirectApi' do
|
|
105
107
|
end
|
106
108
|
|
107
109
|
# unit tests for my_permissions
|
110
|
+
# List user permissions
|
108
111
|
# List permissions available to the current user on this object.
|
109
112
|
# @param content_redirect_content_guard_href
|
110
113
|
# @param [Hash] opts the optional parameters
|
@@ -145,6 +148,7 @@ describe 'ContentguardsContentRedirectApi' do
|
|
145
148
|
end
|
146
149
|
|
147
150
|
# unit tests for remove_role
|
151
|
+
# Remove a role
|
148
152
|
# Remove a role for this object from users/groups.
|
149
153
|
# @param content_redirect_content_guard_href
|
150
154
|
# @param nested_role
|