cloudsmith-api 2.0.27 → 2.0.29

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 (123) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +4 -4
  4. data/build.json +1 -1
  5. data/docs/ConnectedRepository.md +3 -1
  6. data/docs/ConnectedRepositoryRequest.md +1 -1
  7. data/docs/ConnectedRepositoryRequestPatch.md +1 -1
  8. data/docs/FormatSupportUpstream.md +1 -0
  9. data/docs/OrganizationSAMLAuth.md +2 -0
  10. data/docs/OrganizationSAMLAuthRequestPatch.md +2 -0
  11. data/docs/OrgsApi.md +3 -1
  12. data/docs/PackagesApi.md +22 -6
  13. data/docs/ReposApi.md +2 -2
  14. data/docs/Repository.md +1 -0
  15. data/docs/RepositoryCreate.md +1 -0
  16. data/docs/RepositoryEd25519Key.md +1 -0
  17. data/lib/cloudsmith-api/api/orgs_api.rb +3 -0
  18. data/lib/cloudsmith-api/api/packages_api.rb +15 -0
  19. data/lib/cloudsmith-api/api/repos_api.rb +2 -2
  20. data/lib/cloudsmith-api/models/cargo_upstream.rb +2 -2
  21. data/lib/cloudsmith-api/models/cargo_upstream_request.rb +2 -2
  22. data/lib/cloudsmith-api/models/cargo_upstream_request_patch.rb +2 -2
  23. data/lib/cloudsmith-api/models/composer_upstream.rb +2 -2
  24. data/lib/cloudsmith-api/models/composer_upstream_request.rb +2 -2
  25. data/lib/cloudsmith-api/models/composer_upstream_request_patch.rb +2 -2
  26. data/lib/cloudsmith-api/models/conda_upstream.rb +2 -2
  27. data/lib/cloudsmith-api/models/conda_upstream_request.rb +2 -2
  28. data/lib/cloudsmith-api/models/conda_upstream_request_patch.rb +2 -2
  29. data/lib/cloudsmith-api/models/connected_repository.rb +57 -2
  30. data/lib/cloudsmith-api/models/connected_repository_request.rb +1 -1
  31. data/lib/cloudsmith-api/models/connected_repository_request_patch.rb +1 -1
  32. data/lib/cloudsmith-api/models/cran_upstream.rb +2 -2
  33. data/lib/cloudsmith-api/models/cran_upstream_request.rb +2 -2
  34. data/lib/cloudsmith-api/models/cran_upstream_request_patch.rb +2 -2
  35. data/lib/cloudsmith-api/models/dart_upstream.rb +2 -2
  36. data/lib/cloudsmith-api/models/dart_upstream_request.rb +2 -2
  37. data/lib/cloudsmith-api/models/dart_upstream_request_patch.rb +2 -2
  38. data/lib/cloudsmith-api/models/deb_upstream.rb +2 -2
  39. data/lib/cloudsmith-api/models/deb_upstream_request.rb +2 -2
  40. data/lib/cloudsmith-api/models/deb_upstream_request_patch.rb +2 -2
  41. data/lib/cloudsmith-api/models/format_support_upstream.rb +16 -1
  42. data/lib/cloudsmith-api/models/generic_upstream.rb +2 -2
  43. data/lib/cloudsmith-api/models/generic_upstream_request.rb +2 -2
  44. data/lib/cloudsmith-api/models/generic_upstream_request_patch.rb +2 -2
  45. data/lib/cloudsmith-api/models/helm_upstream.rb +2 -2
  46. data/lib/cloudsmith-api/models/helm_upstream_request.rb +2 -2
  47. data/lib/cloudsmith-api/models/helm_upstream_request_patch.rb +2 -2
  48. data/lib/cloudsmith-api/models/hex_upstream.rb +2 -2
  49. data/lib/cloudsmith-api/models/hex_upstream_request.rb +2 -2
  50. data/lib/cloudsmith-api/models/hex_upstream_request_patch.rb +2 -2
  51. data/lib/cloudsmith-api/models/npm_upstream.rb +2 -2
  52. data/lib/cloudsmith-api/models/npm_upstream_request.rb +2 -2
  53. data/lib/cloudsmith-api/models/npm_upstream_request_patch.rb +2 -2
  54. data/lib/cloudsmith-api/models/nuget_upstream.rb +2 -2
  55. data/lib/cloudsmith-api/models/nuget_upstream_request.rb +2 -2
  56. data/lib/cloudsmith-api/models/nuget_upstream_request_patch.rb +2 -2
  57. data/lib/cloudsmith-api/models/organization_saml_auth.rb +24 -4
  58. data/lib/cloudsmith-api/models/organization_saml_auth_request_patch.rb +24 -4
  59. data/lib/cloudsmith-api/models/python_upstream.rb +2 -2
  60. data/lib/cloudsmith-api/models/python_upstream_request.rb +2 -2
  61. data/lib/cloudsmith-api/models/python_upstream_request_patch.rb +2 -2
  62. data/lib/cloudsmith-api/models/repository.rb +11 -1
  63. data/lib/cloudsmith-api/models/repository_create.rb +11 -1
  64. data/lib/cloudsmith-api/models/repository_ed25519_key.rb +14 -4
  65. data/lib/cloudsmith-api/version.rb +1 -1
  66. data/spec/api/orgs_api_spec.rb +1 -0
  67. data/spec/api/packages_api_spec.rb +5 -0
  68. data/spec/api/repos_api_spec.rb +1 -1
  69. data/spec/models/cargo_upstream_request_patch_spec.rb +1 -1
  70. data/spec/models/cargo_upstream_request_spec.rb +1 -1
  71. data/spec/models/cargo_upstream_spec.rb +1 -1
  72. data/spec/models/composer_upstream_request_patch_spec.rb +1 -1
  73. data/spec/models/composer_upstream_request_spec.rb +1 -1
  74. data/spec/models/composer_upstream_spec.rb +1 -1
  75. data/spec/models/conda_upstream_request_patch_spec.rb +1 -1
  76. data/spec/models/conda_upstream_request_spec.rb +1 -1
  77. data/spec/models/conda_upstream_spec.rb +1 -1
  78. data/spec/models/connected_repository_spec.rb +16 -0
  79. data/spec/models/cran_upstream_request_patch_spec.rb +1 -1
  80. data/spec/models/cran_upstream_request_spec.rb +1 -1
  81. data/spec/models/cran_upstream_spec.rb +1 -1
  82. data/spec/models/dart_upstream_request_patch_spec.rb +1 -1
  83. data/spec/models/dart_upstream_request_spec.rb +1 -1
  84. data/spec/models/dart_upstream_spec.rb +1 -1
  85. data/spec/models/deb_upstream_request_patch_spec.rb +1 -1
  86. data/spec/models/deb_upstream_request_spec.rb +1 -1
  87. data/spec/models/deb_upstream_spec.rb +1 -1
  88. data/spec/models/format_support_upstream_spec.rb +6 -0
  89. data/spec/models/generic_upstream_request_patch_spec.rb +1 -1
  90. data/spec/models/generic_upstream_request_spec.rb +1 -1
  91. data/spec/models/generic_upstream_spec.rb +1 -1
  92. data/spec/models/helm_upstream_request_patch_spec.rb +1 -1
  93. data/spec/models/helm_upstream_request_spec.rb +1 -1
  94. data/spec/models/helm_upstream_spec.rb +1 -1
  95. data/spec/models/hex_upstream_request_patch_spec.rb +1 -1
  96. data/spec/models/hex_upstream_request_spec.rb +1 -1
  97. data/spec/models/hex_upstream_spec.rb +1 -1
  98. data/spec/models/npm_upstream_request_patch_spec.rb +1 -1
  99. data/spec/models/npm_upstream_request_spec.rb +1 -1
  100. data/spec/models/npm_upstream_spec.rb +1 -1
  101. data/spec/models/nuget_upstream_request_patch_spec.rb +1 -1
  102. data/spec/models/nuget_upstream_request_spec.rb +1 -1
  103. data/spec/models/nuget_upstream_spec.rb +1 -1
  104. data/spec/models/organization_saml_auth_request_patch_spec.rb +12 -0
  105. data/spec/models/organization_saml_auth_spec.rb +12 -0
  106. data/spec/models/python_upstream_request_patch_spec.rb +1 -1
  107. data/spec/models/python_upstream_request_spec.rb +1 -1
  108. data/spec/models/python_upstream_spec.rb +1 -1
  109. data/spec/models/repository_create_spec.rb +6 -0
  110. data/spec/models/repository_ed25519_key_spec.rb +6 -0
  111. data/spec/models/repository_spec.rb +6 -0
  112. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.3.2/gem_make.out +1 -1
  113. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.2/gem_make.out +2 -2
  114. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.2/mkmf.log +4 -4
  115. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/gem_make.out +2 -2
  116. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/mkmf.log +1 -1
  117. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/gem_make.out +2 -2
  118. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/mkmf.log +1 -1
  119. data/vendor/bundle/ruby/2.6.0/gems/bigdecimal-4.1.2/ext/bigdecimal/Makefile +2 -2
  120. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.17.4/ext/ffi_c/Makefile +2 -2
  121. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/generator/Makefile +2 -2
  122. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/parser/Makefile +2 -2
  123. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b816320e956d3acde6e224cd36b418353fe8ee38fa7f989f2fc487c2bc410bed
4
- data.tar.gz: bbbc0a28f2265d8ec46d90abd7f34e6ecf39fc7cd1de7ef0abc022ccb4d209d2
3
+ metadata.gz: d7eab8f81a0579e7ee9c9f2cf878948edf8b7e01d871781e9146ced57b89d505
4
+ data.tar.gz: 0d7e7316705da64e6fa7bd01efd738aa9ecee78c361f18e7f1f82bf11139ffd7
5
5
  SHA512:
6
- metadata.gz: 1f4651333a70c3bb3d28dbb3b947a9d99299ab11a3180f7ee22faa0b40329dde04698f04530979cfaea00b6f20f93a7991f127bdf9bae555182ec4aa0295305e
7
- data.tar.gz: d35579d0fb05f4ed252f21c550ad15eb9d85bcccc21589e758966279b90f536769f8def1ab1909cc878e73e13ef667f4778605920694be8c8d37ea2246a7fcb6
6
+ metadata.gz: 76bb78f95948451ab7399df2107dbc4ec0096e1ff4340a74ea4aeba4949e343556b8c5f8e2a7141ffe0a4e65c00e9725c5d7c411d0b4fbef0ae7fec12249cc91
7
+ data.tar.gz: 3640b20fbe8d3e8439d2624ab2482a2f406ce8a13a74f76ed0ed40fe73078f63bfb5d97c8cdbbdbeb737712cb7ed234ebceb2bf033945cefa9c8198661daf3fe
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cloudsmith-api (2.0.27)
4
+ cloudsmith-api (2.0.29)
5
5
  addressable (~> 2.3, >= 2.3.0)
6
6
  json (~> 2.1, >= 2.1.0)
7
7
  typhoeus (~> 1.0, >= 1.0.1)
data/README.md CHANGED
@@ -7,7 +7,7 @@ The API to the Cloudsmith Service
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: v1
10
- - Package version: 2.0.27
10
+ - Package version: 2.0.29
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io)
13
13
 
@@ -24,15 +24,15 @@ gem build cloudsmith-api.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./cloudsmith-api-2.0.27.gem
27
+ gem install ./cloudsmith-api-2.0.29.gem
28
28
  ```
29
- (for development, run `gem install --dev ./cloudsmith-api-2.0.27.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./cloudsmith-api-2.0.29.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'cloudsmith-api', '~> 2.0.27'
35
+ gem 'cloudsmith-api', '~> 2.0.29'
36
36
 
37
37
  ### Install from Git
38
38
 
data/build.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "gemName": "cloudsmith-api",
9
9
  "gemRequiredRubyVersion": ">= 1.9",
10
10
  "gemSummary": "Cloudsmith API",
11
- "gemVersion": "2.0.27",
11
+ "gemVersion": "2.0.29",
12
12
  "hideGenerationTimestamp": true,
13
13
  "moduleName": "CloudsmithApi",
14
14
  "sortParamsByRequiredFlag": true
@@ -4,7 +4,9 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **created_at** | **DateTime** | The date and time when the connection was created. | [optional]
7
- **is_active** | **BOOLEAN** | | [optional] [default to true]
7
+ **disable_reason** | **String** | | [optional] [default to 'N/A']
8
+ **disable_reason_text** | **String** | Human-readable explanation of why this connection is disabled. | [optional]
9
+ **is_active** | **BOOLEAN** | | [optional] [default to false]
8
10
  **priority** | **Integer** | Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. | [optional]
9
11
  **slug_perm** | **String** | | [optional]
10
12
  **target_repository** | **String** | The slug of the target repository to connect to. |
@@ -3,7 +3,7 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **is_active** | **BOOLEAN** | | [optional] [default to true]
6
+ **is_active** | **BOOLEAN** | | [optional] [default to false]
7
7
  **priority** | **Integer** | Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. | [optional]
8
8
  **target_repository** | **String** | The slug of the target repository to connect to. |
9
9
 
@@ -3,7 +3,7 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **is_active** | **BOOLEAN** | | [optional] [default to true]
6
+ **is_active** | **BOOLEAN** | | [optional] [default to false]
7
7
  **priority** | **Integer** | Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first. | [optional]
8
8
  **target_repository** | **String** | The slug of the target repository to connect to. | [optional]
9
9
 
@@ -4,6 +4,7 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **auth_modes** | **Array<String>** | The authentication modes supported by the upstream format |
7
+ **cache_only** | **BOOLEAN** | If true the upstream format supports cache-only mode. |
7
8
  **caching** | **BOOLEAN** | If true the upstream format supports caching |
8
9
  **indexing** | **BOOLEAN** | If true the upstream format supports indexing |
9
10
  **indexing_behavior** | **String** | The behavior of the upstream when indexing | [optional] [default to 'Unsupported']
@@ -6,6 +6,8 @@ Name | Type | Description | Notes
6
6
  **saml_auth_enabled** | **BOOLEAN** | |
7
7
  **saml_auth_enforced** | **BOOLEAN** | |
8
8
  **saml_metadata_inline** | **String** | If configured, SAML metadata will be used as entered instead of retrieved from a remote URL. | [optional]
9
+ **saml_metadata_inline_webapp** | **String** | When configured, this inline SAML metadata is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. | [optional]
9
10
  **saml_metadata_url** | **String** | If configured, SAML metadata be retrieved from a remote URL. | [optional]
11
+ **saml_metadata_url_webapp** | **String** | When configured, this SAML metadata URL is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. | [optional]
10
12
 
11
13
 
@@ -6,6 +6,8 @@ Name | Type | Description | Notes
6
6
  **saml_auth_enabled** | **BOOLEAN** | | [optional]
7
7
  **saml_auth_enforced** | **BOOLEAN** | | [optional]
8
8
  **saml_metadata_inline** | **String** | If configured, SAML metadata will be used as entered instead of retrieved from a remote URL. | [optional]
9
+ **saml_metadata_inline_webapp** | **String** | When configured, this inline SAML metadata is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. | [optional]
9
10
  **saml_metadata_url** | **String** | If configured, SAML metadata be retrieved from a remote URL. | [optional]
11
+ **saml_metadata_url_webapp** | **String** | When configured, this SAML metadata URL is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application. | [optional]
10
12
 
11
13
 
data/docs/OrgsApi.md CHANGED
@@ -1615,7 +1615,8 @@ api_instance = CloudsmithApi::OrgsApi.new
1615
1615
 
1616
1616
  opts = {
1617
1617
  page: 56, # Integer | A page number within the paginated result set.
1618
- page_size: 56 # Integer | Number of results to return per page.
1618
+ page_size: 56, # Integer | Number of results to return per page.
1619
+ sort: 'name' # String | A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, created_at, slug.
1619
1620
  }
1620
1621
 
1621
1622
  begin
@@ -1633,6 +1634,7 @@ Name | Type | Description | Notes
1633
1634
  ------------- | ------------- | ------------- | -------------
1634
1635
  **page** | **Integer**| A page number within the paginated result set. | [optional]
1635
1636
  **page_size** | **Integer**| Number of results to return per page. | [optional]
1637
+ **sort** | **String**| A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, created_at, slug. | [optional] [default to name]
1636
1638
 
1637
1639
  ### Return type
1638
1640
 
data/docs/PackagesApi.md CHANGED
@@ -209,7 +209,7 @@ nil (empty response body)
209
209
 
210
210
 
211
211
  # **packages_dependencies**
212
- > PackageDependencies packages_dependencies(owner, repo, identifier)
212
+ > PackageDependencies packages_dependencies(owner, repo, identifier, opts)
213
213
 
214
214
  Get the list of dependencies for a package. Transitive dependencies are included where supported.
215
215
 
@@ -239,10 +239,13 @@ repo = 'repo_example' # String |
239
239
 
240
240
  identifier = 'identifier_example' # String |
241
241
 
242
+ opts = {
243
+ include_connected_repositories: false # BOOLEAN | If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in.
244
+ }
242
245
 
243
246
  begin
244
247
  #Get the list of dependencies for a package. Transitive dependencies are included where supported.
245
- result = api_instance.packages_dependencies(owner, repo, identifier)
248
+ result = api_instance.packages_dependencies(owner, repo, identifier, opts)
246
249
  p result
247
250
  rescue CloudsmithApi::ApiError => e
248
251
  puts "Exception when calling PackagesApi->packages_dependencies: #{e}"
@@ -256,6 +259,7 @@ Name | Type | Description | Notes
256
259
  **owner** | **String**| |
257
260
  **repo** | **String**| |
258
261
  **identifier** | **String**| |
262
+ **include_connected_repositories** | **BOOLEAN**| If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. | [optional] [default to false]
259
263
 
260
264
  ### Return type
261
265
 
@@ -306,6 +310,7 @@ opts = {
306
310
  page_size: 56, # Integer | Number of results to return per page.
307
311
  group_by: 'name', # String | A field to group packages by. Available options: name, backend_kind.
308
312
  hide_subcomponents: false, # BOOLEAN | Whether to hide packages which are subcomponents of another package in the results
313
+ include_connected_repositories: false, # BOOLEAN | If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false.
309
314
  query: '', # String | A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages.
310
315
  sort: 'name' # String | A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind.
311
316
  }
@@ -329,6 +334,7 @@ Name | Type | Description | Notes
329
334
  **page_size** | **Integer**| Number of results to return per page. | [optional]
330
335
  **group_by** | **String**| A field to group packages by. Available options: name, backend_kind. | [optional] [default to name]
331
336
  **hide_subcomponents** | **BOOLEAN**| Whether to hide packages which are subcomponents of another package in the results | [optional] [default to false]
337
+ **include_connected_repositories** | **BOOLEAN**| If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. | [optional] [default to false]
332
338
  **query** | **String**| A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. | [optional] [default to ]
333
339
  **sort** | **String**| A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. | [optional] [default to name]
334
340
 
@@ -379,6 +385,7 @@ repo = 'repo_example' # String |
379
385
  opts = {
380
386
  page: 56, # Integer | A page number within the paginated result set.
381
387
  page_size: 56, # Integer | Number of results to return per page.
388
+ include_connected_repositories: false, # BOOLEAN | If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in.
382
389
  query: '', # String | A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages.
383
390
  sort: '-date' # String | A field for sorting objects in ascending or descending order.
384
391
  }
@@ -400,6 +407,7 @@ Name | Type | Description | Notes
400
407
  **repo** | **String**| |
401
408
  **page** | **Integer**| A page number within the paginated result set. | [optional]
402
409
  **page_size** | **Integer**| Number of results to return per page. | [optional]
410
+ **include_connected_repositories** | **BOOLEAN**| If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. | [optional] [default to false]
403
411
  **query** | **String**| A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. | [optional] [default to ]
404
412
  **sort** | **String**| A field for sorting objects in ascending or descending order. | [optional] [default to -date]
405
413
 
@@ -555,7 +563,7 @@ Name | Type | Description | Notes
555
563
 
556
564
 
557
565
  # **packages_read**
558
- > Package packages_read(owner, repo, identifier)
566
+ > Package packages_read(owner, repo, identifier, opts)
559
567
 
560
568
  Get a specific package in a repository.
561
569
 
@@ -585,10 +593,13 @@ repo = 'repo_example' # String |
585
593
 
586
594
  identifier = 'identifier_example' # String |
587
595
 
596
+ opts = {
597
+ include_connected_repositories: false # BOOLEAN | If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in.
598
+ }
588
599
 
589
600
  begin
590
601
  #Get a specific package in a repository.
591
- result = api_instance.packages_read(owner, repo, identifier)
602
+ result = api_instance.packages_read(owner, repo, identifier, opts)
592
603
  p result
593
604
  rescue CloudsmithApi::ApiError => e
594
605
  puts "Exception when calling PackagesApi->packages_read: #{e}"
@@ -602,6 +613,7 @@ Name | Type | Description | Notes
602
613
  **owner** | **String**| |
603
614
  **repo** | **String**| |
604
615
  **identifier** | **String**| |
616
+ **include_connected_repositories** | **BOOLEAN**| If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. | [optional] [default to false]
605
617
 
606
618
  ### Return type
607
619
 
@@ -747,7 +759,7 @@ Name | Type | Description | Notes
747
759
 
748
760
 
749
761
  # **packages_status**
750
- > PackageStatus packages_status(owner, repo, identifier)
762
+ > PackageStatus packages_status(owner, repo, identifier, opts)
751
763
 
752
764
  Get the synchronization status for a package.
753
765
 
@@ -777,10 +789,13 @@ repo = 'repo_example' # String |
777
789
 
778
790
  identifier = 'identifier_example' # String |
779
791
 
792
+ opts = {
793
+ include_connected_repositories: false # BOOLEAN | If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in.
794
+ }
780
795
 
781
796
  begin
782
797
  #Get the synchronization status for a package.
783
- result = api_instance.packages_status(owner, repo, identifier)
798
+ result = api_instance.packages_status(owner, repo, identifier, opts)
784
799
  p result
785
800
  rescue CloudsmithApi::ApiError => e
786
801
  puts "Exception when calling PackagesApi->packages_status: #{e}"
@@ -794,6 +809,7 @@ Name | Type | Description | Notes
794
809
  **owner** | **String**| |
795
810
  **repo** | **String**| |
796
811
  **identifier** | **String**| |
812
+ **include_connected_repositories** | **BOOLEAN**| If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. | [optional] [default to false]
797
813
 
798
814
  ### Return type
799
815
 
data/docs/ReposApi.md CHANGED
@@ -1844,7 +1844,7 @@ opts = {
1844
1844
  page: 56, # Integer | A page number within the paginated result set.
1845
1845
  page_size: 56, # Integer | Number of results to return per page.
1846
1846
  query: '', # String | A search term for querying repositories. Available options are: name, slug. Explicit filters: broadcast_state, repository_type.
1847
- sort: '-created_at' # String | A field for sorting objects in ascending or descending order.
1847
+ sort: '-created_at' # String | A field for sorting objects in ascending or descending order. Available options are: created_at, downloads, favorites, name, package_count, size.
1848
1848
  }
1849
1849
 
1850
1850
  begin
@@ -1864,7 +1864,7 @@ Name | Type | Description | Notes
1864
1864
  **page** | **Integer**| A page number within the paginated result set. | [optional]
1865
1865
  **page_size** | **Integer**| Number of results to return per page. | [optional]
1866
1866
  **query** | **String**| A search term for querying repositories. Available options are: name, slug. Explicit filters: broadcast_state, repository_type. | [optional] [default to ]
1867
- **sort** | **String**| A field for sorting objects in ascending or descending order. | [optional] [default to -created_at]
1867
+ **sort** | **String**| A field for sorting objects in ascending or descending order. Available options are: created_at, downloads, favorites, name, package_count, size. | [optional] [default to -created_at]
1868
1868
 
1869
1869
  ### Return type
1870
1870
 
data/docs/Repository.md CHANGED
@@ -3,6 +3,7 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
+ **active_connection_count** | **Integer** | Number of active connections for the repository | [optional]
6
7
  **broadcast_state** | **String** | Broadcasting status of a repository. | [optional] [default to 'Off']
7
8
  **cdn_url** | **String** | Base URL from which packages and other artifacts are downloaded. | [optional]
8
9
  **content_kind** | **String** | The repository content kind determines whether this repository contains packages, or provides a distribution of packages from other repositories. You can only select the content kind at repository creation time. | [optional] [default to 'Standard']
@@ -3,6 +3,7 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
+ **active_connection_count** | **Integer** | Number of active connections for the repository | [optional]
6
7
  **broadcast_state** | **String** | Broadcasting status of a repository. | [optional] [default to 'Off']
7
8
  **cdn_url** | **String** | Base URL from which packages and other artifacts are downloaded. | [optional]
8
9
  **content_kind** | **String** | The repository content kind determines whether this repository contains packages, or provides a distribution of packages from other repositories. You can only select the content kind at repository creation time. | [optional] [default to 'Standard']
@@ -9,5 +9,6 @@ Name | Type | Description | Notes
9
9
  **fingerprint** | **String** | Uppercase hex-encoded SHA-256 fingerprint of the public key. | [optional]
10
10
  **fingerprint_short** | **String** | | [optional]
11
11
  **public_key** | **String** | The public key given to repository users. | [optional]
12
+ **public_key_wire** | **String** | The public key in `<name>:<base64>` wire format, ready to paste into Nix `trusted-public-keys`. | [optional]
12
13
 
13
14
 
@@ -1466,6 +1466,7 @@ module CloudsmithApi
1466
1466
  # @param [Hash] opts the optional parameters
1467
1467
  # @option opts [Integer] :page A page number within the paginated result set.
1468
1468
  # @option opts [Integer] :page_size Number of results to return per page.
1469
+ # @option opts [String] :sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, created_at, slug. (default to name)
1469
1470
  # @return [Array<Organization>]
1470
1471
  def orgs_list(opts = {})
1471
1472
  data, _status_code, _headers = orgs_list_with_http_info(opts)
@@ -1477,6 +1478,7 @@ module CloudsmithApi
1477
1478
  # @param [Hash] opts the optional parameters
1478
1479
  # @option opts [Integer] :page A page number within the paginated result set.
1479
1480
  # @option opts [Integer] :page_size Number of results to return per page.
1481
+ # @option opts [String] :sort A field for sorting objects in ascending or descending order. Use &#x60;-&#x60; prefix for descending order (e.g., &#x60;-name&#x60;). Available options: name, created_at, slug.
1480
1482
  # @return [Array<(Array<Organization>, Fixnum, Hash)>] Array<Organization> data, response status code and response headers
1481
1483
  def orgs_list_with_http_info(opts = {})
1482
1484
  if @api_client.config.debugging
@@ -1489,6 +1491,7 @@ module CloudsmithApi
1489
1491
  query_params = {}
1490
1492
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1491
1493
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1494
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1492
1495
 
1493
1496
  # header parameters
1494
1497
  header_params = {}
@@ -158,6 +158,7 @@ module CloudsmithApi
158
158
  # @param repo
159
159
  # @param identifier
160
160
  # @param [Hash] opts the optional parameters
161
+ # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (default to false)
161
162
  # @return [PackageDependencies]
162
163
  def packages_dependencies(owner, repo, identifier, opts = {})
163
164
  data, _status_code, _headers = packages_dependencies_with_http_info(owner, repo, identifier, opts)
@@ -170,6 +171,7 @@ module CloudsmithApi
170
171
  # @param repo
171
172
  # @param identifier
172
173
  # @param [Hash] opts the optional parameters
174
+ # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in.
173
175
  # @return [Array<(PackageDependencies, Fixnum, Hash)>] PackageDependencies data, response status code and response headers
174
176
  def packages_dependencies_with_http_info(owner, repo, identifier, opts = {})
175
177
  if @api_client.config.debugging
@@ -192,6 +194,7 @@ module CloudsmithApi
192
194
 
193
195
  # query parameters
194
196
  query_params = {}
197
+ query_params[:'include_connected_repositories'] = opts[:'include_connected_repositories'] if !opts[:'include_connected_repositories'].nil?
195
198
 
196
199
  # header parameters
197
200
  header_params = {}
@@ -227,6 +230,7 @@ module CloudsmithApi
227
230
  # @option opts [Integer] :page_size Number of results to return per page.
228
231
  # @option opts [String] :group_by A field to group packages by. Available options: name, backend_kind. (default to name)
229
232
  # @option opts [BOOLEAN] :hide_subcomponents Whether to hide packages which are subcomponents of another package in the results (default to false)
233
+ # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. (default to false)
230
234
  # @option opts [String] :query A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. (default to )
231
235
  # @option opts [String] :sort A field for sorting objects in ascending or descending order. Use &#x60;-&#x60; prefix for descending order (e.g., &#x60;-name&#x60;). Available options: name, count, num_downloads, size, last_push, backend_kind. (default to name)
232
236
  # @return [InlineResponse200]
@@ -244,6 +248,7 @@ module CloudsmithApi
244
248
  # @option opts [Integer] :page_size Number of results to return per page.
245
249
  # @option opts [String] :group_by A field to group packages by. Available options: name, backend_kind.
246
250
  # @option opts [BOOLEAN] :hide_subcomponents Whether to hide packages which are subcomponents of another package in the results
251
+ # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false.
247
252
  # @option opts [String] :query A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages.
248
253
  # @option opts [String] :sort A field for sorting objects in ascending or descending order. Use &#x60;-&#x60; prefix for descending order (e.g., &#x60;-name&#x60;). Available options: name, count, num_downloads, size, last_push, backend_kind.
249
254
  # @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
@@ -268,6 +273,7 @@ module CloudsmithApi
268
273
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
269
274
  query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
270
275
  query_params[:'hide_subcomponents'] = opts[:'hide_subcomponents'] if !opts[:'hide_subcomponents'].nil?
276
+ query_params[:'include_connected_repositories'] = opts[:'include_connected_repositories'] if !opts[:'include_connected_repositories'].nil?
271
277
  query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
272
278
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
273
279
 
@@ -303,6 +309,7 @@ module CloudsmithApi
303
309
  # @param [Hash] opts the optional parameters
304
310
  # @option opts [Integer] :page A page number within the paginated result set.
305
311
  # @option opts [Integer] :page_size Number of results to return per page.
312
+ # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (default to false)
306
313
  # @option opts [String] :query A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. (default to )
307
314
  # @option opts [String] :sort A field for sorting objects in ascending or descending order. (default to -date)
308
315
  # @return [Array<Package>]
@@ -318,6 +325,7 @@ module CloudsmithApi
318
325
  # @param [Hash] opts the optional parameters
319
326
  # @option opts [Integer] :page A page number within the paginated result set.
320
327
  # @option opts [Integer] :page_size Number of results to return per page.
328
+ # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in.
321
329
  # @option opts [String] :query A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages.
322
330
  # @option opts [String] :sort A field for sorting objects in ascending or descending order.
323
331
  # @return [Array<(Array<Package>, Fixnum, Hash)>] Array<Package> data, response status code and response headers
@@ -340,6 +348,7 @@ module CloudsmithApi
340
348
  query_params = {}
341
349
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
342
350
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
351
+ query_params[:'include_connected_repositories'] = opts[:'include_connected_repositories'] if !opts[:'include_connected_repositories'].nil?
343
352
  query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
344
353
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
345
354
 
@@ -510,6 +519,7 @@ module CloudsmithApi
510
519
  # @param repo
511
520
  # @param identifier
512
521
  # @param [Hash] opts the optional parameters
522
+ # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (default to false)
513
523
  # @return [Package]
514
524
  def packages_read(owner, repo, identifier, opts = {})
515
525
  data, _status_code, _headers = packages_read_with_http_info(owner, repo, identifier, opts)
@@ -522,6 +532,7 @@ module CloudsmithApi
522
532
  # @param repo
523
533
  # @param identifier
524
534
  # @param [Hash] opts the optional parameters
535
+ # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in.
525
536
  # @return [Array<(Package, Fixnum, Hash)>] Package data, response status code and response headers
526
537
  def packages_read_with_http_info(owner, repo, identifier, opts = {})
527
538
  if @api_client.config.debugging
@@ -544,6 +555,7 @@ module CloudsmithApi
544
555
 
545
556
  # query parameters
546
557
  query_params = {}
558
+ query_params[:'include_connected_repositories'] = opts[:'include_connected_repositories'] if !opts[:'include_connected_repositories'].nil?
547
559
 
548
560
  # header parameters
549
561
  header_params = {}
@@ -708,6 +720,7 @@ module CloudsmithApi
708
720
  # @param repo
709
721
  # @param identifier
710
722
  # @param [Hash] opts the optional parameters
723
+ # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in. (default to false)
711
724
  # @return [PackageStatus]
712
725
  def packages_status(owner, repo, identifier, opts = {})
713
726
  data, _status_code, _headers = packages_status_with_http_info(owner, repo, identifier, opts)
@@ -720,6 +733,7 @@ module CloudsmithApi
720
733
  # @param repo
721
734
  # @param identifier
722
735
  # @param [Hash] opts the optional parameters
736
+ # @option opts [BOOLEAN] :include_connected_repositories If true, include packages from active connected target repositories in addition to packages from this repository. Has no effect if the repository has no active connections. Defaults to false. Note: download-related URLs on returned packages (e.g. cdn_url, signature_url) are rewritten to point at the requesting repository, not the connected target repository the package physically lives in.
723
737
  # @return [Array<(PackageStatus, Fixnum, Hash)>] PackageStatus data, response status code and response headers
724
738
  def packages_status_with_http_info(owner, repo, identifier, opts = {})
725
739
  if @api_client.config.debugging
@@ -742,6 +756,7 @@ module CloudsmithApi
742
756
 
743
757
  # query parameters
744
758
  query_params = {}
759
+ query_params[:'include_connected_repositories'] = opts[:'include_connected_repositories'] if !opts[:'include_connected_repositories'].nil?
745
760
 
746
761
  # header parameters
747
762
  header_params = {}
@@ -1630,7 +1630,7 @@ module CloudsmithApi
1630
1630
  # @option opts [Integer] :page A page number within the paginated result set.
1631
1631
  # @option opts [Integer] :page_size Number of results to return per page.
1632
1632
  # @option opts [String] :query A search term for querying repositories. Available options are: name, slug. Explicit filters: broadcast_state, repository_type. (default to )
1633
- # @option opts [String] :sort A field for sorting objects in ascending or descending order. (default to -created_at)
1633
+ # @option opts [String] :sort A field for sorting objects in ascending or descending order. Available options are: created_at, downloads, favorites, name, package_count, size. (default to -created_at)
1634
1634
  # @return [Array<Repository>]
1635
1635
  def repos_namespace_list(owner, opts = {})
1636
1636
  data, _status_code, _headers = repos_namespace_list_with_http_info(owner, opts)
@@ -1644,7 +1644,7 @@ module CloudsmithApi
1644
1644
  # @option opts [Integer] :page A page number within the paginated result set.
1645
1645
  # @option opts [Integer] :page_size Number of results to return per page.
1646
1646
  # @option opts [String] :query A search term for querying repositories. Available options are: name, slug. Explicit filters: broadcast_state, repository_type.
1647
- # @option opts [String] :sort A field for sorting objects in ascending or descending order.
1647
+ # @option opts [String] :sort A field for sorting objects in ascending or descending order. Available options are: created_at, downloads, favorites, name, package_count, size.
1648
1648
  # @return [Array<(Array<Repository>, Fixnum, Hash)>] Array<Repository> data, response status code and response headers
1649
1649
  def repos_namespace_list_with_http_info(owner, opts = {})
1650
1650
  if @api_client.config.debugging
@@ -307,7 +307,7 @@ class CargoUpstream
307
307
  return false unless auth_mode_validator.valid?(@auth_mode)
308
308
  disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'RSA key did not verify the upstream\'s APKINDEX signature', 'Upstream was disabled by request of user'])
309
309
  return false unless disable_reason_validator.valid?(@disable_reason)
310
- mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
310
+ mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
311
311
  return false unless mode_validator.valid?(@mode)
312
312
  return false if @name.nil?
313
313
  return false if @upstream_url.nil?
@@ -337,7 +337,7 @@ class CargoUpstream
337
337
  # Custom attribute writer method checking allowed values (enum).
338
338
  # @param [Object] mode Object to be assigned
339
339
  def mode=(mode)
340
- validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
340
+ validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
341
341
  unless validator.valid?(mode)
342
342
  fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
343
343
  end
@@ -198,7 +198,7 @@ class CargoUpstreamRequest
198
198
  def valid?
199
199
  auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
200
200
  return false unless auth_mode_validator.valid?(@auth_mode)
201
- mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
201
+ mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
202
202
  return false unless mode_validator.valid?(@mode)
203
203
  return false if @name.nil?
204
204
  return false if @upstream_url.nil?
@@ -218,7 +218,7 @@ class CargoUpstreamRequest
218
218
  # Custom attribute writer method checking allowed values (enum).
219
219
  # @param [Object] mode Object to be assigned
220
220
  def mode=(mode)
221
- validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
221
+ validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
222
222
  unless validator.valid?(mode)
223
223
  fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
224
224
  end
@@ -190,7 +190,7 @@ class CargoUpstreamRequestPatch
190
190
  def valid?
191
191
  auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
192
192
  return false unless auth_mode_validator.valid?(@auth_mode)
193
- mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
193
+ mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
194
194
  return false unless mode_validator.valid?(@mode)
195
195
  true
196
196
  end
@@ -208,7 +208,7 @@ class CargoUpstreamRequestPatch
208
208
  # Custom attribute writer method checking allowed values (enum).
209
209
  # @param [Object] mode Object to be assigned
210
210
  def mode=(mode)
211
- validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
211
+ validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
212
212
  unless validator.valid?(mode)
213
213
  fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
214
214
  end
@@ -307,7 +307,7 @@ class ComposerUpstream
307
307
  return false unless auth_mode_validator.valid?(@auth_mode)
308
308
  disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'RSA key did not verify the upstream\'s APKINDEX signature', 'Upstream was disabled by request of user'])
309
309
  return false unless disable_reason_validator.valid?(@disable_reason)
310
- mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
310
+ mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
311
311
  return false unless mode_validator.valid?(@mode)
312
312
  return false if @name.nil?
313
313
  return false if @upstream_url.nil?
@@ -337,7 +337,7 @@ class ComposerUpstream
337
337
  # Custom attribute writer method checking allowed values (enum).
338
338
  # @param [Object] mode Object to be assigned
339
339
  def mode=(mode)
340
- validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
340
+ validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
341
341
  unless validator.valid?(mode)
342
342
  fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
343
343
  end
@@ -198,7 +198,7 @@ class ComposerUpstreamRequest
198
198
  def valid?
199
199
  auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
200
200
  return false unless auth_mode_validator.valid?(@auth_mode)
201
- mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
201
+ mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
202
202
  return false unless mode_validator.valid?(@mode)
203
203
  return false if @name.nil?
204
204
  return false if @upstream_url.nil?
@@ -218,7 +218,7 @@ class ComposerUpstreamRequest
218
218
  # Custom attribute writer method checking allowed values (enum).
219
219
  # @param [Object] mode Object to be assigned
220
220
  def mode=(mode)
221
- validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
221
+ validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
222
222
  unless validator.valid?(mode)
223
223
  fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
224
224
  end
@@ -190,7 +190,7 @@ class ComposerUpstreamRequestPatch
190
190
  def valid?
191
191
  auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
192
192
  return false unless auth_mode_validator.valid?(@auth_mode)
193
- mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
193
+ mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
194
194
  return false unless mode_validator.valid?(@mode)
195
195
  true
196
196
  end
@@ -208,7 +208,7 @@ class ComposerUpstreamRequestPatch
208
208
  # Custom attribute writer method checking allowed values (enum).
209
209
  # @param [Object] mode Object to be assigned
210
210
  def mode=(mode)
211
- validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
211
+ validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
212
212
  unless validator.valid?(mode)
213
213
  fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
214
214
  end
@@ -307,7 +307,7 @@ class CondaUpstream
307
307
  return false unless auth_mode_validator.valid?(@auth_mode)
308
308
  disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'RSA key did not verify the upstream\'s APKINDEX signature', 'Upstream was disabled by request of user'])
309
309
  return false unless disable_reason_validator.valid?(@disable_reason)
310
- mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
310
+ mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
311
311
  return false unless mode_validator.valid?(@mode)
312
312
  return false if @name.nil?
313
313
  return false if @upstream_url.nil?
@@ -337,7 +337,7 @@ class CondaUpstream
337
337
  # Custom attribute writer method checking allowed values (enum).
338
338
  # @param [Object] mode Object to be assigned
339
339
  def mode=(mode)
340
- validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
340
+ validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy', 'Cache Only'])
341
341
  unless validator.valid?(mode)
342
342
  fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
343
343
  end