fastly 4.0.1.pre.alpha.0 → 4.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d18154c172c2a3f85cfd19d89cebbe7184148ffbe892e87fb7de6feb020a3e09
4
- data.tar.gz: 0c37e40af9f70504c8af44778f966251b90bc7752d41b1f3b8c3f957f293600e
3
+ metadata.gz: 5b993587a1bc1831cf06074525d6ebeb5678ca49144349d01e4ea59380628cdf
4
+ data.tar.gz: 16fd9f49b6d5efa5bcb4b377e666a46124d867717809ebd55d7b57fcd1054676
5
5
  SHA512:
6
- metadata.gz: dfd8a7cfbd96c17dfb728010e5f22f5055aed739660867a134dc41be84ed2183e631dc8f2c1273268574b6dbe2c7030e09afe0e39febc6ccc886e0e2db5a5258
7
- data.tar.gz: 9ac4619b5b5a4ca1ade8f32696aa1fdeb24c376616df0d05445bf55294e73b3df48bc69f09e4a98632bc20fa805719b02599141f9fd77086a2e55b0b13e9c4a4
6
+ metadata.gz: fb63451ed405de43a59efd16345d694fce683e5ad28dfc3e16d453c82ebb661e3a6d4fe6bb49b674c353241ea19443e1dc4c9af592671706523bdfc136977e8d
7
+ data.tar.gz: b989a523060f1f4f9c3b4f6574090059b7c61ec02743d69cbac9a1b54ebde5fd3c1642cef15733c85f10f1c44ba2c4afdd0a908348b6ab53efb89fe63529f388
data/CHANGELOG.md CHANGED
@@ -1,4 +1,15 @@
1
- # Change Log
1
+ # Changelog
2
+
3
+ ## [v4.0.0](https://github.com/fastly/fastly-ruby/releases/tag/v4.0.0) (2022-12-15)
4
+
5
+ [Full Changelog](https://github.com/fastly/fastly-ruby/compare/v3.0.2...v4.0.0)
6
+
7
+ **Breaking:**
8
+
9
+ * New interface from code-generated API client [#183](https://github.com/fastly/fastly-ruby/pull/183)
10
+ * [Blog post: Better Fastly API clients with OpenAPI Generator](https://dev.to/fastly/better-fastly-api-clients-with-openapi-generator-3lno)
11
+ * [Documentation](https://github.com/fastly/fastly-ruby#documentation-for-api-endpoints)
12
+ * [Unsupported API endpoints](https://github.com/fastly/fastly-ruby#issues)
2
13
 
3
14
  ## [v3.0.2](https://github.com/fastly/fastly-ruby/tree/v3.0.2) (2021-06-30)
4
15
 
@@ -429,28 +440,28 @@
429
440
  * major refactor and reorganization of code (merged branch https://github.com/fastly/fastly-ruby/pull/31)
430
441
  * bump curb dep to 0.8.6 for ruby 2.1 support (see https://github.com/fastly/fastly-ruby/issues/43)
431
442
 
432
- 2014-09-29 v1.1.4
443
+ ## 2014-09-29 v1.1.4
433
444
  * Require API Key for purge by key requests
434
445
 
435
- 2014-07-25 v1.1.3
446
+ ## 2014-07-25 v1.1.3
436
447
  * Add test:unit rake task
437
448
  * Add Rubocop and some rubocop cleanup
438
449
  * Clarify gem name in documentation
439
450
  * Fix a bug in the `Fastly.get_options` method
440
451
  * Add `bin/fastly_create_domain` script to easily create domain
441
452
 
442
- 2014-06-12 v1.1.2
453
+ ## 2014-06-12 v1.1.2
443
454
  * Replace `String#underscore` with `Fastly::Util.class_to_path` method.
444
455
  * Add first true unit test
445
456
  * Add `test_helper.rb`
446
457
  * Add `pry` as dependency
447
458
  * Add console Rake task
448
459
 
449
- 2013-11-26 v1.02
460
+ ## 2013-11-26 v1.02
450
461
 
451
462
  Fix rdoc dependency and quorum spelling (Kristoffer Renholm)
452
463
 
453
- 2013-10-03 v1.01
464
+ ## 2013-10-03 v1.01
454
465
 
455
466
  Add historical stats functionality
456
467
  Fix settings
@@ -460,47 +471,44 @@ Fix some doc stuff (Sam Sharpe)
460
471
  Reorganize library (Eric Saxby & Paul Henry)
461
472
  Fix purge_all, purge_by_key and details (Kazuki Ohta)
462
473
 
463
- 2013-07-16 v1.00
474
+ ## 2013-07-16 v1.00
464
475
 
465
476
  Fix delete VCL (thanks Andrian Jardan)
466
477
 
467
- 2012-05-01 v0.99
478
+ ## 2012-05-01 v0.99
468
479
 
469
480
  Fix some SSL issues
470
481
  Allow some admin functionality
471
482
 
472
- 2012-02-02 v0.98
483
+ ## 2012-02-02 v0.98
473
484
 
474
485
  Make deactivate! work
475
486
  Add active?
476
487
  Add Service.purge_by_key
477
488
 
478
- 2012-01-27 v0.97
489
+ ## 2012-01-27 v0.97
479
490
 
480
491
  Fix invoice tests with new billing API
481
492
 
482
- 2012-01-16 v0.96
493
+ ## 2012-01-16 v0.96
483
494
 
484
495
  Fix version.locked?
485
496
  Make fastly_upload_vcl work
486
497
 
487
- 2011-12-19 v0.95
498
+ ## 2011-12-19 v0.95
488
499
 
489
500
  Fix the way invoices and stats are fetched
490
501
 
491
- 2011-12-15 v0.9
502
+ ## 2011-12-15 v0.9
492
503
 
493
504
  Add mapping from backends to directors and directors to origins
494
505
 
495
- 2011-11-03 v0.8
506
+ ## 2011-11-03 v0.8
496
507
 
497
508
  Add list_* to all objects
498
509
 
499
510
  Add Healthchecks and Syslog endpoint streaming
500
511
 
501
- 2011-11-02 v0.5
512
+ ## 2011-11-02 v0.5
502
513
 
503
514
  Initial releasee
504
-
505
-
506
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fastly (4.0.1.pre.alpha.0)
4
+ fastly (4.1.0)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -2,13 +2,23 @@
2
2
 
3
3
  A Ruby client library for interacting with most facets of the [Fastly API](https://developer.fastly.com/reference/api).
4
4
 
5
+ > NOTE: This 4.x release is a new [generated API client](https://dev.to/fastly/better-fastly-api-clients-with-openapi-generator-3lno) for the Fastly API.
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
+
8
+
9
+ > ⚠️ This client library (`v4.1.0`) is an early-access release. Features may change without notice. Use at your own risk.
10
+
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
+
13
+ Read about the [Fastly Product Lifecycle](https://docs.fastly.com/products/fastly-product-lifecycle).
14
+
5
15
 
6
16
  ## Installation
7
17
 
8
18
  To install via RubyGems, add the following to your project's `Gemfile`:
9
19
 
10
20
  ```ruby
11
- gem 'fastly', '~> 4.0.0'
21
+ gem 'fastly', '~> v4.1.0'
12
22
  ```
13
23
 
14
24
  Then run `bundle install`.
@@ -55,7 +65,7 @@ end
55
65
 
56
66
  Alternatively, set the `FASTLY_API_TOKEN` environment variable instead of setting `api_token`.
57
67
 
58
- ## Endpoints
68
+ ## Documentation for API Endpoints
59
69
 
60
70
  The main documentation for the Fastly API can be found on our [Developer Hub](https://developer.fastly.com/reference/api).
61
71
 
@@ -316,6 +326,14 @@ Class | Method | Description
316
326
  [*Fastly::MutualAuthenticationApi*](docs/MutualAuthenticationApi.md) | [**get_mutual_authentication**](docs/MutualAuthenticationApi.md#get_mutual_authentication) | Get a Mutual Authentication
317
327
  [*Fastly::MutualAuthenticationApi*](docs/MutualAuthenticationApi.md) | [**list_mutual_authentications**](docs/MutualAuthenticationApi.md#list_mutual_authentications) | List Mutual Authentications
318
328
  [*Fastly::MutualAuthenticationApi*](docs/MutualAuthenticationApi.md) | [**patch_mutual_authentication**](docs/MutualAuthenticationApi.md#patch_mutual_authentication) | Update a Mutual Authentication
329
+ [*Fastly::ObjectStoreApi*](docs/ObjectStoreApi.md) | [**create_store**](docs/ObjectStoreApi.md#create_store) | Create an object store.
330
+ [*Fastly::ObjectStoreApi*](docs/ObjectStoreApi.md) | [**delete_key_from_store**](docs/ObjectStoreApi.md#delete_key_from_store) | Delete object store key.
331
+ [*Fastly::ObjectStoreApi*](docs/ObjectStoreApi.md) | [**delete_store**](docs/ObjectStoreApi.md#delete_store) | Delete an object store.
332
+ [*Fastly::ObjectStoreApi*](docs/ObjectStoreApi.md) | [**get_keys**](docs/ObjectStoreApi.md#get_keys) | List object store keys.
333
+ [*Fastly::ObjectStoreApi*](docs/ObjectStoreApi.md) | [**get_store**](docs/ObjectStoreApi.md#get_store) | Describe an object store.
334
+ [*Fastly::ObjectStoreApi*](docs/ObjectStoreApi.md) | [**get_stores**](docs/ObjectStoreApi.md#get_stores) | List object stores.
335
+ [*Fastly::ObjectStoreApi*](docs/ObjectStoreApi.md) | [**get_value_for_key**](docs/ObjectStoreApi.md#get_value_for_key) | Get object store key value.
336
+ [*Fastly::ObjectStoreApi*](docs/ObjectStoreApi.md) | [**set_value_for_key**](docs/ObjectStoreApi.md#set_value_for_key) | Insert object store key-value.
319
337
  [*Fastly::PackageApi*](docs/PackageApi.md) | [**get_package**](docs/PackageApi.md#get_package) | Get details of the service's Compute@Edge package.
320
338
  [*Fastly::PackageApi*](docs/PackageApi.md) | [**put_package**](docs/PackageApi.md#put_package) | Upload a Compute@Edge package.
321
339
  [*Fastly::PoolApi*](docs/PoolApi.md) | [**create_server_pool**](docs/PoolApi.md#create_server_pool) | Create a server pool
@@ -367,6 +385,7 @@ Class | Method | Description
367
385
  [*Fastly::ServiceAuthorizationsApi*](docs/ServiceAuthorizationsApi.md) | [**show_service_authorization**](docs/ServiceAuthorizationsApi.md#show_service_authorization) | Show service authorization
368
386
  [*Fastly::ServiceAuthorizationsApi*](docs/ServiceAuthorizationsApi.md) | [**update_service_authorization**](docs/ServiceAuthorizationsApi.md#update_service_authorization) | Update service authorization
369
387
  [*Fastly::SettingsApi*](docs/SettingsApi.md) | [**get_service_settings**](docs/SettingsApi.md#get_service_settings) | Get service settings
388
+ [*Fastly::SettingsApi*](docs/SettingsApi.md) | [**update_service_settings**](docs/SettingsApi.md#update_service_settings) | Update service settings
370
389
  [*Fastly::SnippetApi*](docs/SnippetApi.md) | [**create_snippet**](docs/SnippetApi.md#create_snippet) | Create a snippet
371
390
  [*Fastly::SnippetApi*](docs/SnippetApi.md) | [**delete_snippet**](docs/SnippetApi.md#delete_snippet) | Delete a snippet
372
391
  [*Fastly::SnippetApi*](docs/SnippetApi.md) | [**get_snippet**](docs/SnippetApi.md#get_snippet) | Get a versioned snippet
@@ -476,83 +495,6 @@ Class | Method | Description
476
495
 
477
496
  ## Issues
478
497
 
479
- The fastly-ruby API client currently does not support the following endpoints:
480
-
481
- - [`/content/edge_check`](https://developer.fastly.com/reference/api/utils/content) (GET)
482
- - [`/customer/{customer_id}/contacts`](https://developer.fastly.com/reference/api/account/contact) (POST)
483
- - [`/metrics/domains/services/{service_id}`](https://developer.fastly.com/reference/api/metrics-stats/domain-inspector/historical) (GET)
484
- - [`/metrics/origins/services/{service_id}`](https://developer.fastly.com/reference/api/metrics-stats/origin-inspector/historical) (GET)
485
- - [`/rate-limiters/{rate_limiter_id}`](https://developer.fastly.com/reference/api/vcl-services/rate-limiter) (PUT)
486
- - [`/resources/stores/object/{store_id}/keys/{key_name}`](https://developer.fastly.com/reference/api/) (DELETE, GET, PUT)
487
- - [`/resources/stores/object/{store_id}/keys`](https://developer.fastly.com/reference/api/) (GET)
488
- - [`/resources/stores/object/{store_id}`](https://developer.fastly.com/reference/api/) (DELETE, GET)
489
- - [`/resources/stores/object`](https://developer.fastly.com/reference/api/) (GET, POST)
490
- - [`/resources/stores/secret/{store_id}/secrets/{secret_name}`](https://developer.fastly.com/reference/api/) (DELETE, GET)
491
- - [`/resources/stores/secret/{store_id}/secrets`](https://developer.fastly.com/reference/api/) (GET, POST)
492
- - [`/resources/stores/secret/{store_id}`](https://developer.fastly.com/reference/api/) (DELETE, GET)
493
- - [`/resources/stores/secret`](https://developer.fastly.com/reference/api/) (GET, POST)
494
- - [`/roles/{role_id}/permissions`](https://developer.fastly.com/reference/api/account/roles) (DELETE, POST)
495
- - [`/roles/{role_id}`](https://developer.fastly.com/reference/api/account/roles) (PATCH)
496
- - [`/roles`](https://developer.fastly.com/reference/api/account/roles) (POST)
497
- - [`/service-authorizations`](https://developer.fastly.com/reference/api/account/service-authorization) (DELETE, PATCH)
498
- - [`/service-groups/{service_group_id}/services`](https://developer.fastly.com/reference/api/account/service-groups) (DELETE, POST)
499
- - [`/service-groups/{service_group_id}`](https://developer.fastly.com/reference/api/account/service-groups) (PATCH)
500
- - [`/service-groups`](https://developer.fastly.com/reference/api/account/service-groups) (POST)
501
- - [`/service/{service_id}/acl/{acl_id}/entries`](https://developer.fastly.com/reference/api/acls/acl-entry) (GET)
502
- - [`/service/{service_id}/acl/{acl_id}/entry/{acl_entry_id}`](https://developer.fastly.com/reference/api/acls/acl-entry) (GET, PATCH)
503
- - [`/service/{service_id}/acl/{acl_id}/entry`](https://developer.fastly.com/reference/api/acls/acl-entry) (POST)
504
- - [`/service/{service_id}/dictionary/{dictionary_id}/items`](https://developer.fastly.com/reference/api/dictionaries/dictionary-item) (PATCH)
505
- - [`/service/{service_id}/version/{version_id}/apex-redirects`](https://developer.fastly.com/reference/api/vcl-services/apex-redirect) (POST)
506
- - [`/service/{service_id}/version/{version_id}/director/{director_name}`](https://developer.fastly.com/reference/api/load-balancing/directors/director) (PUT)
507
- - [`/service/{service_id}/version/{version_id}/logging/kafka/{logging_kafka_name}`](https://developer.fastly.com/reference/api/logging/kafka) (PUT)
508
- - [`/service/{service_id}/version/{version_id}/logging/kinesis/{logging_kinesis_name}`](https://developer.fastly.com/reference/api/logging/kinesis) (PUT)
509
- - [`/service/{service_id}/version/{version_id}/rate-limiters`](https://developer.fastly.com/reference/api/vcl-services/rate-limiter) (POST)
510
- - [`/service/{service_id}/version/{version_id}/request_settings`](https://developer.fastly.com/reference/api/vcl-services/request-settings) (POST)
511
- - [`/service/{service_id}/version/{version_id}/response_object/{response_object_name}`](https://developer.fastly.com/reference/api/vcl-services/response-object) (PUT)
512
- - [`/service/{service_id}/version/{version_id}/response_object`](https://developer.fastly.com/reference/api/vcl-services/response-object) (POST)
513
- - [`/service/{service_id}/version/{version_id}/settings`](https://developer.fastly.com/reference/api/vcl-services/settings) (PUT)
514
- - [`/service/{service_id}/version/{version_id}/snippet/{snippet_name}`](https://developer.fastly.com/reference/api/vcl-services/snippet) (PUT)
515
- - [`/service/{service_id}/version/{version_id}/wafs/{firewall_id}`](https://developer.fastly.com/reference/api/legacy-waf/firewall) (GET, PATCH)
516
- - [`/service/{service_id}/version/{version_id}/wafs`](https://developer.fastly.com/reference/api/legacy-waf/firewall) (GET, POST)
517
- - [`/service/{service_id}/wafs/{firewall_id}/owasp`](https://developer.fastly.com/reference/api/legacy-waf/owasp) (GET, PATCH, POST)
518
- - [`/service/{service_id}/wafs/{firewall_id}/rule_statuses`](https://developer.fastly.com/reference/api/legacy-waf/rule-status) (GET, POST)
519
- - [`/service/{service_id}/wafs/{firewall_id}/rules/{waf_rule_id}/rule_status`](https://developer.fastly.com/reference/api/legacy-waf/rule-status) (GET, PATCH)
520
- - [`/service/{service_id}/wafs/{firewall_id}/ruleset/preview`](https://developer.fastly.com/reference/api/legacy-waf/ruleset) (GET)
521
- - [`/service/{service_id}/wafs/{firewall_id}/ruleset`](https://developer.fastly.com/reference/api/legacy-waf/ruleset) (GET, PATCH)
522
- - [`/service/{service_id}/wafs/{firewall_id}/update_statuses/{update_status_id}`](https://developer.fastly.com/reference/api/legacy-waf/update-status) (GET)
523
- - [`/service/{service_id}/wafs/{firewall_id}/update_statuses`](https://developer.fastly.com/reference/api/legacy-waf/update-status) (GET)
524
- - [`/sudo`](https://developer.fastly.com/reference/api/utils/sudo) (POST)
525
- - [`/tls/activations/{tls_activation_id}`](https://developer.fastly.com/reference/api/tls/mutual-tls/activations) (GET, PATCH)
526
- - [`/tls/activations`](https://developer.fastly.com/reference/api/tls/mutual-tls/activations) (GET)
527
- - [`/tokens`](https://developer.fastly.com/reference/api/auth-tokens/user) (DELETE, POST)
528
- - [`/user-groups/{user_group_id}/members`](https://developer.fastly.com/reference/api/account/user-groups) (DELETE, POST)
529
- - [`/user-groups/{user_group_id}/roles`](https://developer.fastly.com/reference/api/account/user-groups) (DELETE, POST)
530
- - [`/user-groups/{user_group_id}/service-groups`](https://developer.fastly.com/reference/api/account/user-groups) (DELETE, POST)
531
- - [`/user-groups/{user_group_id}`](https://developer.fastly.com/reference/api/account/user-groups) (PATCH)
532
- - [`/user-groups`](https://developer.fastly.com/reference/api/account/user-groups) (POST)
533
- - [`/v1/channel/{service_id}/ts/h/limit/{max_entries}`](https://developer.fastly.com/reference/api/metrics-stats/origin-insights) (GET)
534
- - [`/v1/channel/{service_id}/ts/h`](https://developer.fastly.com/reference/api/metrics-stats/origin-insights) (GET)
535
- - [`/v1/channel/{service_id}/ts/{start_timestamp}`](https://developer.fastly.com/reference/api/metrics-stats/origin-insights) (GET)
536
- - [`/v1/domains/{service_id}/ts/h/limit/{max_entries}`](https://developer.fastly.com/reference/api/metrics-stats/domain-inspector/real-time) (GET)
537
- - [`/v1/domains/{service_id}/ts/h`](https://developer.fastly.com/reference/api/metrics-stats/domain-inspector/real-time) (GET)
538
- - [`/v1/domains/{service_id}/ts/{start_timestamp}`](https://developer.fastly.com/reference/api/metrics-stats/domain-inspector/real-time) (GET)
539
- - [`/v1/origins/{service_id}/ts/h/limit/{max_entries}`](https://developer.fastly.com/reference/api/metrics-stats/origin-inspector/real-time) (GET)
540
- - [`/v1/origins/{service_id}/ts/h`](https://developer.fastly.com/reference/api/metrics-stats/origin-inspector/real-time) (GET)
541
- - [`/v1/origins/{service_id}/ts/{start_timestamp}`](https://developer.fastly.com/reference/api/metrics-stats/origin-inspector/real-time) (GET)
542
- - [`/waf/firewalls/{firewall_id}/versions/{version_id}/active-rules`](https://developer.fastly.com/reference/api/waf/rules/active) (DELETE)
543
- - [`/wafs/configuration_sets/{configuration_set_id}/relationships/wafs`](https://developer.fastly.com/reference/api/legacy-waf/configuration-set) (GET, PATCH)
544
- - [`/wafs/configuration_sets`](https://developer.fastly.com/reference/api/legacy-waf/configuration-set) (GET)
545
- - [`/wafs/rules/{waf_rule_id}/vcl`](https://developer.fastly.com/reference/api/legacy-waf/rule) (GET)
546
- - [`/wafs/rules/{waf_rule_id}`](https://developer.fastly.com/reference/api/legacy-waf/rule) (GET)
547
- - [`/wafs/rules`](https://developer.fastly.com/reference/api/legacy-waf/rule) (GET)
548
- - [`/wafs/tags`](https://developer.fastly.com/reference/api/legacy-waf/tag) (GET)
549
- - [`/wafs/{firewall_id}/disable`](https://developer.fastly.com/reference/api/legacy-waf/firewall) (PATCH)
550
- - [`/wafs/{firewall_id}/enable`](https://developer.fastly.com/reference/api/legacy-waf/firewall) (PATCH)
551
- - [`/wafs/{firewall_id}/rules/{waf_rule_id}/vcl`](https://developer.fastly.com/reference/api/legacy-waf/rule) (GET)
552
- - [`/wafs/{firewall_id}`](https://developer.fastly.com/reference/api/legacy-waf/firewall) (GET)
553
- - [`/wafs`](https://developer.fastly.com/reference/api/legacy-waf/firewall) (GET)
554
-
555
-
556
498
  If you encounter any non-security-related bug or unexpected behavior, please [file an issue][bug]
557
499
  using the bug report template.
558
500
 
@@ -0,0 +1,11 @@
1
+ # Fastly::GetStoresResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array<StoreResponse>**](StoreResponse.md) | | [optional] |
8
+ | **meta** | [**GetStoresResponseMeta**](GetStoresResponseMeta.md) | | [optional] |
9
+
10
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
11
+
@@ -0,0 +1,11 @@
1
+ # Fastly::GetStoresResponseMeta
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **next_cursor** | **String** | Cursor for the next page. | [optional] |
8
+ | **limit** | **Integer** | Entries returned. | [optional] |
9
+
10
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
11
+
@@ -0,0 +1,11 @@
1
+ # Fastly::KeyResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | **Array<String>** | | [optional] |
8
+ | **meta** | [**GetStoresResponseMeta**](GetStoresResponseMeta.md) | | [optional] |
9
+
10
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
11
+
@@ -104,6 +104,7 @@ Show a Mutual Authentication.
104
104
  api_instance = Fastly::MutualAuthenticationApi.new
105
105
  opts = {
106
106
  mutual_authentication_id: 'mutual_authentication_id_example', # String | Alphanumeric string identifying a mutual authentication.
107
+ include: 'include_example', # String | Comma-separated list of related objects to include (optional). Permitted values: `tls_activations`. Including TLS activations will provide you with the TLS domain names that are related to your Mutual TLS authentication.
107
108
  }
108
109
 
109
110
  begin
@@ -119,6 +120,7 @@ end
119
120
 
120
121
  | Name | Type | Description | Notes |
121
122
  | ---- | ---- | ----------- | ----- |
123
+ | **include** | **String** | Comma-separated list of related objects to include (optional). Permitted values: `tls_activations`. Including TLS activations will provide you with the TLS domain names that are related to your Mutual TLS authentication. | [optional] |
122
124
  | **mutual_authentication_id** | **String** | Alphanumeric string identifying a mutual authentication. | |
123
125
 
124
126
  ### Return type
@@ -140,6 +142,7 @@ List all mutual authentications.
140
142
  ```ruby
141
143
  api_instance = Fastly::MutualAuthenticationApi.new
142
144
  opts = {
145
+ include: 'include_example', # String | Comma-separated list of related objects to include (optional). Permitted values: `tls_activations`. Including TLS activations will provide you with the TLS domain names that are related to your Mutual TLS authentication.
143
146
  page_number: 1, # Integer | Current page.
144
147
  page_size: 20, # Integer | Number of records per page.
145
148
  }
@@ -157,6 +160,7 @@ end
157
160
 
158
161
  | Name | Type | Description | Notes |
159
162
  | ---- | ---- | ----------- | ----- |
163
+ | **include** | **String** | Comma-separated list of related objects to include (optional). Permitted values: `tls_activations`. Including TLS activations will provide you with the TLS domain names that are related to your Mutual TLS authentication. | [optional] |
160
164
  | **page_number** | **Integer** | Current page. | [optional] |
161
165
  | **page_size** | **Integer** | Number of records per page. | [optional][default to 20] |
162
166
 
@@ -0,0 +1,330 @@
1
+ # Fastly::ObjectStoreApi
2
+
3
+
4
+ ```ruby
5
+ require 'fastly'
6
+ api_instance = Fastly::ObjectStoreApi.new
7
+ ```
8
+
9
+ ## Methods
10
+
11
+ | Method | HTTP request | Description |
12
+ | ------ | ------------ | ----------- |
13
+ | [**create_store**](ObjectStoreApi.md#create_store) | **POST** /resources/stores/object | Create an object store. |
14
+ | [**delete_key_from_store**](ObjectStoreApi.md#delete_key_from_store) | **DELETE** /resources/stores/object/{store_id}/keys/{key_name} | Delete object store key. |
15
+ | [**delete_store**](ObjectStoreApi.md#delete_store) | **DELETE** /resources/stores/object/{store_id} | Delete an object store. |
16
+ | [**get_keys**](ObjectStoreApi.md#get_keys) | **GET** /resources/stores/object/{store_id}/keys | List object store keys. |
17
+ | [**get_store**](ObjectStoreApi.md#get_store) | **GET** /resources/stores/object/{store_id} | Describe an object store. |
18
+ | [**get_stores**](ObjectStoreApi.md#get_stores) | **GET** /resources/stores/object | List object stores. |
19
+ | [**get_value_for_key**](ObjectStoreApi.md#get_value_for_key) | **GET** /resources/stores/object/{store_id}/keys/{key_name} | Get object store key value. |
20
+ | [**set_value_for_key**](ObjectStoreApi.md#set_value_for_key) | **PUT** /resources/stores/object/{store_id}/keys/{key_name} | Insert object store key-value. |
21
+
22
+
23
+ ## `create_store()`
24
+
25
+ ```ruby
26
+ create_store(opts): <StoreResponse> # Create an object store.
27
+ ```
28
+
29
+ Create a new object store.
30
+
31
+ ### Examples
32
+
33
+ ```ruby
34
+ api_instance = Fastly::ObjectStoreApi.new
35
+ opts = {
36
+ store: Fastly::Store.new, # Store |
37
+ }
38
+
39
+ begin
40
+ # Create an object store.
41
+ result = api_instance.create_store(opts)
42
+ p result
43
+ rescue Fastly::ApiError => e
44
+ puts "Error when calling ObjectStoreApi->create_store: #{e}"
45
+ end
46
+ ```
47
+
48
+ ### Options
49
+
50
+ | Name | Type | Description | Notes |
51
+ | ---- | ---- | ----------- | ----- |
52
+ | **store** | [**Store**](Store.md) | | [optional] |
53
+
54
+ ### Return type
55
+
56
+ [**StoreResponse**](StoreResponse.md)
57
+
58
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
59
+ [[Back to README]](../../README.md)
60
+ ## `delete_key_from_store()`
61
+
62
+ ```ruby
63
+ delete_key_from_store(opts) # Delete object store key.
64
+ ```
65
+
66
+ Delete a key from a customer store.
67
+
68
+ ### Examples
69
+
70
+ ```ruby
71
+ api_instance = Fastly::ObjectStoreApi.new
72
+ opts = {
73
+ store_id: 'store_id_example', # String |
74
+ key_name: 'key_name_example', # String |
75
+ }
76
+
77
+ begin
78
+ # Delete object store key.
79
+ api_instance.delete_key_from_store(opts)
80
+ rescue Fastly::ApiError => e
81
+ puts "Error when calling ObjectStoreApi->delete_key_from_store: #{e}"
82
+ end
83
+ ```
84
+
85
+ ### Options
86
+
87
+ | Name | Type | Description | Notes |
88
+ | ---- | ---- | ----------- | ----- |
89
+ | **store_id** | **String** | | |
90
+ | **key_name** | **String** | | |
91
+
92
+ ### Return type
93
+
94
+ nil (empty response body)
95
+
96
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
97
+ [[Back to README]](../../README.md)
98
+ ## `delete_store()`
99
+
100
+ ```ruby
101
+ delete_store(opts) # Delete an object store.
102
+ ```
103
+
104
+ An object store must be empty before it can be deleted. Deleting an object store that still contains keys will result in a 409 Conflict.
105
+
106
+ ### Examples
107
+
108
+ ```ruby
109
+ api_instance = Fastly::ObjectStoreApi.new
110
+ opts = {
111
+ store_id: 'store_id_example', # String |
112
+ }
113
+
114
+ begin
115
+ # Delete an object store.
116
+ api_instance.delete_store(opts)
117
+ rescue Fastly::ApiError => e
118
+ puts "Error when calling ObjectStoreApi->delete_store: #{e}"
119
+ end
120
+ ```
121
+
122
+ ### Options
123
+
124
+ | Name | Type | Description | Notes |
125
+ | ---- | ---- | ----------- | ----- |
126
+ | **store_id** | **String** | | |
127
+
128
+ ### Return type
129
+
130
+ nil (empty response body)
131
+
132
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
133
+ [[Back to README]](../../README.md)
134
+ ## `get_keys()`
135
+
136
+ ```ruby
137
+ get_keys(opts): <KeyResponse> # List object store keys.
138
+ ```
139
+
140
+ List all keys within an object store.
141
+
142
+ ### Examples
143
+
144
+ ```ruby
145
+ api_instance = Fastly::ObjectStoreApi.new
146
+ opts = {
147
+ store_id: 'store_id_example', # String |
148
+ cursor: 'cursor_example', # String |
149
+ limit: 56, # Integer |
150
+ }
151
+
152
+ begin
153
+ # List object store keys.
154
+ result = api_instance.get_keys(opts)
155
+ p result
156
+ rescue Fastly::ApiError => e
157
+ puts "Error when calling ObjectStoreApi->get_keys: #{e}"
158
+ end
159
+ ```
160
+
161
+ ### Options
162
+
163
+ | Name | Type | Description | Notes |
164
+ | ---- | ---- | ----------- | ----- |
165
+ | **store_id** | **String** | | |
166
+ | **cursor** | **String** | | [optional] |
167
+ | **limit** | **Integer** | | [optional][default to 100] |
168
+
169
+ ### Return type
170
+
171
+ [**KeyResponse**](KeyResponse.md)
172
+
173
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
174
+ [[Back to README]](../../README.md)
175
+ ## `get_store()`
176
+
177
+ ```ruby
178
+ get_store(opts): <StoreResponse> # Describe an object store.
179
+ ```
180
+
181
+ Get an object store by ID.
182
+
183
+ ### Examples
184
+
185
+ ```ruby
186
+ api_instance = Fastly::ObjectStoreApi.new
187
+ opts = {
188
+ store_id: 'store_id_example', # String |
189
+ }
190
+
191
+ begin
192
+ # Describe an object store.
193
+ result = api_instance.get_store(opts)
194
+ p result
195
+ rescue Fastly::ApiError => e
196
+ puts "Error when calling ObjectStoreApi->get_store: #{e}"
197
+ end
198
+ ```
199
+
200
+ ### Options
201
+
202
+ | Name | Type | Description | Notes |
203
+ | ---- | ---- | ----------- | ----- |
204
+ | **store_id** | **String** | | |
205
+
206
+ ### Return type
207
+
208
+ [**StoreResponse**](StoreResponse.md)
209
+
210
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
211
+ [[Back to README]](../../README.md)
212
+ ## `get_stores()`
213
+
214
+ ```ruby
215
+ get_stores(opts): <GetStoresResponse> # List object stores.
216
+ ```
217
+
218
+ Get all stores for a given customer.
219
+
220
+ ### Examples
221
+
222
+ ```ruby
223
+ api_instance = Fastly::ObjectStoreApi.new
224
+ opts = {
225
+ cursor: 'cursor_example', # String |
226
+ limit: 56, # Integer |
227
+ }
228
+
229
+ begin
230
+ # List object stores.
231
+ result = api_instance.get_stores(opts)
232
+ p result
233
+ rescue Fastly::ApiError => e
234
+ puts "Error when calling ObjectStoreApi->get_stores: #{e}"
235
+ end
236
+ ```
237
+
238
+ ### Options
239
+
240
+ | Name | Type | Description | Notes |
241
+ | ---- | ---- | ----------- | ----- |
242
+ | **cursor** | **String** | | [optional] |
243
+ | **limit** | **Integer** | | [optional][default to 100] |
244
+
245
+ ### Return type
246
+
247
+ [**GetStoresResponse**](GetStoresResponse.md)
248
+
249
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
250
+ [[Back to README]](../../README.md)
251
+ ## `get_value_for_key()`
252
+
253
+ ```ruby
254
+ get_value_for_key(opts): File # Get object store key value.
255
+ ```
256
+
257
+ Get the value associated with a key.
258
+
259
+ ### Examples
260
+
261
+ ```ruby
262
+ api_instance = Fastly::ObjectStoreApi.new
263
+ opts = {
264
+ store_id: 'store_id_example', # String |
265
+ key_name: 'key_name_example', # String |
266
+ }
267
+
268
+ begin
269
+ # Get object store key value.
270
+ result = api_instance.get_value_for_key(opts)
271
+ p result
272
+ rescue Fastly::ApiError => e
273
+ puts "Error when calling ObjectStoreApi->get_value_for_key: #{e}"
274
+ end
275
+ ```
276
+
277
+ ### Options
278
+
279
+ | Name | Type | Description | Notes |
280
+ | ---- | ---- | ----------- | ----- |
281
+ | **store_id** | **String** | | |
282
+ | **key_name** | **String** | | |
283
+
284
+ ### Return type
285
+
286
+ **File**
287
+
288
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
289
+ [[Back to README]](../../README.md)
290
+ ## `set_value_for_key()`
291
+
292
+ ```ruby
293
+ set_value_for_key(opts): File # Insert object store key-value.
294
+ ```
295
+
296
+ Insert a new key-value pair into an object store.
297
+
298
+ ### Examples
299
+
300
+ ```ruby
301
+ api_instance = Fastly::ObjectStoreApi.new
302
+ opts = {
303
+ store_id: 'store_id_example', # String |
304
+ key_name: 'key_name_example', # String |
305
+ body: File.new('/path/to/some/file'), # File |
306
+ }
307
+
308
+ begin
309
+ # Insert object store key-value.
310
+ result = api_instance.set_value_for_key(opts)
311
+ p result
312
+ rescue Fastly::ApiError => e
313
+ puts "Error when calling ObjectStoreApi->set_value_for_key: #{e}"
314
+ end
315
+ ```
316
+
317
+ ### Options
318
+
319
+ | Name | Type | Description | Notes |
320
+ | ---- | ---- | ----------- | ----- |
321
+ | **store_id** | **String** | | |
322
+ | **key_name** | **String** | | |
323
+ | **body** | **File** | | [optional] |
324
+
325
+ ### Return type
326
+
327
+ **File**
328
+
329
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
330
+ [[Back to README]](../../README.md)