fastly 8.0.0 → 8.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +205 -130
- data/Gemfile.lock +1 -1
- data/README.md +13 -7
- data/docs/{ErrorResponse.md → AutomationTokenErrorResponse.md} +1 -1
- data/docs/AutomationTokensApi.md +2 -2
- data/docs/Backend.md +1 -1
- data/docs/BackendApi.md +4 -4
- data/docs/BackendResponse.md +1 -1
- data/docs/BillingInvoicesApi.md +96 -0
- data/docs/CreateResponseObjectRequest.md +16 -0
- data/docs/Director.md +1 -1
- data/docs/DirectorApi.md +2 -2
- data/docs/DirectorResponse.md +1 -1
- data/docs/DomainInspectorHistoricalApi.md +4 -4
- data/docs/DomainInspectorRealtimeEntry.md +1 -1
- data/docs/Error.md +13 -0
- data/docs/ErrorResponseData.md +11 -0
- data/docs/Invoice.md +18 -0
- data/docs/InvoiceResponse.md +18 -0
- data/docs/Invoicelineitems.md +18 -0
- data/docs/KvStoreApi.md +1 -1
- data/docs/ListInvoicesResponse.md +11 -0
- data/docs/Listinvoices.md +11 -0
- data/docs/LoggingScalyrAdditional.md +1 -1
- data/docs/LoggingScalyrApi.md +4 -4
- data/docs/LoggingScalyrResponse.md +1 -1
- data/docs/Metadata.md +13 -0
- data/docs/OriginInspectorHistoricalApi.md +4 -4
- data/docs/OriginInspectorRealtimeEntry.md +1 -1
- data/docs/PoolAdditional.md +1 -1
- data/docs/PoolApi.md +4 -4
- data/docs/PoolResponse.md +1 -1
- data/docs/PoolResponsePost.md +1 -1
- data/docs/Pop.md +2 -2
- data/docs/PublishApi.md +1 -1
- data/docs/RealtimeEntry.md +1 -1
- data/docs/ResponseObjectApi.md +4 -0
- data/docs/Results.md +2 -0
- data/docs/SecretStoreApi.md +4 -2
- data/docs/SecretStoreItemApi.md +2 -2
- data/docs/ServiceDetail.md +1 -1
- data/docs/ServiceListResponse.md +2 -2
- data/docs/ServiceListResponseAllOf.md +2 -2
- data/docs/ServiceResponse.md +1 -1
- data/docs/ServiceResponseAllOf.md +1 -1
- data/docs/TlsConfigurationResponseAttributes.md +2 -2
- data/docs/TlsConfigurationResponseAttributesAllOf.md +2 -2
- data/docs/TlsCsr.md +10 -0
- data/docs/TlsCsrData.md +12 -0
- data/docs/TlsCsrDataAttributes.md +20 -0
- data/docs/TlsCsrErrorResponse.md +10 -0
- data/docs/TlsCsrResponse.md +10 -0
- data/docs/TlsCsrResponseAttributes.md +10 -0
- data/docs/TlsCsrResponseData.md +13 -0
- data/docs/TlsCsrsApi.md +52 -0
- data/docs/TlsSubscriptionResponseAttributes.md +1 -0
- data/docs/TlsSubscriptionResponseAttributesAllOf.md +1 -0
- data/docs/TokensApi.md +1 -1
- data/docs/TypeTlsCsr.md +9 -0
- data/docs/VclApi.md +1 -1
- data/docs/WafActiveRulesApi.md +1 -1
- data/lib/fastly/api/automation_tokens_api.rb +3 -3
- data/lib/fastly/api/backend_api.rb +4 -4
- data/lib/fastly/api/billing_invoices_api.rb +151 -0
- data/lib/fastly/api/director_api.rb +2 -2
- data/lib/fastly/api/domain_inspector_historical_api.rb +4 -4
- data/lib/fastly/api/kv_store_api.rb +2 -2
- data/lib/fastly/api/logging_scalyr_api.rb +4 -4
- data/lib/fastly/api/origin_inspector_historical_api.rb +4 -4
- data/lib/fastly/api/pool_api.rb +4 -4
- data/lib/fastly/api/publish_api.rb +2 -2
- data/lib/fastly/api/response_object_api.rb +8 -4
- data/lib/fastly/api/secret_store_api.rb +5 -2
- data/lib/fastly/api/secret_store_item_api.rb +2 -2
- data/lib/fastly/api/tls_csrs_api.rb +83 -0
- data/lib/fastly/api/tokens_api.rb +2 -2
- data/lib/fastly/api/vcl_api.rb +2 -2
- data/lib/fastly/api/waf_active_rules_api.rb +2 -2
- data/lib/fastly/configuration.rb +18 -0
- data/lib/fastly/models/{error_response.rb → automation_token_error_response.rb} +3 -3
- data/lib/fastly/models/backend.rb +1 -1
- data/lib/fastly/models/backend_response.rb +1 -1
- data/lib/fastly/models/create_response_object_request.rb +280 -0
- data/lib/fastly/models/director.rb +1 -1
- data/lib/fastly/models/director_response.rb +1 -1
- data/lib/fastly/models/domain_inspector_realtime_entry.rb +1 -1
- data/lib/fastly/models/error.rb +243 -0
- data/lib/fastly/models/error_response_data.rb +225 -0
- data/lib/fastly/models/event_attributes.rb +2 -2
- data/lib/fastly/models/invoice.rb +298 -0
- data/lib/fastly/models/invoice_response.rb +305 -0
- data/lib/fastly/models/invoicelineitems.rb +297 -0
- data/lib/fastly/models/list_invoices_response.rb +234 -0
- data/lib/fastly/models/listinvoices.rb +227 -0
- data/lib/fastly/models/logging_scalyr_additional.rb +1 -1
- data/lib/fastly/models/logging_scalyr_response.rb +1 -1
- data/lib/fastly/models/metadata.rb +250 -0
- data/lib/fastly/models/origin_inspector_realtime_entry.rb +1 -1
- data/lib/fastly/models/pool_additional.rb +1 -1
- data/lib/fastly/models/pool_response.rb +1 -1
- data/lib/fastly/models/pool_response_post.rb +1 -1
- data/lib/fastly/models/pop.rb +2 -2
- data/lib/fastly/models/realtime_entry.rb +1 -1
- data/lib/fastly/models/relationship_tls_certificate.rb +1 -1
- data/lib/fastly/models/relationship_tls_configuration.rb +1 -1
- data/lib/fastly/models/results.rb +21 -1
- data/lib/fastly/models/service_detail.rb +1 -1
- data/lib/fastly/models/service_list_response.rb +2 -2
- data/lib/fastly/models/service_list_response_all_of.rb +2 -2
- data/lib/fastly/models/service_response.rb +1 -1
- data/lib/fastly/models/service_response_all_of.rb +1 -1
- data/lib/fastly/models/tls_configuration_response_attributes.rb +2 -2
- data/lib/fastly/models/tls_configuration_response_attributes_all_of.rb +2 -2
- data/lib/fastly/models/tls_csr.rb +216 -0
- data/lib/fastly/models/tls_csr_data.rb +236 -0
- data/lib/fastly/models/tls_csr_data_attributes.rb +358 -0
- data/lib/fastly/models/tls_csr_error_response.rb +218 -0
- data/lib/fastly/models/tls_csr_response.rb +216 -0
- data/lib/fastly/models/tls_csr_response_attributes.rb +217 -0
- data/lib/fastly/models/tls_csr_response_data.rb +245 -0
- data/lib/fastly/models/tls_subscription_data_attributes.rb +2 -2
- data/lib/fastly/models/tls_subscription_response_attributes.rb +14 -4
- data/lib/fastly/models/tls_subscription_response_attributes_all_of.rb +14 -4
- data/lib/fastly/models/type_tls_csr.rb +34 -0
- data/lib/fastly/version.rb +1 -1
- data/lib/fastly.rb +20 -1
- data/sig.json +1 -1
- metadata +42 -4
@@ -0,0 +1,151 @@
|
|
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://developer.fastly.com/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 BillingInvoicesApi
|
15
|
+
attr_accessor :api_client
|
16
|
+
|
17
|
+
def initialize(api_client = ApiClient.default)
|
18
|
+
@api_client = api_client
|
19
|
+
end
|
20
|
+
# Get invoice by ID.
|
21
|
+
# Returns invoice associated with the invoice id.
|
22
|
+
# @option opts [String] :invoice_id Alphanumeric string identifying the invoice. (required)
|
23
|
+
# @return [InvoiceResponse]
|
24
|
+
def get_invoice_by_invoice_id(opts = {})
|
25
|
+
data, _status_code, _headers = get_invoice_by_invoice_id_with_http_info(opts)
|
26
|
+
data
|
27
|
+
end
|
28
|
+
|
29
|
+
# Get invoice by ID.
|
30
|
+
# Returns invoice associated with the invoice id.
|
31
|
+
# @option opts [String] :invoice_id Alphanumeric string identifying the invoice. (required)
|
32
|
+
# @return [Array<(InvoiceResponse, Integer, Hash)>] InvoiceResponse data, response status code and response headers
|
33
|
+
def get_invoice_by_invoice_id_with_http_info(opts = {})
|
34
|
+
if @api_client.config.debugging
|
35
|
+
@api_client.config.logger.debug 'Calling API: BillingInvoicesApi.get_invoice_by_invoice_id ...'
|
36
|
+
end
|
37
|
+
# unbox the parameters from the hash
|
38
|
+
invoice_id = opts[:'invoice_id']
|
39
|
+
# verify the required parameter 'invoice_id' is set
|
40
|
+
if @api_client.config.client_side_validation && invoice_id.nil?
|
41
|
+
fail ArgumentError, "Missing the required parameter 'invoice_id' when calling BillingInvoicesApi.get_invoice_by_invoice_id"
|
42
|
+
end
|
43
|
+
# resource path
|
44
|
+
local_var_path = '/billing/v3/invoices/{invoice_id}'.sub('{' + 'invoice_id' + '}', CGI.escape(invoice_id.to_s))
|
45
|
+
|
46
|
+
# query parameters
|
47
|
+
query_params = opts[:query_params] || {}
|
48
|
+
|
49
|
+
# header parameters
|
50
|
+
header_params = opts[:header_params] || {}
|
51
|
+
# HTTP header 'Accept' (if needed)
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
|
+
|
54
|
+
# form parameters
|
55
|
+
form_params = opts[:form_params] || {}
|
56
|
+
|
57
|
+
# http body (model)
|
58
|
+
post_body = opts[:debug_body]
|
59
|
+
|
60
|
+
# return_type
|
61
|
+
return_type = opts[:debug_return_type] || 'InvoiceResponse'
|
62
|
+
|
63
|
+
# auth_names
|
64
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
65
|
+
|
66
|
+
new_options = opts.merge(
|
67
|
+
:operation => :"BillingInvoicesApi.get_invoice_by_invoice_id",
|
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(:GET, local_var_path, new_options)
|
77
|
+
if @api_client.config.debugging
|
78
|
+
@api_client.config.logger.debug "API called: BillingInvoicesApi#get_invoice_by_invoice_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
79
|
+
end
|
80
|
+
return data, status_code, headers
|
81
|
+
end
|
82
|
+
|
83
|
+
# List of invoices.
|
84
|
+
# Returns the list of invoices, sorted by billing start date (newest to oldest).
|
85
|
+
# @option opts [String] :billing_start_date
|
86
|
+
# @option opts [String] :billing_end_date
|
87
|
+
# @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
|
88
|
+
# @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.
|
89
|
+
# @return [ListInvoicesResponse]
|
90
|
+
def list_invoices(opts = {})
|
91
|
+
data, _status_code, _headers = list_invoices_with_http_info(opts)
|
92
|
+
data
|
93
|
+
end
|
94
|
+
|
95
|
+
# List of invoices.
|
96
|
+
# Returns the list of invoices, sorted by billing start date (newest to oldest).
|
97
|
+
# @option opts [String] :billing_start_date
|
98
|
+
# @option opts [String] :billing_end_date
|
99
|
+
# @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
|
100
|
+
# @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.
|
101
|
+
# @return [Array<(ListInvoicesResponse, Integer, Hash)>] ListInvoicesResponse data, response status code and response headers
|
102
|
+
def list_invoices_with_http_info(opts = {})
|
103
|
+
if @api_client.config.debugging
|
104
|
+
@api_client.config.logger.debug 'Calling API: BillingInvoicesApi.list_invoices ...'
|
105
|
+
end
|
106
|
+
# unbox the parameters from the hash
|
107
|
+
# resource path
|
108
|
+
local_var_path = '/billing/v3/invoices'
|
109
|
+
|
110
|
+
# query parameters
|
111
|
+
query_params = opts[:query_params] || {}
|
112
|
+
query_params[:'billing_start_date'] = opts[:'billing_start_date'] if !opts[:'billing_start_date'].nil?
|
113
|
+
query_params[:'billing_end_date'] = opts[:'billing_end_date'] if !opts[:'billing_end_date'].nil?
|
114
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
115
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
116
|
+
|
117
|
+
# header parameters
|
118
|
+
header_params = opts[:header_params] || {}
|
119
|
+
# HTTP header 'Accept' (if needed)
|
120
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
121
|
+
|
122
|
+
# form parameters
|
123
|
+
form_params = opts[:form_params] || {}
|
124
|
+
|
125
|
+
# http body (model)
|
126
|
+
post_body = opts[:debug_body]
|
127
|
+
|
128
|
+
# return_type
|
129
|
+
return_type = opts[:debug_return_type] || 'ListInvoicesResponse'
|
130
|
+
|
131
|
+
# auth_names
|
132
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
133
|
+
|
134
|
+
new_options = opts.merge(
|
135
|
+
:operation => :"BillingInvoicesApi.list_invoices",
|
136
|
+
:header_params => header_params,
|
137
|
+
:query_params => query_params,
|
138
|
+
:form_params => form_params,
|
139
|
+
:body => post_body,
|
140
|
+
:auth_names => auth_names,
|
141
|
+
:return_type => return_type
|
142
|
+
)
|
143
|
+
|
144
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
145
|
+
if @api_client.config.debugging
|
146
|
+
@api_client.config.logger.debug "API called: BillingInvoicesApi#list_invoices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
147
|
+
end
|
148
|
+
return data, status_code, headers
|
149
|
+
end
|
150
|
+
end
|
151
|
+
end
|
@@ -26,7 +26,7 @@ module Fastly
|
|
26
26
|
# @option opts [String] :comment A freeform descriptive note.
|
27
27
|
# @option opts [String] :name Name for the Director.
|
28
28
|
# @option opts [Integer] :quorum The percentage of capacity that needs to be up for a director to be considered up. `0` to `100`. (default to 75)
|
29
|
-
# @option opts [String] :shield Selected POP to serve as a shield for the backends. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. (default to 'null')
|
29
|
+
# @option opts [String] :shield Selected POP to serve as a shield for the backends. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/) to get a list of available POPs used for shielding. (default to 'null')
|
30
30
|
# @option opts [Integer] :type What type of load balance group to use. (default to 1)
|
31
31
|
# @option opts [Integer] :retries How many backends to search if it fails. (default to 5)
|
32
32
|
# @return [DirectorResponse]
|
@@ -44,7 +44,7 @@ module Fastly
|
|
44
44
|
# @option opts [String] :comment A freeform descriptive note.
|
45
45
|
# @option opts [String] :name Name for the Director.
|
46
46
|
# @option opts [Integer] :quorum The percentage of capacity that needs to be up for a director to be considered up. `0` to `100`. (default to 75)
|
47
|
-
# @option opts [String] :shield Selected POP to serve as a shield for the backends. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. (default to 'null')
|
47
|
+
# @option opts [String] :shield Selected POP to serve as a shield for the backends. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/) to get a list of available POPs used for shielding. (default to 'null')
|
48
48
|
# @option opts [Integer] :type What type of load balance group to use. (default to 1)
|
49
49
|
# @option opts [Integer] :retries How many backends to search if it fails. (default to 5)
|
50
50
|
# @return [Array<(DirectorResponse, Integer, Hash)>] DirectorResponse data, response status code and response headers
|
@@ -23,10 +23,10 @@ module Fastly
|
|
23
23
|
# @option opts [String] :start A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the inclusive start of the query time range. If not provided, a default is chosen based on the provided `downsample` value.
|
24
24
|
# @option opts [String] :_end A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided `downsample` value.
|
25
25
|
# @option opts [String] :downsample Duration of sample windows. (default to 'hour')
|
26
|
-
# @option opts [String] :metric The
|
26
|
+
# @option opts [String] :metric The metrics to retrieve. Multiple values should be comma-separated. (default to 'edge_requests')
|
27
27
|
# @option opts [String] :group_by Dimensions to return in the query. Multiple dimensions may be separated by commas. For example, `group_by=domain` will return one timeseries for every domain, as a total across all datacenters (POPs).
|
28
28
|
# @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
|
29
|
-
# @option opts [String] :cursor Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty.
|
29
|
+
# @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.
|
30
30
|
# @option opts [String] :region Limit query to one or more specific geographic regions. Values should be comma-separated.
|
31
31
|
# @option opts [String] :datacenter Limit query to one or more specific POPs. Values should be comma-separated.
|
32
32
|
# @option opts [String] :domain Limit query to one or more specific domains. Values should be comma-separated.
|
@@ -42,10 +42,10 @@ module Fastly
|
|
42
42
|
# @option opts [String] :start A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the inclusive start of the query time range. If not provided, a default is chosen based on the provided `downsample` value.
|
43
43
|
# @option opts [String] :_end A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided `downsample` value.
|
44
44
|
# @option opts [String] :downsample Duration of sample windows. (default to 'hour')
|
45
|
-
# @option opts [String] :metric The
|
45
|
+
# @option opts [String] :metric The metrics to retrieve. Multiple values should be comma-separated. (default to 'edge_requests')
|
46
46
|
# @option opts [String] :group_by Dimensions to return in the query. Multiple dimensions may be separated by commas. For example, `group_by=domain` will return one timeseries for every domain, as a total across all datacenters (POPs).
|
47
47
|
# @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
|
48
|
-
# @option opts [String] :cursor Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty.
|
48
|
+
# @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.
|
49
49
|
# @option opts [String] :region Limit query to one or more specific geographic regions. Values should be comma-separated.
|
50
50
|
# @option opts [String] :datacenter Limit query to one or more specific POPs. Values should be comma-separated.
|
51
51
|
# @option opts [String] :domain Limit query to one or more specific domains. Values should be comma-separated.
|
@@ -210,7 +210,7 @@ module Fastly
|
|
210
210
|
# List KV stores.
|
211
211
|
# Get all stores for a given customer.
|
212
212
|
# @option opts [String] :cursor
|
213
|
-
# @option opts [Integer] :limit (default to
|
213
|
+
# @option opts [Integer] :limit (default to 1000)
|
214
214
|
# @return [InlineResponse2003]
|
215
215
|
def get_stores(opts = {})
|
216
216
|
data, _status_code, _headers = get_stores_with_http_info(opts)
|
@@ -220,7 +220,7 @@ module Fastly
|
|
220
220
|
# List KV stores.
|
221
221
|
# Get all stores for a given customer.
|
222
222
|
# @option opts [String] :cursor
|
223
|
-
# @option opts [Integer] :limit (default to
|
223
|
+
# @option opts [Integer] :limit (default to 1000)
|
224
224
|
# @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
|
225
225
|
def get_stores_with_http_info(opts = {})
|
226
226
|
if @api_client.config.debugging
|
@@ -27,7 +27,7 @@ module Fastly
|
|
27
27
|
# @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
|
28
28
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
29
29
|
# @option opts [String] :region The region that log data will be sent to. (default to 'US')
|
30
|
-
# @option opts [String] :token The token to use for authentication
|
30
|
+
# @option opts [String] :token The token to use for authentication.
|
31
31
|
# @option opts [String] :project_id The name of the logfile within Scalyr. (default to 'logplex')
|
32
32
|
# @return [LoggingScalyrResponse]
|
33
33
|
def create_log_scalyr(opts = {})
|
@@ -45,7 +45,7 @@ module Fastly
|
|
45
45
|
# @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
|
46
46
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
47
47
|
# @option opts [String] :region The region that log data will be sent to. (default to 'US')
|
48
|
-
# @option opts [String] :token The token to use for authentication
|
48
|
+
# @option opts [String] :token The token to use for authentication.
|
49
49
|
# @option opts [String] :project_id The name of the logfile within Scalyr. (default to 'logplex')
|
50
50
|
# @return [Array<(LoggingScalyrResponse, Integer, Hash)>] LoggingScalyrResponse data, response status code and response headers
|
51
51
|
def create_log_scalyr_with_http_info(opts = {})
|
@@ -363,7 +363,7 @@ module Fastly
|
|
363
363
|
# @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
|
364
364
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
365
365
|
# @option opts [String] :region The region that log data will be sent to. (default to 'US')
|
366
|
-
# @option opts [String] :token The token to use for authentication
|
366
|
+
# @option opts [String] :token The token to use for authentication.
|
367
367
|
# @option opts [String] :project_id The name of the logfile within Scalyr. (default to 'logplex')
|
368
368
|
# @return [LoggingScalyrResponse]
|
369
369
|
def update_log_scalyr(opts = {})
|
@@ -382,7 +382,7 @@ module Fastly
|
|
382
382
|
# @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
|
383
383
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
384
384
|
# @option opts [String] :region The region that log data will be sent to. (default to 'US')
|
385
|
-
# @option opts [String] :token The token to use for authentication
|
385
|
+
# @option opts [String] :token The token to use for authentication.
|
386
386
|
# @option opts [String] :project_id The name of the logfile within Scalyr. (default to 'logplex')
|
387
387
|
# @return [Array<(LoggingScalyrResponse, Integer, Hash)>] LoggingScalyrResponse data, response status code and response headers
|
388
388
|
def update_log_scalyr_with_http_info(opts = {})
|
@@ -23,10 +23,10 @@ module Fastly
|
|
23
23
|
# @option opts [String] :start A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the inclusive start of the query time range. If not provided, a default is chosen based on the provided `downsample` value.
|
24
24
|
# @option opts [String] :_end A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided `downsample` value.
|
25
25
|
# @option opts [String] :downsample Duration of sample windows. (default to 'hour')
|
26
|
-
# @option opts [String] :metric The
|
26
|
+
# @option opts [String] :metric The metrics to retrieve. Multiple values should be comma-separated. (default to 'responses')
|
27
27
|
# @option opts [String] :group_by Dimensions to return in the query. Multiple dimensions may be separated by commas. For example, `group_by=host` will return one timeseries for every origin host, as a total across all POPs.
|
28
28
|
# @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
|
29
|
-
# @option opts [String] :cursor Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty.
|
29
|
+
# @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.
|
30
30
|
# @option opts [String] :region Limit query to one or more specific geographic regions. Values should be comma-separated.
|
31
31
|
# @option opts [String] :datacenter Limit query to one or more specific POPs. Values should be comma-separated.
|
32
32
|
# @option opts [String] :host Limit query to one or more specific origin hosts. Values should be comma-separated.
|
@@ -42,10 +42,10 @@ module Fastly
|
|
42
42
|
# @option opts [String] :start A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the inclusive start of the query time range. If not provided, a default is chosen based on the provided `downsample` value.
|
43
43
|
# @option opts [String] :_end A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided `downsample` value.
|
44
44
|
# @option opts [String] :downsample Duration of sample windows. (default to 'hour')
|
45
|
-
# @option opts [String] :metric The
|
45
|
+
# @option opts [String] :metric The metrics to retrieve. Multiple values should be comma-separated. (default to 'responses')
|
46
46
|
# @option opts [String] :group_by Dimensions to return in the query. Multiple dimensions may be separated by commas. For example, `group_by=host` will return one timeseries for every origin host, as a total across all POPs.
|
47
47
|
# @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
|
48
|
-
# @option opts [String] :cursor Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty.
|
48
|
+
# @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.
|
49
49
|
# @option opts [String] :region Limit query to one or more specific geographic regions. Values should be comma-separated.
|
50
50
|
# @option opts [String] :datacenter Limit query to one or more specific POPs. Values should be comma-separated.
|
51
51
|
# @option opts [String] :host Limit query to one or more specific origin hosts. Values should be comma-separated.
|
data/lib/fastly/api/pool_api.rb
CHANGED
@@ -32,7 +32,7 @@ module Fastly
|
|
32
32
|
# @option opts [String] :service_id
|
33
33
|
# @option opts [String] :version
|
34
34
|
# @option opts [String] :name Name for the Pool.
|
35
|
-
# @option opts [String] :shield Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. (default to 'null')
|
35
|
+
# @option opts [String] :shield Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/) to get a list of available POPs used for shielding. (default to 'null')
|
36
36
|
# @option opts [String] :request_condition Condition which, if met, will select this configuration during a request. Optional.
|
37
37
|
# @option opts [String] :tls_ciphers List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional.
|
38
38
|
# @option opts [String] :tls_sni_hostname SNI hostname. Optional.
|
@@ -69,7 +69,7 @@ module Fastly
|
|
69
69
|
# @option opts [String] :service_id
|
70
70
|
# @option opts [String] :version
|
71
71
|
# @option opts [String] :name Name for the Pool.
|
72
|
-
# @option opts [String] :shield Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. (default to 'null')
|
72
|
+
# @option opts [String] :shield Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/) to get a list of available POPs used for shielding. (default to 'null')
|
73
73
|
# @option opts [String] :request_condition Condition which, if met, will select this configuration during a request. Optional.
|
74
74
|
# @option opts [String] :tls_ciphers List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional.
|
75
75
|
# @option opts [String] :tls_sni_hostname SNI hostname. Optional.
|
@@ -429,7 +429,7 @@ module Fastly
|
|
429
429
|
# @option opts [String] :service_id
|
430
430
|
# @option opts [String] :version
|
431
431
|
# @option opts [String] :name Name for the Pool.
|
432
|
-
# @option opts [String] :shield Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. (default to 'null')
|
432
|
+
# @option opts [String] :shield Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/) to get a list of available POPs used for shielding. (default to 'null')
|
433
433
|
# @option opts [String] :request_condition Condition which, if met, will select this configuration during a request. Optional.
|
434
434
|
# @option opts [String] :tls_ciphers List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional.
|
435
435
|
# @option opts [String] :tls_sni_hostname SNI hostname. Optional.
|
@@ -467,7 +467,7 @@ module Fastly
|
|
467
467
|
# @option opts [String] :service_id
|
468
468
|
# @option opts [String] :version
|
469
469
|
# @option opts [String] :name Name for the Pool.
|
470
|
-
# @option opts [String] :shield Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. (default to 'null')
|
470
|
+
# @option opts [String] :shield Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/) to get a list of available POPs used for shielding. (default to 'null')
|
471
471
|
# @option opts [String] :request_condition Condition which, if met, will select this configuration during a request. Optional.
|
472
472
|
# @option opts [String] :tls_ciphers List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional.
|
473
473
|
# @option opts [String] :tls_sni_hostname SNI hostname. Optional.
|
@@ -18,7 +18,7 @@ module Fastly
|
|
18
18
|
@api_client = api_client
|
19
19
|
end
|
20
20
|
# Send messages to Fanout subscribers
|
21
|
-
# Send one or more messages to [Fanout](https://
|
21
|
+
# Send one or more messages to [Fanout](https://www.fastly.com/documentation/learning/concepts/real-time-messaging/fanout) subscribers. Each message specifies a channel, and Fanout will deliver the message to all subscribers of its channel. > **IMPORTANT:** For compatibility with GRIP, this endpoint requires a trailing slash, and the API token may be provided in the `Authorization` header (instead of the `Fastly-Key` header) using the `Bearer` scheme.
|
22
22
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
23
23
|
# @option opts [PublishRequest] :publish_request
|
24
24
|
# @return [String]
|
@@ -28,7 +28,7 @@ module Fastly
|
|
28
28
|
end
|
29
29
|
|
30
30
|
# Send messages to Fanout subscribers
|
31
|
-
# Send one or more messages to [Fanout](https://
|
31
|
+
# Send one or more messages to [Fanout](https://www.fastly.com/documentation/learning/concepts/real-time-messaging/fanout) subscribers. Each message specifies a channel, and Fanout will deliver the message to all subscribers of its channel. > **IMPORTANT:** For compatibility with GRIP, this endpoint requires a trailing slash, and the API token may be provided in the `Authorization` header (instead of the `Fastly-Key` header) using the `Bearer` scheme.
|
32
32
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
33
33
|
# @option opts [PublishRequest] :publish_request
|
34
34
|
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
@@ -21,6 +21,7 @@ module Fastly
|
|
21
21
|
# Creates a new Response Object.
|
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 [CreateResponseObjectRequest] :create_response_object_request
|
24
25
|
# @return [ResponseObjectResponse]
|
25
26
|
def create_response_object(opts = {})
|
26
27
|
data, _status_code, _headers = create_response_object_with_http_info(opts)
|
@@ -31,6 +32,7 @@ module Fastly
|
|
31
32
|
# Creates a new Response Object.
|
32
33
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
33
34
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
35
|
+
# @option opts [CreateResponseObjectRequest] :create_response_object_request
|
34
36
|
# @return [Array<(ResponseObjectResponse, Integer, Hash)>] ResponseObjectResponse data, response status code and response headers
|
35
37
|
def create_response_object_with_http_info(opts = {})
|
36
38
|
if @api_client.config.debugging
|
@@ -58,7 +60,7 @@ module Fastly
|
|
58
60
|
# HTTP header 'Accept' (if needed)
|
59
61
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
60
62
|
# HTTP header 'Content-Type'
|
61
|
-
content_type = @api_client.select_header_content_type(['application/
|
63
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
62
64
|
if !content_type.nil?
|
63
65
|
header_params['Content-Type'] = content_type
|
64
66
|
end
|
@@ -67,7 +69,7 @@ module Fastly
|
|
67
69
|
form_params = opts[:form_params] || {}
|
68
70
|
|
69
71
|
# http body (model)
|
70
|
-
post_body = opts[:debug_body]
|
72
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_response_object_request'])
|
71
73
|
|
72
74
|
# return_type
|
73
75
|
return_type = opts[:debug_return_type] || 'ResponseObjectResponse'
|
@@ -321,6 +323,7 @@ module Fastly
|
|
321
323
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
322
324
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
323
325
|
# @option opts [String] :response_object_name Name for the request settings. (required)
|
326
|
+
# @option opts [CreateResponseObjectRequest] :create_response_object_request
|
324
327
|
# @return [ResponseObjectResponse]
|
325
328
|
def update_response_object(opts = {})
|
326
329
|
data, _status_code, _headers = update_response_object_with_http_info(opts)
|
@@ -332,6 +335,7 @@ module Fastly
|
|
332
335
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
333
336
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
334
337
|
# @option opts [String] :response_object_name Name for the request settings. (required)
|
338
|
+
# @option opts [CreateResponseObjectRequest] :create_response_object_request
|
335
339
|
# @return [Array<(ResponseObjectResponse, Integer, Hash)>] ResponseObjectResponse data, response status code and response headers
|
336
340
|
def update_response_object_with_http_info(opts = {})
|
337
341
|
if @api_client.config.debugging
|
@@ -364,7 +368,7 @@ module Fastly
|
|
364
368
|
# HTTP header 'Accept' (if needed)
|
365
369
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
366
370
|
# HTTP header 'Content-Type'
|
367
|
-
content_type = @api_client.select_header_content_type(['application/
|
371
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
368
372
|
if !content_type.nil?
|
369
373
|
header_params['Content-Type'] = content_type
|
370
374
|
end
|
@@ -373,7 +377,7 @@ module Fastly
|
|
373
377
|
form_params = opts[:form_params] || {}
|
374
378
|
|
375
379
|
# http body (model)
|
376
|
-
post_body = opts[:debug_body]
|
380
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_response_object_request'])
|
377
381
|
|
378
382
|
# return_type
|
379
383
|
return_type = opts[:debug_return_type] || 'ResponseObjectResponse'
|
@@ -262,8 +262,9 @@ module Fastly
|
|
262
262
|
|
263
263
|
# Get all secret stores
|
264
264
|
# Get all secret stores.
|
265
|
-
# @option opts [String] :cursor Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty.
|
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
|
+
# @option opts [String] :name Returns a one-element array containing the details for the named secret store.
|
267
268
|
# @return [InlineResponse2005]
|
268
269
|
def get_secret_stores(opts = {})
|
269
270
|
data, _status_code, _headers = get_secret_stores_with_http_info(opts)
|
@@ -272,8 +273,9 @@ module Fastly
|
|
272
273
|
|
273
274
|
# Get all secret stores
|
274
275
|
# Get all secret stores.
|
275
|
-
# @option opts [String] :cursor Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty.
|
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.
|
276
277
|
# @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
|
278
|
+
# @option opts [String] :name Returns a one-element array containing the details for the named secret store.
|
277
279
|
# @return [Array<(InlineResponse2005, Integer, Hash)>] InlineResponse2005 data, response status code and response headers
|
278
280
|
def get_secret_stores_with_http_info(opts = {})
|
279
281
|
if @api_client.config.debugging
|
@@ -287,6 +289,7 @@ module Fastly
|
|
287
289
|
query_params = opts[:query_params] || {}
|
288
290
|
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
289
291
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
292
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
290
293
|
|
291
294
|
# header parameters
|
292
295
|
header_params = opts[:header_params] || {}
|
@@ -228,7 +228,7 @@ module Fastly
|
|
228
228
|
# List secrets within a store.
|
229
229
|
# List all secrets within a store.
|
230
230
|
# @option opts [String] :store_id (required)
|
231
|
-
# @option opts [String] :cursor Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty.
|
231
|
+
# @option opts [String] :cursor Cursor value from the `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
|
232
232
|
# @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
|
233
233
|
# @return [InlineResponse2006]
|
234
234
|
def get_secrets(opts = {})
|
@@ -239,7 +239,7 @@ module Fastly
|
|
239
239
|
# List secrets within a store.
|
240
240
|
# List all secrets within a store.
|
241
241
|
# @option opts [String] :store_id (required)
|
242
|
-
# @option opts [String] :cursor Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty.
|
242
|
+
# @option opts [String] :cursor Cursor value from the `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
|
243
243
|
# @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
|
244
244
|
# @return [Array<(InlineResponse2006, Integer, Hash)>] InlineResponse2006 data, response status code and response headers
|
245
245
|
def get_secrets_with_http_info(opts = {})
|
@@ -0,0 +1,83 @@
|
|
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://developer.fastly.com/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 TlsCsrsApi
|
15
|
+
attr_accessor :api_client
|
16
|
+
|
17
|
+
def initialize(api_client = ApiClient.default)
|
18
|
+
@api_client = api_client
|
19
|
+
end
|
20
|
+
# Create CSR
|
21
|
+
# Creates a certificate signing request (CSR).
|
22
|
+
# @option opts [TlsCsr] :tls_csr
|
23
|
+
# @return [TlsCsrResponse]
|
24
|
+
def create_csr(opts = {})
|
25
|
+
data, _status_code, _headers = create_csr_with_http_info(opts)
|
26
|
+
data
|
27
|
+
end
|
28
|
+
|
29
|
+
# Create CSR
|
30
|
+
# Creates a certificate signing request (CSR).
|
31
|
+
# @option opts [TlsCsr] :tls_csr
|
32
|
+
# @return [Array<(TlsCsrResponse, Integer, Hash)>] TlsCsrResponse data, response status code and response headers
|
33
|
+
def create_csr_with_http_info(opts = {})
|
34
|
+
if @api_client.config.debugging
|
35
|
+
@api_client.config.logger.debug 'Calling API: TlsCsrsApi.create_csr ...'
|
36
|
+
end
|
37
|
+
# unbox the parameters from the hash
|
38
|
+
# resource path
|
39
|
+
local_var_path = '/tls/certificate_signing_requests'
|
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/vnd.api+json'])
|
48
|
+
# HTTP header 'Content-Type'
|
49
|
+
content_type = @api_client.select_header_content_type(['application/vnd.api+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[:'tls_csr'])
|
59
|
+
|
60
|
+
# return_type
|
61
|
+
return_type = opts[:debug_return_type] || 'TlsCsrResponse'
|
62
|
+
|
63
|
+
# auth_names
|
64
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
65
|
+
|
66
|
+
new_options = opts.merge(
|
67
|
+
:operation => :"TlsCsrsApi.create_csr",
|
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: TlsCsrsApi#create_csr\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
79
|
+
end
|
80
|
+
return data, status_code, headers
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -79,7 +79,7 @@ module Fastly
|
|
79
79
|
end
|
80
80
|
|
81
81
|
# Create a token
|
82
|
-
# Create an API token. If two-factor authentication is enabled for your account, review [the instructions](/reference/api/auth-tokens/user/) for including a one-time password in the request.
|
82
|
+
# Create an API token. If two-factor authentication is enabled for your account, review [the instructions](https://www.fastly.com/documentation/reference/api/auth-tokens/user/) for including a one-time password in the request.
|
83
83
|
# @return [TokenCreatedResponse]
|
84
84
|
def create_token(opts = {})
|
85
85
|
data, _status_code, _headers = create_token_with_http_info(opts)
|
@@ -87,7 +87,7 @@ module Fastly
|
|
87
87
|
end
|
88
88
|
|
89
89
|
# Create a token
|
90
|
-
# Create an API token. If two-factor authentication is enabled for your account, review [the instructions](/reference/api/auth-tokens/user/) for including a one-time password in the request.
|
90
|
+
# Create an API token. If two-factor authentication is enabled for your account, review [the instructions](https://www.fastly.com/documentation/reference/api/auth-tokens/user/) for including a one-time password in the request.
|
91
91
|
# @return [Array<(TokenCreatedResponse, Integer, Hash)>] TokenCreatedResponse data, response status code and response headers
|
92
92
|
def create_token_with_http_info(opts = {})
|
93
93
|
if @api_client.config.debugging
|
data/lib/fastly/api/vcl_api.rb
CHANGED
@@ -259,7 +259,7 @@ module Fastly
|
|
259
259
|
end
|
260
260
|
|
261
261
|
# Get boilerplate VCL
|
262
|
-
# Return boilerplate VCL with the service's TTL from the [settings](/reference/api/vcl-services/settings/).
|
262
|
+
# Return boilerplate VCL with the service's TTL from the [settings](https://www.fastly.com/documentation/reference/api/vcl-services/settings/).
|
263
263
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
264
264
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
265
265
|
# @return [String]
|
@@ -269,7 +269,7 @@ module Fastly
|
|
269
269
|
end
|
270
270
|
|
271
271
|
# Get boilerplate VCL
|
272
|
-
# Return boilerplate VCL with the service's TTL from the [settings](/reference/api/vcl-services/settings/).
|
272
|
+
# Return boilerplate VCL with the service's TTL from the [settings](https://www.fastly.com/documentation/reference/api/vcl-services/settings/).
|
273
273
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
274
274
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
275
275
|
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
@@ -93,7 +93,7 @@ module Fastly
|
|
93
93
|
end
|
94
94
|
|
95
95
|
# Update multiple active rules
|
96
|
-
# Bulk update all active rules on a [firewall version](https://
|
96
|
+
# Bulk update all active rules on a [firewall version](https://www.fastly.com/documentation/reference/api/waf/firewall-version/). This endpoint will not add new active rules, only update existing active rules.
|
97
97
|
# @option opts [String] :firewall_id Alphanumeric string identifying a WAF Firewall. (required)
|
98
98
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
99
99
|
# @option opts [WafActiveRuleData] :body
|
@@ -104,7 +104,7 @@ module Fastly
|
|
104
104
|
end
|
105
105
|
|
106
106
|
# Update multiple active rules
|
107
|
-
# Bulk update all active rules on a [firewall version](https://
|
107
|
+
# Bulk update all active rules on a [firewall version](https://www.fastly.com/documentation/reference/api/waf/firewall-version/). This endpoint will not add new active rules, only update existing active rules.
|
108
108
|
# @option opts [String] :firewall_id Alphanumeric string identifying a WAF Firewall. (required)
|
109
109
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
110
110
|
# @option opts [WafActiveRuleData] :body
|