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
@@ -27,7 +27,7 @@ module Fastly
27
27
  # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
28
28
  # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
29
29
  # @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
30
- # @option opts [String] :message_type How the message should be formatted. (default to 'classic')
30
+ # @option opts [String] :message_type How the message should be formatted. (default to 'blank')
31
31
  # @option opts [String] :timestamp_format A timestamp format
32
32
  # @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
33
33
  # @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
@@ -56,7 +56,7 @@ module Fastly
56
56
  # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
57
57
  # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
58
58
  # @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
59
- # @option opts [String] :message_type How the message should be formatted. (default to 'classic')
59
+ # @option opts [String] :message_type How the message should be formatted. (default to 'blank')
60
60
  # @option opts [String] :timestamp_format A timestamp format
61
61
  # @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
62
62
  # @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
@@ -97,7 +97,7 @@ module Fastly
97
97
  if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
98
98
  fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
99
99
  end
100
- allowable_values = ["classic", "loggly", "logplex", "blank"]
100
+ allowable_values = ["blank", "classic", "loggly", "logplex"]
101
101
  if @api_client.config.client_side_validation && opts[:'message_type'] && !allowable_values.include?(opts[:'message_type'])
102
102
  fail ArgumentError, "invalid value for \"message_type\", must be one of #{allowable_values}"
103
103
  end
@@ -404,7 +404,7 @@ module Fastly
404
404
  # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
405
405
  # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
406
406
  # @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
407
- # @option opts [String] :message_type How the message should be formatted. (default to 'classic')
407
+ # @option opts [String] :message_type How the message should be formatted. (default to 'blank')
408
408
  # @option opts [String] :timestamp_format A timestamp format
409
409
  # @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
410
410
  # @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
@@ -434,7 +434,7 @@ module Fastly
434
434
  # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
435
435
  # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
436
436
  # @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
437
- # @option opts [String] :message_type How the message should be formatted. (default to 'classic')
437
+ # @option opts [String] :message_type How the message should be formatted. (default to 'blank')
438
438
  # @option opts [String] :timestamp_format A timestamp format
439
439
  # @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
440
440
  # @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
@@ -480,7 +480,7 @@ module Fastly
480
480
  if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
481
481
  fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
482
482
  end
483
- allowable_values = ["classic", "loggly", "logplex", "blank"]
483
+ allowable_values = ["blank", "classic", "loggly", "logplex"]
484
484
  if @api_client.config.client_side_validation && opts[:'message_type'] && !allowable_values.include?(opts[:'message_type'])
485
485
  fail ArgumentError, "invalid value for \"message_type\", must be one of #{allowable_values}"
486
486
  end
@@ -27,7 +27,7 @@ module Fastly
27
27
  # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
28
28
  # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
29
29
  # @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
30
- # @option opts [LoggingMessageType] :message_type (default to 'classic')
30
+ # @option opts [LoggingMessageType] :message_type (default to 'blank')
31
31
  # @option opts [String] :url The URL to post logs to.
32
32
  # @return [LoggingSumologicResponse]
33
33
  def create_log_sumologic(opts = {})
@@ -45,7 +45,7 @@ module Fastly
45
45
  # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
46
46
  # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
47
47
  # @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
48
- # @option opts [LoggingMessageType] :message_type (default to 'classic')
48
+ # @option opts [LoggingMessageType] :message_type (default to 'blank')
49
49
  # @option opts [String] :url The URL to post logs to.
50
50
  # @return [Array<(LoggingSumologicResponse, Integer, Hash)>] LoggingSumologicResponse data, response status code and response headers
51
51
  def create_log_sumologic_with_http_info(opts = {})
@@ -363,7 +363,7 @@ module Fastly
363
363
  # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %&gt;s %b')
364
364
  # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are &#x60;us&#x60;, &#x60;eu&#x60;, and &#x60;none&#x60; for global. (default to 'none')
365
365
  # @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in &#x60;vcl_log&#x60; if &#x60;format_version&#x60; is set to &#x60;2&#x60; and in &#x60;vcl_deliver&#x60; if &#x60;format_version&#x60; is set to &#x60;1&#x60;. (default to FORMAT_VERSION::v2)
366
- # @option opts [LoggingMessageType] :message_type (default to 'classic')
366
+ # @option opts [LoggingMessageType] :message_type (default to 'blank')
367
367
  # @option opts [String] :url The URL to post logs to.
368
368
  # @return [LoggingSumologicResponse]
369
369
  def update_log_sumologic(opts = {})
@@ -382,7 +382,7 @@ module Fastly
382
382
  # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %&gt;s %b')
383
383
  # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are &#x60;us&#x60;, &#x60;eu&#x60;, and &#x60;none&#x60; for global. (default to 'none')
384
384
  # @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in &#x60;vcl_log&#x60; if &#x60;format_version&#x60; is set to &#x60;2&#x60; and in &#x60;vcl_deliver&#x60; if &#x60;format_version&#x60; is set to &#x60;1&#x60;. (default to FORMAT_VERSION::v2)
385
- # @option opts [LoggingMessageType] :message_type (default to 'classic')
385
+ # @option opts [LoggingMessageType] :message_type (default to 'blank')
386
386
  # @option opts [String] :url The URL to post logs to.
387
387
  # @return [Array<(LoggingSumologicResponse, Integer, Hash)>] LoggingSumologicResponse data, response status code and response headers
388
388
  def update_log_sumologic_with_http_info(opts = {})
@@ -33,7 +33,7 @@ module Fastly
33
33
  # @option opts [String] :tls_hostname The hostname to verify the server&#39;s certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. (default to 'null')
34
34
  # @option opts [String] :address A hostname or IPv4 address.
35
35
  # @option opts [Integer] :port The port number. (default to 514)
36
- # @option opts [LoggingMessageType] :message_type (default to 'classic')
36
+ # @option opts [LoggingMessageType] :message_type (default to 'blank')
37
37
  # @option opts [String] :hostname The hostname used for the syslog endpoint.
38
38
  # @option opts [String] :ipv4 The IPv4 address used for the syslog endpoint.
39
39
  # @option opts [String] :token Whether to prepend each message with a specific token. (default to 'null')
@@ -60,7 +60,7 @@ module Fastly
60
60
  # @option opts [String] :tls_hostname The hostname to verify the server&#39;s certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. (default to 'null')
61
61
  # @option opts [String] :address A hostname or IPv4 address.
62
62
  # @option opts [Integer] :port The port number. (default to 514)
63
- # @option opts [LoggingMessageType] :message_type (default to 'classic')
63
+ # @option opts [LoggingMessageType] :message_type (default to 'blank')
64
64
  # @option opts [String] :hostname The hostname used for the syslog endpoint.
65
65
  # @option opts [String] :ipv4 The IPv4 address used for the syslog endpoint.
66
66
  # @option opts [String] :token Whether to prepend each message with a specific token. (default to 'null')
@@ -396,7 +396,7 @@ module Fastly
396
396
  # @option opts [String] :tls_hostname The hostname to verify the server&#39;s certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. (default to 'null')
397
397
  # @option opts [String] :address A hostname or IPv4 address.
398
398
  # @option opts [Integer] :port The port number. (default to 514)
399
- # @option opts [LoggingMessageType] :message_type (default to 'classic')
399
+ # @option opts [LoggingMessageType] :message_type (default to 'blank')
400
400
  # @option opts [String] :hostname The hostname used for the syslog endpoint.
401
401
  # @option opts [String] :ipv4 The IPv4 address used for the syslog endpoint.
402
402
  # @option opts [String] :token Whether to prepend each message with a specific token. (default to 'null')
@@ -424,7 +424,7 @@ module Fastly
424
424
  # @option opts [String] :tls_hostname The hostname to verify the server&#39;s certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. (default to 'null')
425
425
  # @option opts [String] :address A hostname or IPv4 address.
426
426
  # @option opts [Integer] :port The port number. (default to 514)
427
- # @option opts [LoggingMessageType] :message_type (default to 'classic')
427
+ # @option opts [LoggingMessageType] :message_type (default to 'blank')
428
428
  # @option opts [String] :hostname The hostname used for the syslog endpoint.
429
429
  # @option opts [String] :ipv4 The IPv4 address used for the syslog endpoint.
430
430
  # @option opts [String] :token Whether to prepend each message with a specific token. (default to 'null')
@@ -0,0 +1,83 @@
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 'cgi'
12
+
13
+ module Fastly
14
+ class NgwafAgentKeysApi
15
+ attr_accessor :api_client
16
+
17
+ def initialize(api_client = ApiClient.default)
18
+ @api_client = api_client
19
+ end
20
+ # List agent keys for a workspace
21
+ # List agent keys for a workspace.
22
+ # @option opts [String] :workspace_id The ID of the workspace. (required)
23
+ # @return [InlineResponse20019]
24
+ def ngwaf_list_agent_keys(opts = {})
25
+ data, _status_code, _headers = ngwaf_list_agent_keys_with_http_info(opts)
26
+ data
27
+ end
28
+
29
+ # List agent keys for a workspace
30
+ # List agent keys for a workspace.
31
+ # @option opts [String] :workspace_id The ID of the workspace. (required)
32
+ # @return [Array<(InlineResponse20019, Integer, Hash)>] InlineResponse20019 data, response status code and response headers
33
+ def ngwaf_list_agent_keys_with_http_info(opts = {})
34
+ if @api_client.config.debugging
35
+ @api_client.config.logger.debug 'Calling API: NgwafAgentKeysApi.ngwaf_list_agent_keys ...'
36
+ end
37
+ # unbox the parameters from the hash
38
+ workspace_id = opts[:'workspace_id']
39
+ # verify the required parameter 'workspace_id' is set
40
+ if @api_client.config.client_side_validation && workspace_id.nil?
41
+ fail ArgumentError, "Missing the required parameter 'workspace_id' when calling NgwafAgentKeysApi.ngwaf_list_agent_keys"
42
+ end
43
+ # resource path
44
+ local_var_path = '/ngwaf/v1/workspaces/{workspace_id}/agent-keys'.sub('{' + 'workspace_id' + '}', CGI.escape(workspace_id.to_s))
45
+
46
+ # query parameters
47
+ query_params = opts[:query_params] || {}
48
+
49
+ # header parameters
50
+ header_params = opts[:header_params] || {}
51
+ # HTTP header 'Accept' (if needed)
52
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json'])
53
+
54
+ # form parameters
55
+ form_params = opts[:form_params] || {}
56
+
57
+ # http body (model)
58
+ post_body = opts[:debug_body]
59
+
60
+ # return_type
61
+ return_type = opts[:debug_return_type] || 'InlineResponse20019'
62
+
63
+ # auth_names
64
+ auth_names = opts[:debug_auth_names] || ['token']
65
+
66
+ new_options = opts.merge(
67
+ :operation => :"NgwafAgentKeysApi.ngwaf_list_agent_keys",
68
+ :header_params => header_params,
69
+ :query_params => query_params,
70
+ :form_params => form_params,
71
+ :body => post_body,
72
+ :auth_names => auth_names,
73
+ :return_type => return_type
74
+ )
75
+
76
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
77
+ if @api_client.config.debugging
78
+ @api_client.config.logger.debug "API called: NgwafAgentKeysApi#ngwaf_list_agent_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
79
+ end
80
+ return data, status_code, headers
81
+ end
82
+ end
83
+ end
@@ -0,0 +1,95 @@
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 'cgi'
12
+
13
+ module Fastly
14
+ class NgwafSimulateApi
15
+ attr_accessor :api_client
16
+
17
+ def initialize(api_client = ApiClient.default)
18
+ @api_client = api_client
19
+ end
20
+ # Simulate a WAF request
21
+ # Simulates a request through the workspace's WAF configuration and returns the WAF response code and any signals that would be detected. The operation is stateless — no simulation data is persisted.
22
+ # @option opts [String] :workspace_id The ID of the workspace. (required)
23
+ # @option opts [WafSimulateRequest] :waf_simulate_request (required)
24
+ # @return [WafSimulateResponse]
25
+ def ngwaf_simulate_waf_request(opts = {})
26
+ data, _status_code, _headers = ngwaf_simulate_waf_request_with_http_info(opts)
27
+ data
28
+ end
29
+
30
+ # Simulate a WAF request
31
+ # Simulates a request through the workspace&#39;s WAF configuration and returns the WAF response code and any signals that would be detected. The operation is stateless — no simulation data is persisted.
32
+ # @option opts [String] :workspace_id The ID of the workspace. (required)
33
+ # @option opts [WafSimulateRequest] :waf_simulate_request (required)
34
+ # @return [Array<(WafSimulateResponse, Integer, Hash)>] WafSimulateResponse data, response status code and response headers
35
+ def ngwaf_simulate_waf_request_with_http_info(opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: NgwafSimulateApi.ngwaf_simulate_waf_request ...'
38
+ end
39
+ # unbox the parameters from the hash
40
+ workspace_id = opts[:'workspace_id']
41
+ waf_simulate_request = opts[:'waf_simulate_request']
42
+ # verify the required parameter 'workspace_id' is set
43
+ if @api_client.config.client_side_validation && workspace_id.nil?
44
+ fail ArgumentError, "Missing the required parameter 'workspace_id' when calling NgwafSimulateApi.ngwaf_simulate_waf_request"
45
+ end
46
+ # verify the required parameter 'waf_simulate_request' is set
47
+ if @api_client.config.client_side_validation && waf_simulate_request.nil?
48
+ fail ArgumentError, "Missing the required parameter 'waf_simulate_request' when calling NgwafSimulateApi.ngwaf_simulate_waf_request"
49
+ end
50
+ # resource path
51
+ local_var_path = '/ngwaf/v1/workspaces/{workspace_id}/simulate'.sub('{' + 'workspace_id' + '}', CGI.escape(workspace_id.to_s))
52
+
53
+ # query parameters
54
+ query_params = opts[:query_params] || {}
55
+
56
+ # header parameters
57
+ header_params = opts[:header_params] || {}
58
+ # HTTP header 'Accept' (if needed)
59
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json'])
60
+ # HTTP header 'Content-Type'
61
+ content_type = @api_client.select_header_content_type(['application/json'])
62
+ if !content_type.nil?
63
+ header_params['Content-Type'] = content_type
64
+ end
65
+
66
+ # form parameters
67
+ form_params = opts[:form_params] || {}
68
+
69
+ # http body (model)
70
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(waf_simulate_request)
71
+
72
+ # return_type
73
+ return_type = opts[:debug_return_type] || 'WafSimulateResponse'
74
+
75
+ # auth_names
76
+ auth_names = opts[:debug_auth_names] || ['token']
77
+
78
+ new_options = opts.merge(
79
+ :operation => :"NgwafSimulateApi.ngwaf_simulate_waf_request",
80
+ :header_params => header_params,
81
+ :query_params => query_params,
82
+ :form_params => form_params,
83
+ :body => post_body,
84
+ :auth_names => auth_names,
85
+ :return_type => return_type
86
+ )
87
+
88
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
89
+ if @api_client.config.debugging
90
+ @api_client.config.logger.debug "API called: NgwafSimulateApi#ngwaf_simulate_waf_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
91
+ end
92
+ return data, status_code, headers
93
+ end
94
+ end
95
+ end
@@ -204,6 +204,69 @@ module Fastly
204
204
  return data, status_code, headers
205
205
  end
206
206
 
207
+ # Get configuration
208
+ # Get the configuration of the Bot Management product on a service.
209
+ # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
210
+ # @return [BotManagementResponseConfigure]
211
+ def get_product_bot_management_configuration(opts = {})
212
+ data, _status_code, _headers = get_product_bot_management_configuration_with_http_info(opts)
213
+ data
214
+ end
215
+
216
+ # Get configuration
217
+ # Get the configuration of the Bot Management product on a service.
218
+ # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
219
+ # @return [Array<(BotManagementResponseConfigure, Integer, Hash)>] BotManagementResponseConfigure data, response status code and response headers
220
+ def get_product_bot_management_configuration_with_http_info(opts = {})
221
+ if @api_client.config.debugging
222
+ @api_client.config.logger.debug 'Calling API: ProductBotManagementApi.get_product_bot_management_configuration ...'
223
+ end
224
+ # unbox the parameters from the hash
225
+ service_id = opts[:'service_id']
226
+ # verify the required parameter 'service_id' is set
227
+ if @api_client.config.client_side_validation && service_id.nil?
228
+ fail ArgumentError, "Missing the required parameter 'service_id' when calling ProductBotManagementApi.get_product_bot_management_configuration"
229
+ end
230
+ # resource path
231
+ local_var_path = '/enabled-products/v1/bot_management/services/{service_id}/configuration'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
232
+
233
+ # query parameters
234
+ query_params = opts[:query_params] || {}
235
+
236
+ # header parameters
237
+ header_params = opts[:header_params] || {}
238
+ # HTTP header 'Accept' (if needed)
239
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
240
+
241
+ # form parameters
242
+ form_params = opts[:form_params] || {}
243
+
244
+ # http body (model)
245
+ post_body = opts[:debug_body]
246
+
247
+ # return_type
248
+ return_type = opts[:debug_return_type] || 'BotManagementResponseConfigure'
249
+
250
+ # auth_names
251
+ auth_names = opts[:debug_auth_names] || ['token']
252
+
253
+ new_options = opts.merge(
254
+ :operation => :"ProductBotManagementApi.get_product_bot_management_configuration",
255
+ :header_params => header_params,
256
+ :query_params => query_params,
257
+ :form_params => form_params,
258
+ :body => post_body,
259
+ :auth_names => auth_names,
260
+ :return_type => return_type
261
+ )
262
+
263
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
264
+ if @api_client.config.debugging
265
+ @api_client.config.logger.debug "API called: ProductBotManagementApi#get_product_bot_management_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
266
+ end
267
+ return data, status_code, headers
268
+ end
269
+
207
270
  # Get services with product enabled
208
271
  # Get all the services which have the Bot Management product enabled.
209
272
  # @return [BotManagementResponseBodyGetAllServices]
@@ -259,5 +322,75 @@ module Fastly
259
322
  end
260
323
  return data, status_code, headers
261
324
  end
325
+
326
+ # Update configuration
327
+ # Update the configuration of the Bot Management product on a service.
328
+ # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
329
+ # @option opts [BotManagementRequestUpdateConfiguration] :bot_management_request_update_configuration
330
+ # @return [BotManagementResponseConfigure]
331
+ def set_product_bot_management_configuration(opts = {})
332
+ data, _status_code, _headers = set_product_bot_management_configuration_with_http_info(opts)
333
+ data
334
+ end
335
+
336
+ # Update configuration
337
+ # Update the configuration of the Bot Management product on a service.
338
+ # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
339
+ # @option opts [BotManagementRequestUpdateConfiguration] :bot_management_request_update_configuration
340
+ # @return [Array<(BotManagementResponseConfigure, Integer, Hash)>] BotManagementResponseConfigure data, response status code and response headers
341
+ def set_product_bot_management_configuration_with_http_info(opts = {})
342
+ if @api_client.config.debugging
343
+ @api_client.config.logger.debug 'Calling API: ProductBotManagementApi.set_product_bot_management_configuration ...'
344
+ end
345
+ # unbox the parameters from the hash
346
+ service_id = opts[:'service_id']
347
+ # verify the required parameter 'service_id' is set
348
+ if @api_client.config.client_side_validation && service_id.nil?
349
+ fail ArgumentError, "Missing the required parameter 'service_id' when calling ProductBotManagementApi.set_product_bot_management_configuration"
350
+ end
351
+ # resource path
352
+ local_var_path = '/enabled-products/v1/bot_management/services/{service_id}/configuration'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
353
+
354
+ # query parameters
355
+ query_params = opts[:query_params] || {}
356
+
357
+ # header parameters
358
+ header_params = opts[:header_params] || {}
359
+ # HTTP header 'Accept' (if needed)
360
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
361
+ # HTTP header 'Content-Type'
362
+ content_type = @api_client.select_header_content_type(['application/json'])
363
+ if !content_type.nil?
364
+ header_params['Content-Type'] = content_type
365
+ end
366
+
367
+ # form parameters
368
+ form_params = opts[:form_params] || {}
369
+
370
+ # http body (model)
371
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'bot_management_request_update_configuration'])
372
+
373
+ # return_type
374
+ return_type = opts[:debug_return_type] || 'BotManagementResponseConfigure'
375
+
376
+ # auth_names
377
+ auth_names = opts[:debug_auth_names] || ['token']
378
+
379
+ new_options = opts.merge(
380
+ :operation => :"ProductBotManagementApi.set_product_bot_management_configuration",
381
+ :header_params => header_params,
382
+ :query_params => query_params,
383
+ :form_params => form_params,
384
+ :body => post_body,
385
+ :auth_names => auth_names,
386
+ :return_type => return_type
387
+ )
388
+
389
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
390
+ if @api_client.config.debugging
391
+ @api_client.config.logger.debug "API called: ProductBotManagementApi#set_product_bot_management_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
392
+ end
393
+ return data, status_code, headers
394
+ end
262
395
  end
263
396
  end
@@ -0,0 +1,186 @@
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 'cgi'
12
+
13
+ module Fastly
14
+ class ProductKvStoreApi
15
+ attr_accessor :api_client
16
+
17
+ def initialize(api_client = ApiClient.default)
18
+ @api_client = api_client
19
+ end
20
+ # Disable product
21
+ # Disable the KV Store product
22
+ # @return [nil]
23
+ def disable_product_kv_store(opts = {})
24
+ disable_product_kv_store_with_http_info(opts)
25
+ nil
26
+ end
27
+
28
+ # Disable product
29
+ # Disable the KV Store product
30
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
31
+ def disable_product_kv_store_with_http_info(opts = {})
32
+ if @api_client.config.debugging
33
+ @api_client.config.logger.debug 'Calling API: ProductKvStoreApi.disable_product_kv_store ...'
34
+ end
35
+ # unbox the parameters from the hash
36
+ # resource path
37
+ local_var_path = '/enabled-products/v1/kv_store'
38
+
39
+ # query parameters
40
+ query_params = opts[:query_params] || {}
41
+
42
+ # header parameters
43
+ header_params = opts[:header_params] || {}
44
+
45
+ # form parameters
46
+ form_params = opts[:form_params] || {}
47
+
48
+ # http body (model)
49
+ post_body = opts[:debug_body]
50
+
51
+ # return_type
52
+ return_type = opts[:debug_return_type]
53
+
54
+ # auth_names
55
+ auth_names = opts[:debug_auth_names] || ['token']
56
+
57
+ new_options = opts.merge(
58
+ :operation => :"ProductKvStoreApi.disable_product_kv_store",
59
+ :header_params => header_params,
60
+ :query_params => query_params,
61
+ :form_params => form_params,
62
+ :body => post_body,
63
+ :auth_names => auth_names,
64
+ :return_type => return_type
65
+ )
66
+
67
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
68
+ if @api_client.config.debugging
69
+ @api_client.config.logger.debug "API called: ProductKvStoreApi#disable_product_kv_store\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
70
+ end
71
+ return data, status_code, headers
72
+ end
73
+
74
+ # Enable product
75
+ # Enable the KV Store product
76
+ # @return [KvStoreResponseBodyEnable]
77
+ def enable_kv_store(opts = {})
78
+ data, _status_code, _headers = enable_kv_store_with_http_info(opts)
79
+ data
80
+ end
81
+
82
+ # Enable product
83
+ # Enable the KV Store product
84
+ # @return [Array<(KvStoreResponseBodyEnable, Integer, Hash)>] KvStoreResponseBodyEnable data, response status code and response headers
85
+ def enable_kv_store_with_http_info(opts = {})
86
+ if @api_client.config.debugging
87
+ @api_client.config.logger.debug 'Calling API: ProductKvStoreApi.enable_kv_store ...'
88
+ end
89
+ # unbox the parameters from the hash
90
+ # resource path
91
+ local_var_path = '/enabled-products/v1/kv_store'
92
+
93
+ # query parameters
94
+ query_params = opts[:query_params] || {}
95
+
96
+ # header parameters
97
+ header_params = opts[:header_params] || {}
98
+ # HTTP header 'Accept' (if needed)
99
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
100
+
101
+ # form parameters
102
+ form_params = opts[:form_params] || {}
103
+
104
+ # http body (model)
105
+ post_body = opts[:debug_body]
106
+
107
+ # return_type
108
+ return_type = opts[:debug_return_type] || 'KvStoreResponseBodyEnable'
109
+
110
+ # auth_names
111
+ auth_names = opts[:debug_auth_names] || ['token']
112
+
113
+ new_options = opts.merge(
114
+ :operation => :"ProductKvStoreApi.enable_kv_store",
115
+ :header_params => header_params,
116
+ :query_params => query_params,
117
+ :form_params => form_params,
118
+ :body => post_body,
119
+ :auth_names => auth_names,
120
+ :return_type => return_type
121
+ )
122
+
123
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
124
+ if @api_client.config.debugging
125
+ @api_client.config.logger.debug "API called: ProductKvStoreApi#enable_kv_store\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
126
+ end
127
+ return data, status_code, headers
128
+ end
129
+
130
+ # Get product enablement status
131
+ # Get the enablement status of the KV Store product
132
+ # @return [KvStoreResponseBodyEnable]
133
+ def get_kv_store(opts = {})
134
+ data, _status_code, _headers = get_kv_store_with_http_info(opts)
135
+ data
136
+ end
137
+
138
+ # Get product enablement status
139
+ # Get the enablement status of the KV Store product
140
+ # @return [Array<(KvStoreResponseBodyEnable, Integer, Hash)>] KvStoreResponseBodyEnable data, response status code and response headers
141
+ def get_kv_store_with_http_info(opts = {})
142
+ if @api_client.config.debugging
143
+ @api_client.config.logger.debug 'Calling API: ProductKvStoreApi.get_kv_store ...'
144
+ end
145
+ # unbox the parameters from the hash
146
+ # resource path
147
+ local_var_path = '/enabled-products/v1/kv_store'
148
+
149
+ # query parameters
150
+ query_params = opts[:query_params] || {}
151
+
152
+ # header parameters
153
+ header_params = opts[:header_params] || {}
154
+ # HTTP header 'Accept' (if needed)
155
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
156
+
157
+ # form parameters
158
+ form_params = opts[:form_params] || {}
159
+
160
+ # http body (model)
161
+ post_body = opts[:debug_body]
162
+
163
+ # return_type
164
+ return_type = opts[:debug_return_type] || 'KvStoreResponseBodyEnable'
165
+
166
+ # auth_names
167
+ auth_names = opts[:debug_auth_names] || ['token']
168
+
169
+ new_options = opts.merge(
170
+ :operation => :"ProductKvStoreApi.get_kv_store",
171
+ :header_params => header_params,
172
+ :query_params => query_params,
173
+ :form_params => form_params,
174
+ :body => post_body,
175
+ :auth_names => auth_names,
176
+ :return_type => return_type
177
+ )
178
+
179
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
180
+ if @api_client.config.debugging
181
+ @api_client.config.logger.debug "API called: ProductKvStoreApi#get_kv_store\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
182
+ end
183
+ return data, status_code, headers
184
+ end
185
+ end
186
+ end