fastly 4.2.0 → 4.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d249f1c7560f35585549de862d293c437671c06d8f4d8a16135ee55991befa3
4
- data.tar.gz: e5b44d00bc3949a6cfde7e59fef056a96090bfed2ddb1592846575dc5e168df9
3
+ metadata.gz: 15702750023a0844d0914f6b9b03352ba12503eb819c9610ed8ace415a87bb19
4
+ data.tar.gz: f825c020e8cc38320526921be31bc9139a668798347affd0884eb998f60f876f
5
5
  SHA512:
6
- metadata.gz: 23d0daf589c1e835be63725b99a390e4ab615a46524fb28c5bc24453bf59ed5bdcfcfd975f3683a5799c90c1942f47fe7e7ccfd28efb735867e565ce4439806f
7
- data.tar.gz: d1cab60a1f6573e1876c51830762cb2222c6d514fdb6de189489eba86ff41a0d57a29313b3e09f84a1f04874bf0803531b453addc65ab6fdcc69a3cc8c9a518e
6
+ metadata.gz: fd54b69450047e5a967806f0176af2089513f50f28c8dcc9cd28bb418b4d2448c1af059cb0a043dd0cff83843c752c4f5fb039ee041e058a374a84b17d9b7b24
7
+ data.tar.gz: 0b9f6541587b47c11e134d9e1ac65af49c542c96c184da363a448b3d1fbf953db3d7e9618322bc5f0ab6e0740615df6eb1c28eaea85f95e1cc8ec14fafda6c64
data/CHANGELOG.md CHANGED
@@ -1,8 +1,20 @@
1
1
  # Changelog
2
2
 
3
- ## [v4.1.0](https://github.com/fastly/fastly-ruby/releases/tag/v4.1.0) (2023-03-21)
3
+ ## [v4.3.0](https://github.com/fastly/fastly-ruby/releases/tag/v4.3.0) (2023-04-03)
4
4
 
5
- [Full Changelog](https://github.com/fastly/fastly-ruby/compare/v4.0.0...v4.1.0)
5
+ **Bug fixes:**
6
+
7
+ - fix(purge): avoid CGI escape URL parameter
8
+
9
+ **Enhancements:**
10
+
11
+ - feat(domain-ownership): list API endpoint
12
+ - feat(object-store): items API endpoints
13
+ - feat(realtime): additional DDoS properties
14
+
15
+ ## [v4.2.0](https://github.com/fastly/fastly-ruby/releases/tag/v4.2.0) (2023-03-21)
16
+
17
+ [Full Changelog](https://github.com/fastly/fastly-ruby/compare/v4.1.0...v4.2.0)
6
18
 
7
19
  ## Bug fixes
8
20
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fastly (4.2.0)
4
+ fastly (4.3.0)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -6,7 +6,7 @@ A Ruby client library for interacting with most facets of the [Fastly API](https
6
6
  > The previous 3.x version is no longer supported, but can be found at https://github.com/fastly/fastly-ruby/tree/v3.x.
7
7
 
8
8
 
9
- > ⚠️ This client library (`4.2.0`) is an early-access release. Features may change without notice. Use at your own risk.
9
+ > ⚠️ This client library (`4.3.0`) is an early-access release. Features may change without notice. Use at your own risk.
10
10
 
11
11
  **We strongly recommend that you do not install alpha and beta releases on live production services.** No official support is provided for such releases. Please try out the library in a test environment, see what breaks without worrying about consequences, and give us [feedback](#issues).
12
12
 
@@ -18,7 +18,7 @@ Read about the [Fastly Product Lifecycle](https://docs.fastly.com/products/fastl
18
18
  To install via RubyGems, add the following to your project's `Gemfile`:
19
19
 
20
20
  ```ruby
21
- gem 'fastly', '~> 4.2.0'
21
+ gem 'fastly', '~> 4.3.0'
22
22
  ```
23
23
 
24
24
  Then run `bundle install`.
@@ -143,6 +143,7 @@ Class | Method | Description
143
143
  [*Fastly::DomainApi*](docs/DomainApi.md) | [**get_domain**](docs/DomainApi.md#get_domain) | Describe a domain
144
144
  [*Fastly::DomainApi*](docs/DomainApi.md) | [**list_domains**](docs/DomainApi.md#list_domains) | List domains
145
145
  [*Fastly::DomainApi*](docs/DomainApi.md) | [**update_domain**](docs/DomainApi.md#update_domain) | Update a domain
146
+ [*Fastly::DomainOwnershipsApi*](docs/DomainOwnershipsApi.md) | [**list_domain_ownerships**](docs/DomainOwnershipsApi.md#list_domain_ownerships) | List domain-ownerships
146
147
  [*Fastly::EnabledProductsApi*](docs/EnabledProductsApi.md) | [**disable_product**](docs/EnabledProductsApi.md#disable_product) | Disable a product
147
148
  [*Fastly::EnabledProductsApi*](docs/EnabledProductsApi.md) | [**enable_product**](docs/EnabledProductsApi.md#enable_product) | Enable a product
148
149
  [*Fastly::EnabledProductsApi*](docs/EnabledProductsApi.md) | [**get_enabled_product**](docs/EnabledProductsApi.md#get_enabled_product) | Get enabled product
@@ -330,6 +331,10 @@ Class | Method | Description
330
331
  [*Fastly::ObjectStoreApi*](docs/ObjectStoreApi.md) | [**delete_store**](docs/ObjectStoreApi.md#delete_store) | Delete an object store.
331
332
  [*Fastly::ObjectStoreApi*](docs/ObjectStoreApi.md) | [**get_store**](docs/ObjectStoreApi.md#get_store) | Describe an object store.
332
333
  [*Fastly::ObjectStoreApi*](docs/ObjectStoreApi.md) | [**get_stores**](docs/ObjectStoreApi.md#get_stores) | List object stores.
334
+ [*Fastly::ObjectStoreItemApi*](docs/ObjectStoreItemApi.md) | [**delete_key_from_store**](docs/ObjectStoreItemApi.md#delete_key_from_store) | Delete object store item.
335
+ [*Fastly::ObjectStoreItemApi*](docs/ObjectStoreItemApi.md) | [**get_keys**](docs/ObjectStoreItemApi.md#get_keys) | List object store keys.
336
+ [*Fastly::ObjectStoreItemApi*](docs/ObjectStoreItemApi.md) | [**get_value_for_key**](docs/ObjectStoreItemApi.md#get_value_for_key) | Get the value of an object store item
337
+ [*Fastly::ObjectStoreItemApi*](docs/ObjectStoreItemApi.md) | [**set_value_for_key**](docs/ObjectStoreItemApi.md#set_value_for_key) | Insert an item into an object store
333
338
  [*Fastly::PackageApi*](docs/PackageApi.md) | [**get_package**](docs/PackageApi.md#get_package) | Get details of the service's Compute@Edge package.
334
339
  [*Fastly::PackageApi*](docs/PackageApi.md) | [**put_package**](docs/PackageApi.md#put_package) | Upload a Compute@Edge package.
335
340
  [*Fastly::PoolApi*](docs/PoolApi.md) | [**create_server_pool**](docs/PoolApi.md#create_server_pool) | Create a server pool
@@ -491,6 +496,87 @@ Class | Method | Description
491
496
 
492
497
  ## Issues
493
498
 
499
+ The fastly-ruby API client currently does not support the following endpoints:
500
+
501
+ - [`/content/edge_check`](https://developer.fastly.com/reference/api/utils/content) (GET)
502
+ - [`/customer/{customer_id}/contacts`](https://developer.fastly.com/reference/api/account/contact) (POST)
503
+ - [`/metrics/domains/services/{service_id}`](https://developer.fastly.com/reference/api/metrics-stats/domain-inspector/historical) (GET)
504
+ - [`/metrics/origins/services/{service_id}`](https://developer.fastly.com/reference/api/metrics-stats/origin-inspector/historical) (GET)
505
+ - [`/rate-limiters/{rate_limiter_id}`](https://developer.fastly.com/reference/api/vcl-services/rate-limiter) (PUT)
506
+ - [`/resources/stores/config/{config_store_id}/info`](https://developer.fastly.com/reference/api/services/resources/config-store) (GET)
507
+ - [`/resources/stores/config/{config_store_id}/item/{config_store_item_key}`](https://developer.fastly.com/reference/api/services/resources/config-store-item) (DELETE, GET, PATCH, PUT)
508
+ - [`/resources/stores/config/{config_store_id}/item`](https://developer.fastly.com/reference/api/services/resources/config-store-item) (POST)
509
+ - [`/resources/stores/config/{config_store_id}/items`](https://developer.fastly.com/reference/api/services/resources/config-store-item) (GET, PATCH)
510
+ - [`/resources/stores/config/{config_store_id}/services`](https://developer.fastly.com/reference/api/services/resources/config-store) (GET)
511
+ - [`/resources/stores/config/{config_store_id}`](https://developer.fastly.com/reference/api/services/resources/config-store) (DELETE, GET, PUT)
512
+ - [`/resources/stores/config`](https://developer.fastly.com/reference/api/services/resources/config-store) (GET, POST)
513
+ - [`/resources/stores/secret/client-key`](https://developer.fastly.com/reference/api/services/resources/secret-store) (POST)
514
+ - [`/resources/stores/secret/signing-key`](https://developer.fastly.com/reference/api/services/resources/secret-store) (GET)
515
+ - [`/resources/stores/secret/{store_id}/secrets/{secret_name}`](https://developer.fastly.com/reference/api/services/resources/secret) (DELETE, GET)
516
+ - [`/resources/stores/secret/{store_id}/secrets`](https://developer.fastly.com/reference/api/services/resources/secret) (GET, POST)
517
+ - [`/resources/stores/secret/{store_id}`](https://developer.fastly.com/reference/api/services/resources/secret-store) (DELETE, GET)
518
+ - [`/resources/stores/secret`](https://developer.fastly.com/reference/api/services/resources/secret-store) (GET, POST)
519
+ - [`/roles/{role_id}/permissions`](https://developer.fastly.com/reference/api/account/roles) (DELETE, POST)
520
+ - [`/roles/{role_id}`](https://developer.fastly.com/reference/api/account/roles) (PATCH)
521
+ - [`/roles`](https://developer.fastly.com/reference/api/account/roles) (POST)
522
+ - [`/service-authorizations`](https://developer.fastly.com/reference/api/account/service-authorization) (DELETE, PATCH)
523
+ - [`/service-groups/{service_group_id}/services`](https://developer.fastly.com/reference/api/account/service-groups) (DELETE, POST)
524
+ - [`/service-groups/{service_group_id}`](https://developer.fastly.com/reference/api/account/service-groups) (PATCH)
525
+ - [`/service-groups`](https://developer.fastly.com/reference/api/account/service-groups) (POST)
526
+ - [`/service/{service_id}/acl/{acl_id}/entries`](https://developer.fastly.com/reference/api/acls/acl-entry) (GET)
527
+ - [`/service/{service_id}/acl/{acl_id}/entry/{acl_entry_id}`](https://developer.fastly.com/reference/api/acls/acl-entry) (GET, PATCH)
528
+ - [`/service/{service_id}/acl/{acl_id}/entry`](https://developer.fastly.com/reference/api/acls/acl-entry) (POST)
529
+ - [`/service/{service_id}/dictionary/{dictionary_id}/items`](https://developer.fastly.com/reference/api/dictionaries/dictionary-item) (PATCH)
530
+ - [`/service/{service_id}/version/{version_id}/apex-redirects`](https://developer.fastly.com/reference/api/vcl-services/apex-redirect) (POST)
531
+ - [`/service/{service_id}/version/{version_id}/director/{director_name}`](https://developer.fastly.com/reference/api/load-balancing/directors/director) (PUT)
532
+ - [`/service/{service_id}/version/{version_id}/logging/kafka/{logging_kafka_name}`](https://developer.fastly.com/reference/api/logging/kafka) (PUT)
533
+ - [`/service/{service_id}/version/{version_id}/logging/kinesis/{logging_kinesis_name}`](https://developer.fastly.com/reference/api/logging/kinesis) (PUT)
534
+ - [`/service/{service_id}/version/{version_id}/rate-limiters`](https://developer.fastly.com/reference/api/vcl-services/rate-limiter) (POST)
535
+ - [`/service/{service_id}/version/{version_id}/request_settings`](https://developer.fastly.com/reference/api/vcl-services/request-settings) (POST)
536
+ - [`/service/{service_id}/version/{version_id}/response_object/{response_object_name}`](https://developer.fastly.com/reference/api/vcl-services/response-object) (PUT)
537
+ - [`/service/{service_id}/version/{version_id}/response_object`](https://developer.fastly.com/reference/api/vcl-services/response-object) (POST)
538
+ - [`/service/{service_id}/version/{version_id}/snippet/{snippet_name}`](https://developer.fastly.com/reference/api/vcl-services/snippet) (PUT)
539
+ - [`/service/{service_id}/version/{version_id}/wafs/{firewall_id}`](https://developer.fastly.com/reference/api/legacy-waf/firewall) (GET, PATCH)
540
+ - [`/service/{service_id}/version/{version_id}/wafs`](https://developer.fastly.com/reference/api/legacy-waf/firewall) (GET, POST)
541
+ - [`/service/{service_id}/wafs/{firewall_id}/owasp`](https://developer.fastly.com/reference/api/legacy-waf/owasp) (GET, PATCH, POST)
542
+ - [`/service/{service_id}/wafs/{firewall_id}/rule_statuses`](https://developer.fastly.com/reference/api/legacy-waf/rule-status) (GET, POST)
543
+ - [`/service/{service_id}/wafs/{firewall_id}/rules/{waf_rule_id}/rule_status`](https://developer.fastly.com/reference/api/legacy-waf/rule-status) (GET, PATCH)
544
+ - [`/service/{service_id}/wafs/{firewall_id}/ruleset/preview`](https://developer.fastly.com/reference/api/legacy-waf/ruleset) (GET)
545
+ - [`/service/{service_id}/wafs/{firewall_id}/ruleset`](https://developer.fastly.com/reference/api/legacy-waf/ruleset) (GET, PATCH)
546
+ - [`/service/{service_id}/wafs/{firewall_id}/update_statuses/{update_status_id}`](https://developer.fastly.com/reference/api/legacy-waf/update-status) (GET)
547
+ - [`/service/{service_id}/wafs/{firewall_id}/update_statuses`](https://developer.fastly.com/reference/api/legacy-waf/update-status) (GET)
548
+ - [`/sudo`](https://developer.fastly.com/reference/api/utils/sudo) (POST)
549
+ - [`/tls/activations/{tls_activation_id}`](https://developer.fastly.com/reference/api/tls/mutual-tls/activations) (GET, PATCH)
550
+ - [`/tls/activations`](https://developer.fastly.com/reference/api/tls/mutual-tls/activations) (GET)
551
+ - [`/tokens`](https://developer.fastly.com/reference/api/auth-tokens/user) (DELETE, POST)
552
+ - [`/user-groups/{user_group_id}/members`](https://developer.fastly.com/reference/api/account/user-groups) (DELETE, POST)
553
+ - [`/user-groups/{user_group_id}/roles`](https://developer.fastly.com/reference/api/account/user-groups) (DELETE, POST)
554
+ - [`/user-groups/{user_group_id}/service-groups`](https://developer.fastly.com/reference/api/account/user-groups) (DELETE, POST)
555
+ - [`/user-groups/{user_group_id}`](https://developer.fastly.com/reference/api/account/user-groups) (PATCH)
556
+ - [`/user-groups`](https://developer.fastly.com/reference/api/account/user-groups) (POST)
557
+ - [`/v1/channel/{service_id}/ts/h/limit/{max_entries}`](https://developer.fastly.com/reference/api/metrics-stats/origin-insights) (GET)
558
+ - [`/v1/channel/{service_id}/ts/h`](https://developer.fastly.com/reference/api/metrics-stats/origin-insights) (GET)
559
+ - [`/v1/channel/{service_id}/ts/{start_timestamp}`](https://developer.fastly.com/reference/api/metrics-stats/origin-insights) (GET)
560
+ - [`/v1/domains/{service_id}/ts/h/limit/{max_entries}`](https://developer.fastly.com/reference/api/metrics-stats/domain-inspector/real-time) (GET)
561
+ - [`/v1/domains/{service_id}/ts/h`](https://developer.fastly.com/reference/api/metrics-stats/domain-inspector/real-time) (GET)
562
+ - [`/v1/domains/{service_id}/ts/{start_timestamp}`](https://developer.fastly.com/reference/api/metrics-stats/domain-inspector/real-time) (GET)
563
+ - [`/v1/origins/{service_id}/ts/h/limit/{max_entries}`](https://developer.fastly.com/reference/api/metrics-stats/origin-inspector/real-time) (GET)
564
+ - [`/v1/origins/{service_id}/ts/h`](https://developer.fastly.com/reference/api/metrics-stats/origin-inspector/real-time) (GET)
565
+ - [`/v1/origins/{service_id}/ts/{start_timestamp}`](https://developer.fastly.com/reference/api/metrics-stats/origin-inspector/real-time) (GET)
566
+ - [`/waf/firewalls/{firewall_id}/versions/{version_id}/active-rules`](https://developer.fastly.com/reference/api/waf/rules/active) (DELETE)
567
+ - [`/wafs/configuration_sets/{configuration_set_id}/relationships/wafs`](https://developer.fastly.com/reference/api/legacy-waf/configuration-set) (GET, PATCH)
568
+ - [`/wafs/configuration_sets`](https://developer.fastly.com/reference/api/legacy-waf/configuration-set) (GET)
569
+ - [`/wafs/rules/{waf_rule_id}/vcl`](https://developer.fastly.com/reference/api/legacy-waf/rule) (GET)
570
+ - [`/wafs/rules/{waf_rule_id}`](https://developer.fastly.com/reference/api/legacy-waf/rule) (GET)
571
+ - [`/wafs/rules`](https://developer.fastly.com/reference/api/legacy-waf/rule) (GET)
572
+ - [`/wafs/tags`](https://developer.fastly.com/reference/api/legacy-waf/tag) (GET)
573
+ - [`/wafs/{firewall_id}/disable`](https://developer.fastly.com/reference/api/legacy-waf/firewall) (PATCH)
574
+ - [`/wafs/{firewall_id}/enable`](https://developer.fastly.com/reference/api/legacy-waf/firewall) (PATCH)
575
+ - [`/wafs/{firewall_id}/rules/{waf_rule_id}/vcl`](https://developer.fastly.com/reference/api/legacy-waf/rule) (GET)
576
+ - [`/wafs/{firewall_id}`](https://developer.fastly.com/reference/api/legacy-waf/firewall) (GET)
577
+ - [`/wafs`](https://developer.fastly.com/reference/api/legacy-waf/firewall) (GET)
578
+
579
+
494
580
  If you encounter any non-security-related bug or unexpected behavior, please [file an issue][bug]
495
581
  using the bug report template.
496
582
 
@@ -0,0 +1,47 @@
1
+ # Fastly::DomainOwnershipsApi
2
+
3
+
4
+ ```ruby
5
+ require 'fastly'
6
+ api_instance = Fastly::DomainOwnershipsApi.new
7
+ ```
8
+
9
+ ## Methods
10
+
11
+ | Method | HTTP request | Description |
12
+ | ------ | ------------ | ----------- |
13
+ | [**list_domain_ownerships**](DomainOwnershipsApi.md#list_domain_ownerships) | **GET** /domain-ownerships | List domain-ownerships |
14
+
15
+
16
+ ## `list_domain_ownerships()`
17
+
18
+ ```ruby
19
+ list_domain_ownerships: <InlineResponse2002> # List domain-ownerships
20
+ ```
21
+
22
+ List all domain-ownerships.
23
+
24
+ ### Examples
25
+
26
+ ```ruby
27
+ api_instance = Fastly::DomainOwnershipsApi.new
28
+
29
+ begin
30
+ # List domain-ownerships
31
+ result = api_instance.list_domain_ownerships
32
+ p result
33
+ rescue Fastly::ApiError => e
34
+ puts "Error when calling DomainOwnershipsApi->list_domain_ownerships: #{e}"
35
+ end
36
+ ```
37
+
38
+ ### Options
39
+
40
+ This endpoint does not need any parameter.
41
+
42
+ ### Return type
43
+
44
+ [**InlineResponse2002**](InlineResponse2002.md)
45
+
46
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
47
+ [[Back to README]](../../README.md)
@@ -4,8 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **data** | [**Array&lt;StoreResponse&gt;**](StoreResponse.md) | | [optional] |
8
- | **meta** | [**InlineResponse2002Meta**](InlineResponse2002Meta.md) | | [optional] |
7
+ | **expires_at** | **String** | Time-stamp (GMT) when the domain_ownership validation will expire. | [optional][readonly] |
9
8
 
10
9
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
11
10
 
@@ -0,0 +1,11 @@
1
+ # Fastly::InlineResponse2003
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array&lt;StoreResponse&gt;**](StoreResponse.md) | | [optional] |
8
+ | **meta** | [**InlineResponse2003Meta**](InlineResponse2003Meta.md) | | [optional] |
9
+
10
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
11
+
@@ -1,4 +1,4 @@
1
- # Fastly::InlineResponse2002Meta
1
+ # Fastly::InlineResponse2003Meta
2
2
 
3
3
  ## Properties
4
4
 
@@ -0,0 +1,11 @@
1
+ # Fastly::InlineResponse2004
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | **Array&lt;String&gt;** | | [optional] |
8
+ | **meta** | [**InlineResponse2004Meta**](InlineResponse2004Meta.md) | | [optional] |
9
+
10
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
11
+
@@ -0,0 +1,11 @@
1
+ # Fastly::InlineResponse2004Meta
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **next_cursor** | **String** | | [optional] |
8
+ | **limit** | **Integer** | | [optional] |
9
+
10
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
11
+
@@ -129,7 +129,7 @@ end
129
129
  ## `get_stores()`
130
130
 
131
131
  ```ruby
132
- get_stores(opts): <InlineResponse2002> # List object stores.
132
+ get_stores(opts): <InlineResponse2003> # List object stores.
133
133
  ```
134
134
 
135
135
  Get all stores for a given customer.
@@ -161,7 +161,7 @@ end
161
161
 
162
162
  ### Return type
163
163
 
164
- [**InlineResponse2002**](InlineResponse2002.md)
164
+ [**InlineResponse2003**](InlineResponse2003.md)
165
165
 
166
166
  [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
167
167
  [[Back to README]](../../README.md)
@@ -0,0 +1,177 @@
1
+ # Fastly::ObjectStoreItemApi
2
+
3
+
4
+ ```ruby
5
+ require 'fastly'
6
+ api_instance = Fastly::ObjectStoreItemApi.new
7
+ ```
8
+
9
+ ## Methods
10
+
11
+ | Method | HTTP request | Description |
12
+ | ------ | ------------ | ----------- |
13
+ | [**delete_key_from_store**](ObjectStoreItemApi.md#delete_key_from_store) | **DELETE** /resources/stores/object/{store_id}/keys/{key_name} | Delete object store item. |
14
+ | [**get_keys**](ObjectStoreItemApi.md#get_keys) | **GET** /resources/stores/object/{store_id}/keys | List object store keys. |
15
+ | [**get_value_for_key**](ObjectStoreItemApi.md#get_value_for_key) | **GET** /resources/stores/object/{store_id}/keys/{key_name} | Get the value of an object store item |
16
+ | [**set_value_for_key**](ObjectStoreItemApi.md#set_value_for_key) | **PUT** /resources/stores/object/{store_id}/keys/{key_name} | Insert an item into an object store |
17
+
18
+
19
+ ## `delete_key_from_store()`
20
+
21
+ ```ruby
22
+ delete_key_from_store(opts) # Delete object store item.
23
+ ```
24
+
25
+ Delete an item from an object store
26
+
27
+ ### Examples
28
+
29
+ ```ruby
30
+ api_instance = Fastly::ObjectStoreItemApi.new
31
+ opts = {
32
+ store_id: 'store_id_example', # String |
33
+ key_name: 'key_name_example', # String |
34
+ }
35
+
36
+ begin
37
+ # Delete object store item.
38
+ api_instance.delete_key_from_store(opts)
39
+ rescue Fastly::ApiError => e
40
+ puts "Error when calling ObjectStoreItemApi->delete_key_from_store: #{e}"
41
+ end
42
+ ```
43
+
44
+ ### Options
45
+
46
+ | Name | Type | Description | Notes |
47
+ | ---- | ---- | ----------- | ----- |
48
+ | **store_id** | **String** | | |
49
+ | **key_name** | **String** | | |
50
+
51
+ ### Return type
52
+
53
+ nil (empty response body)
54
+
55
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
56
+ [[Back to README]](../../README.md)
57
+ ## `get_keys()`
58
+
59
+ ```ruby
60
+ get_keys(opts): <InlineResponse2004> # List object store keys.
61
+ ```
62
+
63
+ List the keys of all items within an object store.
64
+
65
+ ### Examples
66
+
67
+ ```ruby
68
+ api_instance = Fastly::ObjectStoreItemApi.new
69
+ opts = {
70
+ store_id: 'store_id_example', # String |
71
+ cursor: 'cursor_example', # String |
72
+ limit: 56, # Integer |
73
+ }
74
+
75
+ begin
76
+ # List object store keys.
77
+ result = api_instance.get_keys(opts)
78
+ p result
79
+ rescue Fastly::ApiError => e
80
+ puts "Error when calling ObjectStoreItemApi->get_keys: #{e}"
81
+ end
82
+ ```
83
+
84
+ ### Options
85
+
86
+ | Name | Type | Description | Notes |
87
+ | ---- | ---- | ----------- | ----- |
88
+ | **store_id** | **String** | | |
89
+ | **cursor** | **String** | | [optional] |
90
+ | **limit** | **Integer** | | [optional][default to 100] |
91
+
92
+ ### Return type
93
+
94
+ [**InlineResponse2004**](InlineResponse2004.md)
95
+
96
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
97
+ [[Back to README]](../../README.md)
98
+ ## `get_value_for_key()`
99
+
100
+ ```ruby
101
+ get_value_for_key(opts): File # Get the value of an object store item
102
+ ```
103
+
104
+ Get the value associated with a key.
105
+
106
+ ### Examples
107
+
108
+ ```ruby
109
+ api_instance = Fastly::ObjectStoreItemApi.new
110
+ opts = {
111
+ store_id: 'store_id_example', # String |
112
+ key_name: 'key_name_example', # String |
113
+ }
114
+
115
+ begin
116
+ # Get the value of an object store item
117
+ result = api_instance.get_value_for_key(opts)
118
+ p result
119
+ rescue Fastly::ApiError => e
120
+ puts "Error when calling ObjectStoreItemApi->get_value_for_key: #{e}"
121
+ end
122
+ ```
123
+
124
+ ### Options
125
+
126
+ | Name | Type | Description | Notes |
127
+ | ---- | ---- | ----------- | ----- |
128
+ | **store_id** | **String** | | |
129
+ | **key_name** | **String** | | |
130
+
131
+ ### Return type
132
+
133
+ **File**
134
+
135
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
136
+ [[Back to README]](../../README.md)
137
+ ## `set_value_for_key()`
138
+
139
+ ```ruby
140
+ set_value_for_key(opts): File # Insert an item into an object store
141
+ ```
142
+
143
+ Set a new value for a new or existing key in an object store.
144
+
145
+ ### Examples
146
+
147
+ ```ruby
148
+ api_instance = Fastly::ObjectStoreItemApi.new
149
+ opts = {
150
+ store_id: 'store_id_example', # String |
151
+ key_name: 'key_name_example', # String |
152
+ body: File.new('/path/to/some/file'), # File |
153
+ }
154
+
155
+ begin
156
+ # Insert an item into an object store
157
+ result = api_instance.set_value_for_key(opts)
158
+ p result
159
+ rescue Fastly::ApiError => e
160
+ puts "Error when calling ObjectStoreItemApi->set_value_for_key: #{e}"
161
+ end
162
+ ```
163
+
164
+ ### Options
165
+
166
+ | Name | Type | Description | Notes |
167
+ | ---- | ---- | ----------- | ----- |
168
+ | **store_id** | **String** | | |
169
+ | **key_name** | **String** | | |
170
+ | **body** | **File** | | [optional] |
171
+
172
+ ### Return type
173
+
174
+ **File**
175
+
176
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
177
+ [[Back to README]](../../README.md)
@@ -215,6 +215,12 @@
215
215
  | **fanout_beresp_header_bytes** | **Integer** | Total header bytes received from backends over Fanout connections. | [optional] |
216
216
  | **fanout_beresp_body_bytes** | **Integer** | Total body or message content bytes received from backends over Fanout connections. | [optional] |
217
217
  | **fanout_conn_time_ms** | **Integer** | Total duration of Fanout connections with end users. | [optional] |
218
+ | **ddos_action_limit_streams_connections** | **Integer** | For HTTP/2, the number of connections the limit-streams action was applied to. The limit-streams action caps the allowed number of concurrent streams in a connection. | [optional] |
219
+ | **ddos_action_limit_streams_requests** | **Integer** | For HTTP/2, the number of requests made on a connection for which the limit-streams action was taken. The limit-streams action caps the allowed number of concurrent streams in a connection. | [optional] |
220
+ | **ddos_action_tarpit_accept** | **Integer** | The number of times the tarpit-accept action was taken. The tarpit-accept action adds a delay when accepting future connections. | [optional] |
221
+ | **ddos_action_tarpit** | **Integer** | The number of times the tarpit action was taken. The tarpit action delays writing the response to the client. | [optional] |
222
+ | **ddos_action_close** | **Integer** | The number of times the close action was taken. The close action aborts the connection as soon as possible. The close action takes effect either right after accept, right after the client hello, or right after the response was sent. | [optional] |
223
+ | **ddos_action_blackhole** | **Integer** | The number of times the blackhole action was taken. The blackhole action quietly closes a TCP connection without sending a reset. The blackhole action quietly closes a TCP connection without notifying its peer (all TCP state is dropped). | [optional] |
218
224
 
219
225
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
220
226
 
data/docs/Results.md CHANGED
@@ -213,6 +213,12 @@
213
213
  | **fanout_beresp_header_bytes** | **Integer** | Total header bytes received from backends over Fanout connections. | [optional] |
214
214
  | **fanout_beresp_body_bytes** | **Integer** | Total body or message content bytes received from backends over Fanout connections. | [optional] |
215
215
  | **fanout_conn_time_ms** | **Integer** | Total duration of Fanout connections with end users. | [optional] |
216
+ | **ddos_action_limit_streams_connections** | **Integer** | For HTTP/2, the number of connections the limit-streams action was applied to. The limit-streams action caps the allowed number of concurrent streams in a connection. | [optional] |
217
+ | **ddos_action_limit_streams_requests** | **Integer** | For HTTP/2, the number of requests made on a connection for which the limit-streams action was taken. The limit-streams action caps the allowed number of concurrent streams in a connection. | [optional] |
218
+ | **ddos_action_tarpit_accept** | **Integer** | The number of times the tarpit-accept action was taken. The tarpit-accept action adds a delay when accepting future connections. | [optional] |
219
+ | **ddos_action_tarpit** | **Integer** | The number of times the tarpit action was taken. The tarpit action delays writing the response to the client. | [optional] |
220
+ | **ddos_action_close** | **Integer** | The number of times the close action was taken. The close action aborts the connection as soon as possible. The close action takes effect either right after accept, right after the client hello, or right after the response was sent. | [optional] |
221
+ | **ddos_action_blackhole** | **Integer** | The number of times the blackhole action was taken. The blackhole action quietly closes a TCP connection without sending a reset. The blackhole action quietly closes a TCP connection without notifying its peer (all TCP state is dropped). | [optional] |
216
222
 
217
223
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
218
224
 
@@ -0,0 +1,76 @@
1
+ =begin
2
+ #Fastly API
3
+
4
+ #Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: oss@fastly.com
8
+
9
+ =end
10
+
11
+ require 'cgi'
12
+
13
+ module Fastly
14
+ class DomainOwnershipsApi
15
+ attr_accessor :api_client
16
+
17
+ def initialize(api_client = ApiClient.default)
18
+ @api_client = api_client
19
+ end
20
+ # List domain-ownerships
21
+ # List all domain-ownerships.
22
+ # @return [InlineResponse2002]
23
+ def list_domain_ownerships(opts = {})
24
+ data, _status_code, _headers = list_domain_ownerships_with_http_info(opts)
25
+ data
26
+ end
27
+
28
+ # List domain-ownerships
29
+ # List all domain-ownerships.
30
+ # @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
31
+ def list_domain_ownerships_with_http_info(opts = {})
32
+ if @api_client.config.debugging
33
+ @api_client.config.logger.debug 'Calling API: DomainOwnershipsApi.list_domain_ownerships ...'
34
+ end
35
+ # unbox the parameters from the hash
36
+ # resource path
37
+ local_var_path = '/domain-ownerships'
38
+
39
+ # query parameters
40
+ query_params = opts[:query_params] || {}
41
+
42
+ # header parameters
43
+ header_params = opts[:header_params] || {}
44
+ # HTTP header 'Accept' (if needed)
45
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
46
+
47
+ # form parameters
48
+ form_params = opts[:form_params] || {}
49
+
50
+ # http body (model)
51
+ post_body = opts[:debug_body]
52
+
53
+ # return_type
54
+ return_type = opts[:debug_return_type] || 'InlineResponse2002'
55
+
56
+ # auth_names
57
+ auth_names = opts[:debug_auth_names] || ['token']
58
+
59
+ new_options = opts.merge(
60
+ :operation => :"DomainOwnershipsApi.list_domain_ownerships",
61
+ :header_params => header_params,
62
+ :query_params => query_params,
63
+ :form_params => form_params,
64
+ :body => post_body,
65
+ :auth_names => auth_names,
66
+ :return_type => return_type
67
+ )
68
+
69
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
70
+ if @api_client.config.debugging
71
+ @api_client.config.logger.debug "API called: DomainOwnershipsApi#list_domain_ownerships\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
72
+ end
73
+ return data, status_code, headers
74
+ end
75
+ end
76
+ end
@@ -208,7 +208,7 @@ module Fastly
208
208
  # Get all stores for a given customer.
209
209
  # @option opts [String] :cursor
210
210
  # @option opts [Integer] :limit (default to 100)
211
- # @return [InlineResponse2002]
211
+ # @return [InlineResponse2003]
212
212
  def get_stores(opts = {})
213
213
  data, _status_code, _headers = get_stores_with_http_info(opts)
214
214
  data
@@ -218,7 +218,7 @@ module Fastly
218
218
  # Get all stores for a given customer.
219
219
  # @option opts [String] :cursor
220
220
  # @option opts [Integer] :limit (default to 100)
221
- # @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
221
+ # @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
222
222
  def get_stores_with_http_info(opts = {})
223
223
  if @api_client.config.debugging
224
224
  @api_client.config.logger.debug 'Calling API: ObjectStoreApi.get_stores ...'
@@ -244,7 +244,7 @@ module Fastly
244
244
  post_body = opts[:debug_body]
245
245
 
246
246
  # return_type
247
- return_type = opts[:debug_return_type] || 'InlineResponse2002'
247
+ return_type = opts[:debug_return_type] || 'InlineResponse2003'
248
248
 
249
249
  # auth_names
250
250
  auth_names = opts[:debug_auth_names] || ['token']