fastly 10.0.0 → 11.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -1
  3. data/Gemfile.lock +1 -1
  4. data/README.md +2 -5
  5. data/docs/AutomationToken.md +1 -1
  6. data/docs/AutomationTokenCreateRequestAttributes.md +1 -1
  7. data/docs/AutomationTokenCreateResponse.md +4 -6
  8. data/docs/AutomationTokenCreateResponseAllOf.md +3 -3
  9. data/docs/AutomationTokenResponse.md +4 -6
  10. data/docs/AutomationTokenResponseAllOf.md +4 -4
  11. data/docs/BillingUsageMetricsApi.md +11 -9
  12. data/docs/ComputeAclListEntriesMeta.md +1 -1
  13. data/docs/Header.md +2 -0
  14. data/docs/HeaderApi.md +8 -8
  15. data/docs/KvStoreItemApi.md +4 -4
  16. data/docs/LoggingAzureblobAdditional.md +1 -1
  17. data/docs/LoggingAzureblobApi.md +4 -4
  18. data/docs/LoggingAzureblobResponse.md +1 -1
  19. data/docs/Results.md +7 -0
  20. data/docs/SnippetApi.md +2 -2
  21. data/docs/{SnippetResponseCommonAllOf.md → SnippetResponseAllOf.md} +1 -1
  22. data/docs/TlsBulkCertificatesApi.md +4 -0
  23. data/lib/fastly/api/automation_tokens_api.rb +6 -6
  24. data/lib/fastly/api/billing_usage_metrics_api.rb +11 -8
  25. data/lib/fastly/api/header_api.rb +8 -8
  26. data/lib/fastly/api/kv_store_item_api.rb +5 -5
  27. data/lib/fastly/api/logging_azureblob_api.rb +4 -4
  28. data/lib/fastly/api/snippet_api.rb +3 -3
  29. data/lib/fastly/api/tls_bulk_certificates_api.rb +6 -0
  30. data/lib/fastly/configuration.rb +0 -18
  31. data/lib/fastly/models/automation_token.rb +1 -1
  32. data/lib/fastly/models/automation_token_create_request_attributes.rb +1 -1
  33. data/lib/fastly/models/automation_token_create_response.rb +21 -43
  34. data/lib/fastly/models/automation_token_create_response_all_of.rb +13 -12
  35. data/lib/fastly/models/automation_token_response.rb +24 -46
  36. data/lib/fastly/models/automation_token_response_all_of.rb +11 -10
  37. data/lib/fastly/models/compute_acl_list_entries_meta.rb +1 -1
  38. data/lib/fastly/models/header.rb +26 -4
  39. data/lib/fastly/models/header_response.rb +0 -1
  40. data/lib/fastly/models/logging_azureblob_additional.rb +1 -1
  41. data/lib/fastly/models/logging_azureblob_response.rb +1 -1
  42. data/lib/fastly/models/results.rb +71 -1
  43. data/lib/fastly/models/schemas_snippet_response.rb +3 -2
  44. data/lib/fastly/models/snippet.rb +0 -8
  45. data/lib/fastly/models/snippet_response.rb +2 -1
  46. data/lib/fastly/models/{snippet_response_common_all_of.rb → snippet_response_all_of.rb} +3 -3
  47. data/lib/fastly/version.rb +1 -1
  48. data/lib/fastly.rb +1 -26
  49. data/sig.json +1 -1
  50. metadata +4 -54
  51. data/docs/Billing.md +0 -16
  52. data/docs/BillingApi.md +0 -139
  53. data/docs/BillingBandwidth.md +0 -11
  54. data/docs/BillingBandwidthTiers.md +0 -14
  55. data/docs/BillingEstimateInvoiceId.md +0 -10
  56. data/docs/BillingEstimateLines.md +0 -10
  57. data/docs/BillingEstimateLinesLineItems.md +0 -18
  58. data/docs/BillingEstimateResponse.md +0 -18
  59. data/docs/BillingInvoiceId.md +0 -10
  60. data/docs/BillingRegions.md +0 -13
  61. data/docs/BillingResponse.md +0 -18
  62. data/docs/BillingResponseItemItemsData.md +0 -10
  63. data/docs/BillingResponseLineItem.md +0 -29
  64. data/docs/BillingStatus.md +0 -11
  65. data/docs/BillingTotal.md +0 -25
  66. data/docs/BillingTotalExtras.md +0 -12
  67. data/docs/HeaderResponseAdditional.md +0 -11
  68. data/docs/LineItemData.md +0 -26
  69. data/docs/SchemasSnippetResponseCommon.md +0 -15
  70. data/docs/SnippetAllOf.md +0 -10
  71. data/docs/SnippetCommon.md +0 -13
  72. data/docs/SnippetResponseCommon.md +0 -15
  73. data/docs/SnippetResponsePost.md +0 -20
  74. data/docs/SnippetWithDynamicNumber.md +0 -14
  75. data/docs/SnippetWithDynamicNumberAllOf.md +0 -10
  76. data/lib/fastly/api/billing_api.rb +0 -229
  77. data/lib/fastly/models/billing.rb +0 -278
  78. data/lib/fastly/models/billing_bandwidth.rb +0 -227
  79. data/lib/fastly/models/billing_bandwidth_tiers.rb +0 -252
  80. data/lib/fastly/models/billing_estimate_invoice_id.rb +0 -216
  81. data/lib/fastly/models/billing_estimate_lines.rb +0 -218
  82. data/lib/fastly/models/billing_estimate_lines_line_items.rb +0 -288
  83. data/lib/fastly/models/billing_estimate_response.rb +0 -307
  84. data/lib/fastly/models/billing_invoice_id.rb +0 -216
  85. data/lib/fastly/models/billing_regions.rb +0 -243
  86. data/lib/fastly/models/billing_response.rb +0 -307
  87. data/lib/fastly/models/billing_response_item_items_data.rb +0 -218
  88. data/lib/fastly/models/billing_response_line_item.rb +0 -418
  89. data/lib/fastly/models/billing_status.rb +0 -262
  90. data/lib/fastly/models/billing_total.rb +0 -371
  91. data/lib/fastly/models/billing_total_extras.rb +0 -237
  92. data/lib/fastly/models/header_response_additional.rb +0 -229
  93. data/lib/fastly/models/line_item_data.rb +0 -377
  94. data/lib/fastly/models/schemas_snippet_response_common.rb +0 -276
  95. data/lib/fastly/models/snippet_all_of.rb +0 -251
  96. data/lib/fastly/models/snippet_common.rb +0 -284
  97. data/lib/fastly/models/snippet_response_common.rb +0 -276
  98. data/lib/fastly/models/snippet_response_post.rb +0 -375
  99. data/lib/fastly/models/snippet_with_dynamic_number.rb +0 -314
  100. data/lib/fastly/models/snippet_with_dynamic_number_all_of.rb +0 -251
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e4d78fce1c549263e67d7581779b545b7c45f7686558810810546b62bea4f5ed
4
- data.tar.gz: 70639d3a78e606033bdd7396813b420935ba46ad63cb942eef3ad2b938dd6ff1
3
+ metadata.gz: 0d5dd36bedc8ffad51bb8646e10610a0a673a36e53fecfb6facc42e6966369b2
4
+ data.tar.gz: 4320452028d6be8c12f8aa8bcd61727ce6c4dae31261f0dcb3fab33527b520d6
5
5
  SHA512:
6
- metadata.gz: 348a9e609e4f662ebe87a5384619bd86057341b88204ccb53ef6e2daadb9bba0b2d6dc026bc57e734ba3e2c3e6f760091344fdb32d0910b669847f1d0e6d1c65
7
- data.tar.gz: 9bbe9b96f1bce84fc45d5f349444f04d702c32d5ea654eece967c818d223cad16a3d0e3b8873af3714cecbcb9f80c3a1e7b395cf47269c150d27341bdd85b83f
6
+ metadata.gz: 16fea3a319cc975d740381f434e11f9bf04e8bab7bac9a2250e8a099c3101e218604385b28dfcbf1b9583c6694e9044ba76ee39f3a1d18d6a631e08d9a27f44b
7
+ data.tar.gz: cce9ae0887786ac0f53216f25f60dd8d918eae8304d4986f3b613f1305b08a8f2209c805c074a5cad51977bfb134855fb64c81d3430379d619d86decc9cb4504
data/CHANGELOG.md CHANGED
@@ -1,9 +1,21 @@
1
1
  # Changelog
2
2
 
3
- ## [v10.0.0](https://github.com/fastly/fastly-ruby/releases/tag/release/v10.0.0) (2025-02-26)
3
+ ## [v11.0.0](https://github.com/fastly/fastly-ruby/releases/tag/release/v11.0.0) (2025-03-13)
4
4
 
5
5
  **Breaking Changes:**
6
6
 
7
+ - fix(automation_tokens): Response content types corrected.
8
+ - fix(automation_tokens): Removed timestamp fields.
9
+ - removed(billing): Billing v2 API has been removed.
10
+
11
+ - fix(acls_in_compute): Corrected `meta.limit` field type from string to integer.
12
+
13
+ - fix(condition): Condition responses now always have a string value for the priority field.
14
+ - fix(header): Header responses now always have a string value for the priority field.
15
+ - fix(snippet): Snippet responses now always have string values for the priority and dynamic fields.
16
+
17
+ - fix(kv_store_item): `kv-store-get-item` returns an inline object instead of a File object.
18
+
7
19
  - fix(snippet): Renamed `snippet_id` and `snippet_name` properties to `id` and `name` respectively.
8
20
  - feat(kv_store, kv_store_item): KV store endpoints have new operation names, and the associated data models also have
9
21
  new names.
@@ -25,6 +37,14 @@
25
37
 
26
38
  **Enhancements:**
27
39
 
40
+ - fix(automation_tokens): Added tls_access, creator_id fields to responses.
41
+ - feat(billing_usage_metrics): Added filter by service identifier for service-usage-metrics endpoint.
42
+ - feat(historical): Added new metrics: `ngwaf_requests_total_count`, `ngwaf_requests_unknown_count`,
43
+ `ngwaf_requests_allowed_count`, `ngwaf_requests_logged_count`, `ngwaf_requests_blocked_count`,
44
+ `ngwaf_requests_timeout_count`, and `ngwaf_requests_challenged_count`.
45
+ - feat(tls_bulk_certificates): Added `not_before` and `not_after` filter parameters to allow for filtering of bulk TLS
46
+ certificates by expiry.
47
+
28
48
  - feat(products): Added `object_storage` and `ai_accelerator` products.
29
49
  - feat(historical): Added new metrics: `object_storage_class_a_operations_count`,
30
50
  `object_storage_class_b_operations_count`, `aia_requests`, `aia_status_1xx`,
@@ -45,6 +65,10 @@
45
65
 
46
66
  **Documentation:**
47
67
 
68
+ - doc(billing_usage_metrics): Correct documentation of pagination limits.
69
+ - doc(billing_usage_metrics): Correct documentation of api conditions for product_id and usage_type_name filters.
70
+ - doc(logging_azureblob): Mention Azure Block size limits.
71
+
48
72
  - doc(billing_usage_metrics): Documented that `start_month` and `end_month` are required.
49
73
  - doc(historical): Correct default start time in description of Historical Stats API.
50
74
  - doc(domain_inspector_historical): Removed duplicate description.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fastly (10.0.0)
4
+ fastly (11.0.0)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -8,7 +8,7 @@ A Ruby client library for interacting with most facets of the [Fastly API](https
8
8
  To install via RubyGems, add the following to your project's `Gemfile`:
9
9
 
10
10
  ```ruby
11
- gem 'fastly', '~> 10.0.0'
11
+ gem 'fastly', '~> 11.0.0'
12
12
  ```
13
13
 
14
14
  Then run `bundle install`.
@@ -101,9 +101,6 @@ Class | Method | Description
101
101
  [*Fastly::BackendApi*](docs/BackendApi.md) | [**get_backend**](docs/BackendApi.md#get_backend) | Describe a backend
102
102
  [*Fastly::BackendApi*](docs/BackendApi.md) | [**list_backends**](docs/BackendApi.md#list_backends) | List backends
103
103
  [*Fastly::BackendApi*](docs/BackendApi.md) | [**update_backend**](docs/BackendApi.md#update_backend) | Update a backend
104
- [*Fastly::BillingApi*](docs/BillingApi.md) | [**get_invoice**](docs/BillingApi.md#get_invoice) | Get an invoice
105
- [*Fastly::BillingApi*](docs/BillingApi.md) | [**get_invoice_by_id**](docs/BillingApi.md#get_invoice_by_id) | Get an invoice
106
- [*Fastly::BillingApi*](docs/BillingApi.md) | [**get_invoice_mtd**](docs/BillingApi.md#get_invoice_mtd) | Get month-to-date billing estimate
107
104
  [*Fastly::BillingAddressApi*](docs/BillingAddressApi.md) | [**add_billing_addr**](docs/BillingAddressApi.md#add_billing_addr) | Add a billing address to a customer
108
105
  [*Fastly::BillingAddressApi*](docs/BillingAddressApi.md) | [**delete_billing_addr**](docs/BillingAddressApi.md#delete_billing_addr) | Delete a billing address
109
106
  [*Fastly::BillingAddressApi*](docs/BillingAddressApi.md) | [**get_billing_addr**](docs/BillingAddressApi.md#get_billing_addr) | Get a billing address
@@ -111,7 +108,7 @@ Class | Method | Description
111
108
  [*Fastly::BillingInvoicesApi*](docs/BillingInvoicesApi.md) | [**get_invoice_by_invoice_id**](docs/BillingInvoicesApi.md#get_invoice_by_invoice_id) | Get invoice by ID.
112
109
  [*Fastly::BillingInvoicesApi*](docs/BillingInvoicesApi.md) | [**get_month_to_date_invoice**](docs/BillingInvoicesApi.md#get_month_to_date_invoice) | Get month-to-date invoice.
113
110
  [*Fastly::BillingInvoicesApi*](docs/BillingInvoicesApi.md) | [**list_invoices**](docs/BillingInvoicesApi.md#list_invoices) | List of invoices.
114
- [*Fastly::BillingUsageMetricsApi*](docs/BillingUsageMetricsApi.md) | [**get_service_level_usage**](docs/BillingUsageMetricsApi.md#get_service_level_usage) | Retrieve service-level usage metrics for a product.
111
+ [*Fastly::BillingUsageMetricsApi*](docs/BillingUsageMetricsApi.md) | [**get_service_level_usage**](docs/BillingUsageMetricsApi.md#get_service_level_usage) | Retrieve service-level usage metrics for services with non-zero usage units.
115
112
  [*Fastly::BillingUsageMetricsApi*](docs/BillingUsageMetricsApi.md) | [**get_usage_metrics**](docs/BillingUsageMetricsApi.md#get_usage_metrics) | Get monthly usage metrics
116
113
  [*Fastly::CacheSettingsApi*](docs/CacheSettingsApi.md) | [**create_cache_settings**](docs/CacheSettingsApi.md#create_cache_settings) | Create a cache settings object
117
114
  [*Fastly::CacheSettingsApi*](docs/CacheSettingsApi.md) | [**delete_cache_settings**](docs/CacheSettingsApi.md#delete_cache_settings) | Delete a cache settings object
@@ -8,7 +8,7 @@
8
8
  | **role** | **String** | The role on the token. | [optional] |
9
9
  | **services** | **Array<String>** | (Optional) The service IDs of the services the token will have access to. Separate service IDs with a space. If no services are specified, the token will have access to all services on the account. | [optional] |
10
10
  | **scope** | **String** | A space-delimited list of authorization scope. | [optional][default to 'global'] |
11
- | **expires_at** | **String** | A UTC time-stamp of when the token expires. | [optional] |
11
+ | **expires_at** | **String** | A UTC timestamp of when the token expires. | [optional] |
12
12
 
13
13
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
14
14
 
@@ -8,7 +8,7 @@
8
8
  | **role** | **String** | | [optional] |
9
9
  | **services** | **Array<String>** | List of service ids to limit the token | [optional] |
10
10
  | **scope** | **String** | | [optional][default to 'global'] |
11
- | **expires_at** | **Time** | A UTC time-stamp of when the token will expire. | [optional] |
11
+ | **expires_at** | **Time** | A UTC timestamp of when the token will expire. | [optional] |
12
12
  | **tls_access** | **Boolean** | Indicates whether TLS access is enabled for the token. | [optional] |
13
13
 
14
14
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
@@ -8,16 +8,14 @@
8
8
  | **role** | **String** | The role on the token. | [optional] |
9
9
  | **services** | **Array<String>** | (Optional) The service IDs of the services the token will have access to. Separate service IDs with a space. If no services are specified, the token will have access to all services on the account. | [optional] |
10
10
  | **scope** | **String** | A space-delimited list of authorization scope. | [optional][default to 'global'] |
11
- | **expires_at** | **String** | A UTC time-stamp of when the token expires. | [optional] |
12
- | **created_at** | **Time** | A UTC time-stamp of when the token was created. | [optional][readonly] |
13
- | **deleted_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
14
- | **updated_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
11
+ | **expires_at** | **String** | A UTC timestamp of when the token expires. | [optional] |
15
12
  | **id** | [**ReadOnlyId**](ReadOnlyId.md) | | [optional] |
16
13
  | **user_id** | [**ReadOnlyUserId**](ReadOnlyUserId.md) | | [optional] |
17
14
  | **customer_id** | [**ReadOnlyCustomerId**](ReadOnlyCustomerId.md) | | [optional] |
18
- | **sudo_expires_at** | **Time** | | [optional][readonly] |
15
+ | **created_at** | **Time** | A UTC timestamp of when the token was created. | [optional][readonly] |
19
16
  | **access_token** | **String** | | [optional][readonly] |
20
- | **last_used_at** | **Time** | A UTC time-stamp of when the token was last used. | [optional][readonly] |
17
+ | **tls_access** | **Boolean** | Indicates whether TLS access is enabled for the token. | [optional] |
18
+ | **last_used_at** | **Time** | A UTC timestamp of when the token was last used. | [optional][readonly] |
21
19
  | **user_agent** | **String** | The User-Agent header of the client that last used the token. | [optional] |
22
20
 
23
21
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
@@ -7,10 +7,10 @@
7
7
  | **id** | [**ReadOnlyId**](ReadOnlyId.md) | | [optional] |
8
8
  | **user_id** | [**ReadOnlyUserId**](ReadOnlyUserId.md) | | [optional] |
9
9
  | **customer_id** | [**ReadOnlyCustomerId**](ReadOnlyCustomerId.md) | | [optional] |
10
- | **sudo_expires_at** | **Time** | | [optional][readonly] |
11
- | **created_at** | **Time** | A UTC time-stamp of when the token was created. | [optional][readonly] |
10
+ | **created_at** | **Time** | A UTC timestamp of when the token was created. | [optional][readonly] |
12
11
  | **access_token** | **String** | | [optional][readonly] |
13
- | **last_used_at** | **Time** | A UTC time-stamp of when the token was last used. | [optional][readonly] |
12
+ | **tls_access** | **Boolean** | Indicates whether TLS access is enabled for the token. | [optional] |
13
+ | **last_used_at** | **Time** | A UTC timestamp of when the token was last used. | [optional][readonly] |
14
14
  | **user_agent** | **String** | The User-Agent header of the client that last used the token. | [optional] |
15
15
 
16
16
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
@@ -8,16 +8,14 @@
8
8
  | **role** | **String** | | [optional] |
9
9
  | **services** | **Array<String>** | (Optional) The service IDs of the services the token will have access to. Separate service IDs with a space. If no services are specified, the token will have access to all services on the account. | [optional] |
10
10
  | **scope** | **String** | A space-delimited list of authorization scope. | [optional][default to 'global'] |
11
- | **expires_at** | **String** | (optional) A UTC time-stamp of when the token will expire. | [optional] |
12
- | **created_at** | **String** | A UTC time-stamp of when the token was created. | [optional] |
13
- | **deleted_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
14
- | **updated_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
11
+ | **expires_at** | **String** | (optional) A UTC timestamp of when the token will expire. | [optional] |
15
12
  | **id** | [**ReadOnlyId**](ReadOnlyId.md) | | [optional] |
16
13
  | **customer_id** | [**ReadOnlyCustomerId**](ReadOnlyCustomerId.md) | | [optional] |
17
14
  | **ip** | **String** | The IP address of the client that last used the token. | [optional] |
18
15
  | **user_agent** | **String** | The User-Agent header of the client that last used the token. | [optional] |
19
- | **sudo_expires_at** | **String** | | [optional][readonly] |
20
- | **last_used_at** | **Time** | A UTC time-stamp of when the token was last used. | [optional][readonly] |
16
+ | **tls_access** | **Boolean** | Indicates whether TLS access is enabled for the token. | [optional] |
17
+ | **last_used_at** | **Time** | A UTC timestamp of when the token was last used. | [optional][readonly] |
18
+ | **created_at** | **String** | A UTC timestamp of when the token was created. | [optional] |
21
19
 
22
20
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
23
21
 
@@ -9,10 +9,10 @@
9
9
  | **role** | **String** | | [optional] |
10
10
  | **ip** | **String** | The IP address of the client that last used the token. | [optional] |
11
11
  | **user_agent** | **String** | The User-Agent header of the client that last used the token. | [optional] |
12
- | **sudo_expires_at** | **String** | | [optional][readonly] |
13
- | **last_used_at** | **Time** | A UTC time-stamp of when the token was last used. | [optional][readonly] |
14
- | **created_at** | **String** | A UTC time-stamp of when the token was created. | [optional] |
15
- | **expires_at** | **String** | (optional) A UTC time-stamp of when the token will expire. | [optional] |
12
+ | **tls_access** | **Boolean** | Indicates whether TLS access is enabled for the token. | [optional] |
13
+ | **last_used_at** | **Time** | A UTC timestamp of when the token was last used. | [optional][readonly] |
14
+ | **created_at** | **String** | A UTC timestamp of when the token was created. | [optional] |
15
+ | **expires_at** | **String** | (optional) A UTC timestamp of when the token will expire. | [optional] |
16
16
 
17
17
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
18
18
 
@@ -13,14 +13,14 @@ api_instance = Fastly::BillingUsageMetricsApi.new
13
13
 
14
14
  Method | HTTP request | Description
15
15
  ------ | ------------ | -----------
16
- [**get_service_level_usage**](BillingUsageMetricsApi.md#get_service_level_usage) | **GET** /billing/v3/service-usage-metrics | Retrieve service-level usage metrics for a product.
16
+ [**get_service_level_usage**](BillingUsageMetricsApi.md#get_service_level_usage) | **GET** /billing/v3/service-usage-metrics | Retrieve service-level usage metrics for services with non-zero usage units.
17
17
  [**get_usage_metrics**](BillingUsageMetricsApi.md#get_usage_metrics) | **GET** /billing/v3/usage-metrics | Get monthly usage metrics
18
18
 
19
19
 
20
20
  ## `get_service_level_usage()`
21
21
 
22
22
  ```ruby
23
- get_service_level_usage(opts): <Serviceusagemetrics> # Retrieve service-level usage metrics for a product.
23
+ get_service_level_usage(opts): <Serviceusagemetrics> # Retrieve service-level usage metrics for services with non-zero usage units.
24
24
  ```
25
25
 
26
26
  Returns product usage, broken down by service.
@@ -30,16 +30,17 @@ Returns product usage, broken down by service.
30
30
  ```ruby
31
31
  api_instance = Fastly::BillingUsageMetricsApi.new
32
32
  opts = {
33
- product_id: 'product_id_example', # String | The product identifier for the metrics returned (e.g., `cdn_usage`).
34
- usage_type_name: 'usage_type_name_example', # String | The usage type name for the metrics returned (e.g., `North America Requests`).
33
+ product_id: 'product_id_example', # String | The product identifier for the metrics returned (e.g., `cdn_usage`). This should be used along with `usage_type_name`.
34
+ service: 'service_example', # String | The service identifier for the metrics being requested.
35
+ usage_type_name: 'usage_type_name_example', # String | The usage type name for the metrics returned (e.g., `North America Requests`). This should be used along with `product_id`.
35
36
  start_month: '2023-01', # String |
36
37
  end_month: '2023-03', # String |
37
- limit: 'limit_example', # String | Number of results per page. The maximum is 100.
38
+ limit: 'limit_example', # String | Number of results per page. The maximum is 10000.
38
39
  cursor: 'cursor_example', # String | Cursor value from the `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
39
40
  }
40
41
 
41
42
  begin
42
- # Retrieve service-level usage metrics for a product.
43
+ # Retrieve service-level usage metrics for services with non-zero usage units.
43
44
  result = api_instance.get_service_level_usage(opts)
44
45
  p result
45
46
  rescue Fastly::ApiError => e
@@ -51,11 +52,12 @@ end
51
52
 
52
53
  | Name | Type | Description | Notes |
53
54
  | ---- | ---- | ----------- | ----- |
54
- | **product_id** | **String** | The product identifier for the metrics returned (e.g., `cdn_usage`). | [optional] |
55
- | **usage_type_name** | **String** | The usage type name for the metrics returned (e.g., `North America Requests`). | [optional] |
55
+ | **product_id** | **String** | The product identifier for the metrics returned (e.g., `cdn_usage`). This should be used along with `usage_type_name`. | [optional] |
56
+ | **service** | **String** | The service identifier for the metrics being requested. | [optional] |
57
+ | **usage_type_name** | **String** | The usage type name for the metrics returned (e.g., `North America Requests`). This should be used along with `product_id`. | [optional] |
56
58
  | **start_month** | **String** | | [optional] |
57
59
  | **end_month** | **String** | | [optional] |
58
- | **limit** | **String** | Number of results per page. The maximum is 100. | [optional][default to &#39;5&#39;] |
60
+ | **limit** | **String** | Number of results per page. The maximum is 10000. | [optional][default to &#39;1000&#39;] |
59
61
  | **cursor** | **String** | Cursor value from the `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty. | [optional] |
60
62
 
61
63
  ### Return type
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **limit** | **String** | The maximum number of results shown in this response. | [optional] |
7
+ | **limit** | **Integer** | The maximum number of results shown in this response. | [optional] |
8
8
  | **next_cursor** | **String** | Used for pagination, supply to the next request to get the next block of results. | [optional] |
9
9
 
10
10
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
data/docs/Header.md CHANGED
@@ -14,6 +14,8 @@
14
14
  | **src** | **String** | Variable to be used as a source for the header content. Does not apply to `delete` action. | [optional] |
15
15
  | **substitution** | **String** | Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. | [optional] |
16
16
  | **type** | **String** | Accepts a string value. | [optional] |
17
+ | **ignore_if_set** | **String** | Don&#39;t add the header if it is added already. Only applies to &#39;set&#39; action. Numerical value (\&quot;0\&quot; &#x3D; false, \&quot;1\&quot; &#x3D; true) | [optional] |
18
+ | **priority** | **String** | Priority determines execution order. Lower numbers execute first. | [optional][default to &#39;100&#39;] |
17
19
 
18
20
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
19
21
 
data/docs/HeaderApi.md CHANGED
@@ -45,8 +45,8 @@ opts = {
45
45
  src: 'src_example', # String | Variable to be used as a source for the header content. Does not apply to `delete` action.
46
46
  substitution: 'substitution_example', # String | Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions.
47
47
  type: 'request', # String | Accepts a string value.
48
- ignore_if_set: 56, # Integer | Don't add the header if it is added already. Only applies to 'set' action.
49
- priority: 56, # Integer | Priority determines execution order. Lower numbers execute first.
48
+ ignore_if_set: 'ignore_if_set_example', # String | Don't add the header if it is added already. Only applies to 'set' action. Numerical value (\\\"0\\\" = false, \\\"1\\\" = true)
49
+ priority: 'priority_example', # String | Priority determines execution order. Lower numbers execute first.
50
50
  }
51
51
 
52
52
  begin
@@ -74,8 +74,8 @@ end
74
74
  | **src** | **String** | Variable to be used as a source for the header content. Does not apply to `delete` action. | [optional] |
75
75
  | **substitution** | **String** | Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. | [optional] |
76
76
  | **type** | **String** | Accepts a string value. | [optional] |
77
- | **ignore_if_set** | **Integer** | Don&#39;t add the header if it is added already. Only applies to &#39;set&#39; action. | [optional] |
78
- | **priority** | **Integer** | Priority determines execution order. Lower numbers execute first. | [optional][default to 100] |
77
+ | **ignore_if_set** | **String** | Don&#39;t add the header if it is added already. Only applies to &#39;set&#39; action. Numerical value (\\\&quot;0\\\&quot; &#x3D; false, \\\&quot;1\\\&quot; &#x3D; true) | [optional] |
78
+ | **priority** | **String** | Priority determines execution order. Lower numbers execute first. | [optional][default to &#39;100&#39;] |
79
79
 
80
80
  ### Return type
81
81
 
@@ -230,8 +230,8 @@ opts = {
230
230
  src: 'src_example', # String | Variable to be used as a source for the header content. Does not apply to `delete` action.
231
231
  substitution: 'substitution_example', # String | Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions.
232
232
  type: 'request', # String | Accepts a string value.
233
- ignore_if_set: 56, # Integer | Don't add the header if it is added already. Only applies to 'set' action.
234
- priority: 56, # Integer | Priority determines execution order. Lower numbers execute first.
233
+ ignore_if_set: 'ignore_if_set_example', # String | Don't add the header if it is added already. Only applies to 'set' action. Numerical value (\\\"0\\\" = false, \\\"1\\\" = true)
234
+ priority: 'priority_example', # String | Priority determines execution order. Lower numbers execute first.
235
235
  }
236
236
 
237
237
  begin
@@ -260,8 +260,8 @@ end
260
260
  | **src** | **String** | Variable to be used as a source for the header content. Does not apply to `delete` action. | [optional] |
261
261
  | **substitution** | **String** | Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. | [optional] |
262
262
  | **type** | **String** | Accepts a string value. | [optional] |
263
- | **ignore_if_set** | **Integer** | Don&#39;t add the header if it is added already. Only applies to &#39;set&#39; action. | [optional] |
264
- | **priority** | **Integer** | Priority determines execution order. Lower numbers execute first. | [optional][default to 100] |
263
+ | **ignore_if_set** | **String** | Don&#39;t add the header if it is added already. Only applies to &#39;set&#39; action. Numerical value (\\\&quot;0\\\&quot; &#x3D; false, \\\&quot;1\\\&quot; &#x3D; true) | [optional] |
264
+ | **priority** | **String** | Priority determines execution order. Lower numbers execute first. | [optional][default to &#39;100&#39;] |
265
265
 
266
266
  ### Return type
267
267
 
@@ -64,7 +64,7 @@ nil (empty response body)
64
64
  ## `kv_store_get_item()`
65
65
 
66
66
  ```ruby
67
- kv_store_get_item(opts): File # Get an item.
67
+ kv_store_get_item(opts): String # Get an item.
68
68
  ```
69
69
 
70
70
  Get an item, including its value, metadata (if any), and generation marker.
@@ -96,7 +96,7 @@ end
96
96
 
97
97
  ### Return type
98
98
 
99
- **File**
99
+ **String**
100
100
 
101
101
  [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
102
102
  [[Back to README]](../../README.md)
@@ -167,7 +167,7 @@ opts = {
167
167
  append: true, # Boolean |
168
168
  prepend: true, # Boolean |
169
169
  background_fetch: true, # Boolean |
170
- body: File.new('/path/to/some/file'), # File |
170
+ body: 'BYTE_ARRAY_DATA_HERE', # String |
171
171
  }
172
172
 
173
173
  begin
@@ -191,7 +191,7 @@ end
191
191
  | **append** | **Boolean** | | [optional][default to false] |
192
192
  | **prepend** | **Boolean** | | [optional][default to false] |
193
193
  | **background_fetch** | **Boolean** | | [optional][default to false] |
194
- | **body** | **File** | | [optional] |
194
+ | **body** | **String** | | [optional] |
195
195
 
196
196
  ### Return type
197
197
 
@@ -9,7 +9,7 @@
9
9
  | **container** | **String** | The name of the Azure Blob Storage container in which to store logs. Required. | [optional] |
10
10
  | **sas_token** | **String** | The Azure shared access signature providing write access to the blob service objects. Be sure to update your token before it expires or the logging functionality will not work. Required. | [optional] |
11
11
  | **public_key** | **String** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional][default to &#39;null&#39;] |
12
- | **file_max_bytes** | **Integer** | The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.) | [optional] |
12
+ | **file_max_bytes** | **Integer** | The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB). Note that Microsoft Azure Storage has [block size limits](https://learn.microsoft.com/en-us/rest/api/storageservices/put-block?tabs&#x3D;microsoft-entra-id#remarks). | [optional] |
13
13
 
14
14
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
15
15
 
@@ -50,7 +50,7 @@ opts = {
50
50
  container: 'container_example', # String | The name of the Azure Blob Storage container in which to store logs. Required.
51
51
  sas_token: 'sas_token_example', # String | The Azure shared access signature providing write access to the blob service objects. Be sure to update your token before it expires or the logging functionality will not work. Required.
52
52
  public_key: 'public_key_example', # String | A PGP public key that Fastly will use to encrypt your log files before writing them to disk.
53
- file_max_bytes: 56, # Integer | The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.)
53
+ file_max_bytes: 56, # Integer | The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB). Note that Microsoft Azure Storage has [block size limits](https://learn.microsoft.com/en-us/rest/api/storageservices/put-block?tabs=microsoft-entra-id#remarks).
54
54
  }
55
55
 
56
56
  begin
@@ -83,7 +83,7 @@ end
83
83
  | **container** | **String** | The name of the Azure Blob Storage container in which to store logs. Required. | [optional] |
84
84
  | **sas_token** | **String** | The Azure shared access signature providing write access to the blob service objects. Be sure to update your token before it expires or the logging functionality will not work. Required. | [optional] |
85
85
  | **public_key** | **String** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional][default to &#39;null&#39;] |
86
- | **file_max_bytes** | **Integer** | The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.) | [optional] |
86
+ | **file_max_bytes** | **Integer** | The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB). Note that Microsoft Azure Storage has [block size limits](https://learn.microsoft.com/en-us/rest/api/storageservices/put-block?tabs&#x3D;microsoft-entra-id#remarks). | [optional] |
87
87
 
88
88
  ### Return type
89
89
 
@@ -243,7 +243,7 @@ opts = {
243
243
  container: 'container_example', # String | The name of the Azure Blob Storage container in which to store logs. Required.
244
244
  sas_token: 'sas_token_example', # String | The Azure shared access signature providing write access to the blob service objects. Be sure to update your token before it expires or the logging functionality will not work. Required.
245
245
  public_key: 'public_key_example', # String | A PGP public key that Fastly will use to encrypt your log files before writing them to disk.
246
- file_max_bytes: 56, # Integer | The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.)
246
+ file_max_bytes: 56, # Integer | The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB). Note that Microsoft Azure Storage has [block size limits](https://learn.microsoft.com/en-us/rest/api/storageservices/put-block?tabs=microsoft-entra-id#remarks).
247
247
  }
248
248
 
249
249
  begin
@@ -277,7 +277,7 @@ end
277
277
  | **container** | **String** | The name of the Azure Blob Storage container in which to store logs. Required. | [optional] |
278
278
  | **sas_token** | **String** | The Azure shared access signature providing write access to the blob service objects. Be sure to update your token before it expires or the logging functionality will not work. Required. | [optional] |
279
279
  | **public_key** | **String** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional][default to &#39;null&#39;] |
280
- | **file_max_bytes** | **Integer** | The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.) | [optional] |
280
+ | **file_max_bytes** | **Integer** | The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB). Note that Microsoft Azure Storage has [block size limits](https://learn.microsoft.com/en-us/rest/api/storageservices/put-block?tabs&#x3D;microsoft-entra-id#remarks). | [optional] |
281
281
 
282
282
  ### Return type
283
283
 
@@ -24,7 +24,7 @@
24
24
  | **container** | **String** | The name of the Azure Blob Storage container in which to store logs. Required. | [optional] |
25
25
  | **sas_token** | **String** | The Azure shared access signature providing write access to the blob service objects. Be sure to update your token before it expires or the logging functionality will not work. Required. | [optional] |
26
26
  | **public_key** | **String** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional][default to &#39;null&#39;] |
27
- | **file_max_bytes** | **Integer** | The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.) | [optional] |
27
+ | **file_max_bytes** | **Integer** | The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB). Note that Microsoft Azure Storage has [block size limits](https://learn.microsoft.com/en-us/rest/api/storageservices/put-block?tabs&#x3D;microsoft-entra-id#remarks). | [optional] |
28
28
 
29
29
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
30
30
 
data/docs/Results.md CHANGED
@@ -265,6 +265,13 @@
265
265
  | **request_collapse_usable_count** | **Integer** | Number of requests that were collapsed and satisfied by a usable cache object. | [optional] |
266
266
  | **request_collapse_unusable_count** | **Integer** | Number of requests that were collapsed and unable to be satisfied by the resulting cache object. | [optional] |
267
267
  | **compute_cache_operations_count** | **Integer** | Number of cache operations executed by the Compute platform. | [optional] |
268
+ | **ngwaf_requests_total_count** | **Integer** | Total number of Next-Gen WAF (Edge WAF &amp; Core WAF) requests. | [optional] |
269
+ | **ngwaf_requests_unknown_count** | **Integer** | Count of Edge WAF requests with an unknown outcome. | [optional] |
270
+ | **ngwaf_requests_allowed_count** | **Integer** | Count of Edge WAF requests allowed. | [optional] |
271
+ | **ngwaf_requests_logged_count** | **Integer** | Count of Edge WAF requests logged. | [optional] |
272
+ | **ngwaf_requests_blocked_count** | **Integer** | Count of Edge WAF requests blocked. | [optional] |
273
+ | **ngwaf_requests_timeout_count** | **Integer** | Count of Edge WAF requests timed outcome. | [optional] |
274
+ | **ngwaf_requests_challenged_count** | **Integer** | Count of Edge WAF requests challenged. | [optional] |
268
275
  | **service_id** | **String** | | [optional][readonly] |
269
276
  | **start_time** | **Integer** | Timestamp for the start of the time period being reported | [optional] |
270
277
 
data/docs/SnippetApi.md CHANGED
@@ -25,7 +25,7 @@ Method | HTTP request | Description
25
25
  ## `create_snippet()`
26
26
 
27
27
  ```ruby
28
- create_snippet(opts): <SnippetResponsePost> # Create a snippet
28
+ create_snippet(opts): <SnippetResponse> # Create a snippet
29
29
  ```
30
30
 
31
31
  Create a snippet for a particular service and version.
@@ -67,7 +67,7 @@ end
67
67
 
68
68
  ### Return type
69
69
 
70
- [**SnippetResponsePost**](SnippetResponsePost.md)
70
+ [**SnippetResponse**](SnippetResponse.md)
71
71
 
72
72
  [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
73
73
  [[Back to README]](../../README.md)
@@ -1,4 +1,4 @@
1
- # Fastly::SnippetResponseCommonAllOf
1
+ # Fastly::SnippetResponseAllOf
2
2
 
3
3
  ## Properties
4
4
 
@@ -107,6 +107,8 @@ List all certificates.
107
107
  api_instance = Fastly::TlsBulkCertificatesApi.new
108
108
  opts = {
109
109
  filter_tls_domain_id: 'filter_tls_domain_id_example', # String | Filter certificates by their matching, fully-qualified domain name.
110
+ filter_not_before: 'filter_not_before_example', # String | Filter the returned certificates by not_before date in UTC. Accepts parameters: lt, lte, gt, gte (e.g., filter[not_before][gte]=2020-05-05).
111
+ filter_not_after: 'filter_not_after_example', # String | Filter the returned certificates by expiry date in UTC. Accepts parameters: lt, lte, gt, gte (e.g., filter[not_after][lte]=2020-05-05).
110
112
  page_number: 1, # Integer | Current page.
111
113
  page_size: 20, # Integer | Number of records per page.
112
114
  sort: 'created_at', # String | The order in which to list the results by creation date.
@@ -126,6 +128,8 @@ end
126
128
  | Name | Type | Description | Notes |
127
129
  | ---- | ---- | ----------- | ----- |
128
130
  | **filter_tls_domain_id** | **String** | Filter certificates by their matching, fully-qualified domain name. | [optional] |
131
+ | **filter_not_before** | **String** | Filter the returned certificates by not_before date in UTC. Accepts parameters: lt, lte, gt, gte (e.g., filter[not_before][gte]&#x3D;2020-05-05). | [optional] |
132
+ | **filter_not_after** | **String** | Filter the returned certificates by expiry date in UTC. Accepts parameters: lt, lte, gt, gte (e.g., filter[not_after][lte]&#x3D;2020-05-05). | [optional] |
129
133
  | **page_number** | **Integer** | Current page. | [optional] |
130
134
  | **page_size** | **Integer** | Number of records per page. | [optional][default to 20] |
131
135
  | **sort** | **String** | The order in which to list the results by creation date. | [optional][default to &#39;created_at&#39;] |
@@ -44,9 +44,9 @@ module Fastly
44
44
  # header parameters
45
45
  header_params = opts[:header_params] || {}
46
46
  # HTTP header 'Accept' (if needed)
47
- header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
47
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
48
48
  # HTTP header 'Content-Type'
49
- content_type = @api_client.select_header_content_type(['application/vnd.api+json'])
49
+ content_type = @api_client.select_header_content_type(['application/json'])
50
50
  if !content_type.nil?
51
51
  header_params['Content-Type'] = content_type
52
52
  end
@@ -112,7 +112,7 @@ module Fastly
112
112
  # header parameters
113
113
  header_params = opts[:header_params] || {}
114
114
  # HTTP header 'Accept' (if needed)
115
- header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json', 'application/problem+json'])
115
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json'])
116
116
 
117
117
  # form parameters
118
118
  form_params = opts[:form_params] || {}
@@ -181,7 +181,7 @@ module Fastly
181
181
  # header parameters
182
182
  header_params = opts[:header_params] || {}
183
183
  # HTTP header 'Accept' (if needed)
184
- header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json', 'application/problem+json'])
184
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json'])
185
185
 
186
186
  # form parameters
187
187
  form_params = opts[:form_params] || {}
@@ -243,7 +243,7 @@ module Fastly
243
243
  # header parameters
244
244
  header_params = opts[:header_params] || {}
245
245
  # HTTP header 'Accept' (if needed)
246
- header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json', 'application/problem+json'])
246
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json'])
247
247
 
248
248
  # form parameters
249
249
  form_params = opts[:form_params] || {}
@@ -306,7 +306,7 @@ module Fastly
306
306
  # header parameters
307
307
  header_params = opts[:header_params] || {}
308
308
  # HTTP header 'Accept' (if needed)
309
- header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json', 'application/problem+json'])
309
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json'])
310
310
 
311
311
  # form parameters
312
312
  form_params = opts[:form_params] || {}
@@ -17,13 +17,14 @@ module Fastly
17
17
  def initialize(api_client = ApiClient.default)
18
18
  @api_client = api_client
19
19
  end
20
- # Retrieve service-level usage metrics for a product.
20
+ # Retrieve service-level usage metrics for services with non-zero usage units.
21
21
  # Returns product usage, broken down by service.
22
- # @option opts [String] :product_id The product identifier for the metrics returned (e.g., &#x60;cdn_usage&#x60;).
23
- # @option opts [String] :usage_type_name The usage type name for the metrics returned (e.g., &#x60;North America Requests&#x60;).
22
+ # @option opts [String] :product_id The product identifier for the metrics returned (e.g., &#x60;cdn_usage&#x60;). This should be used along with &#x60;usage_type_name&#x60;.
23
+ # @option opts [String] :service The service identifier for the metrics being requested.
24
+ # @option opts [String] :usage_type_name The usage type name for the metrics returned (e.g., &#x60;North America Requests&#x60;). This should be used along with &#x60;product_id&#x60;.
24
25
  # @option opts [String] :start_month
25
26
  # @option opts [String] :end_month
26
- # @option opts [String] :limit Number of results per page. The maximum is 100. (default to '5')
27
+ # @option opts [String] :limit Number of results per page. The maximum is 10000. (default to '1000')
27
28
  # @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.
28
29
  # @return [Serviceusagemetrics]
29
30
  def get_service_level_usage(opts = {})
@@ -31,13 +32,14 @@ module Fastly
31
32
  data
32
33
  end
33
34
 
34
- # Retrieve service-level usage metrics for a product.
35
+ # Retrieve service-level usage metrics for services with non-zero usage units.
35
36
  # Returns product usage, broken down by service.
36
- # @option opts [String] :product_id The product identifier for the metrics returned (e.g., &#x60;cdn_usage&#x60;).
37
- # @option opts [String] :usage_type_name The usage type name for the metrics returned (e.g., &#x60;North America Requests&#x60;).
37
+ # @option opts [String] :product_id The product identifier for the metrics returned (e.g., &#x60;cdn_usage&#x60;). This should be used along with &#x60;usage_type_name&#x60;.
38
+ # @option opts [String] :service The service identifier for the metrics being requested.
39
+ # @option opts [String] :usage_type_name The usage type name for the metrics returned (e.g., &#x60;North America Requests&#x60;). This should be used along with &#x60;product_id&#x60;.
38
40
  # @option opts [String] :start_month
39
41
  # @option opts [String] :end_month
40
- # @option opts [String] :limit Number of results per page. The maximum is 100. (default to '5')
42
+ # @option opts [String] :limit Number of results per page. The maximum is 10000. (default to '1000')
41
43
  # @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.
42
44
  # @return [Array<(Serviceusagemetrics, Integer, Hash)>] Serviceusagemetrics data, response status code and response headers
43
45
  def get_service_level_usage_with_http_info(opts = {})
@@ -61,6 +63,7 @@ module Fastly
61
63
  # query parameters
62
64
  query_params = opts[:query_params] || {}
63
65
  query_params[:'product_id'] = opts[:'product_id'] if !opts[:'product_id'].nil?
66
+ query_params[:'service'] = opts[:'service'] if !opts[:'service'].nil?
64
67
  query_params[:'usage_type_name'] = opts[:'usage_type_name'] if !opts[:'usage_type_name'].nil?
65
68
  query_params[:'start_month'] = opts[:'start_month'] if !opts[:'start_month'].nil?
66
69
  query_params[:'end_month'] = opts[:'end_month'] if !opts[:'end_month'].nil?