pulp_maven_client 0.24.1 → 0.25.1

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.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +26 -4
  3. data/docs/ContentPackageApi.md +351 -0
  4. data/docs/DistributionsMavenApi.md +312 -0
  5. data/docs/MavenMavenPackageResponse.md +48 -0
  6. data/docs/MyPermissionsResponse.md +18 -0
  7. data/docs/NestedRole.md +22 -0
  8. data/docs/NestedRoleResponse.md +22 -0
  9. data/docs/ObjectRolesResponse.md +18 -0
  10. data/docs/PaginatedmavenMavenPackageResponseList.md +24 -0
  11. data/docs/RemotesMavenApi.md +312 -0
  12. data/docs/RepositoriesMavenApi.md +315 -3
  13. data/lib/pulp_maven_client/api/content_package_api.rb +369 -0
  14. data/lib/pulp_maven_client/api/distributions_maven_api.rb +298 -0
  15. data/lib/pulp_maven_client/api/remotes_maven_api.rb +298 -0
  16. data/lib/pulp_maven_client/api/repositories_maven_api.rb +304 -6
  17. data/lib/pulp_maven_client/models/maven_maven_package_response.rb +371 -0
  18. data/lib/pulp_maven_client/models/my_permissions_response.rb +223 -0
  19. data/lib/pulp_maven_client/models/nested_role.rb +263 -0
  20. data/lib/pulp_maven_client/models/nested_role_response.rb +244 -0
  21. data/lib/pulp_maven_client/models/object_roles_response.rb +223 -0
  22. data/lib/pulp_maven_client/models/paginatedmaven_maven_package_response_list.rb +257 -0
  23. data/lib/pulp_maven_client/version.rb +1 -1
  24. data/lib/pulp_maven_client.rb +7 -0
  25. data/spec/api/content_package_api_spec.rb +109 -0
  26. data/spec/api/distributions_maven_api_spec.rb +58 -0
  27. data/spec/api/remotes_maven_api_spec.rb +58 -0
  28. data/spec/api/repositories_maven_api_spec.rb +61 -3
  29. data/spec/models/maven_maven_package_response_spec.rb +126 -0
  30. data/spec/models/my_permissions_response_spec.rb +36 -0
  31. data/spec/models/nested_role_response_spec.rb +48 -0
  32. data/spec/models/nested_role_spec.rb +48 -0
  33. data/spec/models/object_roles_response_spec.rb +36 -0
  34. data/spec/models/paginatedmaven_maven_package_response_list_spec.rb +54 -0
  35. metadata +56 -28
@@ -4,16 +4,96 @@ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
+ | [**add_role**](DistributionsMavenApi.md#add_role) | **POST** {maven_maven_distribution_href}add_role/ | Add a role |
7
8
  | [**create**](DistributionsMavenApi.md#create) | **POST** /pulp/api/v3/distributions/maven/maven/ | Create a maven distribution |
8
9
  | [**delete**](DistributionsMavenApi.md#delete) | **DELETE** {maven_maven_distribution_href} | Delete a maven distribution |
9
10
  | [**list**](DistributionsMavenApi.md#list) | **GET** /pulp/api/v3/distributions/maven/maven/ | List maven distributions |
11
+ | [**list_roles**](DistributionsMavenApi.md#list_roles) | **GET** {maven_maven_distribution_href}list_roles/ | List roles |
12
+ | [**my_permissions**](DistributionsMavenApi.md#my_permissions) | **GET** {maven_maven_distribution_href}my_permissions/ | List user permissions |
10
13
  | [**partial_update**](DistributionsMavenApi.md#partial_update) | **PATCH** {maven_maven_distribution_href} | Update a maven distribution |
11
14
  | [**read**](DistributionsMavenApi.md#read) | **GET** {maven_maven_distribution_href} | Inspect a maven distribution |
15
+ | [**remove_role**](DistributionsMavenApi.md#remove_role) | **POST** {maven_maven_distribution_href}remove_role/ | Remove a role |
12
16
  | [**set_label**](DistributionsMavenApi.md#set_label) | **POST** {maven_maven_distribution_href}set_label/ | Set a label |
13
17
  | [**unset_label**](DistributionsMavenApi.md#unset_label) | **POST** {maven_maven_distribution_href}unset_label/ | Unset a label |
14
18
  | [**update**](DistributionsMavenApi.md#update) | **PUT** {maven_maven_distribution_href} | Update a maven distribution |
15
19
 
16
20
 
21
+ ## add_role
22
+
23
+ > <NestedRoleResponse> add_role(maven_maven_distribution_href, nested_role, opts)
24
+
25
+ Add a role
26
+
27
+ Add a role for this object to users/groups.
28
+
29
+ ### Examples
30
+
31
+ ```ruby
32
+ require 'time'
33
+ require 'pulp_maven_client'
34
+ # setup authorization
35
+ PulpMavenClient.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 = PulpMavenClient::DistributionsMavenApi.new
42
+ maven_maven_distribution_href = 'maven_maven_distribution_href_example' # String |
43
+ nested_role = PulpMavenClient::NestedRole.new({role: 'role_example'}) # NestedRole |
44
+ opts = {
45
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
46
+ }
47
+
48
+ begin
49
+ # Add a role
50
+ result = api_instance.add_role(maven_maven_distribution_href, nested_role, opts)
51
+ p result
52
+ rescue PulpMavenClient::ApiError => e
53
+ puts "Error when calling DistributionsMavenApi->add_role: #{e}"
54
+ end
55
+ ```
56
+
57
+ #### Using the add_role_with_http_info variant
58
+
59
+ This returns an Array which contains the response data, status code and headers.
60
+
61
+ > <Array(<NestedRoleResponse>, Integer, Hash)> add_role_with_http_info(maven_maven_distribution_href, nested_role, opts)
62
+
63
+ ```ruby
64
+ begin
65
+ # Add a role
66
+ data, status_code, headers = api_instance.add_role_with_http_info(maven_maven_distribution_href, nested_role, opts)
67
+ p status_code # => 2xx
68
+ p headers # => { ... }
69
+ p data # => <NestedRoleResponse>
70
+ rescue PulpMavenClient::ApiError => e
71
+ puts "Error when calling DistributionsMavenApi->add_role_with_http_info: #{e}"
72
+ end
73
+ ```
74
+
75
+ ### Parameters
76
+
77
+ | Name | Type | Description | Notes |
78
+ | ---- | ---- | ----------- | ----- |
79
+ | **maven_maven_distribution_href** | **String** | | |
80
+ | **nested_role** | [**NestedRole**](NestedRole.md) | | |
81
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
82
+
83
+ ### Return type
84
+
85
+ [**NestedRoleResponse**](NestedRoleResponse.md)
86
+
87
+ ### Authorization
88
+
89
+ [basicAuth](../README.md#basicAuth)
90
+
91
+ ### HTTP request headers
92
+
93
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
94
+ - **Accept**: application/json
95
+
96
+
17
97
  ## create
18
98
 
19
99
  > <AsyncOperationResponse> create(maven_maven_distribution, opts)
@@ -288,6 +368,162 @@ end
288
368
  - **Accept**: application/json
289
369
 
290
370
 
371
+ ## list_roles
372
+
373
+ > <ObjectRolesResponse> list_roles(maven_maven_distribution_href, opts)
374
+
375
+ List roles
376
+
377
+ List roles assigned to this object.
378
+
379
+ ### Examples
380
+
381
+ ```ruby
382
+ require 'time'
383
+ require 'pulp_maven_client'
384
+ # setup authorization
385
+ PulpMavenClient.configure do |config|
386
+ # Configure HTTP basic authorization: basicAuth
387
+ config.username = 'YOUR USERNAME'
388
+ config.password = 'YOUR PASSWORD'
389
+ end
390
+
391
+ api_instance = PulpMavenClient::DistributionsMavenApi.new
392
+ maven_maven_distribution_href = 'maven_maven_distribution_href_example' # String |
393
+ opts = {
394
+ x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
395
+ fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
396
+ exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
397
+ }
398
+
399
+ begin
400
+ # List roles
401
+ result = api_instance.list_roles(maven_maven_distribution_href, opts)
402
+ p result
403
+ rescue PulpMavenClient::ApiError => e
404
+ puts "Error when calling DistributionsMavenApi->list_roles: #{e}"
405
+ end
406
+ ```
407
+
408
+ #### Using the list_roles_with_http_info variant
409
+
410
+ This returns an Array which contains the response data, status code and headers.
411
+
412
+ > <Array(<ObjectRolesResponse>, Integer, Hash)> list_roles_with_http_info(maven_maven_distribution_href, opts)
413
+
414
+ ```ruby
415
+ begin
416
+ # List roles
417
+ data, status_code, headers = api_instance.list_roles_with_http_info(maven_maven_distribution_href, opts)
418
+ p status_code # => 2xx
419
+ p headers # => { ... }
420
+ p data # => <ObjectRolesResponse>
421
+ rescue PulpMavenClient::ApiError => e
422
+ puts "Error when calling DistributionsMavenApi->list_roles_with_http_info: #{e}"
423
+ end
424
+ ```
425
+
426
+ ### Parameters
427
+
428
+ | Name | Type | Description | Notes |
429
+ | ---- | ---- | ----------- | ----- |
430
+ | **maven_maven_distribution_href** | **String** | | |
431
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
432
+ | **fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to include in the response. | [optional] |
433
+ | **exclude_fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to exclude from the response. | [optional] |
434
+
435
+ ### Return type
436
+
437
+ [**ObjectRolesResponse**](ObjectRolesResponse.md)
438
+
439
+ ### Authorization
440
+
441
+ [basicAuth](../README.md#basicAuth)
442
+
443
+ ### HTTP request headers
444
+
445
+ - **Content-Type**: Not defined
446
+ - **Accept**: application/json
447
+
448
+
449
+ ## my_permissions
450
+
451
+ > <MyPermissionsResponse> my_permissions(maven_maven_distribution_href, opts)
452
+
453
+ List user permissions
454
+
455
+ List permissions available to the current user on this object.
456
+
457
+ ### Examples
458
+
459
+ ```ruby
460
+ require 'time'
461
+ require 'pulp_maven_client'
462
+ # setup authorization
463
+ PulpMavenClient.configure do |config|
464
+ # Configure HTTP basic authorization: basicAuth
465
+ config.username = 'YOUR USERNAME'
466
+ config.password = 'YOUR PASSWORD'
467
+ end
468
+
469
+ api_instance = PulpMavenClient::DistributionsMavenApi.new
470
+ maven_maven_distribution_href = 'maven_maven_distribution_href_example' # String |
471
+ opts = {
472
+ x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
473
+ fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
474
+ exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
475
+ }
476
+
477
+ begin
478
+ # List user permissions
479
+ result = api_instance.my_permissions(maven_maven_distribution_href, opts)
480
+ p result
481
+ rescue PulpMavenClient::ApiError => e
482
+ puts "Error when calling DistributionsMavenApi->my_permissions: #{e}"
483
+ end
484
+ ```
485
+
486
+ #### Using the my_permissions_with_http_info variant
487
+
488
+ This returns an Array which contains the response data, status code and headers.
489
+
490
+ > <Array(<MyPermissionsResponse>, Integer, Hash)> my_permissions_with_http_info(maven_maven_distribution_href, opts)
491
+
492
+ ```ruby
493
+ begin
494
+ # List user permissions
495
+ data, status_code, headers = api_instance.my_permissions_with_http_info(maven_maven_distribution_href, opts)
496
+ p status_code # => 2xx
497
+ p headers # => { ... }
498
+ p data # => <MyPermissionsResponse>
499
+ rescue PulpMavenClient::ApiError => e
500
+ puts "Error when calling DistributionsMavenApi->my_permissions_with_http_info: #{e}"
501
+ end
502
+ ```
503
+
504
+ ### Parameters
505
+
506
+ | Name | Type | Description | Notes |
507
+ | ---- | ---- | ----------- | ----- |
508
+ | **maven_maven_distribution_href** | **String** | | |
509
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
510
+ | **fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to include in the response. | [optional] |
511
+ | **exclude_fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to exclude from the response. | [optional] |
512
+
513
+ ### Return type
514
+
515
+ [**MyPermissionsResponse**](MyPermissionsResponse.md)
516
+
517
+ ### Authorization
518
+
519
+ [basicAuth](../README.md#basicAuth)
520
+
521
+ ### HTTP request headers
522
+
523
+ - **Content-Type**: Not defined
524
+ - **Accept**: application/json
525
+
526
+
291
527
  ## partial_update
292
528
 
293
529
  > <MavenMavenDistributionResponse> partial_update(maven_maven_distribution_href, patchedmaven_maven_distribution, opts)
@@ -442,6 +678,82 @@ end
442
678
  - **Accept**: application/json
443
679
 
444
680
 
681
+ ## remove_role
682
+
683
+ > <NestedRoleResponse> remove_role(maven_maven_distribution_href, nested_role, opts)
684
+
685
+ Remove a role
686
+
687
+ Remove a role for this object from users/groups.
688
+
689
+ ### Examples
690
+
691
+ ```ruby
692
+ require 'time'
693
+ require 'pulp_maven_client'
694
+ # setup authorization
695
+ PulpMavenClient.configure do |config|
696
+ # Configure HTTP basic authorization: basicAuth
697
+ config.username = 'YOUR USERNAME'
698
+ config.password = 'YOUR PASSWORD'
699
+ end
700
+
701
+ api_instance = PulpMavenClient::DistributionsMavenApi.new
702
+ maven_maven_distribution_href = 'maven_maven_distribution_href_example' # String |
703
+ nested_role = PulpMavenClient::NestedRole.new({role: 'role_example'}) # NestedRole |
704
+ opts = {
705
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
706
+ }
707
+
708
+ begin
709
+ # Remove a role
710
+ result = api_instance.remove_role(maven_maven_distribution_href, nested_role, opts)
711
+ p result
712
+ rescue PulpMavenClient::ApiError => e
713
+ puts "Error when calling DistributionsMavenApi->remove_role: #{e}"
714
+ end
715
+ ```
716
+
717
+ #### Using the remove_role_with_http_info variant
718
+
719
+ This returns an Array which contains the response data, status code and headers.
720
+
721
+ > <Array(<NestedRoleResponse>, Integer, Hash)> remove_role_with_http_info(maven_maven_distribution_href, nested_role, opts)
722
+
723
+ ```ruby
724
+ begin
725
+ # Remove a role
726
+ data, status_code, headers = api_instance.remove_role_with_http_info(maven_maven_distribution_href, nested_role, opts)
727
+ p status_code # => 2xx
728
+ p headers # => { ... }
729
+ p data # => <NestedRoleResponse>
730
+ rescue PulpMavenClient::ApiError => e
731
+ puts "Error when calling DistributionsMavenApi->remove_role_with_http_info: #{e}"
732
+ end
733
+ ```
734
+
735
+ ### Parameters
736
+
737
+ | Name | Type | Description | Notes |
738
+ | ---- | ---- | ----------- | ----- |
739
+ | **maven_maven_distribution_href** | **String** | | |
740
+ | **nested_role** | [**NestedRole**](NestedRole.md) | | |
741
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
742
+
743
+ ### Return type
744
+
745
+ [**NestedRoleResponse**](NestedRoleResponse.md)
746
+
747
+ ### Authorization
748
+
749
+ [basicAuth](../README.md#basicAuth)
750
+
751
+ ### HTTP request headers
752
+
753
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
754
+ - **Accept**: application/json
755
+
756
+
445
757
  ## set_label
446
758
 
447
759
  > <SetLabelResponse> set_label(maven_maven_distribution_href, set_label, opts)
@@ -0,0 +1,48 @@
1
+ # PulpMavenClient::MavenMavenPackageResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **pulp_href** | **String** | | [optional][readonly] |
8
+ | **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
9
+ | **pulp_created** | **Time** | Timestamp of creation. | [optional][readonly] |
10
+ | **pulp_last_updated** | **Time** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional][readonly] |
11
+ | **pulp_labels** | **Hash&lt;String, String&gt;** | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
12
+ | **vuln_report** | **String** | | [optional][readonly] |
13
+ | **group_id** | **String** | Group Id of the package. | [optional][readonly] |
14
+ | **artifact_id** | **String** | Artifact Id of the package. | [optional][readonly] |
15
+ | **version** | **String** | Version of the package. | [optional][readonly] |
16
+ | **name** | **String** | Human-readable name from the POM. | [optional][readonly] |
17
+ | **description** | **String** | Description from the POM. | [optional][readonly] |
18
+ | **packaging** | **String** | Packaging type (jar, war, pom, etc). | [optional][readonly] |
19
+ | **url** | **String** | Project URL from the POM. | [optional][readonly] |
20
+ | **licenses** | **Object** | | [optional] |
21
+ | **dependencies** | **Object** | | [optional] |
22
+ | **scm_url** | **String** | Source control URL from the POM. | [optional][readonly] |
23
+
24
+ ## Example
25
+
26
+ ```ruby
27
+ require 'pulp_maven_client'
28
+
29
+ instance = PulpMavenClient::MavenMavenPackageResponse.new(
30
+ pulp_href: null,
31
+ prn: null,
32
+ pulp_created: null,
33
+ pulp_last_updated: null,
34
+ pulp_labels: null,
35
+ vuln_report: null,
36
+ group_id: null,
37
+ artifact_id: null,
38
+ version: null,
39
+ name: null,
40
+ description: null,
41
+ packaging: null,
42
+ url: null,
43
+ licenses: null,
44
+ dependencies: null,
45
+ scm_url: null
46
+ )
47
+ ```
48
+
@@ -0,0 +1,18 @@
1
+ # PulpMavenClient::MyPermissionsResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **permissions** | **Array&lt;String&gt;** | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'pulp_maven_client'
13
+
14
+ instance = PulpMavenClient::MyPermissionsResponse.new(
15
+ permissions: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,22 @@
1
+ # PulpMavenClient::NestedRole
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **users** | **Array&lt;String&gt;** | | [optional] |
8
+ | **groups** | **Array&lt;String&gt;** | | [optional] |
9
+ | **role** | **String** | | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'pulp_maven_client'
15
+
16
+ instance = PulpMavenClient::NestedRole.new(
17
+ users: null,
18
+ groups: null,
19
+ role: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # PulpMavenClient::NestedRoleResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **users** | **Array&lt;String&gt;** | | [optional] |
8
+ | **groups** | **Array&lt;String&gt;** | | [optional] |
9
+ | **role** | **String** | | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'pulp_maven_client'
15
+
16
+ instance = PulpMavenClient::NestedRoleResponse.new(
17
+ users: null,
18
+ groups: null,
19
+ role: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,18 @@
1
+ # PulpMavenClient::ObjectRolesResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **roles** | [**Array&lt;NestedRoleResponse&gt;**](NestedRoleResponse.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'pulp_maven_client'
13
+
14
+ instance = PulpMavenClient::ObjectRolesResponse.new(
15
+ roles: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,24 @@
1
+ # PulpMavenClient::PaginatedmavenMavenPackageResponseList
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **count** | **Integer** | | |
8
+ | **_next** | **String** | | [optional] |
9
+ | **previous** | **String** | | [optional] |
10
+ | **results** | [**Array&lt;MavenMavenPackageResponse&gt;**](MavenMavenPackageResponse.md) | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'pulp_maven_client'
16
+
17
+ instance = PulpMavenClient::PaginatedmavenMavenPackageResponseList.new(
18
+ count: 123,
19
+ _next: http://api.example.org/accounts/?offset&#x3D;400&amp;limit&#x3D;100,
20
+ previous: http://api.example.org/accounts/?offset&#x3D;200&amp;limit&#x3D;100,
21
+ results: null
22
+ )
23
+ ```
24
+