fastly 5.0.0 → 5.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +15 -8
  5. data/docs/BulkUpdateConfigStoreItem.md +12 -0
  6. data/docs/{BulkUpdateDictionaryItemAllOf.md → BulkUpdateConfigStoreItemAllOf.md} +1 -1
  7. data/docs/BulkUpdateConfigStoreListRequest.md +10 -0
  8. data/docs/ConfigStore.md +10 -0
  9. data/docs/ConfigStoreApi.md +277 -0
  10. data/docs/ConfigStoreInfoResponse.md +10 -0
  11. data/docs/ConfigStoreItem.md +11 -0
  12. data/docs/ConfigStoreItemApi.md +302 -0
  13. data/docs/ConfigStoreItemResponse.md +15 -0
  14. data/docs/ConfigStoreItemResponseAllOf.md +10 -0
  15. data/docs/ConfigStoreResponse.md +14 -0
  16. data/docs/ConfigStoreResponseAllOf.md +10 -0
  17. data/lib/fastly/api/config_store_api.rb +463 -0
  18. data/lib/fastly/api/config_store_item_api.rb +529 -0
  19. data/lib/fastly/models/bulk_update_config_store_item.rb +278 -0
  20. data/lib/fastly/models/{bulk_update_dictionary_item_all_of.rb → bulk_update_config_store_item_all_of.rb} +3 -3
  21. data/lib/fastly/models/bulk_update_config_store_list_request.rb +218 -0
  22. data/lib/fastly/models/bulk_update_dictionary_item.rb +1 -1
  23. data/lib/fastly/models/config_store.rb +217 -0
  24. data/lib/fastly/models/config_store_info_response.rb +217 -0
  25. data/lib/fastly/models/config_store_item.rb +227 -0
  26. data/lib/fastly/models/config_store_item_response.rb +278 -0
  27. data/lib/fastly/models/config_store_item_response_all_of.rb +216 -0
  28. data/lib/fastly/models/config_store_response.rb +269 -0
  29. data/lib/fastly/models/config_store_response_all_of.rb +217 -0
  30. data/lib/fastly/version.rb +1 -1
  31. data/lib/fastly.rb +12 -1
  32. data/sig.json +1 -1
  33. metadata +26 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be03f22d46f7b8adf3bf9cd63806b5ff90264542cdcd060eaa0915d4e2a9a6b4
4
- data.tar.gz: 452994d5b059c890b99b778739e5996256e14d662cc4e439bbe7e629017e1743
3
+ metadata.gz: b93b9f85396dbba0a782e8c8c7339dfe2ce829ef0e2ad25dd0729a84608d1f6d
4
+ data.tar.gz: ef011e88e4c8cef9fa00d9d2b624654d68126b71dc9b6e9d542c11619f5b2f99
5
5
  SHA512:
6
- metadata.gz: 9e3b07f06f6d0a8b260b570b80e31737c11fbb056bcf1f0a68d88df8c54597d75d46782ceea958b9c6700cfecd1b649338533f70b12d5b1f41a60bd5750cb54a
7
- data.tar.gz: dab6128c528d940b60c188179592ca3a29471f95192bbce13e46a4847404fdf57526398574472ad85d2cca423981e042508a33ff53f1c3b02cd284bf502e59bd
6
+ metadata.gz: 89195a7fae5998ba1b522d39bf38d3faf0a9d6ba0224fe03be1709d29de36df1c0f7cf67a35764a609da65a3f34d9ddd9c1fa47bdd882021539b63cfb8ace06c
7
+ data.tar.gz: f30bed3602326ef9377ca4b33674dc765ccae820d846d935011878652455e4055af21787389606dbd0b61bd7536c5278a6d805bdbe5e5fb21f231da11131860e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [v5.1.0](https://github.com/fastly/fastly-ruby/releases/tag/release/v5.1.0) (2023-05-17)
4
+
5
+ **Enhancements:**
6
+
7
+ - feat(config_store): add Config Store endpoints.
8
+
3
9
  ## [v5.0.0](https://github.com/fastly/fastly-ruby/releases/tag/release/v5.0.0) (2023-05-16)
4
10
 
5
11
  **Breaking changes:**
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fastly (5.0.0)
4
+ fastly (5.1.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', '~> 5.0.0'
15
+ gem 'fastly', '~> 5.1.0'
16
16
  ```
17
17
 
18
18
  Then run `bundle install`.
@@ -103,6 +103,20 @@ Class | Method | Description
103
103
  [*Fastly::ConditionApi*](docs/ConditionApi.md) | [**get_condition**](docs/ConditionApi.md#get_condition) | Describe a condition
104
104
  [*Fastly::ConditionApi*](docs/ConditionApi.md) | [**list_conditions**](docs/ConditionApi.md#list_conditions) | List conditions
105
105
  [*Fastly::ConditionApi*](docs/ConditionApi.md) | [**update_condition**](docs/ConditionApi.md#update_condition) | Update a condition
106
+ [*Fastly::ConfigStoreApi*](docs/ConfigStoreApi.md) | [**create_config_store**](docs/ConfigStoreApi.md#create_config_store) | Create a config store
107
+ [*Fastly::ConfigStoreApi*](docs/ConfigStoreApi.md) | [**delete_config_store**](docs/ConfigStoreApi.md#delete_config_store) | Delete a config store
108
+ [*Fastly::ConfigStoreApi*](docs/ConfigStoreApi.md) | [**get_config_store**](docs/ConfigStoreApi.md#get_config_store) | Describe a config store
109
+ [*Fastly::ConfigStoreApi*](docs/ConfigStoreApi.md) | [**get_config_store_info**](docs/ConfigStoreApi.md#get_config_store_info) | Get config store metadata
110
+ [*Fastly::ConfigStoreApi*](docs/ConfigStoreApi.md) | [**list_config_store_services**](docs/ConfigStoreApi.md#list_config_store_services) | List linked services
111
+ [*Fastly::ConfigStoreApi*](docs/ConfigStoreApi.md) | [**list_config_stores**](docs/ConfigStoreApi.md#list_config_stores) | List config stores
112
+ [*Fastly::ConfigStoreApi*](docs/ConfigStoreApi.md) | [**update_config_store**](docs/ConfigStoreApi.md#update_config_store) | Update a config store
113
+ [*Fastly::ConfigStoreItemApi*](docs/ConfigStoreItemApi.md) | [**bulk_update_config_store_item**](docs/ConfigStoreItemApi.md#bulk_update_config_store_item) | Update multiple entries in a config store
114
+ [*Fastly::ConfigStoreItemApi*](docs/ConfigStoreItemApi.md) | [**create_config_store_item**](docs/ConfigStoreItemApi.md#create_config_store_item) | Create an entry in a config store
115
+ [*Fastly::ConfigStoreItemApi*](docs/ConfigStoreItemApi.md) | [**delete_config_store_item**](docs/ConfigStoreItemApi.md#delete_config_store_item) | Delete an item from a config store
116
+ [*Fastly::ConfigStoreItemApi*](docs/ConfigStoreItemApi.md) | [**get_config_store_item**](docs/ConfigStoreItemApi.md#get_config_store_item) | Get an item from a config store
117
+ [*Fastly::ConfigStoreItemApi*](docs/ConfigStoreItemApi.md) | [**list_config_store_items**](docs/ConfigStoreItemApi.md#list_config_store_items) | List items in a config store
118
+ [*Fastly::ConfigStoreItemApi*](docs/ConfigStoreItemApi.md) | [**update_config_store_item**](docs/ConfigStoreItemApi.md#update_config_store_item) | Update an entry in a config store
119
+ [*Fastly::ConfigStoreItemApi*](docs/ConfigStoreItemApi.md) | [**upsert_config_store_item**](docs/ConfigStoreItemApi.md#upsert_config_store_item) | Insert or update an entry in a config store
106
120
  [*Fastly::ContactApi*](docs/ContactApi.md) | [**delete_contact**](docs/ContactApi.md#delete_contact) | Delete a contact
107
121
  [*Fastly::ContactApi*](docs/ContactApi.md) | [**list_contacts**](docs/ContactApi.md#list_contacts) | List contacts
108
122
  [*Fastly::CustomerApi*](docs/CustomerApi.md) | [**delete_customer**](docs/CustomerApi.md#delete_customer) | Delete a customer
@@ -497,13 +511,6 @@ The fastly-ruby API client currently does not support the following endpoints:
497
511
  - [`/metrics/domains/services/{service_id}`](https://developer.fastly.com/reference/api/metrics-stats/domain-inspector/historical) (GET)
498
512
  - [`/metrics/origins/services/{service_id}`](https://developer.fastly.com/reference/api/metrics-stats/origin-inspector/historical) (GET)
499
513
  - [`/rate-limiters/{rate_limiter_id}`](https://developer.fastly.com/reference/api/vcl-services/rate-limiter) (PUT)
500
- - [`/resources/stores/config/{config_store_id}/info`](https://developer.fastly.com/reference/api/services/resources/config-store) (GET)
501
- - [`/resources/stores/config/{config_store_id}/item/{config_store_item_key}`](https://developer.fastly.com/reference/api/services/resources/config-store-item) (DELETE, GET, PATCH, PUT)
502
- - [`/resources/stores/config/{config_store_id}/item`](https://developer.fastly.com/reference/api/services/resources/config-store-item) (POST)
503
- - [`/resources/stores/config/{config_store_id}/items`](https://developer.fastly.com/reference/api/services/resources/config-store-item) (GET, PATCH)
504
- - [`/resources/stores/config/{config_store_id}/services`](https://developer.fastly.com/reference/api/services/resources/config-store) (GET)
505
- - [`/resources/stores/config/{config_store_id}`](https://developer.fastly.com/reference/api/services/resources/config-store) (DELETE, GET, PUT)
506
- - [`/resources/stores/config`](https://developer.fastly.com/reference/api/services/resources/config-store) (GET, POST)
507
514
  - [`/resources/stores/secret/client-key`](https://developer.fastly.com/reference/api/services/resources/secret-store) (POST)
508
515
  - [`/resources/stores/secret/signing-key`](https://developer.fastly.com/reference/api/services/resources/secret-store) (GET)
509
516
  - [`/resources/stores/secret/{store_id}/secrets/{secret_name}`](https://developer.fastly.com/reference/api/services/resources/secret) (DELETE, GET)
@@ -0,0 +1,12 @@
1
+ # Fastly::BulkUpdateConfigStoreItem
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **item_key** | **String** | Item key, maximum 256 characters. | [optional] |
8
+ | **item_value** | **String** | Item value, maximum 8000 characters. | [optional] |
9
+ | **op** | **String** | | [optional] |
10
+
11
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
12
+
@@ -1,4 +1,4 @@
1
- # Fastly::BulkUpdateDictionaryItemAllOf
1
+ # Fastly::BulkUpdateConfigStoreItemAllOf
2
2
 
3
3
  ## Properties
4
4
 
@@ -0,0 +1,10 @@
1
+ # Fastly::BulkUpdateConfigStoreListRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **items** | [**Array<BulkUpdateConfigStoreItem>**](BulkUpdateConfigStoreItem.md) | | [optional] |
8
+
9
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
10
+
@@ -0,0 +1,10 @@
1
+ # Fastly::ConfigStore
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | The name of the config store. | [optional] |
8
+
9
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
10
+
@@ -0,0 +1,277 @@
1
+ # Fastly::ConfigStoreApi
2
+
3
+
4
+ ```ruby
5
+ require 'fastly'
6
+ api_instance = Fastly::ConfigStoreApi.new
7
+ ```
8
+
9
+ ## Methods
10
+
11
+ | Method | HTTP request | Description |
12
+ | ------ | ------------ | ----------- |
13
+ | [**create_config_store**](ConfigStoreApi.md#create_config_store) | **POST** /resources/stores/config | Create a config store |
14
+ | [**delete_config_store**](ConfigStoreApi.md#delete_config_store) | **DELETE** /resources/stores/config/{config_store_id} | Delete a config store |
15
+ | [**get_config_store**](ConfigStoreApi.md#get_config_store) | **GET** /resources/stores/config/{config_store_id} | Describe a config store |
16
+ | [**get_config_store_info**](ConfigStoreApi.md#get_config_store_info) | **GET** /resources/stores/config/{config_store_id}/info | Get config store metadata |
17
+ | [**list_config_store_services**](ConfigStoreApi.md#list_config_store_services) | **GET** /resources/stores/config/{config_store_id}/services | List linked services |
18
+ | [**list_config_stores**](ConfigStoreApi.md#list_config_stores) | **GET** /resources/stores/config | List config stores |
19
+ | [**update_config_store**](ConfigStoreApi.md#update_config_store) | **PUT** /resources/stores/config/{config_store_id} | Update a config store |
20
+
21
+
22
+ ## `create_config_store()`
23
+
24
+ ```ruby
25
+ create_config_store(opts): <ConfigStoreResponse> # Create a config store
26
+ ```
27
+
28
+ Create a config store.
29
+
30
+ ### Examples
31
+
32
+ ```ruby
33
+ api_instance = Fastly::ConfigStoreApi.new
34
+ opts = {
35
+ name: 'name_example', # String | The name of the config store.
36
+ }
37
+
38
+ begin
39
+ # Create a config store
40
+ result = api_instance.create_config_store(opts)
41
+ p result
42
+ rescue Fastly::ApiError => e
43
+ puts "Error when calling ConfigStoreApi->create_config_store: #{e}"
44
+ end
45
+ ```
46
+
47
+ ### Options
48
+
49
+ | Name | Type | Description | Notes |
50
+ | ---- | ---- | ----------- | ----- |
51
+ | **name** | **String** | The name of the config store. | [optional] |
52
+
53
+ ### Return type
54
+
55
+ [**ConfigStoreResponse**](ConfigStoreResponse.md)
56
+
57
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
58
+ [[Back to README]](../../README.md)
59
+ ## `delete_config_store()`
60
+
61
+ ```ruby
62
+ delete_config_store(opts): <InlineResponse200> # Delete a config store
63
+ ```
64
+
65
+ Delete a config store.
66
+
67
+ ### Examples
68
+
69
+ ```ruby
70
+ api_instance = Fastly::ConfigStoreApi.new
71
+ opts = {
72
+ config_store_id: 'config_store_id_example', # String | An alphanumeric string identifying the config store.
73
+ }
74
+
75
+ begin
76
+ # Delete a config store
77
+ result = api_instance.delete_config_store(opts)
78
+ p result
79
+ rescue Fastly::ApiError => e
80
+ puts "Error when calling ConfigStoreApi->delete_config_store: #{e}"
81
+ end
82
+ ```
83
+
84
+ ### Options
85
+
86
+ | Name | Type | Description | Notes |
87
+ | ---- | ---- | ----------- | ----- |
88
+ | **config_store_id** | **String** | An alphanumeric string identifying the config store. | |
89
+
90
+ ### Return type
91
+
92
+ [**InlineResponse200**](InlineResponse200.md)
93
+
94
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
95
+ [[Back to README]](../../README.md)
96
+ ## `get_config_store()`
97
+
98
+ ```ruby
99
+ get_config_store(opts): <ConfigStoreResponse> # Describe a config store
100
+ ```
101
+
102
+ Describe a config store by its identifier.
103
+
104
+ ### Examples
105
+
106
+ ```ruby
107
+ api_instance = Fastly::ConfigStoreApi.new
108
+ opts = {
109
+ config_store_id: 'config_store_id_example', # String | An alphanumeric string identifying the config store.
110
+ }
111
+
112
+ begin
113
+ # Describe a config store
114
+ result = api_instance.get_config_store(opts)
115
+ p result
116
+ rescue Fastly::ApiError => e
117
+ puts "Error when calling ConfigStoreApi->get_config_store: #{e}"
118
+ end
119
+ ```
120
+
121
+ ### Options
122
+
123
+ | Name | Type | Description | Notes |
124
+ | ---- | ---- | ----------- | ----- |
125
+ | **config_store_id** | **String** | An alphanumeric string identifying the config store. | |
126
+
127
+ ### Return type
128
+
129
+ [**ConfigStoreResponse**](ConfigStoreResponse.md)
130
+
131
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
132
+ [[Back to README]](../../README.md)
133
+ ## `get_config_store_info()`
134
+
135
+ ```ruby
136
+ get_config_store_info(opts): <ConfigStoreInfoResponse> # Get config store metadata
137
+ ```
138
+
139
+ Retrieve metadata for a single config store.
140
+
141
+ ### Examples
142
+
143
+ ```ruby
144
+ api_instance = Fastly::ConfigStoreApi.new
145
+ opts = {
146
+ config_store_id: 'config_store_id_example', # String | An alphanumeric string identifying the config store.
147
+ }
148
+
149
+ begin
150
+ # Get config store metadata
151
+ result = api_instance.get_config_store_info(opts)
152
+ p result
153
+ rescue Fastly::ApiError => e
154
+ puts "Error when calling ConfigStoreApi->get_config_store_info: #{e}"
155
+ end
156
+ ```
157
+
158
+ ### Options
159
+
160
+ | Name | Type | Description | Notes |
161
+ | ---- | ---- | ----------- | ----- |
162
+ | **config_store_id** | **String** | An alphanumeric string identifying the config store. | |
163
+
164
+ ### Return type
165
+
166
+ [**ConfigStoreInfoResponse**](ConfigStoreInfoResponse.md)
167
+
168
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
169
+ [[Back to README]](../../README.md)
170
+ ## `list_config_store_services()`
171
+
172
+ ```ruby
173
+ list_config_store_services(opts): Object # List linked services
174
+ ```
175
+
176
+ List services linked to a config store
177
+
178
+ ### Examples
179
+
180
+ ```ruby
181
+ api_instance = Fastly::ConfigStoreApi.new
182
+ opts = {
183
+ config_store_id: 'config_store_id_example', # String | An alphanumeric string identifying the config store.
184
+ }
185
+
186
+ begin
187
+ # List linked services
188
+ result = api_instance.list_config_store_services(opts)
189
+ p result
190
+ rescue Fastly::ApiError => e
191
+ puts "Error when calling ConfigStoreApi->list_config_store_services: #{e}"
192
+ end
193
+ ```
194
+
195
+ ### Options
196
+
197
+ | Name | Type | Description | Notes |
198
+ | ---- | ---- | ----------- | ----- |
199
+ | **config_store_id** | **String** | An alphanumeric string identifying the config store. | |
200
+
201
+ ### Return type
202
+
203
+ **Object**
204
+
205
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
206
+ [[Back to README]](../../README.md)
207
+ ## `list_config_stores()`
208
+
209
+ ```ruby
210
+ list_config_stores: <Array<ConfigStoreResponse>> # List config stores
211
+ ```
212
+
213
+ List config stores.
214
+
215
+ ### Examples
216
+
217
+ ```ruby
218
+ api_instance = Fastly::ConfigStoreApi.new
219
+
220
+ begin
221
+ # List config stores
222
+ result = api_instance.list_config_stores
223
+ p result
224
+ rescue Fastly::ApiError => e
225
+ puts "Error when calling ConfigStoreApi->list_config_stores: #{e}"
226
+ end
227
+ ```
228
+
229
+ ### Options
230
+
231
+ This endpoint does not need any parameter.
232
+
233
+ ### Return type
234
+
235
+ [**Array&lt;ConfigStoreResponse&gt;**](ConfigStoreResponse.md)
236
+
237
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
238
+ [[Back to README]](../../README.md)
239
+ ## `update_config_store()`
240
+
241
+ ```ruby
242
+ update_config_store(opts): <ConfigStoreResponse> # Update a config store
243
+ ```
244
+
245
+ Update a config store.
246
+
247
+ ### Examples
248
+
249
+ ```ruby
250
+ api_instance = Fastly::ConfigStoreApi.new
251
+ opts = {
252
+ config_store_id: 'config_store_id_example', # String | An alphanumeric string identifying the config store.
253
+ name: 'name_example', # String | The name of the config store.
254
+ }
255
+
256
+ begin
257
+ # Update a config store
258
+ result = api_instance.update_config_store(opts)
259
+ p result
260
+ rescue Fastly::ApiError => e
261
+ puts "Error when calling ConfigStoreApi->update_config_store: #{e}"
262
+ end
263
+ ```
264
+
265
+ ### Options
266
+
267
+ | Name | Type | Description | Notes |
268
+ | ---- | ---- | ----------- | ----- |
269
+ | **config_store_id** | **String** | An alphanumeric string identifying the config store. | |
270
+ | **name** | **String** | The name of the config store. | [optional] |
271
+
272
+ ### Return type
273
+
274
+ [**ConfigStoreResponse**](ConfigStoreResponse.md)
275
+
276
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
277
+ [[Back to README]](../../README.md)
@@ -0,0 +1,10 @@
1
+ # Fastly::ConfigStoreInfoResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **item_count** | **Integer** | The number of items currently in the config store. | [optional] |
8
+
9
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
10
+
@@ -0,0 +1,11 @@
1
+ # Fastly::ConfigStoreItem
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **item_key** | **String** | Item key, maximum 256 characters. | [optional] |
8
+ | **item_value** | **String** | Item value, maximum 8000 characters. | [optional] |
9
+
10
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
11
+