pulp_cookbook_client 0.1.0b10.dev1670901106 → 0.1.0b10.dev1670987299

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.

Potentially problematic release.


This version of pulp_cookbook_client might be problematic. Click here for more details.

Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/docs/ContentCookbooksApi.md +2 -2
  4. data/docs/CookbookCookbookDistribution.md +1 -1
  5. data/docs/CookbookCookbookDistributionResponse.md +1 -1
  6. data/docs/CookbookCookbookPackageContent.md +3 -3
  7. data/docs/CookbookCookbookRemote.md +1 -1
  8. data/docs/CookbookCookbookRemoteResponse.md +1 -1
  9. data/docs/CookbookCookbookRepository.md +1 -1
  10. data/docs/CookbookCookbookRepositoryResponse.md +1 -1
  11. data/docs/PatchedcookbookCookbookDistribution.md +1 -1
  12. data/docs/PatchedcookbookCookbookRemote.md +1 -1
  13. data/docs/PatchedcookbookCookbookRepository.md +1 -1
  14. data/lib/pulp_cookbook_client/api/content_cookbooks_api.rb +3 -3
  15. data/lib/pulp_cookbook_client/api/distributions_cookbook_api.rb +1 -1
  16. data/lib/pulp_cookbook_client/api/remotes_cookbook_api.rb +1 -1
  17. data/lib/pulp_cookbook_client/api/repositories_cookbook_api.rb +1 -1
  18. data/lib/pulp_cookbook_client/models/cookbook_cookbook_distribution.rb +4 -2
  19. data/lib/pulp_cookbook_client/models/cookbook_cookbook_distribution_response.rb +4 -2
  20. data/lib/pulp_cookbook_client/models/cookbook_cookbook_package_content.rb +11 -11
  21. data/lib/pulp_cookbook_client/models/cookbook_cookbook_remote.rb +4 -2
  22. data/lib/pulp_cookbook_client/models/cookbook_cookbook_remote_response.rb +4 -2
  23. data/lib/pulp_cookbook_client/models/cookbook_cookbook_repository.rb +4 -2
  24. data/lib/pulp_cookbook_client/models/cookbook_cookbook_repository_response.rb +4 -2
  25. data/lib/pulp_cookbook_client/models/patchedcookbook_cookbook_distribution.rb +4 -2
  26. data/lib/pulp_cookbook_client/models/patchedcookbook_cookbook_remote.rb +4 -2
  27. data/lib/pulp_cookbook_client/models/patchedcookbook_cookbook_repository.rb +4 -2
  28. data/lib/pulp_cookbook_client/version.rb +1 -1
  29. data/spec/api/content_cookbooks_api_spec.rb +1 -1
  30. data/spec/models/cookbook_cookbook_package_content_spec.rb +4 -4
  31. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c38758b152b6642696c07591e2eeb4dc28d903602f152cedd206c8540d4c6345
4
- data.tar.gz: 128606461ca8870c999bf70040a898282b6a40c94560b2231e9c2907e227cfc6
3
+ metadata.gz: 2ec497e4bcea75bb4ddddd576d6dd7e102acadc5fc276a5bc99a7a635f2338c1
4
+ data.tar.gz: df69ad53339560b637bb54b4854ee82f70ae2d5757a7f4c2aba7ae8846566b37
5
5
  SHA512:
6
- metadata.gz: 46b4d08f7770dbdd123eaae3a118c2581925b5c7ef3a5b214abf4a93cac97ed5a57d819408e7579a494c2b88d8c7d7aec88402826619d86c4456f6ebecd1bbf3
7
- data.tar.gz: cc4be627f2a1a5c2e7f08cd6cb9f83379f509933a0bfd39101b106e84dfb2d03344e893675981afdd0fbef4913af96c57722e21c292232c1ecd61888acee0de4
6
+ metadata.gz: 616cfb633b4cf20ed0c6cfcc351382a077d311c9f3093541dc385f23b9acfee7682eb46fd2548cfc8e4fc62191b4d6464debaf9b8cdd9a5bd641d1f2bfd4bb7a
7
+ data.tar.gz: 450435ffae4562fbe3ad75ea521b2237fc520ad5682a6f8db305c0a9ea4daada35f2cea8b2901c4f06b3f714d53445ece8021e077736c1cbbd01e89c80991013
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: 0.1.0b10.dev1670901106
10
+ - Package version: 0.1.0b10.dev1670987299
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_cookbook_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_cookbook_client-0.1.0b10.dev1670901106.gem
27
+ gem install ./pulp_cookbook_client-0.1.0b10.dev1670987299.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_cookbook_client-0.1.0b10.dev1670901106.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_cookbook_client-0.1.0b10.dev1670987299.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_cookbook_client', '~> 0.1.0b10.dev1670901106'
36
+ gem 'pulp_cookbook_client', '~> 0.1.0b10.dev1670987299'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -67,10 +67,10 @@ end
67
67
  api_instance = PulpCookbookClient::ContentCookbooksApi.new
68
68
  name = 'name_example' # String | name of the cookbook
69
69
  opts = {
70
+ upload: 'upload_example', # String | An uncommitted upload that may be turned into the artifact of the content unit.
70
71
  file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the artifact of the content unit.
71
72
  artifact: 'artifact_example', # String | Artifact file representing the physical content
72
73
  repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
73
- upload: 'upload_example', # String | An uncommitted upload that may be turned into the artifact of the content unit.
74
74
  version: 'version_example' # String | version of the cookbook
75
75
  }
76
76
 
@@ -33,10 +33,10 @@ end
33
33
  api_instance = PulpCookbookClient::ContentCookbooksApi.new
34
34
  name = 'name_example' # String | name of the cookbook
35
35
  opts = {
36
+ upload: 'upload_example', # String | An uncommitted upload that may be turned into the artifact of the content unit.
36
37
  file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the artifact of the content unit.
37
38
  artifact: 'artifact_example', # String | Artifact file representing the physical content
38
39
  repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
39
- upload: 'upload_example', # String | An uncommitted upload that may be turned into the artifact of the content unit.
40
40
  version: 'version_example' # String | version of the cookbook
41
41
  }
42
42
 
@@ -55,10 +55,10 @@ end
55
55
  Name | Type | Description | Notes
56
56
  ------------- | ------------- | ------------- | -------------
57
57
  **name** | **String**| name of the cookbook |
58
+ **upload** | **String**| An uncommitted upload that may be turned into the artifact of the content unit. | [optional]
58
59
  **file** | **File**| An uploaded file that may be turned into the artifact of the content unit. | [optional]
59
60
  **artifact** | **String**| Artifact file representing the physical content | [optional]
60
61
  **repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
61
- **upload** | **String**| An uncommitted upload that may be turned into the artifact of the content unit. | [optional]
62
62
  **version** | **String**| version of the cookbook | [optional]
63
63
 
64
64
  ### Return type
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
8
8
  **content_guard** | **String** | An optional content-guard. | [optional]
9
- **pulp_labels** | [**Object**](.md) | | [optional]
9
+ **pulp_labels** | **Hash<String, String>** | | [optional]
10
10
  **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
11
11
  **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
12
12
  **publication** | **String** | Publication to be served | [optional]
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
9
9
  **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
10
10
  **base_url** | **String** | The URL for accessing the universe API as defined by this distribution. | [optional] [readonly]
11
11
  **content_guard** | **String** | An optional content-guard. | [optional]
12
- **pulp_labels** | [**Object**](.md) | | [optional]
12
+ **pulp_labels** | **Hash<String, String>** | | [optional]
13
13
  **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
14
14
  **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
15
15
  **publication** | **String** | Publication to be served | [optional]
@@ -4,10 +4,10 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **upload** | **String** | An uncommitted upload that may be turned into the artifact of the content unit. | [optional]
7
8
  **file** | **File** | An uploaded file that may be turned into the artifact of the content unit. | [optional]
8
9
  **artifact** | **String** | Artifact file representing the physical content | [optional]
9
10
  **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional]
10
- **upload** | **String** | An uncommitted upload that may be turned into the artifact of the content unit. | [optional]
11
11
  **name** | **String** | name of the cookbook |
12
12
  **version** | **String** | version of the cookbook | [optional]
13
13
 
@@ -16,10 +16,10 @@ Name | Type | Description | Notes
16
16
  ```ruby
17
17
  require 'PulpCookbookClient'
18
18
 
19
- instance = PulpCookbookClient::CookbookCookbookPackageContent.new(file: null,
19
+ instance = PulpCookbookClient::CookbookCookbookPackageContent.new(upload: null,
20
+ file: null,
20
21
  artifact: null,
21
22
  repository: null,
22
- upload: null,
23
23
  name: null,
24
24
  version: null)
25
25
  ```
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
15
15
  **proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional]
16
16
  **username** | **String** | The username to be used for authentication when syncing. | [optional]
17
17
  **password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
18
- **pulp_labels** | [**Object**](.md) | | [optional]
18
+ **pulp_labels** | **Hash<String, String>** | | [optional]
19
19
  **download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
20
20
  **max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
21
21
  **policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. | [optional]
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
12
12
  **client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
13
13
  **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
14
14
  **proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
15
- **pulp_labels** | [**Object**](.md) | | [optional]
15
+ **pulp_labels** | **Hash<String, String>** | | [optional]
16
16
  **pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
17
17
  **download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
18
18
  **max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **pulp_labels** | [**Object**](.md) | | [optional]
7
+ **pulp_labels** | **Hash<String, String>** | | [optional]
8
8
  **name** | **String** | A unique name for this repository. |
9
9
  **description** | **String** | An optional description. | [optional]
10
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]
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **pulp_href** | **String** | | [optional] [readonly]
8
8
  **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
9
  **versions_href** | **String** | | [optional] [readonly]
10
- **pulp_labels** | [**Object**](.md) | | [optional]
10
+ **pulp_labels** | **Hash<String, String>** | | [optional]
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]
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | [optional]
8
8
  **content_guard** | **String** | An optional content-guard. | [optional]
9
- **pulp_labels** | [**Object**](.md) | | [optional]
9
+ **pulp_labels** | **Hash<String, String>** | | [optional]
10
10
  **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
11
11
  **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
12
12
  **publication** | **String** | Publication to be served | [optional]
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
15
15
  **proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional]
16
16
  **username** | **String** | The username to be used for authentication when syncing. | [optional]
17
17
  **password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
18
- **pulp_labels** | [**Object**](.md) | | [optional]
18
+ **pulp_labels** | **Hash<String, String>** | | [optional]
19
19
  **download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
20
20
  **max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
21
21
  **policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. | [optional]
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **pulp_labels** | [**Object**](.md) | | [optional]
7
+ **pulp_labels** | **Hash<String, String>** | | [optional]
8
8
  **name** | **String** | A unique name for this repository. | [optional]
9
9
  **description** | **String** | An optional description. | [optional]
10
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]
@@ -23,10 +23,10 @@ module PulpCookbookClient
23
23
  # Trigger an asynchronous task to create content,optionally create new repository version.
24
24
  # @param name [String] name of the cookbook
25
25
  # @param [Hash] opts the optional parameters
26
+ # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
26
27
  # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
27
28
  # @option opts [String] :artifact Artifact file representing the physical content
28
29
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
29
- # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
30
30
  # @option opts [String] :version version of the cookbook
31
31
  # @return [AsyncOperationResponse]
32
32
  def create(name, opts = {})
@@ -38,10 +38,10 @@ module PulpCookbookClient
38
38
  # Trigger an asynchronous task to create content,optionally create new repository version.
39
39
  # @param name [String] name of the cookbook
40
40
  # @param [Hash] opts the optional parameters
41
+ # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
41
42
  # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
42
43
  # @option opts [String] :artifact Artifact file representing the physical content
43
44
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
44
- # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
45
45
  # @option opts [String] :version version of the cookbook
46
46
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
47
47
  def create_with_http_info(name, opts = {})
@@ -76,10 +76,10 @@ module PulpCookbookClient
76
76
  # form parameters
77
77
  form_params = opts[:form_params] || {}
78
78
  form_params['name'] = name
79
+ form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
79
80
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
80
81
  form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
81
82
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
82
- form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
83
83
  form_params['version'] = opts[:'version'] if !opts[:'version'].nil?
84
84
 
85
85
  # http body (model)
@@ -194,7 +194,7 @@ module PulpCookbookClient
194
194
  if @api_client.config.debugging
195
195
  @api_client.config.logger.debug 'Calling API: DistributionsCookbookApi.list ...'
196
196
  end
197
- allowable_values = ["-base_path", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "base_path", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type"]
197
+ allowable_values = ["-base_path", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
198
198
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
199
199
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
200
200
  end
@@ -196,7 +196,7 @@ module PulpCookbookClient
196
196
  if @api_client.config.debugging
197
197
  @api_client.config.logger.debug 'Calling API: RemotesCookbookApi.list ...'
198
198
  end
199
- allowable_values = ["-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-download_concurrency", "-headers", "-max_retries", "-name", "-password", "-pk", "-policy", "-proxy_password", "-proxy_url", "-proxy_username", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-rate_limit", "-sock_connect_timeout", "-sock_read_timeout", "-tls_validation", "-total_timeout", "-url", "-username", "ca_cert", "client_cert", "client_key", "connect_timeout", "download_concurrency", "headers", "max_retries", "name", "password", "pk", "policy", "proxy_password", "proxy_url", "proxy_username", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "rate_limit", "sock_connect_timeout", "sock_read_timeout", "tls_validation", "total_timeout", "url", "username"]
199
+ allowable_values = ["-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-download_concurrency", "-headers", "-max_retries", "-name", "-password", "-pk", "-policy", "-proxy_password", "-proxy_url", "-proxy_username", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-rate_limit", "-sock_connect_timeout", "-sock_read_timeout", "-tls_validation", "-total_timeout", "-url", "-username", "ca_cert", "client_cert", "client_key", "connect_timeout", "download_concurrency", "headers", "max_retries", "name", "password", "pk", "policy", "proxy_password", "proxy_url", "proxy_username", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "rate_limit", "sock_connect_timeout", "sock_read_timeout", "tls_validation", "total_timeout", "url", "username"]
200
200
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
201
201
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
202
202
  end
@@ -186,7 +186,7 @@ module PulpCookbookClient
186
186
  if @api_client.config.debugging
187
187
  @api_client.config.logger.debug 'Calling API: RepositoriesCookbookApi.list ...'
188
188
  end
189
- allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "retain_repo_versions", "user_hidden"]
189
+ allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "retain_repo_versions", "user_hidden"]
190
190
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
191
191
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
192
192
  end
@@ -49,7 +49,7 @@ module PulpCookbookClient
49
49
  {
50
50
  :'base_path' => :'String',
51
51
  :'content_guard' => :'String',
52
- :'pulp_labels' => :'Object',
52
+ :'pulp_labels' => :'Hash<String, String>',
53
53
  :'name' => :'String',
54
54
  :'repository' => :'String',
55
55
  :'publication' => :'String'
@@ -89,7 +89,9 @@ module PulpCookbookClient
89
89
  end
90
90
 
91
91
  if attributes.key?(:'pulp_labels')
92
- self.pulp_labels = attributes[:'pulp_labels']
92
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
93
+ self.pulp_labels = value
94
+ end
93
95
  end
94
96
 
95
97
  if attributes.key?(:'name')
@@ -63,7 +63,7 @@ module PulpCookbookClient
63
63
  :'base_path' => :'String',
64
64
  :'base_url' => :'String',
65
65
  :'content_guard' => :'String',
66
- :'pulp_labels' => :'Object',
66
+ :'pulp_labels' => :'Hash<String, String>',
67
67
  :'name' => :'String',
68
68
  :'repository' => :'String',
69
69
  :'publication' => :'String'
@@ -115,7 +115,9 @@ module PulpCookbookClient
115
115
  end
116
116
 
117
117
  if attributes.key?(:'pulp_labels')
118
- self.pulp_labels = attributes[:'pulp_labels']
118
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
119
+ self.pulp_labels = value
120
+ end
119
121
  end
120
122
 
121
123
  if attributes.key?(:'name')
@@ -15,6 +15,9 @@ require 'date'
15
15
  module PulpCookbookClient
16
16
  # Serializer for the cookbook content.
17
17
  class CookbookCookbookPackageContent
18
+ # An uncommitted upload that may be turned into the artifact of the content unit.
19
+ attr_accessor :upload
20
+
18
21
  # An uploaded file that may be turned into the artifact of the content unit.
19
22
  attr_accessor :file
20
23
 
@@ -24,9 +27,6 @@ module PulpCookbookClient
24
27
  # A URI of a repository the new content unit should be associated with.
25
28
  attr_accessor :repository
26
29
 
27
- # An uncommitted upload that may be turned into the artifact of the content unit.
28
- attr_accessor :upload
29
-
30
30
  # name of the cookbook
31
31
  attr_accessor :name
32
32
 
@@ -36,10 +36,10 @@ module PulpCookbookClient
36
36
  # Attribute mapping from ruby-style variable name to JSON key.
37
37
  def self.attribute_map
38
38
  {
39
+ :'upload' => :'upload',
39
40
  :'file' => :'file',
40
41
  :'artifact' => :'artifact',
41
42
  :'repository' => :'repository',
42
- :'upload' => :'upload',
43
43
  :'name' => :'name',
44
44
  :'version' => :'version'
45
45
  }
@@ -48,10 +48,10 @@ module PulpCookbookClient
48
48
  # Attribute type mapping.
49
49
  def self.openapi_types
50
50
  {
51
+ :'upload' => :'String',
51
52
  :'file' => :'File',
52
53
  :'artifact' => :'String',
53
54
  :'repository' => :'String',
54
- :'upload' => :'String',
55
55
  :'name' => :'String',
56
56
  :'version' => :'String'
57
57
  }
@@ -78,6 +78,10 @@ module PulpCookbookClient
78
78
  h[k.to_sym] = v
79
79
  }
80
80
 
81
+ if attributes.key?(:'upload')
82
+ self.upload = attributes[:'upload']
83
+ end
84
+
81
85
  if attributes.key?(:'file')
82
86
  self.file = attributes[:'file']
83
87
  end
@@ -90,10 +94,6 @@ module PulpCookbookClient
90
94
  self.repository = attributes[:'repository']
91
95
  end
92
96
 
93
- if attributes.key?(:'upload')
94
- self.upload = attributes[:'upload']
95
- end
96
-
97
97
  if attributes.key?(:'name')
98
98
  self.name = attributes[:'name']
99
99
  end
@@ -160,10 +160,10 @@ module PulpCookbookClient
160
160
  def ==(o)
161
161
  return true if self.equal?(o)
162
162
  self.class == o.class &&
163
+ upload == o.upload &&
163
164
  file == o.file &&
164
165
  artifact == o.artifact &&
165
166
  repository == o.repository &&
166
- upload == o.upload &&
167
167
  name == o.name &&
168
168
  version == o.version
169
169
  end
@@ -177,7 +177,7 @@ module PulpCookbookClient
177
177
  # Calculates hash code according to all attributes.
178
178
  # @return [Integer] Hash code
179
179
  def hash
180
- [file, artifact, repository, upload, name, version].hash
180
+ [upload, file, artifact, repository, name, version].hash
181
181
  end
182
182
 
183
183
  # Builds the object from hash
@@ -122,7 +122,7 @@ module PulpCookbookClient
122
122
  :'proxy_password' => :'String',
123
123
  :'username' => :'String',
124
124
  :'password' => :'String',
125
- :'pulp_labels' => :'Object',
125
+ :'pulp_labels' => :'Hash<String, String>',
126
126
  :'download_concurrency' => :'Integer',
127
127
  :'max_retries' => :'Integer',
128
128
  :'policy' => :'PolicyEnum',
@@ -217,7 +217,9 @@ module PulpCookbookClient
217
217
  end
218
218
 
219
219
  if attributes.key?(:'pulp_labels')
220
- self.pulp_labels = attributes[:'pulp_labels']
220
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
221
+ self.pulp_labels = value
222
+ end
221
223
  end
222
224
 
223
225
  if attributes.key?(:'download_concurrency')
@@ -114,7 +114,7 @@ module PulpCookbookClient
114
114
  :'client_cert' => :'String',
115
115
  :'tls_validation' => :'Boolean',
116
116
  :'proxy_url' => :'String',
117
- :'pulp_labels' => :'Object',
117
+ :'pulp_labels' => :'Hash<String, String>',
118
118
  :'pulp_last_updated' => :'DateTime',
119
119
  :'download_concurrency' => :'Integer',
120
120
  :'max_retries' => :'Integer',
@@ -194,7 +194,9 @@ module PulpCookbookClient
194
194
  end
195
195
 
196
196
  if attributes.key?(:'pulp_labels')
197
- self.pulp_labels = attributes[:'pulp_labels']
197
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
198
+ self.pulp_labels = value
199
+ end
198
200
  end
199
201
 
200
202
  if attributes.key?(:'pulp_last_updated')
@@ -43,7 +43,7 @@ module PulpCookbookClient
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
- :'pulp_labels' => :'Object',
46
+ :'pulp_labels' => :'Hash<String, String>',
47
47
  :'name' => :'String',
48
48
  :'description' => :'String',
49
49
  :'retain_repo_versions' => :'Integer',
@@ -76,7 +76,9 @@ module PulpCookbookClient
76
76
  }
77
77
 
78
78
  if attributes.key?(:'pulp_labels')
79
- self.pulp_labels = attributes[:'pulp_labels']
79
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
80
+ self.pulp_labels = value
81
+ end
80
82
  end
81
83
 
82
84
  if attributes.key?(:'name')
@@ -59,7 +59,7 @@ module PulpCookbookClient
59
59
  :'pulp_href' => :'String',
60
60
  :'pulp_created' => :'DateTime',
61
61
  :'versions_href' => :'String',
62
- :'pulp_labels' => :'Object',
62
+ :'pulp_labels' => :'Hash<String, String>',
63
63
  :'latest_version_href' => :'String',
64
64
  :'name' => :'String',
65
65
  :'description' => :'String',
@@ -105,7 +105,9 @@ module PulpCookbookClient
105
105
  end
106
106
 
107
107
  if attributes.key?(:'pulp_labels')
108
- self.pulp_labels = attributes[:'pulp_labels']
108
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
109
+ self.pulp_labels = value
110
+ end
109
111
  end
110
112
 
111
113
  if attributes.key?(:'latest_version_href')
@@ -49,7 +49,7 @@ module PulpCookbookClient
49
49
  {
50
50
  :'base_path' => :'String',
51
51
  :'content_guard' => :'String',
52
- :'pulp_labels' => :'Object',
52
+ :'pulp_labels' => :'Hash<String, String>',
53
53
  :'name' => :'String',
54
54
  :'repository' => :'String',
55
55
  :'publication' => :'String'
@@ -89,7 +89,9 @@ module PulpCookbookClient
89
89
  end
90
90
 
91
91
  if attributes.key?(:'pulp_labels')
92
- self.pulp_labels = attributes[:'pulp_labels']
92
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
93
+ self.pulp_labels = value
94
+ end
93
95
  end
94
96
 
95
97
  if attributes.key?(:'name')
@@ -122,7 +122,7 @@ module PulpCookbookClient
122
122
  :'proxy_password' => :'String',
123
123
  :'username' => :'String',
124
124
  :'password' => :'String',
125
- :'pulp_labels' => :'Object',
125
+ :'pulp_labels' => :'Hash<String, String>',
126
126
  :'download_concurrency' => :'Integer',
127
127
  :'max_retries' => :'Integer',
128
128
  :'policy' => :'PolicyEnum',
@@ -217,7 +217,9 @@ module PulpCookbookClient
217
217
  end
218
218
 
219
219
  if attributes.key?(:'pulp_labels')
220
- self.pulp_labels = attributes[:'pulp_labels']
220
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
221
+ self.pulp_labels = value
222
+ end
221
223
  end
222
224
 
223
225
  if attributes.key?(:'download_concurrency')
@@ -43,7 +43,7 @@ module PulpCookbookClient
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
- :'pulp_labels' => :'Object',
46
+ :'pulp_labels' => :'Hash<String, String>',
47
47
  :'name' => :'String',
48
48
  :'description' => :'String',
49
49
  :'retain_repo_versions' => :'Integer',
@@ -76,7 +76,9 @@ module PulpCookbookClient
76
76
  }
77
77
 
78
78
  if attributes.key?(:'pulp_labels')
79
- self.pulp_labels = attributes[:'pulp_labels']
79
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
80
+ self.pulp_labels = value
81
+ end
80
82
  end
81
83
 
82
84
  if attributes.key?(:'name')
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpCookbookClient
14
- VERSION = '0.1.0b10.dev1670901106'
14
+ VERSION = '0.1.0b10.dev1670987299'
15
15
  end
@@ -37,10 +37,10 @@ describe 'ContentCookbooksApi' do
37
37
  # Trigger an asynchronous task to create content,optionally create new repository version.
38
38
  # @param name name of the cookbook
39
39
  # @param [Hash] opts the optional parameters
40
+ # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
40
41
  # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
41
42
  # @option opts [String] :artifact Artifact file representing the physical content
42
43
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
43
- # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
44
44
  # @option opts [String] :version version of the cookbook
45
45
  # @return [AsyncOperationResponse]
46
46
  describe 'create test' do
@@ -32,25 +32,25 @@ describe 'CookbookCookbookPackageContent' do
32
32
  expect(@instance).to be_instance_of(PulpCookbookClient::CookbookCookbookPackageContent)
33
33
  end
34
34
  end
35
- describe 'test attribute "file"' do
35
+ describe 'test attribute "upload"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "artifact"' do
41
+ describe 'test attribute "file"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "repository"' do
47
+ describe 'test attribute "artifact"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "upload"' do
53
+ describe 'test attribute "repository"' do
54
54
  it 'should work' do
55
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
56
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_cookbook_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0b10.dev1670901106
4
+ version: 0.1.0b10.dev1670987299
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-13 00:00:00.000000000 Z
11
+ date: 2022-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday