fastly 14.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 +45 -0
- data/Gemfile.lock +1 -1
- data/README.md +22 -13
- data/docs/ApiDiscoveryResponseBodyGetAllServices.md +13 -0
- data/docs/ApiDiscoveryResponseCustomer.md +10 -0
- data/docs/ApiDiscoveryResponseCustomerCustomer.md +11 -0
- data/docs/ApiDiscoveryResponseEnable.md +12 -0
- data/docs/ApiDiscoveryResponseEnabledServices.md +10 -0
- data/docs/ApiDiscoveryResponseLinks.md +10 -0
- data/docs/ApiDiscoveryResponseLinksGetAllServices.md +10 -0
- data/docs/ApiDiscoveryResponseLinksGetAllServicesLinks.md +10 -0
- data/docs/ApiDiscoveryResponseLinksLinks.md +10 -0
- data/docs/ApiDiscoveryResponseProduct.md +10 -0
- data/docs/ApiDiscoveryResponseProductProduct.md +11 -0
- data/docs/ApiDiscoveryResponseService.md +10 -0
- data/docs/{BotManagementResponseServiceService.md → ApiDiscoveryResponseServiceService.md} +1 -1
- data/docs/BotManagementResponseBodyEnable.md +1 -1
- data/docs/BotManagementResponseService.md +1 -1
- data/docs/BrotliCompressionResponseBodyEnable.md +1 -1
- data/docs/BrotliCompressionResponseService.md +1 -1
- data/docs/DdosProtectionApi.md +2 -0
- data/docs/DdosProtectionEvent.md +2 -0
- data/docs/DdosProtectionEventAllOf.md +2 -0
- data/docs/DdosProtectionRequestEnableMode.md +10 -0
- data/docs/DdosProtectionResponseConfigure.md +1 -1
- data/docs/DdosProtectionResponseEnable.md +1 -1
- data/docs/DdosProtectionResponseService.md +1 -1
- data/docs/DdosProtectionRuleWithStats.md +23 -0
- data/docs/DdosProtectionRuleWithStatsAllOf.md +10 -0
- data/docs/DdosProtectionTrafficStats.md +1 -0
- data/docs/DdosProtectionTrafficStatsAllOf.md +1 -0
- data/docs/DmDomainsApi.md +220 -0
- data/docs/DomainInspectorHistoricalApi.md +1 -1
- data/docs/DomainInspectorResponseBodyEnable.md +1 -1
- data/docs/DomainInspectorResponseService.md +1 -1
- data/docs/DomainOwnershipsApi.md +2 -2
- 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/FanoutResponseBodyEnable.md +1 -1
- data/docs/FanoutResponseService.md +1 -1
- data/docs/Healthcheck.md +1 -1
- data/docs/HealthcheckApi.md +4 -4
- data/docs/HealthcheckResponse.md +1 -1
- data/docs/IamRolesApi.md +23 -253
- data/docs/IamV1RoleListResponse.md +12 -0
- data/docs/IamV1RoleResponse.md +14 -0
- data/docs/ImageOptimizerResponseBodyEnable.md +1 -1
- data/docs/ImageOptimizerResponseService.md +1 -1
- data/docs/InlineResponse20010.md +11 -0
- data/docs/InlineResponse20011.md +10 -0
- data/docs/InlineResponse2003.md +2 -2
- data/docs/InlineResponse2004.md +2 -1
- data/docs/InlineResponse2005.md +1 -2
- data/docs/InlineResponse2006.md +1 -2
- data/docs/InlineResponse2007.md +1 -1
- data/docs/InlineResponse2008.md +1 -1
- data/docs/InlineResponse2009.md +2 -1
- data/docs/InvitationDataAttributes.md +1 -0
- 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/LogExplorerInsightsResponseBodyEnable.md +1 -1
- data/docs/LogExplorerInsightsResponseService.md +1 -1
- data/docs/LoggingHttpsAdditional.md +1 -0
- data/docs/LoggingHttpsApi.md +4 -0
- data/docs/LoggingHttpsResponse.md +1 -0
- data/docs/MetricsPlatformApi.md +75 -0
- data/docs/NgwafRequestEnable.md +1 -0
- data/docs/NgwafResponseConfigure.md +1 -1
- data/docs/NgwafResponseEnable.md +1 -1
- data/docs/NgwafResponseService.md +1 -1
- data/docs/Offer.md +12 -0
- data/docs/OfferAllOf.md +12 -0
- data/docs/OriginInspectorHistoricalApi.md +1 -1
- data/docs/OriginInspectorResponseBodyEnable.md +1 -1
- data/docs/OriginInspectorResponseService.md +1 -1
- data/docs/PlatformMetadata.md +14 -0
- data/docs/PlatformMetricsResponse.md +11 -0
- data/docs/PlatformValues.md +25 -0
- data/docs/ProductApiDiscoveryApi.md +163 -0
- data/docs/ProductDdosProtectionApi.md +3 -1
- data/docs/ProductDomainResearchApi.md +115 -0
- data/docs/RealtimeEntryAggregated.md +5 -0
- data/docs/RealtimeMeasurements.md +5 -0
- data/docs/RequestBodyForCreate.md +12 -0
- data/docs/RequestBodyForUpdate.md +11 -0
- data/docs/Results.md +5 -0
- data/docs/SchemasUserResponse.md +1 -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/SuccessfulResponseAsObject.md +17 -0
- data/docs/SuccessfulResponseAsObjectAllOf.md +15 -0
- data/docs/Suggestion.md +13 -0
- data/docs/SuggestionAllOf.md +13 -0
- data/docs/User.md +1 -0
- data/docs/UserApi.md +4 -0
- data/docs/UserResponse.md +1 -0
- data/docs/WebsocketsResponseBodyEnable.md +1 -1
- data/docs/WebsocketsResponseService.md +1 -1
- data/lib/fastly/api/ddos_protection_api.rb +3 -0
- data/lib/fastly/api/dm_domains_api.rb +362 -0
- data/lib/fastly/api/domain_inspector_historical_api.rb +1 -1
- data/lib/fastly/api/domain_ownerships_api.rb +3 -3
- data/lib/fastly/api/domain_research_api.rb +163 -0
- data/lib/fastly/api/healthcheck_api.rb +20 -4
- data/lib/fastly/api/iam_roles_api.rb +43 -435
- 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/logging_https_api.rb +6 -0
- 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_api_discovery_api.rb +263 -0
- 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/api/user_api.rb +6 -0
- data/lib/fastly/configuration.rb +98 -38
- data/lib/fastly/models/api_discovery_response_body_get_all_services.rb +256 -0
- data/lib/fastly/models/api_discovery_response_customer.rb +216 -0
- data/lib/fastly/models/api_discovery_response_customer_customer.rb +227 -0
- data/lib/fastly/models/api_discovery_response_enable.rb +243 -0
- data/lib/fastly/models/api_discovery_response_enabled_services.rb +219 -0
- data/lib/fastly/models/api_discovery_response_links.rb +216 -0
- data/lib/fastly/models/api_discovery_response_links_get_all_services.rb +216 -0
- data/lib/fastly/models/api_discovery_response_links_get_all_services_links.rb +217 -0
- data/lib/fastly/models/api_discovery_response_links_links.rb +217 -0
- data/lib/fastly/models/api_discovery_response_product.rb +216 -0
- data/lib/fastly/models/api_discovery_response_product_product.rb +227 -0
- data/lib/fastly/models/api_discovery_response_service.rb +216 -0
- data/lib/fastly/models/{bot_management_response_service_service.rb → api_discovery_response_service_service.rb} +3 -3
- data/lib/fastly/models/bot_management_response_body_enable.rb +1 -1
- data/lib/fastly/models/bot_management_response_service.rb +1 -1
- data/lib/fastly/models/brotli_compression_response_body_enable.rb +1 -1
- data/lib/fastly/models/brotli_compression_response_service.rb +1 -1
- 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/ddos_protection_response_configure.rb +1 -1
- data/lib/fastly/models/ddos_protection_response_enable.rb +1 -1
- data/lib/fastly/models/ddos_protection_response_service.rb +1 -1
- data/lib/fastly/models/ddos_protection_rule_with_stats.rb +365 -0
- data/lib/fastly/models/ddos_protection_rule_with_stats_all_of.rb +216 -0
- data/lib/fastly/models/ddos_protection_traffic_stats.rb +20 -4
- data/lib/fastly/models/ddos_protection_traffic_stats_all_of.rb +20 -4
- data/lib/fastly/models/domain_inspector_response_body_enable.rb +1 -1
- data/lib/fastly/models/domain_inspector_response_service.rb +1 -1
- 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/fanout_response_body_enable.rb +1 -1
- data/lib/fastly/models/fanout_response_service.rb +1 -1
- data/lib/fastly/models/healthcheck.rb +25 -1
- data/lib/fastly/models/healthcheck_response.rb +25 -1
- data/lib/fastly/models/iam_v1_role_list_response.rb +240 -0
- data/lib/fastly/models/{iam_role_all_of.rb → iam_v1_role_response.rb} +23 -34
- data/lib/fastly/models/image_optimizer_response_body_enable.rb +1 -1
- data/lib/fastly/models/image_optimizer_response_service.rb +1 -1
- data/lib/fastly/models/inline_response20010.rb +227 -0
- data/lib/fastly/models/inline_response20011.rb +218 -0
- data/lib/fastly/models/inline_response2003.rb +11 -1
- data/lib/fastly/models/inline_response2004.rb +20 -8
- data/lib/fastly/models/inline_response2005.rb +8 -18
- 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 +13 -4
- data/lib/fastly/models/invitation_data_attributes.rb +12 -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/log_explorer_insights_response_body_enable.rb +1 -1
- data/lib/fastly/models/log_explorer_insights_response_service.rb +1 -1
- data/lib/fastly/models/logging_https_additional.rb +16 -4
- data/lib/fastly/models/logging_https_response.rb +13 -1
- data/lib/fastly/models/ngwaf_request_enable.rb +14 -4
- data/lib/fastly/models/ngwaf_response_configure.rb +1 -1
- data/lib/fastly/models/ngwaf_response_enable.rb +1 -1
- data/lib/fastly/models/ngwaf_response_service.rb +1 -1
- data/lib/fastly/models/offer.rb +245 -0
- data/lib/fastly/models/offer_all_of.rb +237 -0
- data/lib/fastly/models/origin_inspector_response_body_enable.rb +1 -1
- data/lib/fastly/models/origin_inspector_response_service.rb +1 -1
- 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 +54 -4
- data/lib/fastly/models/realtime_measurements.rb +54 -4
- data/lib/fastly/models/request_body_for_create.rb +244 -0
- data/lib/fastly/models/request_body_for_update.rb +229 -0
- data/lib/fastly/models/results.rb +51 -1
- data/lib/fastly/models/role_user.rb +2 -0
- data/lib/fastly/models/schemas_user_response.rb +13 -1
- data/lib/fastly/models/status.rb +276 -0
- data/lib/fastly/models/status_all_of.rb +268 -0
- data/lib/fastly/models/{iam_role.rb → successful_response_as_object.rb} +37 -35
- data/lib/fastly/models/successful_response_as_object_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/models/user.rb +13 -1
- data/lib/fastly/models/user_response.rb +13 -1
- data/lib/fastly/models/websockets_response_body_enable.rb +1 -1
- data/lib/fastly/models/websockets_response_service.rb +1 -1
- data/lib/fastly/version.rb +1 -1
- data/lib/fastly.rb +45 -4
- data/sig.json +1 -1
- metadata +92 -10
- data/docs/IamRole.md +0 -17
- data/docs/IamRoleAllOf.md +0 -15
|
@@ -0,0 +1,163 @@
|
|
|
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 DomainResearchApi
|
|
15
|
+
attr_accessor :api_client
|
|
16
|
+
|
|
17
|
+
def initialize(api_client = ApiClient.default)
|
|
18
|
+
@api_client = api_client
|
|
19
|
+
end
|
|
20
|
+
# Domain status
|
|
21
|
+
# The `Status` method checks the availability status of a single domain name.
|
|
22
|
+
# @option opts [String] :domain (required)
|
|
23
|
+
# @option opts [String] :scope
|
|
24
|
+
# @return [Status]
|
|
25
|
+
def domain_status(opts = {})
|
|
26
|
+
data, _status_code, _headers = domain_status_with_http_info(opts)
|
|
27
|
+
data
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Domain status
|
|
31
|
+
# The `Status` method checks the availability status of a single domain name.
|
|
32
|
+
# @option opts [String] :domain (required)
|
|
33
|
+
# @option opts [String] :scope
|
|
34
|
+
# @return [Array<(Status, Integer, Hash)>] Status data, response status code and response headers
|
|
35
|
+
def domain_status_with_http_info(opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: DomainResearchApi.domain_status ...'
|
|
38
|
+
end
|
|
39
|
+
# unbox the parameters from the hash
|
|
40
|
+
domain = opts[:'domain']
|
|
41
|
+
# verify the required parameter 'domain' is set
|
|
42
|
+
if @api_client.config.client_side_validation && domain.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'domain' when calling DomainResearchApi.domain_status"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/domain-management/v1/tools/status'
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
query_params[:'domain'] = domain
|
|
51
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
52
|
+
|
|
53
|
+
# header parameters
|
|
54
|
+
header_params = opts[:header_params] || {}
|
|
55
|
+
# HTTP header 'Accept' (if needed)
|
|
56
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
57
|
+
|
|
58
|
+
# form parameters
|
|
59
|
+
form_params = opts[:form_params] || {}
|
|
60
|
+
|
|
61
|
+
# http body (model)
|
|
62
|
+
post_body = opts[:debug_body]
|
|
63
|
+
|
|
64
|
+
# return_type
|
|
65
|
+
return_type = opts[:debug_return_type] || 'Status'
|
|
66
|
+
|
|
67
|
+
# auth_names
|
|
68
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
|
69
|
+
|
|
70
|
+
new_options = opts.merge(
|
|
71
|
+
:operation => :"DomainResearchApi.domain_status",
|
|
72
|
+
:header_params => header_params,
|
|
73
|
+
:query_params => query_params,
|
|
74
|
+
:form_params => form_params,
|
|
75
|
+
:body => post_body,
|
|
76
|
+
:auth_names => auth_names,
|
|
77
|
+
:return_type => return_type
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
81
|
+
if @api_client.config.debugging
|
|
82
|
+
@api_client.config.logger.debug "API called: DomainResearchApi#domain_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
83
|
+
end
|
|
84
|
+
return data, status_code, headers
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Suggest domains
|
|
88
|
+
# The `Suggest` method performs a real-time query of the search term(s) against the [known zone database](http://zonedb.org), making recommendations, stemming, and applying Unicode folding, IDN normalization, registrar supported-zone restrictions, and other refinements. **Note:** `Suggest` method responses do not include domain availability status.
|
|
89
|
+
# @option opts [String] :query (required)
|
|
90
|
+
# @option opts [String] :defaults
|
|
91
|
+
# @option opts [String] :keywords
|
|
92
|
+
# @option opts [String] :location
|
|
93
|
+
# @option opts [String] :vendor
|
|
94
|
+
# @return [InlineResponse2006]
|
|
95
|
+
def suggest_domains(opts = {})
|
|
96
|
+
data, _status_code, _headers = suggest_domains_with_http_info(opts)
|
|
97
|
+
data
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Suggest domains
|
|
101
|
+
# The `Suggest` method performs a real-time query of the search term(s) against the [known zone database](http://zonedb.org), making recommendations, stemming, and applying Unicode folding, IDN normalization, registrar supported-zone restrictions, and other refinements. **Note:** `Suggest` method responses do not include domain availability status.
|
|
102
|
+
# @option opts [String] :query (required)
|
|
103
|
+
# @option opts [String] :defaults
|
|
104
|
+
# @option opts [String] :keywords
|
|
105
|
+
# @option opts [String] :location
|
|
106
|
+
# @option opts [String] :vendor
|
|
107
|
+
# @return [Array<(InlineResponse2006, Integer, Hash)>] InlineResponse2006 data, response status code and response headers
|
|
108
|
+
def suggest_domains_with_http_info(opts = {})
|
|
109
|
+
if @api_client.config.debugging
|
|
110
|
+
@api_client.config.logger.debug 'Calling API: DomainResearchApi.suggest_domains ...'
|
|
111
|
+
end
|
|
112
|
+
# unbox the parameters from the hash
|
|
113
|
+
query = opts[:'query']
|
|
114
|
+
# verify the required parameter 'query' is set
|
|
115
|
+
if @api_client.config.client_side_validation && query.nil?
|
|
116
|
+
fail ArgumentError, "Missing the required parameter 'query' when calling DomainResearchApi.suggest_domains"
|
|
117
|
+
end
|
|
118
|
+
# resource path
|
|
119
|
+
local_var_path = '/domain-management/v1/tools/suggest'
|
|
120
|
+
|
|
121
|
+
# query parameters
|
|
122
|
+
query_params = opts[:query_params] || {}
|
|
123
|
+
query_params[:'query'] = query
|
|
124
|
+
query_params[:'defaults'] = opts[:'defaults'] if !opts[:'defaults'].nil?
|
|
125
|
+
query_params[:'keywords'] = opts[:'keywords'] if !opts[:'keywords'].nil?
|
|
126
|
+
query_params[:'location'] = opts[:'location'] if !opts[:'location'].nil?
|
|
127
|
+
query_params[:'vendor'] = opts[:'vendor'] if !opts[:'vendor'].nil?
|
|
128
|
+
|
|
129
|
+
# header parameters
|
|
130
|
+
header_params = opts[:header_params] || {}
|
|
131
|
+
# HTTP header 'Accept' (if needed)
|
|
132
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
133
|
+
|
|
134
|
+
# form parameters
|
|
135
|
+
form_params = opts[:form_params] || {}
|
|
136
|
+
|
|
137
|
+
# http body (model)
|
|
138
|
+
post_body = opts[:debug_body]
|
|
139
|
+
|
|
140
|
+
# return_type
|
|
141
|
+
return_type = opts[:debug_return_type] || 'InlineResponse2006'
|
|
142
|
+
|
|
143
|
+
# auth_names
|
|
144
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
|
145
|
+
|
|
146
|
+
new_options = opts.merge(
|
|
147
|
+
:operation => :"DomainResearchApi.suggest_domains",
|
|
148
|
+
:header_params => header_params,
|
|
149
|
+
:query_params => query_params,
|
|
150
|
+
:form_params => form_params,
|
|
151
|
+
:body => post_body,
|
|
152
|
+
:auth_names => auth_names,
|
|
153
|
+
:return_type => return_type
|
|
154
|
+
)
|
|
155
|
+
|
|
156
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
157
|
+
if @api_client.config.debugging
|
|
158
|
+
@api_client.config.logger.debug "API called: DomainResearchApi#suggest_domains\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
159
|
+
end
|
|
160
|
+
return data, status_code, headers
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
end
|
|
@@ -21,7 +21,7 @@ module Fastly
|
|
|
21
21
|
# Create a health check for a particular service and version.
|
|
22
22
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
|
23
23
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
|
24
|
-
# @option opts [Integer] :check_interval How often to run the health check in milliseconds.
|
|
24
|
+
# @option opts [Integer] :check_interval How often to run the health check in milliseconds. Minimum 1 second, maximum 1 hour.
|
|
25
25
|
# @option opts [String] :comment A freeform descriptive note.
|
|
26
26
|
# @option opts [Integer] :expected_response The status code expected from the host.
|
|
27
27
|
# @option opts [Array<String>] :headers Array of custom headers that will be added to the health check probes.
|
|
@@ -44,7 +44,7 @@ module Fastly
|
|
|
44
44
|
# Create a health check for a particular service and version.
|
|
45
45
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
|
46
46
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
|
47
|
-
# @option opts [Integer] :check_interval How often to run the health check in milliseconds.
|
|
47
|
+
# @option opts [Integer] :check_interval How often to run the health check in milliseconds. Minimum 1 second, maximum 1 hour.
|
|
48
48
|
# @option opts [String] :comment A freeform descriptive note.
|
|
49
49
|
# @option opts [Integer] :expected_response The status code expected from the host.
|
|
50
50
|
# @option opts [Array<String>] :headers Array of custom headers that will be added to the health check probes.
|
|
@@ -73,6 +73,14 @@ module Fastly
|
|
|
73
73
|
if @api_client.config.client_side_validation && version_id.nil?
|
|
74
74
|
fail ArgumentError, "Missing the required parameter 'version_id' when calling HealthcheckApi.create_healthcheck"
|
|
75
75
|
end
|
|
76
|
+
if @api_client.config.client_side_validation && !opts[:'check_interval'].nil? && opts[:'check_interval'] > 3600000
|
|
77
|
+
fail ArgumentError, 'invalid value for "opts[:"check_interval"]" when calling HealthcheckApi.create_healthcheck, must be smaller than or equal to 3600000.'
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
if @api_client.config.client_side_validation && !opts[:'check_interval'].nil? && opts[:'check_interval'] < 1000
|
|
81
|
+
fail ArgumentError, 'invalid value for "opts[:"check_interval"]" when calling HealthcheckApi.create_healthcheck, must be greater than or equal to 1000.'
|
|
82
|
+
end
|
|
83
|
+
|
|
76
84
|
# resource path
|
|
77
85
|
local_var_path = '/service/{service_id}/version/{version_id}/healthcheck'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'version_id' + '}', CGI.escape(version_id.to_s))
|
|
78
86
|
|
|
@@ -360,7 +368,7 @@ module Fastly
|
|
|
360
368
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
|
361
369
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
|
362
370
|
# @option opts [String] :healthcheck_name The name of the health check. (required)
|
|
363
|
-
# @option opts [Integer] :check_interval How often to run the health check in milliseconds.
|
|
371
|
+
# @option opts [Integer] :check_interval How often to run the health check in milliseconds. Minimum 1 second, maximum 1 hour.
|
|
364
372
|
# @option opts [String] :comment A freeform descriptive note.
|
|
365
373
|
# @option opts [Integer] :expected_response The status code expected from the host.
|
|
366
374
|
# @option opts [Array<String>] :headers Array of custom headers that will be added to the health check probes.
|
|
@@ -384,7 +392,7 @@ module Fastly
|
|
|
384
392
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
|
385
393
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
|
386
394
|
# @option opts [String] :healthcheck_name The name of the health check. (required)
|
|
387
|
-
# @option opts [Integer] :check_interval How often to run the health check in milliseconds.
|
|
395
|
+
# @option opts [Integer] :check_interval How often to run the health check in milliseconds. Minimum 1 second, maximum 1 hour.
|
|
388
396
|
# @option opts [String] :comment A freeform descriptive note.
|
|
389
397
|
# @option opts [Integer] :expected_response The status code expected from the host.
|
|
390
398
|
# @option opts [Array<String>] :headers Array of custom headers that will be added to the health check probes.
|
|
@@ -418,6 +426,14 @@ module Fastly
|
|
|
418
426
|
if @api_client.config.client_side_validation && healthcheck_name.nil?
|
|
419
427
|
fail ArgumentError, "Missing the required parameter 'healthcheck_name' when calling HealthcheckApi.update_healthcheck"
|
|
420
428
|
end
|
|
429
|
+
if @api_client.config.client_side_validation && !opts[:'check_interval'].nil? && opts[:'check_interval'] > 3600000
|
|
430
|
+
fail ArgumentError, 'invalid value for "opts[:"check_interval"]" when calling HealthcheckApi.update_healthcheck, must be smaller than or equal to 3600000.'
|
|
431
|
+
end
|
|
432
|
+
|
|
433
|
+
if @api_client.config.client_side_validation && !opts[:'check_interval'].nil? && opts[:'check_interval'] < 1000
|
|
434
|
+
fail ArgumentError, 'invalid value for "opts[:"check_interval"]" when calling HealthcheckApi.update_healthcheck, must be greater than or equal to 1000.'
|
|
435
|
+
end
|
|
436
|
+
|
|
421
437
|
# resource path
|
|
422
438
|
local_var_path = '/service/{service_id}/version/{version_id}/healthcheck/{healthcheck_name}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'version_id' + '}', CGI.escape(version_id.to_s)).sub('{' + 'healthcheck_name' + '}', CGI.escape(healthcheck_name.to_s))
|
|
423
439
|
|