Skip to content

Commit bf29ec7

Browse files
author
github-actions
committed
Generated v6.0.0
1 parent 909acd5 commit bf29ec7

File tree

123 files changed

+15776
-320
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+15776
-320
lines changed

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
# Changelog
22

3+
## [v6.0.0](https://github.com/fastly/fastly-py/releases/tag/release/v6.0.0) (2024-12-05)
4+
5+
**Breaking Changes:**
6+
7+
- fix(udm-domains): Use v1 versioned HTTP endpoints for UDM domains
8+
- fix(historical): Remove references to VCL on Compute metrics
9+
- fix(realtime): Remove references to VCL on Compute metrics
10+
- feat(billing-usage-metrics): Updated to v3 of the API
11+
12+
**Bug fixes:**
13+
14+
- fix(acls-in-compute): Corrected shape of `compute-acl-update` model.
15+
16+
**Enhancements:**
17+
18+
- feat(object-storage-access-keys): Added Object Storage Access Keys API
19+
- feat(logging-grafanacloudlogs): Added Grafana Cloud Logs Loggin API
20+
- feat(log-explorer): Added Log Explorer API
21+
- feat(insights): Added Insights API
22+
- feat(kv-store-item): Added `consistency` parameter to `get-keys` operation.
23+
- feat(enabled-products): Added `mode` property to `set-configuration`.
24+
25+
**Documentation:**
26+
27+
- doc(observability-custom-dashboards): Fix bad link in custom dashboard documentation
28+
- doc(observability-custom-dashboards): Reformat some enums to fix docs rendering
29+
- doc(acls-in-compute): Corrections to descriptions of `compute-acl-lookup`, `compute-acl-list-entries`,
30+
`compute-acl-update-entry`, and `compute-acl-update` structures
31+
- doc(enabled-products): Added support for product ID `log_explorer_insights`.
32+
- doc(enabled-products): Added support for product ID `ddos_protection`.
33+
334
## [v5.10.0](https://github.com/fastly/fastly-py/releases/tag/release/v5.10.0) (2024-10-23)
435

536
**Bug fixes:**

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Class | Method | Description
107107
*BillingInvoicesApi* | [**get_month_to_date_invoice**](docs/BillingInvoicesApi.md#get_month_to_date_invoice) | Get month-to-date invoice.
108108
*BillingInvoicesApi* | [**list_invoices**](docs/BillingInvoicesApi.md#list_invoices) | List of invoices.
109109
*BillingUsageMetricsApi* | [**get_service_level_usage**](docs/BillingUsageMetricsApi.md#get_service_level_usage) | Retrieve service-level usage metrics for a product.
110-
*BillingUsageMetricsApi* | [**get_service_level_usage_types**](docs/BillingUsageMetricsApi.md#get_service_level_usage_types) | Retrieve product usage types for a customer.
110+
*BillingUsageMetricsApi* | [**get_usage_metrics**](docs/BillingUsageMetricsApi.md#get_usage_metrics) | Get monthly usage metrics
111111
*CacheSettingsApi* | [**create_cache_settings**](docs/CacheSettingsApi.md#create_cache_settings) | Create a cache settings object
112112
*CacheSettingsApi* | [**delete_cache_settings**](docs/CacheSettingsApi.md#delete_cache_settings) | Delete a cache settings object
113113
*CacheSettingsApi* | [**get_cache_settings**](docs/CacheSettingsApi.md#get_cache_settings) | Get a cache settings object
@@ -245,6 +245,7 @@ Class | Method | Description
245245
*IamUserGroupsApi* | [**update_a_user_group**](docs/IamUserGroupsApi.md#update_a_user_group) | Update a user group
246246
*ImageOptimizerDefaultSettingsApi* | [**get_default_settings**](docs/ImageOptimizerDefaultSettingsApi.md#get_default_settings) | Get current Image Optimizer Default Settings
247247
*ImageOptimizerDefaultSettingsApi* | [**update_default_settings**](docs/ImageOptimizerDefaultSettingsApi.md#update_default_settings) | Update Image Optimizer Default Settings
248+
*InsightsApi* | [**get_log_insights**](docs/InsightsApi.md#get_log_insights) | Retrieve log insights
248249
*InvitationsApi* | [**create_invitation**](docs/InvitationsApi.md#create_invitation) | Create an invitation
249250
*InvitationsApi* | [**delete_invitation**](docs/InvitationsApi.md#delete_invitation) | Delete an invitation
250251
*InvitationsApi* | [**list_invitations**](docs/InvitationsApi.md#list_invitations) | List invitations
@@ -284,6 +285,7 @@ Class | Method | Description
284285
*LegacyWafTagApi* | [**list_legacy_waf_tags**](docs/LegacyWafTagApi.md#list_legacy_waf_tags) | List WAF tags
285286
*LegacyWafUpdateStatusApi* | [**get_waf_update_status**](docs/LegacyWafUpdateStatusApi.md#get_waf_update_status) | Get the status of a WAF update
286287
*LegacyWafUpdateStatusApi* | [**list_waf_update_statuses**](docs/LegacyWafUpdateStatusApi.md#list_waf_update_statuses) | List update statuses
288+
*LogExplorerApi* | [**get_log_records**](docs/LogExplorerApi.md#get_log_records) | Retrieve log records
287289
*LoggingAzureblobApi* | [**create_log_azure**](docs/LoggingAzureblobApi.md#create_log_azure) | Create an Azure Blob Storage log endpoint
288290
*LoggingAzureblobApi* | [**delete_log_azure**](docs/LoggingAzureblobApi.md#delete_log_azure) | Delete the Azure Blob Storage log endpoint
289291
*LoggingAzureblobApi* | [**get_log_azure**](docs/LoggingAzureblobApi.md#get_log_azure) | Get an Azure Blob Storage log endpoint
@@ -324,6 +326,11 @@ Class | Method | Description
324326
*LoggingGcsApi* | [**get_log_gcs**](docs/LoggingGcsApi.md#get_log_gcs) | Get a GCS log endpoint
325327
*LoggingGcsApi* | [**list_log_gcs**](docs/LoggingGcsApi.md#list_log_gcs) | List GCS log endpoints
326328
*LoggingGcsApi* | [**update_log_gcs**](docs/LoggingGcsApi.md#update_log_gcs) | Update a GCS log endpoint
329+
*LoggingGrafanacloudlogsApi* | [**create_log_grafanacloudlogs**](docs/LoggingGrafanacloudlogsApi.md#create_log_grafanacloudlogs) | Create a Grafana Cloud Logs log endpoint
330+
*LoggingGrafanacloudlogsApi* | [**delete_log_grafanacloudlogs**](docs/LoggingGrafanacloudlogsApi.md#delete_log_grafanacloudlogs) | Delete the Grafana Cloud Logs log endpoint
331+
*LoggingGrafanacloudlogsApi* | [**get_log_grafanacloudlogs**](docs/LoggingGrafanacloudlogsApi.md#get_log_grafanacloudlogs) | Get a Grafana Cloud Logs log endpoint
332+
*LoggingGrafanacloudlogsApi* | [**list_log_grafanacloudlogs**](docs/LoggingGrafanacloudlogsApi.md#list_log_grafanacloudlogs) | List Grafana Cloud Logs log endpoints
333+
*LoggingGrafanacloudlogsApi* | [**update_log_grafanacloudlogs**](docs/LoggingGrafanacloudlogsApi.md#update_log_grafanacloudlogs) | Update a Grafana Cloud Logs log endpoint
327334
*LoggingHerokuApi* | [**create_log_heroku**](docs/LoggingHerokuApi.md#create_log_heroku) | Create a Heroku log endpoint
328335
*LoggingHerokuApi* | [**delete_log_heroku**](docs/LoggingHerokuApi.md#delete_log_heroku) | Delete the Heroku log endpoint
329336
*LoggingHerokuApi* | [**get_log_heroku**](docs/LoggingHerokuApi.md#get_log_heroku) | Get a Heroku log endpoint
@@ -424,6 +431,10 @@ Class | Method | Description
424431
*MutualAuthenticationApi* | [**get_mutual_authentication**](docs/MutualAuthenticationApi.md#get_mutual_authentication) | Get a Mutual Authentication
425432
*MutualAuthenticationApi* | [**list_mutual_authentications**](docs/MutualAuthenticationApi.md#list_mutual_authentications) | List Mutual Authentications
426433
*MutualAuthenticationApi* | [**patch_mutual_authentication**](docs/MutualAuthenticationApi.md#patch_mutual_authentication) | Update a Mutual Authentication
434+
*ObjectStorageAccessKeysApi* | [**create_access_key**](docs/ObjectStorageAccessKeysApi.md#create_access_key) | Create an access key
435+
*ObjectStorageAccessKeysApi* | [**delete_access_key**](docs/ObjectStorageAccessKeysApi.md#delete_access_key) | Delete an access key
436+
*ObjectStorageAccessKeysApi* | [**get_access_key**](docs/ObjectStorageAccessKeysApi.md#get_access_key) | Get an access key
437+
*ObjectStorageAccessKeysApi* | [**list_access_keys**](docs/ObjectStorageAccessKeysApi.md#list_access_keys) | List access keys
427438
*ObservabilityCustomDashboardsApi* | [**create_dashboard**](docs/ObservabilityCustomDashboardsApi.md#create_dashboard) | Create a new dashboard
428439
*ObservabilityCustomDashboardsApi* | [**delete_dashboard**](docs/ObservabilityCustomDashboardsApi.md#delete_dashboard) | Delete an existing dashboard
429440
*ObservabilityCustomDashboardsApi* | [**get_dashboard**](docs/ObservabilityCustomDashboardsApi.md#get_dashboard) | Retrieve a dashboard by ID
@@ -632,8 +643,8 @@ The fastly-py API client currently does not support the following endpoints:
632643
- [`/alerts/history`](https://www.fastly.com/documentation/reference/api/observability/alerts/history) (GET)
633644
- [`/dns/configurations/{dns_configuration_id}`](https://www.fastly.com/documentation/reference/api/) (DELETE, GET, PATCH)
634645
- [`/dns/configurations`](https://www.fastly.com/documentation/reference/api/) (GET, POST)
635-
- [`/domains/{domain_id}`](https://www.fastly.com/documentation/reference/api/) (DELETE, GET, PATCH)
636-
- [`/domains`](https://www.fastly.com/documentation/reference/api/) (GET, POST)
646+
- [`/domains/v1/{domain_id}`](https://www.fastly.com/documentation/reference/api/) (DELETE, GET, PATCH)
647+
- [`/domains/v1`](https://www.fastly.com/documentation/reference/api/) (GET, POST)
637648
- [`/notifications/integration-types`](https://developer.fastly.com/reference/api/observability/notification) (GET)
638649
- [`/notifications/integrations/{integration_id}/rotateSigningKey`](https://developer.fastly.com/reference/api/observability/notification) (POST)
639650
- [`/notifications/integrations/{integration_id}/signingKey`](https://developer.fastly.com/reference/api/observability/notification) (GET)

docs/AccessKey.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# AccessKey
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**description** | **str** | A description of the access key. |
8+
**permission** | **str** | The permissions granted to an access key. |
9+
**buckets** | **[str]** | | [optional]
10+
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
11+
12+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13+
14+

docs/AccessKeyResponse.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# AccessKeyResponse
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**access_key** | **str** | Generated access key. | [optional]
8+
**secret_key** | **str** | Generated secret key. | [optional]
9+
**description** | **str** | Description for the access key. | [optional]
10+
**permission** | **str** | Permissions granted to an access key. | [optional]
11+
**buckets** | **[str]** | | [optional]
12+
**created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly]
13+
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
14+
15+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
16+
17+

docs/AclsInComputeApi.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -536,13 +536,15 @@ with fastly.ApiClient(configuration) as api_client:
536536
# Create an instance of the API class
537537
api_instance = acls_in_compute_api.AclsInComputeApi(api_client)
538538
acl_id = "acl_id_example" # str |
539-
compute_acl_update = ComputeAclUpdate([
540-
ComputeAclUpdateEntry(
541-
op="op_example",
542-
prefix="prefix_example",
543-
action="action_example",
544-
),
545-
]) # ComputeAclUpdate | (optional)
539+
compute_acl_update = ComputeAclUpdate(
540+
entries=[
541+
ComputeAclUpdateEntry(
542+
op="op_example",
543+
prefix="prefix_example",
544+
action="action_example",
545+
),
546+
],
547+
) # ComputeAclUpdate | (optional)
546548

547549
# example passing only required values which don't have defaults set
548550
try:

docs/BillingUsageMetricsApi.md

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
66
Method | HTTP request | Description
77
------------- | ------------- | -------------
8-
[**get_service_level_usage**](BillingUsageMetricsApi.md#get_service_level_usage) | **GET** /billing/v2/account_customers/{customer_id}/service-usage-metrics | Retrieve service-level usage metrics for a product.
9-
[**get_service_level_usage_types**](BillingUsageMetricsApi.md#get_service_level_usage_types) | **GET** /billing/v2/account_customers/{customer_id}/service-usage-types | Retrieve product usage types for a customer.
8+
[**get_service_level_usage**](BillingUsageMetricsApi.md#get_service_level_usage) | **GET** /billing/v3/service-usage-metrics | Retrieve service-level usage metrics for a product.
9+
[**get_usage_metrics**](BillingUsageMetricsApi.md#get_usage_metrics) | **GET** /billing/v3/usage-metrics | Get monthly usage metrics
1010

1111

1212
# **get_service_level_usage**
13-
> Serviceusagemetrics get_service_level_usage(customer_id, product_id, usage_type_name, time_granularity)
13+
> Serviceusagemetrics get_service_level_usage(product_id, usage_type_name)
1414
1515
Retrieve service-level usage metrics for a product.
1616

@@ -48,12 +48,8 @@ configuration.api_key['token'] = 'YOUR_API_KEY'
4848
with fastly.ApiClient(configuration) as api_client:
4949
# Create an instance of the API class
5050
api_instance = billing_usage_metrics_api.BillingUsageMetricsApi(api_client)
51-
customer_id = "x4xCwxxJxGCx123Rx5xTx" # str | Alphanumeric string identifying the customer.
5251
product_id = "product_id_example" # str | The product identifier for the metrics returned (e.g., `cdn_usage`). This field is not required for CSV requests.
5352
usage_type_name = "usage_type_name_example" # str | The usage type name for the metrics returned (e.g., `North America Requests`). This field is not required for CSV requests.
54-
time_granularity = "month" # str |
55-
start_date = "2023-01-01" # str | (optional)
56-
end_date = "2023-01-31" # str | (optional)
5753
start_month = "2023-01" # str | (optional)
5854
end_month = "2023-03" # str | (optional)
5955
limit = "5" # str | Number of results per page. The maximum is 100. (optional) if omitted the server will use the default value of "5"
@@ -62,7 +58,7 @@ with fastly.ApiClient(configuration) as api_client:
6258
# example passing only required values which don't have defaults set
6359
try:
6460
# Retrieve service-level usage metrics for a product.
65-
api_response = api_instance.get_service_level_usage(customer_id, product_id, usage_type_name, time_granularity)
61+
api_response = api_instance.get_service_level_usage(product_id, usage_type_name)
6662
pprint(api_response)
6763
except fastly.ApiException as e:
6864
print("Exception when calling BillingUsageMetricsApi->get_service_level_usage: %s\n" % e)
@@ -71,7 +67,7 @@ with fastly.ApiClient(configuration) as api_client:
7167
# and optional values
7268
try:
7369
# Retrieve service-level usage metrics for a product.
74-
api_response = api_instance.get_service_level_usage(customer_id, product_id, usage_type_name, time_granularity, start_date=start_date, end_date=end_date, start_month=start_month, end_month=end_month, limit=limit, cursor=cursor)
70+
api_response = api_instance.get_service_level_usage(product_id, usage_type_name, start_month=start_month, end_month=end_month, limit=limit, cursor=cursor)
7571
pprint(api_response)
7672
except fastly.ApiException as e:
7773
print("Exception when calling BillingUsageMetricsApi->get_service_level_usage: %s\n" % e)
@@ -82,12 +78,8 @@ with fastly.ApiClient(configuration) as api_client:
8278

8379
Name | Type | Description | Notes
8480
------------- | ------------- | ------------- | -------------
85-
**customer_id** | **str**| Alphanumeric string identifying the customer. |
8681
**product_id** | **str**| The product identifier for the metrics returned (e.g., `cdn_usage`). This field is not required for CSV requests. |
8782
**usage_type_name** | **str**| The usage type name for the metrics returned (e.g., `North America Requests`). This field is not required for CSV requests. |
88-
**time_granularity** | **str**| |
89-
**start_date** | **str**| | [optional]
90-
**end_date** | **str**| | [optional]
9183
**start_month** | **str**| | [optional]
9284
**end_month** | **str**| | [optional]
9385
**limit** | **str**| Number of results per page. The maximum is 100. | [optional] if omitted the server will use the default value of "5"
@@ -118,12 +110,12 @@ Name | Type | Description | Notes
118110

119111
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
120112

121-
# **get_service_level_usage_types**
122-
> Serviceusagetypes get_service_level_usage_types(customer_id)
113+
# **get_usage_metrics**
114+
> Usagemetric get_usage_metrics()
123115
124-
Retrieve product usage types for a customer.
116+
Get monthly usage metrics
125117

126-
Returns product usage types reported by the customer's services.
118+
Returns monthly usage metrics for customer by product.
127119

128120
### Example
129121

@@ -134,7 +126,7 @@ import time
134126
import fastly
135127
from fastly.api import billing_usage_metrics_api
136128
from fastly.model.error import Error
137-
from fastly.model.serviceusagetypes import Serviceusagetypes
129+
from fastly.model.usagemetric import Usagemetric
138130
from pprint import pprint
139131
# Defining the host is optional and defaults to https://api.fastly.com
140132
# See configuration.py for a list of all supported configuration parameters.
@@ -157,27 +149,30 @@ configuration.api_key['token'] = 'YOUR_API_KEY'
157149
with fastly.ApiClient(configuration) as api_client:
158150
# Create an instance of the API class
159151
api_instance = billing_usage_metrics_api.BillingUsageMetricsApi(api_client)
160-
customer_id = "x4xCwxxJxGCx123Rx5xTx" # str | Alphanumeric string identifying the customer.
152+
start_month = "2023-01" # str | (optional)
153+
end_month = "2023-03" # str | (optional)
161154

162155
# example passing only required values which don't have defaults set
156+
# and optional values
163157
try:
164-
# Retrieve product usage types for a customer.
165-
api_response = api_instance.get_service_level_usage_types(customer_id)
158+
# Get monthly usage metrics
159+
api_response = api_instance.get_usage_metrics(start_month=start_month, end_month=end_month)
166160
pprint(api_response)
167161
except fastly.ApiException as e:
168-
print("Exception when calling BillingUsageMetricsApi->get_service_level_usage_types: %s\n" % e)
162+
print("Exception when calling BillingUsageMetricsApi->get_usage_metrics: %s\n" % e)
169163
```
170164

171165

172166
### Parameters
173167

174168
Name | Type | Description | Notes
175169
------------- | ------------- | ------------- | -------------
176-
**customer_id** | **str**| Alphanumeric string identifying the customer. |
170+
**start_month** | **str**| | [optional]
171+
**end_month** | **str**| | [optional]
177172

178173
### Return type
179174

180-
[**Serviceusagetypes**](Serviceusagetypes.md)
175+
[**Usagemetric**](Usagemetric.md)
181176

182177
### Authorization
183178

@@ -193,7 +188,7 @@ Name | Type | Description | Notes
193188

194189
| Status code | Description | Response headers |
195190
|-------------|-------------|------------------|
196-
**200** | A response containing usage elements. | - |
191+
**200** | A response containing usage metric elements. | - |
197192
**400** | Bad Request | - |
198193
**401** | Unauthorized | - |
199194
**500** | Internal Server Error | - |

docs/ComputeAclListEntries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ComputeAclListEntries
22

3-
An example of an ACL List Response.
3+
Defines the structure of what the ACL List endpoint returns.
44

55
## Properties
66
Name | Type | Description | Notes

docs/ComputeAclLookup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ComputeAclLookup
22

3-
An example of an ACL Lookup response.
3+
Defines the structure of an ACL Lookup response.
44

55
## Properties
66
Name | Type | Description | Notes

docs/ComputeAclUpdate.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# ComputeAclUpdate
22

3-
An example of an ACL update request.
3+
Defines the structure of an ACL update request array.
44

55
## Properties
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**value** | [**[ComputeAclUpdateEntry]**](ComputeAclUpdateEntry.md) | An example of an ACL update request. |
8+
**entries** | [**[ComputeAclUpdateEntry]**](ComputeAclUpdateEntry.md) | | [optional]
9+
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
910

1011
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1112

docs/ComputeAclUpdateEntry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ComputeAclUpdateEntry
22

3-
An example of an ACL update request entry.
3+
Defines the structure of an ACL update request entry.
44

55
## Properties
66
Name | Type | Description | Notes

0 commit comments

Comments
 (0)