fastly 4.4.0 → 5.0.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: b9550e4397620cc86b032cacfc445ecef4238aee422e8235955525559d769e0c
4
- data.tar.gz: 8f9d9076dbb779fd40d9918cbd06f0fc6f8691fbecefefee2b6e166ee69440a1
3
+ metadata.gz: be03f22d46f7b8adf3bf9cd63806b5ff90264542cdcd060eaa0915d4e2a9a6b4
4
+ data.tar.gz: 452994d5b059c890b99b778739e5996256e14d662cc4e439bbe7e629017e1743
5
5
  SHA512:
6
- metadata.gz: 361b09ff58f4ce57d3820521018747c25a7610f7d1658cd2c42df0d5778dad79f284ff3cea53b9ee922eeec9a197fb507cebea529443e6054927770f407a750b
7
- data.tar.gz: 7f0f6624b8d45addbeb78983a7912994e18105050c5450057a67cd85a101c0a01c6eec3c4ed8a45ee9ea4b8a668fe27d0e3e0fabba76028e9c27fd0b32927d00
6
+ metadata.gz: 9e3b07f06f6d0a8b260b570b80e31737c11fbb056bcf1f0a68d88df8c54597d75d46782ceea958b9c6700cfecd1b649338533f70b12d5b1f41a60bd5750cb54a
7
+ data.tar.gz: dab6128c528d940b60c188179592ca3a29471f95192bbce13e46a4847404fdf57526398574472ad85d2cca423981e042508a33ff53f1c3b02cd284bf502e59bd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [v5.0.0](https://github.com/fastly/fastly-ruby/releases/tag/release/v5.0.0) (2023-05-16)
4
+
5
+ **Breaking changes:**
6
+
7
+ - breaking(object_store): rename to kv_store
8
+
9
+ **Enhancements:**
10
+
11
+ - feat(dictionary_item): add 'bulk' PATCH endpoint.
12
+ - feat(package): add `files_hash` metadata property.
13
+ - feat(tls_certificates): add `filter[in_use]` parameter.
14
+
3
15
  ## [v4.4.0](https://github.com/fastly/fastly-ruby/releases/tag/release/v4.4.0) (2023-04-26)
4
16
 
5
17
  **Bug fixes:**
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fastly (4.4.0)
4
+ fastly (5.0.0)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -12,7 +12,7 @@ A Ruby client library for interacting with most facets of the [Fastly API](https
12
12
  To install via RubyGems, add the following to your project's `Gemfile`:
13
13
 
14
14
  ```ruby
15
- gem 'fastly', '~> 4.4.0'
15
+ gem 'fastly', '~> 5.0.0'
16
16
  ```
17
17
 
18
18
  Then run `bundle install`.
@@ -116,6 +116,7 @@ Class | Method | Description
116
116
  [*Fastly::DictionaryApi*](docs/DictionaryApi.md) | [**list_dictionaries**](docs/DictionaryApi.md#list_dictionaries) | List edge dictionaries
117
117
  [*Fastly::DictionaryApi*](docs/DictionaryApi.md) | [**update_dictionary**](docs/DictionaryApi.md#update_dictionary) | Update an edge dictionary
118
118
  [*Fastly::DictionaryInfoApi*](docs/DictionaryInfoApi.md) | [**get_dictionary_info**](docs/DictionaryInfoApi.md#get_dictionary_info) | Get edge dictionary metadata
119
+ [*Fastly::DictionaryItemApi*](docs/DictionaryItemApi.md) | [**bulk_update_dictionary_item**](docs/DictionaryItemApi.md#bulk_update_dictionary_item) | Update multiple entries in an edge dictionary
119
120
  [*Fastly::DictionaryItemApi*](docs/DictionaryItemApi.md) | [**create_dictionary_item**](docs/DictionaryItemApi.md#create_dictionary_item) | Create an entry in an edge dictionary
120
121
  [*Fastly::DictionaryItemApi*](docs/DictionaryItemApi.md) | [**delete_dictionary_item**](docs/DictionaryItemApi.md#delete_dictionary_item) | Delete an item from an edge dictionary
121
122
  [*Fastly::DictionaryItemApi*](docs/DictionaryItemApi.md) | [**get_dictionary_item**](docs/DictionaryItemApi.md#get_dictionary_item) | Get an item from an edge dictionary
@@ -188,6 +189,14 @@ Class | Method | Description
188
189
  [*Fastly::InvitationsApi*](docs/InvitationsApi.md) | [**create_invitation**](docs/InvitationsApi.md#create_invitation) | Create an invitation
189
190
  [*Fastly::InvitationsApi*](docs/InvitationsApi.md) | [**delete_invitation**](docs/InvitationsApi.md#delete_invitation) | Delete an invitation
190
191
  [*Fastly::InvitationsApi*](docs/InvitationsApi.md) | [**list_invitations**](docs/InvitationsApi.md#list_invitations) | List invitations
192
+ [*Fastly::KvStoreApi*](docs/KvStoreApi.md) | [**create_store**](docs/KvStoreApi.md#create_store) | Create an kv store.
193
+ [*Fastly::KvStoreApi*](docs/KvStoreApi.md) | [**delete_store**](docs/KvStoreApi.md#delete_store) | Delete an kv store.
194
+ [*Fastly::KvStoreApi*](docs/KvStoreApi.md) | [**get_store**](docs/KvStoreApi.md#get_store) | Describe an kv store.
195
+ [*Fastly::KvStoreApi*](docs/KvStoreApi.md) | [**get_stores**](docs/KvStoreApi.md#get_stores) | List kv stores.
196
+ [*Fastly::KvStoreItemApi*](docs/KvStoreItemApi.md) | [**delete_key_from_store**](docs/KvStoreItemApi.md#delete_key_from_store) | Delete kv store item.
197
+ [*Fastly::KvStoreItemApi*](docs/KvStoreItemApi.md) | [**get_keys**](docs/KvStoreItemApi.md#get_keys) | List kv store keys.
198
+ [*Fastly::KvStoreItemApi*](docs/KvStoreItemApi.md) | [**get_value_for_key**](docs/KvStoreItemApi.md#get_value_for_key) | Get the value of an kv store item
199
+ [*Fastly::KvStoreItemApi*](docs/KvStoreItemApi.md) | [**set_value_for_key**](docs/KvStoreItemApi.md#set_value_for_key) | Insert an item into an kv store
191
200
  [*Fastly::LoggingAzureblobApi*](docs/LoggingAzureblobApi.md) | [**create_log_azure**](docs/LoggingAzureblobApi.md#create_log_azure) | Create an Azure Blob Storage log endpoint
192
201
  [*Fastly::LoggingAzureblobApi*](docs/LoggingAzureblobApi.md) | [**delete_log_azure**](docs/LoggingAzureblobApi.md#delete_log_azure) | Delete the Azure Blob Storage log endpoint
193
202
  [*Fastly::LoggingAzureblobApi*](docs/LoggingAzureblobApi.md) | [**get_log_azure**](docs/LoggingAzureblobApi.md#get_log_azure) | Get an Azure Blob Storage log endpoint
@@ -321,14 +330,6 @@ Class | Method | Description
321
330
  [*Fastly::MutualAuthenticationApi*](docs/MutualAuthenticationApi.md) | [**get_mutual_authentication**](docs/MutualAuthenticationApi.md#get_mutual_authentication) | Get a Mutual Authentication
322
331
  [*Fastly::MutualAuthenticationApi*](docs/MutualAuthenticationApi.md) | [**list_mutual_authentications**](docs/MutualAuthenticationApi.md#list_mutual_authentications) | List Mutual Authentications
323
332
  [*Fastly::MutualAuthenticationApi*](docs/MutualAuthenticationApi.md) | [**patch_mutual_authentication**](docs/MutualAuthenticationApi.md#patch_mutual_authentication) | Update a Mutual Authentication
324
- [*Fastly::ObjectStoreApi*](docs/ObjectStoreApi.md) | [**create_store**](docs/ObjectStoreApi.md#create_store) | Create an object store.
325
- [*Fastly::ObjectStoreApi*](docs/ObjectStoreApi.md) | [**delete_store**](docs/ObjectStoreApi.md#delete_store) | Delete an object store.
326
- [*Fastly::ObjectStoreApi*](docs/ObjectStoreApi.md) | [**get_store**](docs/ObjectStoreApi.md#get_store) | Describe an object store.
327
- [*Fastly::ObjectStoreApi*](docs/ObjectStoreApi.md) | [**get_stores**](docs/ObjectStoreApi.md#get_stores) | List object stores.
328
- [*Fastly::ObjectStoreItemApi*](docs/ObjectStoreItemApi.md) | [**delete_key_from_store**](docs/ObjectStoreItemApi.md#delete_key_from_store) | Delete object store item.
329
- [*Fastly::ObjectStoreItemApi*](docs/ObjectStoreItemApi.md) | [**get_keys**](docs/ObjectStoreItemApi.md#get_keys) | List object store keys.
330
- [*Fastly::ObjectStoreItemApi*](docs/ObjectStoreItemApi.md) | [**get_value_for_key**](docs/ObjectStoreItemApi.md#get_value_for_key) | Get the value of an object store item
331
- [*Fastly::ObjectStoreItemApi*](docs/ObjectStoreItemApi.md) | [**set_value_for_key**](docs/ObjectStoreItemApi.md#set_value_for_key) | Insert an item into an object store
332
333
  [*Fastly::PackageApi*](docs/PackageApi.md) | [**get_package**](docs/PackageApi.md#get_package) | Get details of the service's Compute@Edge package.
333
334
  [*Fastly::PackageApi*](docs/PackageApi.md) | [**put_package**](docs/PackageApi.md#put_package) | Upload a Compute@Edge package.
334
335
  [*Fastly::PoolApi*](docs/PoolApi.md) | [**create_server_pool**](docs/PoolApi.md#create_server_pool) | Create a server pool
@@ -506,7 +507,7 @@ The fastly-ruby API client currently does not support the following endpoints:
506
507
  - [`/resources/stores/secret/client-key`](https://developer.fastly.com/reference/api/services/resources/secret-store) (POST)
507
508
  - [`/resources/stores/secret/signing-key`](https://developer.fastly.com/reference/api/services/resources/secret-store) (GET)
508
509
  - [`/resources/stores/secret/{store_id}/secrets/{secret_name}`](https://developer.fastly.com/reference/api/services/resources/secret) (DELETE, GET)
509
- - [`/resources/stores/secret/{store_id}/secrets`](https://developer.fastly.com/reference/api/services/resources/secret) (GET, POST)
510
+ - [`/resources/stores/secret/{store_id}/secrets`](https://developer.fastly.com/reference/api/services/resources/secret) (GET, PATCH, POST, PUT)
510
511
  - [`/resources/stores/secret/{store_id}`](https://developer.fastly.com/reference/api/services/resources/secret-store) (DELETE, GET)
511
512
  - [`/resources/stores/secret`](https://developer.fastly.com/reference/api/services/resources/secret-store) (GET, POST)
512
513
  - [`/roles/{role_id}/permissions`](https://developer.fastly.com/reference/api/account/roles) (DELETE, POST)
@@ -519,7 +520,6 @@ The fastly-ruby API client currently does not support the following endpoints:
519
520
  - [`/service/{service_id}/acl/{acl_id}/entries`](https://developer.fastly.com/reference/api/acls/acl-entry) (GET)
520
521
  - [`/service/{service_id}/acl/{acl_id}/entry/{acl_entry_id}`](https://developer.fastly.com/reference/api/acls/acl-entry) (GET, PATCH)
521
522
  - [`/service/{service_id}/acl/{acl_id}/entry`](https://developer.fastly.com/reference/api/acls/acl-entry) (POST)
522
- - [`/service/{service_id}/dictionary/{dictionary_id}/items`](https://developer.fastly.com/reference/api/dictionaries/dictionary-item) (PATCH)
523
523
  - [`/service/{service_id}/version/{version_id}/apex-redirects`](https://developer.fastly.com/reference/api/vcl-services/apex-redirect) (POST)
524
524
  - [`/service/{service_id}/version/{version_id}/director/{director_name}`](https://developer.fastly.com/reference/api/load-balancing/directors/director) (PUT)
525
525
  - [`/service/{service_id}/version/{version_id}/logging/kafka/{logging_kafka_name}`](https://developer.fastly.com/reference/api/logging/kafka) (PUT)
@@ -10,6 +10,7 @@ api_instance = Fastly::DictionaryItemApi.new
10
10
 
11
11
  | Method | HTTP request | Description |
12
12
  | ------ | ------------ | ----------- |
13
+ | [**bulk_update_dictionary_item**](DictionaryItemApi.md#bulk_update_dictionary_item) | **PATCH** /service/{service_id}/dictionary/{dictionary_id}/items | Update multiple entries in an edge dictionary |
13
14
  | [**create_dictionary_item**](DictionaryItemApi.md#create_dictionary_item) | **POST** /service/{service_id}/dictionary/{dictionary_id}/item | Create an entry in an edge dictionary |
14
15
  | [**delete_dictionary_item**](DictionaryItemApi.md#delete_dictionary_item) | **DELETE** /service/{service_id}/dictionary/{dictionary_id}/item/{dictionary_item_key} | Delete an item from an edge dictionary |
15
16
  | [**get_dictionary_item**](DictionaryItemApi.md#get_dictionary_item) | **GET** /service/{service_id}/dictionary/{dictionary_id}/item/{dictionary_item_key} | Get an item from an edge dictionary |
@@ -18,6 +19,47 @@ api_instance = Fastly::DictionaryItemApi.new
18
19
  | [**upsert_dictionary_item**](DictionaryItemApi.md#upsert_dictionary_item) | **PUT** /service/{service_id}/dictionary/{dictionary_id}/item/{dictionary_item_key} | Insert or update an entry in an edge dictionary |
19
20
 
20
21
 
22
+ ## `bulk_update_dictionary_item()`
23
+
24
+ ```ruby
25
+ bulk_update_dictionary_item(opts): <InlineResponse200> # Update multiple entries in an edge dictionary
26
+ ```
27
+
28
+ Update multiple items in the same dictionary. For faster updates to your service, group your changes into large batches. The maximum batch size is 1000 items. [Contact support](https://support.fastly.com/) to discuss raising this limit.
29
+
30
+ ### Examples
31
+
32
+ ```ruby
33
+ api_instance = Fastly::DictionaryItemApi.new
34
+ opts = {
35
+ service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
36
+ dictionary_id: 'dictionary_id_example', # String | Alphanumeric string identifying a Dictionary.
37
+ bulk_update_dictionary_list_request: Fastly::BulkUpdateDictionaryListRequest.new, # BulkUpdateDictionaryListRequest |
38
+ }
39
+
40
+ begin
41
+ # Update multiple entries in an edge dictionary
42
+ result = api_instance.bulk_update_dictionary_item(opts)
43
+ p result
44
+ rescue Fastly::ApiError => e
45
+ puts "Error when calling DictionaryItemApi->bulk_update_dictionary_item: #{e}"
46
+ end
47
+ ```
48
+
49
+ ### Options
50
+
51
+ | Name | Type | Description | Notes |
52
+ | ---- | ---- | ----------- | ----- |
53
+ | **service_id** | **String** | Alphanumeric string identifying the service. | |
54
+ | **dictionary_id** | **String** | Alphanumeric string identifying a Dictionary. | |
55
+ | **bulk_update_dictionary_list_request** | [**BulkUpdateDictionaryListRequest**](BulkUpdateDictionaryListRequest.md) | | [optional] |
56
+
57
+ ### Return type
58
+
59
+ [**InlineResponse200**](InlineResponse200.md)
60
+
61
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
62
+ [[Back to README]](../../README.md)
21
63
  ## `create_dictionary_item()`
22
64
 
23
65
  ```ruby
@@ -1,44 +1,44 @@
1
- # Fastly::ObjectStoreApi
1
+ # Fastly::KvStoreApi
2
2
 
3
3
 
4
4
  ```ruby
5
5
  require 'fastly'
6
- api_instance = Fastly::ObjectStoreApi.new
6
+ api_instance = Fastly::KvStoreApi.new
7
7
  ```
8
8
 
9
9
  ## Methods
10
10
 
11
11
  | Method | HTTP request | Description |
12
12
  | ------ | ------------ | ----------- |
13
- | [**create_store**](ObjectStoreApi.md#create_store) | **POST** /resources/stores/object | Create an object store. |
14
- | [**delete_store**](ObjectStoreApi.md#delete_store) | **DELETE** /resources/stores/object/{store_id} | Delete an object store. |
15
- | [**get_store**](ObjectStoreApi.md#get_store) | **GET** /resources/stores/object/{store_id} | Describe an object store. |
16
- | [**get_stores**](ObjectStoreApi.md#get_stores) | **GET** /resources/stores/object | List object stores. |
13
+ | [**create_store**](KvStoreApi.md#create_store) | **POST** /resources/stores/kv | Create an kv store. |
14
+ | [**delete_store**](KvStoreApi.md#delete_store) | **DELETE** /resources/stores/kv/{store_id} | Delete an kv store. |
15
+ | [**get_store**](KvStoreApi.md#get_store) | **GET** /resources/stores/kv/{store_id} | Describe an kv store. |
16
+ | [**get_stores**](KvStoreApi.md#get_stores) | **GET** /resources/stores/kv | List kv stores. |
17
17
 
18
18
 
19
19
  ## `create_store()`
20
20
 
21
21
  ```ruby
22
- create_store(opts): <StoreResponse> # Create an object store.
22
+ create_store(opts): <StoreResponse> # Create an kv store.
23
23
  ```
24
24
 
25
- Create a new object store.
25
+ Create a new kv store.
26
26
 
27
27
  ### Examples
28
28
 
29
29
  ```ruby
30
- api_instance = Fastly::ObjectStoreApi.new
30
+ api_instance = Fastly::KvStoreApi.new
31
31
  opts = {
32
32
  location: 'location_example', # String |
33
33
  store: Fastly::Store.new, # Store |
34
34
  }
35
35
 
36
36
  begin
37
- # Create an object store.
37
+ # Create an kv store.
38
38
  result = api_instance.create_store(opts)
39
39
  p result
40
40
  rescue Fastly::ApiError => e
41
- puts "Error when calling ObjectStoreApi->create_store: #{e}"
41
+ puts "Error when calling KvStoreApi->create_store: #{e}"
42
42
  end
43
43
  ```
44
44
 
@@ -58,25 +58,25 @@ end
58
58
  ## `delete_store()`
59
59
 
60
60
  ```ruby
61
- delete_store(opts) # Delete an object store.
61
+ delete_store(opts) # Delete an kv store.
62
62
  ```
63
63
 
64
- 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).
64
+ An kv store must be empty before it can be deleted. Deleting an kv store that still contains keys will result in a `409` (Conflict).
65
65
 
66
66
  ### Examples
67
67
 
68
68
  ```ruby
69
- api_instance = Fastly::ObjectStoreApi.new
69
+ api_instance = Fastly::KvStoreApi.new
70
70
  opts = {
71
71
  store_id: 'store_id_example', # String |
72
72
  force: true, # Boolean |
73
73
  }
74
74
 
75
75
  begin
76
- # Delete an object store.
76
+ # Delete an kv store.
77
77
  api_instance.delete_store(opts)
78
78
  rescue Fastly::ApiError => e
79
- puts "Error when calling ObjectStoreApi->delete_store: #{e}"
79
+ puts "Error when calling KvStoreApi->delete_store: #{e}"
80
80
  end
81
81
  ```
82
82
 
@@ -96,25 +96,25 @@ nil (empty response body)
96
96
  ## `get_store()`
97
97
 
98
98
  ```ruby
99
- get_store(opts): <StoreResponse> # Describe an object store.
99
+ get_store(opts): <StoreResponse> # Describe an kv store.
100
100
  ```
101
101
 
102
- Get an object store by ID.
102
+ Get an kv store by ID.
103
103
 
104
104
  ### Examples
105
105
 
106
106
  ```ruby
107
- api_instance = Fastly::ObjectStoreApi.new
107
+ api_instance = Fastly::KvStoreApi.new
108
108
  opts = {
109
109
  store_id: 'store_id_example', # String |
110
110
  }
111
111
 
112
112
  begin
113
- # Describe an object store.
113
+ # Describe an kv store.
114
114
  result = api_instance.get_store(opts)
115
115
  p result
116
116
  rescue Fastly::ApiError => e
117
- puts "Error when calling ObjectStoreApi->get_store: #{e}"
117
+ puts "Error when calling KvStoreApi->get_store: #{e}"
118
118
  end
119
119
  ```
120
120
 
@@ -133,7 +133,7 @@ end
133
133
  ## `get_stores()`
134
134
 
135
135
  ```ruby
136
- get_stores(opts): <InlineResponse2003> # List object stores.
136
+ get_stores(opts): <InlineResponse2003> # List kv stores.
137
137
  ```
138
138
 
139
139
  Get all stores for a given customer.
@@ -141,18 +141,18 @@ Get all stores for a given customer.
141
141
  ### Examples
142
142
 
143
143
  ```ruby
144
- api_instance = Fastly::ObjectStoreApi.new
144
+ api_instance = Fastly::KvStoreApi.new
145
145
  opts = {
146
146
  cursor: 'cursor_example', # String |
147
147
  limit: 56, # Integer |
148
148
  }
149
149
 
150
150
  begin
151
- # List object stores.
151
+ # List kv stores.
152
152
  result = api_instance.get_stores(opts)
153
153
  p result
154
154
  rescue Fastly::ApiError => e
155
- puts "Error when calling ObjectStoreApi->get_stores: #{e}"
155
+ puts "Error when calling KvStoreApi->get_stores: #{e}"
156
156
  end
157
157
  ```
158
158
 
@@ -1,33 +1,33 @@
1
- # Fastly::ObjectStoreItemApi
1
+ # Fastly::KvStoreItemApi
2
2
 
3
3
 
4
4
  ```ruby
5
5
  require 'fastly'
6
- api_instance = Fastly::ObjectStoreItemApi.new
6
+ api_instance = Fastly::KvStoreItemApi.new
7
7
  ```
8
8
 
9
9
  ## Methods
10
10
 
11
11
  | Method | HTTP request | Description |
12
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 |
13
+ | [**delete_key_from_store**](KvStoreItemApi.md#delete_key_from_store) | **DELETE** /resources/stores/kv/{store_id}/keys/{key_name} | Delete kv store item. |
14
+ | [**get_keys**](KvStoreItemApi.md#get_keys) | **GET** /resources/stores/kv/{store_id}/keys | List kv store keys. |
15
+ | [**get_value_for_key**](KvStoreItemApi.md#get_value_for_key) | **GET** /resources/stores/kv/{store_id}/keys/{key_name} | Get the value of an kv store item |
16
+ | [**set_value_for_key**](KvStoreItemApi.md#set_value_for_key) | **PUT** /resources/stores/kv/{store_id}/keys/{key_name} | Insert an item into an kv store |
17
17
 
18
18
 
19
19
  ## `delete_key_from_store()`
20
20
 
21
21
  ```ruby
22
- delete_key_from_store(opts) # Delete object store item.
22
+ delete_key_from_store(opts) # Delete kv store item.
23
23
  ```
24
24
 
25
- Delete an item from an object store
25
+ Delete an item from an kv store
26
26
 
27
27
  ### Examples
28
28
 
29
29
  ```ruby
30
- api_instance = Fastly::ObjectStoreItemApi.new
30
+ api_instance = Fastly::KvStoreItemApi.new
31
31
  opts = {
32
32
  store_id: 'store_id_example', # String |
33
33
  key_name: 'key_name_example', # String |
@@ -35,10 +35,10 @@ opts = {
35
35
  }
36
36
 
37
37
  begin
38
- # Delete object store item.
38
+ # Delete kv store item.
39
39
  api_instance.delete_key_from_store(opts)
40
40
  rescue Fastly::ApiError => e
41
- puts "Error when calling ObjectStoreItemApi->delete_key_from_store: #{e}"
41
+ puts "Error when calling KvStoreItemApi->delete_key_from_store: #{e}"
42
42
  end
43
43
  ```
44
44
 
@@ -59,15 +59,15 @@ nil (empty response body)
59
59
  ## `get_keys()`
60
60
 
61
61
  ```ruby
62
- get_keys(opts): <InlineResponse2004> # List object store keys.
62
+ get_keys(opts): <InlineResponse2004> # List kv store keys.
63
63
  ```
64
64
 
65
- List the keys of all items within an object store.
65
+ List the keys of all items within an kv store.
66
66
 
67
67
  ### Examples
68
68
 
69
69
  ```ruby
70
- api_instance = Fastly::ObjectStoreItemApi.new
70
+ api_instance = Fastly::KvStoreItemApi.new
71
71
  opts = {
72
72
  store_id: 'store_id_example', # String |
73
73
  cursor: 'cursor_example', # String |
@@ -76,11 +76,11 @@ opts = {
76
76
  }
77
77
 
78
78
  begin
79
- # List object store keys.
79
+ # List kv store keys.
80
80
  result = api_instance.get_keys(opts)
81
81
  p result
82
82
  rescue Fastly::ApiError => e
83
- puts "Error when calling ObjectStoreItemApi->get_keys: #{e}"
83
+ puts "Error when calling KvStoreItemApi->get_keys: #{e}"
84
84
  end
85
85
  ```
86
86
 
@@ -102,7 +102,7 @@ end
102
102
  ## `get_value_for_key()`
103
103
 
104
104
  ```ruby
105
- get_value_for_key(opts): String # Get the value of an object store item
105
+ get_value_for_key(opts): String # Get the value of an kv store item
106
106
  ```
107
107
 
108
108
  Get the value associated with a key.
@@ -110,18 +110,18 @@ Get the value associated with a key.
110
110
  ### Examples
111
111
 
112
112
  ```ruby
113
- api_instance = Fastly::ObjectStoreItemApi.new
113
+ api_instance = Fastly::KvStoreItemApi.new
114
114
  opts = {
115
115
  store_id: 'store_id_example', # String |
116
116
  key_name: 'key_name_example', # String |
117
117
  }
118
118
 
119
119
  begin
120
- # Get the value of an object store item
120
+ # Get the value of an kv store item
121
121
  result = api_instance.get_value_for_key(opts)
122
122
  p result
123
123
  rescue Fastly::ApiError => e
124
- puts "Error when calling ObjectStoreItemApi->get_value_for_key: #{e}"
124
+ puts "Error when calling KvStoreItemApi->get_value_for_key: #{e}"
125
125
  end
126
126
  ```
127
127
 
@@ -141,15 +141,15 @@ end
141
141
  ## `set_value_for_key()`
142
142
 
143
143
  ```ruby
144
- set_value_for_key(opts): String # Insert an item into an object store
144
+ set_value_for_key(opts): String # Insert an item into an kv store
145
145
  ```
146
146
 
147
- Set a new value for a new or existing key in an object store.
147
+ Set a new value for a new or existing key in an kv store.
148
148
 
149
149
  ### Examples
150
150
 
151
151
  ```ruby
152
- api_instance = Fastly::ObjectStoreItemApi.new
152
+ api_instance = Fastly::KvStoreItemApi.new
153
153
  opts = {
154
154
  store_id: 'store_id_example', # String |
155
155
  key_name: 'key_name_example', # String |
@@ -164,11 +164,11 @@ opts = {
164
164
  }
165
165
 
166
166
  begin
167
- # Insert an item into an object store
167
+ # Insert an item into an kv store
168
168
  result = api_instance.set_value_for_key(opts)
169
169
  p result
170
170
  rescue Fastly::ApiError => e
171
- puts "Error when calling ObjectStoreItemApi->set_value_for_key: #{e}"
171
+ puts "Error when calling KvStoreItemApi->set_value_for_key: #{e}"
172
172
  end
173
173
  ```
174
174
 
@@ -10,6 +10,7 @@
10
10
  | **language** | **String** | The language of the Compute@Edge package. | [optional] |
11
11
  | **size** | **Integer** | Size of the Compute@Edge package in bytes. | [optional] |
12
12
  | **hashsum** | **String** | Hash of the Compute@Edge package. | [optional] |
13
+ | **files_hash** | **String** | Hash of the files within the Compute@Edge package. | [optional] |
13
14
 
14
15
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
15
16
 
@@ -140,6 +140,7 @@ List all TLS certificates.
140
140
  ```ruby
141
141
  api_instance = Fastly::TlsCertificatesApi.new
142
142
  opts = {
143
+ filter_in_use: 'filter_in_use_example', # String | Optional. Limit the returned certificates to those currently using Fastly to terminate TLS (that is, certificates associated with an activation). Permitted values: true, false.
143
144
  filter_not_after: 'filter_not_after_example', # String | Limit the returned certificates to those that expire prior to the specified date in UTC. Accepts parameters: lte (e.g., filter[not_after][lte]=2020-05-05).
144
145
  filter_tls_domains_id: 'filter_tls_domains_id_example', # String | Limit the returned certificates to those that include the specific domain.
145
146
  include: 'include_example', # String | Include related objects. Optional, comma-separated values. Permitted values: `tls_activations`.
@@ -161,6 +162,7 @@ end
161
162
 
162
163
  | Name | Type | Description | Notes |
163
164
  | ---- | ---- | ----------- | ----- |
165
+ | **filter_in_use** | **String** | Optional. Limit the returned certificates to those currently using Fastly to terminate TLS (that is, certificates associated with an activation). Permitted values: true, false. | [optional] |
164
166
  | **filter_not_after** | **String** | Limit the returned certificates to those that expire prior to the specified date in UTC. Accepts parameters: lte (e.g., filter[not_after][lte]&#x3D;2020-05-05). | [optional] |
165
167
  | **filter_tls_domains_id** | **String** | Limit the returned certificates to those that include the specific domain. | [optional] |
166
168
  | **include** | **String** | Include related objects. Optional, comma-separated values. Permitted values: `tls_activations`. | [optional] |
@@ -17,6 +17,83 @@ module Fastly
17
17
  def initialize(api_client = ApiClient.default)
18
18
  @api_client = api_client
19
19
  end
20
+ # Update multiple entries in an edge dictionary
21
+ # Update multiple items in the same dictionary. For faster updates to your service, group your changes into large batches. The maximum batch size is 1000 items. [Contact support](https://support.fastly.com/) to discuss raising this limit.
22
+ # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
23
+ # @option opts [String] :dictionary_id Alphanumeric string identifying a Dictionary. (required)
24
+ # @option opts [BulkUpdateDictionaryListRequest] :bulk_update_dictionary_list_request
25
+ # @return [InlineResponse200]
26
+ def bulk_update_dictionary_item(opts = {})
27
+ data, _status_code, _headers = bulk_update_dictionary_item_with_http_info(opts)
28
+ data
29
+ end
30
+
31
+ # Update multiple entries in an edge dictionary
32
+ # Update multiple items in the same dictionary. For faster updates to your service, group your changes into large batches. The maximum batch size is 1000 items. [Contact support](https://support.fastly.com/) to discuss raising this limit.
33
+ # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
34
+ # @option opts [String] :dictionary_id Alphanumeric string identifying a Dictionary. (required)
35
+ # @option opts [BulkUpdateDictionaryListRequest] :bulk_update_dictionary_list_request
36
+ # @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
37
+ def bulk_update_dictionary_item_with_http_info(opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: DictionaryItemApi.bulk_update_dictionary_item ...'
40
+ end
41
+ # unbox the parameters from the hash
42
+ service_id = opts[:'service_id']
43
+ dictionary_id = opts[:'dictionary_id']
44
+ # verify the required parameter 'service_id' is set
45
+ if @api_client.config.client_side_validation && service_id.nil?
46
+ fail ArgumentError, "Missing the required parameter 'service_id' when calling DictionaryItemApi.bulk_update_dictionary_item"
47
+ end
48
+ # verify the required parameter 'dictionary_id' is set
49
+ if @api_client.config.client_side_validation && dictionary_id.nil?
50
+ fail ArgumentError, "Missing the required parameter 'dictionary_id' when calling DictionaryItemApi.bulk_update_dictionary_item"
51
+ end
52
+ # resource path
53
+ local_var_path = '/service/{service_id}/dictionary/{dictionary_id}/items'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'dictionary_id' + '}', CGI.escape(dictionary_id.to_s))
54
+
55
+ # query parameters
56
+ query_params = opts[:query_params] || {}
57
+
58
+ # header parameters
59
+ header_params = opts[:header_params] || {}
60
+ # HTTP header 'Accept' (if needed)
61
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
62
+ # HTTP header 'Content-Type'
63
+ content_type = @api_client.select_header_content_type(['application/json'])
64
+ if !content_type.nil?
65
+ header_params['Content-Type'] = content_type
66
+ end
67
+
68
+ # form parameters
69
+ form_params = opts[:form_params] || {}
70
+
71
+ # http body (model)
72
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'bulk_update_dictionary_list_request'])
73
+
74
+ # return_type
75
+ return_type = opts[:debug_return_type] || 'InlineResponse200'
76
+
77
+ # auth_names
78
+ auth_names = opts[:debug_auth_names] || ['token']
79
+
80
+ new_options = opts.merge(
81
+ :operation => :"DictionaryItemApi.bulk_update_dictionary_item",
82
+ :header_params => header_params,
83
+ :query_params => query_params,
84
+ :form_params => form_params,
85
+ :body => post_body,
86
+ :auth_names => auth_names,
87
+ :return_type => return_type
88
+ )
89
+
90
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
91
+ if @api_client.config.debugging
92
+ @api_client.config.logger.debug "API called: DictionaryItemApi#bulk_update_dictionary_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
93
+ end
94
+ return data, status_code, headers
95
+ end
96
+
20
97
  # Create an entry in an edge dictionary
21
98
  # Create DictionaryItem given service, dictionary ID, item key, and item value.
22
99
  # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
@@ -11,14 +11,14 @@ Contact: oss@fastly.com
11
11
  require 'cgi'
12
12
 
13
13
  module Fastly
14
- class ObjectStoreApi
14
+ class KvStoreApi
15
15
  attr_accessor :api_client
16
16
 
17
17
  def initialize(api_client = ApiClient.default)
18
18
  @api_client = api_client
19
19
  end
20
- # Create an object store.
21
- # Create a new object store.
20
+ # Create an kv store.
21
+ # Create a new kv store.
22
22
  # @option opts [String] :location
23
23
  # @option opts [Store] :store
24
24
  # @return [StoreResponse]
@@ -27,18 +27,18 @@ module Fastly
27
27
  data
28
28
  end
29
29
 
30
- # Create an object store.
31
- # Create a new object store.
30
+ # Create an kv store.
31
+ # Create a new kv store.
32
32
  # @option opts [String] :location
33
33
  # @option opts [Store] :store
34
34
  # @return [Array<(StoreResponse, Integer, Hash)>] StoreResponse data, response status code and response headers
35
35
  def create_store_with_http_info(opts = {})
36
36
  if @api_client.config.debugging
37
- @api_client.config.logger.debug 'Calling API: ObjectStoreApi.create_store ...'
37
+ @api_client.config.logger.debug 'Calling API: KvStoreApi.create_store ...'
38
38
  end
39
39
  # unbox the parameters from the hash
40
40
  # resource path
41
- local_var_path = '/resources/stores/object'
41
+ local_var_path = '/resources/stores/kv'
42
42
 
43
43
  # query parameters
44
44
  query_params = opts[:query_params] || {}
@@ -67,7 +67,7 @@ module Fastly
67
67
  auth_names = opts[:debug_auth_names] || ['token']
68
68
 
69
69
  new_options = opts.merge(
70
- :operation => :"ObjectStoreApi.create_store",
70
+ :operation => :"KvStoreApi.create_store",
71
71
  :header_params => header_params,
72
72
  :query_params => query_params,
73
73
  :form_params => form_params,
@@ -78,13 +78,13 @@ module Fastly
78
78
 
79
79
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
80
80
  if @api_client.config.debugging
81
- @api_client.config.logger.debug "API called: ObjectStoreApi#create_store\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
81
+ @api_client.config.logger.debug "API called: KvStoreApi#create_store\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
82
  end
83
83
  return data, status_code, headers
84
84
  end
85
85
 
86
- # Delete an object store.
87
- # 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).
86
+ # Delete an kv store.
87
+ # An kv store must be empty before it can be deleted. Deleting an kv store that still contains keys will result in a `409` (Conflict).
88
88
  # @option opts [String] :store_id (required)
89
89
  # @option opts [Boolean] :force
90
90
  # @return [nil]
@@ -93,23 +93,23 @@ module Fastly
93
93
  nil
94
94
  end
95
95
 
96
- # Delete an object store.
97
- # An object store must be empty before it can be deleted. Deleting an object store that still contains keys will result in a &#x60;409&#x60; (Conflict).
96
+ # Delete an kv store.
97
+ # An kv store must be empty before it can be deleted. Deleting an kv store that still contains keys will result in a &#x60;409&#x60; (Conflict).
98
98
  # @option opts [String] :store_id (required)
99
99
  # @option opts [Boolean] :force
100
100
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
101
101
  def delete_store_with_http_info(opts = {})
102
102
  if @api_client.config.debugging
103
- @api_client.config.logger.debug 'Calling API: ObjectStoreApi.delete_store ...'
103
+ @api_client.config.logger.debug 'Calling API: KvStoreApi.delete_store ...'
104
104
  end
105
105
  # unbox the parameters from the hash
106
106
  store_id = opts[:'store_id']
107
107
  # verify the required parameter 'store_id' is set
108
108
  if @api_client.config.client_side_validation && store_id.nil?
109
- fail ArgumentError, "Missing the required parameter 'store_id' when calling ObjectStoreApi.delete_store"
109
+ fail ArgumentError, "Missing the required parameter 'store_id' when calling KvStoreApi.delete_store"
110
110
  end
111
111
  # resource path
112
- local_var_path = '/resources/stores/object/{store_id}'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s))
112
+ local_var_path = '/resources/stores/kv/{store_id}'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s))
113
113
 
114
114
  # query parameters
115
115
  query_params = opts[:query_params] || {}
@@ -131,7 +131,7 @@ module Fastly
131
131
  auth_names = opts[:debug_auth_names] || ['token']
132
132
 
133
133
  new_options = opts.merge(
134
- :operation => :"ObjectStoreApi.delete_store",
134
+ :operation => :"KvStoreApi.delete_store",
135
135
  :header_params => header_params,
136
136
  :query_params => query_params,
137
137
  :form_params => form_params,
@@ -142,13 +142,13 @@ module Fastly
142
142
 
143
143
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
144
144
  if @api_client.config.debugging
145
- @api_client.config.logger.debug "API called: ObjectStoreApi#delete_store\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
145
+ @api_client.config.logger.debug "API called: KvStoreApi#delete_store\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
146
146
  end
147
147
  return data, status_code, headers
148
148
  end
149
149
 
150
- # Describe an object store.
151
- # Get an object store by ID.
150
+ # Describe an kv store.
151
+ # Get an kv store by ID.
152
152
  # @option opts [String] :store_id (required)
153
153
  # @return [StoreResponse]
154
154
  def get_store(opts = {})
@@ -156,22 +156,22 @@ module Fastly
156
156
  data
157
157
  end
158
158
 
159
- # Describe an object store.
160
- # Get an object store by ID.
159
+ # Describe an kv store.
160
+ # Get an kv store by ID.
161
161
  # @option opts [String] :store_id (required)
162
162
  # @return [Array<(StoreResponse, Integer, Hash)>] StoreResponse data, response status code and response headers
163
163
  def get_store_with_http_info(opts = {})
164
164
  if @api_client.config.debugging
165
- @api_client.config.logger.debug 'Calling API: ObjectStoreApi.get_store ...'
165
+ @api_client.config.logger.debug 'Calling API: KvStoreApi.get_store ...'
166
166
  end
167
167
  # unbox the parameters from the hash
168
168
  store_id = opts[:'store_id']
169
169
  # verify the required parameter 'store_id' is set
170
170
  if @api_client.config.client_side_validation && store_id.nil?
171
- fail ArgumentError, "Missing the required parameter 'store_id' when calling ObjectStoreApi.get_store"
171
+ fail ArgumentError, "Missing the required parameter 'store_id' when calling KvStoreApi.get_store"
172
172
  end
173
173
  # resource path
174
- local_var_path = '/resources/stores/object/{store_id}'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s))
174
+ local_var_path = '/resources/stores/kv/{store_id}'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s))
175
175
 
176
176
  # query parameters
177
177
  query_params = opts[:query_params] || {}
@@ -194,7 +194,7 @@ module Fastly
194
194
  auth_names = opts[:debug_auth_names] || ['token']
195
195
 
196
196
  new_options = opts.merge(
197
- :operation => :"ObjectStoreApi.get_store",
197
+ :operation => :"KvStoreApi.get_store",
198
198
  :header_params => header_params,
199
199
  :query_params => query_params,
200
200
  :form_params => form_params,
@@ -205,12 +205,12 @@ module Fastly
205
205
 
206
206
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
207
207
  if @api_client.config.debugging
208
- @api_client.config.logger.debug "API called: ObjectStoreApi#get_store\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
208
+ @api_client.config.logger.debug "API called: KvStoreApi#get_store\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
209
209
  end
210
210
  return data, status_code, headers
211
211
  end
212
212
 
213
- # List object stores.
213
+ # List kv stores.
214
214
  # Get all stores for a given customer.
215
215
  # @option opts [String] :cursor
216
216
  # @option opts [Integer] :limit (default to 100)
@@ -220,18 +220,18 @@ module Fastly
220
220
  data
221
221
  end
222
222
 
223
- # List object stores.
223
+ # List kv stores.
224
224
  # Get all stores for a given customer.
225
225
  # @option opts [String] :cursor
226
226
  # @option opts [Integer] :limit (default to 100)
227
227
  # @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
228
228
  def get_stores_with_http_info(opts = {})
229
229
  if @api_client.config.debugging
230
- @api_client.config.logger.debug 'Calling API: ObjectStoreApi.get_stores ...'
230
+ @api_client.config.logger.debug 'Calling API: KvStoreApi.get_stores ...'
231
231
  end
232
232
  # unbox the parameters from the hash
233
233
  # resource path
234
- local_var_path = '/resources/stores/object'
234
+ local_var_path = '/resources/stores/kv'
235
235
 
236
236
  # query parameters
237
237
  query_params = opts[:query_params] || {}
@@ -256,7 +256,7 @@ module Fastly
256
256
  auth_names = opts[:debug_auth_names] || ['token']
257
257
 
258
258
  new_options = opts.merge(
259
- :operation => :"ObjectStoreApi.get_stores",
259
+ :operation => :"KvStoreApi.get_stores",
260
260
  :header_params => header_params,
261
261
  :query_params => query_params,
262
262
  :form_params => form_params,
@@ -267,7 +267,7 @@ module Fastly
267
267
 
268
268
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
269
269
  if @api_client.config.debugging
270
- @api_client.config.logger.debug "API called: ObjectStoreApi#get_stores\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
270
+ @api_client.config.logger.debug "API called: KvStoreApi#get_stores\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
271
271
  end
272
272
  return data, status_code, headers
273
273
  end
@@ -11,14 +11,14 @@ Contact: oss@fastly.com
11
11
  require 'cgi'
12
12
 
13
13
  module Fastly
14
- class ObjectStoreItemApi
14
+ class KvStoreItemApi
15
15
  attr_accessor :api_client
16
16
 
17
17
  def initialize(api_client = ApiClient.default)
18
18
  @api_client = api_client
19
19
  end
20
- # Delete object store item.
21
- # Delete an item from an object store
20
+ # Delete kv store item.
21
+ # Delete an item from an kv store
22
22
  # @option opts [String] :store_id (required)
23
23
  # @option opts [String] :key_name (required)
24
24
  # @option opts [Boolean] :force
@@ -28,29 +28,29 @@ module Fastly
28
28
  nil
29
29
  end
30
30
 
31
- # Delete object store item.
32
- # Delete an item from an object store
31
+ # Delete kv store item.
32
+ # Delete an item from an kv store
33
33
  # @option opts [String] :store_id (required)
34
34
  # @option opts [String] :key_name (required)
35
35
  # @option opts [Boolean] :force
36
36
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
37
37
  def delete_key_from_store_with_http_info(opts = {})
38
38
  if @api_client.config.debugging
39
- @api_client.config.logger.debug 'Calling API: ObjectStoreItemApi.delete_key_from_store ...'
39
+ @api_client.config.logger.debug 'Calling API: KvStoreItemApi.delete_key_from_store ...'
40
40
  end
41
41
  # unbox the parameters from the hash
42
42
  store_id = opts[:'store_id']
43
43
  key_name = opts[:'key_name']
44
44
  # verify the required parameter 'store_id' is set
45
45
  if @api_client.config.client_side_validation && store_id.nil?
46
- fail ArgumentError, "Missing the required parameter 'store_id' when calling ObjectStoreItemApi.delete_key_from_store"
46
+ fail ArgumentError, "Missing the required parameter 'store_id' when calling KvStoreItemApi.delete_key_from_store"
47
47
  end
48
48
  # verify the required parameter 'key_name' is set
49
49
  if @api_client.config.client_side_validation && key_name.nil?
50
- fail ArgumentError, "Missing the required parameter 'key_name' when calling ObjectStoreItemApi.delete_key_from_store"
50
+ fail ArgumentError, "Missing the required parameter 'key_name' when calling KvStoreItemApi.delete_key_from_store"
51
51
  end
52
52
  # resource path
53
- local_var_path = '/resources/stores/object/{store_id}/keys/{key_name}'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s)).sub('{' + 'key_name' + '}', CGI.escape(key_name.to_s))
53
+ local_var_path = '/resources/stores/kv/{store_id}/keys/{key_name}'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s)).sub('{' + 'key_name' + '}', CGI.escape(key_name.to_s))
54
54
 
55
55
  # query parameters
56
56
  query_params = opts[:query_params] || {}
@@ -72,7 +72,7 @@ module Fastly
72
72
  auth_names = opts[:debug_auth_names] || ['token']
73
73
 
74
74
  new_options = opts.merge(
75
- :operation => :"ObjectStoreItemApi.delete_key_from_store",
75
+ :operation => :"KvStoreItemApi.delete_key_from_store",
76
76
  :header_params => header_params,
77
77
  :query_params => query_params,
78
78
  :form_params => form_params,
@@ -83,13 +83,13 @@ module Fastly
83
83
 
84
84
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
85
85
  if @api_client.config.debugging
86
- @api_client.config.logger.debug "API called: ObjectStoreItemApi#delete_key_from_store\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
+ @api_client.config.logger.debug "API called: KvStoreItemApi#delete_key_from_store\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
87
87
  end
88
88
  return data, status_code, headers
89
89
  end
90
90
 
91
- # List object store keys.
92
- # List the keys of all items within an object store.
91
+ # List kv store keys.
92
+ # List the keys of all items within an kv store.
93
93
  # @option opts [String] :store_id (required)
94
94
  # @option opts [String] :cursor
95
95
  # @option opts [Integer] :limit (default to 100)
@@ -100,8 +100,8 @@ module Fastly
100
100
  data
101
101
  end
102
102
 
103
- # List object store keys.
104
- # List the keys of all items within an object store.
103
+ # List kv store keys.
104
+ # List the keys of all items within an kv store.
105
105
  # @option opts [String] :store_id (required)
106
106
  # @option opts [String] :cursor
107
107
  # @option opts [Integer] :limit (default to 100)
@@ -109,16 +109,16 @@ module Fastly
109
109
  # @return [Array<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
110
110
  def get_keys_with_http_info(opts = {})
111
111
  if @api_client.config.debugging
112
- @api_client.config.logger.debug 'Calling API: ObjectStoreItemApi.get_keys ...'
112
+ @api_client.config.logger.debug 'Calling API: KvStoreItemApi.get_keys ...'
113
113
  end
114
114
  # unbox the parameters from the hash
115
115
  store_id = opts[:'store_id']
116
116
  # verify the required parameter 'store_id' is set
117
117
  if @api_client.config.client_side_validation && store_id.nil?
118
- fail ArgumentError, "Missing the required parameter 'store_id' when calling ObjectStoreItemApi.get_keys"
118
+ fail ArgumentError, "Missing the required parameter 'store_id' when calling KvStoreItemApi.get_keys"
119
119
  end
120
120
  # resource path
121
- local_var_path = '/resources/stores/object/{store_id}/keys'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s))
121
+ local_var_path = '/resources/stores/kv/{store_id}/keys'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s))
122
122
 
123
123
  # query parameters
124
124
  query_params = opts[:query_params] || {}
@@ -144,7 +144,7 @@ module Fastly
144
144
  auth_names = opts[:debug_auth_names] || ['token']
145
145
 
146
146
  new_options = opts.merge(
147
- :operation => :"ObjectStoreItemApi.get_keys",
147
+ :operation => :"KvStoreItemApi.get_keys",
148
148
  :header_params => header_params,
149
149
  :query_params => query_params,
150
150
  :form_params => form_params,
@@ -155,12 +155,12 @@ module Fastly
155
155
 
156
156
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
157
157
  if @api_client.config.debugging
158
- @api_client.config.logger.debug "API called: ObjectStoreItemApi#get_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
158
+ @api_client.config.logger.debug "API called: KvStoreItemApi#get_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
159
159
  end
160
160
  return data, status_code, headers
161
161
  end
162
162
 
163
- # Get the value of an object store item
163
+ # Get the value of an kv store item
164
164
  # Get the value associated with a key.
165
165
  # @option opts [String] :store_id (required)
166
166
  # @option opts [String] :key_name (required)
@@ -170,28 +170,28 @@ module Fastly
170
170
  data
171
171
  end
172
172
 
173
- # Get the value of an object store item
173
+ # Get the value of an kv store item
174
174
  # Get the value associated with a key.
175
175
  # @option opts [String] :store_id (required)
176
176
  # @option opts [String] :key_name (required)
177
177
  # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
178
178
  def get_value_for_key_with_http_info(opts = {})
179
179
  if @api_client.config.debugging
180
- @api_client.config.logger.debug 'Calling API: ObjectStoreItemApi.get_value_for_key ...'
180
+ @api_client.config.logger.debug 'Calling API: KvStoreItemApi.get_value_for_key ...'
181
181
  end
182
182
  # unbox the parameters from the hash
183
183
  store_id = opts[:'store_id']
184
184
  key_name = opts[:'key_name']
185
185
  # verify the required parameter 'store_id' is set
186
186
  if @api_client.config.client_side_validation && store_id.nil?
187
- fail ArgumentError, "Missing the required parameter 'store_id' when calling ObjectStoreItemApi.get_value_for_key"
187
+ fail ArgumentError, "Missing the required parameter 'store_id' when calling KvStoreItemApi.get_value_for_key"
188
188
  end
189
189
  # verify the required parameter 'key_name' is set
190
190
  if @api_client.config.client_side_validation && key_name.nil?
191
- fail ArgumentError, "Missing the required parameter 'key_name' when calling ObjectStoreItemApi.get_value_for_key"
191
+ fail ArgumentError, "Missing the required parameter 'key_name' when calling KvStoreItemApi.get_value_for_key"
192
192
  end
193
193
  # resource path
194
- local_var_path = '/resources/stores/object/{store_id}/keys/{key_name}'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s)).sub('{' + 'key_name' + '}', CGI.escape(key_name.to_s))
194
+ local_var_path = '/resources/stores/kv/{store_id}/keys/{key_name}'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s)).sub('{' + 'key_name' + '}', CGI.escape(key_name.to_s))
195
195
 
196
196
  # query parameters
197
197
  query_params = opts[:query_params] || {}
@@ -214,7 +214,7 @@ module Fastly
214
214
  auth_names = opts[:debug_auth_names] || ['token']
215
215
 
216
216
  new_options = opts.merge(
217
- :operation => :"ObjectStoreItemApi.get_value_for_key",
217
+ :operation => :"KvStoreItemApi.get_value_for_key",
218
218
  :header_params => header_params,
219
219
  :query_params => query_params,
220
220
  :form_params => form_params,
@@ -225,13 +225,13 @@ module Fastly
225
225
 
226
226
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
227
227
  if @api_client.config.debugging
228
- @api_client.config.logger.debug "API called: ObjectStoreItemApi#get_value_for_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
228
+ @api_client.config.logger.debug "API called: KvStoreItemApi#get_value_for_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
229
229
  end
230
230
  return data, status_code, headers
231
231
  end
232
232
 
233
- # Insert an item into an object store
234
- # Set a new value for a new or existing key in an object store.
233
+ # Insert an item into an kv store
234
+ # Set a new value for a new or existing key in an kv store.
235
235
  # @option opts [String] :store_id (required)
236
236
  # @option opts [String] :key_name (required)
237
237
  # @option opts [Integer] :if_generation_match
@@ -248,8 +248,8 @@ module Fastly
248
248
  data
249
249
  end
250
250
 
251
- # Insert an item into an object store
252
- # Set a new value for a new or existing key in an object store.
251
+ # Insert an item into an kv store
252
+ # Set a new value for a new or existing key in an kv store.
253
253
  # @option opts [String] :store_id (required)
254
254
  # @option opts [String] :key_name (required)
255
255
  # @option opts [Integer] :if_generation_match
@@ -263,21 +263,21 @@ module Fastly
263
263
  # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
264
264
  def set_value_for_key_with_http_info(opts = {})
265
265
  if @api_client.config.debugging
266
- @api_client.config.logger.debug 'Calling API: ObjectStoreItemApi.set_value_for_key ...'
266
+ @api_client.config.logger.debug 'Calling API: KvStoreItemApi.set_value_for_key ...'
267
267
  end
268
268
  # unbox the parameters from the hash
269
269
  store_id = opts[:'store_id']
270
270
  key_name = opts[:'key_name']
271
271
  # verify the required parameter 'store_id' is set
272
272
  if @api_client.config.client_side_validation && store_id.nil?
273
- fail ArgumentError, "Missing the required parameter 'store_id' when calling ObjectStoreItemApi.set_value_for_key"
273
+ fail ArgumentError, "Missing the required parameter 'store_id' when calling KvStoreItemApi.set_value_for_key"
274
274
  end
275
275
  # verify the required parameter 'key_name' is set
276
276
  if @api_client.config.client_side_validation && key_name.nil?
277
- fail ArgumentError, "Missing the required parameter 'key_name' when calling ObjectStoreItemApi.set_value_for_key"
277
+ fail ArgumentError, "Missing the required parameter 'key_name' when calling KvStoreItemApi.set_value_for_key"
278
278
  end
279
279
  # resource path
280
- local_var_path = '/resources/stores/object/{store_id}/keys/{key_name}'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s)).sub('{' + 'key_name' + '}', CGI.escape(key_name.to_s))
280
+ local_var_path = '/resources/stores/kv/{store_id}/keys/{key_name}'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s)).sub('{' + 'key_name' + '}', CGI.escape(key_name.to_s))
281
281
 
282
282
  # query parameters
283
283
  query_params = opts[:query_params] || {}
@@ -312,7 +312,7 @@ module Fastly
312
312
  auth_names = opts[:debug_auth_names] || ['token']
313
313
 
314
314
  new_options = opts.merge(
315
- :operation => :"ObjectStoreItemApi.set_value_for_key",
315
+ :operation => :"KvStoreItemApi.set_value_for_key",
316
316
  :header_params => header_params,
317
317
  :query_params => query_params,
318
318
  :form_params => form_params,
@@ -323,7 +323,7 @@ module Fastly
323
323
 
324
324
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
325
325
  if @api_client.config.debugging
326
- @api_client.config.logger.debug "API called: ObjectStoreItemApi#set_value_for_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
326
+ @api_client.config.logger.debug "API called: KvStoreItemApi#set_value_for_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
327
327
  end
328
328
  return data, status_code, headers
329
329
  end
@@ -206,6 +206,7 @@ module Fastly
206
206
 
207
207
  # List TLS certificates
208
208
  # List all TLS certificates.
209
+ # @option opts [String] :filter_in_use Optional. Limit the returned certificates to those currently using Fastly to terminate TLS (that is, certificates associated with an activation). Permitted values: true, false.
209
210
  # @option opts [String] :filter_not_after Limit the returned certificates to those that expire prior to the specified date in UTC. Accepts parameters: lte (e.g., filter[not_after][lte]&#x3D;2020-05-05).
210
211
  # @option opts [String] :filter_tls_domains_id Limit the returned certificates to those that include the specific domain.
211
212
  # @option opts [String] :include Include related objects. Optional, comma-separated values. Permitted values: &#x60;tls_activations&#x60;.
@@ -220,6 +221,7 @@ module Fastly
220
221
 
221
222
  # List TLS certificates
222
223
  # List all TLS certificates.
224
+ # @option opts [String] :filter_in_use Optional. Limit the returned certificates to those currently using Fastly to terminate TLS (that is, certificates associated with an activation). Permitted values: true, false.
223
225
  # @option opts [String] :filter_not_after Limit the returned certificates to those that expire prior to the specified date in UTC. Accepts parameters: lte (e.g., filter[not_after][lte]&#x3D;2020-05-05).
224
226
  # @option opts [String] :filter_tls_domains_id Limit the returned certificates to those that include the specific domain.
225
227
  # @option opts [String] :include Include related objects. Optional, comma-separated values. Permitted values: &#x60;tls_activations&#x60;.
@@ -249,6 +251,7 @@ module Fastly
249
251
 
250
252
  # query parameters
251
253
  query_params = opts[:query_params] || {}
254
+ query_params[:'filter[in_use]'] = opts[:'filter_in_use'] if !opts[:'filter_in_use'].nil?
252
255
  query_params[:'filter[not_after]'] = opts[:'filter_not_after'] if !opts[:'filter_not_after'].nil?
253
256
  query_params[:'filter[tls_domains.id]'] = opts[:'filter_tls_domains_id'] if !opts[:'filter_tls_domains_id'].nil?
254
257
  query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil?
@@ -32,6 +32,9 @@ module Fastly
32
32
  # Hash of the Compute@Edge package.
33
33
  attr_accessor :hashsum
34
34
 
35
+ # Hash of the files within the Compute@Edge package.
36
+ attr_accessor :files_hash
37
+
35
38
  # Attribute mapping from ruby-style variable name to JSON key.
36
39
  def self.attribute_map
37
40
  {
@@ -40,7 +43,8 @@ module Fastly
40
43
  :'authors' => :'authors',
41
44
  :'language' => :'language',
42
45
  :'size' => :'size',
43
- :'hashsum' => :'hashsum'
46
+ :'hashsum' => :'hashsum',
47
+ :'files_hash' => :'files_hash'
44
48
  }
45
49
  end
46
50
 
@@ -57,7 +61,8 @@ module Fastly
57
61
  :'authors' => :'Array<String>',
58
62
  :'language' => :'String',
59
63
  :'size' => :'Integer',
60
- :'hashsum' => :'String'
64
+ :'hashsum' => :'String',
65
+ :'files_hash' => :'String'
61
66
  }
62
67
  end
63
68
 
@@ -107,6 +112,10 @@ module Fastly
107
112
  if attributes.key?(:'hashsum')
108
113
  self.hashsum = attributes[:'hashsum']
109
114
  end
115
+
116
+ if attributes.key?(:'files_hash')
117
+ self.files_hash = attributes[:'files_hash']
118
+ end
110
119
  end
111
120
 
112
121
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -132,7 +141,8 @@ module Fastly
132
141
  authors == o.authors &&
133
142
  language == o.language &&
134
143
  size == o.size &&
135
- hashsum == o.hashsum
144
+ hashsum == o.hashsum &&
145
+ files_hash == o.files_hash
136
146
  end
137
147
 
138
148
  # @see the `==` method
@@ -144,7 +154,7 @@ module Fastly
144
154
  # Calculates hash code according to all attributes.
145
155
  # @return [Integer] Hash code
146
156
  def hash
147
- [name, description, authors, language, size, hashsum].hash
157
+ [name, description, authors, language, size, hashsum, files_hash].hash
148
158
  end
149
159
 
150
160
  # Builds the object from hash
@@ -9,5 +9,5 @@ Contact: oss@fastly.com
9
9
  =end
10
10
 
11
11
  module Fastly
12
- VERSION = '4.4.0'
12
+ VERSION = '5.0.0'
13
13
  end
data/lib/fastly.rb CHANGED
@@ -637,6 +637,8 @@ require 'fastly/api/iam_roles_api'
637
637
  require 'fastly/api/iam_service_groups_api'
638
638
  require 'fastly/api/iam_user_groups_api'
639
639
  require 'fastly/api/invitations_api'
640
+ require 'fastly/api/kv_store_api'
641
+ require 'fastly/api/kv_store_item_api'
640
642
  require 'fastly/api/logging_azureblob_api'
641
643
  require 'fastly/api/logging_bigquery_api'
642
644
  require 'fastly/api/logging_cloudfiles_api'
@@ -664,8 +666,6 @@ require 'fastly/api/logging_splunk_api'
664
666
  require 'fastly/api/logging_sumologic_api'
665
667
  require 'fastly/api/logging_syslog_api'
666
668
  require 'fastly/api/mutual_authentication_api'
667
- require 'fastly/api/object_store_api'
668
- require 'fastly/api/object_store_item_api'
669
669
  require 'fastly/api/package_api'
670
670
  require 'fastly/api/pool_api'
671
671
  require 'fastly/api/pop_api'
data/sig.json CHANGED
@@ -1 +1 @@
1
- {"G": "6ded2172", "D": "dcbc61cf"}
1
+ {"G": "fe405794", "D": "07b55669"}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastly
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.0
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fastly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-26 00:00:00.000000000 Z
11
+ date: 2023-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -222,6 +222,8 @@ files:
222
222
  - docs/InvitationsApi.md
223
223
  - docs/InvitationsResponse.md
224
224
  - docs/InvitationsResponseAllOf.md
225
+ - docs/KvStoreApi.md
226
+ - docs/KvStoreItemApi.md
225
227
  - docs/LoggingAddressAndPort.md
226
228
  - docs/LoggingAzureblob.md
227
229
  - docs/LoggingAzureblobAllOf.md
@@ -345,8 +347,6 @@ files:
345
347
  - docs/MutualAuthenticationResponseDataAllOf.md
346
348
  - docs/MutualAuthenticationsResponse.md
347
349
  - docs/MutualAuthenticationsResponseAllOf.md
348
- - docs/ObjectStoreApi.md
349
- - docs/ObjectStoreItemApi.md
350
350
  - docs/Package.md
351
351
  - docs/PackageApi.md
352
352
  - docs/PackageMetadata.md
@@ -771,6 +771,8 @@ files:
771
771
  - lib/fastly/api/iam_service_groups_api.rb
772
772
  - lib/fastly/api/iam_user_groups_api.rb
773
773
  - lib/fastly/api/invitations_api.rb
774
+ - lib/fastly/api/kv_store_api.rb
775
+ - lib/fastly/api/kv_store_item_api.rb
774
776
  - lib/fastly/api/logging_azureblob_api.rb
775
777
  - lib/fastly/api/logging_bigquery_api.rb
776
778
  - lib/fastly/api/logging_cloudfiles_api.rb
@@ -798,8 +800,6 @@ files:
798
800
  - lib/fastly/api/logging_sumologic_api.rb
799
801
  - lib/fastly/api/logging_syslog_api.rb
800
802
  - lib/fastly/api/mutual_authentication_api.rb
801
- - lib/fastly/api/object_store_api.rb
802
- - lib/fastly/api/object_store_item_api.rb
803
803
  - lib/fastly/api/package_api.rb
804
804
  - lib/fastly/api/pool_api.rb
805
805
  - lib/fastly/api/pop_api.rb