fastly 15.0.0 → 16.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 (164) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +40 -1
  3. data/Gemfile.lock +3 -3
  4. data/README.md +32 -3
  5. data/docs/ApisecurityOperationsApi.md +465 -0
  6. data/docs/AutomationTokensApi.md +2 -2
  7. data/docs/Backend.md +1 -0
  8. data/docs/BackendApi.md +4 -0
  9. data/docs/BackendResponse.md +1 -0
  10. data/docs/DdosProtectionApi.md +4 -4
  11. data/docs/DdosProtectionEvent.md +2 -0
  12. data/docs/DdosProtectionEventAllOf.md +2 -0
  13. data/docs/DdosProtectionRequestEnableMode.md +10 -0
  14. data/docs/DiscoveredOperationBase.md +12 -0
  15. data/docs/DiscoveredOperationGet.md +15 -0
  16. data/docs/DiscoveredOperationGetExtra.md +12 -0
  17. data/docs/DmDomainsApi.md +2 -2
  18. data/docs/DomainInspectorHistoricalApi.md +1 -1
  19. data/docs/DomainInspectorMeasurements.md +63 -0
  20. data/docs/DomainOwnershipsApi.md +2 -2
  21. data/docs/DomainResearchApi.md +103 -0
  22. data/docs/DomainResearchResponseBodyEnable.md +12 -0
  23. data/docs/DomainResearchResponseCustomer.md +10 -0
  24. data/docs/DomainResearchResponseLinks.md +10 -0
  25. data/docs/DomainResearchResponseLinksLinks.md +10 -0
  26. data/docs/DomainResearchResponseProduct.md +10 -0
  27. data/docs/DomainResearchResponseProductProduct.md +11 -0
  28. data/docs/HistoricalApi.md +8 -0
  29. data/docs/HistoricalMeta.md +1 -0
  30. data/docs/IamV1RoleResponse.md +1 -0
  31. data/docs/InlineResponse2001.md +2 -1
  32. data/docs/InlineResponse20010.md +2 -1
  33. data/docs/InlineResponse20011.md +11 -0
  34. data/docs/InlineResponse20012.md +11 -0
  35. data/docs/InlineResponse20013.md +11 -0
  36. data/docs/InlineResponse20014.md +10 -0
  37. data/docs/InlineResponse2002.md +2 -2
  38. data/docs/InlineResponse2003.md +2 -2
  39. data/docs/InlineResponse2004.md +1 -2
  40. data/docs/InlineResponse2005.md +2 -1
  41. data/docs/InlineResponse2006.md +2 -2
  42. data/docs/InlineResponse2007.md +2 -2
  43. data/docs/InlineResponse2008.md +1 -2
  44. data/docs/InlineResponse2009.md +1 -2
  45. data/docs/InsightsApi.md +3 -3
  46. data/docs/KvStoreApi.md +43 -4
  47. data/docs/KvStoreDetails.md +2 -0
  48. data/docs/KvStoreItemApi.md +2 -2
  49. data/docs/{KvStoreRequestCreate.md → KvStoreRequestCreateOrUpdate.md} +1 -1
  50. data/docs/LogInsights.md +1 -1
  51. data/docs/Meta.md +11 -0
  52. data/docs/MetricsPlatformApi.md +75 -0
  53. data/docs/NgwafRequestEnable.md +1 -0
  54. data/docs/Offer.md +12 -0
  55. data/docs/OfferAllOf.md +12 -0
  56. data/docs/OperationBase.md +14 -0
  57. data/docs/OperationCreate.md +14 -0
  58. data/docs/OperationGet.md +18 -0
  59. data/docs/OperationGetExtra.md +13 -0
  60. data/docs/OperationUpdate.md +14 -0
  61. data/docs/OriginInspectorHistoricalApi.md +1 -1
  62. data/docs/PackageMetadata.md +2 -2
  63. data/docs/PlatformMetadata.md +14 -0
  64. data/docs/PlatformMetricsResponse.md +11 -0
  65. data/docs/PlatformValues.md +25 -0
  66. data/docs/ProductDdosProtectionApi.md +3 -1
  67. data/docs/ProductDomainResearchApi.md +115 -0
  68. data/docs/RealtimeEntryAggregated.md +25 -0
  69. data/docs/RealtimeMeasurements.md +25 -0
  70. data/docs/Results.md +25 -0
  71. data/docs/SecretStoreApi.md +2 -2
  72. data/docs/SecretStoreItemApi.md +2 -2
  73. data/docs/ServiceAuthorizationsApi.md +2 -2
  74. data/docs/Status.md +15 -0
  75. data/docs/StatusAllOf.md +15 -0
  76. data/docs/Suggestion.md +13 -0
  77. data/docs/SuggestionAllOf.md +13 -0
  78. data/docs/TagBase.md +11 -0
  79. data/docs/TagCreate.md +11 -0
  80. data/docs/TagGet.md +15 -0
  81. data/docs/TagGetExtra.md +13 -0
  82. data/docs/Values.md +63 -0
  83. data/lib/fastly/api/apisecurity_operations_api.rb +829 -0
  84. data/lib/fastly/api/automation_tokens_api.rb +3 -3
  85. data/lib/fastly/api/backend_api.rb +6 -0
  86. data/lib/fastly/api/ddos_protection_api.rb +6 -6
  87. data/lib/fastly/api/dm_domains_api.rb +3 -3
  88. data/lib/fastly/api/domain_inspector_historical_api.rb +1 -1
  89. data/lib/fastly/api/domain_ownerships_api.rb +3 -3
  90. data/lib/fastly/api/domain_research_api.rb +163 -0
  91. data/lib/fastly/api/historical_api.rb +12 -0
  92. data/lib/fastly/api/kv_store_api.rb +74 -6
  93. data/lib/fastly/api/kv_store_item_api.rb +3 -3
  94. data/lib/fastly/api/metrics_platform_api.rb +134 -0
  95. data/lib/fastly/api/origin_inspector_historical_api.rb +1 -1
  96. data/lib/fastly/api/product_ddos_protection_api.rb +10 -3
  97. data/lib/fastly/api/product_domain_research_api.rb +186 -0
  98. data/lib/fastly/api/secret_store_api.rb +3 -3
  99. data/lib/fastly/api/secret_store_item_api.rb +3 -3
  100. data/lib/fastly/api/service_authorizations_api.rb +3 -3
  101. data/lib/fastly/configuration.rb +108 -0
  102. data/lib/fastly/models/backend.rb +11 -1
  103. data/lib/fastly/models/backend_response.rb +11 -1
  104. data/lib/fastly/models/ddos_protection_event.rb +21 -1
  105. data/lib/fastly/models/ddos_protection_event_all_of.rb +21 -1
  106. data/lib/fastly/models/ddos_protection_request_enable_mode.rb +251 -0
  107. data/lib/fastly/models/discovered_operation_base.rb +271 -0
  108. data/lib/fastly/models/discovered_operation_get.rb +336 -0
  109. data/lib/fastly/models/discovered_operation_get_extra.rb +271 -0
  110. data/lib/fastly/models/domain_inspector_measurements.rb +634 -4
  111. data/lib/fastly/models/domain_research_response_body_enable.rb +243 -0
  112. data/lib/fastly/models/domain_research_response_customer.rb +216 -0
  113. data/lib/fastly/models/domain_research_response_links.rb +216 -0
  114. data/lib/fastly/models/domain_research_response_links_links.rb +217 -0
  115. data/lib/fastly/models/domain_research_response_product.rb +216 -0
  116. data/lib/fastly/models/domain_research_response_product_product.rb +227 -0
  117. data/lib/fastly/models/historical_meta.rb +13 -4
  118. data/lib/fastly/models/iam_v1_role_response.rb +10 -1
  119. data/lib/fastly/models/inline_response2001.rb +12 -3
  120. data/lib/fastly/models/inline_response20010.rb +13 -4
  121. data/lib/fastly/models/inline_response20011.rb +227 -0
  122. data/lib/fastly/models/inline_response20012.rb +227 -0
  123. data/lib/fastly/models/inline_response20013.rb +227 -0
  124. data/lib/fastly/models/inline_response20014.rb +218 -0
  125. data/lib/fastly/models/inline_response2002.rb +14 -13
  126. data/lib/fastly/models/inline_response2003.rb +14 -23
  127. data/lib/fastly/models/inline_response2004.rb +5 -15
  128. data/lib/fastly/models/inline_response2005.rb +18 -8
  129. data/lib/fastly/models/inline_response2006.rb +11 -1
  130. data/lib/fastly/models/inline_response2007.rb +4 -2
  131. data/lib/fastly/models/inline_response2008.rb +8 -18
  132. data/lib/fastly/models/inline_response2009.rb +8 -17
  133. data/lib/fastly/models/kv_store_details.rb +24 -4
  134. data/lib/fastly/models/{kv_store_request_create.rb → kv_store_request_create_or_update.rb} +3 -3
  135. data/lib/fastly/models/log_insights.rb +4 -2
  136. data/lib/fastly/models/meta.rb +266 -0
  137. data/lib/fastly/models/ngwaf_request_enable.rb +14 -4
  138. data/lib/fastly/models/offer.rb +245 -0
  139. data/lib/fastly/models/offer_all_of.rb +237 -0
  140. data/lib/fastly/models/operation_base.rb +308 -0
  141. data/lib/fastly/models/operation_create.rb +315 -0
  142. data/lib/fastly/models/operation_get.rb +381 -0
  143. data/lib/fastly/models/operation_get_extra.rb +257 -0
  144. data/lib/fastly/models/operation_update.rb +308 -0
  145. data/lib/fastly/models/package_metadata.rb +2 -2
  146. data/lib/fastly/models/platform_metadata.rb +258 -0
  147. data/lib/fastly/models/platform_metrics_response.rb +228 -0
  148. data/lib/fastly/models/platform_values.rb +368 -0
  149. data/lib/fastly/models/realtime_entry_aggregated.rb +254 -4
  150. data/lib/fastly/models/realtime_measurements.rb +254 -4
  151. data/lib/fastly/models/results.rb +251 -1
  152. data/lib/fastly/models/status.rb +276 -0
  153. data/lib/fastly/models/status_all_of.rb +268 -0
  154. data/lib/fastly/models/suggestion.rb +255 -0
  155. data/lib/fastly/models/suggestion_all_of.rb +247 -0
  156. data/lib/fastly/models/tag_base.rb +275 -0
  157. data/lib/fastly/models/tag_create.rb +282 -0
  158. data/lib/fastly/models/tag_get.rb +352 -0
  159. data/lib/fastly/models/tag_get_extra.rb +267 -0
  160. data/lib/fastly/models/values.rb +634 -4
  161. data/lib/fastly/version.rb +1 -1
  162. data/lib/fastly.rb +38 -1
  163. data/sig.json +1 -1
  164. metadata +78 -4
@@ -0,0 +1,134 @@
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 MetricsPlatformApi
15
+ attr_accessor :api_client
16
+
17
+ def initialize(api_client = ApiClient.default)
18
+ @api_client = api_client
19
+ end
20
+ # Get historical time series metrics for a single service
21
+ # Fetches historical metrics for a single service for a given granularity.
22
+ # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
23
+ # @option opts [String] :granularity Duration of sample windows. (required)
24
+ # @option opts [String] :from A valid RFC-8339-formatted date and time indicating the inclusive start of the query time range. If not provided, a default is chosen based on the provided `granularity` value.
25
+ # @option opts [String] :to A valid RFC-8339-formatted date and time indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided `granularity` value.
26
+ # @option opts [String] :metric The metric(s) to retrieve. Multiple values should be comma-separated.
27
+ # @option opts [String] :metric_set The metric set(s) to retrieve. Multiple values should be comma-separated.
28
+ # @option opts [String] :group_by Field to group_by in the query. For example, `group_by=region` will return entries for grouped by timestamp and region.
29
+ # @option opts [String] :region Limit query to one or more specific geographic regions. Values should be comma-separated.
30
+ # @option opts [String] :datacenter Limit query to one or more specific POPs. Values should be comma-separated.
31
+ # @option opts [String] :cursor Cursor value from the `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
32
+ # @option opts [String] :limit Number of results per page. The maximum is 10000. (default to '1000')
33
+ # @return [PlatformMetricsResponse]
34
+ def get_platform_metrics_service_historical(opts = {})
35
+ data, _status_code, _headers = get_platform_metrics_service_historical_with_http_info(opts)
36
+ data
37
+ end
38
+
39
+ # Get historical time series metrics for a single service
40
+ # Fetches historical metrics for a single service for a given granularity.
41
+ # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
42
+ # @option opts [String] :granularity Duration of sample windows. (required)
43
+ # @option opts [String] :from A valid RFC-8339-formatted date and time indicating the inclusive start of the query time range. If not provided, a default is chosen based on the provided `granularity` value.
44
+ # @option opts [String] :to A valid RFC-8339-formatted date and time indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided `granularity` value.
45
+ # @option opts [String] :metric The metric(s) to retrieve. Multiple values should be comma-separated.
46
+ # @option opts [String] :metric_set The metric set(s) to retrieve. Multiple values should be comma-separated.
47
+ # @option opts [String] :group_by Field to group_by in the query. For example, `group_by=region` will return entries for grouped by timestamp and region.
48
+ # @option opts [String] :region Limit query to one or more specific geographic regions. Values should be comma-separated.
49
+ # @option opts [String] :datacenter Limit query to one or more specific POPs. Values should be comma-separated.
50
+ # @option opts [String] :cursor Cursor value from the `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
51
+ # @option opts [String] :limit Number of results per page. The maximum is 10000. (default to '1000')
52
+ # @return [Array<(PlatformMetricsResponse, Integer, Hash)>] PlatformMetricsResponse data, response status code and response headers
53
+ def get_platform_metrics_service_historical_with_http_info(opts = {})
54
+ if @api_client.config.debugging
55
+ @api_client.config.logger.debug 'Calling API: MetricsPlatformApi.get_platform_metrics_service_historical ...'
56
+ end
57
+ # unbox the parameters from the hash
58
+ service_id = opts[:'service_id']
59
+ granularity = opts[:'granularity']
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 MetricsPlatformApi.get_platform_metrics_service_historical"
63
+ end
64
+ # verify the required parameter 'granularity' is set
65
+ if @api_client.config.client_side_validation && granularity.nil?
66
+ fail ArgumentError, "Missing the required parameter 'granularity' when calling MetricsPlatformApi.get_platform_metrics_service_historical"
67
+ end
68
+ # verify enum value
69
+ allowable_values = ["minutely", "hourly", "daily"]
70
+ if @api_client.config.client_side_validation && !allowable_values.include?(granularity)
71
+ fail ArgumentError, "invalid value for \"granularity\", must be one of #{allowable_values}"
72
+ end
73
+ allowable_values = ["ttfb"]
74
+ if @api_client.config.client_side_validation && opts[:'metric_set'] && !allowable_values.include?(opts[:'metric_set'])
75
+ fail ArgumentError, "invalid value for \"metric_set\", must be one of #{allowable_values}"
76
+ end
77
+ allowable_values = ["datacenter", "region"]
78
+ if @api_client.config.client_side_validation && opts[:'group_by'] && !allowable_values.include?(opts[:'group_by'])
79
+ fail ArgumentError, "invalid value for \"group_by\", must be one of #{allowable_values}"
80
+ end
81
+ allowable_values = ["africa_std", "anzac", "asia", "asia_india", "asia_southkorea", "europe", "mexico", "southamerica_std", "usa"]
82
+ if @api_client.config.client_side_validation && opts[:'region'] && !allowable_values.include?(opts[:'region'])
83
+ fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
84
+ end
85
+ # resource path
86
+ local_var_path = '/metrics/platform/services/{service_id}/{granularity}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'granularity' + '}', CGI.escape(granularity.to_s))
87
+
88
+ # query parameters
89
+ query_params = opts[:query_params] || {}
90
+ query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
91
+ query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
92
+ query_params[:'metric'] = opts[:'metric'] if !opts[:'metric'].nil?
93
+ query_params[:'metric_set'] = opts[:'metric_set'] if !opts[:'metric_set'].nil?
94
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
95
+ query_params[:'region'] = opts[:'region'] if !opts[:'region'].nil?
96
+ query_params[:'datacenter'] = opts[:'datacenter'] if !opts[:'datacenter'].nil?
97
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
98
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
99
+
100
+ # header parameters
101
+ header_params = opts[:header_params] || {}
102
+ # HTTP header 'Accept' (if needed)
103
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
104
+
105
+ # form parameters
106
+ form_params = opts[:form_params] || {}
107
+
108
+ # http body (model)
109
+ post_body = opts[:debug_body]
110
+
111
+ # return_type
112
+ return_type = opts[:debug_return_type] || 'PlatformMetricsResponse'
113
+
114
+ # auth_names
115
+ auth_names = opts[:debug_auth_names] || ['token']
116
+
117
+ new_options = opts.merge(
118
+ :operation => :"MetricsPlatformApi.get_platform_metrics_service_historical",
119
+ :header_params => header_params,
120
+ :query_params => query_params,
121
+ :form_params => form_params,
122
+ :body => post_body,
123
+ :auth_names => auth_names,
124
+ :return_type => return_type
125
+ )
126
+
127
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
128
+ if @api_client.config.debugging
129
+ @api_client.config.logger.debug "API called: MetricsPlatformApi#get_platform_metrics_service_historical\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
130
+ end
131
+ return data, status_code, headers
132
+ end
133
+ end
134
+ end
@@ -68,7 +68,7 @@ module Fastly
68
68
  if @api_client.config.client_side_validation && opts[:'group_by'] && !allowable_values.include?(opts[:'group_by'])
69
69
  fail ArgumentError, "invalid value for \"group_by\", must be one of #{allowable_values}"
70
70
  end
71
- allowable_values = ["usa", "europe", "asia", "asia_india", "asia_southkorea", "africa_std", "southamerica_std"]
71
+ allowable_values = ["africa_std", "anzac", "asia", "asia_india", "asia_southkorea", "europe", "mexico", "southamerica_std", "usa"]
72
72
  if @api_client.config.client_side_validation && opts[:'region'] && !allowable_values.include?(opts[:'region'])
73
73
  fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
74
74
  end
@@ -79,8 +79,9 @@ module Fastly
79
79
  end
80
80
 
81
81
  # Enable product
82
- # Enable the DDoS Protection product on a service in 'log' mode.
82
+ # Enable the DDoS Protection product on a service in default 'log' mode unless otherwise specified in the request body.
83
83
  # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
84
+ # @option opts [DdosProtectionRequestEnableMode] :ddos_protection_request_enable_mode
84
85
  # @return [DdosProtectionResponseEnable]
85
86
  def enable_product_ddos_protection(opts = {})
86
87
  data, _status_code, _headers = enable_product_ddos_protection_with_http_info(opts)
@@ -88,8 +89,9 @@ module Fastly
88
89
  end
89
90
 
90
91
  # Enable product
91
- # Enable the DDoS Protection product on a service in &#39;log&#39; mode.
92
+ # Enable the DDoS Protection product on a service in default &#39;log&#39; mode unless otherwise specified in the request body.
92
93
  # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
94
+ # @option opts [DdosProtectionRequestEnableMode] :ddos_protection_request_enable_mode
93
95
  # @return [Array<(DdosProtectionResponseEnable, Integer, Hash)>] DdosProtectionResponseEnable data, response status code and response headers
94
96
  def enable_product_ddos_protection_with_http_info(opts = {})
95
97
  if @api_client.config.debugging
@@ -111,12 +113,17 @@ module Fastly
111
113
  header_params = opts[:header_params] || {}
112
114
  # HTTP header 'Accept' (if needed)
113
115
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
116
+ # HTTP header 'Content-Type'
117
+ content_type = @api_client.select_header_content_type(['application/json'])
118
+ if !content_type.nil?
119
+ header_params['Content-Type'] = content_type
120
+ end
114
121
 
115
122
  # form parameters
116
123
  form_params = opts[:form_params] || {}
117
124
 
118
125
  # http body (model)
119
- post_body = opts[:debug_body]
126
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'ddos_protection_request_enable_mode'])
120
127
 
121
128
  # return_type
122
129
  return_type = opts[:debug_return_type] || 'DdosProtectionResponseEnable'
@@ -0,0 +1,186 @@
1
+ =begin
2
+ #Fastly API
3
+
4
+ #Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: oss@fastly.com
8
+
9
+ =end
10
+
11
+ require 'cgi'
12
+
13
+ module Fastly
14
+ class ProductDomainResearchApi
15
+ attr_accessor :api_client
16
+
17
+ def initialize(api_client = ApiClient.default)
18
+ @api_client = api_client
19
+ end
20
+ # Disable product
21
+ # Disable the Domain Research product.
22
+ # @return [nil]
23
+ def disable_product_domain_research(opts = {})
24
+ disable_product_domain_research_with_http_info(opts)
25
+ nil
26
+ end
27
+
28
+ # Disable product
29
+ # Disable the Domain Research product.
30
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
31
+ def disable_product_domain_research_with_http_info(opts = {})
32
+ if @api_client.config.debugging
33
+ @api_client.config.logger.debug 'Calling API: ProductDomainResearchApi.disable_product_domain_research ...'
34
+ end
35
+ # unbox the parameters from the hash
36
+ # resource path
37
+ local_var_path = '/enabled-products/v1/domain_research'
38
+
39
+ # query parameters
40
+ query_params = opts[:query_params] || {}
41
+
42
+ # header parameters
43
+ header_params = opts[:header_params] || {}
44
+
45
+ # form parameters
46
+ form_params = opts[:form_params] || {}
47
+
48
+ # http body (model)
49
+ post_body = opts[:debug_body]
50
+
51
+ # return_type
52
+ return_type = opts[:debug_return_type]
53
+
54
+ # auth_names
55
+ auth_names = opts[:debug_auth_names] || ['token']
56
+
57
+ new_options = opts.merge(
58
+ :operation => :"ProductDomainResearchApi.disable_product_domain_research",
59
+ :header_params => header_params,
60
+ :query_params => query_params,
61
+ :form_params => form_params,
62
+ :body => post_body,
63
+ :auth_names => auth_names,
64
+ :return_type => return_type
65
+ )
66
+
67
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
68
+ if @api_client.config.debugging
69
+ @api_client.config.logger.debug "API called: ProductDomainResearchApi#disable_product_domain_research\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
70
+ end
71
+ return data, status_code, headers
72
+ end
73
+
74
+ # Enable product
75
+ # Enable the Domain Research product.
76
+ # @return [DomainResearchResponseBodyEnable]
77
+ def enable_domain_research(opts = {})
78
+ data, _status_code, _headers = enable_domain_research_with_http_info(opts)
79
+ data
80
+ end
81
+
82
+ # Enable product
83
+ # Enable the Domain Research product.
84
+ # @return [Array<(DomainResearchResponseBodyEnable, Integer, Hash)>] DomainResearchResponseBodyEnable data, response status code and response headers
85
+ def enable_domain_research_with_http_info(opts = {})
86
+ if @api_client.config.debugging
87
+ @api_client.config.logger.debug 'Calling API: ProductDomainResearchApi.enable_domain_research ...'
88
+ end
89
+ # unbox the parameters from the hash
90
+ # resource path
91
+ local_var_path = '/enabled-products/v1/domain_research'
92
+
93
+ # query parameters
94
+ query_params = opts[:query_params] || {}
95
+
96
+ # header parameters
97
+ header_params = opts[:header_params] || {}
98
+ # HTTP header 'Accept' (if needed)
99
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
100
+
101
+ # form parameters
102
+ form_params = opts[:form_params] || {}
103
+
104
+ # http body (model)
105
+ post_body = opts[:debug_body]
106
+
107
+ # return_type
108
+ return_type = opts[:debug_return_type] || 'DomainResearchResponseBodyEnable'
109
+
110
+ # auth_names
111
+ auth_names = opts[:debug_auth_names] || ['token']
112
+
113
+ new_options = opts.merge(
114
+ :operation => :"ProductDomainResearchApi.enable_domain_research",
115
+ :header_params => header_params,
116
+ :query_params => query_params,
117
+ :form_params => form_params,
118
+ :body => post_body,
119
+ :auth_names => auth_names,
120
+ :return_type => return_type
121
+ )
122
+
123
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
124
+ if @api_client.config.debugging
125
+ @api_client.config.logger.debug "API called: ProductDomainResearchApi#enable_domain_research\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
126
+ end
127
+ return data, status_code, headers
128
+ end
129
+
130
+ # Get product enablement status
131
+ # Get the enablement status of the Domain Research product.
132
+ # @return [DomainResearchResponseBodyEnable]
133
+ def get_domain_research(opts = {})
134
+ data, _status_code, _headers = get_domain_research_with_http_info(opts)
135
+ data
136
+ end
137
+
138
+ # Get product enablement status
139
+ # Get the enablement status of the Domain Research product.
140
+ # @return [Array<(DomainResearchResponseBodyEnable, Integer, Hash)>] DomainResearchResponseBodyEnable data, response status code and response headers
141
+ def get_domain_research_with_http_info(opts = {})
142
+ if @api_client.config.debugging
143
+ @api_client.config.logger.debug 'Calling API: ProductDomainResearchApi.get_domain_research ...'
144
+ end
145
+ # unbox the parameters from the hash
146
+ # resource path
147
+ local_var_path = '/enabled-products/v1/domain_research'
148
+
149
+ # query parameters
150
+ query_params = opts[:query_params] || {}
151
+
152
+ # header parameters
153
+ header_params = opts[:header_params] || {}
154
+ # HTTP header 'Accept' (if needed)
155
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
156
+
157
+ # form parameters
158
+ form_params = opts[:form_params] || {}
159
+
160
+ # http body (model)
161
+ post_body = opts[:debug_body]
162
+
163
+ # return_type
164
+ return_type = opts[:debug_return_type] || 'DomainResearchResponseBodyEnable'
165
+
166
+ # auth_names
167
+ auth_names = opts[:debug_auth_names] || ['token']
168
+
169
+ new_options = opts.merge(
170
+ :operation => :"ProductDomainResearchApi.get_domain_research",
171
+ :header_params => header_params,
172
+ :query_params => query_params,
173
+ :form_params => form_params,
174
+ :body => post_body,
175
+ :auth_names => auth_names,
176
+ :return_type => return_type
177
+ )
178
+
179
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
180
+ if @api_client.config.debugging
181
+ @api_client.config.logger.debug "API called: ProductDomainResearchApi#get_domain_research\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
182
+ end
183
+ return data, status_code, headers
184
+ end
185
+ end
186
+ end
@@ -265,7 +265,7 @@ module Fastly
265
265
  # @option opts [String] :cursor Cursor value from the &#x60;next_cursor&#x60; field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
266
266
  # @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
267
267
  # @option opts [String] :name Returns a one-element array containing the details for the named secret store.
268
- # @return [InlineResponse2008]
268
+ # @return [InlineResponse20012]
269
269
  def get_secret_stores(opts = {})
270
270
  data, _status_code, _headers = get_secret_stores_with_http_info(opts)
271
271
  data
@@ -276,7 +276,7 @@ module Fastly
276
276
  # @option opts [String] :cursor Cursor value from the &#x60;next_cursor&#x60; field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
277
277
  # @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
278
278
  # @option opts [String] :name Returns a one-element array containing the details for the named secret store.
279
- # @return [Array<(InlineResponse2008, Integer, Hash)>] InlineResponse2008 data, response status code and response headers
279
+ # @return [Array<(InlineResponse20012, Integer, Hash)>] InlineResponse20012 data, response status code and response headers
280
280
  def get_secret_stores_with_http_info(opts = {})
281
281
  if @api_client.config.debugging
282
282
  @api_client.config.logger.debug 'Calling API: SecretStoreApi.get_secret_stores ...'
@@ -303,7 +303,7 @@ module Fastly
303
303
  post_body = opts[:debug_body]
304
304
 
305
305
  # return_type
306
- return_type = opts[:debug_return_type] || 'InlineResponse2008'
306
+ return_type = opts[:debug_return_type] || 'InlineResponse20012'
307
307
 
308
308
  # auth_names
309
309
  auth_names = opts[:debug_auth_names] || ['token']
@@ -230,7 +230,7 @@ module Fastly
230
230
  # @option opts [String] :store_id (required)
231
231
  # @option opts [String] :cursor Cursor value from the &#x60;next_cursor&#x60; field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
232
232
  # @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
233
- # @return [InlineResponse2009]
233
+ # @return [InlineResponse20013]
234
234
  def get_secrets(opts = {})
235
235
  data, _status_code, _headers = get_secrets_with_http_info(opts)
236
236
  data
@@ -241,7 +241,7 @@ module Fastly
241
241
  # @option opts [String] :store_id (required)
242
242
  # @option opts [String] :cursor Cursor value from the &#x60;next_cursor&#x60; field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
243
243
  # @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
244
- # @return [Array<(InlineResponse2009, Integer, Hash)>] InlineResponse2009 data, response status code and response headers
244
+ # @return [Array<(InlineResponse20013, Integer, Hash)>] InlineResponse20013 data, response status code and response headers
245
245
  def get_secrets_with_http_info(opts = {})
246
246
  if @api_client.config.debugging
247
247
  @api_client.config.logger.debug 'Calling API: SecretStoreItemApi.get_secrets ...'
@@ -272,7 +272,7 @@ module Fastly
272
272
  post_body = opts[:debug_body]
273
273
 
274
274
  # return_type
275
- return_type = opts[:debug_return_type] || 'InlineResponse2009'
275
+ return_type = opts[:debug_return_type] || 'InlineResponse20013'
276
276
 
277
277
  # auth_names
278
278
  auth_names = opts[:debug_auth_names] || ['token']
@@ -144,7 +144,7 @@ module Fastly
144
144
  # Delete service authorizations
145
145
  # Delete service authorizations.
146
146
  # @option opts [Hash<String, Object>] :request_body
147
- # @return [InlineResponse20010]
147
+ # @return [InlineResponse20014]
148
148
  def delete_service_authorization2(opts = {})
149
149
  data, _status_code, _headers = delete_service_authorization2_with_http_info(opts)
150
150
  data
@@ -153,7 +153,7 @@ module Fastly
153
153
  # Delete service authorizations
154
154
  # Delete service authorizations.
155
155
  # @option opts [Hash<String, Object>] :request_body
156
- # @return [Array<(InlineResponse20010, Integer, Hash)>] InlineResponse20010 data, response status code and response headers
156
+ # @return [Array<(InlineResponse20014, Integer, Hash)>] InlineResponse20014 data, response status code and response headers
157
157
  def delete_service_authorization2_with_http_info(opts = {})
158
158
  if @api_client.config.debugging
159
159
  @api_client.config.logger.debug 'Calling API: ServiceAuthorizationsApi.delete_service_authorization2 ...'
@@ -182,7 +182,7 @@ module Fastly
182
182
  post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
183
183
 
184
184
  # return_type
185
- return_type = opts[:debug_return_type] || 'InlineResponse20010'
185
+ return_type = opts[:debug_return_type] || 'InlineResponse20014'
186
186
 
187
187
  # auth_names
188
188
  auth_names = opts[:debug_auth_names] || ['token']
@@ -416,6 +416,72 @@ module Fastly
416
416
  description: "No description provided",
417
417
  }
418
418
  ],
419
+ "ApisecurityOperationsApi.api_security_create_operation": [
420
+ {
421
+ url: "https://api.fastly.com",
422
+ description: "No description provided",
423
+ }
424
+ ],
425
+ "ApisecurityOperationsApi.api_security_create_operation_tag": [
426
+ {
427
+ url: "https://api.fastly.com",
428
+ description: "No description provided",
429
+ }
430
+ ],
431
+ "ApisecurityOperationsApi.api_security_delete_operation": [
432
+ {
433
+ url: "https://api.fastly.com",
434
+ description: "No description provided",
435
+ }
436
+ ],
437
+ "ApisecurityOperationsApi.api_security_delete_operation_tag": [
438
+ {
439
+ url: "https://api.fastly.com",
440
+ description: "No description provided",
441
+ }
442
+ ],
443
+ "ApisecurityOperationsApi.api_security_get_operation": [
444
+ {
445
+ url: "https://api.fastly.com",
446
+ description: "No description provided",
447
+ }
448
+ ],
449
+ "ApisecurityOperationsApi.api_security_get_operation_tag": [
450
+ {
451
+ url: "https://api.fastly.com",
452
+ description: "No description provided",
453
+ }
454
+ ],
455
+ "ApisecurityOperationsApi.api_security_list_discovered_operations": [
456
+ {
457
+ url: "https://api.fastly.com",
458
+ description: "No description provided",
459
+ }
460
+ ],
461
+ "ApisecurityOperationsApi.api_security_list_operation_tags": [
462
+ {
463
+ url: "https://api.fastly.com",
464
+ description: "No description provided",
465
+ }
466
+ ],
467
+ "ApisecurityOperationsApi.api_security_list_operations": [
468
+ {
469
+ url: "https://api.fastly.com",
470
+ description: "No description provided",
471
+ }
472
+ ],
473
+ "ApisecurityOperationsApi.api_security_update_operation": [
474
+ {
475
+ url: "https://api.fastly.com",
476
+ description: "No description provided",
477
+ }
478
+ ],
479
+ "ApisecurityOperationsApi.api_security_update_operation_tag": [
480
+ {
481
+ url: "https://api.fastly.com",
482
+ description: "No description provided",
483
+ }
484
+ ],
419
485
  "AutomationTokensApi.create_automation_token": [
420
486
  {
421
487
  url: "https://api.fastly.com",
@@ -1016,6 +1082,18 @@ module Fastly
1016
1082
  description: "No description provided",
1017
1083
  }
1018
1084
  ],
1085
+ "DomainResearchApi.domain_status": [
1086
+ {
1087
+ url: "https://api.fastly.com",
1088
+ description: "No description provided",
1089
+ }
1090
+ ],
1091
+ "DomainResearchApi.suggest_domains": [
1092
+ {
1093
+ url: "https://api.fastly.com",
1094
+ description: "No description provided",
1095
+ }
1096
+ ],
1019
1097
  "EventsApi.get_event": [
1020
1098
  {
1021
1099
  url: "https://api.fastly.com",
@@ -1400,6 +1478,12 @@ module Fastly
1400
1478
  description: "No description provided",
1401
1479
  }
1402
1480
  ],
1481
+ "KvStoreApi.kv_store_put": [
1482
+ {
1483
+ url: "https://api.fastly.com",
1484
+ description: "No description provided",
1485
+ }
1486
+ ],
1403
1487
  "KvStoreItemApi.kv_store_delete_item": [
1404
1488
  {
1405
1489
  url: "https://api.fastly.com",
@@ -2270,6 +2354,12 @@ module Fastly
2270
2354
  description: "No description provided",
2271
2355
  }
2272
2356
  ],
2357
+ "MetricsPlatformApi.get_platform_metrics_service_historical": [
2358
+ {
2359
+ url: "https://api.fastly.com",
2360
+ description: "No description provided",
2361
+ }
2362
+ ],
2273
2363
  "MutualAuthenticationApi.create_mutual_tls_authentication": [
2274
2364
  {
2275
2365
  url: "https://api.fastly.com",
@@ -2600,6 +2690,24 @@ module Fastly
2600
2690
  description: "No description provided",
2601
2691
  }
2602
2692
  ],
2693
+ "ProductDomainResearchApi.disable_product_domain_research": [
2694
+ {
2695
+ url: "https://api.fastly.com",
2696
+ description: "No description provided",
2697
+ }
2698
+ ],
2699
+ "ProductDomainResearchApi.enable_domain_research": [
2700
+ {
2701
+ url: "https://api.fastly.com",
2702
+ description: "No description provided",
2703
+ }
2704
+ ],
2705
+ "ProductDomainResearchApi.get_domain_research": [
2706
+ {
2707
+ url: "https://api.fastly.com",
2708
+ description: "No description provided",
2709
+ }
2710
+ ],
2603
2711
  "ProductFanoutApi.disable_product_fanout": [
2604
2712
  {
2605
2713
  url: "https://api.fastly.com",
@@ -34,6 +34,9 @@ module Fastly
34
34
  # Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthetic `503` response will be presented instead. May be set at runtime using `bereq.first_byte_timeout`.
35
35
  attr_accessor :first_byte_timeout
36
36
 
37
+ # Maximum duration in milliseconds to wait for the entire response to be received after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthetic `503` response will be presented instead. May be set at runtime using `bereq.fetch_timeout`.
38
+ attr_accessor :fetch_timeout
39
+
37
40
  # The name of the healthcheck to use with this backend.
38
41
  attr_accessor :healthcheck
39
42
 
@@ -131,6 +134,7 @@ module Fastly
131
134
  :'comment' => :'comment',
132
135
  :'connect_timeout' => :'connect_timeout',
133
136
  :'first_byte_timeout' => :'first_byte_timeout',
137
+ :'fetch_timeout' => :'fetch_timeout',
134
138
  :'healthcheck' => :'healthcheck',
135
139
  :'hostname' => :'hostname',
136
140
  :'ipv4' => :'ipv4',
@@ -178,6 +182,7 @@ module Fastly
178
182
  :'comment' => :'String',
179
183
  :'connect_timeout' => :'Integer',
180
184
  :'first_byte_timeout' => :'Integer',
185
+ :'fetch_timeout' => :'Integer',
181
186
  :'healthcheck' => :'String',
182
187
  :'hostname' => :'String',
183
188
  :'ipv4' => :'String',
@@ -283,6 +288,10 @@ module Fastly
283
288
  self.first_byte_timeout = attributes[:'first_byte_timeout']
284
289
  end
285
290
 
291
+ if attributes.key?(:'fetch_timeout')
292
+ self.fetch_timeout = attributes[:'fetch_timeout']
293
+ end
294
+
286
295
  if attributes.key?(:'healthcheck')
287
296
  self.healthcheck = attributes[:'healthcheck']
288
297
  end
@@ -450,6 +459,7 @@ module Fastly
450
459
  comment == o.comment &&
451
460
  connect_timeout == o.connect_timeout &&
452
461
  first_byte_timeout == o.first_byte_timeout &&
462
+ fetch_timeout == o.fetch_timeout &&
453
463
  healthcheck == o.healthcheck &&
454
464
  hostname == o.hostname &&
455
465
  ipv4 == o.ipv4 &&
@@ -490,7 +500,7 @@ module Fastly
490
500
  # Calculates hash code according to all attributes.
491
501
  # @return [Integer] Hash code
492
502
  def hash
493
- [address, auto_loadbalance, between_bytes_timeout, client_cert, comment, connect_timeout, first_byte_timeout, healthcheck, hostname, ipv4, ipv6, keepalive_time, max_conn, max_tls_version, min_tls_version, name, override_host, port, prefer_ipv6, request_condition, share_key, shield, ssl_ca_cert, ssl_cert_hostname, ssl_check_cert, ssl_ciphers, ssl_client_cert, ssl_client_key, ssl_hostname, ssl_sni_hostname, tcp_keepalive_enable, tcp_keepalive_interval, tcp_keepalive_probes, tcp_keepalive_time, use_ssl, weight].hash
503
+ [address, auto_loadbalance, between_bytes_timeout, client_cert, comment, connect_timeout, first_byte_timeout, fetch_timeout, healthcheck, hostname, ipv4, ipv6, keepalive_time, max_conn, max_tls_version, min_tls_version, name, override_host, port, prefer_ipv6, request_condition, share_key, shield, ssl_ca_cert, ssl_cert_hostname, ssl_check_cert, ssl_ciphers, ssl_client_cert, ssl_client_key, ssl_hostname, ssl_sni_hostname, tcp_keepalive_enable, tcp_keepalive_interval, tcp_keepalive_probes, tcp_keepalive_time, use_ssl, weight].hash
494
504
  end
495
505
 
496
506
  # Builds the object from hash