fastly 5.3.1 → 6.0.1

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 +63 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +85 -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/{BillingEstimateResponseAllOfLines.md → BillingEstimateLines.md} +2 -2
  10. data/docs/{BillingEstimateResponseAllOfLine.md → BillingEstimateLinesLineItems.md} +1 -1
  11. data/docs/BillingEstimateResponse.md +1 -1
  12. data/docs/{BillingResponseAllOf.md → BillingResponseItemItemsData.md} +1 -1
  13. data/docs/BillingResponseLineItem.md +1 -1
  14. data/docs/BillingStatus.md +1 -1
  15. data/docs/BulkUpdateAclEntry.md +1 -1
  16. data/docs/ClientKey.md +12 -0
  17. data/docs/ContactApi.md +50 -0
  18. data/docs/Content.md +2 -2
  19. data/docs/ContentApi.md +52 -0
  20. data/docs/DirectorApi.md +42 -0
  21. data/docs/DomainInspector.md +12 -0
  22. data/docs/DomainInspectorEntry.md +11 -0
  23. data/docs/DomainInspectorEntryDimensions.md +12 -0
  24. data/docs/DomainInspectorHistoricalApi.md +72 -0
  25. data/docs/DomainInspectorMeasurements.md +71 -0
  26. data/docs/DomainInspectorRealtimeApi.md +132 -0
  27. data/docs/DomainInspectorRealtimeEntry.md +12 -0
  28. data/docs/EventAttributes.md +1 -1
  29. data/docs/{EventsResponseAllOf.md → EventData.md} +1 -1
  30. data/docs/HistoricalDomains.md +13 -0
  31. data/docs/HistoricalDomainsData.md +11 -0
  32. data/docs/HistoricalDomainsMeta.md +18 -0
  33. data/docs/HistoricalDomainsMetaFilters.md +12 -0
  34. data/docs/HistoricalDomainsResponse.md +13 -0
  35. data/docs/HistoricalDomainsResponseAllOf.md +10 -0
  36. data/docs/{HistoricalFieldResultsAttributesAllOf.md → HistoricalFieldResultsAttributesAdditional.md} +1 -1
  37. data/docs/HistoricalOriginsResponse.md +13 -0
  38. data/docs/HistoricalOriginsResponseAllOf.md +10 -0
  39. data/docs/IamRolesApi.md +157 -0
  40. data/docs/IamServiceGroupsApi.md +157 -0
  41. data/docs/IamUserGroupsApi.md +315 -0
  42. data/docs/InlineResponse2005.md +11 -0
  43. data/docs/InlineResponse2006.md +11 -0
  44. data/docs/{BillingEstimateResponseAllOf.md → InlineResponse2007.md} +2 -2
  45. data/docs/InlineResponse400.md +10 -0
  46. data/docs/LegacyWafConfigurationSet.md +11 -0
  47. data/docs/LegacyWafConfigurationSetsApi.md +125 -0
  48. data/docs/LegacyWafFirewall.md +18 -0
  49. data/docs/LegacyWafFirewallApi.md +352 -0
  50. data/docs/LegacyWafOwasp.md +38 -0
  51. data/docs/LegacyWafOwaspApi.md +138 -0
  52. data/docs/LegacyWafRule.md +14 -0
  53. data/docs/LegacyWafRuleApi.md +184 -0
  54. data/docs/LegacyWafRuleStatus.md +12 -0
  55. data/docs/LegacyWafRuleStatusApi.md +202 -0
  56. data/docs/LegacyWafRuleset.md +11 -0
  57. data/docs/LegacyWafRulesetApi.md +136 -0
  58. data/docs/LegacyWafTag.md +10 -0
  59. data/docs/LegacyWafTagApi.md +58 -0
  60. data/docs/LegacyWafUpdateStatus.md +15 -0
  61. data/docs/LegacyWafUpdateStatusApi.md +102 -0
  62. data/docs/{BillingResponseLineItemAllOf.md → LineItemData.md} +2 -2
  63. data/docs/LineItemDataReadOnlyInvoiceId.md +9 -0
  64. data/docs/LoggingKafkaApi.md +42 -0
  65. data/docs/LoggingKinesisApi.md +42 -0
  66. data/docs/OriginInspector.md +12 -0
  67. data/docs/OriginInspectorDimensions.md +12 -0
  68. data/docs/OriginInspectorEntry.md +11 -0
  69. data/docs/OriginInspectorHistorical.md +13 -0
  70. data/docs/OriginInspectorHistoricalApi.md +72 -0
  71. data/docs/OriginInspectorHistoricalData.md +11 -0
  72. data/docs/OriginInspectorHistoricalMeta.md +18 -0
  73. data/docs/OriginInspectorHistoricalMetaFilters.md +12 -0
  74. data/docs/OriginInspectorMeasurements.md +161 -0
  75. data/docs/OriginInspectorRealtimeApi.md +132 -0
  76. data/docs/OriginInspectorRealtimeEntry.md +12 -0
  77. data/docs/OriginInspectorRealtimeEntryRecorded.md +9 -0
  78. data/docs/OriginInspectorSubsequentRequestTimestamp.md +9 -0
  79. data/docs/OriginInspectorValues.md +161 -0
  80. data/docs/PaginationCursorMeta.md +11 -0
  81. data/docs/ReadOnlyServiceId.md +9 -0
  82. data/docs/ReadOnlyVersion.md +9 -0
  83. data/docs/RealtimeEntry.md +2 -2
  84. data/docs/RealtimeEntryAggregated.md +227 -0
  85. data/docs/RealtimeEntryRecorded.md +9 -0
  86. data/docs/RealtimeMeasurements.md +1 -1
  87. data/docs/RecordedTimestamp.md +9 -0
  88. data/docs/RequestSettingsApi.md +40 -0
  89. data/docs/ResponseObjectApi.md +82 -0
  90. data/docs/SchemasUserResponseReadOnly.md +12 -0
  91. data/docs/Secret.md +12 -0
  92. data/docs/SecretResponse.md +13 -0
  93. data/docs/SecretStore.md +10 -0
  94. data/docs/SecretStoreApi.md +233 -0
  95. data/docs/SecretStoreItemApi.md +255 -0
  96. data/docs/SecretStoreResponse.md +12 -0
  97. data/docs/ServiceAuthorizationsApi.md +76 -0
  98. data/docs/SigningKey.md +10 -0
  99. data/docs/SnippetApi.md +42 -0
  100. data/docs/SubsequentRequestTimestamp.md +9 -0
  101. data/docs/SudoApi.md +52 -0
  102. data/docs/SudoGenericTokenError.md +10 -0
  103. data/docs/SudoRequest.md +12 -0
  104. data/docs/SudoResponse.md +10 -0
  105. data/docs/TokensApi.md +70 -0
  106. data/docs/{UserResponseAllOf.md → UserResponseReadOnly.md} +1 -1
  107. data/docs/Values.md +71 -0
  108. data/docs/WafActiveRulesApi.md +41 -0
  109. data/lib/fastly/api/acl_entry_api.rb +332 -0
  110. data/lib/fastly/api/apex_redirect_api.rb +111 -0
  111. data/lib/fastly/api/contact_api.rb +90 -0
  112. data/lib/fastly/api/content_api.rb +79 -0
  113. data/lib/fastly/api/director_api.rb +82 -0
  114. data/lib/fastly/api/domain_inspector_historical_api.rb +125 -0
  115. data/lib/fastly/api/domain_inspector_realtime_api.rb +223 -0
  116. data/lib/fastly/api/iam_roles_api.rb +271 -0
  117. data/lib/fastly/api/iam_service_groups_api.rb +271 -0
  118. data/lib/fastly/api/iam_user_groups_api.rb +547 -0
  119. data/lib/fastly/api/legacy_waf_configuration_sets_api.rb +209 -0
  120. data/lib/fastly/api/legacy_waf_firewall_api.rb +627 -0
  121. data/lib/fastly/api/legacy_waf_owasp_api.rb +244 -0
  122. data/lib/fastly/api/legacy_waf_rule_api.rb +307 -0
  123. data/lib/fastly/api/legacy_waf_rule_status_api.rb +366 -0
  124. data/lib/fastly/api/legacy_waf_ruleset_api.rb +237 -0
  125. data/lib/fastly/api/legacy_waf_tag_api.rb +96 -0
  126. data/lib/fastly/api/legacy_waf_update_status_api.rb +184 -0
  127. data/lib/fastly/api/logging_kafka_api.rb +82 -0
  128. data/lib/fastly/api/logging_kinesis_api.rb +82 -0
  129. data/lib/fastly/api/origin_inspector_historical_api.rb +125 -0
  130. data/lib/fastly/api/origin_inspector_realtime_api.rb +223 -0
  131. data/lib/fastly/api/request_settings_api.rb +75 -0
  132. data/lib/fastly/api/response_object_api.rb +157 -0
  133. data/lib/fastly/api/secret_store_api.rb +381 -0
  134. data/lib/fastly/api/secret_store_item_api.rb +437 -0
  135. data/lib/fastly/api/service_authorizations_api.rb +126 -0
  136. data/lib/fastly/api/snippet_api.rb +82 -0
  137. data/lib/fastly/api/sudo_api.rb +83 -0
  138. data/lib/fastly/api/tokens_api.rb +122 -0
  139. data/lib/fastly/api/waf_active_rules_api.rb +75 -0
  140. data/lib/fastly/configuration.rb +504 -0
  141. data/lib/fastly/models/acl_entry.rb +1 -1
  142. data/lib/fastly/models/acl_entry_response.rb +1 -1
  143. data/lib/fastly/models/{billing_response_all_of.rb → billing_estimate_lines.rb} +4 -4
  144. data/lib/fastly/models/{billing_estimate_response_all_of_line.rb → billing_estimate_lines_line_items.rb} +3 -3
  145. data/lib/fastly/models/billing_estimate_response.rb +9 -9
  146. data/lib/fastly/models/billing_response.rb +1 -1
  147. data/lib/fastly/models/{billing_estimate_response_all_of.rb → billing_response_item_items_data.rb} +11 -11
  148. data/lib/fastly/models/billing_response_line_item.rb +2 -2
  149. data/lib/fastly/models/billing_status.rb +2 -0
  150. data/lib/fastly/models/bulk_update_acl_entry.rb +1 -1
  151. data/lib/fastly/models/client_key.rb +239 -0
  152. data/lib/fastly/models/content.rb +8 -4
  153. data/lib/fastly/models/domain.rb +1 -0
  154. data/lib/fastly/models/domain_inspector.rb +238 -0
  155. data/lib/fastly/models/domain_inspector_entry.rb +228 -0
  156. data/lib/fastly/models/domain_inspector_entry_dimensions.rb +238 -0
  157. data/lib/fastly/models/domain_inspector_measurements.rb +828 -0
  158. data/lib/fastly/models/domain_inspector_realtime_entry.rb +241 -0
  159. data/lib/fastly/models/event_attributes.rb +4 -2
  160. data/lib/fastly/models/{events_response_all_of.rb → event_data.rb} +3 -3
  161. data/lib/fastly/models/events_response.rb +1 -1
  162. data/lib/fastly/models/historical_domains.rb +249 -0
  163. data/lib/fastly/models/historical_domains_data.rb +228 -0
  164. data/lib/fastly/models/historical_domains_meta.rb +297 -0
  165. data/lib/fastly/models/historical_domains_meta_filters.rb +235 -0
  166. data/lib/fastly/models/historical_domains_response.rb +257 -0
  167. data/lib/fastly/models/historical_domains_response_all_of.rb +219 -0
  168. data/lib/fastly/models/historical_field_results_attributes.rb +1 -1
  169. data/lib/fastly/models/{historical_field_results_attributes_all_of.rb → historical_field_results_attributes_additional.rb} +3 -3
  170. data/lib/fastly/models/historical_origins_response.rb +257 -0
  171. data/lib/fastly/models/historical_origins_response_all_of.rb +219 -0
  172. data/lib/fastly/models/inline_response2005.rb +227 -0
  173. data/lib/fastly/models/inline_response2006.rb +227 -0
  174. data/lib/fastly/models/inline_response2007.rb +218 -0
  175. data/lib/fastly/models/inline_response400.rb +250 -0
  176. data/lib/fastly/models/legacy_waf_configuration_set.rb +227 -0
  177. data/lib/fastly/models/legacy_waf_firewall.rb +297 -0
  178. data/lib/fastly/models/legacy_waf_owasp.rb +527 -0
  179. data/lib/fastly/models/legacy_waf_rule.rb +257 -0
  180. data/lib/fastly/models/legacy_waf_rule_status.rb +237 -0
  181. data/lib/fastly/models/legacy_waf_ruleset.rb +227 -0
  182. data/lib/fastly/models/{billing_estimate_response_all_of_lines.rb → legacy_waf_tag.rb} +11 -10
  183. data/lib/fastly/models/legacy_waf_update_status.rb +267 -0
  184. data/lib/fastly/models/{billing_response_line_item_all_of.rb → line_item_data.rb} +4 -4
  185. data/lib/fastly/models/line_item_data_read_only_invoice_id.rb +207 -0
  186. data/lib/fastly/models/origin_inspector.rb +238 -0
  187. data/lib/fastly/models/origin_inspector_dimensions.rb +238 -0
  188. data/lib/fastly/models/origin_inspector_entry.rb +228 -0
  189. data/lib/fastly/models/origin_inspector_historical.rb +249 -0
  190. data/lib/fastly/models/origin_inspector_historical_data.rb +225 -0
  191. data/lib/fastly/models/origin_inspector_historical_meta.rb +297 -0
  192. data/lib/fastly/models/origin_inspector_historical_meta_filters.rb +235 -0
  193. data/lib/fastly/models/origin_inspector_measurements.rb +1728 -0
  194. data/lib/fastly/models/origin_inspector_realtime_entry.rb +241 -0
  195. data/lib/fastly/models/origin_inspector_realtime_entry_recorded.rb +208 -0
  196. data/lib/fastly/models/origin_inspector_subsequent_request_timestamp.rb +208 -0
  197. data/lib/fastly/models/origin_inspector_values.rb +1728 -0
  198. data/lib/fastly/models/pagination_cursor_meta.rb +227 -0
  199. data/lib/fastly/models/read_only_service_id.rb +207 -0
  200. data/lib/fastly/models/read_only_version.rb +207 -0
  201. data/lib/fastly/models/realtime_entry.rb +2 -7
  202. data/lib/fastly/models/realtime_entry_aggregated.rb +2397 -0
  203. data/lib/fastly/models/realtime_entry_recorded.rb +208 -0
  204. data/lib/fastly/models/realtime_measurements.rb +4 -2
  205. data/lib/fastly/models/recorded_timestamp.rb +208 -0
  206. data/lib/fastly/models/schemas_user_response.rb +5 -2
  207. data/lib/fastly/models/schemas_user_response_read_only.rb +235 -0
  208. data/lib/fastly/models/secret.rb +238 -0
  209. data/lib/fastly/models/secret_response.rb +249 -0
  210. data/lib/fastly/models/secret_store.rb +217 -0
  211. data/lib/fastly/models/secret_store_response.rb +238 -0
  212. data/lib/fastly/models/signing_key.rb +218 -0
  213. data/lib/fastly/models/subsequent_request_timestamp.rb +208 -0
  214. data/lib/fastly/models/sudo_generic_token_error.rb +216 -0
  215. data/lib/fastly/models/sudo_request.rb +244 -0
  216. data/lib/fastly/models/sudo_response.rb +217 -0
  217. data/lib/fastly/models/user.rb +3 -0
  218. data/lib/fastly/models/user_response.rb +4 -1
  219. data/lib/fastly/models/{user_response_all_of.rb → user_response_read_only.rb} +3 -3
  220. data/lib/fastly/models/values.rb +828 -0
  221. data/lib/fastly/version.rb +1 -1
  222. data/lib/fastly.rb +79 -8
  223. data/sig.json +1 -1
  224. metadata +160 -18
@@ -0,0 +1,352 @@
1
+ # Fastly::LegacyWafFirewallApi
2
+
3
+
4
+ ```ruby
5
+ require 'fastly'
6
+ api_instance = Fastly::LegacyWafFirewallApi.new
7
+ ```
8
+
9
+ ## Methods
10
+
11
+ | Method | HTTP request | Description |
12
+ | ------ | ------------ | ----------- |
13
+ | [**create_legacy_waf_firewall_service**](LegacyWafFirewallApi.md#create_legacy_waf_firewall_service) | **POST** /service/{service_id}/version/{version_id}/wafs | Create a firewall |
14
+ | [**disable_legacy_waf_firewall**](LegacyWafFirewallApi.md#disable_legacy_waf_firewall) | **PATCH** /wafs/{firewall_id}/disable | Disable a firewall |
15
+ | [**enable_legacy_waf_firewall**](LegacyWafFirewallApi.md#enable_legacy_waf_firewall) | **PATCH** /wafs/{firewall_id}/enable | Enable a firewall |
16
+ | [**get_legacy_waf_firewall**](LegacyWafFirewallApi.md#get_legacy_waf_firewall) | **GET** /wafs/{firewall_id} | Get a firewall object |
17
+ | [**get_legacy_waf_firewall_service**](LegacyWafFirewallApi.md#get_legacy_waf_firewall_service) | **GET** /service/{service_id}/version/{version_id}/wafs/{firewall_id} | Get a firewall |
18
+ | [**list_legacy_waf_firewalls**](LegacyWafFirewallApi.md#list_legacy_waf_firewalls) | **GET** /wafs | List active firewalls |
19
+ | [**list_legacy_waf_firewalls_service**](LegacyWafFirewallApi.md#list_legacy_waf_firewalls_service) | **GET** /service/{service_id}/version/{version_id}/wafs | List firewalls |
20
+ | [**update_legacy_waf_firewall_service**](LegacyWafFirewallApi.md#update_legacy_waf_firewall_service) | **PATCH** /service/{service_id}/version/{version_id}/wafs/{firewall_id} | Update a firewall |
21
+
22
+
23
+ ## `create_legacy_waf_firewall_service()`
24
+
25
+ ```ruby
26
+ create_legacy_waf_firewall_service(opts): Object # Create a firewall
27
+ ```
28
+
29
+ Create a firewall object for a particular service and version.
30
+
31
+ ### Examples
32
+
33
+ ```ruby
34
+ api_instance = Fastly::LegacyWafFirewallApi.new
35
+ opts = {
36
+ service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
37
+ version_id: 56, # Integer | Integer identifying a service version.
38
+ request_body: { key: 3.56}, # Hash<String, Object> |
39
+ }
40
+
41
+ begin
42
+ # Create a firewall
43
+ result = api_instance.create_legacy_waf_firewall_service(opts)
44
+ p result
45
+ rescue Fastly::ApiError => e
46
+ puts "Error when calling LegacyWafFirewallApi->create_legacy_waf_firewall_service: #{e}"
47
+ end
48
+ ```
49
+
50
+ ### Options
51
+
52
+ | Name | Type | Description | Notes |
53
+ | ---- | ---- | ----------- | ----- |
54
+ | **service_id** | **String** | Alphanumeric string identifying the service. | |
55
+ | **version_id** | **Integer** | Integer identifying a service version. | |
56
+ | **request_body** | [**Hash&lt;String, Object&gt;**](Object.md) | | [optional] |
57
+
58
+ ### Return type
59
+
60
+ **Object**
61
+
62
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
63
+ [[Back to README]](../../README.md)
64
+ ## `disable_legacy_waf_firewall()`
65
+
66
+ ```ruby
67
+ disable_legacy_waf_firewall(opts): Object # Disable a firewall
68
+ ```
69
+
70
+ Disable a firewall for a particular service and version. This endpoint is intended to be used in an emergency. Disabling a firewall object for a specific service and version replaces your existing WAF ruleset with an empty ruleset. While disabled, your WAF ruleset will not be applied to your origin traffic. This endpoint is only available to users assigned the role of superuser or above. This is an asynchronous action. To check on the completion of this action, use the related link returned in the response to check on the Update Status of the action.
71
+
72
+ ### Examples
73
+
74
+ ```ruby
75
+ api_instance = Fastly::LegacyWafFirewallApi.new
76
+ opts = {
77
+ firewall_id: 'firewall_id_example', # String | Alphanumeric string identifying a Firewall.
78
+ request_body: { key: 3.56}, # Hash<String, Object> |
79
+ }
80
+
81
+ begin
82
+ # Disable a firewall
83
+ result = api_instance.disable_legacy_waf_firewall(opts)
84
+ p result
85
+ rescue Fastly::ApiError => e
86
+ puts "Error when calling LegacyWafFirewallApi->disable_legacy_waf_firewall: #{e}"
87
+ end
88
+ ```
89
+
90
+ ### Options
91
+
92
+ | Name | Type | Description | Notes |
93
+ | ---- | ---- | ----------- | ----- |
94
+ | **firewall_id** | **String** | Alphanumeric string identifying a Firewall. | |
95
+ | **request_body** | [**Hash&lt;String, Object&gt;**](Object.md) | | [optional] |
96
+
97
+ ### Return type
98
+
99
+ **Object**
100
+
101
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
102
+ [[Back to README]](../../README.md)
103
+ ## `enable_legacy_waf_firewall()`
104
+
105
+ ```ruby
106
+ enable_legacy_waf_firewall(opts): Object # Enable a firewall
107
+ ```
108
+
109
+ Re-enable a firewall object for a particular service and version after it has been disabled. This endpoint is intended to be used in an emergency. When a firewall object is re-enabled, a newly generated WAF ruleset VCL based on the current WAF configuration is used to replace the empty ruleset. This endpoint is only available to users assigned the role of superuser or above. This is an asynchronous action. To check on the completion of this action, use the related link returned in the response to check on the Update Status of the action.
110
+
111
+ ### Examples
112
+
113
+ ```ruby
114
+ api_instance = Fastly::LegacyWafFirewallApi.new
115
+ opts = {
116
+ firewall_id: 'firewall_id_example', # String | Alphanumeric string identifying a Firewall.
117
+ request_body: { key: 3.56}, # Hash<String, Object> |
118
+ }
119
+
120
+ begin
121
+ # Enable a firewall
122
+ result = api_instance.enable_legacy_waf_firewall(opts)
123
+ p result
124
+ rescue Fastly::ApiError => e
125
+ puts "Error when calling LegacyWafFirewallApi->enable_legacy_waf_firewall: #{e}"
126
+ end
127
+ ```
128
+
129
+ ### Options
130
+
131
+ | Name | Type | Description | Notes |
132
+ | ---- | ---- | ----------- | ----- |
133
+ | **firewall_id** | **String** | Alphanumeric string identifying a Firewall. | |
134
+ | **request_body** | [**Hash&lt;String, Object&gt;**](Object.md) | | [optional] |
135
+
136
+ ### Return type
137
+
138
+ **Object**
139
+
140
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
141
+ [[Back to README]](../../README.md)
142
+ ## `get_legacy_waf_firewall()`
143
+
144
+ ```ruby
145
+ get_legacy_waf_firewall(opts): Object # Get a firewall object
146
+ ```
147
+
148
+ Get a specific firewall object.
149
+
150
+ ### Examples
151
+
152
+ ```ruby
153
+ api_instance = Fastly::LegacyWafFirewallApi.new
154
+ opts = {
155
+ firewall_id: 'firewall_id_example', # String | Alphanumeric string identifying a Firewall.
156
+ include: 'configuration_set', # String | Include relationships. Optional, comma separated values. Permitted values: `configuration_set`, `owasp`, `rules`, `rule_statuses`.
157
+ }
158
+
159
+ begin
160
+ # Get a firewall object
161
+ result = api_instance.get_legacy_waf_firewall(opts)
162
+ p result
163
+ rescue Fastly::ApiError => e
164
+ puts "Error when calling LegacyWafFirewallApi->get_legacy_waf_firewall: #{e}"
165
+ end
166
+ ```
167
+
168
+ ### Options
169
+
170
+ | Name | Type | Description | Notes |
171
+ | ---- | ---- | ----------- | ----- |
172
+ | **firewall_id** | **String** | Alphanumeric string identifying a Firewall. | |
173
+ | **include** | **String** | Include relationships. Optional, comma separated values. Permitted values: `configuration_set`, `owasp`, `rules`, `rule_statuses`. | [optional] |
174
+
175
+ ### Return type
176
+
177
+ **Object**
178
+
179
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
180
+ [[Back to README]](../../README.md)
181
+ ## `get_legacy_waf_firewall_service()`
182
+
183
+ ```ruby
184
+ get_legacy_waf_firewall_service(opts): Object # Get a firewall
185
+ ```
186
+
187
+ Get a specific firewall object.
188
+
189
+ ### Examples
190
+
191
+ ```ruby
192
+ api_instance = Fastly::LegacyWafFirewallApi.new
193
+ opts = {
194
+ service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
195
+ version_id: 56, # Integer | Integer identifying a service version.
196
+ firewall_id: 'firewall_id_example', # String | Alphanumeric string identifying a Firewall.
197
+ }
198
+
199
+ begin
200
+ # Get a firewall
201
+ result = api_instance.get_legacy_waf_firewall_service(opts)
202
+ p result
203
+ rescue Fastly::ApiError => e
204
+ puts "Error when calling LegacyWafFirewallApi->get_legacy_waf_firewall_service: #{e}"
205
+ end
206
+ ```
207
+
208
+ ### Options
209
+
210
+ | Name | Type | Description | Notes |
211
+ | ---- | ---- | ----------- | ----- |
212
+ | **service_id** | **String** | Alphanumeric string identifying the service. | |
213
+ | **version_id** | **Integer** | Integer identifying a service version. | |
214
+ | **firewall_id** | **String** | Alphanumeric string identifying a Firewall. | |
215
+
216
+ ### Return type
217
+
218
+ **Object**
219
+
220
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
221
+ [[Back to README]](../../README.md)
222
+ ## `list_legacy_waf_firewalls()`
223
+
224
+ ```ruby
225
+ list_legacy_waf_firewalls(opts): Object # List active firewalls
226
+ ```
227
+
228
+ List all active firewall objects.
229
+
230
+ ### Examples
231
+
232
+ ```ruby
233
+ api_instance = Fastly::LegacyWafFirewallApi.new
234
+ opts = {
235
+ filter_rules_rule_id: 'filter_rules_rule_id_example', # String | Limit the returned firewalls to a specific rule ID.
236
+ page_number: 1, # Integer | Current page.
237
+ page_size: 20, # Integer | Number of records per page.
238
+ include: 'configuration_set', # String | Include relationships. Optional, comma separated values. Permitted values: `configuration_set`, `owasp`.
239
+ }
240
+
241
+ begin
242
+ # List active firewalls
243
+ result = api_instance.list_legacy_waf_firewalls(opts)
244
+ p result
245
+ rescue Fastly::ApiError => e
246
+ puts "Error when calling LegacyWafFirewallApi->list_legacy_waf_firewalls: #{e}"
247
+ end
248
+ ```
249
+
250
+ ### Options
251
+
252
+ | Name | Type | Description | Notes |
253
+ | ---- | ---- | ----------- | ----- |
254
+ | **filter_rules_rule_id** | **String** | Limit the returned firewalls to a specific rule ID. | [optional] |
255
+ | **page_number** | **Integer** | Current page. | [optional] |
256
+ | **page_size** | **Integer** | Number of records per page. | [optional][default to 20] |
257
+ | **include** | **String** | Include relationships. Optional, comma separated values. Permitted values: `configuration_set`, `owasp`. | [optional] |
258
+
259
+ ### Return type
260
+
261
+ **Object**
262
+
263
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
264
+ [[Back to README]](../../README.md)
265
+ ## `list_legacy_waf_firewalls_service()`
266
+
267
+ ```ruby
268
+ list_legacy_waf_firewalls_service(opts): Object # List firewalls
269
+ ```
270
+
271
+ List all firewall objects for a particular service and version.
272
+
273
+ ### Examples
274
+
275
+ ```ruby
276
+ api_instance = Fastly::LegacyWafFirewallApi.new
277
+ opts = {
278
+ service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
279
+ version_id: 56, # Integer | Integer identifying a service version.
280
+ page_number: 1, # Integer | Current page.
281
+ page_size: 20, # Integer | Number of records per page.
282
+ include: 'configuration_set', # String | Include relationships. Optional, comma separated values. Permitted values: `configuration_set`, `owasp`.
283
+ }
284
+
285
+ begin
286
+ # List firewalls
287
+ result = api_instance.list_legacy_waf_firewalls_service(opts)
288
+ p result
289
+ rescue Fastly::ApiError => e
290
+ puts "Error when calling LegacyWafFirewallApi->list_legacy_waf_firewalls_service: #{e}"
291
+ end
292
+ ```
293
+
294
+ ### Options
295
+
296
+ | Name | Type | Description | Notes |
297
+ | ---- | ---- | ----------- | ----- |
298
+ | **service_id** | **String** | Alphanumeric string identifying the service. | |
299
+ | **version_id** | **Integer** | Integer identifying a service version. | |
300
+ | **page_number** | **Integer** | Current page. | [optional] |
301
+ | **page_size** | **Integer** | Number of records per page. | [optional][default to 20] |
302
+ | **include** | **String** | Include relationships. Optional, comma separated values. Permitted values: `configuration_set`, `owasp`. | [optional] |
303
+
304
+ ### Return type
305
+
306
+ **Object**
307
+
308
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
309
+ [[Back to README]](../../README.md)
310
+ ## `update_legacy_waf_firewall_service()`
311
+
312
+ ```ruby
313
+ update_legacy_waf_firewall_service(opts): Object # Update a firewall
314
+ ```
315
+
316
+ Update a firewall object for a particular service and version.
317
+
318
+ ### Examples
319
+
320
+ ```ruby
321
+ api_instance = Fastly::LegacyWafFirewallApi.new
322
+ opts = {
323
+ service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
324
+ version_id: 56, # Integer | Integer identifying a service version.
325
+ firewall_id: 'firewall_id_example', # String | Alphanumeric string identifying a Firewall.
326
+ request_body: { key: 3.56}, # Hash<String, Object> |
327
+ }
328
+
329
+ begin
330
+ # Update a firewall
331
+ result = api_instance.update_legacy_waf_firewall_service(opts)
332
+ p result
333
+ rescue Fastly::ApiError => e
334
+ puts "Error when calling LegacyWafFirewallApi->update_legacy_waf_firewall_service: #{e}"
335
+ end
336
+ ```
337
+
338
+ ### Options
339
+
340
+ | Name | Type | Description | Notes |
341
+ | ---- | ---- | ----------- | ----- |
342
+ | **service_id** | **String** | Alphanumeric string identifying the service. | |
343
+ | **version_id** | **Integer** | Integer identifying a service version. | |
344
+ | **firewall_id** | **String** | Alphanumeric string identifying a Firewall. | |
345
+ | **request_body** | [**Hash&lt;String, Object&gt;**](Object.md) | | [optional] |
346
+
347
+ ### Return type
348
+
349
+ **Object**
350
+
351
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
352
+ [[Back to README]](../../README.md)
@@ -0,0 +1,38 @@
1
+ # Fastly::LegacyWafOwasp
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **allowed_http_versions** | **String** | Allowed HTTP versions. | [optional][default to &#39;HTTP/1.0 HTTP/1.1 HTTP/2&#39;] |
8
+ | **allowed_methods** | **String** | A space-separated list of HTTP method names. | [optional][default to &#39;GET HEAD POST OPTIONS PUT PATCH DELETE&#39;] |
9
+ | **allowed_request_content_type** | **String** | Allowed request content types. | [optional][default to &#39;application/x-www-form-urlencoded|multipart/form-data|text/xml|application/xml|application/x-amf|application/json|text/plain&#39;] |
10
+ | **arg_length** | **Integer** | The maximum allowed length of an argument. | [optional][default to 400] |
11
+ | **arg_name_length** | **Integer** | The maximum allowed argument name length. | [optional][default to 100] |
12
+ | **combined_file_sizes** | **Integer** | The maximum allowed size of all files (in bytes). | [optional][default to 10000000] |
13
+ | **created_at** | **String** | Date and time that the settings object was created. | [optional] |
14
+ | **critical_anomaly_score** | **Integer** | Score value to add for critical anomalies. | [optional][default to 6] |
15
+ | **crs_validate_utf8_encoding** | **Boolean** | CRS validate UTF8 encoding. | [optional] |
16
+ | **error_anomaly_score** | **Integer** | Score value to add for error anomalies. | [optional][default to 5] |
17
+ | **high_risk_country_codes** | **String** | A space-separated list of country codes in ISO 3166-1 (two-letter) format. | [optional] |
18
+ | **http_violation_score_threshold** | **Integer** | HTTP violation threshold. | [optional] |
19
+ | **inbound_anomaly_score_threshold** | **Integer** | Inbound anomaly threshold. | [optional] |
20
+ | **lfi_score_threshold** | **Integer** | Local file inclusion attack threshold. | [optional] |
21
+ | **max_file_size** | **Integer** | The maximum allowed file size (in bytes). | [optional][default to 10000000] |
22
+ | **max_num_args** | **Integer** | The maximum number of arguments allowed. | [optional][default to 255] |
23
+ | **notice_anomaly_score** | **Integer** | Score value to add for notice anomalies. | [optional][default to 4] |
24
+ | **paranoia_level** | **Integer** | The configured paranoia level. | [optional][default to 1] |
25
+ | **php_injection_score_threshold** | **Integer** | PHP injection threshold. | [optional] |
26
+ | **rce_score_threshold** | **Integer** | Remote code execution threshold. | [optional] |
27
+ | **restricted_extensions** | **String** | A space-separated list of disallowed file extensions. | [optional][default to &#39;.asa/ .asax/ .ascx/ .axd/ .backup/ .bak/ .bat/ .cdx/ .cer/ .cfg/ .cmd/ .com/ .config/ .conf/ .cs/ .csproj/ .csr/ .dat/ .db/ .dbf/ .dll/ .dos/ .htr/ .htw/ .ida/ .idc/ .idq/ .inc/ .ini/ .key/ .licx/ .lnk/ .log/ .mdb/ .old/ .pass/ .pdb/ .pol/ .printer/ .pwd/ .resources/ .resx/ .sql/ .sys/ .vb/ .vbs/ .vbproj/ .vsdisco/ .webinfo/ .xsd/ .xsx&#39;] |
28
+ | **restricted_headers** | **String** | A space-separated list of disallowed header names. | [optional][default to &#39;/proxy/ /lock-token/ /content-range/ /translate/ /if/&#39;] |
29
+ | **rfi_score_threshold** | **Integer** | Remote file inclusion attack threshold. | [optional] |
30
+ | **session_fixation_score_threshold** | **Integer** | Session fixation attack threshold. | [optional] |
31
+ | **sql_injection_score_threshold** | **Integer** | SQL injection attack threshold. | [optional] |
32
+ | **total_arg_length** | **Integer** | The maximum size of argument names and values. | [optional][default to 6400] |
33
+ | **updated_at** | **String** | Date and time that the settings object was last updated. | [optional] |
34
+ | **warning_anomaly_score** | **Integer** | Score value to add for warning anomalies. | [optional] |
35
+ | **xss_score_threshold** | **Integer** | XSS attack threshold. | [optional] |
36
+
37
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
38
+
@@ -0,0 +1,138 @@
1
+ # Fastly::LegacyWafOwaspApi
2
+
3
+
4
+ ```ruby
5
+ require 'fastly'
6
+ api_instance = Fastly::LegacyWafOwaspApi.new
7
+ ```
8
+
9
+ ## Methods
10
+
11
+ | Method | HTTP request | Description |
12
+ | ------ | ------------ | ----------- |
13
+ | [**create_owasp_settings**](LegacyWafOwaspApi.md#create_owasp_settings) | **POST** /service/{service_id}/wafs/{firewall_id}/owasp | Create an OWASP settings object |
14
+ | [**get_owasp_settings**](LegacyWafOwaspApi.md#get_owasp_settings) | **GET** /service/{service_id}/wafs/{firewall_id}/owasp | Get the OWASP settings object |
15
+ | [**update_owasp_settings**](LegacyWafOwaspApi.md#update_owasp_settings) | **PATCH** /service/{service_id}/wafs/{firewall_id}/owasp | Update the OWASP settings object |
16
+
17
+
18
+ ## `create_owasp_settings()`
19
+
20
+ ```ruby
21
+ create_owasp_settings(opts): Object # Create an OWASP settings object
22
+ ```
23
+
24
+ Create an OWASP settings object for a particular service and firewall.
25
+
26
+ ### Examples
27
+
28
+ ```ruby
29
+ api_instance = Fastly::LegacyWafOwaspApi.new
30
+ opts = {
31
+ service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
32
+ firewall_id: 'firewall_id_example', # String | Alphanumeric string identifying a Firewall.
33
+ request_body: { key: 3.56}, # Hash<String, Object> |
34
+ }
35
+
36
+ begin
37
+ # Create an OWASP settings object
38
+ result = api_instance.create_owasp_settings(opts)
39
+ p result
40
+ rescue Fastly::ApiError => e
41
+ puts "Error when calling LegacyWafOwaspApi->create_owasp_settings: #{e}"
42
+ end
43
+ ```
44
+
45
+ ### Options
46
+
47
+ | Name | Type | Description | Notes |
48
+ | ---- | ---- | ----------- | ----- |
49
+ | **service_id** | **String** | Alphanumeric string identifying the service. | |
50
+ | **firewall_id** | **String** | Alphanumeric string identifying a Firewall. | |
51
+ | **request_body** | [**Hash&lt;String, Object&gt;**](Object.md) | | [optional] |
52
+
53
+ ### Return type
54
+
55
+ **Object**
56
+
57
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
58
+ [[Back to README]](../../README.md)
59
+ ## `get_owasp_settings()`
60
+
61
+ ```ruby
62
+ get_owasp_settings(opts): Object # Get the OWASP settings object
63
+ ```
64
+
65
+ Get the OWASP settings object for a particular service and firewall.
66
+
67
+ ### Examples
68
+
69
+ ```ruby
70
+ api_instance = Fastly::LegacyWafOwaspApi.new
71
+ opts = {
72
+ service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
73
+ firewall_id: 'firewall_id_example', # String | Alphanumeric string identifying a Firewall.
74
+ }
75
+
76
+ begin
77
+ # Get the OWASP settings object
78
+ result = api_instance.get_owasp_settings(opts)
79
+ p result
80
+ rescue Fastly::ApiError => e
81
+ puts "Error when calling LegacyWafOwaspApi->get_owasp_settings: #{e}"
82
+ end
83
+ ```
84
+
85
+ ### Options
86
+
87
+ | Name | Type | Description | Notes |
88
+ | ---- | ---- | ----------- | ----- |
89
+ | **service_id** | **String** | Alphanumeric string identifying the service. | |
90
+ | **firewall_id** | **String** | Alphanumeric string identifying a Firewall. | |
91
+
92
+ ### Return type
93
+
94
+ **Object**
95
+
96
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
97
+ [[Back to README]](../../README.md)
98
+ ## `update_owasp_settings()`
99
+
100
+ ```ruby
101
+ update_owasp_settings(opts): Object # Update the OWASP settings object
102
+ ```
103
+
104
+ Update the OWASP settings object for a particular service and firewall.
105
+
106
+ ### Examples
107
+
108
+ ```ruby
109
+ api_instance = Fastly::LegacyWafOwaspApi.new
110
+ opts = {
111
+ service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
112
+ firewall_id: 'firewall_id_example', # String | Alphanumeric string identifying a Firewall.
113
+ request_body: { key: 3.56}, # Hash<String, Object> |
114
+ }
115
+
116
+ begin
117
+ # Update the OWASP settings object
118
+ result = api_instance.update_owasp_settings(opts)
119
+ p result
120
+ rescue Fastly::ApiError => e
121
+ puts "Error when calling LegacyWafOwaspApi->update_owasp_settings: #{e}"
122
+ end
123
+ ```
124
+
125
+ ### Options
126
+
127
+ | Name | Type | Description | Notes |
128
+ | ---- | ---- | ----------- | ----- |
129
+ | **service_id** | **String** | Alphanumeric string identifying the service. | |
130
+ | **firewall_id** | **String** | Alphanumeric string identifying a Firewall. | |
131
+ | **request_body** | [**Hash&lt;String, Object&gt;**](Object.md) | | [optional] |
132
+
133
+ ### Return type
134
+
135
+ **Object**
136
+
137
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
138
+ [[Back to README]](../../README.md)
@@ -0,0 +1,14 @@
1
+ # Fastly::LegacyWafRule
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **message** | **String** | Message metadata for the rule. | [optional] |
8
+ | **rule_id** | **String** | Corresponding ModSecurity rule ID. | [optional] |
9
+ | **severity** | **Integer** | Severity metadata for the rule. | [optional] |
10
+ | **source** | **String** | The ModSecurity rule logic. | [optional] |
11
+ | **vcl** | **String** | The VCL representation of the rule logic. | [optional] |
12
+
13
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
14
+