fastly 15.0.0 → 15.1.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/Gemfile.lock +1 -1
- data/README.md +10 -3
- data/docs/DdosProtectionEvent.md +2 -0
- data/docs/DdosProtectionEventAllOf.md +2 -0
- data/docs/DdosProtectionRequestEnableMode.md +10 -0
- data/docs/DomainInspectorHistoricalApi.md +1 -1
- data/docs/DomainResearchApi.md +103 -0
- data/docs/DomainResearchResponseBodyEnable.md +12 -0
- data/docs/DomainResearchResponseCustomer.md +10 -0
- data/docs/DomainResearchResponseLinks.md +10 -0
- data/docs/DomainResearchResponseLinksLinks.md +10 -0
- data/docs/DomainResearchResponseProduct.md +10 -0
- data/docs/DomainResearchResponseProductProduct.md +11 -0
- data/docs/IamV1RoleResponse.md +1 -0
- data/docs/InlineResponse20010.md +2 -1
- data/docs/InlineResponse20011.md +10 -0
- data/docs/InlineResponse2006.md +1 -2
- data/docs/InlineResponse2007.md +1 -1
- data/docs/InlineResponse2008.md +1 -1
- data/docs/InlineResponse2009.md +1 -1
- data/docs/KvStoreApi.md +43 -4
- data/docs/KvStoreDetails.md +2 -0
- data/docs/KvStoreItemApi.md +2 -2
- data/docs/{KvStoreRequestCreate.md → KvStoreRequestCreateOrUpdate.md} +1 -1
- data/docs/MetricsPlatformApi.md +75 -0
- data/docs/NgwafRequestEnable.md +1 -0
- data/docs/Offer.md +12 -0
- data/docs/OfferAllOf.md +12 -0
- data/docs/OriginInspectorHistoricalApi.md +1 -1
- data/docs/PlatformMetadata.md +14 -0
- data/docs/PlatformMetricsResponse.md +11 -0
- data/docs/PlatformValues.md +25 -0
- data/docs/ProductDdosProtectionApi.md +3 -1
- data/docs/ProductDomainResearchApi.md +115 -0
- data/docs/RealtimeEntryAggregated.md +4 -0
- data/docs/RealtimeMeasurements.md +4 -0
- data/docs/Results.md +4 -0
- data/docs/SecretStoreApi.md +2 -2
- data/docs/SecretStoreItemApi.md +2 -2
- data/docs/ServiceAuthorizationsApi.md +2 -2
- data/docs/Status.md +15 -0
- data/docs/StatusAllOf.md +15 -0
- data/docs/Suggestion.md +13 -0
- data/docs/SuggestionAllOf.md +13 -0
- data/lib/fastly/api/domain_inspector_historical_api.rb +1 -1
- data/lib/fastly/api/domain_research_api.rb +163 -0
- data/lib/fastly/api/kv_store_api.rb +74 -6
- data/lib/fastly/api/kv_store_item_api.rb +3 -3
- data/lib/fastly/api/metrics_platform_api.rb +134 -0
- data/lib/fastly/api/origin_inspector_historical_api.rb +1 -1
- data/lib/fastly/api/product_ddos_protection_api.rb +10 -3
- data/lib/fastly/api/product_domain_research_api.rb +186 -0
- data/lib/fastly/api/secret_store_api.rb +3 -3
- data/lib/fastly/api/secret_store_item_api.rb +3 -3
- data/lib/fastly/api/service_authorizations_api.rb +3 -3
- data/lib/fastly/configuration.rb +42 -0
- data/lib/fastly/models/ddos_protection_event.rb +21 -1
- data/lib/fastly/models/ddos_protection_event_all_of.rb +21 -1
- data/lib/fastly/models/ddos_protection_request_enable_mode.rb +251 -0
- data/lib/fastly/models/domain_research_response_body_enable.rb +243 -0
- data/lib/fastly/models/domain_research_response_customer.rb +216 -0
- data/lib/fastly/models/domain_research_response_links.rb +216 -0
- data/lib/fastly/models/domain_research_response_links_links.rb +217 -0
- data/lib/fastly/models/domain_research_response_product.rb +216 -0
- data/lib/fastly/models/domain_research_response_product_product.rb +227 -0
- data/lib/fastly/models/iam_v1_role_response.rb +10 -1
- data/lib/fastly/models/inline_response20010.rb +13 -4
- data/lib/fastly/models/inline_response20011.rb +218 -0
- data/lib/fastly/models/inline_response2006.rb +8 -17
- data/lib/fastly/models/inline_response2007.rb +1 -1
- data/lib/fastly/models/inline_response2008.rb +1 -1
- data/lib/fastly/models/inline_response2009.rb +1 -1
- data/lib/fastly/models/kv_store_details.rb +24 -4
- data/lib/fastly/models/{kv_store_request_create.rb → kv_store_request_create_or_update.rb} +3 -3
- data/lib/fastly/models/ngwaf_request_enable.rb +14 -4
- data/lib/fastly/models/offer.rb +245 -0
- data/lib/fastly/models/offer_all_of.rb +237 -0
- data/lib/fastly/models/platform_metadata.rb +258 -0
- data/lib/fastly/models/platform_metrics_response.rb +228 -0
- data/lib/fastly/models/platform_values.rb +368 -0
- data/lib/fastly/models/realtime_entry_aggregated.rb +44 -4
- data/lib/fastly/models/realtime_measurements.rb +44 -4
- data/lib/fastly/models/results.rb +41 -1
- data/lib/fastly/models/status.rb +276 -0
- data/lib/fastly/models/status_all_of.rb +268 -0
- data/lib/fastly/models/suggestion.rb +255 -0
- data/lib/fastly/models/suggestion_all_of.rb +247 -0
- data/lib/fastly/version.rb +1 -1
- data/lib/fastly.rb +21 -1
- data/sig.json +1 -1
- metadata +44 -4
|
@@ -168,7 +168,7 @@ module Fastly
|
|
|
168
168
|
# @option opts [Integer] :limit (default to 100)
|
|
169
169
|
# @option opts [String] :prefix
|
|
170
170
|
# @option opts [String] :consistency (default to 'strong')
|
|
171
|
-
# @return [
|
|
171
|
+
# @return [InlineResponse2008]
|
|
172
172
|
def kv_store_list_item_keys(opts = {})
|
|
173
173
|
data, _status_code, _headers = kv_store_list_item_keys_with_http_info(opts)
|
|
174
174
|
data
|
|
@@ -181,7 +181,7 @@ module Fastly
|
|
|
181
181
|
# @option opts [Integer] :limit (default to 100)
|
|
182
182
|
# @option opts [String] :prefix
|
|
183
183
|
# @option opts [String] :consistency (default to 'strong')
|
|
184
|
-
# @return [Array<(
|
|
184
|
+
# @return [Array<(InlineResponse2008, Integer, Hash)>] InlineResponse2008 data, response status code and response headers
|
|
185
185
|
def kv_store_list_item_keys_with_http_info(opts = {})
|
|
186
186
|
if @api_client.config.debugging
|
|
187
187
|
@api_client.config.logger.debug 'Calling API: KvStoreItemApi.kv_store_list_item_keys ...'
|
|
@@ -222,7 +222,7 @@ module Fastly
|
|
|
222
222
|
post_body = opts[:debug_body]
|
|
223
223
|
|
|
224
224
|
# return_type
|
|
225
|
-
return_type = opts[:debug_return_type] || '
|
|
225
|
+
return_type = opts[:debug_return_type] || 'InlineResponse2008'
|
|
226
226
|
|
|
227
227
|
# auth_names
|
|
228
228
|
auth_names = opts[:debug_auth_names] || ['token']
|
|
@@ -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 = ["
|
|
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 'log' mode.
|
|
92
|
+
# Enable the DDoS Protection product on a service in default 'log' 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 `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
|
|
266
266
|
# @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
|
|
267
267
|
# @option opts [String] :name Returns a one-element array containing the details for the named secret store.
|
|
268
|
-
# @return [
|
|
268
|
+
# @return [InlineResponse2009]
|
|
269
269
|
def get_secret_stores(opts = {})
|
|
270
270
|
data, _status_code, _headers = get_secret_stores_with_http_info(opts)
|
|
271
271
|
data
|
|
@@ -276,7 +276,7 @@ module Fastly
|
|
|
276
276
|
# @option opts [String] :cursor Cursor value from the `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
|
|
277
277
|
# @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
|
|
278
278
|
# @option opts [String] :name Returns a one-element array containing the details for the named secret store.
|
|
279
|
-
# @return [Array<(
|
|
279
|
+
# @return [Array<(InlineResponse2009, Integer, Hash)>] InlineResponse2009 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] || '
|
|
306
|
+
return_type = opts[:debug_return_type] || 'InlineResponse2009'
|
|
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 `next_cursor` 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 [
|
|
233
|
+
# @return [InlineResponse20010]
|
|
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 `next_cursor` 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<(
|
|
244
|
+
# @return [Array<(InlineResponse20010, Integer, Hash)>] InlineResponse20010 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] || '
|
|
275
|
+
return_type = opts[:debug_return_type] || 'InlineResponse20010'
|
|
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 [
|
|
147
|
+
# @return [InlineResponse20011]
|
|
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<(
|
|
156
|
+
# @return [Array<(InlineResponse20011, Integer, Hash)>] InlineResponse20011 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] || '
|
|
185
|
+
return_type = opts[:debug_return_type] || 'InlineResponse20011'
|
|
186
186
|
|
|
187
187
|
# auth_names
|
|
188
188
|
auth_names = opts[:debug_auth_names] || ['token']
|
data/lib/fastly/configuration.rb
CHANGED
|
@@ -1016,6 +1016,18 @@ module Fastly
|
|
|
1016
1016
|
description: "No description provided",
|
|
1017
1017
|
}
|
|
1018
1018
|
],
|
|
1019
|
+
"DomainResearchApi.domain_status": [
|
|
1020
|
+
{
|
|
1021
|
+
url: "https://api.fastly.com",
|
|
1022
|
+
description: "No description provided",
|
|
1023
|
+
}
|
|
1024
|
+
],
|
|
1025
|
+
"DomainResearchApi.suggest_domains": [
|
|
1026
|
+
{
|
|
1027
|
+
url: "https://api.fastly.com",
|
|
1028
|
+
description: "No description provided",
|
|
1029
|
+
}
|
|
1030
|
+
],
|
|
1019
1031
|
"EventsApi.get_event": [
|
|
1020
1032
|
{
|
|
1021
1033
|
url: "https://api.fastly.com",
|
|
@@ -1400,6 +1412,12 @@ module Fastly
|
|
|
1400
1412
|
description: "No description provided",
|
|
1401
1413
|
}
|
|
1402
1414
|
],
|
|
1415
|
+
"KvStoreApi.kv_store_put": [
|
|
1416
|
+
{
|
|
1417
|
+
url: "https://api.fastly.com",
|
|
1418
|
+
description: "No description provided",
|
|
1419
|
+
}
|
|
1420
|
+
],
|
|
1403
1421
|
"KvStoreItemApi.kv_store_delete_item": [
|
|
1404
1422
|
{
|
|
1405
1423
|
url: "https://api.fastly.com",
|
|
@@ -2270,6 +2288,12 @@ module Fastly
|
|
|
2270
2288
|
description: "No description provided",
|
|
2271
2289
|
}
|
|
2272
2290
|
],
|
|
2291
|
+
"MetricsPlatformApi.get_platform_metrics_service_historical": [
|
|
2292
|
+
{
|
|
2293
|
+
url: "https://api.fastly.com",
|
|
2294
|
+
description: "No description provided",
|
|
2295
|
+
}
|
|
2296
|
+
],
|
|
2273
2297
|
"MutualAuthenticationApi.create_mutual_tls_authentication": [
|
|
2274
2298
|
{
|
|
2275
2299
|
url: "https://api.fastly.com",
|
|
@@ -2600,6 +2624,24 @@ module Fastly
|
|
|
2600
2624
|
description: "No description provided",
|
|
2601
2625
|
}
|
|
2602
2626
|
],
|
|
2627
|
+
"ProductDomainResearchApi.disable_product_domain_research": [
|
|
2628
|
+
{
|
|
2629
|
+
url: "https://api.fastly.com",
|
|
2630
|
+
description: "No description provided",
|
|
2631
|
+
}
|
|
2632
|
+
],
|
|
2633
|
+
"ProductDomainResearchApi.enable_domain_research": [
|
|
2634
|
+
{
|
|
2635
|
+
url: "https://api.fastly.com",
|
|
2636
|
+
description: "No description provided",
|
|
2637
|
+
}
|
|
2638
|
+
],
|
|
2639
|
+
"ProductDomainResearchApi.get_domain_research": [
|
|
2640
|
+
{
|
|
2641
|
+
url: "https://api.fastly.com",
|
|
2642
|
+
description: "No description provided",
|
|
2643
|
+
}
|
|
2644
|
+
],
|
|
2603
2645
|
"ProductFanoutApi.disable_product_fanout": [
|
|
2604
2646
|
{
|
|
2605
2647
|
url: "https://api.fastly.com",
|
|
@@ -25,6 +25,12 @@ module Fastly
|
|
|
25
25
|
# A human-readable name for the event.
|
|
26
26
|
attr_accessor :name
|
|
27
27
|
|
|
28
|
+
# Number of requests classified as non-attack traffic for an event.
|
|
29
|
+
attr_accessor :requests_allowed
|
|
30
|
+
|
|
31
|
+
# Number of requests classified as DDoS attack traffic for an event.
|
|
32
|
+
attr_accessor :requests_detected
|
|
33
|
+
|
|
28
34
|
# Alphanumeric string identifying the customer.
|
|
29
35
|
attr_accessor :customer_id
|
|
30
36
|
|
|
@@ -44,6 +50,8 @@ module Fastly
|
|
|
44
50
|
:'updated_at' => :'updated_at',
|
|
45
51
|
:'id' => :'id',
|
|
46
52
|
:'name' => :'name',
|
|
53
|
+
:'requests_allowed' => :'requests_allowed',
|
|
54
|
+
:'requests_detected' => :'requests_detected',
|
|
47
55
|
:'customer_id' => :'customer_id',
|
|
48
56
|
:'service_id' => :'service_id',
|
|
49
57
|
:'started_at' => :'started_at',
|
|
@@ -63,6 +71,8 @@ module Fastly
|
|
|
63
71
|
:'updated_at' => :'Time',
|
|
64
72
|
:'id' => :'String',
|
|
65
73
|
:'name' => :'String',
|
|
74
|
+
:'requests_allowed' => :'Integer',
|
|
75
|
+
:'requests_detected' => :'Integer',
|
|
66
76
|
:'customer_id' => :'String',
|
|
67
77
|
:'service_id' => :'String',
|
|
68
78
|
:'started_at' => :'Time',
|
|
@@ -119,6 +129,14 @@ module Fastly
|
|
|
119
129
|
self.name = attributes[:'name']
|
|
120
130
|
end
|
|
121
131
|
|
|
132
|
+
if attributes.key?(:'requests_allowed')
|
|
133
|
+
self.requests_allowed = attributes[:'requests_allowed']
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
if attributes.key?(:'requests_detected')
|
|
137
|
+
self.requests_detected = attributes[:'requests_detected']
|
|
138
|
+
end
|
|
139
|
+
|
|
122
140
|
if attributes.key?(:'customer_id')
|
|
123
141
|
self.customer_id = attributes[:'customer_id']
|
|
124
142
|
end
|
|
@@ -158,6 +176,8 @@ module Fastly
|
|
|
158
176
|
updated_at == o.updated_at &&
|
|
159
177
|
id == o.id &&
|
|
160
178
|
name == o.name &&
|
|
179
|
+
requests_allowed == o.requests_allowed &&
|
|
180
|
+
requests_detected == o.requests_detected &&
|
|
161
181
|
customer_id == o.customer_id &&
|
|
162
182
|
service_id == o.service_id &&
|
|
163
183
|
started_at == o.started_at &&
|
|
@@ -173,7 +193,7 @@ module Fastly
|
|
|
173
193
|
# Calculates hash code according to all attributes.
|
|
174
194
|
# @return [Integer] Hash code
|
|
175
195
|
def hash
|
|
176
|
-
[created_at, updated_at, id, name, customer_id, service_id, started_at, ended_at].hash
|
|
196
|
+
[created_at, updated_at, id, name, requests_allowed, requests_detected, customer_id, service_id, started_at, ended_at].hash
|
|
177
197
|
end
|
|
178
198
|
|
|
179
199
|
# Builds the object from hash
|