fastly 16.1.0 → 17.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +58 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +101 -58
  5. data/docs/Action.md +11 -0
  6. data/docs/ActionType.md +9 -0
  7. data/docs/AgentKey.md +14 -0
  8. data/docs/AgentKeyMeta.md +10 -0
  9. data/docs/Backend.md +3 -1
  10. data/docs/BackendApi.md +12 -4
  11. data/docs/BackendResponse.md +3 -1
  12. data/docs/BotManagementRequestUpdateConfiguration.md +10 -0
  13. data/docs/BotManagementResponseConfiguration.md +10 -0
  14. data/docs/BotManagementResponseConfigurationConfiguration.md +10 -0
  15. data/docs/BotManagementResponseConfigure.md +13 -0
  16. data/docs/ClientSideProtectionApi.md +821 -0
  17. data/docs/ConditionOperator.md +9 -0
  18. data/docs/ConditionType.md +9 -0
  19. data/docs/DdosProtectionApi.md +4 -4
  20. data/docs/Directive.md +11 -0
  21. data/docs/DmDomainsApi.md +2 -2
  22. data/docs/DmRoutingConfigsApi.md +912 -0
  23. data/docs/DomainOwnershipsApi.md +2 -2
  24. data/docs/DomainResearchApi.md +2 -2
  25. data/docs/DraftDiff.md +12 -0
  26. data/docs/DraftUpdate.md +10 -0
  27. data/docs/EventsResponse.md +1 -1
  28. data/docs/HeaderEvent.md +14 -0
  29. data/docs/InitialVersion.md +12 -0
  30. data/docs/InitialVersionPath.md +11 -0
  31. data/docs/InlineResponse20010.md +2 -2
  32. data/docs/InlineResponse20011.md +2 -2
  33. data/docs/InlineResponse20012.md +1 -1
  34. data/docs/InlineResponse20013.md +2 -2
  35. data/docs/InlineResponse20014.md +2 -1
  36. data/docs/InlineResponse20015.md +10 -0
  37. data/docs/InlineResponse20016.md +10 -0
  38. data/docs/InlineResponse20017.md +11 -0
  39. data/docs/InlineResponse20018.md +11 -0
  40. data/docs/InlineResponse20019.md +11 -0
  41. data/docs/InlineResponse20020.md +11 -0
  42. data/docs/InlineResponse20021.md +11 -0
  43. data/docs/InlineResponse20022.md +10 -0
  44. data/docs/InlineResponse2005.md +2 -2
  45. data/docs/InlineResponse2006.md +2 -2
  46. data/docs/InlineResponse2007.md +2 -2
  47. data/docs/InlineResponse2008.md +2 -1
  48. data/docs/InlineResponse2009.md +2 -1
  49. data/docs/InvitationsResponse.md +1 -1
  50. data/docs/KvStoreApi.md +2 -2
  51. data/docs/KvStoreItemApi.md +2 -2
  52. data/docs/KvStoreResponseBodyEnable.md +12 -0
  53. data/docs/KvStoreResponseCustomer.md +10 -0
  54. data/docs/KvStoreResponseLinks.md +10 -0
  55. data/docs/KvStoreResponseLinksLinks.md +10 -0
  56. data/docs/KvStoreResponseProduct.md +10 -0
  57. data/docs/KvStoreResponseProductProduct.md +11 -0
  58. data/docs/LoggingAzureblobApi.md +4 -4
  59. data/docs/LoggingAzureblobResponse.md +1 -1
  60. data/docs/LoggingCloudfilesApi.md +4 -4
  61. data/docs/LoggingCloudfilesResponse.md +1 -1
  62. data/docs/LoggingDigitaloceanApi.md +4 -4
  63. data/docs/LoggingDigitaloceanResponse.md +1 -1
  64. data/docs/LoggingFtpApi.md +4 -4
  65. data/docs/LoggingFtpResponse.md +1 -1
  66. data/docs/LoggingGcsApi.md +4 -4
  67. data/docs/LoggingGcsResponse.md +1 -1
  68. data/docs/LoggingGenericCommon.md +1 -1
  69. data/docs/LoggingGenericCommonResponse.md +1 -1
  70. data/docs/LoggingGenericCommonResponseAllOf.md +1 -1
  71. data/docs/LoggingHttpsAdditional.md +1 -1
  72. data/docs/LoggingHttpsApi.md +4 -4
  73. data/docs/LoggingHttpsResponse.md +1 -1
  74. data/docs/LoggingOpenstackApi.md +4 -4
  75. data/docs/LoggingOpenstackResponse.md +1 -1
  76. data/docs/LoggingS3Api.md +4 -4
  77. data/docs/LoggingS3Response.md +1 -1
  78. data/docs/LoggingSftpApi.md +4 -4
  79. data/docs/LoggingSftpResponse.md +1 -1
  80. data/docs/LoggingSumologicAdditional.md +1 -1
  81. data/docs/LoggingSumologicApi.md +4 -4
  82. data/docs/LoggingSumologicResponse.md +1 -1
  83. data/docs/LoggingSyslogAdditional.md +1 -1
  84. data/docs/LoggingSyslogApi.md +4 -4
  85. data/docs/LoggingSyslogResponse.md +1 -1
  86. data/docs/MutualAuthenticationsResponse.md +1 -1
  87. data/docs/NgwafAgentKeysApi.md +55 -0
  88. data/docs/NgwafSimulateApi.md +61 -0
  89. data/docs/Notification.md +11 -0
  90. data/docs/NotificationConfig.md +10 -0
  91. data/docs/Page.md +17 -0
  92. data/docs/PageCreate.md +14 -0
  93. data/docs/PageUpdate.md +14 -0
  94. data/docs/Pagination.md +1 -1
  95. data/docs/PaginationMeta.md +4 -4
  96. data/docs/PaginationMeta1.md +13 -0
  97. data/docs/PathChange.md +15 -0
  98. data/docs/PathCreate.md +10 -0
  99. data/docs/PathResponse.md +14 -0
  100. data/docs/PathResponseAllOf.md +12 -0
  101. data/docs/PathUpdate.md +10 -0
  102. data/docs/PathWithRules.md +11 -0
  103. data/docs/PathsResponse.md +11 -0
  104. data/docs/Policy.md +17 -0
  105. data/docs/PolicyCreate.md +13 -0
  106. data/docs/PolicyUpdate.md +13 -0
  107. data/docs/Position.md +11 -0
  108. data/docs/ProductBotManagementApi.md +78 -0
  109. data/docs/ProductKvStoreApi.md +115 -0
  110. data/docs/RealtimeEntry.md +1 -1
  111. data/docs/RealtimeEntryAggregated.md +34 -3
  112. data/docs/RealtimeEntryDatacenter.md +345 -0
  113. data/docs/RealtimeMeasurements.md +34 -3
  114. data/docs/Report.md +15 -0
  115. data/docs/RequestBodyForCreate.md +1 -0
  116. data/docs/RequestBodyForUpdate.md +1 -0
  117. data/docs/Results.md +34 -3
  118. data/docs/RoutingConfig.md +11 -0
  119. data/docs/RoutingConfigCondition.md +13 -0
  120. data/docs/RoutingConfigResponse.md +16 -0
  121. data/docs/RoutingConfigResponseAllOf.md +14 -0
  122. data/docs/RoutingConfigState.md +9 -0
  123. data/docs/RoutingConfigVersionResponse.md +13 -0
  124. data/docs/RoutingConfigsResponse.md +11 -0
  125. data/docs/RuleChange.md +12 -0
  126. data/docs/RuleCreate.md +12 -0
  127. data/docs/RuleResponse.md +15 -0
  128. data/docs/RuleResponseAllOf.md +13 -0
  129. data/docs/RuleUpdate.md +12 -0
  130. data/docs/RulesResponse.md +11 -0
  131. data/docs/Script.md +20 -0
  132. data/docs/ScriptUpdate.md +12 -0
  133. data/docs/SecretStoreApi.md +2 -2
  134. data/docs/SecretStoreItemApi.md +2 -2
  135. data/docs/SecurityHeader.md +12 -0
  136. data/docs/ServiceAuthorizationsApi.md +2 -2
  137. data/docs/ServiceAuthorizationsResponse.md +1 -1
  138. data/docs/SuccessfulResponseAsObject.md +1 -0
  139. data/docs/SuccessfulResponseAsObjectAllOf.md +1 -0
  140. data/docs/TlsActivationsResponse.md +1 -1
  141. data/docs/TlsBulkCertificatesResponse.md +1 -1
  142. data/docs/TlsCertificatesResponse.md +1 -1
  143. data/docs/TlsConfigurationsResponse.md +1 -1
  144. data/docs/TlsDomainsResponse.md +1 -1
  145. data/docs/TlsPrivateKeysResponse.md +1 -1
  146. data/docs/TlsSubscriptionsResponse.md +1 -1
  147. data/docs/VersionsResponse.md +11 -0
  148. data/docs/WafSimulateRequest.md +11 -0
  149. data/docs/WafSimulateResponse.md +11 -0
  150. data/docs/WafSimulateSignal.md +16 -0
  151. data/docs/Website.md +14 -0
  152. data/docs/WebsiteCreate.md +10 -0
  153. data/docs/WebsiteUpdate.md +10 -0
  154. data/lib/fastly/api/backend_api.rb +16 -4
  155. data/lib/fastly/api/client_side_protection_api.rb +1465 -0
  156. data/lib/fastly/api/ddos_protection_api.rb +6 -6
  157. data/lib/fastly/api/dm_domains_api.rb +3 -3
  158. data/lib/fastly/api/dm_routing_configs_api.rb +1596 -0
  159. data/lib/fastly/api/domain_ownerships_api.rb +3 -3
  160. data/lib/fastly/api/domain_research_api.rb +3 -3
  161. data/lib/fastly/api/kv_store_api.rb +3 -3
  162. data/lib/fastly/api/kv_store_item_api.rb +3 -3
  163. data/lib/fastly/api/logging_azureblob_api.rb +6 -6
  164. data/lib/fastly/api/logging_cloudfiles_api.rb +6 -6
  165. data/lib/fastly/api/logging_digitalocean_api.rb +6 -6
  166. data/lib/fastly/api/logging_ftp_api.rb +6 -6
  167. data/lib/fastly/api/logging_gcs_api.rb +6 -6
  168. data/lib/fastly/api/logging_https_api.rb +4 -4
  169. data/lib/fastly/api/logging_openstack_api.rb +6 -6
  170. data/lib/fastly/api/logging_s3_api.rb +6 -6
  171. data/lib/fastly/api/logging_sftp_api.rb +6 -6
  172. data/lib/fastly/api/logging_sumologic_api.rb +4 -4
  173. data/lib/fastly/api/logging_syslog_api.rb +4 -4
  174. data/lib/fastly/api/ngwaf_agent_keys_api.rb +83 -0
  175. data/lib/fastly/api/ngwaf_simulate_api.rb +95 -0
  176. data/lib/fastly/api/product_bot_management_api.rb +133 -0
  177. data/lib/fastly/api/product_kv_store_api.rb +186 -0
  178. data/lib/fastly/api/secret_store_api.rb +3 -3
  179. data/lib/fastly/api/secret_store_item_api.rb +3 -3
  180. data/lib/fastly/api/service_authorizations_api.rb +3 -3
  181. data/lib/fastly/configuration.rb +294 -0
  182. data/lib/fastly/models/action.rb +237 -0
  183. data/lib/fastly/models/action_type.rb +34 -0
  184. data/lib/fastly/models/agent_key.rb +283 -0
  185. data/lib/fastly/models/agent_key_meta.rb +223 -0
  186. data/lib/fastly/models/backend.rb +24 -2
  187. data/lib/fastly/models/backend_response.rb +24 -2
  188. data/lib/fastly/models/bot_management_request_update_configuration.rb +256 -0
  189. data/lib/fastly/models/bot_management_response_configuration.rb +216 -0
  190. data/lib/fastly/models/bot_management_response_configuration_configuration.rb +217 -0
  191. data/lib/fastly/models/bot_management_response_configure.rb +253 -0
  192. data/lib/fastly/models/condition_operator.rb +37 -0
  193. data/lib/fastly/models/condition_type.rb +34 -0
  194. data/lib/fastly/models/directive.rb +229 -0
  195. data/lib/fastly/models/draft_diff.rb +244 -0
  196. data/lib/fastly/models/draft_update.rb +218 -0
  197. data/lib/fastly/models/events_response.rb +1 -1
  198. data/lib/fastly/models/header_event.rb +252 -0
  199. data/lib/fastly/models/initial_version.rb +242 -0
  200. data/lib/fastly/models/initial_version_path.rb +254 -0
  201. data/lib/fastly/models/inline_response20010.rb +2 -2
  202. data/lib/fastly/models/inline_response20011.rb +2 -2
  203. data/lib/fastly/models/inline_response20012.rb +1 -1
  204. data/lib/fastly/models/inline_response20013.rb +11 -1
  205. data/lib/fastly/models/inline_response20014.rb +15 -4
  206. data/lib/fastly/models/inline_response20015.rb +217 -0
  207. data/lib/fastly/models/inline_response20016.rb +218 -0
  208. data/lib/fastly/models/inline_response20017.rb +227 -0
  209. data/lib/fastly/models/inline_response20018.rb +227 -0
  210. data/lib/fastly/models/inline_response20019.rb +228 -0
  211. data/lib/fastly/models/inline_response20020.rb +227 -0
  212. data/lib/fastly/models/inline_response20021.rb +227 -0
  213. data/lib/fastly/models/inline_response20022.rb +218 -0
  214. data/lib/fastly/models/inline_response2005.rb +2 -2
  215. data/lib/fastly/models/inline_response2006.rb +2 -12
  216. data/lib/fastly/models/inline_response2007.rb +2 -4
  217. data/lib/fastly/models/inline_response2008.rb +18 -8
  218. data/lib/fastly/models/inline_response2009.rb +17 -8
  219. data/lib/fastly/models/invitations_response.rb +1 -1
  220. data/lib/fastly/models/kv_store_response_body_enable.rb +243 -0
  221. data/lib/fastly/models/kv_store_response_customer.rb +216 -0
  222. data/lib/fastly/models/kv_store_response_links.rb +216 -0
  223. data/lib/fastly/models/kv_store_response_links_links.rb +217 -0
  224. data/lib/fastly/models/kv_store_response_product.rb +216 -0
  225. data/lib/fastly/models/kv_store_response_product_product.rb +227 -0
  226. data/lib/fastly/models/logging_azureblob_response.rb +3 -3
  227. data/lib/fastly/models/logging_cloudfiles_response.rb +3 -3
  228. data/lib/fastly/models/logging_digitalocean_response.rb +3 -3
  229. data/lib/fastly/models/logging_ftp_response.rb +3 -3
  230. data/lib/fastly/models/logging_gcs_response.rb +3 -3
  231. data/lib/fastly/models/logging_generic_common.rb +3 -3
  232. data/lib/fastly/models/logging_generic_common_response.rb +3 -3
  233. data/lib/fastly/models/logging_generic_common_response_all_of.rb +3 -3
  234. data/lib/fastly/models/logging_https_additional.rb +1 -1
  235. data/lib/fastly/models/logging_https_response.rb +1 -1
  236. data/lib/fastly/models/logging_message_type.rb +1 -1
  237. data/lib/fastly/models/logging_openstack_response.rb +3 -3
  238. data/lib/fastly/models/logging_s3_response.rb +3 -3
  239. data/lib/fastly/models/logging_sftp_response.rb +3 -3
  240. data/lib/fastly/models/logging_sumologic_additional.rb +1 -1
  241. data/lib/fastly/models/logging_sumologic_response.rb +1 -1
  242. data/lib/fastly/models/logging_syslog_additional.rb +1 -1
  243. data/lib/fastly/models/logging_syslog_response.rb +1 -1
  244. data/lib/fastly/models/mutual_authentications_response.rb +1 -1
  245. data/lib/fastly/models/notification.rb +270 -0
  246. data/lib/fastly/models/notification_config.rb +218 -0
  247. data/lib/fastly/models/page.rb +289 -0
  248. data/lib/fastly/models/page_create.rb +266 -0
  249. data/lib/fastly/models/page_update.rb +256 -0
  250. data/lib/fastly/models/pagination.rb +1 -1
  251. data/lib/fastly/models/pagination_meta.rb +30 -55
  252. data/lib/fastly/models/pagination_meta1.rb +273 -0
  253. data/lib/fastly/models/path_change.rb +274 -0
  254. data/lib/fastly/models/path_create.rb +242 -0
  255. data/lib/fastly/models/path_response.rb +285 -0
  256. data/lib/fastly/models/path_response_all_of.rb +254 -0
  257. data/lib/fastly/models/path_update.rb +233 -0
  258. data/lib/fastly/models/path_with_rules.rb +228 -0
  259. data/lib/fastly/models/paths_response.rb +228 -0
  260. data/lib/fastly/models/policy.rb +315 -0
  261. data/lib/fastly/models/policy_create.rb +289 -0
  262. data/lib/fastly/models/policy_update.rb +279 -0
  263. data/lib/fastly/models/position.rb +228 -0
  264. data/lib/fastly/models/realtime_entry.rb +2 -5
  265. data/lib/fastly/models/realtime_entry_aggregated.rb +344 -34
  266. data/lib/fastly/models/realtime_entry_datacenter.rb +3577 -0
  267. data/lib/fastly/models/realtime_measurements.rb +344 -34
  268. data/lib/fastly/models/report.rb +261 -0
  269. data/lib/fastly/models/request_body_for_create.rb +12 -1
  270. data/lib/fastly/models/request_body_for_update.rb +12 -1
  271. data/lib/fastly/models/results.rb +341 -31
  272. data/lib/fastly/models/routing_config.rb +251 -0
  273. data/lib/fastly/models/routing_config_condition.rb +261 -0
  274. data/lib/fastly/models/routing_config_response.rb +305 -0
  275. data/lib/fastly/models/routing_config_response_all_of.rb +274 -0
  276. data/lib/fastly/models/routing_config_state.rb +36 -0
  277. data/lib/fastly/models/routing_config_version_response.rb +250 -0
  278. data/lib/fastly/models/routing_configs_response.rb +228 -0
  279. data/lib/fastly/models/rule_change.rb +236 -0
  280. data/lib/fastly/models/rule_create.rb +267 -0
  281. data/lib/fastly/models/rule_response.rb +279 -0
  282. data/lib/fastly/models/rule_response_all_of.rb +248 -0
  283. data/lib/fastly/models/rule_update.rb +252 -0
  284. data/lib/fastly/models/rules_response.rb +228 -0
  285. data/lib/fastly/models/script.rb +350 -0
  286. data/lib/fastly/models/script_update.rb +271 -0
  287. data/lib/fastly/models/security_header.rb +234 -0
  288. data/lib/fastly/models/service_authorizations_response.rb +1 -1
  289. data/lib/fastly/models/successful_response_as_object.rb +12 -1
  290. data/lib/fastly/models/successful_response_as_object_all_of.rb +12 -1
  291. data/lib/fastly/models/tls_activations_response.rb +1 -1
  292. data/lib/fastly/models/tls_bulk_certificates_response.rb +1 -1
  293. data/lib/fastly/models/tls_certificates_response.rb +1 -1
  294. data/lib/fastly/models/tls_configurations_response.rb +1 -1
  295. data/lib/fastly/models/tls_domains_response.rb +1 -1
  296. data/lib/fastly/models/tls_private_keys_response.rb +1 -1
  297. data/lib/fastly/models/tls_subscriptions_response.rb +1 -1
  298. data/lib/fastly/models/versions_response.rb +228 -0
  299. data/lib/fastly/models/waf_simulate_request.rb +233 -0
  300. data/lib/fastly/models/waf_simulate_response.rb +240 -0
  301. data/lib/fastly/models/waf_simulate_signal.rb +344 -0
  302. data/lib/fastly/models/website.rb +257 -0
  303. data/lib/fastly/models/website_create.rb +222 -0
  304. data/lib/fastly/models/website_update.rb +217 -0
  305. data/lib/fastly/version.rb +1 -1
  306. data/lib/fastly.rb +77 -0
  307. data/sig.json +1 -1
  308. metadata +156 -2
@@ -265,7 +265,7 @@ module Fastly
265
265
  # @option opts [String] :cursor Cursor value from the `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
266
266
  # @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
267
267
  # @option opts [String] :name Returns a one-element array containing the details for the named secret store.
268
- # @return [InlineResponse20012]
268
+ # @return [InlineResponse20020]
269
269
  def get_secret_stores(opts = {})
270
270
  data, _status_code, _headers = get_secret_stores_with_http_info(opts)
271
271
  data
@@ -276,7 +276,7 @@ module Fastly
276
276
  # @option opts [String] :cursor Cursor value from the `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
277
277
  # @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
278
278
  # @option opts [String] :name Returns a one-element array containing the details for the named secret store.
279
- # @return [Array<(InlineResponse20012, Integer, Hash)>] InlineResponse20012 data, response status code and response headers
279
+ # @return [Array<(InlineResponse20020, Integer, Hash)>] InlineResponse20020 data, response status code and response headers
280
280
  def get_secret_stores_with_http_info(opts = {})
281
281
  if @api_client.config.debugging
282
282
  @api_client.config.logger.debug 'Calling API: SecretStoreApi.get_secret_stores ...'
@@ -303,7 +303,7 @@ module Fastly
303
303
  post_body = opts[:debug_body]
304
304
 
305
305
  # return_type
306
- return_type = opts[:debug_return_type] || 'InlineResponse20012'
306
+ return_type = opts[:debug_return_type] || 'InlineResponse20020'
307
307
 
308
308
  # auth_names
309
309
  auth_names = opts[:debug_auth_names] || ['token']
@@ -230,7 +230,7 @@ module Fastly
230
230
  # @option opts [String] :store_id (required)
231
231
  # @option opts [String] :cursor Cursor value from the &#x60;next_cursor&#x60; field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
232
232
  # @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
233
- # @return [InlineResponse20013]
233
+ # @return [InlineResponse20021]
234
234
  def get_secrets(opts = {})
235
235
  data, _status_code, _headers = get_secrets_with_http_info(opts)
236
236
  data
@@ -241,7 +241,7 @@ module Fastly
241
241
  # @option opts [String] :store_id (required)
242
242
  # @option opts [String] :cursor Cursor value from the &#x60;next_cursor&#x60; field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
243
243
  # @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
244
- # @return [Array<(InlineResponse20013, Integer, Hash)>] InlineResponse20013 data, response status code and response headers
244
+ # @return [Array<(InlineResponse20021, Integer, Hash)>] InlineResponse20021 data, response status code and response headers
245
245
  def get_secrets_with_http_info(opts = {})
246
246
  if @api_client.config.debugging
247
247
  @api_client.config.logger.debug 'Calling API: SecretStoreItemApi.get_secrets ...'
@@ -272,7 +272,7 @@ module Fastly
272
272
  post_body = opts[:debug_body]
273
273
 
274
274
  # return_type
275
- return_type = opts[:debug_return_type] || 'InlineResponse20013'
275
+ return_type = opts[:debug_return_type] || 'InlineResponse20021'
276
276
 
277
277
  # auth_names
278
278
  auth_names = opts[:debug_auth_names] || ['token']
@@ -144,7 +144,7 @@ module Fastly
144
144
  # Delete service authorizations
145
145
  # Delete service authorizations.
146
146
  # @option opts [Hash<String, Object>] :request_body
147
- # @return [InlineResponse20014]
147
+ # @return [InlineResponse20022]
148
148
  def delete_service_authorization2(opts = {})
149
149
  data, _status_code, _headers = delete_service_authorization2_with_http_info(opts)
150
150
  data
@@ -153,7 +153,7 @@ module Fastly
153
153
  # Delete service authorizations
154
154
  # Delete service authorizations.
155
155
  # @option opts [Hash<String, Object>] :request_body
156
- # @return [Array<(InlineResponse20014, Integer, Hash)>] InlineResponse20014 data, response status code and response headers
156
+ # @return [Array<(InlineResponse20022, Integer, Hash)>] InlineResponse20022 data, response status code and response headers
157
157
  def delete_service_authorization2_with_http_info(opts = {})
158
158
  if @api_client.config.debugging
159
159
  @api_client.config.logger.debug 'Calling API: ServiceAuthorizationsApi.delete_service_authorization2 ...'
@@ -182,7 +182,7 @@ module Fastly
182
182
  post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
183
183
 
184
184
  # return_type
185
- return_type = opts[:debug_return_type] || 'InlineResponse20014'
185
+ return_type = opts[:debug_return_type] || 'InlineResponse20022'
186
186
 
187
187
  # auth_names
188
188
  auth_names = opts[:debug_auth_names] || ['token']
@@ -644,6 +644,126 @@ module Fastly
644
644
  description: "No description provided",
645
645
  }
646
646
  ],
647
+ "ClientSideProtectionApi.csp_create_page": [
648
+ {
649
+ url: "https://api.fastly.com",
650
+ description: "No description provided",
651
+ }
652
+ ],
653
+ "ClientSideProtectionApi.csp_create_policy": [
654
+ {
655
+ url: "https://api.fastly.com",
656
+ description: "No description provided",
657
+ }
658
+ ],
659
+ "ClientSideProtectionApi.csp_create_website": [
660
+ {
661
+ url: "https://api.fastly.com",
662
+ description: "No description provided",
663
+ }
664
+ ],
665
+ "ClientSideProtectionApi.csp_delete_page": [
666
+ {
667
+ url: "https://api.fastly.com",
668
+ description: "No description provided",
669
+ }
670
+ ],
671
+ "ClientSideProtectionApi.csp_delete_website": [
672
+ {
673
+ url: "https://api.fastly.com",
674
+ description: "No description provided",
675
+ }
676
+ ],
677
+ "ClientSideProtectionApi.csp_get_page": [
678
+ {
679
+ url: "https://api.fastly.com",
680
+ description: "No description provided",
681
+ }
682
+ ],
683
+ "ClientSideProtectionApi.csp_get_policy": [
684
+ {
685
+ url: "https://api.fastly.com",
686
+ description: "No description provided",
687
+ }
688
+ ],
689
+ "ClientSideProtectionApi.csp_get_script": [
690
+ {
691
+ url: "https://api.fastly.com",
692
+ description: "No description provided",
693
+ }
694
+ ],
695
+ "ClientSideProtectionApi.csp_get_website": [
696
+ {
697
+ url: "https://api.fastly.com",
698
+ description: "No description provided",
699
+ }
700
+ ],
701
+ "ClientSideProtectionApi.csp_list_header_events": [
702
+ {
703
+ url: "https://api.fastly.com",
704
+ description: "No description provided",
705
+ }
706
+ ],
707
+ "ClientSideProtectionApi.csp_list_headers": [
708
+ {
709
+ url: "https://api.fastly.com",
710
+ description: "No description provided",
711
+ }
712
+ ],
713
+ "ClientSideProtectionApi.csp_list_pages": [
714
+ {
715
+ url: "https://api.fastly.com",
716
+ description: "No description provided",
717
+ }
718
+ ],
719
+ "ClientSideProtectionApi.csp_list_policies": [
720
+ {
721
+ url: "https://api.fastly.com",
722
+ description: "No description provided",
723
+ }
724
+ ],
725
+ "ClientSideProtectionApi.csp_list_policy_reports": [
726
+ {
727
+ url: "https://api.fastly.com",
728
+ description: "No description provided",
729
+ }
730
+ ],
731
+ "ClientSideProtectionApi.csp_list_scripts": [
732
+ {
733
+ url: "https://api.fastly.com",
734
+ description: "No description provided",
735
+ }
736
+ ],
737
+ "ClientSideProtectionApi.csp_list_websites": [
738
+ {
739
+ url: "https://api.fastly.com",
740
+ description: "No description provided",
741
+ }
742
+ ],
743
+ "ClientSideProtectionApi.csp_update_page": [
744
+ {
745
+ url: "https://api.fastly.com",
746
+ description: "No description provided",
747
+ }
748
+ ],
749
+ "ClientSideProtectionApi.csp_update_policy": [
750
+ {
751
+ url: "https://api.fastly.com",
752
+ description: "No description provided",
753
+ }
754
+ ],
755
+ "ClientSideProtectionApi.csp_update_script": [
756
+ {
757
+ url: "https://api.fastly.com",
758
+ description: "No description provided",
759
+ }
760
+ ],
761
+ "ClientSideProtectionApi.csp_update_website": [
762
+ {
763
+ url: "https://api.fastly.com",
764
+ description: "No description provided",
765
+ }
766
+ ],
647
767
  "ConditionApi.create_condition": [
648
768
  {
649
769
  url: "https://api.fastly.com",
@@ -1028,6 +1148,138 @@ module Fastly
1028
1148
  description: "No description provided",
1029
1149
  }
1030
1150
  ],
1151
+ "DmRoutingConfigsApi.activate_dm_routing_config_draft": [
1152
+ {
1153
+ url: "https://api.fastly.com",
1154
+ description: "No description provided",
1155
+ }
1156
+ ],
1157
+ "DmRoutingConfigsApi.create_dm_routing_config": [
1158
+ {
1159
+ url: "https://api.fastly.com",
1160
+ description: "No description provided",
1161
+ }
1162
+ ],
1163
+ "DmRoutingConfigsApi.create_dm_routing_config_path": [
1164
+ {
1165
+ url: "https://api.fastly.com",
1166
+ description: "No description provided",
1167
+ }
1168
+ ],
1169
+ "DmRoutingConfigsApi.create_dm_routing_config_rule": [
1170
+ {
1171
+ url: "https://api.fastly.com",
1172
+ description: "No description provided",
1173
+ }
1174
+ ],
1175
+ "DmRoutingConfigsApi.deactivate_dm_routing_config": [
1176
+ {
1177
+ url: "https://api.fastly.com",
1178
+ description: "No description provided",
1179
+ }
1180
+ ],
1181
+ "DmRoutingConfigsApi.delete_dm_routing_config": [
1182
+ {
1183
+ url: "https://api.fastly.com",
1184
+ description: "No description provided",
1185
+ }
1186
+ ],
1187
+ "DmRoutingConfigsApi.delete_dm_routing_config_inactive_versions": [
1188
+ {
1189
+ url: "https://api.fastly.com",
1190
+ description: "No description provided",
1191
+ }
1192
+ ],
1193
+ "DmRoutingConfigsApi.delete_dm_routing_config_path": [
1194
+ {
1195
+ url: "https://api.fastly.com",
1196
+ description: "No description provided",
1197
+ }
1198
+ ],
1199
+ "DmRoutingConfigsApi.delete_dm_routing_config_rule": [
1200
+ {
1201
+ url: "https://api.fastly.com",
1202
+ description: "No description provided",
1203
+ }
1204
+ ],
1205
+ "DmRoutingConfigsApi.discard_dm_routing_config_draft": [
1206
+ {
1207
+ url: "https://api.fastly.com",
1208
+ description: "No description provided",
1209
+ }
1210
+ ],
1211
+ "DmRoutingConfigsApi.get_dm_routing_config": [
1212
+ {
1213
+ url: "https://api.fastly.com",
1214
+ description: "No description provided",
1215
+ }
1216
+ ],
1217
+ "DmRoutingConfigsApi.get_dm_routing_config_draft_diff": [
1218
+ {
1219
+ url: "https://api.fastly.com",
1220
+ description: "No description provided",
1221
+ }
1222
+ ],
1223
+ "DmRoutingConfigsApi.get_dm_routing_config_path": [
1224
+ {
1225
+ url: "https://api.fastly.com",
1226
+ description: "No description provided",
1227
+ }
1228
+ ],
1229
+ "DmRoutingConfigsApi.get_dm_routing_config_rule": [
1230
+ {
1231
+ url: "https://api.fastly.com",
1232
+ description: "No description provided",
1233
+ }
1234
+ ],
1235
+ "DmRoutingConfigsApi.list_dm_routing_config_paths": [
1236
+ {
1237
+ url: "https://api.fastly.com",
1238
+ description: "No description provided",
1239
+ }
1240
+ ],
1241
+ "DmRoutingConfigsApi.list_dm_routing_config_rules": [
1242
+ {
1243
+ url: "https://api.fastly.com",
1244
+ description: "No description provided",
1245
+ }
1246
+ ],
1247
+ "DmRoutingConfigsApi.list_dm_routing_config_versions": [
1248
+ {
1249
+ url: "https://api.fastly.com",
1250
+ description: "No description provided",
1251
+ }
1252
+ ],
1253
+ "DmRoutingConfigsApi.list_dm_routing_configs": [
1254
+ {
1255
+ url: "https://api.fastly.com",
1256
+ description: "No description provided",
1257
+ }
1258
+ ],
1259
+ "DmRoutingConfigsApi.reactivate_dm_routing_config_version": [
1260
+ {
1261
+ url: "https://api.fastly.com",
1262
+ description: "No description provided",
1263
+ }
1264
+ ],
1265
+ "DmRoutingConfigsApi.update_dm_routing_config_draft": [
1266
+ {
1267
+ url: "https://api.fastly.com",
1268
+ description: "No description provided",
1269
+ }
1270
+ ],
1271
+ "DmRoutingConfigsApi.update_dm_routing_config_path": [
1272
+ {
1273
+ url: "https://api.fastly.com",
1274
+ description: "No description provided",
1275
+ }
1276
+ ],
1277
+ "DmRoutingConfigsApi.update_dm_routing_config_rule": [
1278
+ {
1279
+ url: "https://api.fastly.com",
1280
+ description: "No description provided",
1281
+ }
1282
+ ],
1031
1283
  "DomainApi.check_domain": [
1032
1284
  {
1033
1285
  url: "https://api.fastly.com",
@@ -2408,6 +2660,12 @@ module Fastly
2408
2660
  description: "No description provided",
2409
2661
  }
2410
2662
  ],
2663
+ "NgwafAgentKeysApi.ngwaf_list_agent_keys": [
2664
+ {
2665
+ url: "https://api.fastly.com",
2666
+ description: "No description provided",
2667
+ }
2668
+ ],
2411
2669
  "NgwafReportsApi.get_attacks_report": [
2412
2670
  {
2413
2671
  url: "https://api.fastly.com",
@@ -2420,6 +2678,12 @@ module Fastly
2420
2678
  description: "No description provided",
2421
2679
  }
2422
2680
  ],
2681
+ "NgwafSimulateApi.ngwaf_simulate_waf_request": [
2682
+ {
2683
+ url: "https://api.fastly.com",
2684
+ description: "No description provided",
2685
+ }
2686
+ ],
2423
2687
  "ObjectStorageAccessKeysApi.create_access_key": [
2424
2688
  {
2425
2689
  url: "https://api.fastly.com",
@@ -2618,12 +2882,24 @@ module Fastly
2618
2882
  description: "No description provided",
2619
2883
  }
2620
2884
  ],
2885
+ "ProductBotManagementApi.get_product_bot_management_configuration": [
2886
+ {
2887
+ url: "https://api.fastly.com",
2888
+ description: "No description provided",
2889
+ }
2890
+ ],
2621
2891
  "ProductBotManagementApi.get_services_product_bot_management": [
2622
2892
  {
2623
2893
  url: "https://api.fastly.com",
2624
2894
  description: "No description provided",
2625
2895
  }
2626
2896
  ],
2897
+ "ProductBotManagementApi.set_product_bot_management_configuration": [
2898
+ {
2899
+ url: "https://api.fastly.com",
2900
+ description: "No description provided",
2901
+ }
2902
+ ],
2627
2903
  "ProductBrotliCompressionApi.disable_product_brotli_compression": [
2628
2904
  {
2629
2905
  url: "https://api.fastly.com",
@@ -2774,6 +3050,24 @@ module Fastly
2774
3050
  description: "No description provided",
2775
3051
  }
2776
3052
  ],
3053
+ "ProductKvStoreApi.disable_product_kv_store": [
3054
+ {
3055
+ url: "https://api.fastly.com",
3056
+ description: "No description provided",
3057
+ }
3058
+ ],
3059
+ "ProductKvStoreApi.enable_kv_store": [
3060
+ {
3061
+ url: "https://api.fastly.com",
3062
+ description: "No description provided",
3063
+ }
3064
+ ],
3065
+ "ProductKvStoreApi.get_kv_store": [
3066
+ {
3067
+ url: "https://api.fastly.com",
3068
+ description: "No description provided",
3069
+ }
3070
+ ],
2777
3071
  "ProductLogExplorerInsightsApi.disable_product_log_explorer_insights": [
2778
3072
  {
2779
3073
  url: "https://api.fastly.com",
@@ -0,0 +1,237 @@
1
+ =begin
2
+ #Fastly API
3
+
4
+ #Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: oss@fastly.com
8
+
9
+ =end
10
+
11
+ require 'date'
12
+ require 'time'
13
+
14
+ module Fastly
15
+ # The action to take when a rule matches.
16
+ class Action
17
+ attr_accessor :type
18
+
19
+ # The value for the action. For `service` actions, this is the target Fastly service ID.
20
+ attr_accessor :value
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'type' => :'type',
26
+ :'value' => :'value'
27
+ }
28
+ end
29
+
30
+ # Returns all the JSON keys this model knows about
31
+ def self.acceptable_attributes
32
+ attribute_map.values
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.fastly_types
37
+ {
38
+ :'type' => :'ActionType',
39
+ :'value' => :'String'
40
+ }
41
+ end
42
+
43
+ # List of attributes with nullable: true
44
+ def self.fastly_nullable
45
+ Set.new([
46
+ ])
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::Action` initialize method"
54
+ end
55
+
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h|
58
+ if (!self.class.attribute_map.key?(k.to_sym))
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::Action`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ end
61
+ h[k.to_sym] = v
62
+ }
63
+
64
+ if attributes.key?(:'type')
65
+ self.type = attributes[:'type']
66
+ end
67
+
68
+ if attributes.key?(:'value')
69
+ self.value = attributes[:'value']
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ invalid_properties = Array.new
77
+ if @type.nil?
78
+ invalid_properties.push('invalid value for "type", type cannot be nil.')
79
+ end
80
+
81
+ if @value.nil?
82
+ invalid_properties.push('invalid value for "value", value cannot be nil.')
83
+ end
84
+
85
+ invalid_properties
86
+ end
87
+
88
+ # Check to see if the all the properties in the model are valid
89
+ # @return true if the model is valid
90
+ def valid?
91
+ return false if @type.nil?
92
+ return false if @value.nil?
93
+ true
94
+ end
95
+
96
+ # Checks equality by comparing each attribute.
97
+ # @param [Object] Object to be compared
98
+ def ==(o)
99
+ return true if self.equal?(o)
100
+ self.class == o.class &&
101
+ type == o.type &&
102
+ value == o.value
103
+ end
104
+
105
+ # @see the `==` method
106
+ # @param [Object] Object to be compared
107
+ def eql?(o)
108
+ self == o
109
+ end
110
+
111
+ # Calculates hash code according to all attributes.
112
+ # @return [Integer] Hash code
113
+ def hash
114
+ [type, value].hash
115
+ end
116
+
117
+ # Builds the object from hash
118
+ # @param [Hash] attributes Model attributes in the form of hash
119
+ # @return [Object] Returns the model itself
120
+ def self.build_from_hash(attributes)
121
+ new.build_from_hash(attributes)
122
+ end
123
+
124
+ # Builds the object from hash
125
+ # @param [Hash] attributes Model attributes in the form of hash
126
+ # @return [Object] Returns the model itself
127
+ def build_from_hash(attributes)
128
+ return nil unless attributes.is_a?(Hash)
129
+ self.class.fastly_types.each_pair do |key, type|
130
+ if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
131
+ self.send("#{key}=", nil)
132
+ elsif type =~ /\AArray<(.*)>/i
133
+ # check to ensure the input is an array given that the attribute
134
+ # is documented as an array but the input is not
135
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
136
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
137
+ end
138
+ elsif !attributes[self.class.attribute_map[key]].nil?
139
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
140
+ end
141
+ end
142
+
143
+ self
144
+ end
145
+
146
+ # Deserializes the data based on type
147
+ # @param string type Data type
148
+ # @param string value Value to be deserialized
149
+ # @return [Object] Deserialized data
150
+ def _deserialize(type, value)
151
+ case type.to_sym
152
+ when :Time
153
+ Time.parse(value)
154
+ when :Date
155
+ Date.parse(value)
156
+ when :String
157
+ value.to_s
158
+ when :Integer
159
+ value.to_i
160
+ when :Float
161
+ value.to_f
162
+ when :Boolean
163
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
164
+ true
165
+ else
166
+ false
167
+ end
168
+ when :Object
169
+ # generic object (usually a Hash), return directly
170
+ value
171
+ when /\AArray<(?<inner_type>.+)>\z/
172
+ inner_type = Regexp.last_match[:inner_type]
173
+ value.map { |v| _deserialize(inner_type, v) }
174
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
175
+ k_type = Regexp.last_match[:k_type]
176
+ v_type = Regexp.last_match[:v_type]
177
+ {}.tap do |hash|
178
+ value.each do |k, v|
179
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
180
+ end
181
+ end
182
+ else # model
183
+ # models (e.g. Pet) or oneOf
184
+ klass = Fastly.const_get(type)
185
+ klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
186
+ end
187
+ end
188
+
189
+ # Returns the string representation of the object
190
+ # @return [String] String presentation of the object
191
+ def to_s
192
+ to_hash.to_s
193
+ end
194
+
195
+ # to_body is an alias to to_hash (backward compatibility)
196
+ # @return [Hash] Returns the object in the form of hash
197
+ def to_body
198
+ to_hash
199
+ end
200
+
201
+ # Returns the object in the form of hash
202
+ # @return [Hash] Returns the object in the form of hash
203
+ def to_hash
204
+ hash = {}
205
+ self.class.attribute_map.each_pair do |attr, param|
206
+ value = self.send(attr)
207
+ if value.nil?
208
+ is_nullable = self.class.fastly_nullable.include?(attr)
209
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
210
+ end
211
+
212
+ hash[param] = _to_hash(value)
213
+ end
214
+ hash
215
+ end
216
+
217
+ # Outputs non-array value in the form of hash
218
+ # For object, use to_hash. Otherwise, just return the value
219
+ # @param [Object] value Any valid value
220
+ # @return [Hash] Returns the value in the form of hash
221
+ def _to_hash(value)
222
+ if value.is_a?(Array)
223
+ value.compact.map { |v| _to_hash(v) }
224
+ elsif value.is_a?(Hash)
225
+ {}.tap do |hash|
226
+ value.each { |k, v| hash[k] = _to_hash(v) }
227
+ end
228
+ elsif value.respond_to? :to_hash
229
+ value.to_hash
230
+ else
231
+ value
232
+ end
233
+ end
234
+
235
+ end
236
+
237
+ end
@@ -0,0 +1,34 @@
1
+ =begin
2
+ #Fastly API
3
+
4
+ #Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: oss@fastly.com
8
+
9
+ =end
10
+
11
+ require 'date'
12
+ require 'time'
13
+
14
+ module Fastly
15
+ class ActionType
16
+ action_type_service = "service".freeze
17
+
18
+ # Builds the enum from string
19
+ # @param [String] The enum value in the form of the string
20
+ # @return [String] The enum value
21
+ def self.build_from_hash(value)
22
+ new.build_from_hash(value)
23
+ end
24
+
25
+ # Builds the enum from string
26
+ # @param [String] The enum value in the form of the string
27
+ # @return [String] The enum value
28
+ def build_from_hash(value)
29
+ constantValues = ActionType.constants.select { |c| ActionType::const_get(c) == value }
30
+ raise "Invalid ENUM value #{value} for class #ActionType" if constantValues.empty?
31
+ value
32
+ end
33
+ end
34
+ end