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,161 @@
|
|
|
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 NgwafReportsApi
|
|
15
|
+
attr_accessor :api_client
|
|
16
|
+
|
|
17
|
+
def initialize(api_client = ApiClient.default)
|
|
18
|
+
@api_client = api_client
|
|
19
|
+
end
|
|
20
|
+
# Get attacks report
|
|
21
|
+
# Get attacks report
|
|
22
|
+
# @option opts [Time] :from The start of a time range in RFC 3339 format. (required)
|
|
23
|
+
# @option opts [Time] :to The end of a time range in RFC 3339 format. Defaults to the current time.
|
|
24
|
+
# @return [ListAttackReport]
|
|
25
|
+
def get_attacks_report(opts = {})
|
|
26
|
+
data, _status_code, _headers = get_attacks_report_with_http_info(opts)
|
|
27
|
+
data
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Get attacks report
|
|
31
|
+
# Get attacks report
|
|
32
|
+
# @option opts [Time] :from The start of a time range in RFC 3339 format. (required)
|
|
33
|
+
# @option opts [Time] :to The end of a time range in RFC 3339 format. Defaults to the current time.
|
|
34
|
+
# @return [Array<(ListAttackReport, Integer, Hash)>] ListAttackReport data, response status code and response headers
|
|
35
|
+
def get_attacks_report_with_http_info(opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: NgwafReportsApi.get_attacks_report ...'
|
|
38
|
+
end
|
|
39
|
+
# unbox the parameters from the hash
|
|
40
|
+
from = opts[:'from']
|
|
41
|
+
# verify the required parameter 'from' is set
|
|
42
|
+
if @api_client.config.client_side_validation && from.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'from' when calling NgwafReportsApi.get_attacks_report"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/ngwaf/v1/reports/attacks'
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
query_params[:'from'] = from
|
|
51
|
+
query_params[:'to'] = opts[:'to'] if !opts[:'to'].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', 'application/problem+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] || 'ListAttackReport'
|
|
66
|
+
|
|
67
|
+
# auth_names
|
|
68
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
|
69
|
+
|
|
70
|
+
new_options = opts.merge(
|
|
71
|
+
:operation => :"NgwafReportsApi.get_attacks_report",
|
|
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: NgwafReportsApi#get_attacks_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
83
|
+
end
|
|
84
|
+
return data, status_code, headers
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Get signals report
|
|
88
|
+
# Get signals report
|
|
89
|
+
# @option opts [Time] :from The start of a time range in RFC 3339 format. (required)
|
|
90
|
+
# @option opts [Time] :to The end of a time range in RFC 3339 format. Defaults to the current time.
|
|
91
|
+
# @option opts [String] :signal_type The type of signal
|
|
92
|
+
# @return [ListSignalReport]
|
|
93
|
+
def get_signals_report(opts = {})
|
|
94
|
+
data, _status_code, _headers = get_signals_report_with_http_info(opts)
|
|
95
|
+
data
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Get signals report
|
|
99
|
+
# Get signals report
|
|
100
|
+
# @option opts [Time] :from The start of a time range in RFC 3339 format. (required)
|
|
101
|
+
# @option opts [Time] :to The end of a time range in RFC 3339 format. Defaults to the current time.
|
|
102
|
+
# @option opts [String] :signal_type The type of signal
|
|
103
|
+
# @return [Array<(ListSignalReport, Integer, Hash)>] ListSignalReport data, response status code and response headers
|
|
104
|
+
def get_signals_report_with_http_info(opts = {})
|
|
105
|
+
if @api_client.config.debugging
|
|
106
|
+
@api_client.config.logger.debug 'Calling API: NgwafReportsApi.get_signals_report ...'
|
|
107
|
+
end
|
|
108
|
+
# unbox the parameters from the hash
|
|
109
|
+
from = opts[:'from']
|
|
110
|
+
# verify the required parameter 'from' is set
|
|
111
|
+
if @api_client.config.client_side_validation && from.nil?
|
|
112
|
+
fail ArgumentError, "Missing the required parameter 'from' when calling NgwafReportsApi.get_signals_report"
|
|
113
|
+
end
|
|
114
|
+
allowable_values = ["account", "anomaly", "attack", "bot", "all"]
|
|
115
|
+
if @api_client.config.client_side_validation && opts[:'signal_type'] && !allowable_values.include?(opts[:'signal_type'])
|
|
116
|
+
fail ArgumentError, "invalid value for \"signal_type\", must be one of #{allowable_values}"
|
|
117
|
+
end
|
|
118
|
+
# resource path
|
|
119
|
+
local_var_path = '/ngwaf/v1/reports/signals'
|
|
120
|
+
|
|
121
|
+
# query parameters
|
|
122
|
+
query_params = opts[:query_params] || {}
|
|
123
|
+
query_params[:'from'] = from
|
|
124
|
+
query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
|
|
125
|
+
query_params[:'signal_type'] = opts[:'signal_type'] if !opts[:'signal_type'].nil?
|
|
126
|
+
|
|
127
|
+
# header parameters
|
|
128
|
+
header_params = opts[:header_params] || {}
|
|
129
|
+
# HTTP header 'Accept' (if needed)
|
|
130
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json'])
|
|
131
|
+
|
|
132
|
+
# form parameters
|
|
133
|
+
form_params = opts[:form_params] || {}
|
|
134
|
+
|
|
135
|
+
# http body (model)
|
|
136
|
+
post_body = opts[:debug_body]
|
|
137
|
+
|
|
138
|
+
# return_type
|
|
139
|
+
return_type = opts[:debug_return_type] || 'ListSignalReport'
|
|
140
|
+
|
|
141
|
+
# auth_names
|
|
142
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
|
143
|
+
|
|
144
|
+
new_options = opts.merge(
|
|
145
|
+
:operation => :"NgwafReportsApi.get_signals_report",
|
|
146
|
+
:header_params => header_params,
|
|
147
|
+
:query_params => query_params,
|
|
148
|
+
:form_params => form_params,
|
|
149
|
+
:body => post_body,
|
|
150
|
+
:auth_names => auth_names,
|
|
151
|
+
:return_type => return_type
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
155
|
+
if @api_client.config.debugging
|
|
156
|
+
@api_client.config.logger.debug "API called: NgwafReportsApi#get_signals_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
157
|
+
end
|
|
158
|
+
return data, status_code, headers
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
end
|
data/lib/fastly/api/{observability_timeseries_for_logs_api.rb → observability_timeseries_api.rb}
RENAMED
|
@@ -11,76 +11,71 @@ Contact: oss@fastly.com
|
|
|
11
11
|
require 'cgi'
|
|
12
12
|
|
|
13
13
|
module Fastly
|
|
14
|
-
class
|
|
14
|
+
class ObservabilityTimeseriesApi
|
|
15
15
|
attr_accessor :api_client
|
|
16
16
|
|
|
17
17
|
def initialize(api_client = ApiClient.default)
|
|
18
18
|
@api_client = api_client
|
|
19
19
|
end
|
|
20
|
-
# Retrieve
|
|
21
|
-
# Retrieves
|
|
20
|
+
# Retrieve observability data as a time series
|
|
21
|
+
# Retrieves observability data as a time series.
|
|
22
22
|
# @option opts [String] :source (required)
|
|
23
|
-
# @option opts [String] :
|
|
24
|
-
# @option opts [String] :
|
|
25
|
-
# @option opts [String] :_end (required)
|
|
23
|
+
# @option opts [String] :from (required)
|
|
24
|
+
# @option opts [String] :to (required)
|
|
26
25
|
# @option opts [String] :granularity (required)
|
|
27
26
|
# @option opts [String] :series (required)
|
|
27
|
+
# @option opts [String] :dimensions
|
|
28
28
|
# @option opts [String] :filter
|
|
29
|
-
# @return [
|
|
30
|
-
def
|
|
31
|
-
data, _status_code, _headers =
|
|
29
|
+
# @return [TimeseriesGetResponse]
|
|
30
|
+
def timeseries_get(opts = {})
|
|
31
|
+
data, _status_code, _headers = timeseries_get_with_http_info(opts)
|
|
32
32
|
data
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
-
# Retrieve
|
|
36
|
-
# Retrieves
|
|
35
|
+
# Retrieve observability data as a time series
|
|
36
|
+
# Retrieves observability data as a time series.
|
|
37
37
|
# @option opts [String] :source (required)
|
|
38
|
-
# @option opts [String] :
|
|
39
|
-
# @option opts [String] :
|
|
40
|
-
# @option opts [String] :_end (required)
|
|
38
|
+
# @option opts [String] :from (required)
|
|
39
|
+
# @option opts [String] :to (required)
|
|
41
40
|
# @option opts [String] :granularity (required)
|
|
42
41
|
# @option opts [String] :series (required)
|
|
42
|
+
# @option opts [String] :dimensions
|
|
43
43
|
# @option opts [String] :filter
|
|
44
|
-
# @return [Array<(
|
|
45
|
-
def
|
|
44
|
+
# @return [Array<(TimeseriesGetResponse, Integer, Hash)>] TimeseriesGetResponse data, response status code and response headers
|
|
45
|
+
def timeseries_get_with_http_info(opts = {})
|
|
46
46
|
if @api_client.config.debugging
|
|
47
|
-
@api_client.config.logger.debug 'Calling API:
|
|
47
|
+
@api_client.config.logger.debug 'Calling API: ObservabilityTimeseriesApi.timeseries_get ...'
|
|
48
48
|
end
|
|
49
49
|
# unbox the parameters from the hash
|
|
50
50
|
source = opts[:'source']
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
_end = opts[:'_end']
|
|
51
|
+
from = opts[:'from']
|
|
52
|
+
to = opts[:'to']
|
|
54
53
|
granularity = opts[:'granularity']
|
|
55
54
|
series = opts[:'series']
|
|
56
55
|
# verify the required parameter 'source' is set
|
|
57
56
|
if @api_client.config.client_side_validation && source.nil?
|
|
58
|
-
fail ArgumentError, "Missing the required parameter 'source' when calling
|
|
57
|
+
fail ArgumentError, "Missing the required parameter 'source' when calling ObservabilityTimeseriesApi.timeseries_get"
|
|
59
58
|
end
|
|
60
|
-
# verify
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
# verify enum value
|
|
60
|
+
allowable_values = ["logs", "sustainability"]
|
|
61
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(source)
|
|
62
|
+
fail ArgumentError, "invalid value for \"source\", must be one of #{allowable_values}"
|
|
63
63
|
end
|
|
64
|
-
# verify the required parameter '
|
|
65
|
-
if @api_client.config.client_side_validation &&
|
|
66
|
-
fail ArgumentError, "Missing the required parameter '
|
|
64
|
+
# verify the required parameter 'from' is set
|
|
65
|
+
if @api_client.config.client_side_validation && from.nil?
|
|
66
|
+
fail ArgumentError, "Missing the required parameter 'from' when calling ObservabilityTimeseriesApi.timeseries_get"
|
|
67
67
|
end
|
|
68
|
-
# verify the required parameter '
|
|
69
|
-
if @api_client.config.client_side_validation &&
|
|
70
|
-
fail ArgumentError, "Missing the required parameter '
|
|
68
|
+
# verify the required parameter 'to' is set
|
|
69
|
+
if @api_client.config.client_side_validation && to.nil?
|
|
70
|
+
fail ArgumentError, "Missing the required parameter 'to' when calling ObservabilityTimeseriesApi.timeseries_get"
|
|
71
71
|
end
|
|
72
72
|
# verify the required parameter 'granularity' is set
|
|
73
73
|
if @api_client.config.client_side_validation && granularity.nil?
|
|
74
|
-
fail ArgumentError, "Missing the required parameter 'granularity' when calling
|
|
75
|
-
end
|
|
76
|
-
# verify enum value
|
|
77
|
-
allowable_values = ["second", "minute", "hour", "day"]
|
|
78
|
-
if @api_client.config.client_side_validation && !allowable_values.include?(granularity)
|
|
79
|
-
fail ArgumentError, "invalid value for \"granularity\", must be one of #{allowable_values}"
|
|
74
|
+
fail ArgumentError, "Missing the required parameter 'granularity' when calling ObservabilityTimeseriesApi.timeseries_get"
|
|
80
75
|
end
|
|
81
76
|
# verify the required parameter 'series' is set
|
|
82
77
|
if @api_client.config.client_side_validation && series.nil?
|
|
83
|
-
fail ArgumentError, "Missing the required parameter 'series' when calling
|
|
78
|
+
fail ArgumentError, "Missing the required parameter 'series' when calling ObservabilityTimeseriesApi.timeseries_get"
|
|
84
79
|
end
|
|
85
80
|
# resource path
|
|
86
81
|
local_var_path = '/observability/timeseries'
|
|
@@ -88,11 +83,11 @@ module Fastly
|
|
|
88
83
|
# query parameters
|
|
89
84
|
query_params = opts[:query_params] || {}
|
|
90
85
|
query_params[:'source'] = source
|
|
91
|
-
query_params[:'
|
|
92
|
-
query_params[:'
|
|
93
|
-
query_params[:'end'] = _end
|
|
86
|
+
query_params[:'from'] = from
|
|
87
|
+
query_params[:'to'] = to
|
|
94
88
|
query_params[:'granularity'] = granularity
|
|
95
89
|
query_params[:'series'] = series
|
|
90
|
+
query_params[:'dimensions'] = opts[:'dimensions'] if !opts[:'dimensions'].nil?
|
|
96
91
|
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
|
97
92
|
|
|
98
93
|
# header parameters
|
|
@@ -107,13 +102,13 @@ module Fastly
|
|
|
107
102
|
post_body = opts[:debug_body]
|
|
108
103
|
|
|
109
104
|
# return_type
|
|
110
|
-
return_type = opts[:debug_return_type] || '
|
|
105
|
+
return_type = opts[:debug_return_type] || 'TimeseriesGetResponse'
|
|
111
106
|
|
|
112
107
|
# auth_names
|
|
113
108
|
auth_names = opts[:debug_auth_names] || ['token']
|
|
114
109
|
|
|
115
110
|
new_options = opts.merge(
|
|
116
|
-
:operation => :"
|
|
111
|
+
:operation => :"ObservabilityTimeseriesApi.timeseries_get",
|
|
117
112
|
:header_params => header_params,
|
|
118
113
|
:query_params => query_params,
|
|
119
114
|
:form_params => form_params,
|
|
@@ -124,7 +119,7 @@ module Fastly
|
|
|
124
119
|
|
|
125
120
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
126
121
|
if @api_client.config.debugging
|
|
127
|
-
@api_client.config.logger.debug "API called:
|
|
122
|
+
@api_client.config.logger.debug "API called: ObservabilityTimeseriesApi#timeseries_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
128
123
|
end
|
|
129
124
|
return data, status_code, headers
|
|
130
125
|
end
|
data/lib/fastly/api/pool_api.rb
CHANGED
|
@@ -42,7 +42,7 @@ module Fastly
|
|
|
42
42
|
# @option opts [String] :comment A freeform descriptive note.
|
|
43
43
|
# @option opts [String] :type What type of load balance group to use.
|
|
44
44
|
# @option opts [String] :override_host The hostname to [override the Host header](https://www.fastly.com/documentation/guides/full-site-delivery/domains-and-origins/specifying-an-override-host/). Defaults to `null` meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. (default to 'null')
|
|
45
|
-
# @option opts [Integer] :between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. (default to 10000)
|
|
45
|
+
# @option opts [Integer] :between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, for Delivery services, the response received so far will be considered complete and the fetch will end. For Compute services, timeout expiration is treated as a failure of the backend connection, and an error is generated. May be set at runtime using `bereq.between_bytes_timeout`. (default to 10000)
|
|
46
46
|
# @option opts [Integer] :connect_timeout How long to wait for a timeout in milliseconds. Optional.
|
|
47
47
|
# @option opts [Integer] :first_byte_timeout How long to wait for the first byte in milliseconds. Optional.
|
|
48
48
|
# @option opts [Integer] :max_conn_default Maximum number of connections. Optional. (default to 200)
|
|
@@ -79,7 +79,7 @@ module Fastly
|
|
|
79
79
|
# @option opts [String] :comment A freeform descriptive note.
|
|
80
80
|
# @option opts [String] :type What type of load balance group to use.
|
|
81
81
|
# @option opts [String] :override_host The hostname to [override the Host header](https://www.fastly.com/documentation/guides/full-site-delivery/domains-and-origins/specifying-an-override-host/). Defaults to `null` meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. (default to 'null')
|
|
82
|
-
# @option opts [Integer] :between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. (default to 10000)
|
|
82
|
+
# @option opts [Integer] :between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, for Delivery services, the response received so far will be considered complete and the fetch will end. For Compute services, timeout expiration is treated as a failure of the backend connection, and an error is generated. May be set at runtime using `bereq.between_bytes_timeout`. (default to 10000)
|
|
83
83
|
# @option opts [Integer] :connect_timeout How long to wait for a timeout in milliseconds. Optional.
|
|
84
84
|
# @option opts [Integer] :first_byte_timeout How long to wait for the first byte in milliseconds. Optional.
|
|
85
85
|
# @option opts [Integer] :max_conn_default Maximum number of connections. Optional. (default to 200)
|
|
@@ -439,7 +439,7 @@ module Fastly
|
|
|
439
439
|
# @option opts [String] :comment A freeform descriptive note.
|
|
440
440
|
# @option opts [String] :type What type of load balance group to use.
|
|
441
441
|
# @option opts [String] :override_host The hostname to [override the Host header](https://www.fastly.com/documentation/guides/full-site-delivery/domains-and-origins/specifying-an-override-host/). Defaults to `null` meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. (default to 'null')
|
|
442
|
-
# @option opts [Integer] :between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. (default to 10000)
|
|
442
|
+
# @option opts [Integer] :between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, for Delivery services, the response received so far will be considered complete and the fetch will end. For Compute services, timeout expiration is treated as a failure of the backend connection, and an error is generated. May be set at runtime using `bereq.between_bytes_timeout`. (default to 10000)
|
|
443
443
|
# @option opts [Integer] :connect_timeout How long to wait for a timeout in milliseconds. Optional.
|
|
444
444
|
# @option opts [Integer] :first_byte_timeout How long to wait for the first byte in milliseconds. Optional.
|
|
445
445
|
# @option opts [Integer] :max_conn_default Maximum number of connections. Optional. (default to 200)
|
|
@@ -477,7 +477,7 @@ module Fastly
|
|
|
477
477
|
# @option opts [String] :comment A freeform descriptive note.
|
|
478
478
|
# @option opts [String] :type What type of load balance group to use.
|
|
479
479
|
# @option opts [String] :override_host The hostname to [override the Host header](https://www.fastly.com/documentation/guides/full-site-delivery/domains-and-origins/specifying-an-override-host/). Defaults to `null` meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. (default to 'null')
|
|
480
|
-
# @option opts [Integer] :between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. (default to 10000)
|
|
480
|
+
# @option opts [Integer] :between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, for Delivery services, the response received so far will be considered complete and the fetch will end. For Compute services, timeout expiration is treated as a failure of the backend connection, and an error is generated. May be set at runtime using `bereq.between_bytes_timeout`. (default to 10000)
|
|
481
481
|
# @option opts [Integer] :connect_timeout How long to wait for a timeout in milliseconds. Optional.
|
|
482
482
|
# @option opts [Integer] :first_byte_timeout How long to wait for the first byte in milliseconds. Optional.
|
|
483
483
|
# @option opts [Integer] :max_conn_default Maximum number of connections. Optional. (default to 200)
|
|
@@ -0,0 +1,263 @@
|
|
|
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 ProductApiDiscoveryApi
|
|
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 API Discovery product on a service.
|
|
22
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
|
23
|
+
# @return [nil]
|
|
24
|
+
def disable_product_api_discovery(opts = {})
|
|
25
|
+
disable_product_api_discovery_with_http_info(opts)
|
|
26
|
+
nil
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Disable product
|
|
30
|
+
# Disable the API Discovery product on a service.
|
|
31
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
|
32
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
33
|
+
def disable_product_api_discovery_with_http_info(opts = {})
|
|
34
|
+
if @api_client.config.debugging
|
|
35
|
+
@api_client.config.logger.debug 'Calling API: ProductApiDiscoveryApi.disable_product_api_discovery ...'
|
|
36
|
+
end
|
|
37
|
+
# unbox the parameters from the hash
|
|
38
|
+
service_id = opts[:'service_id']
|
|
39
|
+
# verify the required parameter 'service_id' is set
|
|
40
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling ProductApiDiscoveryApi.disable_product_api_discovery"
|
|
42
|
+
end
|
|
43
|
+
# resource path
|
|
44
|
+
local_var_path = '/enabled-products/v1/api_discovery/services/{service_id}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
|
|
45
|
+
|
|
46
|
+
# query parameters
|
|
47
|
+
query_params = opts[:query_params] || {}
|
|
48
|
+
|
|
49
|
+
# header parameters
|
|
50
|
+
header_params = opts[:header_params] || {}
|
|
51
|
+
|
|
52
|
+
# form parameters
|
|
53
|
+
form_params = opts[:form_params] || {}
|
|
54
|
+
|
|
55
|
+
# http body (model)
|
|
56
|
+
post_body = opts[:debug_body]
|
|
57
|
+
|
|
58
|
+
# return_type
|
|
59
|
+
return_type = opts[:debug_return_type]
|
|
60
|
+
|
|
61
|
+
# auth_names
|
|
62
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
|
63
|
+
|
|
64
|
+
new_options = opts.merge(
|
|
65
|
+
:operation => :"ProductApiDiscoveryApi.disable_product_api_discovery",
|
|
66
|
+
:header_params => header_params,
|
|
67
|
+
:query_params => query_params,
|
|
68
|
+
:form_params => form_params,
|
|
69
|
+
:body => post_body,
|
|
70
|
+
:auth_names => auth_names,
|
|
71
|
+
:return_type => return_type
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
75
|
+
if @api_client.config.debugging
|
|
76
|
+
@api_client.config.logger.debug "API called: ProductApiDiscoveryApi#disable_product_api_discovery\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
77
|
+
end
|
|
78
|
+
return data, status_code, headers
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Enable product
|
|
82
|
+
# Enable the API Discovery product on a service.
|
|
83
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
|
84
|
+
# @return [ApiDiscoveryResponseEnable]
|
|
85
|
+
def enable_product_api_discovery(opts = {})
|
|
86
|
+
data, _status_code, _headers = enable_product_api_discovery_with_http_info(opts)
|
|
87
|
+
data
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Enable product
|
|
91
|
+
# Enable the API Discovery product on a service.
|
|
92
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
|
93
|
+
# @return [Array<(ApiDiscoveryResponseEnable, Integer, Hash)>] ApiDiscoveryResponseEnable data, response status code and response headers
|
|
94
|
+
def enable_product_api_discovery_with_http_info(opts = {})
|
|
95
|
+
if @api_client.config.debugging
|
|
96
|
+
@api_client.config.logger.debug 'Calling API: ProductApiDiscoveryApi.enable_product_api_discovery ...'
|
|
97
|
+
end
|
|
98
|
+
# unbox the parameters from the hash
|
|
99
|
+
service_id = opts[:'service_id']
|
|
100
|
+
# verify the required parameter 'service_id' is set
|
|
101
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
|
102
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling ProductApiDiscoveryApi.enable_product_api_discovery"
|
|
103
|
+
end
|
|
104
|
+
# resource path
|
|
105
|
+
local_var_path = '/enabled-products/v1/api_discovery/services/{service_id}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
|
|
106
|
+
|
|
107
|
+
# query parameters
|
|
108
|
+
query_params = opts[:query_params] || {}
|
|
109
|
+
|
|
110
|
+
# header parameters
|
|
111
|
+
header_params = opts[:header_params] || {}
|
|
112
|
+
# HTTP header 'Accept' (if needed)
|
|
113
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
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] || 'ApiDiscoveryResponseEnable'
|
|
123
|
+
|
|
124
|
+
# auth_names
|
|
125
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
|
126
|
+
|
|
127
|
+
new_options = opts.merge(
|
|
128
|
+
:operation => :"ProductApiDiscoveryApi.enable_product_api_discovery",
|
|
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(:PUT, local_var_path, new_options)
|
|
138
|
+
if @api_client.config.debugging
|
|
139
|
+
@api_client.config.logger.debug "API called: ProductApiDiscoveryApi#enable_product_api_discovery\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
140
|
+
end
|
|
141
|
+
return data, status_code, headers
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Get product enablement status
|
|
145
|
+
# Get the enablement status of the API Discovery product on a service.
|
|
146
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
|
147
|
+
# @return [ApiDiscoveryResponseEnable]
|
|
148
|
+
def get_product_api_discovery(opts = {})
|
|
149
|
+
data, _status_code, _headers = get_product_api_discovery_with_http_info(opts)
|
|
150
|
+
data
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Get product enablement status
|
|
154
|
+
# Get the enablement status of the API Discovery product on a service.
|
|
155
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
|
156
|
+
# @return [Array<(ApiDiscoveryResponseEnable, Integer, Hash)>] ApiDiscoveryResponseEnable data, response status code and response headers
|
|
157
|
+
def get_product_api_discovery_with_http_info(opts = {})
|
|
158
|
+
if @api_client.config.debugging
|
|
159
|
+
@api_client.config.logger.debug 'Calling API: ProductApiDiscoveryApi.get_product_api_discovery ...'
|
|
160
|
+
end
|
|
161
|
+
# unbox the parameters from the hash
|
|
162
|
+
service_id = opts[:'service_id']
|
|
163
|
+
# verify the required parameter 'service_id' is set
|
|
164
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
|
165
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling ProductApiDiscoveryApi.get_product_api_discovery"
|
|
166
|
+
end
|
|
167
|
+
# resource path
|
|
168
|
+
local_var_path = '/enabled-products/v1/api_discovery/services/{service_id}'.sub('{' + 'service_id' + '}', CGI.escape(service_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] || 'ApiDiscoveryResponseEnable'
|
|
186
|
+
|
|
187
|
+
# auth_names
|
|
188
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
|
189
|
+
|
|
190
|
+
new_options = opts.merge(
|
|
191
|
+
:operation => :"ProductApiDiscoveryApi.get_product_api_discovery",
|
|
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: ProductApiDiscoveryApi#get_product_api_discovery\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
203
|
+
end
|
|
204
|
+
return data, status_code, headers
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# Get services with product enabled
|
|
208
|
+
# Get all the services for a customer that has the API Discovery product enabled.
|
|
209
|
+
# @return [ApiDiscoveryResponseBodyGetAllServices]
|
|
210
|
+
def get_services_product_api_discovery(opts = {})
|
|
211
|
+
data, _status_code, _headers = get_services_product_api_discovery_with_http_info(opts)
|
|
212
|
+
data
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# Get services with product enabled
|
|
216
|
+
# Get all the services for a customer that has the API Discovery product enabled.
|
|
217
|
+
# @return [Array<(ApiDiscoveryResponseBodyGetAllServices, Integer, Hash)>] ApiDiscoveryResponseBodyGetAllServices data, response status code and response headers
|
|
218
|
+
def get_services_product_api_discovery_with_http_info(opts = {})
|
|
219
|
+
if @api_client.config.debugging
|
|
220
|
+
@api_client.config.logger.debug 'Calling API: ProductApiDiscoveryApi.get_services_product_api_discovery ...'
|
|
221
|
+
end
|
|
222
|
+
# unbox the parameters from the hash
|
|
223
|
+
# resource path
|
|
224
|
+
local_var_path = '/enabled-products/v1/api_discovery/services'
|
|
225
|
+
|
|
226
|
+
# query parameters
|
|
227
|
+
query_params = opts[:query_params] || {}
|
|
228
|
+
|
|
229
|
+
# header parameters
|
|
230
|
+
header_params = opts[:header_params] || {}
|
|
231
|
+
# HTTP header 'Accept' (if needed)
|
|
232
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
233
|
+
|
|
234
|
+
# form parameters
|
|
235
|
+
form_params = opts[:form_params] || {}
|
|
236
|
+
|
|
237
|
+
# http body (model)
|
|
238
|
+
post_body = opts[:debug_body]
|
|
239
|
+
|
|
240
|
+
# return_type
|
|
241
|
+
return_type = opts[:debug_return_type] || 'ApiDiscoveryResponseBodyGetAllServices'
|
|
242
|
+
|
|
243
|
+
# auth_names
|
|
244
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
|
245
|
+
|
|
246
|
+
new_options = opts.merge(
|
|
247
|
+
:operation => :"ProductApiDiscoveryApi.get_services_product_api_discovery",
|
|
248
|
+
:header_params => header_params,
|
|
249
|
+
:query_params => query_params,
|
|
250
|
+
:form_params => form_params,
|
|
251
|
+
:body => post_body,
|
|
252
|
+
:auth_names => auth_names,
|
|
253
|
+
:return_type => return_type
|
|
254
|
+
)
|
|
255
|
+
|
|
256
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
257
|
+
if @api_client.config.debugging
|
|
258
|
+
@api_client.config.logger.debug "API called: ProductApiDiscoveryApi#get_services_product_api_discovery\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
259
|
+
end
|
|
260
|
+
return data, status_code, headers
|
|
261
|
+
end
|
|
262
|
+
end
|
|
263
|
+
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 [InlineResponse2008]
|
|
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<(InlineResponse2008, Integer, Hash)>] InlineResponse2008 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] || 'InlineResponse2008'
|
|
307
307
|
|
|
308
308
|
# auth_names
|
|
309
309
|
auth_names = opts[:debug_auth_names] || ['token']
|