fastly 8.4.0 → 8.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +15 -2
  5. data/docs/{RelationshipTlsDnsRecord.md → AsyncResponse.md} +3 -2
  6. data/docs/BillingInvoicesApi.md +37 -4
  7. data/docs/BillingUsageMetricsApi.md +111 -0
  8. data/docs/ContentApi.md +1 -1
  9. data/docs/CreateDashboardRequest.md +12 -0
  10. data/docs/Dashboard.md +17 -0
  11. data/docs/DashboardItem.md +15 -0
  12. data/docs/DashboardItemPropertyDataSource.md +11 -0
  13. data/docs/DashboardItemPropertyDataSourcePropertyConfig.md +10 -0
  14. data/docs/DashboardItemPropertyVisualization.md +11 -0
  15. data/docs/DashboardItemPropertyVisualizationPropertyConfig.md +12 -0
  16. data/docs/{RelationshipTlsDnsRecords.md → DashboardPropertyCreatedBy.md} +1 -2
  17. data/docs/{RelationshipTlsDnsRecordDnsRecord.md → DashboardPropertyUpdatedBy.md} +1 -2
  18. data/docs/DomainInspectorMeasurements.md +1 -1
  19. data/docs/{InvoiceResponse.md → EomInvoiceResponse.md} +1 -1
  20. data/docs/GetServiceLevelUsageResponse.md +10 -0
  21. data/docs/GetServiceLevelUsageTypesResponse.md +10 -0
  22. data/docs/IncludedWithTlsConfiguration.md +10 -0
  23. data/docs/IncludedWithTlsConfigurationItem.md +12 -0
  24. data/docs/ListDashboardsResponse.md +11 -0
  25. data/docs/{ListInvoicesResponse.md → ListEomInvoicesResponse.md} +1 -1
  26. data/docs/LoggingKafkaAdditional.md +1 -1
  27. data/docs/LoggingKafkaApi.md +2 -2
  28. data/docs/LoggingKafkaResponse.md +1 -1
  29. data/docs/LoggingKafkaResponsePost.md +1 -1
  30. data/docs/LoggingLogentriesAdditional.md +1 -1
  31. data/docs/LoggingLogentriesApi.md +4 -4
  32. data/docs/LoggingLogentriesResponse.md +1 -1
  33. data/docs/LoggingSplunkAdditional.md +1 -1
  34. data/docs/LoggingSplunkApi.md +4 -4
  35. data/docs/LoggingSplunkResponse.md +1 -1
  36. data/docs/LoggingSyslogAdditional.md +1 -1
  37. data/docs/LoggingSyslogApi.md +4 -4
  38. data/docs/LoggingSyslogResponse.md +1 -1
  39. data/docs/{LoggingUseTls.md → LoggingUseTlsString.md} +1 -1
  40. data/docs/MtdInvoiceResponse.md +15 -0
  41. data/docs/Mtdinvoice.md +15 -0
  42. data/docs/Mtdlineitems.md +18 -0
  43. data/docs/ObservabilityCustomDashboardsApi.md +203 -0
  44. data/docs/RealtimeEntryAggregated.md +1 -0
  45. data/docs/RealtimeMeasurements.md +1 -0
  46. data/docs/RelationshipDefaultEcdsaTlsCertificate.md +10 -0
  47. data/docs/RelationshipDefaultEcdsaTlsCertificateDefaultEcdsaCertificate.md +10 -0
  48. data/docs/RelationshipDefaultEcdsaTlsCertificateDefaultEcdsaCertificateData.md +11 -0
  49. data/docs/RelationshipDefaultTlsCertificate.md +10 -0
  50. data/docs/RelationshipDefaultTlsCertificateDefaultCertificate.md +10 -0
  51. data/docs/RelationshipDefaultTlsCertificateDefaultCertificateData.md +11 -0
  52. data/docs/RelationshipTlsDnsRecordsRequest.md +10 -0
  53. data/docs/RelationshipTlsDnsRecordsRequestDnsRecords.md +10 -0
  54. data/docs/RelationshipTlsDnsRecordsRequestDnsRecordsData.md +11 -0
  55. data/docs/RelationshipTlsDnsRecordsResponse.md +10 -0
  56. data/docs/RelationshipTlsDnsRecordsResponseDnsRecords.md +10 -0
  57. data/docs/{RelationshipMemberTlsDnsRecord.md → RelationshipTlsDnsRecordsResponseDnsRecordsData.md} +1 -1
  58. data/docs/Results.md +1 -0
  59. data/docs/Serviceusagemetric.md +13 -0
  60. data/docs/Serviceusagemetrics.md +10 -0
  61. data/docs/ServiceusagemetricsData.md +16 -0
  62. data/docs/Serviceusagetype.md +11 -0
  63. data/docs/Serviceusagetypes.md +10 -0
  64. data/docs/TlsCertificateBlobResponse.md +10 -0
  65. data/docs/TlsCertificatesApi.md +38 -0
  66. data/docs/TlsDnsRecord.md +1 -2
  67. data/docs/UpdateDashboardRequest.md +12 -0
  68. data/docs/Values.md +1 -1
  69. data/lib/fastly/api/billing_invoices_api.rb +62 -6
  70. data/lib/fastly/api/billing_usage_metrics_api.rb +213 -0
  71. data/lib/fastly/api/content_api.rb +2 -2
  72. data/lib/fastly/api/logging_datadog_api.rb +2 -2
  73. data/lib/fastly/api/logging_kafka_api.rb +2 -2
  74. data/lib/fastly/api/logging_logentries_api.rb +4 -4
  75. data/lib/fastly/api/logging_splunk_api.rb +4 -4
  76. data/lib/fastly/api/logging_syslog_api.rb +4 -4
  77. data/lib/fastly/api/observability_custom_dashboards_api.rb +333 -0
  78. data/lib/fastly/api/tls_certificates_api.rb +63 -0
  79. data/lib/fastly/configuration.rb +54 -0
  80. data/lib/fastly/models/async_response.rb +225 -0
  81. data/lib/fastly/models/create_dashboard_request.rb +245 -0
  82. data/lib/fastly/models/dashboard.rb +290 -0
  83. data/lib/fastly/models/dashboard_item.rb +368 -0
  84. data/lib/fastly/models/dashboard_item_property_data_source.rb +271 -0
  85. data/lib/fastly/models/dashboard_item_property_data_source_property_config.rb +244 -0
  86. data/lib/fastly/models/dashboard_item_property_visualization.rb +271 -0
  87. data/lib/fastly/models/dashboard_item_property_visualization_property_config.rb +303 -0
  88. data/lib/fastly/models/dashboard_property_created_by.rb +208 -0
  89. data/lib/fastly/models/dashboard_property_updated_by.rb +208 -0
  90. data/lib/fastly/models/domain_inspector_measurements.rb +1 -1
  91. data/lib/fastly/models/{invoice_response.rb → eom_invoice_response.rb} +3 -3
  92. data/lib/fastly/models/get_service_level_usage_response.rb +223 -0
  93. data/lib/fastly/models/get_service_level_usage_types_response.rb +225 -0
  94. data/lib/fastly/models/included_with_tls_configuration.rb +218 -0
  95. data/lib/fastly/models/included_with_tls_configuration_item.rb +237 -0
  96. data/lib/fastly/models/invoicelineitems.rb +5 -5
  97. data/lib/fastly/models/list_dashboards_response.rb +229 -0
  98. data/lib/fastly/models/{list_invoices_response.rb → list_eom_invoices_response.rb} +3 -3
  99. data/lib/fastly/models/logging_datadog_additional.rb +2 -2
  100. data/lib/fastly/models/logging_datadog_response.rb +2 -2
  101. data/lib/fastly/models/logging_kafka_additional.rb +2 -2
  102. data/lib/fastly/models/logging_kafka_response.rb +2 -2
  103. data/lib/fastly/models/logging_kafka_response_post.rb +2 -2
  104. data/lib/fastly/models/logging_logentries_additional.rb +2 -2
  105. data/lib/fastly/models/logging_logentries_response.rb +2 -2
  106. data/lib/fastly/models/logging_splunk_additional.rb +2 -2
  107. data/lib/fastly/models/logging_splunk_response.rb +2 -2
  108. data/lib/fastly/models/logging_syslog_additional.rb +2 -2
  109. data/lib/fastly/models/logging_syslog_response.rb +2 -2
  110. data/lib/fastly/models/{logging_use_tls.rb → logging_use_tls_string.rb} +5 -5
  111. data/lib/fastly/models/mtd_invoice_response.rb +275 -0
  112. data/lib/fastly/models/mtdinvoice.rb +268 -0
  113. data/lib/fastly/models/mtdlineitems.rb +297 -0
  114. data/lib/fastly/models/realtime_entry_aggregated.rb +14 -4
  115. data/lib/fastly/models/realtime_measurements.rb +14 -4
  116. data/lib/fastly/models/relationship_default_ecdsa_tls_certificate.rb +216 -0
  117. data/lib/fastly/models/relationship_default_ecdsa_tls_certificate_default_ecdsa_certificate.rb +216 -0
  118. data/lib/fastly/models/relationship_default_ecdsa_tls_certificate_default_ecdsa_certificate_data.rb +228 -0
  119. data/lib/fastly/models/relationship_default_tls_certificate.rb +216 -0
  120. data/lib/fastly/models/relationship_default_tls_certificate_default_certificate.rb +216 -0
  121. data/lib/fastly/models/relationship_default_tls_certificate_default_certificate_data.rb +228 -0
  122. data/lib/fastly/models/{relationship_tls_dns_records.rb → relationship_tls_dns_records_request.rb} +4 -4
  123. data/lib/fastly/models/relationship_tls_dns_records_request_dns_records.rb +218 -0
  124. data/lib/fastly/models/{relationship_member_tls_dns_record.rb → relationship_tls_dns_records_request_dns_records_data.rb} +3 -3
  125. data/lib/fastly/models/relationship_tls_dns_records_response.rb +216 -0
  126. data/lib/fastly/models/relationship_tls_dns_records_response_dns_records.rb +218 -0
  127. data/lib/fastly/models/relationship_tls_dns_records_response_dns_records_data.rb +227 -0
  128. data/lib/fastly/models/relationships_for_tls_configuration.rb +1 -1
  129. data/lib/fastly/models/results.rb +11 -1
  130. data/lib/fastly/models/serviceusagemetric.rb +246 -0
  131. data/lib/fastly/models/{relationship_tls_dns_record.rb → serviceusagemetrics.rb} +10 -10
  132. data/lib/fastly/models/serviceusagemetrics_data.rb +276 -0
  133. data/lib/fastly/models/serviceusagetype.rb +227 -0
  134. data/lib/fastly/models/{relationship_tls_dns_record_dns_record.rb → serviceusagetypes.rb} +4 -4
  135. data/lib/fastly/models/tls_certificate_blob_response.rb +217 -0
  136. data/lib/fastly/models/tls_dns_record.rb +48 -12
  137. data/lib/fastly/models/update_dashboard_request.rb +240 -0
  138. data/lib/fastly/models/values.rb +1 -1
  139. data/lib/fastly/version.rb +1 -1
  140. data/lib/fastly.rb +42 -7
  141. data/sig.json +1 -1
  142. metadata +86 -16
@@ -16,6 +16,7 @@ Method | HTTP request | Description
16
16
  [**create_tls_cert**](TlsCertificatesApi.md#create_tls_cert) | **POST** /tls/certificates | Create a TLS certificate
17
17
  [**delete_tls_cert**](TlsCertificatesApi.md#delete_tls_cert) | **DELETE** /tls/certificates/{tls_certificate_id} | Delete a TLS certificate
18
18
  [**get_tls_cert**](TlsCertificatesApi.md#get_tls_cert) | **GET** /tls/certificates/{tls_certificate_id} | Get a TLS certificate
19
+ [**get_tls_cert_blob**](TlsCertificatesApi.md#get_tls_cert_blob) | **GET** /tls/certificates/{tls_certificate_id}/blob | Get a TLS certificate blob (Limited Availability)
19
20
  [**list_tls_certs**](TlsCertificatesApi.md#list_tls_certs) | **GET** /tls/certificates | List TLS certificates
20
21
  [**update_tls_cert**](TlsCertificatesApi.md#update_tls_cert) | **PATCH** /tls/certificates/{tls_certificate_id} | Update a TLS certificate
21
22
 
@@ -128,6 +129,43 @@ end
128
129
 
129
130
  [**TlsCertificateResponse**](TlsCertificateResponse.md)
130
131
 
132
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
133
+ [[Back to README]](../../README.md)
134
+ ## `get_tls_cert_blob()`
135
+
136
+ ```ruby
137
+ get_tls_cert_blob(opts): <TlsCertificateBlobResponse> # Get a TLS certificate blob (Limited Availability)
138
+ ```
139
+
140
+ Retrieve a TLS certificate blob. This feature is part of a [limited availability](https://docs.fastly.com/products/fastly-product-lifecycle#limited-availability) release.
141
+
142
+ ### Examples
143
+
144
+ ```ruby
145
+ api_instance = Fastly::TlsCertificatesApi.new
146
+ opts = {
147
+ tls_certificate_id: 'tls_certificate_id_example', # String | Alphanumeric string identifying a TLS certificate.
148
+ }
149
+
150
+ begin
151
+ # Get a TLS certificate blob (Limited Availability)
152
+ result = api_instance.get_tls_cert_blob(opts)
153
+ p result
154
+ rescue Fastly::ApiError => e
155
+ puts "Error when calling TlsCertificatesApi->get_tls_cert_blob: #{e}"
156
+ end
157
+ ```
158
+
159
+ ### Options
160
+
161
+ | Name | Type | Description | Notes |
162
+ | ---- | ---- | ----------- | ----- |
163
+ | **tls_certificate_id** | **String** | Alphanumeric string identifying a TLS certificate. | |
164
+
165
+ ### Return type
166
+
167
+ [**TlsCertificateBlobResponse**](TlsCertificateBlobResponse.md)
168
+
131
169
  [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
132
170
  [[Back to README]](../../README.md)
133
171
  ## `list_tls_certs()`
data/docs/TlsDnsRecord.md CHANGED
@@ -4,8 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | The IP address or hostname of the DNS record. | [optional] |
8
- | **region** | **String** | Specifies the regions that will be used to route traffic. Select DNS Records with a `global` region to route traffic to the most performant point of presence (POP) worldwide (global pricing will apply). Select DNS records with a `us-eu` region to exclusively land traffic on North American and European POPs. | [optional] |
7
+ | **region** | **String** | Specifies the regions that will be used to route traffic. Select DNS records with a `global` region to route traffic to the most performant point of presence (POP) worldwide (global pricing will apply). Select DNS records with a `na/eu` region to exclusively land traffic on North American and European POPs. | [optional] |
9
8
  | **record_type** | **String** | The type of the DNS record. `A` specifies an IPv4 address to be used for an A record to be used for apex domains (e.g., `example.com`). `AAAA` specifies an IPv6 address for use in an A record for apex domains. `CNAME` specifies the hostname to be used for a CNAME record for subdomains or wildcard domains (e.g., `www.example.com` or `*.example.com`). | [optional] |
10
9
 
11
10
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
@@ -0,0 +1,12 @@
1
+ # Fastly::UpdateDashboardRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | A human-readable name | [optional] |
8
+ | **description** | **String** | A short description of the dashboard | [optional] |
9
+ | **items** | [**Array&lt;DashboardItem&gt;**](DashboardItem.md) | A list of [dashboard items](#dashboard-item). | [optional] |
10
+
11
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
12
+
data/docs/Values.md CHANGED
@@ -42,7 +42,7 @@
42
42
  | **origin_fetch_resp_body_bytes** | **Integer** | Total body bytes received from origin. | [optional] |
43
43
  | **bandwidth** | **Integer** | Total bytes delivered (`resp_header_bytes` + `resp_body_bytes` + `bereq_header_bytes` + `bereq_body_bytes`). | [optional] |
44
44
  | **edge_hit_ratio** | **Float** | Ratio of cache hits to cache misses at the edge, between 0 and 1 (`edge_hit_requests` / (`edge_hit_requests` + `edge_miss_requests`)). | [optional] |
45
- | **origin_offload** | **Float** | Ratio of response bytes delivered from the edge compared to what is delivered from origin, between 0 and 1. (`edge_resp_body_bytes` + `edge_resp_header_bytes`) / (`origin_fetch_resp_body_bytes` + `origin_fetch_resp_header_bytes` + `edge_resp_body_bytes` + `edge_resp_header_bytes`). | [optional] |
45
+ | **origin_offload** | **Float** | Origin Offload measures the ratio of bytes served to end users that were cached by Fastly, over the bytes served to end users, between 0 and 1. ((`edge_resp_body_bytes` + `edge_resp_header_bytes`) - (`origin_fetch_resp_body_bytes` + `origin_fetch_resp_header_bytes`)) / (`edge_resp_body_bytes` + `edge_resp_header_bytes`). Previously, Origin Offload used a different formula. [Learn more](https://www.fastly.com/documentation/reference/changes/2024/06/add-origin_offload-metric). | [optional] |
46
46
  | **origin_status_200** | **Integer** | Number of responses received from origin with status code 200 (Success). | [optional] |
47
47
  | **origin_status_204** | **Integer** | Number of responses received from origin with status code 204 (No Content). | [optional] |
48
48
  | **origin_status_206** | **Integer** | Number of responses received from origin with status code 206 (Partial Content). | [optional] |
@@ -20,7 +20,7 @@ module Fastly
20
20
  # Get invoice by ID.
21
21
  # Returns invoice associated with the invoice id.
22
22
  # @option opts [String] :invoice_id Alphanumeric string identifying the invoice. (required)
23
- # @return [InvoiceResponse]
23
+ # @return [EomInvoiceResponse]
24
24
  def get_invoice_by_invoice_id(opts = {})
25
25
  data, _status_code, _headers = get_invoice_by_invoice_id_with_http_info(opts)
26
26
  data
@@ -29,7 +29,7 @@ module Fastly
29
29
  # Get invoice by ID.
30
30
  # Returns invoice associated with the invoice id.
31
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
32
+ # @return [Array<(EomInvoiceResponse, Integer, Hash)>] EomInvoiceResponse data, response status code and response headers
33
33
  def get_invoice_by_invoice_id_with_http_info(opts = {})
34
34
  if @api_client.config.debugging
35
35
  @api_client.config.logger.debug 'Calling API: BillingInvoicesApi.get_invoice_by_invoice_id ...'
@@ -58,7 +58,7 @@ module Fastly
58
58
  post_body = opts[:debug_body]
59
59
 
60
60
  # return_type
61
- return_type = opts[:debug_return_type] || 'InvoiceResponse'
61
+ return_type = opts[:debug_return_type] || 'EomInvoiceResponse'
62
62
 
63
63
  # auth_names
64
64
  auth_names = opts[:debug_auth_names] || ['token']
@@ -80,13 +80,69 @@ module Fastly
80
80
  return data, status_code, headers
81
81
  end
82
82
 
83
+ # Get month-to-date invoice.
84
+ # Returns month-to-date invoice for the current month.
85
+ # @return [MtdInvoiceResponse]
86
+ def get_month_to_date_invoice(opts = {})
87
+ data, _status_code, _headers = get_month_to_date_invoice_with_http_info(opts)
88
+ data
89
+ end
90
+
91
+ # Get month-to-date invoice.
92
+ # Returns month-to-date invoice for the current month.
93
+ # @return [Array<(MtdInvoiceResponse, Integer, Hash)>] MtdInvoiceResponse data, response status code and response headers
94
+ def get_month_to_date_invoice_with_http_info(opts = {})
95
+ if @api_client.config.debugging
96
+ @api_client.config.logger.debug 'Calling API: BillingInvoicesApi.get_month_to_date_invoice ...'
97
+ end
98
+ # unbox the parameters from the hash
99
+ # resource path
100
+ local_var_path = '/billing/v3/invoices/month-to-date'
101
+
102
+ # query parameters
103
+ query_params = opts[:query_params] || {}
104
+
105
+ # header parameters
106
+ header_params = opts[:header_params] || {}
107
+ # HTTP header 'Accept' (if needed)
108
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
109
+
110
+ # form parameters
111
+ form_params = opts[:form_params] || {}
112
+
113
+ # http body (model)
114
+ post_body = opts[:debug_body]
115
+
116
+ # return_type
117
+ return_type = opts[:debug_return_type] || 'MtdInvoiceResponse'
118
+
119
+ # auth_names
120
+ auth_names = opts[:debug_auth_names] || ['token']
121
+
122
+ new_options = opts.merge(
123
+ :operation => :"BillingInvoicesApi.get_month_to_date_invoice",
124
+ :header_params => header_params,
125
+ :query_params => query_params,
126
+ :form_params => form_params,
127
+ :body => post_body,
128
+ :auth_names => auth_names,
129
+ :return_type => return_type
130
+ )
131
+
132
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
133
+ if @api_client.config.debugging
134
+ @api_client.config.logger.debug "API called: BillingInvoicesApi#get_month_to_date_invoice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
135
+ end
136
+ return data, status_code, headers
137
+ end
138
+
83
139
  # List of invoices.
84
140
  # Returns the list of invoices, sorted by billing start date (newest to oldest).
85
141
  # @option opts [String] :billing_start_date
86
142
  # @option opts [String] :billing_end_date
87
143
  # @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
88
144
  # @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]
145
+ # @return [ListEomInvoicesResponse]
90
146
  def list_invoices(opts = {})
91
147
  data, _status_code, _headers = list_invoices_with_http_info(opts)
92
148
  data
@@ -98,7 +154,7 @@ module Fastly
98
154
  # @option opts [String] :billing_end_date
99
155
  # @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
100
156
  # @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
157
+ # @return [Array<(ListEomInvoicesResponse, Integer, Hash)>] ListEomInvoicesResponse data, response status code and response headers
102
158
  def list_invoices_with_http_info(opts = {})
103
159
  if @api_client.config.debugging
104
160
  @api_client.config.logger.debug 'Calling API: BillingInvoicesApi.list_invoices ...'
@@ -126,7 +182,7 @@ module Fastly
126
182
  post_body = opts[:debug_body]
127
183
 
128
184
  # return_type
129
- return_type = opts[:debug_return_type] || 'ListInvoicesResponse'
185
+ return_type = opts[:debug_return_type] || 'ListEomInvoicesResponse'
130
186
 
131
187
  # auth_names
132
188
  auth_names = opts[:debug_auth_names] || ['token']
@@ -0,0 +1,213 @@
1
+ =begin
2
+ #Fastly API
3
+
4
+ #Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: oss@fastly.com
8
+
9
+ =end
10
+
11
+ require 'cgi'
12
+
13
+ module Fastly
14
+ class BillingUsageMetricsApi
15
+ attr_accessor :api_client
16
+
17
+ def initialize(api_client = ApiClient.default)
18
+ @api_client = api_client
19
+ end
20
+ # Retrieve service-level usage metrics for a product.
21
+ # Returns product usage, broken down by service.
22
+ # @option opts [String] :customer_id Alphanumeric string identifying the customer. (required)
23
+ # @option opts [String] :product_id The product identifier for the metrics returned (e.g., &#x60;cdn_usage&#x60;). This field is not required for CSV requests. (required)
24
+ # @option opts [String] :usage_type_name The usage type name for the metrics returned (e.g., &#x60;North America Requests&#x60;). This field is not required for CSV requests. (required)
25
+ # @option opts [String] :time_granularity (required)
26
+ # @option opts [String] :start_date
27
+ # @option opts [String] :end_date
28
+ # @option opts [String] :start_month
29
+ # @option opts [String] :end_month
30
+ # @option opts [String] :limit Number of results per page. The maximum is 100. (default to '5')
31
+ # @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.
32
+ # @return [Serviceusagemetrics]
33
+ def get_service_level_usage(opts = {})
34
+ data, _status_code, _headers = get_service_level_usage_with_http_info(opts)
35
+ data
36
+ end
37
+
38
+ # Retrieve service-level usage metrics for a product.
39
+ # Returns product usage, broken down by service.
40
+ # @option opts [String] :customer_id Alphanumeric string identifying the customer. (required)
41
+ # @option opts [String] :product_id The product identifier for the metrics returned (e.g., &#x60;cdn_usage&#x60;). This field is not required for CSV requests. (required)
42
+ # @option opts [String] :usage_type_name The usage type name for the metrics returned (e.g., &#x60;North America Requests&#x60;). This field is not required for CSV requests. (required)
43
+ # @option opts [String] :time_granularity (required)
44
+ # @option opts [String] :start_date
45
+ # @option opts [String] :end_date
46
+ # @option opts [String] :start_month
47
+ # @option opts [String] :end_month
48
+ # @option opts [String] :limit Number of results per page. The maximum is 100. (default to '5')
49
+ # @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.
50
+ # @return [Array<(Serviceusagemetrics, Integer, Hash)>] Serviceusagemetrics data, response status code and response headers
51
+ def get_service_level_usage_with_http_info(opts = {})
52
+ if @api_client.config.debugging
53
+ @api_client.config.logger.debug 'Calling API: BillingUsageMetricsApi.get_service_level_usage ...'
54
+ end
55
+ # unbox the parameters from the hash
56
+ customer_id = opts[:'customer_id']
57
+ product_id = opts[:'product_id']
58
+ usage_type_name = opts[:'usage_type_name']
59
+ time_granularity = opts[:'time_granularity']
60
+ # verify the required parameter 'customer_id' is set
61
+ if @api_client.config.client_side_validation && customer_id.nil?
62
+ fail ArgumentError, "Missing the required parameter 'customer_id' when calling BillingUsageMetricsApi.get_service_level_usage"
63
+ end
64
+ # verify the required parameter 'product_id' is set
65
+ if @api_client.config.client_side_validation && product_id.nil?
66
+ fail ArgumentError, "Missing the required parameter 'product_id' when calling BillingUsageMetricsApi.get_service_level_usage"
67
+ end
68
+ # verify the required parameter 'usage_type_name' is set
69
+ if @api_client.config.client_side_validation && usage_type_name.nil?
70
+ fail ArgumentError, "Missing the required parameter 'usage_type_name' when calling BillingUsageMetricsApi.get_service_level_usage"
71
+ end
72
+ # verify the required parameter 'time_granularity' is set
73
+ if @api_client.config.client_side_validation && time_granularity.nil?
74
+ fail ArgumentError, "Missing the required parameter 'time_granularity' when calling BillingUsageMetricsApi.get_service_level_usage"
75
+ end
76
+ pattern = Regexp.new(/^day$|^month$/)
77
+ if @api_client.config.client_side_validation && time_granularity !~ pattern
78
+ fail ArgumentError, "invalid value for 'time_granularity' when calling BillingUsageMetricsApi.get_service_level_usage, must conform to the pattern #{pattern}."
79
+ end
80
+
81
+ pattern = Regexp.new(/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/)
82
+ if @api_client.config.client_side_validation && !opts[:'start_date'].nil? && opts[:'start_date'] !~ pattern
83
+ fail ArgumentError, "invalid value for 'opts[:\"start_date\"]' when calling BillingUsageMetricsApi.get_service_level_usage, must conform to the pattern #{pattern}."
84
+ end
85
+
86
+ pattern = Regexp.new(/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/)
87
+ if @api_client.config.client_side_validation && !opts[:'end_date'].nil? && opts[:'end_date'] !~ pattern
88
+ fail ArgumentError, "invalid value for 'opts[:\"end_date\"]' when calling BillingUsageMetricsApi.get_service_level_usage, must conform to the pattern #{pattern}."
89
+ end
90
+
91
+ pattern = Regexp.new(/^[0-9]{4}-[0-9]{2}$/)
92
+ if @api_client.config.client_side_validation && !opts[:'start_month'].nil? && opts[:'start_month'] !~ pattern
93
+ fail ArgumentError, "invalid value for 'opts[:\"start_month\"]' when calling BillingUsageMetricsApi.get_service_level_usage, must conform to the pattern #{pattern}."
94
+ end
95
+
96
+ pattern = Regexp.new(/^[0-9]{4}-[0-9]{2}$/)
97
+ if @api_client.config.client_side_validation && !opts[:'end_month'].nil? && opts[:'end_month'] !~ pattern
98
+ fail ArgumentError, "invalid value for 'opts[:\"end_month\"]' when calling BillingUsageMetricsApi.get_service_level_usage, must conform to the pattern #{pattern}."
99
+ end
100
+
101
+ # resource path
102
+ local_var_path = '/billing/v2/account_customers/{customer_id}/service-usage-metrics'.sub('{' + 'customer_id' + '}', CGI.escape(customer_id.to_s))
103
+
104
+ # query parameters
105
+ query_params = opts[:query_params] || {}
106
+ query_params[:'product_id'] = product_id
107
+ query_params[:'usage_type_name'] = usage_type_name
108
+ query_params[:'time_granularity'] = time_granularity
109
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
110
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
111
+ query_params[:'start_month'] = opts[:'start_month'] if !opts[:'start_month'].nil?
112
+ query_params[:'end_month'] = opts[:'end_month'] if !opts[:'end_month'].nil?
113
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
114
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
115
+
116
+ # header parameters
117
+ header_params = opts[:header_params] || {}
118
+ # HTTP header 'Accept' (if needed)
119
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
120
+
121
+ # form parameters
122
+ form_params = opts[:form_params] || {}
123
+
124
+ # http body (model)
125
+ post_body = opts[:debug_body]
126
+
127
+ # return_type
128
+ return_type = opts[:debug_return_type] || 'Serviceusagemetrics'
129
+
130
+ # auth_names
131
+ auth_names = opts[:debug_auth_names] || ['token']
132
+
133
+ new_options = opts.merge(
134
+ :operation => :"BillingUsageMetricsApi.get_service_level_usage",
135
+ :header_params => header_params,
136
+ :query_params => query_params,
137
+ :form_params => form_params,
138
+ :body => post_body,
139
+ :auth_names => auth_names,
140
+ :return_type => return_type
141
+ )
142
+
143
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
144
+ if @api_client.config.debugging
145
+ @api_client.config.logger.debug "API called: BillingUsageMetricsApi#get_service_level_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
146
+ end
147
+ return data, status_code, headers
148
+ end
149
+
150
+ # Retrieve product usage types for a customer.
151
+ # Returns product usage types reported by the customer's services.
152
+ # @option opts [String] :customer_id Alphanumeric string identifying the customer. (required)
153
+ # @return [Serviceusagetypes]
154
+ def get_service_level_usage_types(opts = {})
155
+ data, _status_code, _headers = get_service_level_usage_types_with_http_info(opts)
156
+ data
157
+ end
158
+
159
+ # Retrieve product usage types for a customer.
160
+ # Returns product usage types reported by the customer&#39;s services.
161
+ # @option opts [String] :customer_id Alphanumeric string identifying the customer. (required)
162
+ # @return [Array<(Serviceusagetypes, Integer, Hash)>] Serviceusagetypes data, response status code and response headers
163
+ def get_service_level_usage_types_with_http_info(opts = {})
164
+ if @api_client.config.debugging
165
+ @api_client.config.logger.debug 'Calling API: BillingUsageMetricsApi.get_service_level_usage_types ...'
166
+ end
167
+ # unbox the parameters from the hash
168
+ customer_id = opts[:'customer_id']
169
+ # verify the required parameter 'customer_id' is set
170
+ if @api_client.config.client_side_validation && customer_id.nil?
171
+ fail ArgumentError, "Missing the required parameter 'customer_id' when calling BillingUsageMetricsApi.get_service_level_usage_types"
172
+ end
173
+ # resource path
174
+ local_var_path = '/billing/v2/account_customers/{customer_id}/service-usage-types'.sub('{' + 'customer_id' + '}', CGI.escape(customer_id.to_s))
175
+
176
+ # query parameters
177
+ query_params = opts[:query_params] || {}
178
+
179
+ # header parameters
180
+ header_params = opts[:header_params] || {}
181
+ # HTTP header 'Accept' (if needed)
182
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
183
+
184
+ # form parameters
185
+ form_params = opts[:form_params] || {}
186
+
187
+ # http body (model)
188
+ post_body = opts[:debug_body]
189
+
190
+ # return_type
191
+ return_type = opts[:debug_return_type] || 'Serviceusagetypes'
192
+
193
+ # auth_names
194
+ auth_names = opts[:debug_auth_names] || ['token']
195
+
196
+ new_options = opts.merge(
197
+ :operation => :"BillingUsageMetricsApi.get_service_level_usage_types",
198
+ :header_params => header_params,
199
+ :query_params => query_params,
200
+ :form_params => form_params,
201
+ :body => post_body,
202
+ :auth_names => auth_names,
203
+ :return_type => return_type
204
+ )
205
+
206
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
207
+ if @api_client.config.debugging
208
+ @api_client.config.logger.debug "API called: BillingUsageMetricsApi#get_service_level_usage_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
209
+ end
210
+ return data, status_code, headers
211
+ end
212
+ end
213
+ end
@@ -18,7 +18,7 @@ module Fastly
18
18
  @api_client = api_client
19
19
  end
20
20
  # Check status of content in each POP's cache
21
- # Retrieve headers and MD5 hash of the content for a particular URL from each Fastly edge server. This API is limited to 200 requests per hour.
21
+ # Retrieve headers and MD5 hash of the content for a particular URL from each Fastly edge server. This API is limited to 200 requests per hour. If the content takes too long to download, the hash will be set to `error-timeout-$pop`. If the response is too large, it will be set to `warning-too-large-$pop`.
22
22
  # @option opts [String] :url Full URL (host and path) to check on all nodes. if protocol is omitted, http will be assumed.
23
23
  # @return [Array<Content>]
24
24
  def content_check(opts = {})
@@ -27,7 +27,7 @@ module Fastly
27
27
  end
28
28
 
29
29
  # Check status of content in each POP&#39;s cache
30
- # Retrieve headers and MD5 hash of the content for a particular URL from each Fastly edge server. This API is limited to 200 requests per hour.
30
+ # Retrieve headers and MD5 hash of the content for a particular URL from each Fastly edge server. This API is limited to 200 requests per hour. If the content takes too long to download, the hash will be set to &#x60;error-timeout-$pop&#x60;. If the response is too large, it will be set to &#x60;warning-too-large-$pop&#x60;.
31
31
  # @option opts [String] :url Full URL (host and path) to check on all nodes. if protocol is omitted, http will be assumed.
32
32
  # @return [Array<(Array<Content>, Integer, Hash)>] Array<Content> data, response status code and response headers
33
33
  def content_check_with_http_info(opts = {})
@@ -69,7 +69,7 @@ module Fastly
69
69
  if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
70
70
  fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
71
71
  end
72
- allowable_values = ["US", "EU"]
72
+ allowable_values = ["US", "US3", "US5", "EU (legacy, same as EU1)", "EU1", "AP1"]
73
73
  if @api_client.config.client_side_validation && opts[:'region'] && !allowable_values.include?(opts[:'region'])
74
74
  fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
75
75
  end
@@ -408,7 +408,7 @@ module Fastly
408
408
  if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
409
409
  fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
410
410
  end
411
- allowable_values = ["US", "EU"]
411
+ allowable_values = ["US", "US3", "US5", "EU (legacy, same as EU1)", "EU1", "AP1"]
412
412
  if @api_client.config.client_side_validation && opts[:'region'] && !allowable_values.include?(opts[:'region'])
413
413
  fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
414
414
  end
@@ -39,7 +39,7 @@ module Fastly
39
39
  # @option opts [String] :auth_method SASL authentication method.
40
40
  # @option opts [String] :user SASL user.
41
41
  # @option opts [String] :password SASL password.
42
- # @option opts [LoggingUseTls] :use_tls (default to 0)
42
+ # @option opts [LoggingUseTlsString] :use_tls (default to '0')
43
43
  # @return [LoggingKafkaResponsePost]
44
44
  def create_log_kafka(opts = {})
45
45
  data, _status_code, _headers = create_log_kafka_with_http_info(opts)
@@ -68,7 +68,7 @@ module Fastly
68
68
  # @option opts [String] :auth_method SASL authentication method.
69
69
  # @option opts [String] :user SASL user.
70
70
  # @option opts [String] :password SASL password.
71
- # @option opts [LoggingUseTls] :use_tls (default to 0)
71
+ # @option opts [LoggingUseTlsString] :use_tls (default to '0')
72
72
  # @return [Array<(LoggingKafkaResponsePost, Integer, Hash)>] LoggingKafkaResponsePost data, response status code and response headers
73
73
  def create_log_kafka_with_http_info(opts = {})
74
74
  if @api_client.config.debugging
@@ -28,7 +28,7 @@ module Fastly
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 [Integer] :port The port number. (default to 20000)
30
30
  # @option opts [String] :token Use token based authentication.
31
- # @option opts [LoggingUseTls] :use_tls (default to LoggingUseTls::no_tls)
31
+ # @option opts [LoggingUseTlsString] :use_tls (default to '0')
32
32
  # @option opts [String] :region The region to which to stream logs.
33
33
  # @return [LoggingLogentriesResponse]
34
34
  def create_log_logentries(opts = {})
@@ -47,7 +47,7 @@ module Fastly
47
47
  # @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)
48
48
  # @option opts [Integer] :port The port number. (default to 20000)
49
49
  # @option opts [String] :token Use token based authentication.
50
- # @option opts [LoggingUseTls] :use_tls (default to LoggingUseTls::no_tls)
50
+ # @option opts [LoggingUseTlsString] :use_tls (default to '0')
51
51
  # @option opts [String] :region The region to which to stream logs.
52
52
  # @return [Array<(LoggingLogentriesResponse, Integer, Hash)>] LoggingLogentriesResponse data, response status code and response headers
53
53
  def create_log_logentries_with_http_info(opts = {})
@@ -367,7 +367,7 @@ module Fastly
367
367
  # @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)
368
368
  # @option opts [Integer] :port The port number. (default to 20000)
369
369
  # @option opts [String] :token Use token based authentication.
370
- # @option opts [LoggingUseTls] :use_tls (default to LoggingUseTls::no_tls)
370
+ # @option opts [LoggingUseTlsString] :use_tls (default to '0')
371
371
  # @option opts [String] :region The region to which to stream logs.
372
372
  # @return [LoggingLogentriesResponse]
373
373
  def update_log_logentries(opts = {})
@@ -387,7 +387,7 @@ module Fastly
387
387
  # @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)
388
388
  # @option opts [Integer] :port The port number. (default to 20000)
389
389
  # @option opts [String] :token Use token based authentication.
390
- # @option opts [LoggingUseTls] :use_tls (default to LoggingUseTls::no_tls)
390
+ # @option opts [LoggingUseTlsString] :use_tls (default to '0')
391
391
  # @option opts [String] :region The region to which to stream logs.
392
392
  # @return [Array<(LoggingLogentriesResponse, Integer, Hash)>] LoggingLogentriesResponse data, response status code and response headers
393
393
  def update_log_logentries_with_http_info(opts = {})
@@ -34,7 +34,7 @@ module Fastly
34
34
  # @option opts [Integer] :request_max_bytes The maximum number of bytes sent in one request. Defaults &#x60;0&#x60; for unbounded. (default to 0)
35
35
  # @option opts [String] :url The URL to post logs to.
36
36
  # @option opts [String] :token A Splunk token for use in posting logs over HTTP to your collector.
37
- # @option opts [LoggingUseTls] :use_tls (default to LoggingUseTls::no_tls)
37
+ # @option opts [LoggingUseTlsString] :use_tls (default to '0')
38
38
  # @return [LoggingSplunkResponse]
39
39
  def create_log_splunk(opts = {})
40
40
  data, _status_code, _headers = create_log_splunk_with_http_info(opts)
@@ -58,7 +58,7 @@ module Fastly
58
58
  # @option opts [Integer] :request_max_bytes The maximum number of bytes sent in one request. Defaults &#x60;0&#x60; for unbounded. (default to 0)
59
59
  # @option opts [String] :url The URL to post logs to.
60
60
  # @option opts [String] :token A Splunk token for use in posting logs over HTTP to your collector.
61
- # @option opts [LoggingUseTls] :use_tls (default to LoggingUseTls::no_tls)
61
+ # @option opts [LoggingUseTlsString] :use_tls (default to '0')
62
62
  # @return [Array<(LoggingSplunkResponse, Integer, Hash)>] LoggingSplunkResponse data, response status code and response headers
63
63
  def create_log_splunk_with_http_info(opts = {})
64
64
  if @api_client.config.debugging
@@ -384,7 +384,7 @@ module Fastly
384
384
  # @option opts [Integer] :request_max_bytes The maximum number of bytes sent in one request. Defaults &#x60;0&#x60; for unbounded. (default to 0)
385
385
  # @option opts [String] :url The URL to post logs to.
386
386
  # @option opts [String] :token A Splunk token for use in posting logs over HTTP to your collector.
387
- # @option opts [LoggingUseTls] :use_tls (default to LoggingUseTls::no_tls)
387
+ # @option opts [LoggingUseTlsString] :use_tls (default to '0')
388
388
  # @return [LoggingSplunkResponse]
389
389
  def update_log_splunk(opts = {})
390
390
  data, _status_code, _headers = update_log_splunk_with_http_info(opts)
@@ -409,7 +409,7 @@ module Fastly
409
409
  # @option opts [Integer] :request_max_bytes The maximum number of bytes sent in one request. Defaults &#x60;0&#x60; for unbounded. (default to 0)
410
410
  # @option opts [String] :url The URL to post logs to.
411
411
  # @option opts [String] :token A Splunk token for use in posting logs over HTTP to your collector.
412
- # @option opts [LoggingUseTls] :use_tls (default to LoggingUseTls::no_tls)
412
+ # @option opts [LoggingUseTlsString] :use_tls (default to '0')
413
413
  # @return [Array<(LoggingSplunkResponse, Integer, Hash)>] LoggingSplunkResponse data, response status code and response headers
414
414
  def update_log_splunk_with_http_info(opts = {})
415
415
  if @api_client.config.debugging
@@ -36,7 +36,7 @@ module Fastly
36
36
  # @option opts [String] :hostname The hostname used for the syslog endpoint.
37
37
  # @option opts [String] :ipv4 The IPv4 address used for the syslog endpoint.
38
38
  # @option opts [String] :token Whether to prepend each message with a specific token. (default to 'null')
39
- # @option opts [LoggingUseTls] :use_tls (default to LoggingUseTls::no_tls)
39
+ # @option opts [LoggingUseTlsString] :use_tls (default to '0')
40
40
  # @return [LoggingSyslogResponse]
41
41
  def create_log_syslog(opts = {})
42
42
  data, _status_code, _headers = create_log_syslog_with_http_info(opts)
@@ -62,7 +62,7 @@ module Fastly
62
62
  # @option opts [String] :hostname The hostname used for the syslog endpoint.
63
63
  # @option opts [String] :ipv4 The IPv4 address used for the syslog endpoint.
64
64
  # @option opts [String] :token Whether to prepend each message with a specific token. (default to 'null')
65
- # @option opts [LoggingUseTls] :use_tls (default to LoggingUseTls::no_tls)
65
+ # @option opts [LoggingUseTlsString] :use_tls (default to '0')
66
66
  # @return [Array<(LoggingSyslogResponse, Integer, Hash)>] LoggingSyslogResponse data, response status code and response headers
67
67
  def create_log_syslog_with_http_info(opts = {})
68
68
  if @api_client.config.debugging
@@ -392,7 +392,7 @@ module Fastly
392
392
  # @option opts [String] :hostname The hostname used for the syslog endpoint.
393
393
  # @option opts [String] :ipv4 The IPv4 address used for the syslog endpoint.
394
394
  # @option opts [String] :token Whether to prepend each message with a specific token. (default to 'null')
395
- # @option opts [LoggingUseTls] :use_tls (default to LoggingUseTls::no_tls)
395
+ # @option opts [LoggingUseTlsString] :use_tls (default to '0')
396
396
  # @return [LoggingSyslogResponse]
397
397
  def update_log_syslog(opts = {})
398
398
  data, _status_code, _headers = update_log_syslog_with_http_info(opts)
@@ -419,7 +419,7 @@ module Fastly
419
419
  # @option opts [String] :hostname The hostname used for the syslog endpoint.
420
420
  # @option opts [String] :ipv4 The IPv4 address used for the syslog endpoint.
421
421
  # @option opts [String] :token Whether to prepend each message with a specific token. (default to 'null')
422
- # @option opts [LoggingUseTls] :use_tls (default to LoggingUseTls::no_tls)
422
+ # @option opts [LoggingUseTlsString] :use_tls (default to '0')
423
423
  # @return [Array<(LoggingSyslogResponse, Integer, Hash)>] LoggingSyslogResponse data, response status code and response headers
424
424
  def update_log_syslog_with_http_info(opts = {})
425
425
  if @api_client.config.debugging