pulp_deb_client 2.14.1 → 2.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/docs/ContentGenericContentsApi.md +1 -1
  4. data/docs/ContentInstallerFileIndicesApi.md +1 -1
  5. data/docs/ContentInstallerPackagesApi.md +1 -1
  6. data/docs/ContentPackageIndicesApi.md +1 -1
  7. data/docs/ContentPackageReleaseComponentsApi.md +1 -1
  8. data/docs/ContentPackagesApi.md +1 -1
  9. data/docs/ContentReleaseArchitecturesApi.md +1 -1
  10. data/docs/ContentReleaseComponentsApi.md +1 -1
  11. data/docs/ContentReleaseFilesApi.md +1 -1
  12. data/docs/ContentReleasesApi.md +1 -1
  13. data/docs/DebAptRemote.md +1 -1
  14. data/docs/DebAptRemoteResponse.md +1 -1
  15. data/docs/DebAptRepository.md +3 -3
  16. data/docs/DebAptRepositoryResponse.md +3 -3
  17. data/docs/DebPackageIndex.md +2 -2
  18. data/docs/DebPackageIndexResponse.md +2 -2
  19. data/docs/DistributionsAptApi.md +1 -1
  20. data/docs/PatcheddebAptRemote.md +1 -1
  21. data/docs/PatcheddebAptRepository.md +3 -3
  22. data/docs/PublicationsAptApi.md +1 -1
  23. data/docs/PublicationsVerbatimApi.md +1 -1
  24. data/docs/RemotesAptApi.md +1 -1
  25. data/docs/RepositoriesAptApi.md +1 -1
  26. data/docs/RepositoriesAptVersionsApi.md +1 -1
  27. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +4 -0
  28. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +4 -0
  29. data/lib/pulp_deb_client/api/content_packages_api.rb +4 -0
  30. data/lib/pulp_deb_client/configuration.rb +2 -2
  31. data/lib/pulp_deb_client/models/deb_apt_distribution.rb +38 -0
  32. data/lib/pulp_deb_client/models/deb_apt_remote.rb +223 -1
  33. data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +1 -1
  34. data/lib/pulp_deb_client/models/deb_apt_repository.rb +51 -16
  35. data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +17 -16
  36. data/lib/pulp_deb_client/models/deb_base_package.rb +15 -0
  37. data/lib/pulp_deb_client/models/deb_generic_content.rb +19 -0
  38. data/lib/pulp_deb_client/models/deb_installer_file_index.rb +53 -0
  39. data/lib/pulp_deb_client/models/deb_package_index.rb +41 -6
  40. data/lib/pulp_deb_client/models/deb_package_index_response.rb +0 -10
  41. data/lib/pulp_deb_client/models/deb_release.rb +57 -0
  42. data/lib/pulp_deb_client/models/deb_release_architecture.rb +19 -0
  43. data/lib/pulp_deb_client/models/deb_release_component.rb +19 -0
  44. data/lib/pulp_deb_client/models/deb_release_file.rb +64 -0
  45. data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +30 -0
  46. data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +211 -1
  47. data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +47 -16
  48. data/lib/pulp_deb_client/version.rb +1 -1
  49. data/pulp_deb_client.gemspec +1 -1
  50. data/spec/configuration_spec.rb +3 -3
  51. data/spec/models/deb_apt_repository_response_spec.rb +1 -1
  52. data/spec/models/deb_apt_repository_spec.rb +1 -1
  53. data/spec/models/patcheddeb_apt_repository_spec.rb +1 -1
  54. metadata +63 -57
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd600504f5a62e78e064bb1308b6606d18fdaf6f333714433b542504cdbdfc86
4
- data.tar.gz: 50a4ac8c754f319ae9c661b3d85b94bb07ce33850d16c9fc7a87316418c7f8dd
3
+ metadata.gz: fa196451d93cda885cacaafa69830182b0a2eae096322dd66a06d3f251f02fc8
4
+ data.tar.gz: f1b935e29c525b5c464f02d8785391e740fcd3b6f9617ecb9843a2bd4493ccf8
5
5
  SHA512:
6
- metadata.gz: 93cf558596a3a5121e02d3d014af703616591dbc1d5331d8b252b34b02fe0b1968dfce8d5a546e60f5403359f3aa4f713665d9d6ecea9f5bacd1ed2b62f76fc7
7
- data.tar.gz: da5818b756206662bd2046e4a63a542087d8521c6448177afa6c4689b2db97878f3559dca2f25f0c498477dff32382c1f72582d0eae79e9b5934bcc1e594e8f0
6
+ metadata.gz: 95ba00b7de3334c519d1095b5905aa01a2bb781c13f368ad1d6c5fc6f40fe8946d189fd2d803c3f83a74550e81365409493d3a846020374eb9a525f7f67e47d7
7
+ data.tar.gz: 917ae11ab5a00227ad4916f89d8fd4935cf87378be82496e7a86724f0ae935a576191489cf2285c4d18141c47e3c3d5fb76b757ea33932a04833a57504639b74
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: 2.14.1
10
+ - Package version: 2.17.0
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
13
13
 
@@ -24,16 +24,16 @@ gem build pulp_deb_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_deb_client-2.14.1.gem
27
+ gem install ./pulp_deb_client-2.17.0.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_deb_client-2.14.1.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_deb_client-2.17.0.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'pulp_deb_client', '~> 2.14.1'
36
+ gem 'pulp_deb_client', '~> 2.17.0'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -84,7 +84,7 @@ end
84
84
 
85
85
  ## Documentation for API Endpoints
86
86
 
87
- All URIs are relative to *http://pulp*
87
+ All URIs are relative to *https://pulp*
88
88
 
89
89
  Class | Method | HTTP request | Description
90
90
  ------------ | ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::ContentGenericContentsApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::ContentInstallerFileIndicesApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::ContentInstallerPackagesApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::ContentPackageIndicesApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::ContentPackageReleaseComponentsApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::ContentPackagesApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::ContentReleaseArchitecturesApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::ContentReleaseComponentsApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::ContentReleaseFilesApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::ContentReleasesApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
data/docs/DebAptRemote.md CHANGED
@@ -24,7 +24,7 @@ Name | Type | Description | Notes
24
24
  **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
25
25
  **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
26
26
  **headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
27
- **rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
27
+ **rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
28
28
  **distributions** | **String** | Whitespace separated list of distributions to sync. The distribution is the path from the repository root to the \"Release\" file you want to access. This is often, but not always, equal to either the codename or the suite of the release you want to sync. If the repository you are trying to sync uses \"flat repository format\", the distribution must end with a \"/\". Based on \"/etc/apt/sources.list\" syntax. |
29
29
  **components** | **String** | Whitespace separatet list of components to sync. If none are supplied, all that are available will be synchronized. Leave blank for repositores using \"flat repository format\". | [optional]
30
30
  **architectures** | **String** | Whitespace separated list of architectures to sync If none are supplied, all that are available will be synchronized. A list of valid architecture specification strings can be found by running \"dpkg-architecture -L\". A sync will download the intersection of the list of architectures provided via this field and those provided by the relevant \"Release\" file. Architecture=\"all\" is always synchronized and does not need to be provided here. | [optional]
@@ -22,7 +22,7 @@ Name | Type | Description | Notes
22
22
  **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
23
23
  **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
24
24
  **headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
25
- **rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
25
+ **rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
26
26
  **distributions** | **String** | Whitespace separated list of distributions to sync. The distribution is the path from the repository root to the \"Release\" file you want to access. This is often, but not always, equal to either the codename or the suite of the release you want to sync. If the repository you are trying to sync uses \"flat repository format\", the distribution must end with a \"/\". Based on \"/etc/apt/sources.list\" syntax. |
27
27
  **components** | **String** | Whitespace separatet list of components to sync. If none are supplied, all that are available will be synchronized. Leave blank for repositores using \"flat repository format\". | [optional]
28
28
  **architectures** | **String** | Whitespace separated list of architectures to sync If none are supplied, all that are available will be synchronized. A list of valid architecture specification strings can be found by running \"dpkg-architecture -L\". A sync will download the intersection of the list of architectures provided via this field and those provided by the relevant \"Release\" file. Architecture=\"all\" is always synchronized and does not need to be provided here. | [optional]
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
7
7
  **pulp_labels** | [**Object**](.md) | | [optional]
8
8
  **name** | **String** | A unique name for this repository. |
9
9
  **description** | **String** | An optional description. | [optional]
10
- **retained_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
11
- **remote** | **String** | | [optional]
10
+ **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
11
+ **remote** | **String** | An optional remote to use by default when syncing. | [optional]
12
12
 
13
13
  ## Code Sample
14
14
 
@@ -18,7 +18,7 @@ require 'PulpDebClient'
18
18
  instance = PulpDebClient::DebAptRepository.new(pulp_labels: null,
19
19
  name: null,
20
20
  description: null,
21
- retained_versions: null,
21
+ retain_repo_versions: null,
22
22
  remote: null)
23
23
  ```
24
24
 
@@ -11,8 +11,8 @@ Name | Type | Description | Notes
11
11
  **latest_version_href** | **String** | | [optional] [readonly]
12
12
  **name** | **String** | A unique name for this repository. |
13
13
  **description** | **String** | An optional description. | [optional]
14
- **retained_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
15
- **remote** | **String** | | [optional]
14
+ **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
15
+ **remote** | **String** | An optional remote to use by default when syncing. | [optional]
16
16
 
17
17
  ## Code Sample
18
18
 
@@ -26,7 +26,7 @@ instance = PulpDebClient::DebAptRepositoryResponse.new(pulp_href: null,
26
26
  latest_version_href: null,
27
27
  name: null,
28
28
  description: null,
29
- retained_versions: null,
29
+ retain_repo_versions: null,
30
30
  remote: null)
31
31
  ```
32
32
 
@@ -6,8 +6,8 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **artifacts** | [**Object**](.md) | A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/' |
8
8
  **release** | **String** | Release this index file belongs to. |
9
- **component** | **String** | Component of the component - architecture combination. |
10
- **architecture** | **String** | Architecture of the component - architecture combination. |
9
+ **component** | **String** | Component of the component - architecture combination. | [optional]
10
+ **architecture** | **String** | Architecture of the component - architecture combination. | [optional]
11
11
  **relative_path** | **String** | Path of file relative to url. | [optional]
12
12
 
13
13
  ## Code Sample
@@ -8,8 +8,8 @@ Name | Type | Description | Notes
8
8
  **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
9
  **artifacts** | [**Object**](.md) | A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/' |
10
10
  **release** | **String** | Release this index file belongs to. |
11
- **component** | **String** | Component of the component - architecture combination. |
12
- **architecture** | **String** | Architecture of the component - architecture combination. |
11
+ **component** | **String** | Component of the component - architecture combination. | [optional]
12
+ **architecture** | **String** | Architecture of the component - architecture combination. | [optional]
13
13
  **relative_path** | **String** | Path of file relative to url. | [optional]
14
14
 
15
15
  ## Code Sample
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::DistributionsAptApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -24,7 +24,7 @@ Name | Type | Description | Notes
24
24
  **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
25
25
  **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
26
26
  **headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
27
- **rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
27
+ **rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
28
28
  **distributions** | **String** | Whitespace separated list of distributions to sync. The distribution is the path from the repository root to the \"Release\" file you want to access. This is often, but not always, equal to either the codename or the suite of the release you want to sync. If the repository you are trying to sync uses \"flat repository format\", the distribution must end with a \"/\". Based on \"/etc/apt/sources.list\" syntax. | [optional]
29
29
  **components** | **String** | Whitespace separatet list of components to sync. If none are supplied, all that are available will be synchronized. Leave blank for repositores using \"flat repository format\". | [optional]
30
30
  **architectures** | **String** | Whitespace separated list of architectures to sync If none are supplied, all that are available will be synchronized. A list of valid architecture specification strings can be found by running \"dpkg-architecture -L\". A sync will download the intersection of the list of architectures provided via this field and those provided by the relevant \"Release\" file. Architecture=\"all\" is always synchronized and does not need to be provided here. | [optional]
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
7
7
  **pulp_labels** | [**Object**](.md) | | [optional]
8
8
  **name** | **String** | A unique name for this repository. | [optional]
9
9
  **description** | **String** | An optional description. | [optional]
10
- **retained_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
11
- **remote** | **String** | | [optional]
10
+ **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
11
+ **remote** | **String** | An optional remote to use by default when syncing. | [optional]
12
12
 
13
13
  ## Code Sample
14
14
 
@@ -18,7 +18,7 @@ require 'PulpDebClient'
18
18
  instance = PulpDebClient::PatcheddebAptRepository.new(pulp_labels: null,
19
19
  name: null,
20
20
  description: null,
21
- retained_versions: null,
21
+ retain_repo_versions: null,
22
22
  remote: null)
23
23
  ```
24
24
 
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::PublicationsAptApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::PublicationsVerbatimApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::RemotesAptApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::RepositoriesAptApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::RepositoriesAptVersionsApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -48,6 +48,10 @@ module PulpDebClient
48
48
  if @api_client.config.client_side_validation && relative_path.nil?
49
49
  fail ArgumentError, "Missing the required parameter 'relative_path' when calling ContentGenericContentsApi.create"
50
50
  end
51
+ if @api_client.config.client_side_validation && relative_path.to_s.length < 1
52
+ fail ArgumentError, 'invalid value for "relative_path" when calling ContentGenericContentsApi.create, the character length must be great than or equal to 1.'
53
+ end
54
+
51
55
  # resource path
52
56
  local_var_path = '/pulp/api/v3/content/deb/generic_contents/'
53
57
 
@@ -44,6 +44,10 @@ module PulpDebClient
44
44
  if @api_client.config.debugging
45
45
  @api_client.config.logger.debug 'Calling API: ContentInstallerPackagesApi.create ...'
46
46
  end
47
+ if @api_client.config.client_side_validation && !opts[:'relative_path'].nil? && opts[:'relative_path'].to_s.length < 1
48
+ fail ArgumentError, 'invalid value for "opts[:"relative_path"]" when calling ContentInstallerPackagesApi.create, the character length must be great than or equal to 1.'
49
+ end
50
+
47
51
  # resource path
48
52
  local_var_path = '/pulp/api/v3/content/deb/installer_packages/'
49
53
 
@@ -44,6 +44,10 @@ module PulpDebClient
44
44
  if @api_client.config.debugging
45
45
  @api_client.config.logger.debug 'Calling API: ContentPackagesApi.create ...'
46
46
  end
47
+ if @api_client.config.client_side_validation && !opts[:'relative_path'].nil? && opts[:'relative_path'].to_s.length < 1
48
+ fail ArgumentError, 'invalid value for "opts[:"relative_path"]" when calling ContentPackagesApi.create, the character length must be great than or equal to 1.'
49
+ end
50
+
47
51
  # resource path
48
52
  local_var_path = '/pulp/api/v3/content/deb/packages/'
49
53
 
@@ -127,7 +127,7 @@ module PulpDebClient
127
127
  attr_accessor :force_ending_format
128
128
 
129
129
  def initialize
130
- @scheme = 'http'
130
+ @scheme = 'https'
131
131
  @host = 'pulp'
132
132
  @base_path = ''
133
133
  @api_key = {}
@@ -209,7 +209,7 @@ module PulpDebClient
209
209
  def server_settings
210
210
  [
211
211
  {
212
- url: "http://pulp/",
212
+ url: "https://pulp/",
213
213
  description: "No description provided",
214
214
  }
215
215
  ]
@@ -113,10 +113,18 @@ module PulpDebClient
113
113
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
114
114
  end
115
115
 
116
+ if @base_path.to_s.length < 1
117
+ invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
118
+ end
119
+
116
120
  if @name.nil?
117
121
  invalid_properties.push('invalid value for "name", name cannot be nil.')
118
122
  end
119
123
 
124
+ if @name.to_s.length < 1
125
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
126
+ end
127
+
120
128
  invalid_properties
121
129
  end
122
130
 
@@ -124,10 +132,40 @@ module PulpDebClient
124
132
  # @return true if the model is valid
125
133
  def valid?
126
134
  return false if @base_path.nil?
135
+ return false if @base_path.to_s.length < 1
127
136
  return false if @name.nil?
137
+ return false if @name.to_s.length < 1
128
138
  true
129
139
  end
130
140
 
141
+ # Custom attribute writer method with validation
142
+ # @param [Object] base_path Value to be assigned
143
+ def base_path=(base_path)
144
+ if base_path.nil?
145
+ fail ArgumentError, 'base_path cannot be nil'
146
+ end
147
+
148
+ if base_path.to_s.length < 1
149
+ fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
150
+ end
151
+
152
+ @base_path = base_path
153
+ end
154
+
155
+ # Custom attribute writer method with validation
156
+ # @param [Object] name Value to be assigned
157
+ def name=(name)
158
+ if name.nil?
159
+ fail ArgumentError, 'name cannot be nil'
160
+ end
161
+
162
+ if name.to_s.length < 1
163
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
164
+ end
165
+
166
+ @name = name
167
+ end
168
+
131
169
  # Checks equality by comparing each attribute.
132
170
  # @param [Object] Object to be compared
133
171
  def ==(o)