fastly 5.3.0 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (224) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +62 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +86 -63
  5. data/docs/AclEntry.md +1 -1
  6. data/docs/AclEntryApi.md +176 -0
  7. data/docs/AclEntryResponse.md +1 -1
  8. data/docs/ApexRedirectApi.md +56 -0
  9. data/docs/Batch.md +12 -0
  10. data/docs/BatchErrors.md +13 -0
  11. data/docs/BulkUpdateAclEntry.md +1 -1
  12. data/docs/ClientKey.md +12 -0
  13. data/docs/ContactApi.md +50 -0
  14. data/docs/Content.md +2 -2
  15. data/docs/ContentApi.md +52 -0
  16. data/docs/DirectorApi.md +42 -0
  17. data/docs/DomainInspector.md +12 -0
  18. data/docs/DomainInspectorEntry.md +11 -0
  19. data/docs/DomainInspectorEntryDimensions.md +12 -0
  20. data/docs/DomainInspectorHistoricalApi.md +72 -0
  21. data/docs/DomainInspectorMeasurements.md +71 -0
  22. data/docs/DomainInspectorRealtimeApi.md +132 -0
  23. data/docs/DomainInspectorRealtimeEntry.md +12 -0
  24. data/docs/EventAttributes.md +1 -1
  25. data/docs/{EventsResponseAllOf.md → EventData.md} +1 -1
  26. data/docs/HistoricalDomains.md +13 -0
  27. data/docs/HistoricalDomainsData.md +11 -0
  28. data/docs/HistoricalDomainsMeta.md +18 -0
  29. data/docs/HistoricalDomainsMetaFilters.md +12 -0
  30. data/docs/HistoricalDomainsResponse.md +13 -0
  31. data/docs/HistoricalDomainsResponseAllOf.md +10 -0
  32. data/docs/{HistoricalFieldResultsAttributesAllOf.md → HistoricalFieldResultsAttributesAdditional.md} +1 -1
  33. data/docs/HistoricalOriginsResponse.md +13 -0
  34. data/docs/HistoricalOriginsResponseAllOf.md +10 -0
  35. data/docs/IamRolesApi.md +157 -0
  36. data/docs/IamServiceGroupsApi.md +157 -0
  37. data/docs/IamUserGroupsApi.md +315 -0
  38. data/docs/InlineResponse2005.md +11 -0
  39. data/docs/InlineResponse2006.md +11 -0
  40. data/docs/InlineResponse2007.md +10 -0
  41. data/docs/InlineResponse400.md +10 -0
  42. data/docs/LegacyWafConfigurationSet.md +11 -0
  43. data/docs/LegacyWafConfigurationSetsApi.md +125 -0
  44. data/docs/LegacyWafFirewall.md +18 -0
  45. data/docs/LegacyWafFirewallApi.md +352 -0
  46. data/docs/LegacyWafOwasp.md +38 -0
  47. data/docs/LegacyWafOwaspApi.md +138 -0
  48. data/docs/LegacyWafRule.md +14 -0
  49. data/docs/LegacyWafRuleApi.md +184 -0
  50. data/docs/LegacyWafRuleStatus.md +12 -0
  51. data/docs/LegacyWafRuleStatusApi.md +202 -0
  52. data/docs/LegacyWafRuleset.md +11 -0
  53. data/docs/LegacyWafRulesetApi.md +136 -0
  54. data/docs/LegacyWafTag.md +10 -0
  55. data/docs/LegacyWafTagApi.md +58 -0
  56. data/docs/LegacyWafUpdateStatus.md +15 -0
  57. data/docs/LegacyWafUpdateStatusApi.md +102 -0
  58. data/docs/LoggingKafkaApi.md +42 -0
  59. data/docs/LoggingKinesisApi.md +42 -0
  60. data/docs/OriginInspector.md +12 -0
  61. data/docs/OriginInspectorDimensions.md +12 -0
  62. data/docs/OriginInspectorEntry.md +11 -0
  63. data/docs/OriginInspectorHistorical.md +13 -0
  64. data/docs/OriginInspectorHistoricalApi.md +72 -0
  65. data/docs/OriginInspectorHistoricalData.md +11 -0
  66. data/docs/OriginInspectorHistoricalMeta.md +18 -0
  67. data/docs/OriginInspectorHistoricalMetaFilters.md +12 -0
  68. data/docs/OriginInspectorMeasurements.md +161 -0
  69. data/docs/OriginInspectorRealtimeApi.md +132 -0
  70. data/docs/OriginInspectorRealtimeEntry.md +12 -0
  71. data/docs/OriginInspectorRealtimeEntryRecorded.md +9 -0
  72. data/docs/OriginInspectorSubsequentRequestTimestamp.md +9 -0
  73. data/docs/OriginInspectorValues.md +161 -0
  74. data/docs/PaginationCursorMeta.md +11 -0
  75. data/docs/ReadOnlyServiceId.md +9 -0
  76. data/docs/ReadOnlyVersion.md +9 -0
  77. data/docs/RealtimeEntry.md +2 -2
  78. data/docs/RealtimeEntryAggregated.md +227 -0
  79. data/docs/RealtimeEntryRecorded.md +9 -0
  80. data/docs/RealtimeMeasurements.md +1 -1
  81. data/docs/RecordedTimestamp.md +9 -0
  82. data/docs/RequestSettingsApi.md +40 -0
  83. data/docs/ResponseObjectApi.md +82 -0
  84. data/docs/SchemasSnippetResponse.md +1 -1
  85. data/docs/Secret.md +12 -0
  86. data/docs/SecretResponse.md +13 -0
  87. data/docs/SecretStore.md +10 -0
  88. data/docs/SecretStoreApi.md +233 -0
  89. data/docs/SecretStoreItemApi.md +255 -0
  90. data/docs/SecretStoreResponse.md +12 -0
  91. data/docs/ServiceAuthorizationsApi.md +76 -0
  92. data/docs/SigningKey.md +10 -0
  93. data/docs/Snippet.md +1 -1
  94. data/docs/SnippetApi.md +46 -4
  95. data/docs/SnippetResponse.md +1 -1
  96. data/docs/SubsequentRequestTimestamp.md +9 -0
  97. data/docs/SudoApi.md +52 -0
  98. data/docs/SudoGenericTokenError.md +10 -0
  99. data/docs/SudoRequest.md +12 -0
  100. data/docs/SudoResponse.md +10 -0
  101. data/docs/TokensAdditionalProps.md +9 -0
  102. data/docs/TokensApi.md +70 -0
  103. data/docs/ValidatorResult.md +1 -5
  104. data/docs/ValidatorResultData.md +12 -0
  105. data/docs/ValidatorResultDataAttributes.md +14 -0
  106. data/docs/{ValidatorResultMessages.md → ValidatorResultDataAttributesMessages.md} +2 -2
  107. data/docs/Values.md +71 -0
  108. data/docs/VclApi.md +8 -6
  109. data/docs/VclSyntaxHighlightingResponse.md +10 -0
  110. data/docs/WafActiveRulesApi.md +41 -0
  111. data/lib/fastly/api/acl_entry_api.rb +332 -0
  112. data/lib/fastly/api/apex_redirect_api.rb +111 -0
  113. data/lib/fastly/api/contact_api.rb +90 -0
  114. data/lib/fastly/api/content_api.rb +79 -0
  115. data/lib/fastly/api/director_api.rb +82 -0
  116. data/lib/fastly/api/domain_inspector_historical_api.rb +125 -0
  117. data/lib/fastly/api/domain_inspector_realtime_api.rb +223 -0
  118. data/lib/fastly/api/iam_roles_api.rb +271 -0
  119. data/lib/fastly/api/iam_service_groups_api.rb +271 -0
  120. data/lib/fastly/api/iam_user_groups_api.rb +547 -0
  121. data/lib/fastly/api/legacy_waf_configuration_sets_api.rb +209 -0
  122. data/lib/fastly/api/legacy_waf_firewall_api.rb +627 -0
  123. data/lib/fastly/api/legacy_waf_owasp_api.rb +244 -0
  124. data/lib/fastly/api/legacy_waf_rule_api.rb +307 -0
  125. data/lib/fastly/api/legacy_waf_rule_status_api.rb +366 -0
  126. data/lib/fastly/api/legacy_waf_ruleset_api.rb +237 -0
  127. data/lib/fastly/api/legacy_waf_tag_api.rb +96 -0
  128. data/lib/fastly/api/legacy_waf_update_status_api.rb +184 -0
  129. data/lib/fastly/api/logging_kafka_api.rb +82 -0
  130. data/lib/fastly/api/logging_kinesis_api.rb +82 -0
  131. data/lib/fastly/api/origin_inspector_historical_api.rb +125 -0
  132. data/lib/fastly/api/origin_inspector_realtime_api.rb +223 -0
  133. data/lib/fastly/api/request_settings_api.rb +75 -0
  134. data/lib/fastly/api/response_object_api.rb +157 -0
  135. data/lib/fastly/api/secret_store_api.rb +381 -0
  136. data/lib/fastly/api/secret_store_item_api.rb +437 -0
  137. data/lib/fastly/api/service_authorizations_api.rb +126 -0
  138. data/lib/fastly/api/snippet_api.rb +88 -6
  139. data/lib/fastly/api/sudo_api.rb +83 -0
  140. data/lib/fastly/api/tokens_api.rb +122 -0
  141. data/lib/fastly/api/vcl_api.rb +10 -10
  142. data/lib/fastly/api/waf_active_rules_api.rb +75 -0
  143. data/lib/fastly/configuration.rb +504 -0
  144. data/lib/fastly/models/acl_entry.rb +1 -1
  145. data/lib/fastly/models/acl_entry_response.rb +1 -1
  146. data/lib/fastly/models/batch.rb +239 -0
  147. data/lib/fastly/models/batch_errors.rb +247 -0
  148. data/lib/fastly/models/bulk_update_acl_entry.rb +1 -1
  149. data/lib/fastly/models/client_key.rb +239 -0
  150. data/lib/fastly/models/content.rb +8 -4
  151. data/lib/fastly/models/domain.rb +1 -0
  152. data/lib/fastly/models/domain_inspector.rb +238 -0
  153. data/lib/fastly/models/domain_inspector_entry.rb +228 -0
  154. data/lib/fastly/models/domain_inspector_entry_dimensions.rb +238 -0
  155. data/lib/fastly/models/domain_inspector_measurements.rb +828 -0
  156. data/lib/fastly/models/domain_inspector_realtime_entry.rb +241 -0
  157. data/lib/fastly/models/event_attributes.rb +4 -2
  158. data/lib/fastly/models/{events_response_all_of.rb → event_data.rb} +3 -3
  159. data/lib/fastly/models/events_response.rb +1 -1
  160. data/lib/fastly/models/historical_domains.rb +249 -0
  161. data/lib/fastly/models/historical_domains_data.rb +228 -0
  162. data/lib/fastly/models/historical_domains_meta.rb +297 -0
  163. data/lib/fastly/models/historical_domains_meta_filters.rb +235 -0
  164. data/lib/fastly/models/historical_domains_response.rb +257 -0
  165. data/lib/fastly/models/historical_domains_response_all_of.rb +219 -0
  166. data/lib/fastly/models/historical_field_results_attributes.rb +1 -1
  167. data/lib/fastly/models/{historical_field_results_attributes_all_of.rb → historical_field_results_attributes_additional.rb} +3 -3
  168. data/lib/fastly/models/historical_origins_response.rb +257 -0
  169. data/lib/fastly/models/historical_origins_response_all_of.rb +219 -0
  170. data/lib/fastly/models/inline_response2005.rb +227 -0
  171. data/lib/fastly/models/inline_response2006.rb +227 -0
  172. data/lib/fastly/models/inline_response2007.rb +218 -0
  173. data/lib/fastly/models/inline_response400.rb +250 -0
  174. data/lib/fastly/models/legacy_waf_configuration_set.rb +227 -0
  175. data/lib/fastly/models/legacy_waf_firewall.rb +297 -0
  176. data/lib/fastly/models/legacy_waf_owasp.rb +527 -0
  177. data/lib/fastly/models/legacy_waf_rule.rb +257 -0
  178. data/lib/fastly/models/legacy_waf_rule_status.rb +237 -0
  179. data/lib/fastly/models/legacy_waf_ruleset.rb +227 -0
  180. data/lib/fastly/models/legacy_waf_tag.rb +217 -0
  181. data/lib/fastly/models/legacy_waf_update_status.rb +267 -0
  182. data/lib/fastly/models/origin_inspector.rb +238 -0
  183. data/lib/fastly/models/origin_inspector_dimensions.rb +238 -0
  184. data/lib/fastly/models/origin_inspector_entry.rb +228 -0
  185. data/lib/fastly/models/origin_inspector_historical.rb +249 -0
  186. data/lib/fastly/models/origin_inspector_historical_data.rb +225 -0
  187. data/lib/fastly/models/origin_inspector_historical_meta.rb +297 -0
  188. data/lib/fastly/models/origin_inspector_historical_meta_filters.rb +235 -0
  189. data/lib/fastly/models/origin_inspector_measurements.rb +1728 -0
  190. data/lib/fastly/models/origin_inspector_realtime_entry.rb +241 -0
  191. data/lib/fastly/models/origin_inspector_realtime_entry_recorded.rb +208 -0
  192. data/lib/fastly/models/origin_inspector_subsequent_request_timestamp.rb +208 -0
  193. data/lib/fastly/models/origin_inspector_values.rb +1728 -0
  194. data/lib/fastly/models/pagination_cursor_meta.rb +227 -0
  195. data/lib/fastly/models/read_only_service_id.rb +207 -0
  196. data/lib/fastly/models/read_only_version.rb +207 -0
  197. data/lib/fastly/models/realtime_entry.rb +2 -7
  198. data/lib/fastly/models/realtime_entry_aggregated.rb +2397 -0
  199. data/lib/fastly/models/realtime_entry_recorded.rb +208 -0
  200. data/lib/fastly/models/realtime_measurements.rb +4 -2
  201. data/lib/fastly/models/recorded_timestamp.rb +208 -0
  202. data/lib/fastly/models/schemas_snippet_response.rb +3 -3
  203. data/lib/fastly/models/secret.rb +238 -0
  204. data/lib/fastly/models/secret_response.rb +249 -0
  205. data/lib/fastly/models/secret_store.rb +217 -0
  206. data/lib/fastly/models/secret_store_response.rb +238 -0
  207. data/lib/fastly/models/signing_key.rb +218 -0
  208. data/lib/fastly/models/snippet.rb +3 -3
  209. data/lib/fastly/models/snippet_response.rb +3 -3
  210. data/lib/fastly/models/subsequent_request_timestamp.rb +208 -0
  211. data/lib/fastly/models/sudo_generic_token_error.rb +216 -0
  212. data/lib/fastly/models/sudo_request.rb +244 -0
  213. data/lib/fastly/models/sudo_response.rb +217 -0
  214. data/lib/fastly/models/tokens_additional_props.rb +227 -0
  215. data/lib/fastly/models/validator_result.rb +7 -84
  216. data/lib/fastly/models/validator_result_data.rb +234 -0
  217. data/lib/fastly/models/validator_result_data_attributes.rb +293 -0
  218. data/lib/fastly/models/{validator_result_messages.rb → validator_result_data_attributes_messages.rb} +4 -4
  219. data/lib/fastly/models/values.rb +828 -0
  220. data/lib/fastly/models/vcl_syntax_highlighting_response.rb +217 -0
  221. data/lib/fastly/version.rb +1 -1
  222. data/lib/fastly.rb +79 -3
  223. data/sig.json +1 -1
  224. metadata +160 -8
@@ -0,0 +1,96 @@
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://developer.fastly.com/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 LegacyWafTagApi
15
+ attr_accessor :api_client
16
+
17
+ def initialize(api_client = ApiClient.default)
18
+ @api_client = api_client
19
+ end
20
+ # List WAF tags
21
+ # List all tags.
22
+ # @option opts [String] :filter_name Limit the returned tags to a specific name.
23
+ # @option opts [Integer] :page_number Current page.
24
+ # @option opts [Integer] :page_size Number of records per page. (default to 20)
25
+ # @option opts [String] :include Include relationships. Optional, comma separated values. Permitted values: `rules`.
26
+ # @return [Object]
27
+ def list_legacy_waf_tags(opts = {})
28
+ data, _status_code, _headers = list_legacy_waf_tags_with_http_info(opts)
29
+ data
30
+ end
31
+
32
+ # List WAF tags
33
+ # List all tags.
34
+ # @option opts [String] :filter_name Limit the returned tags to a specific name.
35
+ # @option opts [Integer] :page_number Current page.
36
+ # @option opts [Integer] :page_size Number of records per page. (default to 20)
37
+ # @option opts [String] :include Include relationships. Optional, comma separated values. Permitted values: `rules`.
38
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
39
+ def list_legacy_waf_tags_with_http_info(opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: LegacyWafTagApi.list_legacy_waf_tags ...'
42
+ end
43
+ # unbox the parameters from the hash
44
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 100
45
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling LegacyWafTagApi.list_legacy_waf_tags, must be smaller than or equal to 100.'
46
+ end
47
+
48
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
49
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling LegacyWafTagApi.list_legacy_waf_tags, must be greater than or equal to 1.'
50
+ end
51
+
52
+ # resource path
53
+ local_var_path = '/wafs/tags'
54
+
55
+ # query parameters
56
+ query_params = opts[:query_params] || {}
57
+ query_params[:'filter[name]'] = opts[:'filter_name'] if !opts[:'filter_name'].nil?
58
+ query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
59
+ query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
60
+ query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil?
61
+
62
+ # header parameters
63
+ header_params = opts[:header_params] || {}
64
+ # HTTP header 'Accept' (if needed)
65
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
66
+
67
+ # form parameters
68
+ form_params = opts[:form_params] || {}
69
+
70
+ # http body (model)
71
+ post_body = opts[:debug_body]
72
+
73
+ # return_type
74
+ return_type = opts[:debug_return_type] || 'Object'
75
+
76
+ # auth_names
77
+ auth_names = opts[:debug_auth_names] || ['token']
78
+
79
+ new_options = opts.merge(
80
+ :operation => :"LegacyWafTagApi.list_legacy_waf_tags",
81
+ :header_params => header_params,
82
+ :query_params => query_params,
83
+ :form_params => form_params,
84
+ :body => post_body,
85
+ :auth_names => auth_names,
86
+ :return_type => return_type
87
+ )
88
+
89
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
90
+ if @api_client.config.debugging
91
+ @api_client.config.logger.debug "API called: LegacyWafTagApi#list_legacy_waf_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
92
+ end
93
+ return data, status_code, headers
94
+ end
95
+ end
96
+ end
@@ -0,0 +1,184 @@
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://developer.fastly.com/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 LegacyWafUpdateStatusApi
15
+ attr_accessor :api_client
16
+
17
+ def initialize(api_client = ApiClient.default)
18
+ @api_client = api_client
19
+ end
20
+ # Get the status of a WAF update
21
+ # Get a specific update status object for a particular service and firewall object.
22
+ # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
23
+ # @option opts [String] :firewall_id Alphanumeric string identifying a Firewall. (required)
24
+ # @option opts [String] :update_status_id Alphanumeric string identifying a WAF update status. (required)
25
+ # @return [Object]
26
+ def get_waf_update_status(opts = {})
27
+ data, _status_code, _headers = get_waf_update_status_with_http_info(opts)
28
+ data
29
+ end
30
+
31
+ # Get the status of a WAF update
32
+ # Get a specific update status object for a particular service and firewall object.
33
+ # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
34
+ # @option opts [String] :firewall_id Alphanumeric string identifying a Firewall. (required)
35
+ # @option opts [String] :update_status_id Alphanumeric string identifying a WAF update status. (required)
36
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
37
+ def get_waf_update_status_with_http_info(opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: LegacyWafUpdateStatusApi.get_waf_update_status ...'
40
+ end
41
+ # unbox the parameters from the hash
42
+ service_id = opts[:'service_id']
43
+ firewall_id = opts[:'firewall_id']
44
+ update_status_id = opts[:'update_status_id']
45
+ # verify the required parameter 'service_id' is set
46
+ if @api_client.config.client_side_validation && service_id.nil?
47
+ fail ArgumentError, "Missing the required parameter 'service_id' when calling LegacyWafUpdateStatusApi.get_waf_update_status"
48
+ end
49
+ # verify the required parameter 'firewall_id' is set
50
+ if @api_client.config.client_side_validation && firewall_id.nil?
51
+ fail ArgumentError, "Missing the required parameter 'firewall_id' when calling LegacyWafUpdateStatusApi.get_waf_update_status"
52
+ end
53
+ # verify the required parameter 'update_status_id' is set
54
+ if @api_client.config.client_side_validation && update_status_id.nil?
55
+ fail ArgumentError, "Missing the required parameter 'update_status_id' when calling LegacyWafUpdateStatusApi.get_waf_update_status"
56
+ end
57
+ # resource path
58
+ local_var_path = '/service/{service_id}/wafs/{firewall_id}/update_statuses/{update_status_id}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'firewall_id' + '}', CGI.escape(firewall_id.to_s)).sub('{' + 'update_status_id' + '}', CGI.escape(update_status_id.to_s))
59
+
60
+ # query parameters
61
+ query_params = opts[:query_params] || {}
62
+
63
+ # header parameters
64
+ header_params = opts[:header_params] || {}
65
+ # HTTP header 'Accept' (if needed)
66
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
67
+
68
+ # form parameters
69
+ form_params = opts[:form_params] || {}
70
+
71
+ # http body (model)
72
+ post_body = opts[:debug_body]
73
+
74
+ # return_type
75
+ return_type = opts[:debug_return_type] || 'Object'
76
+
77
+ # auth_names
78
+ auth_names = opts[:debug_auth_names] || ['token']
79
+
80
+ new_options = opts.merge(
81
+ :operation => :"LegacyWafUpdateStatusApi.get_waf_update_status",
82
+ :header_params => header_params,
83
+ :query_params => query_params,
84
+ :form_params => form_params,
85
+ :body => post_body,
86
+ :auth_names => auth_names,
87
+ :return_type => return_type
88
+ )
89
+
90
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
91
+ if @api_client.config.debugging
92
+ @api_client.config.logger.debug "API called: LegacyWafUpdateStatusApi#get_waf_update_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
93
+ end
94
+ return data, status_code, headers
95
+ end
96
+
97
+ # List update statuses
98
+ # List all update statuses for a particular service and firewall object.
99
+ # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
100
+ # @option opts [String] :firewall_id Alphanumeric string identifying a Firewall. (required)
101
+ # @option opts [Integer] :page_number Current page.
102
+ # @option opts [Integer] :page_size Number of records per page. (default to 20)
103
+ # @option opts [String] :include Include relationships. Optional, comma separated values. Permitted values: &#x60;waf&#x60;.
104
+ # @return [Object]
105
+ def list_waf_update_statuses(opts = {})
106
+ data, _status_code, _headers = list_waf_update_statuses_with_http_info(opts)
107
+ data
108
+ end
109
+
110
+ # List update statuses
111
+ # List all update statuses for a particular service and firewall object.
112
+ # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
113
+ # @option opts [String] :firewall_id Alphanumeric string identifying a Firewall. (required)
114
+ # @option opts [Integer] :page_number Current page.
115
+ # @option opts [Integer] :page_size Number of records per page. (default to 20)
116
+ # @option opts [String] :include Include relationships. Optional, comma separated values. Permitted values: &#x60;waf&#x60;.
117
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
118
+ def list_waf_update_statuses_with_http_info(opts = {})
119
+ if @api_client.config.debugging
120
+ @api_client.config.logger.debug 'Calling API: LegacyWafUpdateStatusApi.list_waf_update_statuses ...'
121
+ end
122
+ # unbox the parameters from the hash
123
+ service_id = opts[:'service_id']
124
+ firewall_id = opts[:'firewall_id']
125
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 100
126
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling LegacyWafUpdateStatusApi.list_waf_update_statuses, must be smaller than or equal to 100.'
127
+ end
128
+
129
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
130
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling LegacyWafUpdateStatusApi.list_waf_update_statuses, must be greater than or equal to 1.'
131
+ end
132
+
133
+ # verify the required parameter 'service_id' is set
134
+ if @api_client.config.client_side_validation && service_id.nil?
135
+ fail ArgumentError, "Missing the required parameter 'service_id' when calling LegacyWafUpdateStatusApi.list_waf_update_statuses"
136
+ end
137
+ # verify the required parameter 'firewall_id' is set
138
+ if @api_client.config.client_side_validation && firewall_id.nil?
139
+ fail ArgumentError, "Missing the required parameter 'firewall_id' when calling LegacyWafUpdateStatusApi.list_waf_update_statuses"
140
+ end
141
+ # resource path
142
+ local_var_path = '/service/{service_id}/wafs/{firewall_id}/update_statuses'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'firewall_id' + '}', CGI.escape(firewall_id.to_s))
143
+
144
+ # query parameters
145
+ query_params = opts[:query_params] || {}
146
+ query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
147
+ query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
148
+ query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil?
149
+
150
+ # header parameters
151
+ header_params = opts[:header_params] || {}
152
+ # HTTP header 'Accept' (if needed)
153
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
154
+
155
+ # form parameters
156
+ form_params = opts[:form_params] || {}
157
+
158
+ # http body (model)
159
+ post_body = opts[:debug_body]
160
+
161
+ # return_type
162
+ return_type = opts[:debug_return_type] || 'Object'
163
+
164
+ # auth_names
165
+ auth_names = opts[:debug_auth_names] || ['token']
166
+
167
+ new_options = opts.merge(
168
+ :operation => :"LegacyWafUpdateStatusApi.list_waf_update_statuses",
169
+ :header_params => header_params,
170
+ :query_params => query_params,
171
+ :form_params => form_params,
172
+ :body => post_body,
173
+ :auth_names => auth_names,
174
+ :return_type => return_type
175
+ )
176
+
177
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
178
+ if @api_client.config.debugging
179
+ @api_client.config.logger.debug "API called: LegacyWafUpdateStatusApi#list_waf_update_statuses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
180
+ end
181
+ return data, status_code, headers
182
+ end
183
+ end
184
+ end
@@ -392,5 +392,87 @@ module Fastly
392
392
  end
393
393
  return data, status_code, headers
394
394
  end
395
+
396
+ # Update the Kafka log endpoint
397
+ # Update the Kafka logging endpoint for a particular service and version.
398
+ # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
399
+ # @option opts [Integer] :version_id Integer identifying a service version. (required)
400
+ # @option opts [String] :logging_kafka_name The name for the real-time logging configuration. (required)
401
+ # @return [LoggingKafkaResponse]
402
+ def update_log_kafka(opts = {})
403
+ data, _status_code, _headers = update_log_kafka_with_http_info(opts)
404
+ data
405
+ end
406
+
407
+ # Update the Kafka log endpoint
408
+ # Update the Kafka logging endpoint for a particular service and version.
409
+ # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
410
+ # @option opts [Integer] :version_id Integer identifying a service version. (required)
411
+ # @option opts [String] :logging_kafka_name The name for the real-time logging configuration. (required)
412
+ # @return [Array<(LoggingKafkaResponse, Integer, Hash)>] LoggingKafkaResponse data, response status code and response headers
413
+ def update_log_kafka_with_http_info(opts = {})
414
+ if @api_client.config.debugging
415
+ @api_client.config.logger.debug 'Calling API: LoggingKafkaApi.update_log_kafka ...'
416
+ end
417
+ # unbox the parameters from the hash
418
+ service_id = opts[:'service_id']
419
+ version_id = opts[:'version_id']
420
+ logging_kafka_name = opts[:'logging_kafka_name']
421
+ # verify the required parameter 'service_id' is set
422
+ if @api_client.config.client_side_validation && service_id.nil?
423
+ fail ArgumentError, "Missing the required parameter 'service_id' when calling LoggingKafkaApi.update_log_kafka"
424
+ end
425
+ # verify the required parameter 'version_id' is set
426
+ if @api_client.config.client_side_validation && version_id.nil?
427
+ fail ArgumentError, "Missing the required parameter 'version_id' when calling LoggingKafkaApi.update_log_kafka"
428
+ end
429
+ # verify the required parameter 'logging_kafka_name' is set
430
+ if @api_client.config.client_side_validation && logging_kafka_name.nil?
431
+ fail ArgumentError, "Missing the required parameter 'logging_kafka_name' when calling LoggingKafkaApi.update_log_kafka"
432
+ end
433
+ # resource path
434
+ local_var_path = '/service/{service_id}/version/{version_id}/logging/kafka/{logging_kafka_name}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'version_id' + '}', CGI.escape(version_id.to_s)).sub('{' + 'logging_kafka_name' + '}', CGI.escape(logging_kafka_name.to_s))
435
+
436
+ # query parameters
437
+ query_params = opts[:query_params] || {}
438
+
439
+ # header parameters
440
+ header_params = opts[:header_params] || {}
441
+ # HTTP header 'Accept' (if needed)
442
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
443
+ # HTTP header 'Content-Type'
444
+ content_type = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
445
+ if !content_type.nil?
446
+ header_params['Content-Type'] = content_type
447
+ end
448
+
449
+ # form parameters
450
+ form_params = opts[:form_params] || {}
451
+
452
+ # http body (model)
453
+ post_body = opts[:debug_body]
454
+
455
+ # return_type
456
+ return_type = opts[:debug_return_type] || 'LoggingKafkaResponse'
457
+
458
+ # auth_names
459
+ auth_names = opts[:debug_auth_names] || ['token']
460
+
461
+ new_options = opts.merge(
462
+ :operation => :"LoggingKafkaApi.update_log_kafka",
463
+ :header_params => header_params,
464
+ :query_params => query_params,
465
+ :form_params => form_params,
466
+ :body => post_body,
467
+ :auth_names => auth_names,
468
+ :return_type => return_type
469
+ )
470
+
471
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
472
+ if @api_client.config.debugging
473
+ @api_client.config.logger.debug "API called: LoggingKafkaApi#update_log_kafka\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
474
+ end
475
+ return data, status_code, headers
476
+ end
395
477
  end
396
478
  end
@@ -342,5 +342,87 @@ module Fastly
342
342
  end
343
343
  return data, status_code, headers
344
344
  end
345
+
346
+ # Update the Amazon Kinesis log endpoint
347
+ # Update an Amazon Kinesis Data Streams logging object for a particular service and version.
348
+ # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
349
+ # @option opts [Integer] :version_id Integer identifying a service version. (required)
350
+ # @option opts [String] :logging_kinesis_name The name for the real-time logging configuration. (required)
351
+ # @return [LoggingKinesisResponse]
352
+ def update_log_kinesis(opts = {})
353
+ data, _status_code, _headers = update_log_kinesis_with_http_info(opts)
354
+ data
355
+ end
356
+
357
+ # Update the Amazon Kinesis log endpoint
358
+ # Update an Amazon Kinesis Data Streams logging object for a particular service and version.
359
+ # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
360
+ # @option opts [Integer] :version_id Integer identifying a service version. (required)
361
+ # @option opts [String] :logging_kinesis_name The name for the real-time logging configuration. (required)
362
+ # @return [Array<(LoggingKinesisResponse, Integer, Hash)>] LoggingKinesisResponse data, response status code and response headers
363
+ def update_log_kinesis_with_http_info(opts = {})
364
+ if @api_client.config.debugging
365
+ @api_client.config.logger.debug 'Calling API: LoggingKinesisApi.update_log_kinesis ...'
366
+ end
367
+ # unbox the parameters from the hash
368
+ service_id = opts[:'service_id']
369
+ version_id = opts[:'version_id']
370
+ logging_kinesis_name = opts[:'logging_kinesis_name']
371
+ # verify the required parameter 'service_id' is set
372
+ if @api_client.config.client_side_validation && service_id.nil?
373
+ fail ArgumentError, "Missing the required parameter 'service_id' when calling LoggingKinesisApi.update_log_kinesis"
374
+ end
375
+ # verify the required parameter 'version_id' is set
376
+ if @api_client.config.client_side_validation && version_id.nil?
377
+ fail ArgumentError, "Missing the required parameter 'version_id' when calling LoggingKinesisApi.update_log_kinesis"
378
+ end
379
+ # verify the required parameter 'logging_kinesis_name' is set
380
+ if @api_client.config.client_side_validation && logging_kinesis_name.nil?
381
+ fail ArgumentError, "Missing the required parameter 'logging_kinesis_name' when calling LoggingKinesisApi.update_log_kinesis"
382
+ end
383
+ # resource path
384
+ local_var_path = '/service/{service_id}/version/{version_id}/logging/kinesis/{logging_kinesis_name}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'version_id' + '}', CGI.escape(version_id.to_s)).sub('{' + 'logging_kinesis_name' + '}', CGI.escape(logging_kinesis_name.to_s))
385
+
386
+ # query parameters
387
+ query_params = opts[:query_params] || {}
388
+
389
+ # header parameters
390
+ header_params = opts[:header_params] || {}
391
+ # HTTP header 'Accept' (if needed)
392
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
393
+ # HTTP header 'Content-Type'
394
+ content_type = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
395
+ if !content_type.nil?
396
+ header_params['Content-Type'] = content_type
397
+ end
398
+
399
+ # form parameters
400
+ form_params = opts[:form_params] || {}
401
+
402
+ # http body (model)
403
+ post_body = opts[:debug_body]
404
+
405
+ # return_type
406
+ return_type = opts[:debug_return_type] || 'LoggingKinesisResponse'
407
+
408
+ # auth_names
409
+ auth_names = opts[:debug_auth_names] || ['token']
410
+
411
+ new_options = opts.merge(
412
+ :operation => :"LoggingKinesisApi.update_log_kinesis",
413
+ :header_params => header_params,
414
+ :query_params => query_params,
415
+ :form_params => form_params,
416
+ :body => post_body,
417
+ :auth_names => auth_names,
418
+ :return_type => return_type
419
+ )
420
+
421
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
422
+ if @api_client.config.debugging
423
+ @api_client.config.logger.debug "API called: LoggingKinesisApi#update_log_kinesis\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
424
+ end
425
+ return data, status_code, headers
426
+ end
345
427
  end
346
428
  end
@@ -0,0 +1,125 @@
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://developer.fastly.com/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 OriginInspectorHistoricalApi
15
+ attr_accessor :api_client
16
+
17
+ def initialize(api_client = ApiClient.default)
18
+ @api_client = api_client
19
+ end
20
+ # Get historical origin data for a service
21
+ # Fetches historical origin metrics for a given Fastly service, optionally filtering and grouping the results by origin host, region, or POP.
22
+ # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
23
+ # @option opts [String] :start A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the inclusive start of the query time range. If not provided, a default is chosen based on the provided &#x60;downsample&#x60; value.
24
+ # @option opts [String] :_end A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided &#x60;downsample&#x60; value.
25
+ # @option opts [String] :downsample Duration of sample windows. (default to 'hour')
26
+ # @option opts [String] :metric The metric to retrieve. Up to ten comma-separated metrics are accepted. (default to 'responses')
27
+ # @option opts [String] :group_by Dimensions to return in the query. Multiple dimensions may be separated by commas. For example, &#x60;group_by&#x3D;host&#x60; will return one timeseries for every origin host, as a total across all POPs.
28
+ # @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
29
+ # @option opts [String] :cursor Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty.
30
+ # @option opts [String] :region Limit query to one or more specific geographic regions. Values should be comma-separated.
31
+ # @option opts [String] :datacenter Limit query to one or more specific POPs. Values should be comma-separated.
32
+ # @option opts [String] :host Limit query to one or more specific origin hosts. Values should be comma-separated.
33
+ # @return [HistoricalOriginsResponse]
34
+ def get_origin_inspector_historical(opts = {})
35
+ data, _status_code, _headers = get_origin_inspector_historical_with_http_info(opts)
36
+ data
37
+ end
38
+
39
+ # Get historical origin data for a service
40
+ # Fetches historical origin metrics for a given Fastly service, optionally filtering and grouping the results by origin host, region, or POP.
41
+ # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
42
+ # @option opts [String] :start A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the inclusive start of the query time range. If not provided, a default is chosen based on the provided &#x60;downsample&#x60; value.
43
+ # @option opts [String] :_end A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided &#x60;downsample&#x60; value.
44
+ # @option opts [String] :downsample Duration of sample windows. (default to 'hour')
45
+ # @option opts [String] :metric The metric to retrieve. Up to ten comma-separated metrics are accepted. (default to 'responses')
46
+ # @option opts [String] :group_by Dimensions to return in the query. Multiple dimensions may be separated by commas. For example, &#x60;group_by&#x3D;host&#x60; will return one timeseries for every origin host, as a total across all POPs.
47
+ # @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
48
+ # @option opts [String] :cursor Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty.
49
+ # @option opts [String] :region Limit query to one or more specific geographic regions. Values should be comma-separated.
50
+ # @option opts [String] :datacenter Limit query to one or more specific POPs. Values should be comma-separated.
51
+ # @option opts [String] :host Limit query to one or more specific origin hosts. Values should be comma-separated.
52
+ # @return [Array<(HistoricalOriginsResponse, Integer, Hash)>] HistoricalOriginsResponse data, response status code and response headers
53
+ def get_origin_inspector_historical_with_http_info(opts = {})
54
+ if @api_client.config.debugging
55
+ @api_client.config.logger.debug 'Calling API: OriginInspectorHistoricalApi.get_origin_inspector_historical ...'
56
+ end
57
+ # unbox the parameters from the hash
58
+ service_id = opts[:'service_id']
59
+ # verify the required parameter 'service_id' is set
60
+ if @api_client.config.client_side_validation && service_id.nil?
61
+ fail ArgumentError, "Missing the required parameter 'service_id' when calling OriginInspectorHistoricalApi.get_origin_inspector_historical"
62
+ end
63
+ allowable_values = ["hour", "minute", "day"]
64
+ if @api_client.config.client_side_validation && opts[:'downsample'] && !allowable_values.include?(opts[:'downsample'])
65
+ fail ArgumentError, "invalid value for \"downsample\", must be one of #{allowable_values}"
66
+ end
67
+ allowable_values = ["host", "datacenter", "region", "none"]
68
+ if @api_client.config.client_side_validation && opts[:'group_by'] && !allowable_values.include?(opts[:'group_by'])
69
+ fail ArgumentError, "invalid value for \"group_by\", must be one of #{allowable_values}"
70
+ end
71
+ allowable_values = ["usa", "europe", "asia", "asia_india", "asia_southkorea", "africa_std", "southamerica_std"]
72
+ if @api_client.config.client_side_validation && opts[:'region'] && !allowable_values.include?(opts[:'region'])
73
+ fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
74
+ end
75
+ # resource path
76
+ local_var_path = '/metrics/origins/services/{service_id}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
77
+
78
+ # query parameters
79
+ query_params = opts[:query_params] || {}
80
+ query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
81
+ query_params[:'end'] = opts[:'_end'] if !opts[:'_end'].nil?
82
+ query_params[:'downsample'] = opts[:'downsample'] if !opts[:'downsample'].nil?
83
+ query_params[:'metric'] = opts[:'metric'] if !opts[:'metric'].nil?
84
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
85
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
86
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
87
+ query_params[:'region'] = opts[:'region'] if !opts[:'region'].nil?
88
+ query_params[:'datacenter'] = opts[:'datacenter'] if !opts[:'datacenter'].nil?
89
+ query_params[:'host'] = opts[:'host'] if !opts[:'host'].nil?
90
+
91
+ # header parameters
92
+ header_params = opts[:header_params] || {}
93
+ # HTTP header 'Accept' (if needed)
94
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
95
+
96
+ # form parameters
97
+ form_params = opts[:form_params] || {}
98
+
99
+ # http body (model)
100
+ post_body = opts[:debug_body]
101
+
102
+ # return_type
103
+ return_type = opts[:debug_return_type] || 'HistoricalOriginsResponse'
104
+
105
+ # auth_names
106
+ auth_names = opts[:debug_auth_names] || ['token']
107
+
108
+ new_options = opts.merge(
109
+ :operation => :"OriginInspectorHistoricalApi.get_origin_inspector_historical",
110
+ :header_params => header_params,
111
+ :query_params => query_params,
112
+ :form_params => form_params,
113
+ :body => post_body,
114
+ :auth_names => auth_names,
115
+ :return_type => return_type
116
+ )
117
+
118
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
119
+ if @api_client.config.debugging
120
+ @api_client.config.logger.debug "API called: OriginInspectorHistoricalApi#get_origin_inspector_historical\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
121
+ end
122
+ return data, status_code, headers
123
+ end
124
+ end
125
+ end