fastly 13.1.0 → 15.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +48 -0
- data/Gemfile.lock +4 -4
- data/README.md +26 -12
- data/docs/ApiDiscoveryResponseBodyGetAllServices.md +13 -0
- data/docs/ApiDiscoveryResponseCustomer.md +10 -0
- data/docs/{LogTimeseriesGetResponseMetaFilters.md → ApiDiscoveryResponseCustomerCustomer.md} +3 -2
- 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/{LogTimeseriesResultDimensions.md → ApiDiscoveryResponseLinksGetAllServicesLinks.md} +2 -2
- data/docs/{DdosProtectionAction.md → ApiDiscoveryResponseLinksLinks.md} +2 -1
- 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/AttackReport.md +19 -0
- data/docs/AttackSignal.md +12 -0
- data/docs/AttackSource.md +13 -0
- data/docs/Backend.md +4 -4
- data/docs/BackendApi.md +10 -10
- data/docs/BackendResponse.md +4 -4
- 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 +42 -0
- data/docs/DdosProtectionAttributeStats.md +1 -1
- data/docs/DdosProtectionInvalidRequest.md +13 -0
- data/docs/DdosProtectionNotAuthorized.md +11 -0
- data/docs/DdosProtectionResponseConfigure.md +1 -1
- data/docs/DdosProtectionResponseEnable.md +1 -1
- data/docs/DdosProtectionResponseService.md +1 -1
- data/docs/DdosProtectionRule.md +1 -1
- data/docs/DdosProtectionRuleAllOf.md +1 -1
- data/docs/DdosProtectionRulePatch.md +10 -0
- 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/DomainInspectorResponseBodyEnable.md +1 -1
- data/docs/DomainInspectorResponseService.md +1 -1
- data/docs/DomainOwnershipsApi.md +2 -2
- 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/HistoricalApi.md +2 -0
- data/docs/IamRolesApi.md +23 -253
- data/docs/IamV1RoleListResponse.md +12 -0
- data/docs/IamV1RoleResponse.md +13 -0
- data/docs/ImageOptimizerResponseBodyEnable.md +1 -1
- data/docs/ImageOptimizerResponseService.md +1 -1
- data/docs/InlineResponse20010.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 -1
- 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 +4 -2
- data/docs/KvStoreItemApi.md +2 -2
- data/docs/ListAttackReport.md +11 -0
- data/docs/ListAttackReportMeta.md +10 -0
- data/docs/{DdosProtectionTrafficAttribute.md → ListSignalReport.md} +2 -1
- data/docs/LogExplorerApi.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/NgwafReportsApi.md +99 -0
- data/docs/NgwafResponseConfigure.md +1 -1
- data/docs/NgwafResponseEnable.md +1 -1
- data/docs/NgwafResponseService.md +1 -1
- data/docs/ObservabilityTimeseriesApi.md +67 -0
- data/docs/OriginInspectorResponseBodyEnable.md +1 -1
- data/docs/OriginInspectorResponseService.md +1 -1
- data/docs/PoolApi.md +4 -4
- data/docs/PoolResponse.md +1 -1
- data/docs/PoolResponseCommon.md +1 -1
- data/docs/PoolResponsePost.md +1 -1
- data/docs/ProductApiDiscoveryApi.md +163 -0
- data/docs/RealtimeEntryAggregated.md +1 -0
- data/docs/RealtimeMeasurements.md +1 -0
- data/docs/RequestBodyForCreate.md +12 -0
- data/docs/RequestBodyForUpdate.md +11 -0
- data/docs/Results.md +1 -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/SignalReport.md +13 -0
- data/docs/SuccessfulResponseAsObject.md +17 -0
- data/docs/SuccessfulResponseAsObjectAllOf.md +15 -0
- data/docs/TimeseriesGetResponse.md +11 -0
- data/docs/TimeseriesMeta.md +13 -0
- data/docs/TimeseriesResult.md +11 -0
- data/docs/TlsSubscriptionsApi.md +0 -2
- data/docs/TopWorkspace.md +12 -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/backend_api.rb +16 -16
- data/lib/fastly/api/ddos_protection_api.rb +73 -0
- data/lib/fastly/api/dm_domains_api.rb +362 -0
- data/lib/fastly/api/domain_ownerships_api.rb +3 -3
- data/lib/fastly/api/healthcheck_api.rb +20 -4
- data/lib/fastly/api/historical_api.rb +3 -0
- data/lib/fastly/api/iam_roles_api.rb +43 -435
- data/lib/fastly/api/kv_store_api.rb +6 -3
- 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/ngwaf_reports_api.rb +161 -0
- data/lib/fastly/api/{observability_timeseries_for_logs_api.rb → observability_timeseries_api.rb} +38 -43
- data/lib/fastly/api/pool_api.rb +4 -4
- data/lib/fastly/api/product_api_discovery_api.rb +263 -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/tls_subscriptions_api.rb +0 -3
- data/lib/fastly/api/user_api.rb +6 -0
- data/lib/fastly/configuration.rb +75 -39
- 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/{log_timeseries_get_response_meta_filters.rb → api_discovery_response_enabled_services.rb} +12 -13
- 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/attack_report.rb +359 -0
- data/lib/fastly/models/attack_signal.rb +252 -0
- data/lib/fastly/models/attack_source.rb +267 -0
- data/lib/fastly/models/backend.rb +7 -1
- data/lib/fastly/models/backend_response.rb +7 -1
- 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_attribute_stats.rb +2 -1
- data/lib/fastly/models/ddos_protection_invalid_request.rb +309 -0
- data/lib/fastly/models/{log_timeseries_filter_field_item.rb → ddos_protection_not_authorized.rb} +24 -36
- 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.rb +2 -1
- data/lib/fastly/models/ddos_protection_rule_all_of.rb +2 -1
- data/lib/fastly/models/ddos_protection_rule_patch.rb +219 -0
- 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/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} +14 -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 +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 +1 -1
- 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/{log_timeseries_get_response.rb → list_attack_report.rb} +5 -5
- data/lib/fastly/models/list_attack_report_meta.rb +218 -0
- data/lib/fastly/models/{log_timeseries_result_dimensions.rb → list_signal_report.rb} +12 -10
- 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_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/origin_inspector_response_body_enable.rb +1 -1
- data/lib/fastly/models/origin_inspector_response_service.rb +1 -1
- data/lib/fastly/models/pool_response.rb +1 -1
- data/lib/fastly/models/pool_response_common.rb +1 -1
- data/lib/fastly/models/pool_response_post.rb +1 -1
- data/lib/fastly/models/realtime_entry_aggregated.rb +14 -4
- data/lib/fastly/models/realtime_measurements.rb +14 -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 +11 -1
- data/lib/fastly/models/role_user.rb +2 -0
- data/lib/fastly/models/schemas_user_response.rb +13 -1
- data/lib/fastly/models/signal_report.rb +249 -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/timeseries_get_response.rb +227 -0
- data/lib/fastly/models/{log_timeseries_get_response_meta.rb → timeseries_meta.rb} +23 -32
- data/lib/fastly/models/{log_timeseries_result.rb → timeseries_result.rb} +9 -5
- data/lib/fastly/models/top_workspace.rb +238 -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 +40 -13
- data/sig.json +1 -1
- metadata +82 -28
- data/docs/IamRole.md +0 -17
- data/docs/IamRoleAllOf.md +0 -15
- data/docs/LogTimeseriesFilterFieldItem.md +0 -12
- data/docs/LogTimeseriesGetResponse.md +0 -11
- data/docs/LogTimeseriesGetResponseMeta.md +0 -14
- data/docs/LogTimeseriesResult.md +0 -11
- data/docs/LogTimeseriesValueField.md +0 -59
- data/docs/ObservabilityTimeseriesForLogsApi.md +0 -67
- data/lib/fastly/models/ddos_protection_action.rb +0 -37
- data/lib/fastly/models/ddos_protection_traffic_attribute.rb +0 -40
- data/lib/fastly/models/log_timeseries_value_field.rb +0 -108
|
@@ -0,0 +1,362 @@
|
|
|
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 DmDomainsApi
|
|
15
|
+
attr_accessor :api_client
|
|
16
|
+
|
|
17
|
+
def initialize(api_client = ApiClient.default)
|
|
18
|
+
@api_client = api_client
|
|
19
|
+
end
|
|
20
|
+
# Create a domain
|
|
21
|
+
# Create a domain
|
|
22
|
+
# @option opts [RequestBodyForCreate] :request_body_for_create
|
|
23
|
+
# @return [SuccessfulResponseAsObject]
|
|
24
|
+
def create_dm_domain(opts = {})
|
|
25
|
+
data, _status_code, _headers = create_dm_domain_with_http_info(opts)
|
|
26
|
+
data
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Create a domain
|
|
30
|
+
# Create a domain
|
|
31
|
+
# @option opts [RequestBodyForCreate] :request_body_for_create
|
|
32
|
+
# @return [Array<(SuccessfulResponseAsObject, Integer, Hash)>] SuccessfulResponseAsObject data, response status code and response headers
|
|
33
|
+
def create_dm_domain_with_http_info(opts = {})
|
|
34
|
+
if @api_client.config.debugging
|
|
35
|
+
@api_client.config.logger.debug 'Calling API: DmDomainsApi.create_dm_domain ...'
|
|
36
|
+
end
|
|
37
|
+
# unbox the parameters from the hash
|
|
38
|
+
# resource path
|
|
39
|
+
local_var_path = '/domain-management/v1/domains'
|
|
40
|
+
|
|
41
|
+
# query parameters
|
|
42
|
+
query_params = opts[:query_params] || {}
|
|
43
|
+
|
|
44
|
+
# header parameters
|
|
45
|
+
header_params = opts[:header_params] || {}
|
|
46
|
+
# HTTP header 'Accept' (if needed)
|
|
47
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
48
|
+
# HTTP header 'Content-Type'
|
|
49
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
50
|
+
if !content_type.nil?
|
|
51
|
+
header_params['Content-Type'] = content_type
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# form parameters
|
|
55
|
+
form_params = opts[:form_params] || {}
|
|
56
|
+
|
|
57
|
+
# http body (model)
|
|
58
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body_for_create'])
|
|
59
|
+
|
|
60
|
+
# return_type
|
|
61
|
+
return_type = opts[:debug_return_type] || 'SuccessfulResponseAsObject'
|
|
62
|
+
|
|
63
|
+
# auth_names
|
|
64
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
|
65
|
+
|
|
66
|
+
new_options = opts.merge(
|
|
67
|
+
:operation => :"DmDomainsApi.create_dm_domain",
|
|
68
|
+
:header_params => header_params,
|
|
69
|
+
:query_params => query_params,
|
|
70
|
+
:form_params => form_params,
|
|
71
|
+
:body => post_body,
|
|
72
|
+
:auth_names => auth_names,
|
|
73
|
+
:return_type => return_type
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
77
|
+
if @api_client.config.debugging
|
|
78
|
+
@api_client.config.logger.debug "API called: DmDomainsApi#create_dm_domain\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
79
|
+
end
|
|
80
|
+
return data, status_code, headers
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Delete a domain
|
|
84
|
+
# Delete a domain
|
|
85
|
+
# @option opts [String] :domain_id (required)
|
|
86
|
+
# @return [nil]
|
|
87
|
+
def delete_dm_domain(opts = {})
|
|
88
|
+
delete_dm_domain_with_http_info(opts)
|
|
89
|
+
nil
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Delete a domain
|
|
93
|
+
# Delete a domain
|
|
94
|
+
# @option opts [String] :domain_id (required)
|
|
95
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
96
|
+
def delete_dm_domain_with_http_info(opts = {})
|
|
97
|
+
if @api_client.config.debugging
|
|
98
|
+
@api_client.config.logger.debug 'Calling API: DmDomainsApi.delete_dm_domain ...'
|
|
99
|
+
end
|
|
100
|
+
# unbox the parameters from the hash
|
|
101
|
+
domain_id = opts[:'domain_id']
|
|
102
|
+
# verify the required parameter 'domain_id' is set
|
|
103
|
+
if @api_client.config.client_side_validation && domain_id.nil?
|
|
104
|
+
fail ArgumentError, "Missing the required parameter 'domain_id' when calling DmDomainsApi.delete_dm_domain"
|
|
105
|
+
end
|
|
106
|
+
# resource path
|
|
107
|
+
local_var_path = '/domain-management/v1/domains/{domain_id}'.sub('{' + 'domain_id' + '}', CGI.escape(domain_id.to_s))
|
|
108
|
+
|
|
109
|
+
# query parameters
|
|
110
|
+
query_params = opts[:query_params] || {}
|
|
111
|
+
|
|
112
|
+
# header parameters
|
|
113
|
+
header_params = opts[:header_params] || {}
|
|
114
|
+
|
|
115
|
+
# form parameters
|
|
116
|
+
form_params = opts[:form_params] || {}
|
|
117
|
+
|
|
118
|
+
# http body (model)
|
|
119
|
+
post_body = opts[:debug_body]
|
|
120
|
+
|
|
121
|
+
# return_type
|
|
122
|
+
return_type = opts[:debug_return_type]
|
|
123
|
+
|
|
124
|
+
# auth_names
|
|
125
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
|
126
|
+
|
|
127
|
+
new_options = opts.merge(
|
|
128
|
+
:operation => :"DmDomainsApi.delete_dm_domain",
|
|
129
|
+
:header_params => header_params,
|
|
130
|
+
:query_params => query_params,
|
|
131
|
+
:form_params => form_params,
|
|
132
|
+
:body => post_body,
|
|
133
|
+
:auth_names => auth_names,
|
|
134
|
+
:return_type => return_type
|
|
135
|
+
)
|
|
136
|
+
|
|
137
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
138
|
+
if @api_client.config.debugging
|
|
139
|
+
@api_client.config.logger.debug "API called: DmDomainsApi#delete_dm_domain\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
140
|
+
end
|
|
141
|
+
return data, status_code, headers
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Get a domain
|
|
145
|
+
# Show a domain
|
|
146
|
+
# @option opts [String] :domain_id (required)
|
|
147
|
+
# @return [SuccessfulResponseAsObject]
|
|
148
|
+
def get_dm_domain(opts = {})
|
|
149
|
+
data, _status_code, _headers = get_dm_domain_with_http_info(opts)
|
|
150
|
+
data
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Get a domain
|
|
154
|
+
# Show a domain
|
|
155
|
+
# @option opts [String] :domain_id (required)
|
|
156
|
+
# @return [Array<(SuccessfulResponseAsObject, Integer, Hash)>] SuccessfulResponseAsObject data, response status code and response headers
|
|
157
|
+
def get_dm_domain_with_http_info(opts = {})
|
|
158
|
+
if @api_client.config.debugging
|
|
159
|
+
@api_client.config.logger.debug 'Calling API: DmDomainsApi.get_dm_domain ...'
|
|
160
|
+
end
|
|
161
|
+
# unbox the parameters from the hash
|
|
162
|
+
domain_id = opts[:'domain_id']
|
|
163
|
+
# verify the required parameter 'domain_id' is set
|
|
164
|
+
if @api_client.config.client_side_validation && domain_id.nil?
|
|
165
|
+
fail ArgumentError, "Missing the required parameter 'domain_id' when calling DmDomainsApi.get_dm_domain"
|
|
166
|
+
end
|
|
167
|
+
# resource path
|
|
168
|
+
local_var_path = '/domain-management/v1/domains/{domain_id}'.sub('{' + 'domain_id' + '}', CGI.escape(domain_id.to_s))
|
|
169
|
+
|
|
170
|
+
# query parameters
|
|
171
|
+
query_params = opts[:query_params] || {}
|
|
172
|
+
|
|
173
|
+
# header parameters
|
|
174
|
+
header_params = opts[:header_params] || {}
|
|
175
|
+
# HTTP header 'Accept' (if needed)
|
|
176
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
177
|
+
|
|
178
|
+
# form parameters
|
|
179
|
+
form_params = opts[:form_params] || {}
|
|
180
|
+
|
|
181
|
+
# http body (model)
|
|
182
|
+
post_body = opts[:debug_body]
|
|
183
|
+
|
|
184
|
+
# return_type
|
|
185
|
+
return_type = opts[:debug_return_type] || 'SuccessfulResponseAsObject'
|
|
186
|
+
|
|
187
|
+
# auth_names
|
|
188
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
|
189
|
+
|
|
190
|
+
new_options = opts.merge(
|
|
191
|
+
:operation => :"DmDomainsApi.get_dm_domain",
|
|
192
|
+
:header_params => header_params,
|
|
193
|
+
:query_params => query_params,
|
|
194
|
+
:form_params => form_params,
|
|
195
|
+
:body => post_body,
|
|
196
|
+
:auth_names => auth_names,
|
|
197
|
+
:return_type => return_type
|
|
198
|
+
)
|
|
199
|
+
|
|
200
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
201
|
+
if @api_client.config.debugging
|
|
202
|
+
@api_client.config.logger.debug "API called: DmDomainsApi#get_dm_domain\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
203
|
+
end
|
|
204
|
+
return data, status_code, headers
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# List domains
|
|
208
|
+
# List all domains
|
|
209
|
+
# @option opts [String] :fqdn
|
|
210
|
+
# @option opts [String] :service_id Filter results based on a service_id.
|
|
211
|
+
# @option opts [String] :sort The order in which to list the results. (default to 'fqdn')
|
|
212
|
+
# @option opts [Boolean] :activated
|
|
213
|
+
# @option opts [Boolean] :verified
|
|
214
|
+
# @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.
|
|
215
|
+
# @option opts [Integer] :limit Limit how many results are returned. (default to 20)
|
|
216
|
+
# @return [InlineResponse2004]
|
|
217
|
+
def list_dm_domains(opts = {})
|
|
218
|
+
data, _status_code, _headers = list_dm_domains_with_http_info(opts)
|
|
219
|
+
data
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# List domains
|
|
223
|
+
# List all domains
|
|
224
|
+
# @option opts [String] :fqdn
|
|
225
|
+
# @option opts [String] :service_id Filter results based on a service_id.
|
|
226
|
+
# @option opts [String] :sort The order in which to list the results. (default to 'fqdn')
|
|
227
|
+
# @option opts [Boolean] :activated
|
|
228
|
+
# @option opts [Boolean] :verified
|
|
229
|
+
# @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.
|
|
230
|
+
# @option opts [Integer] :limit Limit how many results are returned. (default to 20)
|
|
231
|
+
# @return [Array<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
|
|
232
|
+
def list_dm_domains_with_http_info(opts = {})
|
|
233
|
+
if @api_client.config.debugging
|
|
234
|
+
@api_client.config.logger.debug 'Calling API: DmDomainsApi.list_dm_domains ...'
|
|
235
|
+
end
|
|
236
|
+
# unbox the parameters from the hash
|
|
237
|
+
allowable_values = ["fqdn", "-fqdn"]
|
|
238
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
|
239
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
|
240
|
+
end
|
|
241
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
242
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DmDomainsApi.list_dm_domains, must be smaller than or equal to 100.'
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
# resource path
|
|
246
|
+
local_var_path = '/domain-management/v1/domains'
|
|
247
|
+
|
|
248
|
+
# query parameters
|
|
249
|
+
query_params = opts[:query_params] || {}
|
|
250
|
+
query_params[:'fqdn'] = opts[:'fqdn'] if !opts[:'fqdn'].nil?
|
|
251
|
+
query_params[:'service_id'] = opts[:'service_id'] if !opts[:'service_id'].nil?
|
|
252
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
253
|
+
query_params[:'activated'] = opts[:'activated'] if !opts[:'activated'].nil?
|
|
254
|
+
query_params[:'verified'] = opts[:'verified'] if !opts[:'verified'].nil?
|
|
255
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
256
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
257
|
+
|
|
258
|
+
# header parameters
|
|
259
|
+
header_params = opts[:header_params] || {}
|
|
260
|
+
# HTTP header 'Accept' (if needed)
|
|
261
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
262
|
+
|
|
263
|
+
# form parameters
|
|
264
|
+
form_params = opts[:form_params] || {}
|
|
265
|
+
|
|
266
|
+
# http body (model)
|
|
267
|
+
post_body = opts[:debug_body]
|
|
268
|
+
|
|
269
|
+
# return_type
|
|
270
|
+
return_type = opts[:debug_return_type] || 'InlineResponse2004'
|
|
271
|
+
|
|
272
|
+
# auth_names
|
|
273
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
|
274
|
+
|
|
275
|
+
new_options = opts.merge(
|
|
276
|
+
:operation => :"DmDomainsApi.list_dm_domains",
|
|
277
|
+
:header_params => header_params,
|
|
278
|
+
:query_params => query_params,
|
|
279
|
+
:form_params => form_params,
|
|
280
|
+
:body => post_body,
|
|
281
|
+
:auth_names => auth_names,
|
|
282
|
+
:return_type => return_type
|
|
283
|
+
)
|
|
284
|
+
|
|
285
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
286
|
+
if @api_client.config.debugging
|
|
287
|
+
@api_client.config.logger.debug "API called: DmDomainsApi#list_dm_domains\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
288
|
+
end
|
|
289
|
+
return data, status_code, headers
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
# Update a domain
|
|
293
|
+
# Update a domain
|
|
294
|
+
# @option opts [String] :domain_id (required)
|
|
295
|
+
# @option opts [RequestBodyForUpdate] :request_body_for_update
|
|
296
|
+
# @return [SuccessfulResponseAsObject]
|
|
297
|
+
def update_dm_domain(opts = {})
|
|
298
|
+
data, _status_code, _headers = update_dm_domain_with_http_info(opts)
|
|
299
|
+
data
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
# Update a domain
|
|
303
|
+
# Update a domain
|
|
304
|
+
# @option opts [String] :domain_id (required)
|
|
305
|
+
# @option opts [RequestBodyForUpdate] :request_body_for_update
|
|
306
|
+
# @return [Array<(SuccessfulResponseAsObject, Integer, Hash)>] SuccessfulResponseAsObject data, response status code and response headers
|
|
307
|
+
def update_dm_domain_with_http_info(opts = {})
|
|
308
|
+
if @api_client.config.debugging
|
|
309
|
+
@api_client.config.logger.debug 'Calling API: DmDomainsApi.update_dm_domain ...'
|
|
310
|
+
end
|
|
311
|
+
# unbox the parameters from the hash
|
|
312
|
+
domain_id = opts[:'domain_id']
|
|
313
|
+
# verify the required parameter 'domain_id' is set
|
|
314
|
+
if @api_client.config.client_side_validation && domain_id.nil?
|
|
315
|
+
fail ArgumentError, "Missing the required parameter 'domain_id' when calling DmDomainsApi.update_dm_domain"
|
|
316
|
+
end
|
|
317
|
+
# resource path
|
|
318
|
+
local_var_path = '/domain-management/v1/domains/{domain_id}'.sub('{' + 'domain_id' + '}', CGI.escape(domain_id.to_s))
|
|
319
|
+
|
|
320
|
+
# query parameters
|
|
321
|
+
query_params = opts[:query_params] || {}
|
|
322
|
+
|
|
323
|
+
# header parameters
|
|
324
|
+
header_params = opts[:header_params] || {}
|
|
325
|
+
# HTTP header 'Accept' (if needed)
|
|
326
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
327
|
+
# HTTP header 'Content-Type'
|
|
328
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
329
|
+
if !content_type.nil?
|
|
330
|
+
header_params['Content-Type'] = content_type
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
# form parameters
|
|
334
|
+
form_params = opts[:form_params] || {}
|
|
335
|
+
|
|
336
|
+
# http body (model)
|
|
337
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body_for_update'])
|
|
338
|
+
|
|
339
|
+
# return_type
|
|
340
|
+
return_type = opts[:debug_return_type] || 'SuccessfulResponseAsObject'
|
|
341
|
+
|
|
342
|
+
# auth_names
|
|
343
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
|
344
|
+
|
|
345
|
+
new_options = opts.merge(
|
|
346
|
+
:operation => :"DmDomainsApi.update_dm_domain",
|
|
347
|
+
:header_params => header_params,
|
|
348
|
+
:query_params => query_params,
|
|
349
|
+
:form_params => form_params,
|
|
350
|
+
:body => post_body,
|
|
351
|
+
:auth_names => auth_names,
|
|
352
|
+
:return_type => return_type
|
|
353
|
+
)
|
|
354
|
+
|
|
355
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
356
|
+
if @api_client.config.debugging
|
|
357
|
+
@api_client.config.logger.debug "API called: DmDomainsApi#update_dm_domain\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
358
|
+
end
|
|
359
|
+
return data, status_code, headers
|
|
360
|
+
end
|
|
361
|
+
end
|
|
362
|
+
end
|
|
@@ -19,7 +19,7 @@ module Fastly
|
|
|
19
19
|
end
|
|
20
20
|
# List domain-ownerships
|
|
21
21
|
# List all domain-ownerships.
|
|
22
|
-
# @return [
|
|
22
|
+
# @return [InlineResponse2005]
|
|
23
23
|
def list_domain_ownerships(opts = {})
|
|
24
24
|
data, _status_code, _headers = list_domain_ownerships_with_http_info(opts)
|
|
25
25
|
data
|
|
@@ -27,7 +27,7 @@ module Fastly
|
|
|
27
27
|
|
|
28
28
|
# List domain-ownerships
|
|
29
29
|
# List all domain-ownerships.
|
|
30
|
-
# @return [Array<(
|
|
30
|
+
# @return [Array<(InlineResponse2005, Integer, Hash)>] InlineResponse2005 data, response status code and response headers
|
|
31
31
|
def list_domain_ownerships_with_http_info(opts = {})
|
|
32
32
|
if @api_client.config.debugging
|
|
33
33
|
@api_client.config.logger.debug 'Calling API: DomainOwnershipsApi.list_domain_ownerships ...'
|
|
@@ -51,7 +51,7 @@ module Fastly
|
|
|
51
51
|
post_body = opts[:debug_body]
|
|
52
52
|
|
|
53
53
|
# return_type
|
|
54
|
-
return_type = opts[:debug_return_type] || '
|
|
54
|
+
return_type = opts[:debug_return_type] || 'InlineResponse2005'
|
|
55
55
|
|
|
56
56
|
# auth_names
|
|
57
57
|
auth_names = opts[:debug_auth_names] || ['token']
|
|
@@ -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
|
|
|
@@ -23,6 +23,7 @@ module Fastly
|
|
|
23
23
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
|
24
24
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
|
25
25
|
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America.
|
|
26
|
+
# @option opts [String] :services Limit the query to only the specified, comma-separated list of services.
|
|
26
27
|
# @return [HistoricalStatsByServiceResponse]
|
|
27
28
|
def get_hist_stats(opts = {})
|
|
28
29
|
data, _status_code, _headers = get_hist_stats_with_http_info(opts)
|
|
@@ -35,6 +36,7 @@ module Fastly
|
|
|
35
36
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
|
36
37
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
|
37
38
|
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America.
|
|
39
|
+
# @option opts [String] :services Limit the query to only the specified, comma-separated list of services.
|
|
38
40
|
# @return [Array<(HistoricalStatsByServiceResponse, Integer, Hash)>] HistoricalStatsByServiceResponse data, response status code and response headers
|
|
39
41
|
def get_hist_stats_with_http_info(opts = {})
|
|
40
42
|
if @api_client.config.debugging
|
|
@@ -58,6 +60,7 @@ module Fastly
|
|
|
58
60
|
query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
|
|
59
61
|
query_params[:'by'] = opts[:'by'] if !opts[:'by'].nil?
|
|
60
62
|
query_params[:'region'] = opts[:'region'] if !opts[:'region'].nil?
|
|
63
|
+
query_params[:'services'] = opts[:'services'] if !opts[:'services'].nil?
|
|
61
64
|
|
|
62
65
|
# header parameters
|
|
63
66
|
header_params = opts[:header_params] || {}
|