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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +4 -4
- data/build.json +1 -1
- data/docs/ConnectedRepository.md +3 -1
- data/docs/ConnectedRepositoryRequest.md +1 -1
- data/docs/ConnectedRepositoryRequestPatch.md +1 -1
- data/docs/FormatSupportUpstream.md +1 -0
- data/docs/OrganizationSAMLAuth.md +2 -0
- data/docs/OrganizationSAMLAuthRequestPatch.md +2 -0
- data/docs/OrgsApi.md +3 -1
- data/docs/PackagesApi.md +22 -6
- data/docs/ReposApi.md +2 -2
- data/docs/Repository.md +1 -0
- data/docs/RepositoryCreate.md +1 -0
- data/docs/RepositoryEd25519Key.md +1 -0
- data/lib/cloudsmith-api/api/orgs_api.rb +3 -0
- data/lib/cloudsmith-api/api/packages_api.rb +15 -0
- data/lib/cloudsmith-api/api/repos_api.rb +2 -2
- data/lib/cloudsmith-api/models/cargo_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/cargo_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/cargo_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/composer_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/composer_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/composer_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/conda_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/conda_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/conda_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/connected_repository.rb +57 -2
- data/lib/cloudsmith-api/models/connected_repository_request.rb +1 -1
- data/lib/cloudsmith-api/models/connected_repository_request_patch.rb +1 -1
- data/lib/cloudsmith-api/models/cran_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/cran_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/cran_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/dart_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/dart_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/dart_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/deb_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/deb_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/deb_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/format_support_upstream.rb +16 -1
- data/lib/cloudsmith-api/models/generic_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/generic_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/generic_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/helm_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/helm_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/helm_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/hex_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/hex_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/hex_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/npm_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/npm_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/npm_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/nuget_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/nuget_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/nuget_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/organization_saml_auth.rb +24 -4
- data/lib/cloudsmith-api/models/organization_saml_auth_request_patch.rb +24 -4
- data/lib/cloudsmith-api/models/python_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/python_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/python_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/repository.rb +11 -1
- data/lib/cloudsmith-api/models/repository_create.rb +11 -1
- data/lib/cloudsmith-api/models/repository_ed25519_key.rb +14 -4
- data/lib/cloudsmith-api/version.rb +1 -1
- data/spec/api/orgs_api_spec.rb +1 -0
- data/spec/api/packages_api_spec.rb +5 -0
- data/spec/api/repos_api_spec.rb +1 -1
- data/spec/models/cargo_upstream_request_patch_spec.rb +1 -1
- data/spec/models/cargo_upstream_request_spec.rb +1 -1
- data/spec/models/cargo_upstream_spec.rb +1 -1
- data/spec/models/composer_upstream_request_patch_spec.rb +1 -1
- data/spec/models/composer_upstream_request_spec.rb +1 -1
- data/spec/models/composer_upstream_spec.rb +1 -1
- data/spec/models/conda_upstream_request_patch_spec.rb +1 -1
- data/spec/models/conda_upstream_request_spec.rb +1 -1
- data/spec/models/conda_upstream_spec.rb +1 -1
- data/spec/models/connected_repository_spec.rb +16 -0
- data/spec/models/cran_upstream_request_patch_spec.rb +1 -1
- data/spec/models/cran_upstream_request_spec.rb +1 -1
- data/spec/models/cran_upstream_spec.rb +1 -1
- data/spec/models/dart_upstream_request_patch_spec.rb +1 -1
- data/spec/models/dart_upstream_request_spec.rb +1 -1
- data/spec/models/dart_upstream_spec.rb +1 -1
- data/spec/models/deb_upstream_request_patch_spec.rb +1 -1
- data/spec/models/deb_upstream_request_spec.rb +1 -1
- data/spec/models/deb_upstream_spec.rb +1 -1
- data/spec/models/format_support_upstream_spec.rb +6 -0
- data/spec/models/generic_upstream_request_patch_spec.rb +1 -1
- data/spec/models/generic_upstream_request_spec.rb +1 -1
- data/spec/models/generic_upstream_spec.rb +1 -1
- data/spec/models/helm_upstream_request_patch_spec.rb +1 -1
- data/spec/models/helm_upstream_request_spec.rb +1 -1
- data/spec/models/helm_upstream_spec.rb +1 -1
- data/spec/models/hex_upstream_request_patch_spec.rb +1 -1
- data/spec/models/hex_upstream_request_spec.rb +1 -1
- data/spec/models/hex_upstream_spec.rb +1 -1
- data/spec/models/npm_upstream_request_patch_spec.rb +1 -1
- data/spec/models/npm_upstream_request_spec.rb +1 -1
- data/spec/models/npm_upstream_spec.rb +1 -1
- data/spec/models/nuget_upstream_request_patch_spec.rb +1 -1
- data/spec/models/nuget_upstream_request_spec.rb +1 -1
- data/spec/models/nuget_upstream_spec.rb +1 -1
- data/spec/models/organization_saml_auth_request_patch_spec.rb +12 -0
- data/spec/models/organization_saml_auth_spec.rb +12 -0
- data/spec/models/python_upstream_request_patch_spec.rb +1 -1
- data/spec/models/python_upstream_request_spec.rb +1 -1
- data/spec/models/python_upstream_spec.rb +1 -1
- data/spec/models/repository_create_spec.rb +6 -0
- data/spec/models/repository_ed25519_key_spec.rb +6 -0
- data/spec/models/repository_spec.rb +6 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.3.2/gem_make.out +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.2/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.2/mkmf.log +4 -4
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/bigdecimal-4.1.2/ext/bigdecimal/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.17.4/ext/ffi_c/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/generator/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/parser/Makefile +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d7eab8f81a0579e7ee9c9f2cf878948edf8b7e01d871781e9146ced57b89d505
|
|
4
|
+
data.tar.gz: 0d7e7316705da64e6fa7bd01efd738aa9ecee78c361f18e7f1f82bf11139ffd7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 76bb78f95948451ab7399df2107dbc4ec0096e1ff4340a74ea4aeba4949e343556b8c5f8e2a7141ffe0a4e65c00e9725c5d7c411d0b4fbef0ae7fec12249cc91
|
|
7
|
+
data.tar.gz: 3640b20fbe8d3e8439d2624ab2482a2f406ce8a13a74f76ed0ed40fe73078f63bfb5d97c8cdbbdbeb737712cb7ed234ebceb2bf033945cefa9c8198661daf3fe
|
data/Gemfile.lock
CHANGED
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.
|
|
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 install ./cloudsmith-api-2.0.29.gem
|
|
28
28
|
```
|
|
29
|
-
(for development, run `gem install --dev ./cloudsmith-api-2.0.
|
|
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.
|
|
35
|
+
gem 'cloudsmith-api', '~> 2.0.29'
|
|
36
36
|
|
|
37
37
|
### Install from Git
|
|
38
38
|
|
data/build.json
CHANGED
data/docs/ConnectedRepository.md
CHANGED
|
@@ -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
|
-
**
|
|
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
|
|
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
|
|
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']
|
data/docs/RepositoryCreate.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']
|
|
@@ -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 `-` prefix for descending order (e.g., `-name`). 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 `-` prefix for descending order (e.g., `-name`). 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 `-` prefix for descending order (e.g., `-name`). 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
|