fastly 5.3.0 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (224) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +62 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +86 -63
  5. data/docs/AclEntry.md +1 -1
  6. data/docs/AclEntryApi.md +176 -0
  7. data/docs/AclEntryResponse.md +1 -1
  8. data/docs/ApexRedirectApi.md +56 -0
  9. data/docs/Batch.md +12 -0
  10. data/docs/BatchErrors.md +13 -0
  11. data/docs/BulkUpdateAclEntry.md +1 -1
  12. data/docs/ClientKey.md +12 -0
  13. data/docs/ContactApi.md +50 -0
  14. data/docs/Content.md +2 -2
  15. data/docs/ContentApi.md +52 -0
  16. data/docs/DirectorApi.md +42 -0
  17. data/docs/DomainInspector.md +12 -0
  18. data/docs/DomainInspectorEntry.md +11 -0
  19. data/docs/DomainInspectorEntryDimensions.md +12 -0
  20. data/docs/DomainInspectorHistoricalApi.md +72 -0
  21. data/docs/DomainInspectorMeasurements.md +71 -0
  22. data/docs/DomainInspectorRealtimeApi.md +132 -0
  23. data/docs/DomainInspectorRealtimeEntry.md +12 -0
  24. data/docs/EventAttributes.md +1 -1
  25. data/docs/{EventsResponseAllOf.md → EventData.md} +1 -1
  26. data/docs/HistoricalDomains.md +13 -0
  27. data/docs/HistoricalDomainsData.md +11 -0
  28. data/docs/HistoricalDomainsMeta.md +18 -0
  29. data/docs/HistoricalDomainsMetaFilters.md +12 -0
  30. data/docs/HistoricalDomainsResponse.md +13 -0
  31. data/docs/HistoricalDomainsResponseAllOf.md +10 -0
  32. data/docs/{HistoricalFieldResultsAttributesAllOf.md → HistoricalFieldResultsAttributesAdditional.md} +1 -1
  33. data/docs/HistoricalOriginsResponse.md +13 -0
  34. data/docs/HistoricalOriginsResponseAllOf.md +10 -0
  35. data/docs/IamRolesApi.md +157 -0
  36. data/docs/IamServiceGroupsApi.md +157 -0
  37. data/docs/IamUserGroupsApi.md +315 -0
  38. data/docs/InlineResponse2005.md +11 -0
  39. data/docs/InlineResponse2006.md +11 -0
  40. data/docs/InlineResponse2007.md +10 -0
  41. data/docs/InlineResponse400.md +10 -0
  42. data/docs/LegacyWafConfigurationSet.md +11 -0
  43. data/docs/LegacyWafConfigurationSetsApi.md +125 -0
  44. data/docs/LegacyWafFirewall.md +18 -0
  45. data/docs/LegacyWafFirewallApi.md +352 -0
  46. data/docs/LegacyWafOwasp.md +38 -0
  47. data/docs/LegacyWafOwaspApi.md +138 -0
  48. data/docs/LegacyWafRule.md +14 -0
  49. data/docs/LegacyWafRuleApi.md +184 -0
  50. data/docs/LegacyWafRuleStatus.md +12 -0
  51. data/docs/LegacyWafRuleStatusApi.md +202 -0
  52. data/docs/LegacyWafRuleset.md +11 -0
  53. data/docs/LegacyWafRulesetApi.md +136 -0
  54. data/docs/LegacyWafTag.md +10 -0
  55. data/docs/LegacyWafTagApi.md +58 -0
  56. data/docs/LegacyWafUpdateStatus.md +15 -0
  57. data/docs/LegacyWafUpdateStatusApi.md +102 -0
  58. data/docs/LoggingKafkaApi.md +42 -0
  59. data/docs/LoggingKinesisApi.md +42 -0
  60. data/docs/OriginInspector.md +12 -0
  61. data/docs/OriginInspectorDimensions.md +12 -0
  62. data/docs/OriginInspectorEntry.md +11 -0
  63. data/docs/OriginInspectorHistorical.md +13 -0
  64. data/docs/OriginInspectorHistoricalApi.md +72 -0
  65. data/docs/OriginInspectorHistoricalData.md +11 -0
  66. data/docs/OriginInspectorHistoricalMeta.md +18 -0
  67. data/docs/OriginInspectorHistoricalMetaFilters.md +12 -0
  68. data/docs/OriginInspectorMeasurements.md +161 -0
  69. data/docs/OriginInspectorRealtimeApi.md +132 -0
  70. data/docs/OriginInspectorRealtimeEntry.md +12 -0
  71. data/docs/OriginInspectorRealtimeEntryRecorded.md +9 -0
  72. data/docs/OriginInspectorSubsequentRequestTimestamp.md +9 -0
  73. data/docs/OriginInspectorValues.md +161 -0
  74. data/docs/PaginationCursorMeta.md +11 -0
  75. data/docs/ReadOnlyServiceId.md +9 -0
  76. data/docs/ReadOnlyVersion.md +9 -0
  77. data/docs/RealtimeEntry.md +2 -2
  78. data/docs/RealtimeEntryAggregated.md +227 -0
  79. data/docs/RealtimeEntryRecorded.md +9 -0
  80. data/docs/RealtimeMeasurements.md +1 -1
  81. data/docs/RecordedTimestamp.md +9 -0
  82. data/docs/RequestSettingsApi.md +40 -0
  83. data/docs/ResponseObjectApi.md +82 -0
  84. data/docs/SchemasSnippetResponse.md +1 -1
  85. data/docs/Secret.md +12 -0
  86. data/docs/SecretResponse.md +13 -0
  87. data/docs/SecretStore.md +10 -0
  88. data/docs/SecretStoreApi.md +233 -0
  89. data/docs/SecretStoreItemApi.md +255 -0
  90. data/docs/SecretStoreResponse.md +12 -0
  91. data/docs/ServiceAuthorizationsApi.md +76 -0
  92. data/docs/SigningKey.md +10 -0
  93. data/docs/Snippet.md +1 -1
  94. data/docs/SnippetApi.md +46 -4
  95. data/docs/SnippetResponse.md +1 -1
  96. data/docs/SubsequentRequestTimestamp.md +9 -0
  97. data/docs/SudoApi.md +52 -0
  98. data/docs/SudoGenericTokenError.md +10 -0
  99. data/docs/SudoRequest.md +12 -0
  100. data/docs/SudoResponse.md +10 -0
  101. data/docs/TokensAdditionalProps.md +9 -0
  102. data/docs/TokensApi.md +70 -0
  103. data/docs/ValidatorResult.md +1 -5
  104. data/docs/ValidatorResultData.md +12 -0
  105. data/docs/ValidatorResultDataAttributes.md +14 -0
  106. data/docs/{ValidatorResultMessages.md → ValidatorResultDataAttributesMessages.md} +2 -2
  107. data/docs/Values.md +71 -0
  108. data/docs/VclApi.md +8 -6
  109. data/docs/VclSyntaxHighlightingResponse.md +10 -0
  110. data/docs/WafActiveRulesApi.md +41 -0
  111. data/lib/fastly/api/acl_entry_api.rb +332 -0
  112. data/lib/fastly/api/apex_redirect_api.rb +111 -0
  113. data/lib/fastly/api/contact_api.rb +90 -0
  114. data/lib/fastly/api/content_api.rb +79 -0
  115. data/lib/fastly/api/director_api.rb +82 -0
  116. data/lib/fastly/api/domain_inspector_historical_api.rb +125 -0
  117. data/lib/fastly/api/domain_inspector_realtime_api.rb +223 -0
  118. data/lib/fastly/api/iam_roles_api.rb +271 -0
  119. data/lib/fastly/api/iam_service_groups_api.rb +271 -0
  120. data/lib/fastly/api/iam_user_groups_api.rb +547 -0
  121. data/lib/fastly/api/legacy_waf_configuration_sets_api.rb +209 -0
  122. data/lib/fastly/api/legacy_waf_firewall_api.rb +627 -0
  123. data/lib/fastly/api/legacy_waf_owasp_api.rb +244 -0
  124. data/lib/fastly/api/legacy_waf_rule_api.rb +307 -0
  125. data/lib/fastly/api/legacy_waf_rule_status_api.rb +366 -0
  126. data/lib/fastly/api/legacy_waf_ruleset_api.rb +237 -0
  127. data/lib/fastly/api/legacy_waf_tag_api.rb +96 -0
  128. data/lib/fastly/api/legacy_waf_update_status_api.rb +184 -0
  129. data/lib/fastly/api/logging_kafka_api.rb +82 -0
  130. data/lib/fastly/api/logging_kinesis_api.rb +82 -0
  131. data/lib/fastly/api/origin_inspector_historical_api.rb +125 -0
  132. data/lib/fastly/api/origin_inspector_realtime_api.rb +223 -0
  133. data/lib/fastly/api/request_settings_api.rb +75 -0
  134. data/lib/fastly/api/response_object_api.rb +157 -0
  135. data/lib/fastly/api/secret_store_api.rb +381 -0
  136. data/lib/fastly/api/secret_store_item_api.rb +437 -0
  137. data/lib/fastly/api/service_authorizations_api.rb +126 -0
  138. data/lib/fastly/api/snippet_api.rb +88 -6
  139. data/lib/fastly/api/sudo_api.rb +83 -0
  140. data/lib/fastly/api/tokens_api.rb +122 -0
  141. data/lib/fastly/api/vcl_api.rb +10 -10
  142. data/lib/fastly/api/waf_active_rules_api.rb +75 -0
  143. data/lib/fastly/configuration.rb +504 -0
  144. data/lib/fastly/models/acl_entry.rb +1 -1
  145. data/lib/fastly/models/acl_entry_response.rb +1 -1
  146. data/lib/fastly/models/batch.rb +239 -0
  147. data/lib/fastly/models/batch_errors.rb +247 -0
  148. data/lib/fastly/models/bulk_update_acl_entry.rb +1 -1
  149. data/lib/fastly/models/client_key.rb +239 -0
  150. data/lib/fastly/models/content.rb +8 -4
  151. data/lib/fastly/models/domain.rb +1 -0
  152. data/lib/fastly/models/domain_inspector.rb +238 -0
  153. data/lib/fastly/models/domain_inspector_entry.rb +228 -0
  154. data/lib/fastly/models/domain_inspector_entry_dimensions.rb +238 -0
  155. data/lib/fastly/models/domain_inspector_measurements.rb +828 -0
  156. data/lib/fastly/models/domain_inspector_realtime_entry.rb +241 -0
  157. data/lib/fastly/models/event_attributes.rb +4 -2
  158. data/lib/fastly/models/{events_response_all_of.rb → event_data.rb} +3 -3
  159. data/lib/fastly/models/events_response.rb +1 -1
  160. data/lib/fastly/models/historical_domains.rb +249 -0
  161. data/lib/fastly/models/historical_domains_data.rb +228 -0
  162. data/lib/fastly/models/historical_domains_meta.rb +297 -0
  163. data/lib/fastly/models/historical_domains_meta_filters.rb +235 -0
  164. data/lib/fastly/models/historical_domains_response.rb +257 -0
  165. data/lib/fastly/models/historical_domains_response_all_of.rb +219 -0
  166. data/lib/fastly/models/historical_field_results_attributes.rb +1 -1
  167. data/lib/fastly/models/{historical_field_results_attributes_all_of.rb → historical_field_results_attributes_additional.rb} +3 -3
  168. data/lib/fastly/models/historical_origins_response.rb +257 -0
  169. data/lib/fastly/models/historical_origins_response_all_of.rb +219 -0
  170. data/lib/fastly/models/inline_response2005.rb +227 -0
  171. data/lib/fastly/models/inline_response2006.rb +227 -0
  172. data/lib/fastly/models/inline_response2007.rb +218 -0
  173. data/lib/fastly/models/inline_response400.rb +250 -0
  174. data/lib/fastly/models/legacy_waf_configuration_set.rb +227 -0
  175. data/lib/fastly/models/legacy_waf_firewall.rb +297 -0
  176. data/lib/fastly/models/legacy_waf_owasp.rb +527 -0
  177. data/lib/fastly/models/legacy_waf_rule.rb +257 -0
  178. data/lib/fastly/models/legacy_waf_rule_status.rb +237 -0
  179. data/lib/fastly/models/legacy_waf_ruleset.rb +227 -0
  180. data/lib/fastly/models/legacy_waf_tag.rb +217 -0
  181. data/lib/fastly/models/legacy_waf_update_status.rb +267 -0
  182. data/lib/fastly/models/origin_inspector.rb +238 -0
  183. data/lib/fastly/models/origin_inspector_dimensions.rb +238 -0
  184. data/lib/fastly/models/origin_inspector_entry.rb +228 -0
  185. data/lib/fastly/models/origin_inspector_historical.rb +249 -0
  186. data/lib/fastly/models/origin_inspector_historical_data.rb +225 -0
  187. data/lib/fastly/models/origin_inspector_historical_meta.rb +297 -0
  188. data/lib/fastly/models/origin_inspector_historical_meta_filters.rb +235 -0
  189. data/lib/fastly/models/origin_inspector_measurements.rb +1728 -0
  190. data/lib/fastly/models/origin_inspector_realtime_entry.rb +241 -0
  191. data/lib/fastly/models/origin_inspector_realtime_entry_recorded.rb +208 -0
  192. data/lib/fastly/models/origin_inspector_subsequent_request_timestamp.rb +208 -0
  193. data/lib/fastly/models/origin_inspector_values.rb +1728 -0
  194. data/lib/fastly/models/pagination_cursor_meta.rb +227 -0
  195. data/lib/fastly/models/read_only_service_id.rb +207 -0
  196. data/lib/fastly/models/read_only_version.rb +207 -0
  197. data/lib/fastly/models/realtime_entry.rb +2 -7
  198. data/lib/fastly/models/realtime_entry_aggregated.rb +2397 -0
  199. data/lib/fastly/models/realtime_entry_recorded.rb +208 -0
  200. data/lib/fastly/models/realtime_measurements.rb +4 -2
  201. data/lib/fastly/models/recorded_timestamp.rb +208 -0
  202. data/lib/fastly/models/schemas_snippet_response.rb +3 -3
  203. data/lib/fastly/models/secret.rb +238 -0
  204. data/lib/fastly/models/secret_response.rb +249 -0
  205. data/lib/fastly/models/secret_store.rb +217 -0
  206. data/lib/fastly/models/secret_store_response.rb +238 -0
  207. data/lib/fastly/models/signing_key.rb +218 -0
  208. data/lib/fastly/models/snippet.rb +3 -3
  209. data/lib/fastly/models/snippet_response.rb +3 -3
  210. data/lib/fastly/models/subsequent_request_timestamp.rb +208 -0
  211. data/lib/fastly/models/sudo_generic_token_error.rb +216 -0
  212. data/lib/fastly/models/sudo_request.rb +244 -0
  213. data/lib/fastly/models/sudo_response.rb +217 -0
  214. data/lib/fastly/models/tokens_additional_props.rb +227 -0
  215. data/lib/fastly/models/validator_result.rb +7 -84
  216. data/lib/fastly/models/validator_result_data.rb +234 -0
  217. data/lib/fastly/models/validator_result_data_attributes.rb +293 -0
  218. data/lib/fastly/models/{validator_result_messages.rb → validator_result_data_attributes_messages.rb} +4 -4
  219. data/lib/fastly/models/values.rb +828 -0
  220. data/lib/fastly/models/vcl_syntax_highlighting_response.rb +217 -0
  221. data/lib/fastly/version.rb +1 -1
  222. data/lib/fastly.rb +79 -3
  223. data/sig.json +1 -1
  224. metadata +160 -8
data/docs/SnippetApi.md CHANGED
@@ -15,6 +15,7 @@ api_instance = Fastly::SnippetApi.new
15
15
  | [**get_snippet**](SnippetApi.md#get_snippet) | **GET** /service/{service_id}/version/{version_id}/snippet/{snippet_name} | Get a versioned snippet |
16
16
  | [**get_snippet_dynamic**](SnippetApi.md#get_snippet_dynamic) | **GET** /service/{service_id}/snippet/{snippet_id} | Get a dynamic snippet |
17
17
  | [**list_snippets**](SnippetApi.md#list_snippets) | **GET** /service/{service_id}/version/{version_id}/snippet | List snippets |
18
+ | [**update_snippet**](SnippetApi.md#update_snippet) | **PUT** /service/{service_id}/version/{version_id}/snippet/{snippet_name} | Update a versioned snippet |
18
19
  | [**update_snippet_dynamic**](SnippetApi.md#update_snippet_dynamic) | **PUT** /service/{service_id}/snippet/{snippet_id} | Update a dynamic snippet |
19
20
 
20
21
 
@@ -34,7 +35,7 @@ opts = {
34
35
  service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
35
36
  version_id: 56, # Integer | Integer identifying a service version.
36
37
  name: 'name_example', # String | The name for the snippet.
37
- dynamic: 0, # Integer | Sets the snippet version.
38
+ dynamic: '0', # String | Sets the snippet version.
38
39
  type: 'init', # String | The location in generated VCL where the snippet should be placed.
39
40
  content: 'content_example', # String | The VCL code that specifies exactly what the snippet does.
40
41
  priority: 'priority_example', # String | Priority determines execution order. Lower numbers execute first.
@@ -56,7 +57,7 @@ end
56
57
  | **service_id** | **String** | Alphanumeric string identifying the service. | |
57
58
  | **version_id** | **Integer** | Integer identifying a service version. | |
58
59
  | **name** | **String** | The name for the snippet. | [optional] |
59
- | **dynamic** | **Integer** | Sets the snippet version. | [optional] |
60
+ | **dynamic** | **String** | Sets the snippet version. | [optional] |
60
61
  | **type** | **String** | The location in generated VCL where the snippet should be placed. | [optional] |
61
62
  | **content** | **String** | The VCL code that specifies exactly what the snippet does. | [optional] |
62
63
  | **priority** | **String** | Priority determines execution order. Lower numbers execute first. | [optional][default to '100'] |
@@ -225,6 +226,47 @@ end
225
226
 
226
227
  [**Array<SnippetResponse>**](SnippetResponse.md)
227
228
 
229
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
230
+ [[Back to README]](../../README.md)
231
+ ## `update_snippet()`
232
+
233
+ ```ruby
234
+ update_snippet(opts): <SnippetResponse> # Update a versioned snippet
235
+ ```
236
+
237
+ Update a specific snippet for a particular service and version.
238
+
239
+ ### Examples
240
+
241
+ ```ruby
242
+ api_instance = Fastly::SnippetApi.new
243
+ opts = {
244
+ service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
245
+ version_id: 56, # Integer | Integer identifying a service version.
246
+ snippet_name: 'snippet_name_example', # String | The name for the snippet.
247
+ }
248
+
249
+ begin
250
+ # Update a versioned snippet
251
+ result = api_instance.update_snippet(opts)
252
+ p result
253
+ rescue Fastly::ApiError => e
254
+ puts "Error when calling SnippetApi->update_snippet: #{e}"
255
+ end
256
+ ```
257
+
258
+ ### Options
259
+
260
+ | Name | Type | Description | Notes |
261
+ | ---- | ---- | ----------- | ----- |
262
+ | **service_id** | **String** | Alphanumeric string identifying the service. | |
263
+ | **version_id** | **Integer** | Integer identifying a service version. | |
264
+ | **snippet_name** | **String** | The name for the snippet. | |
265
+
266
+ ### Return type
267
+
268
+ [**SnippetResponse**](SnippetResponse.md)
269
+
228
270
  [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
229
271
  [[Back to README]](../../README.md)
230
272
  ## `update_snippet_dynamic()`
@@ -243,7 +285,7 @@ opts = {
243
285
  service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
244
286
  snippet_id: 'snippet_id_example', # String | Alphanumeric string identifying a VCL Snippet.
245
287
  name: 'name_example', # String | The name for the snippet.
246
- dynamic: 0, # Integer | Sets the snippet version.
288
+ dynamic: '0', # String | Sets the snippet version.
247
289
  type: 'init', # String | The location in generated VCL where the snippet should be placed.
248
290
  content: 'content_example', # String | The VCL code that specifies exactly what the snippet does.
249
291
  priority: 'priority_example', # String | Priority determines execution order. Lower numbers execute first.
@@ -265,7 +307,7 @@ end
265
307
  | **service_id** | **String** | Alphanumeric string identifying the service. | |
266
308
  | **snippet_id** | **String** | Alphanumeric string identifying a VCL Snippet. | |
267
309
  | **name** | **String** | The name for the snippet. | [optional] |
268
- | **dynamic** | **Integer** | Sets the snippet version. | [optional] |
310
+ | **dynamic** | **String** | Sets the snippet version. | [optional] |
269
311
  | **type** | **String** | The location in generated VCL where the snippet should be placed. | [optional] |
270
312
  | **content** | **String** | The VCL code that specifies exactly what the snippet does. | [optional] |
271
313
  | **priority** | **String** | Priority determines execution order. Lower numbers execute first. | [optional][default to &#39;100&#39;] |
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **name** | **String** | The name for the snippet. | [optional] |
8
- | **dynamic** | **Integer** | Sets the snippet version. | [optional] |
8
+ | **dynamic** | **String** | Sets the snippet version. | [optional] |
9
9
  | **type** | **String** | The location in generated VCL where the snippet should be placed. | [optional] |
10
10
  | **content** | **String** | The VCL code that specifies exactly what the snippet does. | [optional] |
11
11
  | **priority** | **String** | Priority determines execution order. Lower numbers execute first. | [optional][default to &#39;100&#39;] |
@@ -0,0 +1,9 @@
1
+ # Fastly::SubsequentRequestTimestamp
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
9
+
data/docs/SudoApi.md ADDED
@@ -0,0 +1,52 @@
1
+ # Fastly::SudoApi
2
+
3
+
4
+ ```ruby
5
+ require 'fastly'
6
+ api_instance = Fastly::SudoApi.new
7
+ ```
8
+
9
+ ## Methods
10
+
11
+ | Method | HTTP request | Description |
12
+ | ------ | ------------ | ----------- |
13
+ | [**request_sudo_access**](SudoApi.md#request_sudo_access) | **POST** /sudo | Request Sudo access |
14
+
15
+
16
+ ## `request_sudo_access()`
17
+
18
+ ```ruby
19
+ request_sudo_access(opts): <SudoResponse> # Request Sudo access
20
+ ```
21
+
22
+ Re-authenticate to allow the provided user to obtain sudo access.
23
+
24
+ ### Examples
25
+
26
+ ```ruby
27
+ api_instance = Fastly::SudoApi.new
28
+ opts = {
29
+ sudo_request: Fastly::SudoRequest.new({username: 'username_example', password: 'password_example'}), # SudoRequest |
30
+ }
31
+
32
+ begin
33
+ # Request Sudo access
34
+ result = api_instance.request_sudo_access(opts)
35
+ p result
36
+ rescue Fastly::ApiError => e
37
+ puts "Error when calling SudoApi->request_sudo_access: #{e}"
38
+ end
39
+ ```
40
+
41
+ ### Options
42
+
43
+ | Name | Type | Description | Notes |
44
+ | ---- | ---- | ----------- | ----- |
45
+ | **sudo_request** | [**SudoRequest**](SudoRequest.md) | | [optional] |
46
+
47
+ ### Return type
48
+
49
+ [**SudoResponse**](SudoResponse.md)
50
+
51
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
52
+ [[Back to README]](../../README.md)
@@ -0,0 +1,10 @@
1
+ # Fastly::SudoGenericTokenError
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **msg** | **String** | | [optional] |
8
+
9
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
10
+
@@ -0,0 +1,12 @@
1
+ # Fastly::SudoRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **username** | **String** | | |
8
+ | **password** | **String** | | |
9
+ | **expiry_time** | **String** | | [optional] |
10
+
11
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
12
+
@@ -0,0 +1,10 @@
1
+ # Fastly::SudoResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **expiry_time** | **Time** | A UTC time-stamp of when sudo access will expire. If blank, sudo access expires five minutes after the request. | [optional] |
8
+
9
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
10
+
@@ -0,0 +1,9 @@
1
+ # Fastly::TokensAdditionalProps
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
9
+
data/docs/TokensApi.md CHANGED
@@ -10,6 +10,8 @@ api_instance = Fastly::TokensApi.new
10
10
 
11
11
  | Method | HTTP request | Description |
12
12
  | ------ | ------------ | ----------- |
13
+ | [**bulk_revoke_tokens**](TokensApi.md#bulk_revoke_tokens) | **DELETE** /tokens | Revoke multiple tokens |
14
+ | [**create_token**](TokensApi.md#create_token) | **POST** /tokens | Create a token |
13
15
  | [**get_token**](TokensApi.md#get_token) | **GET** /tokens/{token_id} | Get a token |
14
16
  | [**get_token_current**](TokensApi.md#get_token_current) | **GET** /tokens/self | Get the current token |
15
17
  | [**list_tokens_customer**](TokensApi.md#list_tokens_customer) | **GET** /customer/{customer_id}/tokens | List tokens for a customer |
@@ -18,6 +20,74 @@ api_instance = Fastly::TokensApi.new
18
20
  | [**revoke_token_current**](TokensApi.md#revoke_token_current) | **DELETE** /tokens/self | Revoke the current token |
19
21
 
20
22
 
23
+ ## `bulk_revoke_tokens()`
24
+
25
+ ```ruby
26
+ bulk_revoke_tokens(opts) # Revoke multiple tokens
27
+ ```
28
+
29
+ Revoke Tokens in bulk format. Users may only revoke their own tokens. Superusers may revoke tokens of others.
30
+
31
+ ### Examples
32
+
33
+ ```ruby
34
+ api_instance = Fastly::TokensApi.new
35
+ opts = {
36
+ request_body: { key: 3.56}, # Hash<String, Object> |
37
+ }
38
+
39
+ begin
40
+ # Revoke multiple tokens
41
+ api_instance.bulk_revoke_tokens(opts)
42
+ rescue Fastly::ApiError => e
43
+ puts "Error when calling TokensApi->bulk_revoke_tokens: #{e}"
44
+ end
45
+ ```
46
+
47
+ ### Options
48
+
49
+ | Name | Type | Description | Notes |
50
+ | ---- | ---- | ----------- | ----- |
51
+ | **request_body** | [**Hash&lt;String, Object&gt;**](Object.md) | | [optional] |
52
+
53
+ ### Return type
54
+
55
+ nil (empty response body)
56
+
57
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
58
+ [[Back to README]](../../README.md)
59
+ ## `create_token()`
60
+
61
+ ```ruby
62
+ create_token: <TokenCreatedResponse> # Create a token
63
+ ```
64
+
65
+ Create an API token. If two-factor authentication is enabled for your account, review [the instructions](/reference/api/auth-tokens/user/) for including a one-time password in the request.
66
+
67
+ ### Examples
68
+
69
+ ```ruby
70
+ api_instance = Fastly::TokensApi.new
71
+
72
+ begin
73
+ # Create a token
74
+ result = api_instance.create_token
75
+ p result
76
+ rescue Fastly::ApiError => e
77
+ puts "Error when calling TokensApi->create_token: #{e}"
78
+ end
79
+ ```
80
+
81
+ ### Options
82
+
83
+ This endpoint does not need any parameter.
84
+
85
+ ### Return type
86
+
87
+ [**TokenCreatedResponse**](TokenCreatedResponse.md)
88
+
89
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
90
+ [[Back to README]](../../README.md)
21
91
  ## `get_token()`
22
92
 
23
93
  ```ruby
@@ -4,11 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **msg** | **String** | | [optional] |
8
- | **status** | **String** | | [optional] |
9
- | **errors** | **Array&lt;String&gt;** | | [optional] |
10
- | **warnings** | **Array&lt;String&gt;** | | [optional] |
11
- | **messages** | [**Array&lt;ValidatorResultMessages&gt;**](ValidatorResultMessages.md) | | [optional] |
7
+ | **data** | [**ValidatorResultData**](ValidatorResultData.md) | | [optional] |
12
8
 
13
9
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
14
10
 
@@ -0,0 +1,12 @@
1
+ # Fastly::ValidatorResultData
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional] |
8
+ | **type** | **String** | | [optional] |
9
+ | **attributes** | [**ValidatorResultDataAttributes**](ValidatorResultDataAttributes.md) | | [optional] |
10
+
11
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
12
+
@@ -0,0 +1,14 @@
1
+ # Fastly::ValidatorResultDataAttributes
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **msg** | **String** | | [optional] |
8
+ | **status** | **String** | | [optional] |
9
+ | **errors** | **Array&lt;String&gt;** | | [optional] |
10
+ | **warnings** | **Array&lt;String&gt;** | | [optional] |
11
+ | **messages** | [**Array&lt;ValidatorResultDataAttributesMessages&gt;**](ValidatorResultDataAttributesMessages.md) | | [optional] |
12
+
13
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
14
+
@@ -1,4 +1,4 @@
1
- # Fastly::ValidatorResultMessages
1
+ # Fastly::ValidatorResultDataAttributesMessages
2
2
 
3
3
  ## Properties
4
4
 
@@ -7,7 +7,7 @@
7
7
  | **type** | **String** | | |
8
8
  | **warning** | **Boolean** | | |
9
9
  | **message** | **String** | | |
10
- | **tokens** | **Array&lt;Hash&lt;String, AnyOfstringnumber&gt;&gt;** | | |
10
+ | **tokens** | **Array&lt;Hash&lt;String, TokensAdditionalProps&gt;&gt;** | | |
11
11
 
12
12
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
13
13
 
data/docs/Values.md ADDED
@@ -0,0 +1,71 @@
1
+ # Fastly::Values
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **edge_requests** | **Integer** | Number of requests sent by end users to Fastly. | [optional] |
8
+ | **edge_resp_header_bytes** | **Integer** | Total header bytes delivered from Fastly to the end user. | [optional] |
9
+ | **edge_resp_body_bytes** | **Integer** | Total body bytes delivered from Fastly to the end user. | [optional] |
10
+ | **status_1xx** | **Integer** | Number of 1xx \&quot;Informational\&quot; category status codes delivered. | [optional] |
11
+ | **status_2xx** | **Integer** | Number of 2xx \&quot;Success\&quot; status codes delivered. | [optional] |
12
+ | **status_3xx** | **Integer** | Number of 3xx \&quot;Redirection\&quot; codes delivered. | [optional] |
13
+ | **status_4xx** | **Integer** | Number of 4xx \&quot;Client Error\&quot; codes delivered. | [optional] |
14
+ | **status_5xx** | **Integer** | Number of 5xx \&quot;Server Error\&quot; codes delivered. | [optional] |
15
+ | **status_200** | **Integer** | Number of responses delivered with status code 200 (Success). | [optional] |
16
+ | **status_204** | **Integer** | Number of responses delivered with status code 204 (No Content). | [optional] |
17
+ | **status_206** | **Integer** | Number of responses delivered with status code 206 (Partial Content). | [optional] |
18
+ | **status_301** | **Integer** | Number of responses delivered with status code 301 (Moved Permanently). | [optional] |
19
+ | **status_302** | **Integer** | Number of responses delivered with status code 302 (Found). | [optional] |
20
+ | **status_304** | **Integer** | Number of responses delivered with status code 304 (Not Modified). | [optional] |
21
+ | **status_400** | **Integer** | Number of responses delivered with status code 400 (Bad Request). | [optional] |
22
+ | **status_401** | **Integer** | Number of responses delivered with status code 401 (Unauthorized). | [optional] |
23
+ | **status_403** | **Integer** | Number of responses delivered with status code 403 (Forbidden). | [optional] |
24
+ | **status_404** | **Integer** | Number of responses delivered with status code 404 (Not Found). | [optional] |
25
+ | **status_416** | **Integer** | Number of responses delivered with status code 416 (Range Not Satisfiable). | [optional] |
26
+ | **status_429** | **Integer** | Number of responses delivered with status code 429 (Too Many Requests). | [optional] |
27
+ | **status_500** | **Integer** | Number of responses delivered with status code 500 (Internal Server Error). | [optional] |
28
+ | **status_501** | **Integer** | Number of responses delivered with status code 501 (Not Implemented). | [optional] |
29
+ | **status_502** | **Integer** | Number of responses delivered with status code 502 (Bad Gateway). | [optional] |
30
+ | **status_503** | **Integer** | Number of responses delivered with status code 503 (Service Unavailable). | [optional] |
31
+ | **status_504** | **Integer** | Number of responses delivered with status code 504 (Gateway Timeout). | [optional] |
32
+ | **status_505** | **Integer** | Number of responses delivered with status code 505 (HTTP Version Not Supported). | [optional] |
33
+ | **requests** | **Integer** | Number of requests processed. | [optional] |
34
+ | **resp_header_bytes** | **Integer** | Total header bytes delivered. | [optional] |
35
+ | **resp_body_bytes** | **Integer** | Total body bytes delivered. | [optional] |
36
+ | **bereq_header_bytes** | **Integer** | Total header bytes sent to origin. | [optional] |
37
+ | **bereq_body_bytes** | **Integer** | Total body bytes sent to origin. | [optional] |
38
+ | **edge_hit_requests** | **Integer** | Number of requests sent by end users to Fastly that resulted in a hit at the edge. | [optional] |
39
+ | **edge_miss_requests** | **Integer** | Number of requests sent by end users to Fastly that resulted in a miss at the edge. | [optional] |
40
+ | **origin_fetches** | **Integer** | Number of requests sent to origin. | [optional] |
41
+ | **origin_fetch_resp_header_bytes** | **Integer** | Total header bytes received from origin. | [optional] |
42
+ | **origin_fetch_resp_body_bytes** | **Integer** | Total body bytes received from origin. | [optional] |
43
+ | **bandwidth** | **Integer** | Total bytes delivered (`resp_header_bytes` + `resp_body_bytes` + `bereq_header_bytes` + `bereq_body_bytes`). | [optional] |
44
+ | **edge_hit_ratio** | **Float** | Ratio of cache hits to cache misses at the edge, between 0 and 1 (`edge_hit_requests` / (`edge_hit_requests` + `edge_miss_requests`)). | [optional] |
45
+ | **origin_offload** | **Float** | Ratio of response bytes delivered from the edge compared to what is delivered from origin, between 0 and 1. (`edge_resp_body_bytes` + `edge_resp_header_bytes`) / (`origin_fetch_resp_body_bytes` + `origin_fetch_resp_header_bytes` + `edge_resp_body_bytes` + `edge_resp_header_bytes`). | [optional] |
46
+ | **origin_status_200** | **Integer** | Number of responses received from origin with status code 200 (Success). | [optional] |
47
+ | **origin_status_204** | **Integer** | Number of responses received from origin with status code 204 (No Content). | [optional] |
48
+ | **origin_status_206** | **Integer** | Number of responses received from origin with status code 206 (Partial Content). | [optional] |
49
+ | **origin_status_301** | **Integer** | Number of responses received from origin with status code 301 (Moved Permanently). | [optional] |
50
+ | **origin_status_302** | **Integer** | Number of responses received from origin with status code 302 (Found). | [optional] |
51
+ | **origin_status_304** | **Integer** | Number of responses received from origin with status code 304 (Not Modified). | [optional] |
52
+ | **origin_status_400** | **Integer** | Number of responses received from origin with status code 400 (Bad Request). | [optional] |
53
+ | **origin_status_401** | **Integer** | Number of responses received from origin with status code 401 (Unauthorized). | [optional] |
54
+ | **origin_status_403** | **Integer** | Number of responses received from origin with status code 403 (Forbidden). | [optional] |
55
+ | **origin_status_404** | **Integer** | Number of responses received from origin with status code 404 (Not Found). | [optional] |
56
+ | **origin_status_416** | **Integer** | Number of responses received from origin with status code 416 (Range Not Satisfiable). | [optional] |
57
+ | **origin_status_429** | **Integer** | Number of responses received from origin with status code 429 (Too Many Requests). | [optional] |
58
+ | **origin_status_500** | **Integer** | Number of responses received from origin with status code 500 (Internal Server Error). | [optional] |
59
+ | **origin_status_501** | **Integer** | Number of responses received from origin with status code 501 (Not Implemented). | [optional] |
60
+ | **origin_status_502** | **Integer** | Number of responses received from origin with status code 502 (Bad Gateway). | [optional] |
61
+ | **origin_status_503** | **Integer** | Number of responses received from origin with status code 503 (Service Unavailable). | [optional] |
62
+ | **origin_status_504** | **Integer** | Number of responses received from origin with status code 504 (Gateway Timeout). | [optional] |
63
+ | **origin_status_505** | **Integer** | Number of responses received from origin with status code 505 (HTTP Version Not Supported). | [optional] |
64
+ | **origin_status_1xx** | **Integer** | Number of \&quot;Informational\&quot; category status codes received from origin. | [optional] |
65
+ | **origin_status_2xx** | **Integer** | Number of \&quot;Success\&quot; status codes received from origin. | [optional] |
66
+ | **origin_status_3xx** | **Integer** | Number of \&quot;Redirection\&quot; codes received from origin. | [optional] |
67
+ | **origin_status_4xx** | **Integer** | Number of \&quot;Client Error\&quot; codes received from origin. | [optional] |
68
+ | **origin_status_5xx** | **Integer** | Number of \&quot;Server Error\&quot; codes received from origin. | [optional] |
69
+
70
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
71
+
data/docs/VclApi.md CHANGED
@@ -235,7 +235,7 @@ end
235
235
  ## `get_custom_vcl_generated_highlighted()`
236
236
 
237
237
  ```ruby
238
- get_custom_vcl_generated_highlighted(opts) # Get the generated VCL with syntax highlighting
238
+ get_custom_vcl_generated_highlighted(opts): <VclSyntaxHighlightingResponse> # Get the generated VCL with syntax highlighting
239
239
  ```
240
240
 
241
241
  Display the content of generated VCL with HTML syntax highlighting. Include line numbers by sending `lineno=true` as a request parameter.
@@ -251,7 +251,8 @@ opts = {
251
251
 
252
252
  begin
253
253
  # Get the generated VCL with syntax highlighting
254
- api_instance.get_custom_vcl_generated_highlighted(opts)
254
+ result = api_instance.get_custom_vcl_generated_highlighted(opts)
255
+ p result
255
256
  rescue Fastly::ApiError => e
256
257
  puts "Error when calling VclApi->get_custom_vcl_generated_highlighted: #{e}"
257
258
  end
@@ -266,14 +267,14 @@ end
266
267
 
267
268
  ### Return type
268
269
 
269
- nil (empty response body)
270
+ [**VclSyntaxHighlightingResponse**](VclSyntaxHighlightingResponse.md)
270
271
 
271
272
  [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
272
273
  [[Back to README]](../../README.md)
273
274
  ## `get_custom_vcl_highlighted()`
274
275
 
275
276
  ```ruby
276
- get_custom_vcl_highlighted(opts) # Get a custom VCL file with syntax highlighting
277
+ get_custom_vcl_highlighted(opts): <VclSyntaxHighlightingResponse> # Get a custom VCL file with syntax highlighting
277
278
  ```
278
279
 
279
280
  Get the uploaded VCL for a particular service and version with HTML syntax highlighting. Include line numbers by sending `lineno=true` as a request parameter.
@@ -290,7 +291,8 @@ opts = {
290
291
 
291
292
  begin
292
293
  # Get a custom VCL file with syntax highlighting
293
- api_instance.get_custom_vcl_highlighted(opts)
294
+ result = api_instance.get_custom_vcl_highlighted(opts)
295
+ p result
294
296
  rescue Fastly::ApiError => e
295
297
  puts "Error when calling VclApi->get_custom_vcl_highlighted: #{e}"
296
298
  end
@@ -306,7 +308,7 @@ end
306
308
 
307
309
  ### Return type
308
310
 
309
- nil (empty response body)
311
+ [**VclSyntaxHighlightingResponse**](VclSyntaxHighlightingResponse.md)
310
312
 
311
313
  [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
312
314
  [[Back to README]](../../README.md)
@@ -0,0 +1,10 @@
1
+ # Fastly::VclSyntaxHighlightingResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **content** | **String** | VCL with HTML syntax highlighting. | [optional] |
8
+
9
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
10
+
@@ -10,6 +10,7 @@ api_instance = Fastly::WafActiveRulesApi.new
10
10
 
11
11
  | Method | HTTP request | Description |
12
12
  | ------ | ------------ | ----------- |
13
+ | [**bulk_delete_waf_active_rules**](WafActiveRulesApi.md#bulk_delete_waf_active_rules) | **DELETE** /waf/firewalls/{firewall_id}/versions/{version_id}/active-rules | Delete multiple active rules from a WAF |
13
14
  | [**bulk_update_waf_active_rules**](WafActiveRulesApi.md#bulk_update_waf_active_rules) | **PATCH** /waf/firewalls/{firewall_id}/versions/{version_id}/active-rules/bulk | Update multiple active rules |
14
15
  | [**create_waf_active_rule**](WafActiveRulesApi.md#create_waf_active_rule) | **POST** /waf/firewalls/{firewall_id}/versions/{version_id}/active-rules | Add a rule to a WAF as an active rule |
15
16
  | [**create_waf_active_rules_tag**](WafActiveRulesApi.md#create_waf_active_rules_tag) | **POST** /waf/firewalls/{firewall_id}/versions/{version_id}/tags/{waf_tag_name}/active-rules | Create active rules by tag |
@@ -19,6 +20,46 @@ api_instance = Fastly::WafActiveRulesApi.new
19
20
  | [**update_waf_active_rule**](WafActiveRulesApi.md#update_waf_active_rule) | **PATCH** /waf/firewalls/{firewall_id}/versions/{version_id}/active-rules/{waf_rule_id} | Update an active rule |
20
21
 
21
22
 
23
+ ## `bulk_delete_waf_active_rules()`
24
+
25
+ ```ruby
26
+ bulk_delete_waf_active_rules(opts) # Delete multiple active rules from a WAF
27
+ ```
28
+
29
+ Delete many active rules on a particular firewall version using the active rule ID. Limited to 500 rules per request.
30
+
31
+ ### Examples
32
+
33
+ ```ruby
34
+ api_instance = Fastly::WafActiveRulesApi.new
35
+ opts = {
36
+ firewall_id: 'firewall_id_example', # String | Alphanumeric string identifying a WAF Firewall.
37
+ version_id: 56, # Integer | Integer identifying a service version.
38
+ request_body: { key: 3.56}, # Hash<String, Object> |
39
+ }
40
+
41
+ begin
42
+ # Delete multiple active rules from a WAF
43
+ api_instance.bulk_delete_waf_active_rules(opts)
44
+ rescue Fastly::ApiError => e
45
+ puts "Error when calling WafActiveRulesApi->bulk_delete_waf_active_rules: #{e}"
46
+ end
47
+ ```
48
+
49
+ ### Options
50
+
51
+ | Name | Type | Description | Notes |
52
+ | ---- | ---- | ----------- | ----- |
53
+ | **firewall_id** | **String** | Alphanumeric string identifying a WAF Firewall. | |
54
+ | **version_id** | **Integer** | Integer identifying a service version. | |
55
+ | **request_body** | [**Hash&lt;String, Object&gt;**](Object.md) | | [optional] |
56
+
57
+ ### Return type
58
+
59
+ nil (empty response body)
60
+
61
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
62
+ [[Back to README]](../../README.md)
22
63
  ## `bulk_update_waf_active_rules()`
23
64
 
24
65
  ```ruby