pulp_deb_client 3.8.2 → 3.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -4
  3. data/docs/ContentGenericContentsApi.md +2 -0
  4. data/docs/ContentInstallerPackagesApi.md +2 -0
  5. data/docs/ContentPackagesApi.md +2 -0
  6. data/docs/DebAptPublication.md +5 -1
  7. data/docs/DebAptPublicationResponse.md +5 -1
  8. data/docs/DebInstallerFileIndex.md +2 -0
  9. data/docs/DebPackageIndex.md +2 -0
  10. data/docs/DebPackageReleaseComponent.md +2 -0
  11. data/docs/DebRelease.md +2 -0
  12. data/docs/DebReleaseArchitecture.md +2 -0
  13. data/docs/DebReleaseComponent.md +2 -0
  14. data/docs/DebReleaseFile.md +2 -0
  15. data/docs/DebSourceIndex.md +2 -0
  16. data/docs/DebSourcePackage.md +2 -0
  17. data/docs/DebSourcePackageReleaseComponent.md +2 -0
  18. data/docs/LayoutEnum.md +15 -0
  19. data/docs/RepositoryAddRemoveContent.md +3 -1
  20. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +3 -0
  21. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +3 -0
  22. data/lib/pulp_deb_client/api/content_packages_api.rb +3 -0
  23. data/lib/pulp_deb_client/models/deb_apt_publication.rb +48 -4
  24. data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +48 -4
  25. data/lib/pulp_deb_client/models/deb_installer_file_index.rb +11 -1
  26. data/lib/pulp_deb_client/models/deb_package_index.rb +11 -1
  27. data/lib/pulp_deb_client/models/deb_package_release_component.rb +11 -1
  28. data/lib/pulp_deb_client/models/deb_release.rb +11 -1
  29. data/lib/pulp_deb_client/models/deb_release_architecture.rb +11 -1
  30. data/lib/pulp_deb_client/models/deb_release_component.rb +11 -1
  31. data/lib/pulp_deb_client/models/deb_release_file.rb +11 -1
  32. data/lib/pulp_deb_client/models/deb_source_index.rb +11 -1
  33. data/lib/pulp_deb_client/models/deb_source_package.rb +11 -1
  34. data/lib/pulp_deb_client/models/deb_source_package_release_component.rb +11 -1
  35. data/lib/pulp_deb_client/models/layout_enum.rb +41 -0
  36. data/lib/pulp_deb_client/models/repository_add_remove_content.rb +16 -4
  37. data/lib/pulp_deb_client/version.rb +1 -1
  38. data/lib/pulp_deb_client.rb +1 -0
  39. data/spec/api/content_generic_contents_api_spec.rb +1 -0
  40. data/spec/api/content_installer_packages_api_spec.rb +1 -0
  41. data/spec/api/content_packages_api_spec.rb +1 -0
  42. data/spec/models/deb_apt_publication_response_spec.rb +12 -0
  43. data/spec/models/deb_apt_publication_spec.rb +12 -0
  44. data/spec/models/deb_installer_file_index_spec.rb +6 -0
  45. data/spec/models/deb_package_index_spec.rb +6 -0
  46. data/spec/models/deb_package_release_component_spec.rb +6 -0
  47. data/spec/models/deb_release_architecture_spec.rb +6 -0
  48. data/spec/models/deb_release_component_spec.rb +6 -0
  49. data/spec/models/deb_release_file_spec.rb +6 -0
  50. data/spec/models/deb_release_spec.rb +6 -0
  51. data/spec/models/deb_source_index_spec.rb +6 -0
  52. data/spec/models/deb_source_package_release_component_spec.rb +6 -0
  53. data/spec/models/deb_source_package_spec.rb +6 -0
  54. data/spec/models/layout_enum_spec.rb +30 -0
  55. data/spec/models/repository_add_remove_content_spec.rb +6 -0
  56. metadata +84 -80
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3763e417b31a5b952aebf3c52e8e854ac651c3b270d067954bcaaa61dc10e2b3
4
- data.tar.gz: a703f07317352f85457d342f9ec478ad74ca94c5c30d7b271318f748ea642ffb
3
+ metadata.gz: af976522d2287d1df439fa42444c72bb59623fe132f1945cf447aefdaff1de93
4
+ data.tar.gz: d8a1ac45e3b9870947b0646214ad9215520c4d48c0037b3dfabaf0cc4735887e
5
5
  SHA512:
6
- metadata.gz: c541a9179c6c89f11cf931333abb0d573cb08060a29f5b480ae494db0b692cd04d1d12d0b430b9df71b588846d3a647948909635bd5f6719f8d4be3c59b7efc3
7
- data.tar.gz: e7666472b23e923921099ed199ed2552cd8afd3acb8a33a6e1745608f3ddda866e237575277171e08c3b3259b791fb8313d46a4b8106d93ac2fe96e895c12a5d
6
+ metadata.gz: 312a0f7aca01b5187afcc1510567952d5688af4174ce8a5a40cf802a08cfd327de57356589a8d651908b26312c1849e55aba4917c69dcc61201fb0684b3b06d6
7
+ data.tar.gz: 5e8035274c4cbd25bbe9774800e77ecf34db02b23b38a82fac6475b7f1523af8a04bec7384a2fd7d3fc0e04b5055f0186c664d4a8bf445e5657d25335dbeb426
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: 3.8.2
10
+ - Package version: 3.9.0
11
11
  - Generator version: 7.10.0
12
12
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
13
13
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
@@ -25,16 +25,16 @@ gem build pulp_deb_client.gemspec
25
25
  Then either install the gem locally:
26
26
 
27
27
  ```shell
28
- gem install ./pulp_deb_client-3.8.2.gem
28
+ gem install ./pulp_deb_client-3.9.0.gem
29
29
  ```
30
30
 
31
- (for development, run `gem install --dev ./pulp_deb_client-3.8.2.gem` to install the development dependencies)
31
+ (for development, run `gem install --dev ./pulp_deb_client-3.9.0.gem` to install the development dependencies)
32
32
 
33
33
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
34
34
 
35
35
  Finally add this to the Gemfile:
36
36
 
37
- gem 'pulp_deb_client', '~> 3.8.2'
37
+ gem 'pulp_deb_client', '~> 3.9.0'
38
38
 
39
39
  ### Install from Git
40
40
 
@@ -269,6 +269,7 @@ Class | Method | HTTP request | Description
269
269
  - [PulpDebClient::DebSourcePackageResponse](docs/DebSourcePackageResponse.md)
270
270
  - [PulpDebClient::DebVerbatimPublication](docs/DebVerbatimPublication.md)
271
271
  - [PulpDebClient::DebVerbatimPublicationResponse](docs/DebVerbatimPublicationResponse.md)
272
+ - [PulpDebClient::LayoutEnum](docs/LayoutEnum.md)
272
273
  - [PulpDebClient::MyPermissionsResponse](docs/MyPermissionsResponse.md)
273
274
  - [PulpDebClient::NestedRole](docs/NestedRole.md)
274
275
  - [PulpDebClient::NestedRoleResponse](docs/NestedRoleResponse.md)
@@ -36,6 +36,7 @@ relative_path = 'relative_path_example' # String | Path where the artifact is lo
36
36
  opts = {
37
37
  x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
38
38
  repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
39
+ overwrite: true, # Boolean | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
39
40
  pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
40
41
  artifact: 'artifact_example', # String | Artifact file representing the physical content
41
42
  file: File.new('/path/to/some/file'), # File | An uploaded file that may be turned into the content unit.
@@ -78,6 +79,7 @@ end
78
79
  | **relative_path** | **String** | Path where the artifact is located relative to distributions base_path | |
79
80
  | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
80
81
  | **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
82
+ | **overwrite** | **Boolean** | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true. | [optional] |
81
83
  | **pulp_labels** | [**Hash&lt;String, String&gt;**](Hash.md) | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
82
84
  | **artifact** | **String** | Artifact file representing the physical content | [optional] |
83
85
  | **file** | **File** | An uploaded file that may be turned into the content unit. | [optional] |
@@ -35,6 +35,7 @@ api_instance = PulpDebClient::ContentInstallerPackagesApi.new
35
35
  opts = {
36
36
  x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
37
37
  repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
38
+ overwrite: true, # Boolean | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
38
39
  pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
39
40
  artifact: 'artifact_example', # String | Artifact file representing the physical content
40
41
  relative_path: 'relative_path_example', # String | Path where the artifact is located relative to distributions base_path
@@ -77,6 +78,7 @@ end
77
78
  | ---- | ---- | ----------- | ----- |
78
79
  | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
79
80
  | **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
81
+ | **overwrite** | **Boolean** | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true. | [optional] |
80
82
  | **pulp_labels** | [**Hash&lt;String, String&gt;**](Hash.md) | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
81
83
  | **artifact** | **String** | Artifact file representing the physical content | [optional] |
82
84
  | **relative_path** | **String** | Path where the artifact is located relative to distributions base_path | [optional] |
@@ -35,6 +35,7 @@ api_instance = PulpDebClient::ContentPackagesApi.new
35
35
  opts = {
36
36
  x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
37
37
  repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
38
+ overwrite: true, # Boolean | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
38
39
  pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
39
40
  artifact: 'artifact_example', # String | Artifact file representing the physical content
40
41
  relative_path: 'relative_path_example', # String | Path where the artifact is located relative to distributions base_path
@@ -79,6 +80,7 @@ end
79
80
  | ---- | ---- | ----------- | ----- |
80
81
  | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
81
82
  | **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
83
+ | **overwrite** | **Boolean** | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true. | [optional] |
82
84
  | **pulp_labels** | [**Hash&lt;String, String&gt;**](Hash.md) | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
83
85
  | **artifact** | **String** | Artifact file representing the physical content | [optional] |
84
86
  | **relative_path** | **String** | Path where the artifact is located relative to distributions base_path | [optional] |
@@ -11,6 +11,8 @@
11
11
  | **checkpoint** | **Boolean** | | [optional] |
12
12
  | **signing_service** | **String** | Sign Release files with this signing key | [optional] |
13
13
  | **publish_upstream_release_fields** | **Boolean** | | [optional] |
14
+ | **publish_legacy_release_files** | **Boolean** | Whether or not to publish Legacy per-component-and-architecture Release files. | [optional][default to false] |
15
+ | **layout** | [**LayoutEnum**](LayoutEnum.md) | How to layout the packages within the published repository. * &#x60;nested_alphabetically&#x60; - nested_alphabetically * &#x60;nested_by_digest&#x60; - nested_by_digest * &#x60;nested_by_both&#x60; - nested_by_both | [optional] |
14
16
 
15
17
  ## Example
16
18
 
@@ -24,7 +26,9 @@ instance = PulpDebClient::DebAptPublication.new(
24
26
  structured: null,
25
27
  checkpoint: null,
26
28
  signing_service: null,
27
- publish_upstream_release_fields: null
29
+ publish_upstream_release_fields: null,
30
+ publish_legacy_release_files: null,
31
+ layout: null
28
32
  )
29
33
  ```
30
34
 
@@ -15,6 +15,8 @@
15
15
  | **checkpoint** | **Boolean** | | [optional] |
16
16
  | **signing_service** | **String** | Sign Release files with this signing key | [optional] |
17
17
  | **publish_upstream_release_fields** | **Boolean** | | [optional] |
18
+ | **publish_legacy_release_files** | **Boolean** | Whether or not to publish Legacy per-component-and-architecture Release files. | [optional][default to false] |
19
+ | **layout** | [**LayoutEnum**](LayoutEnum.md) | How to layout the packages within the published repository. * &#x60;nested_alphabetically&#x60; - nested_alphabetically * &#x60;nested_by_digest&#x60; - nested_by_digest * &#x60;nested_by_both&#x60; - nested_by_both | [optional] |
18
20
 
19
21
  ## Example
20
22
 
@@ -32,7 +34,9 @@ instance = PulpDebClient::DebAptPublicationResponse.new(
32
34
  structured: null,
33
35
  checkpoint: null,
34
36
  signing_service: null,
35
- publish_upstream_release_fields: null
37
+ publish_upstream_release_fields: null,
38
+ publish_legacy_release_files: null,
39
+ layout: null
36
40
  )
37
41
  ```
38
42
 
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
8
+ | **overwrite** | **Boolean** | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true. | [optional] |
8
9
  | **pulp_labels** | **Hash&lt;String, String&gt;** | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
9
10
  | **artifacts** | **Object** | A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {&#39;relative/path&#39;: &#39;/artifacts/1/&#39; | |
10
11
  | **component** | **String** | Component of the component - architecture combination. | |
@@ -18,6 +19,7 @@ require 'pulp_deb_client'
18
19
 
19
20
  instance = PulpDebClient::DebInstallerFileIndex.new(
20
21
  repository: null,
22
+ overwrite: null,
21
23
  pulp_labels: null,
22
24
  artifacts: null,
23
25
  component: null,
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
8
+ | **overwrite** | **Boolean** | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true. | [optional] |
8
9
  | **pulp_labels** | **Hash&lt;String, String&gt;** | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
9
10
  | **artifacts** | **Object** | A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {&#39;relative/path&#39;: &#39;/artifacts/1/&#39; | |
10
11
  | **component** | **String** | Component of the component - architecture combination. | [optional] |
@@ -18,6 +19,7 @@ require 'pulp_deb_client'
18
19
 
19
20
  instance = PulpDebClient::DebPackageIndex.new(
20
21
  repository: null,
22
+ overwrite: null,
21
23
  pulp_labels: null,
22
24
  artifacts: null,
23
25
  component: null,
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
8
+ | **overwrite** | **Boolean** | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true. | [optional] |
8
9
  | **pulp_labels** | **Hash&lt;String, String&gt;** | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
9
10
  | **package** | **String** | Package that is contained in release_comonent. | |
10
11
  | **release_component** | **String** | ReleaseComponent this package is contained in. | |
@@ -16,6 +17,7 @@ require 'pulp_deb_client'
16
17
 
17
18
  instance = PulpDebClient::DebPackageReleaseComponent.new(
18
19
  repository: null,
20
+ overwrite: null,
19
21
  pulp_labels: null,
20
22
  package: null,
21
23
  release_component: null
data/docs/DebRelease.md CHANGED
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
8
+ | **overwrite** | **Boolean** | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true. | [optional] |
8
9
  | **pulp_labels** | **Hash&lt;String, String&gt;** | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
9
10
  | **codename** | **String** | | |
10
11
  | **suite** | **String** | | |
@@ -23,6 +24,7 @@ require 'pulp_deb_client'
23
24
 
24
25
  instance = PulpDebClient::DebRelease.new(
25
26
  repository: null,
27
+ overwrite: null,
26
28
  pulp_labels: null,
27
29
  codename: null,
28
30
  suite: null,
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
8
+ | **overwrite** | **Boolean** | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true. | [optional] |
8
9
  | **pulp_labels** | **Hash&lt;String, String&gt;** | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
9
10
  | **architecture** | **String** | Name of the architecture. | |
10
11
  | **distribution** | **String** | Name of the distribution. | |
@@ -16,6 +17,7 @@ require 'pulp_deb_client'
16
17
 
17
18
  instance = PulpDebClient::DebReleaseArchitecture.new(
18
19
  repository: null,
20
+ overwrite: null,
19
21
  pulp_labels: null,
20
22
  architecture: null,
21
23
  distribution: null
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
8
+ | **overwrite** | **Boolean** | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true. | [optional] |
8
9
  | **pulp_labels** | **Hash&lt;String, String&gt;** | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
9
10
  | **component** | **String** | Name of the component. | |
10
11
  | **distribution** | **String** | Name of the distribution. | |
@@ -16,6 +17,7 @@ require 'pulp_deb_client'
16
17
 
17
18
  instance = PulpDebClient::DebReleaseComponent.new(
18
19
  repository: null,
20
+ overwrite: null,
19
21
  pulp_labels: null,
20
22
  component: null,
21
23
  distribution: null
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
8
+ | **overwrite** | **Boolean** | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true. | [optional] |
8
9
  | **pulp_labels** | **Hash&lt;String, String&gt;** | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
9
10
  | **artifacts** | **Object** | A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {&#39;relative/path&#39;: &#39;/artifacts/1/&#39; | |
10
11
  | **codename** | **String** | Codename of the release, e.g. \&quot;buster\&quot;. | [optional] |
@@ -19,6 +20,7 @@ require 'pulp_deb_client'
19
20
 
20
21
  instance = PulpDebClient::DebReleaseFile.new(
21
22
  repository: null,
23
+ overwrite: null,
22
24
  pulp_labels: null,
23
25
  artifacts: null,
24
26
  codename: null,
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
8
+ | **overwrite** | **Boolean** | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true. | [optional] |
8
9
  | **pulp_labels** | **Hash&lt;String, String&gt;** | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
9
10
  | **artifacts** | **Object** | A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {&#39;relative/path&#39;: &#39;/artifacts/1/&#39; | |
10
11
  | **release** | **String** | Release this index file belongs to. | |
@@ -18,6 +19,7 @@ require 'pulp_deb_client'
18
19
 
19
20
  instance = PulpDebClient::DebSourceIndex.new(
20
21
  repository: null,
22
+ overwrite: null,
21
23
  pulp_labels: null,
22
24
  artifacts: null,
23
25
  release: null,
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
8
+ | **overwrite** | **Boolean** | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true. | [optional] |
8
9
  | **pulp_labels** | **Hash&lt;String, String&gt;** | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
9
10
  | **artifact** | **String** | Artifact URL of the Debian Source Control (dsc) file. | |
10
11
  | **relative_path** | **String** | Relative path of the Debian Source Control (dsc) file.It is normally advised to let Pulp generate this. | [optional] |
@@ -16,6 +17,7 @@ require 'pulp_deb_client'
16
17
 
17
18
  instance = PulpDebClient::DebSourcePackage.new(
18
19
  repository: null,
20
+ overwrite: null,
19
21
  pulp_labels: null,
20
22
  artifact: null,
21
23
  relative_path: null
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
8
+ | **overwrite** | **Boolean** | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true. | [optional] |
8
9
  | **pulp_labels** | **Hash&lt;String, String&gt;** | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
9
10
  | **source_package** | **String** | Source package that is contained in release_component. | |
10
11
  | **release_component** | **String** | ReleaseComponent this source package is contained in. | |
@@ -16,6 +17,7 @@ require 'pulp_deb_client'
16
17
 
17
18
  instance = PulpDebClient::DebSourcePackageReleaseComponent.new(
18
19
  repository: null,
20
+ overwrite: null,
19
21
  pulp_labels: null,
20
22
  source_package: null,
21
23
  release_component: null
@@ -0,0 +1,15 @@
1
+ # PulpDebClient::LayoutEnum
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'pulp_deb_client'
12
+
13
+ instance = PulpDebClient::LayoutEnum.new()
14
+ ```
15
+
@@ -7,6 +7,7 @@
7
7
  | **add_content_units** | **Array&lt;String&gt;** | A list of content units to add to a new repository version. This content is added after remove_content_units are removed. | [optional] |
8
8
  | **remove_content_units** | **Array&lt;String&gt;** | A list of content units to remove from the latest repository version. You may also specify &#39;*&#39; as an entry to remove all content. This content is removed before add_content_units are added. | [optional] |
9
9
  | **base_version** | **String** | A repository version whose content will be used as the initial set of content for the new repository version | [optional] |
10
+ | **overwrite** | **Boolean** | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Defaults to true. | [optional][default to true] |
10
11
 
11
12
  ## Example
12
13
 
@@ -16,7 +17,8 @@ require 'pulp_deb_client'
16
17
  instance = PulpDebClient::RepositoryAddRemoveContent.new(
17
18
  add_content_units: null,
18
19
  remove_content_units: null,
19
- base_version: null
20
+ base_version: null,
21
+ overwrite: null
20
22
  )
21
23
  ```
22
24
 
@@ -25,6 +25,7 @@ module PulpDebClient
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
27
27
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
28
+ # @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true.
28
29
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
29
30
  # @option opts [String] :artifact Artifact file representing the physical content
30
31
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
@@ -43,6 +44,7 @@ module PulpDebClient
43
44
  # @param [Hash] opts the optional parameters
44
45
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
45
46
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
47
+ # @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true.
46
48
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
47
49
  # @option opts [String] :artifact Artifact file representing the physical content
48
50
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
@@ -87,6 +89,7 @@ module PulpDebClient
87
89
  form_params = opts[:form_params] || {}
88
90
  form_params['relative_path'] = relative_path
89
91
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
92
+ form_params['overwrite'] = opts[:'overwrite'] if !opts[:'overwrite'].nil?
90
93
  form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
91
94
  form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
92
95
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
@@ -24,6 +24,7 @@ module PulpDebClient
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
26
26
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
27
+ # @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true.
27
28
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
28
29
  # @option opts [String] :artifact Artifact file representing the physical content
29
30
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
@@ -42,6 +43,7 @@ module PulpDebClient
42
43
  # @param [Hash] opts the optional parameters
43
44
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
44
45
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
46
+ # @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true.
45
47
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
46
48
  # @option opts [String] :artifact Artifact file representing the physical content
47
49
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
@@ -82,6 +84,7 @@ module PulpDebClient
82
84
  # form parameters
83
85
  form_params = opts[:form_params] || {}
84
86
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
87
+ form_params['overwrite'] = opts[:'overwrite'] if !opts[:'overwrite'].nil?
85
88
  form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
86
89
  form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
87
90
  form_params['relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
@@ -24,6 +24,7 @@ module PulpDebClient
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
26
26
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
27
+ # @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true.
27
28
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
28
29
  # @option opts [String] :artifact Artifact file representing the physical content
29
30
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
@@ -44,6 +45,7 @@ module PulpDebClient
44
45
  # @param [Hash] opts the optional parameters
45
46
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
46
47
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
48
+ # @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true.
47
49
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
48
50
  # @option opts [String] :artifact Artifact file representing the physical content
49
51
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
@@ -94,6 +96,7 @@ module PulpDebClient
94
96
  # form parameters
95
97
  form_params = opts[:form_params] || {}
96
98
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
99
+ form_params['overwrite'] = opts[:'overwrite'] if !opts[:'overwrite'].nil?
97
100
  form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
98
101
  form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
99
102
  form_params['relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
@@ -34,6 +34,34 @@ module PulpDebClient
34
34
 
35
35
  attr_accessor :publish_upstream_release_fields
36
36
 
37
+ # Whether or not to publish Legacy per-component-and-architecture Release files.
38
+ attr_accessor :publish_legacy_release_files
39
+
40
+ # How to layout the packages within the published repository. * `nested_alphabetically` - nested_alphabetically * `nested_by_digest` - nested_by_digest * `nested_by_both` - nested_by_both
41
+ attr_accessor :layout
42
+
43
+ class EnumAttributeValidator
44
+ attr_reader :datatype
45
+ attr_reader :allowable_values
46
+
47
+ def initialize(datatype, allowable_values)
48
+ @allowable_values = allowable_values.map do |value|
49
+ case datatype.to_s
50
+ when /Integer/i
51
+ value.to_i
52
+ when /Float/i
53
+ value.to_f
54
+ else
55
+ value
56
+ end
57
+ end
58
+ end
59
+
60
+ def valid?(value)
61
+ !value || allowable_values.include?(value)
62
+ end
63
+ end
64
+
37
65
  # Attribute mapping from ruby-style variable name to JSON key.
38
66
  def self.attribute_map
39
67
  {
@@ -43,7 +71,9 @@ module PulpDebClient
43
71
  :'structured' => :'structured',
44
72
  :'checkpoint' => :'checkpoint',
45
73
  :'signing_service' => :'signing_service',
46
- :'publish_upstream_release_fields' => :'publish_upstream_release_fields'
74
+ :'publish_upstream_release_fields' => :'publish_upstream_release_fields',
75
+ :'publish_legacy_release_files' => :'publish_legacy_release_files',
76
+ :'layout' => :'layout'
47
77
  }
48
78
  end
49
79
 
@@ -61,7 +91,9 @@ module PulpDebClient
61
91
  :'structured' => :'Boolean',
62
92
  :'checkpoint' => :'Boolean',
63
93
  :'signing_service' => :'String',
64
- :'publish_upstream_release_fields' => :'Boolean'
94
+ :'publish_upstream_release_fields' => :'Boolean',
95
+ :'publish_legacy_release_files' => :'Boolean',
96
+ :'layout' => :'LayoutEnum'
65
97
  }
66
98
  end
67
99
 
@@ -117,6 +149,16 @@ module PulpDebClient
117
149
  if attributes.key?(:'publish_upstream_release_fields')
118
150
  self.publish_upstream_release_fields = attributes[:'publish_upstream_release_fields']
119
151
  end
152
+
153
+ if attributes.key?(:'publish_legacy_release_files')
154
+ self.publish_legacy_release_files = attributes[:'publish_legacy_release_files']
155
+ else
156
+ self.publish_legacy_release_files = false
157
+ end
158
+
159
+ if attributes.key?(:'layout')
160
+ self.layout = attributes[:'layout']
161
+ end
120
162
  end
121
163
 
122
164
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -145,7 +187,9 @@ module PulpDebClient
145
187
  structured == o.structured &&
146
188
  checkpoint == o.checkpoint &&
147
189
  signing_service == o.signing_service &&
148
- publish_upstream_release_fields == o.publish_upstream_release_fields
190
+ publish_upstream_release_fields == o.publish_upstream_release_fields &&
191
+ publish_legacy_release_files == o.publish_legacy_release_files &&
192
+ layout == o.layout
149
193
  end
150
194
 
151
195
  # @see the `==` method
@@ -157,7 +201,7 @@ module PulpDebClient
157
201
  # Calculates hash code according to all attributes.
158
202
  # @return [Integer] Hash code
159
203
  def hash
160
- [repository_version, repository, simple, structured, checkpoint, signing_service, publish_upstream_release_fields].hash
204
+ [repository_version, repository, simple, structured, checkpoint, signing_service, publish_upstream_release_fields, publish_legacy_release_files, layout].hash
161
205
  end
162
206
 
163
207
  # Builds the object from hash
@@ -45,6 +45,34 @@ module PulpDebClient
45
45
 
46
46
  attr_accessor :publish_upstream_release_fields
47
47
 
48
+ # Whether or not to publish Legacy per-component-and-architecture Release files.
49
+ attr_accessor :publish_legacy_release_files
50
+
51
+ # How to layout the packages within the published repository. * `nested_alphabetically` - nested_alphabetically * `nested_by_digest` - nested_by_digest * `nested_by_both` - nested_by_both
52
+ attr_accessor :layout
53
+
54
+ class EnumAttributeValidator
55
+ attr_reader :datatype
56
+ attr_reader :allowable_values
57
+
58
+ def initialize(datatype, allowable_values)
59
+ @allowable_values = allowable_values.map do |value|
60
+ case datatype.to_s
61
+ when /Integer/i
62
+ value.to_i
63
+ when /Float/i
64
+ value.to_f
65
+ else
66
+ value
67
+ end
68
+ end
69
+ end
70
+
71
+ def valid?(value)
72
+ !value || allowable_values.include?(value)
73
+ end
74
+ end
75
+
48
76
  # Attribute mapping from ruby-style variable name to JSON key.
49
77
  def self.attribute_map
50
78
  {
@@ -58,7 +86,9 @@ module PulpDebClient
58
86
  :'structured' => :'structured',
59
87
  :'checkpoint' => :'checkpoint',
60
88
  :'signing_service' => :'signing_service',
61
- :'publish_upstream_release_fields' => :'publish_upstream_release_fields'
89
+ :'publish_upstream_release_fields' => :'publish_upstream_release_fields',
90
+ :'publish_legacy_release_files' => :'publish_legacy_release_files',
91
+ :'layout' => :'layout'
62
92
  }
63
93
  end
64
94
 
@@ -80,7 +110,9 @@ module PulpDebClient
80
110
  :'structured' => :'Boolean',
81
111
  :'checkpoint' => :'Boolean',
82
112
  :'signing_service' => :'String',
83
- :'publish_upstream_release_fields' => :'Boolean'
113
+ :'publish_upstream_release_fields' => :'Boolean',
114
+ :'publish_legacy_release_files' => :'Boolean',
115
+ :'layout' => :'LayoutEnum'
84
116
  }
85
117
  end
86
118
 
@@ -152,6 +184,16 @@ module PulpDebClient
152
184
  if attributes.key?(:'publish_upstream_release_fields')
153
185
  self.publish_upstream_release_fields = attributes[:'publish_upstream_release_fields']
154
186
  end
187
+
188
+ if attributes.key?(:'publish_legacy_release_files')
189
+ self.publish_legacy_release_files = attributes[:'publish_legacy_release_files']
190
+ else
191
+ self.publish_legacy_release_files = false
192
+ end
193
+
194
+ if attributes.key?(:'layout')
195
+ self.layout = attributes[:'layout']
196
+ end
155
197
  end
156
198
 
157
199
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -184,7 +226,9 @@ module PulpDebClient
184
226
  structured == o.structured &&
185
227
  checkpoint == o.checkpoint &&
186
228
  signing_service == o.signing_service &&
187
- publish_upstream_release_fields == o.publish_upstream_release_fields
229
+ publish_upstream_release_fields == o.publish_upstream_release_fields &&
230
+ publish_legacy_release_files == o.publish_legacy_release_files &&
231
+ layout == o.layout
188
232
  end
189
233
 
190
234
  # @see the `==` method
@@ -196,7 +240,7 @@ module PulpDebClient
196
240
  # Calculates hash code according to all attributes.
197
241
  # @return [Integer] Hash code
198
242
  def hash
199
- [pulp_href, prn, pulp_created, pulp_last_updated, repository_version, repository, simple, structured, checkpoint, signing_service, publish_upstream_release_fields].hash
243
+ [pulp_href, prn, pulp_created, pulp_last_updated, repository_version, repository, simple, structured, checkpoint, signing_service, publish_upstream_release_fields, publish_legacy_release_files, layout].hash
200
244
  end
201
245
 
202
246
  # Builds the object from hash