cloudsmith-api 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +12 -4
- data/build.json +1 -1
- data/docs/InlineResponse200.md +9 -0
- data/docs/InlineResponse200CountryCode.md +9 -0
- data/docs/ReposApi.md +180 -0
- data/docs/RepositoryGeoIPList.md +9 -0
- data/docs/RespositoryGeoIPEnableDisable.md +7 -0
- data/docs/RespositoryGeoIPEnableDisableRequest.md +7 -0
- data/docs/StatusBasic.md +1 -1
- data/lib/cloudsmith-api/api/repos_api.rb +182 -0
- data/lib/cloudsmith-api/models/inline_response_200.rb +193 -0
- data/lib/cloudsmith-api/models/inline_response_200_country_code.rb +197 -0
- data/lib/cloudsmith-api/models/repository_geo_ip_list.rb +195 -0
- data/lib/cloudsmith-api/models/respository_geo_ip_enable_disable.rb +175 -0
- data/lib/cloudsmith-api/models/respository_geo_ip_enable_disable_request.rb +175 -0
- data/lib/cloudsmith-api/models/status_basic.rb +1 -1
- data/lib/cloudsmith-api/version.rb +1 -1
- data/lib/cloudsmith-api.rb +5 -0
- data/spec/api/repos_api_spec.rb +41 -0
- data/spec/models/inline_response_200_country_code_spec.rb +47 -0
- data/spec/models/inline_response_200_spec.rb +47 -0
- data/spec/models/repository_geo_ip_list_spec.rb +47 -0
- data/spec/models/respository_geo_ip_enable_disable_request_spec.rb +35 -0
- data/spec/models/respository_geo_ip_enable_disable_spec.rb +35 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-expectations-3.12.1.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.20/gem_make.out +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.3/gem_make.out +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.3/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/generator/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/parser/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/.document +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/.yardopts +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/Changelog.md +10 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/LICENSE.md +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/README.md +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/expectations/block_snippet_extractor.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/expectations/configuration.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/expectations/expectation_target.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/expectations/fail_with.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/expectations/failure_aggregator.rb +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/expectations/handler.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/expectations/minitest_integration.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/expectations/syntax.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/expectations/version.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/expectations.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/aliased_matcher.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/all.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/base_matcher.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/be.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/be_between.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/be_instance_of.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/be_kind_of.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/be_within.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/change.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/compound.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/contain_exactly.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/count_expectation.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/cover.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/eq.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/eql.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/equal.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/exist.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/has.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/have_attributes.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/include.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/match.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/operators.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/output.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/raise_error.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/respond_to.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/satisfy.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/start_or_end_with.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/throw_symbol.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/yield.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/composable.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/dsl.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/english_phrasing.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/fail_matchers.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/generated_descriptions.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/matcher_delegator.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/matcher_protocol.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/specifications/{rspec-expectations-3.12.0.gemspec → rspec-expectations-3.12.1.gemspec} +5 -5
- metadata +78 -58
- data/vendor/bundle/ruby/2.6.0/cache/rspec-expectations-3.12.0.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08b83a50885371e0b43e61cca7cd7fce2e513745d33ff15a3f5ed2730f5a2f0b'
|
4
|
+
data.tar.gz: 6132ed9c3d298e9ce34dfb91c16feb401b57b74085f0f673137dde8bfc60938b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 539097f0e088e1ee5b4ef2931c2e51eec6f1a1fd4a167753a436d6ccde95b15a4229e9a883c5164519cb6d88e1fb76dabd9ca86dd2f0f0773751f5ea2f55642a
|
7
|
+
data.tar.gz: 72b69d5a90212fabbe4acc34042fc21ecde8eceb807f695a3d16f15738d8dc7317e26ef840200914a52701717238bfc5f94dc23e1ab8e4c19868df69bd1142d0
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cloudsmith-api (2.0.
|
4
|
+
cloudsmith-api (2.0.1)
|
5
5
|
addressable (~> 2.3, >= 2.3.0)
|
6
6
|
json (~> 2.1, >= 2.1.0)
|
7
7
|
typhoeus (~> 1.0, >= 1.0.1)
|
@@ -35,7 +35,7 @@ GEM
|
|
35
35
|
rspec-mocks (~> 3.12.0)
|
36
36
|
rspec-core (3.12.0)
|
37
37
|
rspec-support (~> 3.12.0)
|
38
|
-
rspec-expectations (3.12.
|
38
|
+
rspec-expectations (3.12.1)
|
39
39
|
diff-lcs (>= 1.2.0, < 2.0)
|
40
40
|
rspec-support (~> 3.12.0)
|
41
41
|
rspec-mocks (3.12.1)
|
@@ -67,4 +67,4 @@ DEPENDENCIES
|
|
67
67
|
webmock (~> 1.24, >= 1.24.3)
|
68
68
|
|
69
69
|
BUNDLED WITH
|
70
|
-
2.
|
70
|
+
2.4.2
|
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.1
|
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.1.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.1.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.1'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -209,6 +209,9 @@ Class | Method | HTTP request | Description
|
|
209
209
|
*CloudsmithApi::RatesApi* | [**rates_limits_list**](docs/RatesApi.md#rates_limits_list) | **GET** /rates/limits/ | Endpoint to check rate limits for current user.
|
210
210
|
*CloudsmithApi::ReposApi* | [**repos_create**](docs/ReposApi.md#repos_create) | **POST** /repos/{owner}/ | Create a new repository in a given namespace.
|
211
211
|
*CloudsmithApi::ReposApi* | [**repos_delete**](docs/ReposApi.md#repos_delete) | **DELETE** /repos/{owner}/{identifier}/ | Delete a repository in a given namespace.
|
212
|
+
*CloudsmithApi::ReposApi* | [**repos_geoip_disable**](docs/ReposApi.md#repos_geoip_disable) | **POST** /repos/{owner}/{identifier}/geoip/disable/ | Disable GeoIP for this repository.
|
213
|
+
*CloudsmithApi::ReposApi* | [**repos_geoip_enable**](docs/ReposApi.md#repos_geoip_enable) | **POST** /repos/{owner}/{identifier}/geoip/enable/ | Enable GeoIP for this repository.
|
214
|
+
*CloudsmithApi::ReposApi* | [**repos_geoip_read**](docs/ReposApi.md#repos_geoip_read) | **GET** /repos/{owner}/{identifier}/geoip | List all created GeoIP rules for the repository.
|
212
215
|
*CloudsmithApi::ReposApi* | [**repos_gpg_create**](docs/ReposApi.md#repos_gpg_create) | **POST** /repos/{owner}/{identifier}/gpg/ | Set the active GPG key for the Repository.
|
213
216
|
*CloudsmithApi::ReposApi* | [**repos_gpg_list**](docs/ReposApi.md#repos_gpg_list) | **GET** /repos/{owner}/{identifier}/gpg/ | Retrieve the active GPG key for the Repository.
|
214
217
|
*CloudsmithApi::ReposApi* | [**repos_gpg_regenerate**](docs/ReposApi.md#repos_gpg_regenerate) | **POST** /repos/{owner}/{identifier}/gpg/regenerate/ | Regenerate GPG Key for the Repository.
|
@@ -283,6 +286,8 @@ Class | Method | HTTP request | Description
|
|
283
286
|
- [CloudsmithApi::HelmPackageUploadRequest](docs/HelmPackageUploadRequest.md)
|
284
287
|
- [CloudsmithApi::History](docs/History.md)
|
285
288
|
- [CloudsmithApi::HistoryFieldset](docs/HistoryFieldset.md)
|
289
|
+
- [CloudsmithApi::InlineResponse200](docs/InlineResponse200.md)
|
290
|
+
- [CloudsmithApi::InlineResponse200CountryCode](docs/InlineResponse200CountryCode.md)
|
286
291
|
- [CloudsmithApi::LuarocksPackageUpload](docs/LuarocksPackageUpload.md)
|
287
292
|
- [CloudsmithApi::LuarocksPackageUploadRequest](docs/LuarocksPackageUploadRequest.md)
|
288
293
|
- [CloudsmithApi::MavenPackageUpload](docs/MavenPackageUpload.md)
|
@@ -340,6 +345,7 @@ Class | Method | HTTP request | Description
|
|
340
345
|
- [CloudsmithApi::RepositoryAuditLog](docs/RepositoryAuditLog.md)
|
341
346
|
- [CloudsmithApi::RepositoryCreate](docs/RepositoryCreate.md)
|
342
347
|
- [CloudsmithApi::RepositoryCreateRequest](docs/RepositoryCreateRequest.md)
|
348
|
+
- [CloudsmithApi::RepositoryGeoIPList](docs/RepositoryGeoIPList.md)
|
343
349
|
- [CloudsmithApi::RepositoryGpgKey](docs/RepositoryGpgKey.md)
|
344
350
|
- [CloudsmithApi::RepositoryGpgKeyCreate](docs/RepositoryGpgKeyCreate.md)
|
345
351
|
- [CloudsmithApi::RepositoryPrivilegeDict](docs/RepositoryPrivilegeDict.md)
|
@@ -361,6 +367,8 @@ Class | Method | HTTP request | Description
|
|
361
367
|
- [CloudsmithApi::RepositoryWebhookRequest](docs/RepositoryWebhookRequest.md)
|
362
368
|
- [CloudsmithApi::RepositoryWebhookRequestPatch](docs/RepositoryWebhookRequestPatch.md)
|
363
369
|
- [CloudsmithApi::ResourcesRateCheck](docs/ResourcesRateCheck.md)
|
370
|
+
- [CloudsmithApi::RespositoryGeoIPEnableDisable](docs/RespositoryGeoIPEnableDisable.md)
|
371
|
+
- [CloudsmithApi::RespositoryGeoIPEnableDisableRequest](docs/RespositoryGeoIPEnableDisableRequest.md)
|
364
372
|
- [CloudsmithApi::RpmPackageUpload](docs/RpmPackageUpload.md)
|
365
373
|
- [CloudsmithApi::RpmPackageUploadRequest](docs/RpmPackageUploadRequest.md)
|
366
374
|
- [CloudsmithApi::RubyPackageUpload](docs/RubyPackageUpload.md)
|
data/build.json
CHANGED
@@ -0,0 +1,9 @@
|
|
1
|
+
# CloudsmithApi::InlineResponse200
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**country_code** | [**InlineResponse200CountryCode**](InlineResponse200CountryCode.md) | | [optional]
|
7
|
+
**cidr** | [**InlineResponse200CountryCode**](InlineResponse200CountryCode.md) | | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# CloudsmithApi::InlineResponse200CountryCode
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**allow** | **Array<String>** | | [optional]
|
7
|
+
**deny** | **Array<String>** | | [optional]
|
8
|
+
|
9
|
+
|
data/docs/ReposApi.md
CHANGED
@@ -6,6 +6,9 @@ Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**repos_create**](ReposApi.md#repos_create) | **POST** /repos/{owner}/ | Create a new repository in a given namespace.
|
8
8
|
[**repos_delete**](ReposApi.md#repos_delete) | **DELETE** /repos/{owner}/{identifier}/ | Delete a repository in a given namespace.
|
9
|
+
[**repos_geoip_disable**](ReposApi.md#repos_geoip_disable) | **POST** /repos/{owner}/{identifier}/geoip/disable/ | Disable GeoIP for this repository.
|
10
|
+
[**repos_geoip_enable**](ReposApi.md#repos_geoip_enable) | **POST** /repos/{owner}/{identifier}/geoip/enable/ | Enable GeoIP for this repository.
|
11
|
+
[**repos_geoip_read**](ReposApi.md#repos_geoip_read) | **GET** /repos/{owner}/{identifier}/geoip | List all created GeoIP rules for the repository.
|
9
12
|
[**repos_gpg_create**](ReposApi.md#repos_gpg_create) | **POST** /repos/{owner}/{identifier}/gpg/ | Set the active GPG key for the Repository.
|
10
13
|
[**repos_gpg_list**](ReposApi.md#repos_gpg_list) | **GET** /repos/{owner}/{identifier}/gpg/ | Retrieve the active GPG key for the Repository.
|
11
14
|
[**repos_gpg_regenerate**](ReposApi.md#repos_gpg_regenerate) | **POST** /repos/{owner}/{identifier}/gpg/regenerate/ | Regenerate GPG Key for the Repository.
|
@@ -135,6 +138,183 @@ nil (empty response body)
|
|
135
138
|
|
136
139
|
|
137
140
|
|
141
|
+
# **repos_geoip_disable**
|
142
|
+
> repos_geoip_disable(owner, identifier, opts)
|
143
|
+
|
144
|
+
Disable GeoIP for this repository.
|
145
|
+
|
146
|
+
Disable GeoIP for this repository.
|
147
|
+
|
148
|
+
### Example
|
149
|
+
```ruby
|
150
|
+
# load the gem
|
151
|
+
require 'cloudsmith-api'
|
152
|
+
# setup authorization
|
153
|
+
CloudsmithApi.configure do |config|
|
154
|
+
# Configure API key authorization: apikey
|
155
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
156
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
157
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
158
|
+
end
|
159
|
+
|
160
|
+
api_instance = CloudsmithApi::ReposApi.new
|
161
|
+
|
162
|
+
owner = 'owner_example' # String |
|
163
|
+
|
164
|
+
identifier = 'identifier_example' # String |
|
165
|
+
|
166
|
+
opts = {
|
167
|
+
data: CloudsmithApi::RespositoryGeoIPEnableDisableRequest.new # RespositoryGeoIPEnableDisableRequest |
|
168
|
+
}
|
169
|
+
|
170
|
+
begin
|
171
|
+
#Disable GeoIP for this repository.
|
172
|
+
api_instance.repos_geoip_disable(owner, identifier, opts)
|
173
|
+
rescue CloudsmithApi::ApiError => e
|
174
|
+
puts "Exception when calling ReposApi->repos_geoip_disable: #{e}"
|
175
|
+
end
|
176
|
+
```
|
177
|
+
|
178
|
+
### Parameters
|
179
|
+
|
180
|
+
Name | Type | Description | Notes
|
181
|
+
------------- | ------------- | ------------- | -------------
|
182
|
+
**owner** | **String**| |
|
183
|
+
**identifier** | **String**| |
|
184
|
+
**data** | [**RespositoryGeoIPEnableDisableRequest**](RespositoryGeoIPEnableDisableRequest.md)| | [optional]
|
185
|
+
|
186
|
+
### Return type
|
187
|
+
|
188
|
+
nil (empty response body)
|
189
|
+
|
190
|
+
### Authorization
|
191
|
+
|
192
|
+
[apikey](../README.md#apikey)
|
193
|
+
|
194
|
+
### HTTP request headers
|
195
|
+
|
196
|
+
- **Content-Type**: application/json
|
197
|
+
- **Accept**: application/json
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
# **repos_geoip_enable**
|
202
|
+
> repos_geoip_enable(owner, identifier, opts)
|
203
|
+
|
204
|
+
Enable GeoIP for this repository.
|
205
|
+
|
206
|
+
Enable GeoIP for this repository.
|
207
|
+
|
208
|
+
### Example
|
209
|
+
```ruby
|
210
|
+
# load the gem
|
211
|
+
require 'cloudsmith-api'
|
212
|
+
# setup authorization
|
213
|
+
CloudsmithApi.configure do |config|
|
214
|
+
# Configure API key authorization: apikey
|
215
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
216
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
217
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
218
|
+
end
|
219
|
+
|
220
|
+
api_instance = CloudsmithApi::ReposApi.new
|
221
|
+
|
222
|
+
owner = 'owner_example' # String |
|
223
|
+
|
224
|
+
identifier = 'identifier_example' # String |
|
225
|
+
|
226
|
+
opts = {
|
227
|
+
data: CloudsmithApi::RespositoryGeoIPEnableDisableRequest.new # RespositoryGeoIPEnableDisableRequest |
|
228
|
+
}
|
229
|
+
|
230
|
+
begin
|
231
|
+
#Enable GeoIP for this repository.
|
232
|
+
api_instance.repos_geoip_enable(owner, identifier, opts)
|
233
|
+
rescue CloudsmithApi::ApiError => e
|
234
|
+
puts "Exception when calling ReposApi->repos_geoip_enable: #{e}"
|
235
|
+
end
|
236
|
+
```
|
237
|
+
|
238
|
+
### Parameters
|
239
|
+
|
240
|
+
Name | Type | Description | Notes
|
241
|
+
------------- | ------------- | ------------- | -------------
|
242
|
+
**owner** | **String**| |
|
243
|
+
**identifier** | **String**| |
|
244
|
+
**data** | [**RespositoryGeoIPEnableDisableRequest**](RespositoryGeoIPEnableDisableRequest.md)| | [optional]
|
245
|
+
|
246
|
+
### Return type
|
247
|
+
|
248
|
+
nil (empty response body)
|
249
|
+
|
250
|
+
### Authorization
|
251
|
+
|
252
|
+
[apikey](../README.md#apikey)
|
253
|
+
|
254
|
+
### HTTP request headers
|
255
|
+
|
256
|
+
- **Content-Type**: application/json
|
257
|
+
- **Accept**: application/json
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
# **repos_geoip_read**
|
262
|
+
> InlineResponse200 repos_geoip_read(owner, identifier)
|
263
|
+
|
264
|
+
List all created GeoIP rules for the repository.
|
265
|
+
|
266
|
+
List all created GeoIP rules for the repository.
|
267
|
+
|
268
|
+
### Example
|
269
|
+
```ruby
|
270
|
+
# load the gem
|
271
|
+
require 'cloudsmith-api'
|
272
|
+
# setup authorization
|
273
|
+
CloudsmithApi.configure do |config|
|
274
|
+
# Configure API key authorization: apikey
|
275
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
276
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
277
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
278
|
+
end
|
279
|
+
|
280
|
+
api_instance = CloudsmithApi::ReposApi.new
|
281
|
+
|
282
|
+
owner = 'owner_example' # String |
|
283
|
+
|
284
|
+
identifier = 'identifier_example' # String |
|
285
|
+
|
286
|
+
|
287
|
+
begin
|
288
|
+
#List all created GeoIP rules for the repository.
|
289
|
+
result = api_instance.repos_geoip_read(owner, identifier)
|
290
|
+
p result
|
291
|
+
rescue CloudsmithApi::ApiError => e
|
292
|
+
puts "Exception when calling ReposApi->repos_geoip_read: #{e}"
|
293
|
+
end
|
294
|
+
```
|
295
|
+
|
296
|
+
### Parameters
|
297
|
+
|
298
|
+
Name | Type | Description | Notes
|
299
|
+
------------- | ------------- | ------------- | -------------
|
300
|
+
**owner** | **String**| |
|
301
|
+
**identifier** | **String**| |
|
302
|
+
|
303
|
+
### Return type
|
304
|
+
|
305
|
+
[**InlineResponse200**](InlineResponse200.md)
|
306
|
+
|
307
|
+
### Authorization
|
308
|
+
|
309
|
+
[apikey](../README.md#apikey)
|
310
|
+
|
311
|
+
### HTTP request headers
|
312
|
+
|
313
|
+
- **Content-Type**: application/json
|
314
|
+
- **Accept**: application/json
|
315
|
+
|
316
|
+
|
317
|
+
|
138
318
|
# **repos_gpg_create**
|
139
319
|
> RepositoryGpgKey repos_gpg_create(owner, identifier, opts)
|
140
320
|
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# CloudsmithApi::RepositoryGeoIPList
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**cidr** | **String** | List all CIDR geographic rules within the repository | [optional]
|
7
|
+
**country_code** | **String** | List all GeoIP geographic rules within the repository | [optional]
|
8
|
+
|
9
|
+
|
data/docs/StatusBasic.md
CHANGED
@@ -4,6 +4,6 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**detail** | **String** | The message describing the state of the API. | [optional] [default to 'Cloudsmith API is operational.']
|
7
|
-
**version** | **String** | The current version for the Cloudsmith service. | [optional] [default to '1.
|
7
|
+
**version** | **String** | The current version for the Cloudsmith service. | [optional] [default to '1.190.1']
|
8
8
|
|
9
9
|
|
@@ -134,6 +134,188 @@ module CloudsmithApi
|
|
134
134
|
end
|
135
135
|
return data, status_code, headers
|
136
136
|
end
|
137
|
+
# Disable GeoIP for this repository.
|
138
|
+
# Disable GeoIP for this repository.
|
139
|
+
# @param owner
|
140
|
+
# @param identifier
|
141
|
+
# @param [Hash] opts the optional parameters
|
142
|
+
# @option opts [RespositoryGeoIPEnableDisableRequest] :data
|
143
|
+
# @return [nil]
|
144
|
+
def repos_geoip_disable(owner, identifier, opts = {})
|
145
|
+
repos_geoip_disable_with_http_info(owner, identifier, opts)
|
146
|
+
nil
|
147
|
+
end
|
148
|
+
|
149
|
+
# Disable GeoIP for this repository.
|
150
|
+
# Disable GeoIP for this repository.
|
151
|
+
# @param owner
|
152
|
+
# @param identifier
|
153
|
+
# @param [Hash] opts the optional parameters
|
154
|
+
# @option opts [RespositoryGeoIPEnableDisableRequest] :data
|
155
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
156
|
+
def repos_geoip_disable_with_http_info(owner, identifier, opts = {})
|
157
|
+
if @api_client.config.debugging
|
158
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_geoip_disable ...'
|
159
|
+
end
|
160
|
+
# verify the required parameter 'owner' is set
|
161
|
+
if @api_client.config.client_side_validation && owner.nil?
|
162
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_geoip_disable"
|
163
|
+
end
|
164
|
+
# verify the required parameter 'identifier' is set
|
165
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
166
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_geoip_disable"
|
167
|
+
end
|
168
|
+
# resource path
|
169
|
+
local_var_path = '/repos/{owner}/{identifier}/geoip/disable/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
|
170
|
+
|
171
|
+
# query parameters
|
172
|
+
query_params = {}
|
173
|
+
|
174
|
+
# header parameters
|
175
|
+
header_params = {}
|
176
|
+
# HTTP header 'Accept' (if needed)
|
177
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
178
|
+
# HTTP header 'Content-Type'
|
179
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
180
|
+
|
181
|
+
# form parameters
|
182
|
+
form_params = {}
|
183
|
+
|
184
|
+
# http body (model)
|
185
|
+
post_body = @api_client.object_to_http_body(opts[:'data'])
|
186
|
+
auth_names = ['apikey']
|
187
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
188
|
+
:header_params => header_params,
|
189
|
+
:query_params => query_params,
|
190
|
+
:form_params => form_params,
|
191
|
+
:body => post_body,
|
192
|
+
:auth_names => auth_names)
|
193
|
+
if @api_client.config.debugging
|
194
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_geoip_disable\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
195
|
+
end
|
196
|
+
return data, status_code, headers
|
197
|
+
end
|
198
|
+
# Enable GeoIP for this repository.
|
199
|
+
# Enable GeoIP for this repository.
|
200
|
+
# @param owner
|
201
|
+
# @param identifier
|
202
|
+
# @param [Hash] opts the optional parameters
|
203
|
+
# @option opts [RespositoryGeoIPEnableDisableRequest] :data
|
204
|
+
# @return [nil]
|
205
|
+
def repos_geoip_enable(owner, identifier, opts = {})
|
206
|
+
repos_geoip_enable_with_http_info(owner, identifier, opts)
|
207
|
+
nil
|
208
|
+
end
|
209
|
+
|
210
|
+
# Enable GeoIP for this repository.
|
211
|
+
# Enable GeoIP for this repository.
|
212
|
+
# @param owner
|
213
|
+
# @param identifier
|
214
|
+
# @param [Hash] opts the optional parameters
|
215
|
+
# @option opts [RespositoryGeoIPEnableDisableRequest] :data
|
216
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
217
|
+
def repos_geoip_enable_with_http_info(owner, identifier, opts = {})
|
218
|
+
if @api_client.config.debugging
|
219
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_geoip_enable ...'
|
220
|
+
end
|
221
|
+
# verify the required parameter 'owner' is set
|
222
|
+
if @api_client.config.client_side_validation && owner.nil?
|
223
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_geoip_enable"
|
224
|
+
end
|
225
|
+
# verify the required parameter 'identifier' is set
|
226
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
227
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_geoip_enable"
|
228
|
+
end
|
229
|
+
# resource path
|
230
|
+
local_var_path = '/repos/{owner}/{identifier}/geoip/enable/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
|
231
|
+
|
232
|
+
# query parameters
|
233
|
+
query_params = {}
|
234
|
+
|
235
|
+
# header parameters
|
236
|
+
header_params = {}
|
237
|
+
# HTTP header 'Accept' (if needed)
|
238
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
239
|
+
# HTTP header 'Content-Type'
|
240
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
241
|
+
|
242
|
+
# form parameters
|
243
|
+
form_params = {}
|
244
|
+
|
245
|
+
# http body (model)
|
246
|
+
post_body = @api_client.object_to_http_body(opts[:'data'])
|
247
|
+
auth_names = ['apikey']
|
248
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
249
|
+
:header_params => header_params,
|
250
|
+
:query_params => query_params,
|
251
|
+
:form_params => form_params,
|
252
|
+
:body => post_body,
|
253
|
+
:auth_names => auth_names)
|
254
|
+
if @api_client.config.debugging
|
255
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_geoip_enable\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
256
|
+
end
|
257
|
+
return data, status_code, headers
|
258
|
+
end
|
259
|
+
# List all created GeoIP rules for the repository.
|
260
|
+
# List all created GeoIP rules for the repository.
|
261
|
+
# @param owner
|
262
|
+
# @param identifier
|
263
|
+
# @param [Hash] opts the optional parameters
|
264
|
+
# @return [InlineResponse200]
|
265
|
+
def repos_geoip_read(owner, identifier, opts = {})
|
266
|
+
data, _status_code, _headers = repos_geoip_read_with_http_info(owner, identifier, opts)
|
267
|
+
data
|
268
|
+
end
|
269
|
+
|
270
|
+
# List all created GeoIP rules for the repository.
|
271
|
+
# List all created GeoIP rules for the repository.
|
272
|
+
# @param owner
|
273
|
+
# @param identifier
|
274
|
+
# @param [Hash] opts the optional parameters
|
275
|
+
# @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
|
276
|
+
def repos_geoip_read_with_http_info(owner, identifier, opts = {})
|
277
|
+
if @api_client.config.debugging
|
278
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_geoip_read ...'
|
279
|
+
end
|
280
|
+
# verify the required parameter 'owner' is set
|
281
|
+
if @api_client.config.client_side_validation && owner.nil?
|
282
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_geoip_read"
|
283
|
+
end
|
284
|
+
# verify the required parameter 'identifier' is set
|
285
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
286
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_geoip_read"
|
287
|
+
end
|
288
|
+
# resource path
|
289
|
+
local_var_path = '/repos/{owner}/{identifier}/geoip'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
|
290
|
+
|
291
|
+
# query parameters
|
292
|
+
query_params = {}
|
293
|
+
|
294
|
+
# header parameters
|
295
|
+
header_params = {}
|
296
|
+
# HTTP header 'Accept' (if needed)
|
297
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
298
|
+
# HTTP header 'Content-Type'
|
299
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
300
|
+
|
301
|
+
# form parameters
|
302
|
+
form_params = {}
|
303
|
+
|
304
|
+
# http body (model)
|
305
|
+
post_body = nil
|
306
|
+
auth_names = ['apikey']
|
307
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
308
|
+
:header_params => header_params,
|
309
|
+
:query_params => query_params,
|
310
|
+
:form_params => form_params,
|
311
|
+
:body => post_body,
|
312
|
+
:auth_names => auth_names,
|
313
|
+
:return_type => 'InlineResponse200')
|
314
|
+
if @api_client.config.debugging
|
315
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_geoip_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
316
|
+
end
|
317
|
+
return data, status_code, headers
|
318
|
+
end
|
137
319
|
# Set the active GPG key for the Repository.
|
138
320
|
# Set the active GPG key for the Repository.
|
139
321
|
# @param owner
|