fastly 8.0.1 → 8.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +198 -130
  3. data/Gemfile.lock +1 -1
  4. data/README.md +13 -7
  5. data/docs/{ErrorResponse.md → AutomationTokenErrorResponse.md} +1 -1
  6. data/docs/AutomationTokensApi.md +2 -2
  7. data/docs/Backend.md +1 -1
  8. data/docs/BackendApi.md +4 -4
  9. data/docs/BackendResponse.md +1 -1
  10. data/docs/BillingInvoicesApi.md +96 -0
  11. data/docs/Director.md +1 -1
  12. data/docs/DirectorApi.md +2 -2
  13. data/docs/DirectorResponse.md +1 -1
  14. data/docs/DomainInspectorHistoricalApi.md +4 -4
  15. data/docs/DomainInspectorRealtimeEntry.md +1 -1
  16. data/docs/Error.md +13 -0
  17. data/docs/ErrorResponseData.md +11 -0
  18. data/docs/Invoice.md +18 -0
  19. data/docs/InvoiceResponse.md +18 -0
  20. data/docs/Invoicelineitems.md +18 -0
  21. data/docs/KvStoreApi.md +1 -1
  22. data/docs/ListInvoicesResponse.md +11 -0
  23. data/docs/Listinvoices.md +11 -0
  24. data/docs/LoggingScalyrAdditional.md +1 -1
  25. data/docs/LoggingScalyrApi.md +4 -4
  26. data/docs/LoggingScalyrResponse.md +1 -1
  27. data/docs/Metadata.md +13 -0
  28. data/docs/OriginInspectorHistoricalApi.md +4 -4
  29. data/docs/OriginInspectorRealtimeEntry.md +1 -1
  30. data/docs/PoolAdditional.md +1 -1
  31. data/docs/PoolApi.md +4 -4
  32. data/docs/PoolResponse.md +1 -1
  33. data/docs/PoolResponsePost.md +1 -1
  34. data/docs/Pop.md +2 -2
  35. data/docs/PublishApi.md +1 -1
  36. data/docs/RealtimeEntry.md +1 -1
  37. data/docs/Results.md +2 -0
  38. data/docs/SecretStoreApi.md +4 -2
  39. data/docs/SecretStoreItemApi.md +2 -2
  40. data/docs/ServiceDetail.md +1 -1
  41. data/docs/ServiceListResponse.md +2 -2
  42. data/docs/ServiceListResponseAllOf.md +2 -2
  43. data/docs/ServiceResponse.md +1 -1
  44. data/docs/ServiceResponseAllOf.md +1 -1
  45. data/docs/TlsConfigurationResponseAttributes.md +1 -1
  46. data/docs/TlsConfigurationResponseAttributesAllOf.md +1 -1
  47. data/docs/TlsCsr.md +10 -0
  48. data/docs/TlsCsrData.md +12 -0
  49. data/docs/TlsCsrDataAttributes.md +20 -0
  50. data/docs/TlsCsrErrorResponse.md +10 -0
  51. data/docs/TlsCsrResponse.md +10 -0
  52. data/docs/TlsCsrResponseAttributes.md +10 -0
  53. data/docs/TlsCsrResponseData.md +13 -0
  54. data/docs/TlsCsrsApi.md +52 -0
  55. data/docs/TlsSubscriptionResponseAttributes.md +1 -0
  56. data/docs/TlsSubscriptionResponseAttributesAllOf.md +1 -0
  57. data/docs/TokensApi.md +1 -1
  58. data/docs/TypeTlsCsr.md +9 -0
  59. data/docs/VclApi.md +1 -1
  60. data/docs/WafActiveRulesApi.md +1 -1
  61. data/lib/fastly/api/automation_tokens_api.rb +3 -3
  62. data/lib/fastly/api/backend_api.rb +4 -4
  63. data/lib/fastly/api/billing_invoices_api.rb +151 -0
  64. data/lib/fastly/api/director_api.rb +2 -2
  65. data/lib/fastly/api/domain_inspector_historical_api.rb +4 -4
  66. data/lib/fastly/api/kv_store_api.rb +2 -2
  67. data/lib/fastly/api/logging_scalyr_api.rb +4 -4
  68. data/lib/fastly/api/origin_inspector_historical_api.rb +4 -4
  69. data/lib/fastly/api/pool_api.rb +4 -4
  70. data/lib/fastly/api/publish_api.rb +2 -2
  71. data/lib/fastly/api/secret_store_api.rb +5 -2
  72. data/lib/fastly/api/secret_store_item_api.rb +2 -2
  73. data/lib/fastly/api/tls_csrs_api.rb +83 -0
  74. data/lib/fastly/api/tokens_api.rb +2 -2
  75. data/lib/fastly/api/vcl_api.rb +2 -2
  76. data/lib/fastly/api/waf_active_rules_api.rb +2 -2
  77. data/lib/fastly/configuration.rb +18 -0
  78. data/lib/fastly/models/{error_response.rb → automation_token_error_response.rb} +3 -3
  79. data/lib/fastly/models/backend.rb +1 -1
  80. data/lib/fastly/models/backend_response.rb +1 -1
  81. data/lib/fastly/models/director.rb +1 -1
  82. data/lib/fastly/models/director_response.rb +1 -1
  83. data/lib/fastly/models/domain_inspector_realtime_entry.rb +1 -1
  84. data/lib/fastly/models/error.rb +243 -0
  85. data/lib/fastly/models/error_response_data.rb +225 -0
  86. data/lib/fastly/models/event_attributes.rb +2 -2
  87. data/lib/fastly/models/invoice.rb +298 -0
  88. data/lib/fastly/models/invoice_response.rb +305 -0
  89. data/lib/fastly/models/invoicelineitems.rb +297 -0
  90. data/lib/fastly/models/list_invoices_response.rb +234 -0
  91. data/lib/fastly/models/listinvoices.rb +227 -0
  92. data/lib/fastly/models/logging_scalyr_additional.rb +1 -1
  93. data/lib/fastly/models/logging_scalyr_response.rb +1 -1
  94. data/lib/fastly/models/metadata.rb +250 -0
  95. data/lib/fastly/models/origin_inspector_realtime_entry.rb +1 -1
  96. data/lib/fastly/models/pool_additional.rb +1 -1
  97. data/lib/fastly/models/pool_response.rb +1 -1
  98. data/lib/fastly/models/pool_response_post.rb +1 -1
  99. data/lib/fastly/models/pop.rb +2 -2
  100. data/lib/fastly/models/realtime_entry.rb +1 -1
  101. data/lib/fastly/models/relationship_tls_certificate.rb +1 -1
  102. data/lib/fastly/models/relationship_tls_configuration.rb +1 -1
  103. data/lib/fastly/models/results.rb +21 -1
  104. data/lib/fastly/models/service_detail.rb +1 -1
  105. data/lib/fastly/models/service_list_response.rb +2 -2
  106. data/lib/fastly/models/service_list_response_all_of.rb +2 -2
  107. data/lib/fastly/models/service_response.rb +1 -1
  108. data/lib/fastly/models/service_response_all_of.rb +1 -1
  109. data/lib/fastly/models/tls_configuration_response_attributes.rb +1 -1
  110. data/lib/fastly/models/tls_configuration_response_attributes_all_of.rb +1 -1
  111. data/lib/fastly/models/tls_csr.rb +216 -0
  112. data/lib/fastly/models/tls_csr_data.rb +236 -0
  113. data/lib/fastly/models/tls_csr_data_attributes.rb +358 -0
  114. data/lib/fastly/models/tls_csr_error_response.rb +218 -0
  115. data/lib/fastly/models/tls_csr_response.rb +216 -0
  116. data/lib/fastly/models/tls_csr_response_attributes.rb +217 -0
  117. data/lib/fastly/models/tls_csr_response_data.rb +245 -0
  118. data/lib/fastly/models/tls_subscription_data_attributes.rb +2 -2
  119. data/lib/fastly/models/tls_subscription_response_attributes.rb +14 -4
  120. data/lib/fastly/models/tls_subscription_response_attributes_all_of.rb +14 -4
  121. data/lib/fastly/models/type_tls_csr.rb +34 -0
  122. data/lib/fastly/version.rb +1 -1
  123. data/lib/fastly.rb +19 -1
  124. data/sig.json +1 -1
  125. metadata +40 -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 &#x60;next_cursor&#x60; 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 &#x60;next_cursor&#x60; 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. &#x60;0&#x60; to &#x60;100&#x60;. (default to 75)
29
- # @option opts [String] :shield Selected POP to serve as a shield for the backends. Defaults to &#x60;null&#x60; 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 &#x60;null&#x60; 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. &#x60;0&#x60; to &#x60;100&#x60;. (default to 75)
47
- # @option opts [String] :shield Selected POP to serve as a shield for the backends. Defaults to &#x60;null&#x60; 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 &#x60;null&#x60; 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 &#x60;downsample&#x60; 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 &#x60;downsample&#x60; value.
25
25
  # @option opts [String] :downsample Duration of sample windows. (default to 'hour')
26
- # @option opts [String] :metric The metric to retrieve. Up to ten comma-separated metrics are accepted. (default to 'edge_requests')
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, &#x60;group_by&#x3D;domain&#x60; 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 &#x60;next_cursor&#x60; 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 &#x60;downsample&#x60; 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 &#x60;downsample&#x60; value.
44
44
  # @option opts [String] :downsample Duration of sample windows. (default to 'hour')
45
- # @option opts [String] :metric The metric to retrieve. Up to ten comma-separated metrics are accepted. (default to 'edge_requests')
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, &#x60;group_by&#x3D;domain&#x60; 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 &#x60;next_cursor&#x60; 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 100)
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 100)
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\" %&gt;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 &#x60;vcl_log&#x60; if &#x60;format_version&#x60; is set to &#x60;2&#x60; and in &#x60;vcl_deliver&#x60; if &#x60;format_version&#x60; is set to &#x60;1&#x60;. (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 ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)).
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\" %&gt;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 &#x60;vcl_log&#x60; if &#x60;format_version&#x60; is set to &#x60;2&#x60; and in &#x60;vcl_deliver&#x60; if &#x60;format_version&#x60; is set to &#x60;1&#x60;. (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 ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)).
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\" %&gt;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 &#x60;vcl_log&#x60; if &#x60;format_version&#x60; is set to &#x60;2&#x60; and in &#x60;vcl_deliver&#x60; if &#x60;format_version&#x60; is set to &#x60;1&#x60;. (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 ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)).
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\" %&gt;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 &#x60;vcl_log&#x60; if &#x60;format_version&#x60; is set to &#x60;2&#x60; and in &#x60;vcl_deliver&#x60; if &#x60;format_version&#x60; is set to &#x60;1&#x60;. (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 ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)).
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 &#x60;downsample&#x60; 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 &#x60;downsample&#x60; value.
25
25
  # @option opts [String] :downsample Duration of sample windows. (default to 'hour')
26
- # @option opts [String] :metric The metric to retrieve. Up to ten comma-separated metrics are accepted. (default to 'responses')
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, &#x60;group_by&#x3D;host&#x60; 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 &#x60;next_cursor&#x60; 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 &#x60;downsample&#x60; 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 &#x60;downsample&#x60; value.
44
44
  # @option opts [String] :downsample Duration of sample windows. (default to 'hour')
45
- # @option opts [String] :metric The metric to retrieve. Up to ten comma-separated metrics are accepted. (default to 'responses')
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, &#x60;group_by&#x3D;host&#x60; 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 &#x60;next_cursor&#x60; 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.
@@ -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 &#x60;null&#x60; 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 &#x60;null&#x60; 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 &#x60;null&#x60; 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 &#x60;null&#x60; 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 &#x60;null&#x60; 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 &#x60;null&#x60; 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 &#x60;null&#x60; 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 &#x60;null&#x60; 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://developer.fastly.com/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.
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://developer.fastly.com/learning/concepts/real-time-messaging/fanout) subscribers. Each message specifies a channel, and Fanout will deliver the message to all subscribers of its channel. &gt; **IMPORTANT:** For compatibility with GRIP, this endpoint requires a trailing slash, and the API token may be provided in the &#x60;Authorization&#x60; header (instead of the &#x60;Fastly-Key&#x60; header) using the &#x60;Bearer&#x60; scheme.
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. &gt; **IMPORTANT:** For compatibility with GRIP, this endpoint requires a trailing slash, and the API token may be provided in the &#x60;Authorization&#x60; header (instead of the &#x60;Fastly-Key&#x60; header) using the &#x60;Bearer&#x60; 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
@@ -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 &#x60;next_cursor&#x60; 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 &#x60;next_cursor&#x60; 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 &#x60;next_cursor&#x60; 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 &#x60;next_cursor&#x60; 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
@@ -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&#39;s TTL from the [settings](/reference/api/vcl-services/settings/).
272
+ # Return boilerplate VCL with the service&#39;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://developer.fastly.com/reference/api/waf/firewall-version/). This endpoint will not add new active rules, only update existing active rules.
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://developer.fastly.com/reference/api/waf/firewall-version/). This endpoint will not add new active rules, only update existing active rules.
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
@@ -476,6 +476,18 @@ module Fastly
476
476
  description: "No description provided",
477
477
  }
478
478
  ],
479
+ "BillingInvoicesApi.get_invoice_by_invoice_id": [
480
+ {
481
+ url: "https://api.fastly.com",
482
+ description: "No description provided",
483
+ }
484
+ ],
485
+ "BillingInvoicesApi.list_invoices": [
486
+ {
487
+ url: "https://api.fastly.com",
488
+ description: "No description provided",
489
+ }
490
+ ],
479
491
  "CacheSettingsApi.create_cache_settings": [
480
492
  {
481
493
  url: "https://api.fastly.com",
@@ -2966,6 +2978,12 @@ module Fastly
2966
2978
  description: "No description provided",
2967
2979
  }
2968
2980
  ],
2981
+ "TlsCsrsApi.create_csr": [
2982
+ {
2983
+ url: "https://api.fastly.com",
2984
+ description: "No description provided",
2985
+ }
2986
+ ],
2969
2987
  "TlsDomainsApi.list_tls_domains": [
2970
2988
  {
2971
2989
  url: "https://api.fastly.com",
@@ -12,7 +12,7 @@ require 'date'
12
12
  require 'time'
13
13
 
14
14
  module Fastly
15
- class ErrorResponse
15
+ class AutomationTokenErrorResponse
16
16
  attr_accessor :detail
17
17
 
18
18
  attr_accessor :errors
@@ -56,13 +56,13 @@ module Fastly
56
56
  # @param [Hash] attributes Model attributes in the form of hash
57
57
  def initialize(attributes = {})
58
58
  if (!attributes.is_a?(Hash))
59
- fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::ErrorResponse` initialize method"
59
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::AutomationTokenErrorResponse` initialize method"
60
60
  end
61
61
 
62
62
  # check to see if the attribute exists and convert string to symbol for hash key
63
63
  attributes = attributes.each_with_object({}) { |(k, v), h|
64
64
  if (!self.class.attribute_map.key?(k.to_sym))
65
- fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::ErrorResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::AutomationTokenErrorResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
66
66
  end
67
67
  h[k.to_sym] = v
68
68
  }
@@ -85,7 +85,7 @@ module Fastly
85
85
  # Be strict on checking SSL certs.
86
86
  attr_accessor :ssl_check_cert
87
87
 
88
- # List of [OpenSSL ciphers](https://www.openssl.org/docs/manmaster/man1/ciphers.html) to support for connections to this origin. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.
88
+ # List of [OpenSSL ciphers](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) to support for connections to this origin. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.
89
89
  attr_accessor :ssl_ciphers
90
90
 
91
91
  # Client certificate attached to origin.
@@ -85,7 +85,7 @@ module Fastly
85
85
  # Be strict on checking SSL certs.
86
86
  attr_accessor :ssl_check_cert
87
87
 
88
- # List of [OpenSSL ciphers](https://www.openssl.org/docs/manmaster/man1/ciphers.html) to support for connections to this origin. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.
88
+ # List of [OpenSSL ciphers](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) to support for connections to this origin. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.
89
89
  attr_accessor :ssl_ciphers
90
90
 
91
91
  # Client certificate attached to origin.
@@ -28,7 +28,7 @@ module Fastly
28
28
  # The percentage of capacity that needs to be up for a director to be considered up. `0` to `100`.
29
29
  attr_accessor :quorum
30
30
 
31
- # 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.
31
+ # 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.
32
32
  attr_accessor :shield
33
33
 
34
34
  # What type of load balance group to use.