fastly 13.0.0 → 14.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 (250) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +43 -0
  3. data/Gemfile.lock +4 -4
  4. data/README.md +21 -6
  5. data/docs/AttackReport.md +19 -0
  6. data/docs/AttackSignal.md +12 -0
  7. data/docs/AttackSource.md +13 -0
  8. data/docs/Backend.md +6 -6
  9. data/docs/BackendApi.md +18 -18
  10. data/docs/BackendResponse.md +6 -6
  11. data/docs/DdosProtectionApi.md +40 -0
  12. data/docs/DdosProtectionAttributeStats.md +1 -1
  13. data/docs/DdosProtectionInvalidRequest.md +13 -0
  14. data/docs/DdosProtectionNotAuthorized.md +11 -0
  15. data/docs/DdosProtectionRule.md +1 -1
  16. data/docs/DdosProtectionRuleAllOf.md +1 -1
  17. data/docs/DdosProtectionRulePatch.md +10 -0
  18. data/docs/HistoricalApi.md +2 -0
  19. data/docs/Invitation.md +1 -1
  20. data/docs/InvitationCreateData.md +12 -0
  21. data/docs/InvitationCreateDataAllOf.md +10 -0
  22. data/docs/{InvitationResponse.md → InvitationCreateResponse.md} +1 -1
  23. data/docs/{InvitationResponseAllOf.md → InvitationCreateResponseAllOf.md} +1 -1
  24. data/docs/InvitationData.md +0 -1
  25. data/docs/InvitationResponseData.md +1 -1
  26. data/docs/InvitationsApi.md +2 -2
  27. data/docs/KvStoreApi.md +2 -0
  28. data/docs/ListAttackReport.md +11 -0
  29. data/docs/{DdosProtectionTrafficAttribute.md → ListAttackReportMeta.md} +2 -1
  30. data/docs/{DdosProtectionAction.md → ListSignalReport.md} +2 -1
  31. data/docs/LogExplorerApi.md +1 -1
  32. data/docs/LoggingAzureblobApi.md +8 -4
  33. data/docs/LoggingAzureblobResponse.md +2 -1
  34. data/docs/LoggingBigqueryAdditional.md +1 -1
  35. data/docs/LoggingBigqueryApi.md +8 -4
  36. data/docs/LoggingBigqueryResponse.md +2 -1
  37. data/docs/LoggingCloudfilesApi.md +8 -4
  38. data/docs/LoggingCloudfilesResponse.md +2 -1
  39. data/docs/LoggingCommon.md +2 -1
  40. data/docs/LoggingCommonResponse.md +2 -1
  41. data/docs/LoggingCommonResponseAllOf.md +2 -1
  42. data/docs/LoggingDatadogAdditional.md +1 -1
  43. data/docs/LoggingDatadogApi.md +8 -4
  44. data/docs/LoggingDatadogResponse.md +2 -1
  45. data/docs/LoggingDigitaloceanApi.md +8 -4
  46. data/docs/LoggingDigitaloceanResponse.md +2 -1
  47. data/docs/LoggingElasticsearchAdditional.md +1 -1
  48. data/docs/LoggingElasticsearchApi.md +8 -4
  49. data/docs/LoggingElasticsearchResponse.md +2 -1
  50. data/docs/LoggingFtpApi.md +8 -4
  51. data/docs/LoggingFtpResponse.md +2 -1
  52. data/docs/LoggingGcsApi.md +8 -4
  53. data/docs/LoggingGcsResponse.md +2 -1
  54. data/docs/LoggingGooglePubsubAdditional.md +1 -1
  55. data/docs/LoggingGooglePubsubResponse.md +2 -1
  56. data/docs/LoggingGrafanacloudlogsAdditional.md +1 -1
  57. data/docs/LoggingGrafanacloudlogsApi.md +8 -4
  58. data/docs/LoggingGrafanacloudlogsResponse.md +2 -1
  59. data/docs/LoggingHerokuApi.md +8 -4
  60. data/docs/LoggingHerokuResponse.md +2 -1
  61. data/docs/LoggingHoneycombAdditional.md +1 -1
  62. data/docs/LoggingHoneycombApi.md +8 -4
  63. data/docs/LoggingHoneycombResponse.md +2 -1
  64. data/docs/LoggingHttpsAdditional.md +1 -1
  65. data/docs/LoggingHttpsApi.md +8 -4
  66. data/docs/LoggingHttpsResponse.md +2 -1
  67. data/docs/LoggingKafkaApi.md +4 -2
  68. data/docs/LoggingKafkaResponse.md +2 -1
  69. data/docs/LoggingKafkaResponsePost.md +2 -1
  70. data/docs/LoggingKinesisAdditional.md +1 -1
  71. data/docs/LoggingKinesisApi.md +2 -2
  72. data/docs/LoggingKinesisResponse.md +1 -1
  73. data/docs/LoggingLogentriesApi.md +8 -4
  74. data/docs/LoggingLogentriesResponse.md +2 -1
  75. data/docs/LoggingLogglyApi.md +8 -4
  76. data/docs/LoggingLogglyResponse.md +2 -1
  77. data/docs/LoggingLogshuttleApi.md +8 -4
  78. data/docs/LoggingLogshuttleResponse.md +2 -1
  79. data/docs/LoggingNewrelicAdditional.md +1 -1
  80. data/docs/LoggingNewrelicApi.md +8 -4
  81. data/docs/LoggingNewrelicResponse.md +2 -1
  82. data/docs/LoggingNewrelicotlpAdditional.md +1 -1
  83. data/docs/LoggingNewrelicotlpApi.md +8 -4
  84. data/docs/LoggingNewrelicotlpResponse.md +2 -1
  85. data/docs/LoggingOpenstackApi.md +8 -4
  86. data/docs/LoggingOpenstackResponse.md +2 -1
  87. data/docs/LoggingPapertrailApi.md +8 -4
  88. data/docs/LoggingPapertrailResponse.md +2 -1
  89. data/docs/LoggingPubsubApi.md +8 -4
  90. data/docs/LoggingS3Api.md +8 -4
  91. data/docs/LoggingS3Response.md +2 -1
  92. data/docs/LoggingScalyrApi.md +8 -4
  93. data/docs/LoggingScalyrResponse.md +2 -1
  94. data/docs/LoggingSftpApi.md +8 -4
  95. data/docs/LoggingSftpResponse.md +2 -1
  96. data/docs/LoggingSplunkApi.md +8 -4
  97. data/docs/LoggingSplunkResponse.md +2 -1
  98. data/docs/LoggingSumologicApi.md +8 -4
  99. data/docs/LoggingSumologicResponse.md +2 -1
  100. data/docs/LoggingSyslogApi.md +8 -4
  101. data/docs/LoggingSyslogResponse.md +2 -1
  102. data/docs/NgwafReportsApi.md +99 -0
  103. data/docs/ObservabilityTimeseriesApi.md +67 -0
  104. data/docs/PoolAdditional.md +1 -1
  105. data/docs/PoolApi.md +8 -8
  106. data/docs/PoolResponse.md +2 -2
  107. data/docs/PoolResponseCommon.md +1 -1
  108. data/docs/PoolResponsePost.md +2 -2
  109. data/docs/PurgeApi.md +1 -1
  110. data/docs/SignalReport.md +13 -0
  111. data/docs/TimeseriesGetResponse.md +11 -0
  112. data/docs/TimeseriesMeta.md +13 -0
  113. data/docs/TimeseriesResult.md +11 -0
  114. data/docs/TlsCertificateDataAttributes.md +1 -0
  115. data/docs/TlsCsrData.md +0 -1
  116. data/docs/TlsCsrDataAttributes.md +1 -0
  117. data/docs/TlsSubscriptionsApi.md +0 -2
  118. data/docs/TopWorkspace.md +12 -0
  119. data/lib/fastly/api/backend_api.rb +24 -24
  120. data/lib/fastly/api/ddos_protection_api.rb +70 -0
  121. data/lib/fastly/api/historical_api.rb +3 -0
  122. data/lib/fastly/api/invitations_api.rb +3 -3
  123. data/lib/fastly/api/kv_store_api.rb +3 -0
  124. data/lib/fastly/api/logging_azureblob_api.rb +18 -4
  125. data/lib/fastly/api/logging_bigquery_api.rb +18 -4
  126. data/lib/fastly/api/logging_cloudfiles_api.rb +18 -4
  127. data/lib/fastly/api/logging_datadog_api.rb +18 -4
  128. data/lib/fastly/api/logging_digitalocean_api.rb +18 -4
  129. data/lib/fastly/api/logging_elasticsearch_api.rb +18 -4
  130. data/lib/fastly/api/logging_ftp_api.rb +18 -4
  131. data/lib/fastly/api/logging_gcs_api.rb +18 -4
  132. data/lib/fastly/api/logging_grafanacloudlogs_api.rb +18 -4
  133. data/lib/fastly/api/logging_heroku_api.rb +18 -4
  134. data/lib/fastly/api/logging_honeycomb_api.rb +18 -4
  135. data/lib/fastly/api/logging_https_api.rb +18 -4
  136. data/lib/fastly/api/logging_kafka_api.rb +9 -2
  137. data/lib/fastly/api/logging_kinesis_api.rb +2 -2
  138. data/lib/fastly/api/logging_logentries_api.rb +18 -4
  139. data/lib/fastly/api/logging_loggly_api.rb +18 -4
  140. data/lib/fastly/api/logging_logshuttle_api.rb +18 -4
  141. data/lib/fastly/api/logging_newrelic_api.rb +18 -4
  142. data/lib/fastly/api/logging_newrelicotlp_api.rb +18 -4
  143. data/lib/fastly/api/logging_openstack_api.rb +18 -4
  144. data/lib/fastly/api/logging_papertrail_api.rb +18 -4
  145. data/lib/fastly/api/logging_pubsub_api.rb +18 -4
  146. data/lib/fastly/api/logging_s3_api.rb +18 -4
  147. data/lib/fastly/api/logging_scalyr_api.rb +18 -4
  148. data/lib/fastly/api/logging_sftp_api.rb +18 -4
  149. data/lib/fastly/api/logging_splunk_api.rb +18 -4
  150. data/lib/fastly/api/logging_sumologic_api.rb +18 -4
  151. data/lib/fastly/api/logging_syslog_api.rb +18 -4
  152. data/lib/fastly/api/ngwaf_reports_api.rb +161 -0
  153. data/lib/fastly/api/{observability_timeseries_for_logs_api.rb → observability_timeseries_api.rb} +38 -43
  154. data/lib/fastly/api/pool_api.rb +8 -8
  155. data/lib/fastly/api/purge_api.rb +2 -2
  156. data/lib/fastly/api/tls_subscriptions_api.rb +0 -3
  157. data/lib/fastly/configuration.rb +19 -1
  158. data/lib/fastly/models/attack_report.rb +359 -0
  159. data/lib/fastly/models/attack_signal.rb +252 -0
  160. data/lib/fastly/models/attack_source.rb +267 -0
  161. data/lib/fastly/models/backend.rb +9 -4
  162. data/lib/fastly/models/backend_response.rb +9 -4
  163. data/lib/fastly/models/ddos_protection_attribute_stats.rb +2 -1
  164. data/lib/fastly/models/ddos_protection_invalid_request.rb +309 -0
  165. data/lib/fastly/models/{log_timeseries_filter_field_item.rb → ddos_protection_not_authorized.rb} +24 -36
  166. data/lib/fastly/models/ddos_protection_rule.rb +2 -1
  167. data/lib/fastly/models/ddos_protection_rule_all_of.rb +2 -1
  168. data/lib/fastly/models/{log_timeseries_get_response_meta_filters.rb → ddos_protection_rule_patch.rb} +13 -14
  169. data/lib/fastly/models/invitation.rb +1 -1
  170. data/lib/fastly/models/invitation_create_data.rb +244 -0
  171. data/lib/fastly/models/invitation_create_data_all_of.rb +216 -0
  172. data/lib/fastly/models/{invitation_response.rb → invitation_create_response.rb} +4 -4
  173. data/lib/fastly/models/{invitation_response_all_of.rb → invitation_create_response_all_of.rb} +3 -3
  174. data/lib/fastly/models/invitation_data.rb +4 -13
  175. data/lib/fastly/models/invitation_response_data.rb +13 -13
  176. data/lib/fastly/models/{log_timeseries_get_response.rb → list_attack_report.rb} +5 -5
  177. data/lib/fastly/models/list_attack_report_meta.rb +218 -0
  178. data/lib/fastly/models/{log_timeseries_result_dimensions.rb → list_signal_report.rb} +12 -10
  179. data/lib/fastly/models/logging_azureblob_response.rb +26 -2
  180. data/lib/fastly/models/logging_bigquery_additional.rb +1 -1
  181. data/lib/fastly/models/logging_bigquery_response.rb +26 -2
  182. data/lib/fastly/models/logging_cloudfiles_response.rb +26 -2
  183. data/lib/fastly/models/logging_common.rb +29 -5
  184. data/lib/fastly/models/logging_common_response.rb +26 -2
  185. data/lib/fastly/models/logging_common_response_all_of.rb +29 -5
  186. data/lib/fastly/models/logging_datadog_additional.rb +1 -1
  187. data/lib/fastly/models/logging_datadog_response.rb +26 -2
  188. data/lib/fastly/models/logging_digitalocean_response.rb +26 -2
  189. data/lib/fastly/models/logging_elasticsearch_additional.rb +1 -1
  190. data/lib/fastly/models/logging_elasticsearch_response.rb +26 -2
  191. data/lib/fastly/models/logging_ftp_response.rb +26 -2
  192. data/lib/fastly/models/logging_gcs_response.rb +26 -2
  193. data/lib/fastly/models/logging_google_pubsub_additional.rb +1 -1
  194. data/lib/fastly/models/logging_google_pubsub_response.rb +26 -2
  195. data/lib/fastly/models/logging_grafanacloudlogs_additional.rb +1 -1
  196. data/lib/fastly/models/logging_grafanacloudlogs_response.rb +26 -2
  197. data/lib/fastly/models/logging_heroku_response.rb +26 -2
  198. data/lib/fastly/models/logging_honeycomb_additional.rb +1 -1
  199. data/lib/fastly/models/logging_honeycomb_response.rb +26 -2
  200. data/lib/fastly/models/logging_https_additional.rb +1 -1
  201. data/lib/fastly/models/logging_https_response.rb +26 -2
  202. data/lib/fastly/models/logging_kafka_response.rb +26 -2
  203. data/lib/fastly/models/logging_kafka_response_post.rb +26 -2
  204. data/lib/fastly/models/logging_kinesis_additional.rb +1 -1
  205. data/lib/fastly/models/logging_kinesis_response.rb +1 -1
  206. data/lib/fastly/models/logging_logentries_response.rb +26 -2
  207. data/lib/fastly/models/logging_loggly_response.rb +26 -2
  208. data/lib/fastly/models/logging_logshuttle_response.rb +26 -2
  209. data/lib/fastly/models/logging_newrelic_additional.rb +1 -1
  210. data/lib/fastly/models/logging_newrelic_response.rb +26 -2
  211. data/lib/fastly/models/logging_newrelicotlp_additional.rb +1 -1
  212. data/lib/fastly/models/logging_newrelicotlp_response.rb +26 -2
  213. data/lib/fastly/models/logging_openstack_response.rb +26 -2
  214. data/lib/fastly/models/logging_papertrail_response.rb +26 -2
  215. data/lib/fastly/models/logging_s3_response.rb +26 -2
  216. data/lib/fastly/models/logging_scalyr_response.rb +26 -2
  217. data/lib/fastly/models/logging_sftp_response.rb +26 -2
  218. data/lib/fastly/models/logging_splunk_response.rb +26 -2
  219. data/lib/fastly/models/logging_sumologic_response.rb +26 -2
  220. data/lib/fastly/models/logging_syslog_response.rb +26 -2
  221. data/lib/fastly/models/pool_additional.rb +1 -1
  222. data/lib/fastly/models/pool_response.rb +2 -2
  223. data/lib/fastly/models/pool_response_common.rb +1 -1
  224. data/lib/fastly/models/pool_response_post.rb +2 -2
  225. data/lib/fastly/models/relationship_service_invitations.rb +1 -0
  226. data/lib/fastly/models/relationship_service_invitations_service_invitations.rb +1 -0
  227. data/lib/fastly/models/relationships_for_invitation.rb +1 -0
  228. data/lib/fastly/models/signal_report.rb +249 -0
  229. data/lib/fastly/models/timeseries_get_response.rb +227 -0
  230. data/lib/fastly/models/{log_timeseries_get_response_meta.rb → timeseries_meta.rb} +23 -32
  231. data/lib/fastly/models/{log_timeseries_result.rb → timeseries_result.rb} +9 -5
  232. data/lib/fastly/models/tls_certificate_data_attributes.rb +14 -4
  233. data/lib/fastly/models/tls_csr_data.rb +4 -13
  234. data/lib/fastly/models/tls_csr_data_attributes.rb +14 -4
  235. data/lib/fastly/models/top_workspace.rb +238 -0
  236. data/lib/fastly/version.rb +1 -1
  237. data/lib/fastly.rb +20 -12
  238. data/sig.json +1 -1
  239. metadata +42 -26
  240. data/docs/LogTimeseriesFilterFieldItem.md +0 -12
  241. data/docs/LogTimeseriesGetResponse.md +0 -11
  242. data/docs/LogTimeseriesGetResponseMeta.md +0 -14
  243. data/docs/LogTimeseriesGetResponseMetaFilters.md +0 -10
  244. data/docs/LogTimeseriesResult.md +0 -11
  245. data/docs/LogTimeseriesResultDimensions.md +0 -10
  246. data/docs/LogTimeseriesValueField.md +0 -59
  247. data/docs/ObservabilityTimeseriesForLogsApi.md +0 -67
  248. data/lib/fastly/models/ddos_protection_action.rb +0 -37
  249. data/lib/fastly/models/ddos_protection_traffic_attribute.rb +0 -40
  250. data/lib/fastly/models/log_timeseries_value_field.rb +0 -108
@@ -24,7 +24,8 @@ module Fastly
24
24
  # @option opts [String] :name The name for the real-time logging configuration.
25
25
  # @option opts [String] :placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`.
26
26
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
27
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
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
+ # @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')
28
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)
29
30
  # @option opts [LoggingMessageType] :message_type (default to 'classic')
30
31
  # @option opts [String] :url The URL to post logs to.
@@ -41,7 +42,8 @@ module Fastly
41
42
  # @option opts [String] :name The name for the real-time logging configuration.
42
43
  # @option opts [String] :placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`.
43
44
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
44
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
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
+ # @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')
45
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)
46
48
  # @option opts [LoggingMessageType] :message_type (default to 'classic')
47
49
  # @option opts [String] :url The URL to post logs to.
@@ -65,6 +67,10 @@ module Fastly
65
67
  if @api_client.config.client_side_validation && opts[:'placement'] && !allowable_values.include?(opts[:'placement'])
66
68
  fail ArgumentError, "invalid value for \"placement\", must be one of #{allowable_values}"
67
69
  end
70
+ allowable_values = ["none", "eu", "us"]
71
+ if @api_client.config.client_side_validation && opts[:'log_processing_region'] && !allowable_values.include?(opts[:'log_processing_region'])
72
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{allowable_values}"
73
+ end
68
74
  allowable_values = [1, 2]
69
75
  if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
70
76
  fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
@@ -91,6 +97,7 @@ module Fastly
91
97
  form_params['placement'] = opts[:'placement'] if !opts[:'placement'].nil?
92
98
  form_params['response_condition'] = opts[:'response_condition'] if !opts[:'response_condition'].nil?
93
99
  form_params['format'] = opts[:'format'] if !opts[:'format'].nil?
100
+ form_params['log_processing_region'] = opts[:'log_processing_region'] if !opts[:'log_processing_region'].nil?
94
101
  form_params['format_version'] = opts[:'format_version'] if !opts[:'format_version'].nil?
95
102
  form_params['message_type'] = opts[:'message_type'] if !opts[:'message_type'].nil?
96
103
  form_params['url'] = opts[:'url'] if !opts[:'url'].nil?
@@ -353,7 +360,8 @@ module Fastly
353
360
  # @option opts [String] :name The name for the real-time logging configuration.
354
361
  # @option opts [String] :placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`.
355
362
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
356
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
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\" %>s %b')
364
+ # @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')
357
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 `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)
358
366
  # @option opts [LoggingMessageType] :message_type (default to 'classic')
359
367
  # @option opts [String] :url The URL to post logs to.
@@ -371,7 +379,8 @@ module Fastly
371
379
  # @option opts [String] :name The name for the real-time logging configuration.
372
380
  # @option opts [String] :placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`.
373
381
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
374
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
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\" %>s %b')
383
+ # @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')
375
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 `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)
376
385
  # @option opts [LoggingMessageType] :message_type (default to 'classic')
377
386
  # @option opts [String] :url The URL to post logs to.
@@ -400,6 +409,10 @@ module Fastly
400
409
  if @api_client.config.client_side_validation && opts[:'placement'] && !allowable_values.include?(opts[:'placement'])
401
410
  fail ArgumentError, "invalid value for \"placement\", must be one of #{allowable_values}"
402
411
  end
412
+ allowable_values = ["none", "eu", "us"]
413
+ if @api_client.config.client_side_validation && opts[:'log_processing_region'] && !allowable_values.include?(opts[:'log_processing_region'])
414
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{allowable_values}"
415
+ end
403
416
  allowable_values = [1, 2]
404
417
  if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
405
418
  fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
@@ -426,6 +439,7 @@ module Fastly
426
439
  form_params['placement'] = opts[:'placement'] if !opts[:'placement'].nil?
427
440
  form_params['response_condition'] = opts[:'response_condition'] if !opts[:'response_condition'].nil?
428
441
  form_params['format'] = opts[:'format'] if !opts[:'format'].nil?
442
+ form_params['log_processing_region'] = opts[:'log_processing_region'] if !opts[:'log_processing_region'].nil?
429
443
  form_params['format_version'] = opts[:'format_version'] if !opts[:'format_version'].nil?
430
444
  form_params['message_type'] = opts[:'message_type'] if !opts[:'message_type'].nil?
431
445
  form_params['url'] = opts[:'url'] if !opts[:'url'].nil?
@@ -24,7 +24,8 @@ module Fastly
24
24
  # @option opts [String] :name The name for the real-time logging configuration.
25
25
  # @option opts [String] :placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`.
26
26
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
27
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
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
+ # @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')
28
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)
29
30
  # @option opts [String] :tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (default to 'null')
30
31
  # @option opts [String] :tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (default to 'null')
@@ -50,7 +51,8 @@ module Fastly
50
51
  # @option opts [String] :name The name for the real-time logging configuration.
51
52
  # @option opts [String] :placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`.
52
53
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
53
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
54
+ # @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')
55
+ # @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')
54
56
  # @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)
55
57
  # @option opts [String] :tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (default to 'null')
56
58
  # @option opts [String] :tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (default to 'null')
@@ -83,6 +85,10 @@ module Fastly
83
85
  if @api_client.config.client_side_validation && opts[:'placement'] && !allowable_values.include?(opts[:'placement'])
84
86
  fail ArgumentError, "invalid value for \"placement\", must be one of #{allowable_values}"
85
87
  end
88
+ allowable_values = ["none", "eu", "us"]
89
+ if @api_client.config.client_side_validation && opts[:'log_processing_region'] && !allowable_values.include?(opts[:'log_processing_region'])
90
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{allowable_values}"
91
+ end
86
92
  allowable_values = [1, 2]
87
93
  if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
88
94
  fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
@@ -109,6 +115,7 @@ module Fastly
109
115
  form_params['placement'] = opts[:'placement'] if !opts[:'placement'].nil?
110
116
  form_params['response_condition'] = opts[:'response_condition'] if !opts[:'response_condition'].nil?
111
117
  form_params['format'] = opts[:'format'] if !opts[:'format'].nil?
118
+ form_params['log_processing_region'] = opts[:'log_processing_region'] if !opts[:'log_processing_region'].nil?
112
119
  form_params['format_version'] = opts[:'format_version'] if !opts[:'format_version'].nil?
113
120
  form_params['tls_ca_cert'] = opts[:'tls_ca_cert'] if !opts[:'tls_ca_cert'].nil?
114
121
  form_params['tls_client_cert'] = opts[:'tls_client_cert'] if !opts[:'tls_client_cert'].nil?
@@ -380,7 +387,8 @@ module Fastly
380
387
  # @option opts [String] :name The name for the real-time logging configuration.
381
388
  # @option opts [String] :placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`.
382
389
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
383
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
390
+ # @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')
391
+ # @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')
384
392
  # @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)
385
393
  # @option opts [String] :tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (default to 'null')
386
394
  # @option opts [String] :tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (default to 'null')
@@ -407,7 +415,8 @@ module Fastly
407
415
  # @option opts [String] :name The name for the real-time logging configuration.
408
416
  # @option opts [String] :placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`.
409
417
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
410
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
418
+ # @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')
419
+ # @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')
411
420
  # @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)
412
421
  # @option opts [String] :tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (default to 'null')
413
422
  # @option opts [String] :tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (default to 'null')
@@ -445,6 +454,10 @@ module Fastly
445
454
  if @api_client.config.client_side_validation && opts[:'placement'] && !allowable_values.include?(opts[:'placement'])
446
455
  fail ArgumentError, "invalid value for \"placement\", must be one of #{allowable_values}"
447
456
  end
457
+ allowable_values = ["none", "eu", "us"]
458
+ if @api_client.config.client_side_validation && opts[:'log_processing_region'] && !allowable_values.include?(opts[:'log_processing_region'])
459
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{allowable_values}"
460
+ end
448
461
  allowable_values = [1, 2]
449
462
  if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
450
463
  fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
@@ -471,6 +484,7 @@ module Fastly
471
484
  form_params['placement'] = opts[:'placement'] if !opts[:'placement'].nil?
472
485
  form_params['response_condition'] = opts[:'response_condition'] if !opts[:'response_condition'].nil?
473
486
  form_params['format'] = opts[:'format'] if !opts[:'format'].nil?
487
+ form_params['log_processing_region'] = opts[:'log_processing_region'] if !opts[:'log_processing_region'].nil?
474
488
  form_params['format_version'] = opts[:'format_version'] if !opts[:'format_version'].nil?
475
489
  form_params['tls_ca_cert'] = opts[:'tls_ca_cert'] if !opts[:'tls_ca_cert'].nil?
476
490
  form_params['tls_client_cert'] = opts[:'tls_client_cert'] if !opts[:'tls_client_cert'].nil?
@@ -0,0 +1,161 @@
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 NgwafReportsApi
15
+ attr_accessor :api_client
16
+
17
+ def initialize(api_client = ApiClient.default)
18
+ @api_client = api_client
19
+ end
20
+ # Get attacks report
21
+ # Get attacks report
22
+ # @option opts [Time] :from The start of a time range in RFC 3339 format. (required)
23
+ # @option opts [Time] :to The end of a time range in RFC 3339 format. Defaults to the current time.
24
+ # @return [ListAttackReport]
25
+ def get_attacks_report(opts = {})
26
+ data, _status_code, _headers = get_attacks_report_with_http_info(opts)
27
+ data
28
+ end
29
+
30
+ # Get attacks report
31
+ # Get attacks report
32
+ # @option opts [Time] :from The start of a time range in RFC 3339 format. (required)
33
+ # @option opts [Time] :to The end of a time range in RFC 3339 format. Defaults to the current time.
34
+ # @return [Array<(ListAttackReport, Integer, Hash)>] ListAttackReport data, response status code and response headers
35
+ def get_attacks_report_with_http_info(opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: NgwafReportsApi.get_attacks_report ...'
38
+ end
39
+ # unbox the parameters from the hash
40
+ from = opts[:'from']
41
+ # verify the required parameter 'from' is set
42
+ if @api_client.config.client_side_validation && from.nil?
43
+ fail ArgumentError, "Missing the required parameter 'from' when calling NgwafReportsApi.get_attacks_report"
44
+ end
45
+ # resource path
46
+ local_var_path = '/ngwaf/v1/reports/attacks'
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+ query_params[:'from'] = from
51
+ query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
52
+
53
+ # header parameters
54
+ header_params = opts[:header_params] || {}
55
+ # HTTP header 'Accept' (if needed)
56
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json'])
57
+
58
+ # form parameters
59
+ form_params = opts[:form_params] || {}
60
+
61
+ # http body (model)
62
+ post_body = opts[:debug_body]
63
+
64
+ # return_type
65
+ return_type = opts[:debug_return_type] || 'ListAttackReport'
66
+
67
+ # auth_names
68
+ auth_names = opts[:debug_auth_names] || ['token']
69
+
70
+ new_options = opts.merge(
71
+ :operation => :"NgwafReportsApi.get_attacks_report",
72
+ :header_params => header_params,
73
+ :query_params => query_params,
74
+ :form_params => form_params,
75
+ :body => post_body,
76
+ :auth_names => auth_names,
77
+ :return_type => return_type
78
+ )
79
+
80
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
81
+ if @api_client.config.debugging
82
+ @api_client.config.logger.debug "API called: NgwafReportsApi#get_attacks_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
83
+ end
84
+ return data, status_code, headers
85
+ end
86
+
87
+ # Get signals report
88
+ # Get signals report
89
+ # @option opts [Time] :from The start of a time range in RFC 3339 format. (required)
90
+ # @option opts [Time] :to The end of a time range in RFC 3339 format. Defaults to the current time.
91
+ # @option opts [String] :signal_type The type of signal
92
+ # @return [ListSignalReport]
93
+ def get_signals_report(opts = {})
94
+ data, _status_code, _headers = get_signals_report_with_http_info(opts)
95
+ data
96
+ end
97
+
98
+ # Get signals report
99
+ # Get signals report
100
+ # @option opts [Time] :from The start of a time range in RFC 3339 format. (required)
101
+ # @option opts [Time] :to The end of a time range in RFC 3339 format. Defaults to the current time.
102
+ # @option opts [String] :signal_type The type of signal
103
+ # @return [Array<(ListSignalReport, Integer, Hash)>] ListSignalReport data, response status code and response headers
104
+ def get_signals_report_with_http_info(opts = {})
105
+ if @api_client.config.debugging
106
+ @api_client.config.logger.debug 'Calling API: NgwafReportsApi.get_signals_report ...'
107
+ end
108
+ # unbox the parameters from the hash
109
+ from = opts[:'from']
110
+ # verify the required parameter 'from' is set
111
+ if @api_client.config.client_side_validation && from.nil?
112
+ fail ArgumentError, "Missing the required parameter 'from' when calling NgwafReportsApi.get_signals_report"
113
+ end
114
+ allowable_values = ["account", "anomaly", "attack", "bot", "all"]
115
+ if @api_client.config.client_side_validation && opts[:'signal_type'] && !allowable_values.include?(opts[:'signal_type'])
116
+ fail ArgumentError, "invalid value for \"signal_type\", must be one of #{allowable_values}"
117
+ end
118
+ # resource path
119
+ local_var_path = '/ngwaf/v1/reports/signals'
120
+
121
+ # query parameters
122
+ query_params = opts[:query_params] || {}
123
+ query_params[:'from'] = from
124
+ query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
125
+ query_params[:'signal_type'] = opts[:'signal_type'] if !opts[:'signal_type'].nil?
126
+
127
+ # header parameters
128
+ header_params = opts[:header_params] || {}
129
+ # HTTP header 'Accept' (if needed)
130
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json'])
131
+
132
+ # form parameters
133
+ form_params = opts[:form_params] || {}
134
+
135
+ # http body (model)
136
+ post_body = opts[:debug_body]
137
+
138
+ # return_type
139
+ return_type = opts[:debug_return_type] || 'ListSignalReport'
140
+
141
+ # auth_names
142
+ auth_names = opts[:debug_auth_names] || ['token']
143
+
144
+ new_options = opts.merge(
145
+ :operation => :"NgwafReportsApi.get_signals_report",
146
+ :header_params => header_params,
147
+ :query_params => query_params,
148
+ :form_params => form_params,
149
+ :body => post_body,
150
+ :auth_names => auth_names,
151
+ :return_type => return_type
152
+ )
153
+
154
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
155
+ if @api_client.config.debugging
156
+ @api_client.config.logger.debug "API called: NgwafReportsApi#get_signals_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
157
+ end
158
+ return data, status_code, headers
159
+ end
160
+ end
161
+ end
@@ -11,76 +11,71 @@ Contact: oss@fastly.com
11
11
  require 'cgi'
12
12
 
13
13
  module Fastly
14
- class ObservabilityTimeseriesForLogsApi
14
+ class ObservabilityTimeseriesApi
15
15
  attr_accessor :api_client
16
16
 
17
17
  def initialize(api_client = ApiClient.default)
18
18
  @api_client = api_client
19
19
  end
20
- # Retrieve log data as time series
21
- # Retrieves log data as time series.
20
+ # Retrieve observability data as a time series
21
+ # Retrieves observability data as a time series.
22
22
  # @option opts [String] :source (required)
23
- # @option opts [String] :service_id (required)
24
- # @option opts [String] :start (required)
25
- # @option opts [String] :_end (required)
23
+ # @option opts [String] :from (required)
24
+ # @option opts [String] :to (required)
26
25
  # @option opts [String] :granularity (required)
27
26
  # @option opts [String] :series (required)
27
+ # @option opts [String] :dimensions
28
28
  # @option opts [String] :filter
29
- # @return [LogTimeseriesGetResponse]
30
- def log_timeseries_get(opts = {})
31
- data, _status_code, _headers = log_timeseries_get_with_http_info(opts)
29
+ # @return [TimeseriesGetResponse]
30
+ def timeseries_get(opts = {})
31
+ data, _status_code, _headers = timeseries_get_with_http_info(opts)
32
32
  data
33
33
  end
34
34
 
35
- # Retrieve log data as time series
36
- # Retrieves log data as time series.
35
+ # Retrieve observability data as a time series
36
+ # Retrieves observability data as a time series.
37
37
  # @option opts [String] :source (required)
38
- # @option opts [String] :service_id (required)
39
- # @option opts [String] :start (required)
40
- # @option opts [String] :_end (required)
38
+ # @option opts [String] :from (required)
39
+ # @option opts [String] :to (required)
41
40
  # @option opts [String] :granularity (required)
42
41
  # @option opts [String] :series (required)
42
+ # @option opts [String] :dimensions
43
43
  # @option opts [String] :filter
44
- # @return [Array<(LogTimeseriesGetResponse, Integer, Hash)>] LogTimeseriesGetResponse data, response status code and response headers
45
- def log_timeseries_get_with_http_info(opts = {})
44
+ # @return [Array<(TimeseriesGetResponse, Integer, Hash)>] TimeseriesGetResponse data, response status code and response headers
45
+ def timeseries_get_with_http_info(opts = {})
46
46
  if @api_client.config.debugging
47
- @api_client.config.logger.debug 'Calling API: ObservabilityTimeseriesForLogsApi.log_timeseries_get ...'
47
+ @api_client.config.logger.debug 'Calling API: ObservabilityTimeseriesApi.timeseries_get ...'
48
48
  end
49
49
  # unbox the parameters from the hash
50
50
  source = opts[:'source']
51
- service_id = opts[:'service_id']
52
- start = opts[:'start']
53
- _end = opts[:'_end']
51
+ from = opts[:'from']
52
+ to = opts[:'to']
54
53
  granularity = opts[:'granularity']
55
54
  series = opts[:'series']
56
55
  # verify the required parameter 'source' is set
57
56
  if @api_client.config.client_side_validation && source.nil?
58
- fail ArgumentError, "Missing the required parameter 'source' when calling ObservabilityTimeseriesForLogsApi.log_timeseries_get"
57
+ fail ArgumentError, "Missing the required parameter 'source' when calling ObservabilityTimeseriesApi.timeseries_get"
59
58
  end
60
- # verify the required parameter 'service_id' is set
61
- if @api_client.config.client_side_validation && service_id.nil?
62
- fail ArgumentError, "Missing the required parameter 'service_id' when calling ObservabilityTimeseriesForLogsApi.log_timeseries_get"
59
+ # verify enum value
60
+ allowable_values = ["logs", "sustainability"]
61
+ if @api_client.config.client_side_validation && !allowable_values.include?(source)
62
+ fail ArgumentError, "invalid value for \"source\", must be one of #{allowable_values}"
63
63
  end
64
- # verify the required parameter 'start' is set
65
- if @api_client.config.client_side_validation && start.nil?
66
- fail ArgumentError, "Missing the required parameter 'start' when calling ObservabilityTimeseriesForLogsApi.log_timeseries_get"
64
+ # verify the required parameter 'from' is set
65
+ if @api_client.config.client_side_validation && from.nil?
66
+ fail ArgumentError, "Missing the required parameter 'from' when calling ObservabilityTimeseriesApi.timeseries_get"
67
67
  end
68
- # verify the required parameter '_end' is set
69
- if @api_client.config.client_side_validation && _end.nil?
70
- fail ArgumentError, "Missing the required parameter '_end' when calling ObservabilityTimeseriesForLogsApi.log_timeseries_get"
68
+ # verify the required parameter 'to' is set
69
+ if @api_client.config.client_side_validation && to.nil?
70
+ fail ArgumentError, "Missing the required parameter 'to' when calling ObservabilityTimeseriesApi.timeseries_get"
71
71
  end
72
72
  # verify the required parameter 'granularity' is set
73
73
  if @api_client.config.client_side_validation && granularity.nil?
74
- fail ArgumentError, "Missing the required parameter 'granularity' when calling ObservabilityTimeseriesForLogsApi.log_timeseries_get"
75
- end
76
- # verify enum value
77
- allowable_values = ["second", "minute", "hour", "day"]
78
- if @api_client.config.client_side_validation && !allowable_values.include?(granularity)
79
- fail ArgumentError, "invalid value for \"granularity\", must be one of #{allowable_values}"
74
+ fail ArgumentError, "Missing the required parameter 'granularity' when calling ObservabilityTimeseriesApi.timeseries_get"
80
75
  end
81
76
  # verify the required parameter 'series' is set
82
77
  if @api_client.config.client_side_validation && series.nil?
83
- fail ArgumentError, "Missing the required parameter 'series' when calling ObservabilityTimeseriesForLogsApi.log_timeseries_get"
78
+ fail ArgumentError, "Missing the required parameter 'series' when calling ObservabilityTimeseriesApi.timeseries_get"
84
79
  end
85
80
  # resource path
86
81
  local_var_path = '/observability/timeseries'
@@ -88,11 +83,11 @@ module Fastly
88
83
  # query parameters
89
84
  query_params = opts[:query_params] || {}
90
85
  query_params[:'source'] = source
91
- query_params[:'service_id'] = service_id
92
- query_params[:'start'] = start
93
- query_params[:'end'] = _end
86
+ query_params[:'from'] = from
87
+ query_params[:'to'] = to
94
88
  query_params[:'granularity'] = granularity
95
89
  query_params[:'series'] = series
90
+ query_params[:'dimensions'] = opts[:'dimensions'] if !opts[:'dimensions'].nil?
96
91
  query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
97
92
 
98
93
  # header parameters
@@ -107,13 +102,13 @@ module Fastly
107
102
  post_body = opts[:debug_body]
108
103
 
109
104
  # return_type
110
- return_type = opts[:debug_return_type] || 'LogTimeseriesGetResponse'
105
+ return_type = opts[:debug_return_type] || 'TimeseriesGetResponse'
111
106
 
112
107
  # auth_names
113
108
  auth_names = opts[:debug_auth_names] || ['token']
114
109
 
115
110
  new_options = opts.merge(
116
- :operation => :"ObservabilityTimeseriesForLogsApi.log_timeseries_get",
111
+ :operation => :"ObservabilityTimeseriesApi.timeseries_get",
117
112
  :header_params => header_params,
118
113
  :query_params => query_params,
119
114
  :form_params => form_params,
@@ -124,7 +119,7 @@ module Fastly
124
119
 
125
120
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
126
121
  if @api_client.config.debugging
127
- @api_client.config.logger.debug "API called: ObservabilityTimeseriesForLogsApi#log_timeseries_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
122
+ @api_client.config.logger.debug "API called: ObservabilityTimeseriesApi#timeseries_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
128
123
  end
129
124
  return data, status_code, headers
130
125
  end
@@ -41,8 +41,8 @@ module Fastly
41
41
  # @option opts [String] :healthcheck Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools.
42
42
  # @option opts [String] :comment A freeform descriptive note.
43
43
  # @option opts [String] :type What type of load balance group to use.
44
- # @option opts [String] :override_host The hostname to [override the Host header](https://docs.fastly.com/en/guides/specifying-an-override-host). Defaults to &#x60;null&#x60; meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. (default to 'null')
45
- # @option opts [Integer] :between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using &#x60;bereq.between_bytes_timeout&#x60;. (default to 10000)
44
+ # @option opts [String] :override_host The hostname to [override the Host header](https://www.fastly.com/documentation/guides/full-site-delivery/domains-and-origins/specifying-an-override-host/). Defaults to &#x60;null&#x60; meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. (default to 'null')
45
+ # @option opts [Integer] :between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, for Delivery services, the response received so far will be considered complete and the fetch will end. For Compute services, timeout expiration is treated as a failure of the backend connection, and an error is generated. May be set at runtime using &#x60;bereq.between_bytes_timeout&#x60;. (default to 10000)
46
46
  # @option opts [Integer] :connect_timeout How long to wait for a timeout in milliseconds. Optional.
47
47
  # @option opts [Integer] :first_byte_timeout How long to wait for the first byte in milliseconds. Optional.
48
48
  # @option opts [Integer] :max_conn_default Maximum number of connections. Optional. (default to 200)
@@ -78,8 +78,8 @@ module Fastly
78
78
  # @option opts [String] :healthcheck Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools.
79
79
  # @option opts [String] :comment A freeform descriptive note.
80
80
  # @option opts [String] :type What type of load balance group to use.
81
- # @option opts [String] :override_host The hostname to [override the Host header](https://docs.fastly.com/en/guides/specifying-an-override-host). Defaults to &#x60;null&#x60; meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. (default to 'null')
82
- # @option opts [Integer] :between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using &#x60;bereq.between_bytes_timeout&#x60;. (default to 10000)
81
+ # @option opts [String] :override_host The hostname to [override the Host header](https://www.fastly.com/documentation/guides/full-site-delivery/domains-and-origins/specifying-an-override-host/). Defaults to &#x60;null&#x60; meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. (default to 'null')
82
+ # @option opts [Integer] :between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, for Delivery services, the response received so far will be considered complete and the fetch will end. For Compute services, timeout expiration is treated as a failure of the backend connection, and an error is generated. May be set at runtime using &#x60;bereq.between_bytes_timeout&#x60;. (default to 10000)
83
83
  # @option opts [Integer] :connect_timeout How long to wait for a timeout in milliseconds. Optional.
84
84
  # @option opts [Integer] :first_byte_timeout How long to wait for the first byte in milliseconds. Optional.
85
85
  # @option opts [Integer] :max_conn_default Maximum number of connections. Optional. (default to 200)
@@ -438,8 +438,8 @@ module Fastly
438
438
  # @option opts [String] :healthcheck Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools.
439
439
  # @option opts [String] :comment A freeform descriptive note.
440
440
  # @option opts [String] :type What type of load balance group to use.
441
- # @option opts [String] :override_host The hostname to [override the Host header](https://docs.fastly.com/en/guides/specifying-an-override-host). Defaults to &#x60;null&#x60; meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. (default to 'null')
442
- # @option opts [Integer] :between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using &#x60;bereq.between_bytes_timeout&#x60;. (default to 10000)
441
+ # @option opts [String] :override_host The hostname to [override the Host header](https://www.fastly.com/documentation/guides/full-site-delivery/domains-and-origins/specifying-an-override-host/). Defaults to &#x60;null&#x60; meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. (default to 'null')
442
+ # @option opts [Integer] :between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, for Delivery services, the response received so far will be considered complete and the fetch will end. For Compute services, timeout expiration is treated as a failure of the backend connection, and an error is generated. May be set at runtime using &#x60;bereq.between_bytes_timeout&#x60;. (default to 10000)
443
443
  # @option opts [Integer] :connect_timeout How long to wait for a timeout in milliseconds. Optional.
444
444
  # @option opts [Integer] :first_byte_timeout How long to wait for the first byte in milliseconds. Optional.
445
445
  # @option opts [Integer] :max_conn_default Maximum number of connections. Optional. (default to 200)
@@ -476,8 +476,8 @@ module Fastly
476
476
  # @option opts [String] :healthcheck Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools.
477
477
  # @option opts [String] :comment A freeform descriptive note.
478
478
  # @option opts [String] :type What type of load balance group to use.
479
- # @option opts [String] :override_host The hostname to [override the Host header](https://docs.fastly.com/en/guides/specifying-an-override-host). Defaults to &#x60;null&#x60; meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. (default to 'null')
480
- # @option opts [Integer] :between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using &#x60;bereq.between_bytes_timeout&#x60;. (default to 10000)
479
+ # @option opts [String] :override_host The hostname to [override the Host header](https://www.fastly.com/documentation/guides/full-site-delivery/domains-and-origins/specifying-an-override-host/). Defaults to &#x60;null&#x60; meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. (default to 'null')
480
+ # @option opts [Integer] :between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, for Delivery services, the response received so far will be considered complete and the fetch will end. For Compute services, timeout expiration is treated as a failure of the backend connection, and an error is generated. May be set at runtime using &#x60;bereq.between_bytes_timeout&#x60;. (default to 10000)
481
481
  # @option opts [Integer] :connect_timeout How long to wait for a timeout in milliseconds. Optional.
482
482
  # @option opts [Integer] :first_byte_timeout How long to wait for the first byte in milliseconds. Optional.
483
483
  # @option opts [Integer] :max_conn_default Maximum number of connections. Optional. (default to 200)
@@ -94,7 +94,7 @@ module Fastly
94
94
  end
95
95
 
96
96
  # Purge everything from a service
97
- # Instant Purge everything from a service. Purge-all requests cannot be done in soft mode and will always immediately invalidate all cached content associated with the service. To do a soft-purge-all, consider applying a constant [surrogate key](https://docs.fastly.com/en/guides/getting-started-with-surrogate-keys) tag (e.g., `\"all\"`) to all objects.
97
+ # Instant Purge everything from a service. Purge-all requests cannot be done in soft mode and will always immediately invalidate all cached content associated with the service. To do a soft-purge-all, consider applying a constant [surrogate key](https://www.fastly.com/documentation/guides/full-site-delivery/purging/working-with-surrogate-keys/) tag (e.g., `\"all\"`) to all objects.
98
98
  # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
99
99
  # @return [InlineResponse200]
100
100
  def purge_all(opts = {})
@@ -103,7 +103,7 @@ module Fastly
103
103
  end
104
104
 
105
105
  # Purge everything from a service
106
- # Instant Purge everything from a service. Purge-all requests cannot be done in soft mode and will always immediately invalidate all cached content associated with the service. To do a soft-purge-all, consider applying a constant [surrogate key](https://docs.fastly.com/en/guides/getting-started-with-surrogate-keys) tag (e.g., &#x60;\&quot;all\&quot;&#x60;) to all objects.
106
+ # Instant Purge everything from a service. Purge-all requests cannot be done in soft mode and will always immediately invalidate all cached content associated with the service. To do a soft-purge-all, consider applying a constant [surrogate key](https://www.fastly.com/documentation/guides/full-site-delivery/purging/working-with-surrogate-keys/) tag (e.g., &#x60;\&quot;all\&quot;&#x60;) to all objects.
107
107
  # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
108
108
  # @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
109
109
  def purge_all_with_http_info(opts = {})
@@ -96,7 +96,6 @@ module Fastly
96
96
 
97
97
  # Create a TLS subscription
98
98
  # Create a new TLS subscription. This response includes a list of possible challenges to verify domain ownership.
99
- # @option opts [Boolean] :force A flag that allows you to edit and delete a subscription with active domains. Valid to use on PATCH and DELETE actions. As a warning, removing an active domain from a subscription or forcing the deletion of a subscription may result in breaking TLS termination to that domain.
100
99
  # @option opts [TlsSubscription] :tls_subscription
101
100
  # @return [TlsSubscriptionResponse]
102
101
  def create_tls_sub(opts = {})
@@ -106,7 +105,6 @@ module Fastly
106
105
 
107
106
  # Create a TLS subscription
108
107
  # Create a new TLS subscription. This response includes a list of possible challenges to verify domain ownership.
109
- # @option opts [Boolean] :force A flag that allows you to edit and delete a subscription with active domains. Valid to use on PATCH and DELETE actions. As a warning, removing an active domain from a subscription or forcing the deletion of a subscription may result in breaking TLS termination to that domain.
110
108
  # @option opts [TlsSubscription] :tls_subscription
111
109
  # @return [Array<(TlsSubscriptionResponse, Integer, Hash)>] TlsSubscriptionResponse data, response status code and response headers
112
110
  def create_tls_sub_with_http_info(opts = {})
@@ -119,7 +117,6 @@ module Fastly
119
117
 
120
118
  # query parameters
121
119
  query_params = opts[:query_params] || {}
122
- query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
123
120
 
124
121
  # header parameters
125
122
  header_params = opts[:header_params] || {}
@@ -770,6 +770,12 @@ module Fastly
770
770
  description: "No description provided",
771
771
  }
772
772
  ],
773
+ "DdosProtectionApi.ddos_protection_rule_patch": [
774
+ {
775
+ url: "https://api.fastly.com",
776
+ description: "No description provided",
777
+ }
778
+ ],
773
779
  "DdosProtectionApi.ddos_protection_traffic_stats_rule_get": [
774
780
  {
775
781
  url: "https://api.fastly.com",
@@ -2300,6 +2306,18 @@ module Fastly
2300
2306
  description: "No description provided",
2301
2307
  }
2302
2308
  ],
2309
+ "NgwafReportsApi.get_attacks_report": [
2310
+ {
2311
+ url: "https://api.fastly.com",
2312
+ description: "No description provided",
2313
+ }
2314
+ ],
2315
+ "NgwafReportsApi.get_signals_report": [
2316
+ {
2317
+ url: "https://api.fastly.com",
2318
+ description: "No description provided",
2319
+ }
2320
+ ],
2303
2321
  "ObjectStorageAccessKeysApi.create_access_key": [
2304
2322
  {
2305
2323
  url: "https://api.fastly.com",
@@ -2360,7 +2378,7 @@ module Fastly
2360
2378
  description: "No description provided",
2361
2379
  }
2362
2380
  ],
2363
- "ObservabilityTimeseriesForLogsApi.log_timeseries_get": [
2381
+ "ObservabilityTimeseriesApi.timeseries_get": [
2364
2382
  {
2365
2383
  url: "https://api.fastly.com",
2366
2384
  description: "No description provided",