diff --git a/README.md b/README.md index cd16490..df3a72e 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ A Python client library for interacting with most facets of the [Fastly API](htt > The previous 0.5.x version is no longer supported, but can be found at https://github.com/fastly/fastly-py/tree/v0.5.x. - > ⚠️ This client library (`v1.1.0`) is an early-access release. Features may change without notice. Use at your own risk. + > ⚠️ This client library (`1.2.0`) is an early-access release. Features may change without notice. Use at your own risk. **We strongly recommend that you do not install alpha and beta releases on live production services.** No official support is provided for such releases. Please try out the library in a test environment, see what breaks without worrying about consequences, and give us [feedback](#issues). @@ -324,13 +324,9 @@ Class | Method | HTTP request | Description *MutualAuthenticationApi* | [**list_mutual_authentications**](docs/MutualAuthenticationApi.md#list_mutual_authentications) | **GET** /tls/mutual_authentications | List Mutual Authentications *MutualAuthenticationApi* | [**patch_mutual_authentication**](docs/MutualAuthenticationApi.md#patch_mutual_authentication) | **PATCH** /tls/mutual_authentications/{mutual_authentication_id} | Update a Mutual Authentication *ObjectStoreApi* | [**create_store**](docs/ObjectStoreApi.md#create_store) | **POST** /resources/stores/object | Create an object store. -*ObjectStoreApi* | [**delete_key_from_store**](docs/ObjectStoreApi.md#delete_key_from_store) | **DELETE** /resources/stores/object/{store_id}/keys/{key_name} | Delete object store key. *ObjectStoreApi* | [**delete_store**](docs/ObjectStoreApi.md#delete_store) | **DELETE** /resources/stores/object/{store_id} | Delete an object store. -*ObjectStoreApi* | [**get_keys**](docs/ObjectStoreApi.md#get_keys) | **GET** /resources/stores/object/{store_id}/keys | List object store keys. *ObjectStoreApi* | [**get_store**](docs/ObjectStoreApi.md#get_store) | **GET** /resources/stores/object/{store_id} | Describe an object store. *ObjectStoreApi* | [**get_stores**](docs/ObjectStoreApi.md#get_stores) | **GET** /resources/stores/object | List object stores. -*ObjectStoreApi* | [**get_value_for_key**](docs/ObjectStoreApi.md#get_value_for_key) | **GET** /resources/stores/object/{store_id}/keys/{key_name} | Get object store key value. -*ObjectStoreApi* | [**set_value_for_key**](docs/ObjectStoreApi.md#set_value_for_key) | **PUT** /resources/stores/object/{store_id}/keys/{key_name} | Insert object store key-value. *PackageApi* | [**get_package**](docs/PackageApi.md#get_package) | **GET** /service/{service_id}/version/{version_id}/package | Get details of the service's Compute@Edge package. *PackageApi* | [**put_package**](docs/PackageApi.md#put_package) | **PUT** /service/{service_id}/version/{version_id}/package | Upload a Compute@Edge package. *PoolApi* | [**create_server_pool**](docs/PoolApi.md#create_server_pool) | **POST** /service/{service_id}/version/{version_id}/pool | Create a server pool @@ -355,10 +351,10 @@ Class | Method | HTTP request | Description *RequestSettingsApi* | [**list_request_settings**](docs/RequestSettingsApi.md#list_request_settings) | **GET** /service/{service_id}/version/{version_id}/request_settings | List Request Settings objects *RequestSettingsApi* | [**update_request_settings**](docs/RequestSettingsApi.md#update_request_settings) | **PUT** /service/{service_id}/version/{version_id}/request_settings/{request_settings_name} | Update a Request Settings object *ResourceApi* | [**create_resource**](docs/ResourceApi.md#create_resource) | **POST** /service/{service_id}/version/{version_id}/resource | Create a resource -*ResourceApi* | [**delete_resource**](docs/ResourceApi.md#delete_resource) | **DELETE** /service/{service_id}/version/{version_id}/resource/{resource_id} | Delete a resource -*ResourceApi* | [**get_resource**](docs/ResourceApi.md#get_resource) | **GET** /service/{service_id}/version/{version_id}/resource/{resource_id} | Display a resource +*ResourceApi* | [**delete_resource**](docs/ResourceApi.md#delete_resource) | **DELETE** /service/{service_id}/version/{version_id}/resource/{id} | Delete a resource +*ResourceApi* | [**get_resource**](docs/ResourceApi.md#get_resource) | **GET** /service/{service_id}/version/{version_id}/resource/{id} | Display a resource *ResourceApi* | [**list_resources**](docs/ResourceApi.md#list_resources) | **GET** /service/{service_id}/version/{version_id}/resource | List resources -*ResourceApi* | [**update_resource**](docs/ResourceApi.md#update_resource) | **PUT** /service/{service_id}/version/{version_id}/resource/{resource_id} | Update a resource +*ResourceApi* | [**update_resource**](docs/ResourceApi.md#update_resource) | **PUT** /service/{service_id}/version/{version_id}/resource/{id} | Update a resource *ResponseObjectApi* | [**delete_response_object**](docs/ResponseObjectApi.md#delete_response_object) | **DELETE** /service/{service_id}/version/{version_id}/response_object/{response_object_name} | Delete a Response Object *ResponseObjectApi* | [**get_response_object**](docs/ResponseObjectApi.md#get_response_object) | **GET** /service/{service_id}/version/{version_id}/response_object/{response_object_name} | Get a Response object *ResponseObjectApi* | [**list_response_objects**](docs/ResponseObjectApi.md#list_response_objects) | **GET** /service/{service_id}/version/{version_id}/response_object | List Response objects diff --git a/docs/Backend.md b/docs/Backend.md index 9f410e6..22def1d 100644 --- a/docs/Backend.md +++ b/docs/Backend.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **hostname** | **str, none_type** | The hostname of the backend. May be used as an alternative to `address` to set the backend location. | [optional] **ipv4** | **str, none_type** | IPv4 address of the backend. May be used as an alternative to `address` to set the backend location. | [optional] **ipv6** | **str, none_type** | IPv6 address of the backend. May be used as an alternative to `address` to set the backend location. | [optional] -**keepalive_time** | **int, none_type** | How long to keep a persistent connection to the backend between requests. | [optional] +**keepalive_time** | **int, none_type** | How long in seconds to keep a persistent connection to the backend between requests. | [optional] **max_conn** | **int** | Maximum number of concurrent connections this backend will accept. | [optional] **max_tls_version** | **str, none_type** | Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. | [optional] **min_tls_version** | **str, none_type** | Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. | [optional] diff --git a/docs/BackendApi.md b/docs/BackendApi.md index 7979fa4..90e264f 100644 --- a/docs/BackendApi.md +++ b/docs/BackendApi.md @@ -62,7 +62,7 @@ with fastly.ApiClient(configuration) as api_client: hostname = "hostname_example" # str, none_type | The hostname of the backend. May be used as an alternative to `address` to set the backend location. (optional) ipv4 = "ipv4_example" # str, none_type | IPv4 address of the backend. May be used as an alternative to `address` to set the backend location. (optional) ipv6 = "ipv6_example" # str, none_type | IPv6 address of the backend. May be used as an alternative to `address` to set the backend location. (optional) - keepalive_time = 1 # int, none_type | How long to keep a persistent connection to the backend between requests. (optional) + keepalive_time = 1 # int, none_type | How long in seconds to keep a persistent connection to the backend between requests. (optional) max_conn = 1 # int | Maximum number of concurrent connections this backend will accept. (optional) max_tls_version = "max_tls_version_example" # str, none_type | Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. (optional) min_tls_version = "min_tls_version_example" # str, none_type | Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. (optional) @@ -118,7 +118,7 @@ Name | Type | Description | Notes **hostname** | **str, none_type**| The hostname of the backend. May be used as an alternative to `address` to set the backend location. | [optional] **ipv4** | **str, none_type**| IPv4 address of the backend. May be used as an alternative to `address` to set the backend location. | [optional] **ipv6** | **str, none_type**| IPv6 address of the backend. May be used as an alternative to `address` to set the backend location. | [optional] - **keepalive_time** | **int, none_type**| How long to keep a persistent connection to the backend between requests. | [optional] + **keepalive_time** | **int, none_type**| How long in seconds to keep a persistent connection to the backend between requests. | [optional] **max_conn** | **int**| Maximum number of concurrent connections this backend will accept. | [optional] **max_tls_version** | **str, none_type**| Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. | [optional] **min_tls_version** | **str, none_type**| Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. | [optional] @@ -456,7 +456,7 @@ with fastly.ApiClient(configuration) as api_client: hostname = "hostname_example" # str, none_type | The hostname of the backend. May be used as an alternative to `address` to set the backend location. (optional) ipv4 = "ipv4_example" # str, none_type | IPv4 address of the backend. May be used as an alternative to `address` to set the backend location. (optional) ipv6 = "ipv6_example" # str, none_type | IPv6 address of the backend. May be used as an alternative to `address` to set the backend location. (optional) - keepalive_time = 1 # int, none_type | How long to keep a persistent connection to the backend between requests. (optional) + keepalive_time = 1 # int, none_type | How long in seconds to keep a persistent connection to the backend between requests. (optional) max_conn = 1 # int | Maximum number of concurrent connections this backend will accept. (optional) max_tls_version = "max_tls_version_example" # str, none_type | Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. (optional) min_tls_version = "min_tls_version_example" # str, none_type | Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. (optional) @@ -513,7 +513,7 @@ Name | Type | Description | Notes **hostname** | **str, none_type**| The hostname of the backend. May be used as an alternative to `address` to set the backend location. | [optional] **ipv4** | **str, none_type**| IPv4 address of the backend. May be used as an alternative to `address` to set the backend location. | [optional] **ipv6** | **str, none_type**| IPv6 address of the backend. May be used as an alternative to `address` to set the backend location. | [optional] - **keepalive_time** | **int, none_type**| How long to keep a persistent connection to the backend between requests. | [optional] + **keepalive_time** | **int, none_type**| How long in seconds to keep a persistent connection to the backend between requests. | [optional] **max_conn** | **int**| Maximum number of concurrent connections this backend will accept. | [optional] **max_tls_version** | **str, none_type**| Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. | [optional] **min_tls_version** | **str, none_type**| Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. | [optional] diff --git a/docs/BackendResponse.md b/docs/BackendResponse.md index e91050b..6ddaad8 100644 --- a/docs/BackendResponse.md +++ b/docs/BackendResponse.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **hostname** | **str, none_type** | The hostname of the backend. May be used as an alternative to `address` to set the backend location. | [optional] **ipv4** | **str, none_type** | IPv4 address of the backend. May be used as an alternative to `address` to set the backend location. | [optional] **ipv6** | **str, none_type** | IPv6 address of the backend. May be used as an alternative to `address` to set the backend location. | [optional] -**keepalive_time** | **int, none_type** | How long to keep a persistent connection to the backend between requests. | [optional] +**keepalive_time** | **int, none_type** | How long in seconds to keep a persistent connection to the backend between requests. | [optional] **max_conn** | **int** | Maximum number of concurrent connections this backend will accept. | [optional] **max_tls_version** | **str, none_type** | Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. | [optional] **min_tls_version** | **str, none_type** | Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. | [optional] diff --git a/docs/EnabledProduct.md b/docs/EnabledProductResponse.md similarity index 58% rename from docs/EnabledProduct.md rename to docs/EnabledProductResponse.md index 7464f26..d7a932e 100644 --- a/docs/EnabledProduct.md +++ b/docs/EnabledProductResponse.md @@ -1,12 +1,12 @@ -# EnabledProduct +# EnabledProductResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**product** | [**EnabledProductProduct**](EnabledProductProduct.md) | | [optional] -**service** | [**EnabledProductProduct**](EnabledProductProduct.md) | | [optional] -**links** | [**EnabledProductLinks**](EnabledProductLinks.md) | | [optional] +**product** | [**EnabledProductResponseProduct**](EnabledProductResponseProduct.md) | | [optional] +**service** | [**EnabledProductResponseService**](EnabledProductResponseService.md) | | [optional] +**links** | [**EnabledProductResponseLinks**](EnabledProductResponseLinks.md) | | [optional] **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] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/EnabledProductProduct.md b/docs/EnabledProductResponseLinks.md similarity index 73% rename from docs/EnabledProductProduct.md rename to docs/EnabledProductResponseLinks.md index 83a05f1..6179f4b 100644 --- a/docs/EnabledProductProduct.md +++ b/docs/EnabledProductResponseLinks.md @@ -1,11 +1,11 @@ -# EnabledProductProduct +# EnabledProductResponseLinks ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | | [optional] -**object** | **str** | | [optional] +**_self** | **str** | Location of resource | [optional] +**service** | **str** | Location of the service resource | [optional] **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] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/KeyResponse.md b/docs/EnabledProductResponseProduct.md similarity index 76% rename from docs/KeyResponse.md rename to docs/EnabledProductResponseProduct.md index 2efbc78..5ec5064 100644 --- a/docs/KeyResponse.md +++ b/docs/EnabledProductResponseProduct.md @@ -1,11 +1,11 @@ -# KeyResponse +# EnabledProductResponseProduct ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | **[str]** | | [optional] -**meta** | [**GetStoresResponseMeta**](GetStoresResponseMeta.md) | | [optional] +**id** | **str** | Product identifier | [optional] +**object** | **str** | Name of the object | [optional] **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] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/EnabledProductLinks.md b/docs/EnabledProductResponseService.md similarity index 76% rename from docs/EnabledProductLinks.md rename to docs/EnabledProductResponseService.md index 93d2351..e65d906 100644 --- a/docs/EnabledProductLinks.md +++ b/docs/EnabledProductResponseService.md @@ -1,11 +1,11 @@ -# EnabledProductLinks +# EnabledProductResponseService ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_self** | **str** | | [optional] -**service** | **str** | | [optional] +**id** | **str** | Service identifier | [optional] +**object** | **str** | Name of the object | [optional] **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] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/EnabledProductsApi.md b/docs/EnabledProductsApi.md index b93ff5f..9e0f6de 100644 --- a/docs/EnabledProductsApi.md +++ b/docs/EnabledProductsApi.md @@ -14,7 +14,7 @@ Method | HTTP request | Description Disable a product -Disable a product on a service. Supported product IDs: `origin_inspector`,`domain_inspector`,`image_optimizer`, and `websockets`. +Disable a product on a service. Supported product IDs: `brotli_compression`,`domain_inspector`,`fanout`,`image_optimizer`,`origin_inspector`, and `websockets`. ### Example @@ -88,11 +88,11 @@ void (empty response body) [[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) # **enable_product** -> EnabledProduct enable_product(product_id, service_id) +> EnabledProductResponse enable_product(product_id, service_id) Enable a product -Enable a product on a service. Supported product IDs: `origin_inspector`,`domain_inspector`,`image_optimizer`, and `websockets`. +Enable a product on a service. Supported product IDs: `brotli_compression`,`domain_inspector`,`fanout`,`image_optimizer`,`origin_inspector`, and `websockets`. ### Example @@ -102,7 +102,7 @@ Enable a product on a service. Supported product IDs: `origin_inspector`,`domain import time import fastly from fastly.api import enabled_products_api -from fastly.model.enabled_product import EnabledProduct +from fastly.model.enabled_product_response import EnabledProductResponse from pprint import pprint # Defining the host is optional and defaults to https://api.fastly.com # See configuration.py for a list of all supported configuration parameters. @@ -147,7 +147,7 @@ Name | Type | Description | Notes ### Return type -[**EnabledProduct**](EnabledProduct.md) +[**EnabledProductResponse**](EnabledProductResponse.md) ### Authorization @@ -168,11 +168,11 @@ Name | Type | Description | Notes [[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) # **get_enabled_product** -> EnabledProduct get_enabled_product(product_id, service_id) +> EnabledProductResponse get_enabled_product(product_id, service_id) Get enabled product -Get enabled product on a service. Supported product IDs: `origin_inspector`,`domain_inspector`,`image_optimizer`, and `websockets`. +Get enabled product on a service. Supported product IDs: `brotli_compression`,`domain_inspector`,`fanout`,`image_optimizer`,`origin_inspector`, and `websockets`. ### Example @@ -182,7 +182,7 @@ Get enabled product on a service. Supported product IDs: `origin_inspector`,`dom import time import fastly from fastly.api import enabled_products_api -from fastly.model.enabled_product import EnabledProduct +from fastly.model.enabled_product_response import EnabledProductResponse from pprint import pprint # Defining the host is optional and defaults to https://api.fastly.com # See configuration.py for a list of all supported configuration parameters. @@ -227,7 +227,7 @@ Name | Type | Description | Notes ### Return type -[**EnabledProduct**](EnabledProduct.md) +[**EnabledProductResponse**](EnabledProductResponse.md) ### Authorization diff --git a/docs/EventsApi.md b/docs/EventsApi.md index e339b0e..e063e00 100644 --- a/docs/EventsApi.md +++ b/docs/EventsApi.md @@ -129,6 +129,7 @@ with fastly.ApiClient(configuration) as api_client: filter_service_id = "filter[service_id]_example" # str | Limit the results returned to a specific service. (optional) filter_user_id = "filter[user_id]_example" # str | Limit the results returned to a specific user. (optional) filter_token_id = "filter[token_id]_example" # str | Limit the returned events to a specific token. (optional) + filter_created_at = "filter[created_at]_example" # str | Limit the returned events to a specific time frame. Accepts sub-parameters: lt, lte, gt, gte (e.g., filter[created_at][gt]=2022-01-12). (optional) page_number = 1 # int | Current page. (optional) page_size = 20 # int | Number of records per page. (optional) if omitted the server will use the default value of 20 sort = "created_at" # str | The order in which to list the results by creation date. (optional) if omitted the server will use the default value of "created_at" @@ -137,7 +138,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # List events - api_response = api_instance.list_events(filter_customer_id=filter_customer_id, filter_event_type=filter_event_type, filter_service_id=filter_service_id, filter_user_id=filter_user_id, filter_token_id=filter_token_id, page_number=page_number, page_size=page_size, sort=sort) + api_response = api_instance.list_events(filter_customer_id=filter_customer_id, filter_event_type=filter_event_type, filter_service_id=filter_service_id, filter_user_id=filter_user_id, filter_token_id=filter_token_id, filter_created_at=filter_created_at, page_number=page_number, page_size=page_size, sort=sort) pprint(api_response) except fastly.ApiException as e: print("Exception when calling EventsApi->list_events: %s\n" % e) @@ -153,6 +154,7 @@ Name | Type | Description | Notes **filter_service_id** | **str**| Limit the results returned to a specific service. | [optional] **filter_user_id** | **str**| Limit the results returned to a specific user. | [optional] **filter_token_id** | **str**| Limit the returned events to a specific token. | [optional] + **filter_created_at** | **str**| Limit the returned events to a specific time frame. Accepts sub-parameters: lt, lte, gt, gte (e.g., filter[created_at][gt]=2022-01-12). | [optional] **page_number** | **int**| Current page. | [optional] **page_size** | **int**| Number of records per page. | [optional] if omitted the server will use the default value of 20 **sort** | **str**| The order in which to list the results by creation date. | [optional] if omitted the server will use the default value of "created_at" diff --git a/docs/HistoricalApi.md b/docs/HistoricalApi.md index 0df8180..cd99f54 100644 --- a/docs/HistoricalApi.md +++ b/docs/HistoricalApi.md @@ -56,7 +56,7 @@ with fastly.ApiClient(configuration) as api_client: _from = "2020-04-09T18:14:30Z" # str | Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. (optional) to = "2020-04-09T18:14:30Z" # str | Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (optional) if omitted the server will use the default value of "now" by = "day" # str | Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (optional) if omitted the server will use the default value of "day" - region = "usa" # str | Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea ([from Aug 2, 2021](https://status.fastly.com/incidents/f83m70cqm258)) * `africa_std` - Africa. * `southamerica_std` - South America. (optional) + region = "usa" # str | Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America. (optional) # example passing only required values which don't have defaults set # and optional values @@ -76,7 +76,7 @@ Name | Type | Description | Notes **_from** | **str**| Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. | [optional] **to** | **str**| Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. | [optional] if omitted the server will use the default value of "now" **by** | **str**| Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. | [optional] if omitted the server will use the default value of "day" - **region** | **str**| Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea ([from Aug 2, 2021](https://status.fastly.com/incidents/f83m70cqm258)) * `africa_std` - Africa. * `southamerica_std` - South America. | [optional] + **region** | **str**| Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America. | [optional] ### Return type @@ -141,7 +141,7 @@ with fastly.ApiClient(configuration) as api_client: _from = "2020-04-09T18:14:30Z" # str | Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. (optional) to = "2020-04-09T18:14:30Z" # str | Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (optional) if omitted the server will use the default value of "now" by = "day" # str | Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (optional) if omitted the server will use the default value of "day" - region = "usa" # str | Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea ([from Aug 2, 2021](https://status.fastly.com/incidents/f83m70cqm258)) * `africa_std` - Africa. * `southamerica_std` - South America. (optional) + region = "usa" # str | Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America. (optional) # example passing only required values which don't have defaults set # and optional values @@ -161,7 +161,7 @@ Name | Type | Description | Notes **_from** | **str**| Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. | [optional] **to** | **str**| Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. | [optional] if omitted the server will use the default value of "now" **by** | **str**| Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. | [optional] if omitted the server will use the default value of "day" - **region** | **str**| Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea ([from Aug 2, 2021](https://status.fastly.com/incidents/f83m70cqm258)) * `africa_std` - Africa. * `southamerica_std` - South America. | [optional] + **region** | **str**| Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America. | [optional] ### Return type @@ -227,7 +227,7 @@ with fastly.ApiClient(configuration) as api_client: _from = "2020-04-09T18:14:30Z" # str | Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. (optional) to = "2020-04-09T18:14:30Z" # str | Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (optional) if omitted the server will use the default value of "now" by = "day" # str | Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (optional) if omitted the server will use the default value of "day" - region = "usa" # str | Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea ([from Aug 2, 2021](https://status.fastly.com/incidents/f83m70cqm258)) * `africa_std` - Africa. * `southamerica_std` - South America. (optional) + region = "usa" # str | Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America. (optional) # example passing only required values which don't have defaults set try: @@ -256,7 +256,7 @@ Name | Type | Description | Notes **_from** | **str**| Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. | [optional] **to** | **str**| Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. | [optional] if omitted the server will use the default value of "now" **by** | **str**| Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. | [optional] if omitted the server will use the default value of "day" - **region** | **str**| Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea ([from Aug 2, 2021](https://status.fastly.com/incidents/f83m70cqm258)) * `africa_std` - Africa. * `southamerica_std` - South America. | [optional] + **region** | **str**| Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America. | [optional] ### Return type @@ -322,7 +322,7 @@ with fastly.ApiClient(configuration) as api_client: _from = "2020-04-09T18:14:30Z" # str | Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. (optional) to = "2020-04-09T18:14:30Z" # str | Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (optional) if omitted the server will use the default value of "now" by = "day" # str | Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (optional) if omitted the server will use the default value of "day" - region = "usa" # str | Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea ([from Aug 2, 2021](https://status.fastly.com/incidents/f83m70cqm258)) * `africa_std` - Africa. * `southamerica_std` - South America. (optional) + region = "usa" # str | Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America. (optional) # example passing only required values which don't have defaults set try: @@ -351,7 +351,7 @@ Name | Type | Description | Notes **_from** | **str**| Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. | [optional] **to** | **str**| Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. | [optional] if omitted the server will use the default value of "now" **by** | **str**| Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. | [optional] if omitted the server will use the default value of "day" - **region** | **str**| Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea ([from Aug 2, 2021](https://status.fastly.com/incidents/f83m70cqm258)) * `africa_std` - Africa. * `southamerica_std` - South America. | [optional] + **region** | **str**| Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America. | [optional] ### Return type @@ -418,7 +418,7 @@ with fastly.ApiClient(configuration) as api_client: _from = "2020-04-09T18:14:30Z" # str | Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. (optional) to = "2020-04-09T18:14:30Z" # str | Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (optional) if omitted the server will use the default value of "now" by = "day" # str | Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (optional) if omitted the server will use the default value of "day" - region = "usa" # str | Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea ([from Aug 2, 2021](https://status.fastly.com/incidents/f83m70cqm258)) * `africa_std` - Africa. * `southamerica_std` - South America. (optional) + region = "usa" # str | Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America. (optional) # example passing only required values which don't have defaults set try: @@ -448,7 +448,7 @@ Name | Type | Description | Notes **_from** | **str**| Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. | [optional] **to** | **str**| Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. | [optional] if omitted the server will use the default value of "now" **by** | **str**| Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. | [optional] if omitted the server will use the default value of "day" - **region** | **str**| Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea ([from Aug 2, 2021](https://status.fastly.com/incidents/f83m70cqm258)) * `africa_std` - Africa. * `southamerica_std` - South America. | [optional] + **region** | **str**| Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America. | [optional] ### Return type diff --git a/docs/GetStoresResponse.md b/docs/InlineResponse2001.md similarity index 83% rename from docs/GetStoresResponse.md rename to docs/InlineResponse2001.md index f69803b..0c7a8dd 100644 --- a/docs/GetStoresResponse.md +++ b/docs/InlineResponse2001.md @@ -1,11 +1,11 @@ -# GetStoresResponse +# InlineResponse2001 ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[StoreResponse]**](StoreResponse.md) | | [optional] -**meta** | [**GetStoresResponseMeta**](GetStoresResponseMeta.md) | | [optional] +**meta** | [**InlineResponse2001Meta**](InlineResponse2001Meta.md) | | [optional] **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] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetStoresResponseMeta.md b/docs/InlineResponse2001Meta.md similarity index 95% rename from docs/GetStoresResponseMeta.md rename to docs/InlineResponse2001Meta.md index 43bab86..fbaa586 100644 --- a/docs/GetStoresResponseMeta.md +++ b/docs/InlineResponse2001Meta.md @@ -1,4 +1,4 @@ -# GetStoresResponseMeta +# InlineResponse2001Meta Meta for the pagination. diff --git a/docs/ObjectStoreApi.md b/docs/ObjectStoreApi.md index abb8bf3..d9c2ab3 100644 --- a/docs/ObjectStoreApi.md +++ b/docs/ObjectStoreApi.md @@ -5,13 +5,9 @@ All URIs are relative to *https://api.fastly.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**create_store**](ObjectStoreApi.md#create_store) | **POST** /resources/stores/object | Create an object store. -[**delete_key_from_store**](ObjectStoreApi.md#delete_key_from_store) | **DELETE** /resources/stores/object/{store_id}/keys/{key_name} | Delete object store key. [**delete_store**](ObjectStoreApi.md#delete_store) | **DELETE** /resources/stores/object/{store_id} | Delete an object store. -[**get_keys**](ObjectStoreApi.md#get_keys) | **GET** /resources/stores/object/{store_id}/keys | List object store keys. [**get_store**](ObjectStoreApi.md#get_store) | **GET** /resources/stores/object/{store_id} | Describe an object store. [**get_stores**](ObjectStoreApi.md#get_stores) | **GET** /resources/stores/object | List object stores. -[**get_value_for_key**](ObjectStoreApi.md#get_value_for_key) | **GET** /resources/stores/object/{store_id}/keys/{key_name} | Get object store key value. -[**set_value_for_key**](ObjectStoreApi.md#set_value_for_key) | **PUT** /resources/stores/object/{store_id}/keys/{key_name} | Insert object store key-value. # **create_store** @@ -96,90 +92,12 @@ Name | Type | Description | Notes [[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) -# **delete_key_from_store** -> delete_key_from_store(store_id, key_name) - -Delete object store key. - -Delete a key from a customer store. - -### Example - -* Api Key Authentication (token): - -```python -import time -import fastly -from fastly.api import object_store_api -from pprint import pprint -# Defining the host is optional and defaults to https://api.fastly.com -# See configuration.py for a list of all supported configuration parameters. -configuration = fastly.Configuration( - host = "https://api.fastly.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: token -configuration.api_key['token'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['token'] = 'Bearer' - -# Enter a context with an instance of the API client -with fastly.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = object_store_api.ObjectStoreApi(api_client) - store_id = "store_id_example" # str | - key_name = "key_name_example" # str | - - # example passing only required values which don't have defaults set - try: - # Delete object store key. - api_instance.delete_key_from_store(store_id, key_name) - except fastly.ApiException as e: - print("Exception when calling ObjectStoreApi->delete_key_from_store: %s\n" % e) -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **store_id** | **str**| | - **key_name** | **str**| | - -### Return type - -void (empty response body) - -### Authorization - -[token](../README.md#token) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**204** | NO CONTENT | - | - -[[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) - # **delete_store** > delete_store(store_id) Delete an object store. -An object store must be empty before it can be deleted. Deleting an object store that still contains keys will result in a 409 Conflict. +An object store must be empty before it can be deleted. Deleting an object store that still contains keys will result in a `409` (Conflict). ### Example @@ -246,98 +164,7 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | NO CONTENT | - | - -[[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) - -# **get_keys** -> KeyResponse get_keys(store_id) - -List object store keys. - -List all keys within an object store. - -### Example - -* Api Key Authentication (token): - -```python -import time -import fastly -from fastly.api import object_store_api -from fastly.model.key_response import KeyResponse -from pprint import pprint -# Defining the host is optional and defaults to https://api.fastly.com -# See configuration.py for a list of all supported configuration parameters. -configuration = fastly.Configuration( - host = "https://api.fastly.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: token -configuration.api_key['token'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['token'] = 'Bearer' - -# Enter a context with an instance of the API client -with fastly.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = object_store_api.ObjectStoreApi(api_client) - store_id = "store_id_example" # str | - cursor = "cursor_example" # str | (optional) - limit = 100 # int | (optional) if omitted the server will use the default value of 100 - - # example passing only required values which don't have defaults set - try: - # List object store keys. - api_response = api_instance.get_keys(store_id) - pprint(api_response) - except fastly.ApiException as e: - print("Exception when calling ObjectStoreApi->get_keys: %s\n" % e) - - # example passing only required values which don't have defaults set - # and optional values - try: - # List object store keys. - api_response = api_instance.get_keys(store_id, cursor=cursor, limit=limit) - pprint(api_response) - except fastly.ApiException as e: - print("Exception when calling ObjectStoreApi->get_keys: %s\n" % e) -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **store_id** | **str**| | - **cursor** | **str**| | [optional] - **limit** | **int**| | [optional] if omitted the server will use the default value of 100 - -### Return type - -[**KeyResponse**](KeyResponse.md) - -### Authorization - -[token](../README.md#token) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | +**204** | No Content | - | [[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) @@ -420,7 +247,7 @@ Name | Type | Description | Notes [[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) # **get_stores** -> GetStoresResponse get_stores() +> InlineResponse2001 get_stores() List object stores. @@ -434,7 +261,7 @@ Get all stores for a given customer. import time import fastly from fastly.api import object_store_api -from fastly.model.get_stores_response import GetStoresResponse +from fastly.model.inline_response2001 import InlineResponse2001 from pprint import pprint # Defining the host is optional and defaults to https://api.fastly.com # See configuration.py for a list of all supported configuration parameters. @@ -480,7 +307,7 @@ Name | Type | Description | Notes ### Return type -[**GetStoresResponse**](GetStoresResponse.md) +[**InlineResponse2001**](InlineResponse2001.md) ### Authorization @@ -500,172 +327,3 @@ Name | Type | Description | Notes [[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) -# **get_value_for_key** -> file_type get_value_for_key(store_id, key_name) - -Get object store key value. - -Get the value associated with a key. - -### Example - -* Api Key Authentication (token): - -```python -import time -import fastly -from fastly.api import object_store_api -from pprint import pprint -# Defining the host is optional and defaults to https://api.fastly.com -# See configuration.py for a list of all supported configuration parameters. -configuration = fastly.Configuration( - host = "https://api.fastly.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: token -configuration.api_key['token'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['token'] = 'Bearer' - -# Enter a context with an instance of the API client -with fastly.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = object_store_api.ObjectStoreApi(api_client) - store_id = "store_id_example" # str | - key_name = "key_name_example" # str | - - # example passing only required values which don't have defaults set - try: - # Get object store key value. - api_response = api_instance.get_value_for_key(store_id, key_name) - pprint(api_response) - except fastly.ApiException as e: - print("Exception when calling ObjectStoreApi->get_value_for_key: %s\n" % e) -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **store_id** | **str**| | - **key_name** | **str**| | - -### Return type - -**file_type** - -### Authorization - -[token](../README.md#token) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/octet-stream - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | - -[[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) - -# **set_value_for_key** -> file_type set_value_for_key(store_id, key_name) - -Insert object store key-value. - -Insert a new key-value pair into an object store. - -### Example - -* Api Key Authentication (token): - -```python -import time -import fastly -from fastly.api import object_store_api -from pprint import pprint -# Defining the host is optional and defaults to https://api.fastly.com -# See configuration.py for a list of all supported configuration parameters. -configuration = fastly.Configuration( - host = "https://api.fastly.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: token -configuration.api_key['token'] = 'YOUR_API_KEY' - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['token'] = 'Bearer' - -# Enter a context with an instance of the API client -with fastly.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = object_store_api.ObjectStoreApi(api_client) - store_id = "store_id_example" # str | - key_name = "key_name_example" # str | - body = open('/path/to/file', 'rb') # file_type | (optional) - - # example passing only required values which don't have defaults set - try: - # Insert object store key-value. - api_response = api_instance.set_value_for_key(store_id, key_name) - pprint(api_response) - except fastly.ApiException as e: - print("Exception when calling ObjectStoreApi->set_value_for_key: %s\n" % e) - - # example passing only required values which don't have defaults set - # and optional values - try: - # Insert object store key-value. - api_response = api_instance.set_value_for_key(store_id, key_name, body=body) - pprint(api_response) - except fastly.ApiException as e: - print("Exception when calling ObjectStoreApi->set_value_for_key: %s\n" % e) -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **store_id** | **str**| | - **key_name** | **str**| | - **body** | **file_type**| | [optional] - -### Return type - -**file_type** - -### Authorization - -[token](../README.md#token) - -### HTTP request headers - - - **Content-Type**: application/octet-stream - - **Accept**: application/octet-stream - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | - -[[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) - diff --git a/docs/Pop.md b/docs/Pop.md index 4587289..4c73c4b 100644 --- a/docs/Pop.md +++ b/docs/Pop.md @@ -4,11 +4,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**code** | **str** | | [optional] -**name** | **str** | | [optional] -**group** | **str** | | [optional] +**code** | **str** | the three-letter code for the [POP](https://developer.fastly.com/learning/concepts/pop/) | +**name** | **str** | the name of the POP | +**group** | **str** | | +**region** | **str** | | +**stats_region** | **str** | the region used for stats reporting | +**billing_region** | **str** | the region used for billing | **coordinates** | [**PopCoordinates**](PopCoordinates.md) | | [optional] -**shield** | **str** | | [optional] +**shield** | **str** | the name of the [shield code](https://developer.fastly.com/learning/concepts/shielding/#choosing-a-shield-location) if this POP is suitable for shielding | [optional] **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] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PopCoordinates.md b/docs/PopCoordinates.md index 6193f03..ef362b9 100644 --- a/docs/PopCoordinates.md +++ b/docs/PopCoordinates.md @@ -1,13 +1,12 @@ # PopCoordinates +the geographic location of the POP ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**x** | **float** | | [optional] -**y** | **float** | | [optional] -**latitude** | **float** | | [optional] -**longitude** | **float** | | [optional] +**latitude** | **float** | | +**longitude** | **float** | | **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] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PurgeApi.md b/docs/PurgeApi.md index b48f2dc..ef6c6e6 100644 --- a/docs/PurgeApi.md +++ b/docs/PurgeApi.md @@ -96,7 +96,7 @@ Instant Purge an individual URL. ### Example -* Basic Authentication (url_purge): +* Api Key Authentication (token): ```python import time @@ -115,11 +115,11 @@ configuration = fastly.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure HTTP basic authorization: url_purge -configuration = fastly.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) +# Configure API key authorization: token +configuration.api_key['token'] = 'YOUR_API_KEY' + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' # Enter a context with an instance of the API client with fastly.ApiClient(configuration) as api_client: @@ -160,7 +160,7 @@ Name | Type | Description | Notes ### Authorization -[url_purge](../README.md#url_purge) +[token](../README.md#token) ### HTTP request headers diff --git a/docs/RealtimeMeasurements.md b/docs/RealtimeMeasurements.md index 4975446..e3edbee 100644 --- a/docs/RealtimeMeasurements.md +++ b/docs/RealtimeMeasurements.md @@ -203,8 +203,10 @@ Name | Type | Description | Notes **websocket_resp_body_bytes** | **int** | Total message content bytes sent to end users over passthrough WebSocket connections. | [optional] **fanout_recv_publishes** | **int** | Total published messages received from the publish API endpoint. | [optional] **fanout_send_publishes** | **int** | Total published messages sent to end users. | [optional] -**object_store_read_requests** | **int** | The total number of reads received for the object store. | [optional] -**object_store_write_requests** | **int** | The total number of writes received for the object store. | [optional] +**object_store_class_a_operations** | **int** | The total number of class a operations for the object store. | [optional] +**object_store_class_b_operations** | **int** | The total number of class b operations for the object store. | [optional] +**object_store_read_requests** | **int** | Use object_store_class_b_operations. | [optional] +**object_store_write_requests** | **int** | Use object_store_class_a_operations. | [optional] **fanout_req_header_bytes** | **int** | Total header bytes received from end users over Fanout connections. | [optional] **fanout_req_body_bytes** | **int** | Total body or message content bytes received from end users over Fanout connections. | [optional] **fanout_resp_header_bytes** | **int** | Total header bytes sent to end users over Fanout connections. | [optional] diff --git a/docs/ResourceApi.md b/docs/ResourceApi.md index beffb5e..4a9c6b1 100644 --- a/docs/ResourceApi.md +++ b/docs/ResourceApi.md @@ -5,10 +5,10 @@ All URIs are relative to *https://api.fastly.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**create_resource**](ResourceApi.md#create_resource) | **POST** /service/{service_id}/version/{version_id}/resource | Create a resource -[**delete_resource**](ResourceApi.md#delete_resource) | **DELETE** /service/{service_id}/version/{version_id}/resource/{resource_id} | Delete a resource -[**get_resource**](ResourceApi.md#get_resource) | **GET** /service/{service_id}/version/{version_id}/resource/{resource_id} | Display a resource +[**delete_resource**](ResourceApi.md#delete_resource) | **DELETE** /service/{service_id}/version/{version_id}/resource/{id} | Delete a resource +[**get_resource**](ResourceApi.md#get_resource) | **GET** /service/{service_id}/version/{version_id}/resource/{id} | Display a resource [**list_resources**](ResourceApi.md#list_resources) | **GET** /service/{service_id}/version/{version_id}/resource | List resources -[**update_resource**](ResourceApi.md#update_resource) | **PUT** /service/{service_id}/version/{version_id}/resource/{resource_id} | Update a resource +[**update_resource**](ResourceApi.md#update_resource) | **PUT** /service/{service_id}/version/{version_id}/resource/{id} | Update a resource # **create_resource** @@ -105,7 +105,7 @@ Name | Type | Description | Notes [[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) # **delete_resource** -> InlineResponse200 delete_resource(service_id, version_id, resource_id) +> InlineResponse200 delete_resource(service_id, version_id, id) Delete a resource @@ -144,12 +144,12 @@ with fastly.ApiClient(configuration) as api_client: api_instance = resource_api.ResourceApi(api_client) service_id = "SU1Z0isxPaozGVKXdv0eY" # str | Alphanumeric string identifying the service. version_id = 1 # int | Integer identifying a service version. - resource_id = "7Lsb7Y76rChV9hSrv3KgFl" # str | An alphanumeric string identifying the resource. + id = "7Lsb7Y76rChV9hSrv3KgFl" # str | An alphanumeric string identifying the resource link. # example passing only required values which don't have defaults set try: # Delete a resource - api_response = api_instance.delete_resource(service_id, version_id, resource_id) + api_response = api_instance.delete_resource(service_id, version_id, id) pprint(api_response) except fastly.ApiException as e: print("Exception when calling ResourceApi->delete_resource: %s\n" % e) @@ -162,7 +162,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **service_id** | **str**| Alphanumeric string identifying the service. | **version_id** | **int**| Integer identifying a service version. | - **resource_id** | **str**| An alphanumeric string identifying the resource. | + **id** | **str**| An alphanumeric string identifying the resource link. | ### Return type @@ -187,7 +187,7 @@ Name | Type | Description | Notes [[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) # **get_resource** -> ResourceResponse get_resource(service_id, version_id, resource_id) +> ResourceResponse get_resource(service_id, version_id, id) Display a resource @@ -226,12 +226,12 @@ with fastly.ApiClient(configuration) as api_client: api_instance = resource_api.ResourceApi(api_client) service_id = "SU1Z0isxPaozGVKXdv0eY" # str | Alphanumeric string identifying the service. version_id = 1 # int | Integer identifying a service version. - resource_id = "7Lsb7Y76rChV9hSrv3KgFl" # str | An alphanumeric string identifying the resource. + id = "7Lsb7Y76rChV9hSrv3KgFl" # str | An alphanumeric string identifying the resource link. # example passing only required values which don't have defaults set try: # Display a resource - api_response = api_instance.get_resource(service_id, version_id, resource_id) + api_response = api_instance.get_resource(service_id, version_id, id) pprint(api_response) except fastly.ApiException as e: print("Exception when calling ResourceApi->get_resource: %s\n" % e) @@ -244,7 +244,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **service_id** | **str**| Alphanumeric string identifying the service. | **version_id** | **int**| Integer identifying a service version. | - **resource_id** | **str**| An alphanumeric string identifying the resource. | + **id** | **str**| An alphanumeric string identifying the resource link. | ### Return type @@ -349,7 +349,7 @@ Name | Type | Description | Notes [[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) # **update_resource** -> ResourceResponse update_resource(service_id, version_id, resource_id) +> ResourceResponse update_resource(service_id, version_id, id) Update a resource @@ -388,13 +388,13 @@ with fastly.ApiClient(configuration) as api_client: api_instance = resource_api.ResourceApi(api_client) service_id = "SU1Z0isxPaozGVKXdv0eY" # str | Alphanumeric string identifying the service. version_id = 1 # int | Integer identifying a service version. - resource_id = "7Lsb7Y76rChV9hSrv3KgFl" # str | An alphanumeric string identifying the resource. + id = "7Lsb7Y76rChV9hSrv3KgFl" # str | An alphanumeric string identifying the resource link. name = "test-resource" # str | The name of the resource. (optional) # example passing only required values which don't have defaults set try: # Update a resource - api_response = api_instance.update_resource(service_id, version_id, resource_id) + api_response = api_instance.update_resource(service_id, version_id, id) pprint(api_response) except fastly.ApiException as e: print("Exception when calling ResourceApi->update_resource: %s\n" % e) @@ -403,7 +403,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update a resource - api_response = api_instance.update_resource(service_id, version_id, resource_id, name=name) + api_response = api_instance.update_resource(service_id, version_id, id, name=name) pprint(api_response) except fastly.ApiException as e: print("Exception when calling ResourceApi->update_resource: %s\n" % e) @@ -416,7 +416,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **service_id** | **str**| Alphanumeric string identifying the service. | **version_id** | **int**| Integer identifying a service version. | - **resource_id** | **str**| An alphanumeric string identifying the resource. | + **id** | **str**| An alphanumeric string identifying the resource link. | **name** | **str**| The name of the resource. | [optional] ### Return type diff --git a/docs/ResourceResponse.md b/docs/ResourceResponse.md index c912d22..dea6e46 100644 --- a/docs/ResourceResponse.md +++ b/docs/ResourceResponse.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **name** | **str** | The name of the resource. | [optional] **resource_id** | **str** | The ID of the linked resource. | [optional] -**id** | **str** | An alphanumeric string identifying the resource. | [optional] +**id** | **str** | An alphanumeric string identifying the resource link. | [optional] **href** | **str** | The path to the resource. | [optional] **service_id** | **str** | Alphanumeric string identifying the service. | [optional] **version** | **int** | Integer identifying a service version. | [optional] diff --git a/docs/ResourceResponseAllOf.md b/docs/ResourceResponseAllOf.md index 7f2ad56..a2da27e 100644 --- a/docs/ResourceResponseAllOf.md +++ b/docs/ResourceResponseAllOf.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | An alphanumeric string identifying the resource. | [optional] +**id** | **str** | An alphanumeric string identifying the resource link. | [optional] **href** | **str** | The path to the resource. | [optional] **service_id** | **str** | Alphanumeric string identifying the service. | [optional] **version** | **int** | Integer identifying a service version. | [optional] diff --git a/docs/Results.md b/docs/Results.md index 63c2744..4999f3b 100644 --- a/docs/Results.md +++ b/docs/Results.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **errors** | **int** | Number of cache errors. | [optional] **restarts** | **int** | Number of restarts performed. | [optional] **hit_ratio** | **float, none_type** | Ratio of cache hits to cache misses (between 0 and 1). | [optional] -**bandwidth** | **int** | Total bytes delivered (`resp_header_bytes` + `resp_body_bytes` + `bereq_header_bytes` + `bereq_body_bytes` + `compute_resp_header_bytes` + `compute_resp_body_bytes` + `compute_bereq_header_bytes` + `compute_bereq_body_bytes` + `websocket_resp_header_bytes` + `websocket_resp_body_bytes` + `websocket_bereq_header_bytes` + `websocket_bereq_body_bytes`). | [optional] +**bandwidth** | **int** | Total bytes delivered (`resp_header_bytes` + `resp_body_bytes` + `bereq_header_bytes` + `bereq_body_bytes` + `compute_resp_header_bytes` + `compute_resp_body_bytes` + `compute_bereq_header_bytes` + `compute_bereq_body_bytes` + `websocket_resp_header_bytes` + `websocket_resp_body_bytes` + `websocket_bereq_header_bytes` + `websocket_bereq_body_bytes` + `fanout_resp_header_bytes` + `fanout_resp_body_bytes` + `fanout_bereq_header_bytes` + `fanout_bereq_body_bytes`). | [optional] **body_size** | **int** | Total body bytes delivered (alias for resp_body_bytes). | [optional] **header_size** | **int** | Total header bytes delivered (alias for resp_header_bytes). | [optional] **req_body_bytes** | **int** | Total body bytes received. | [optional] @@ -201,8 +201,10 @@ Name | Type | Description | Notes **websocket_conn_time_ms** | **int** | Total duration of passthrough WebSocket connections with end users. | [optional] **fanout_recv_publishes** | **int** | Total published messages received from the publish API endpoint. | [optional] **fanout_send_publishes** | **int** | Total published messages sent to end users. | [optional] -**object_store_read_requests** | **int** | The total number of reads received for the object store. | [optional] -**object_store_write_requests** | **int** | The total number of writes received for the object store. | [optional] +**object_store_class_a_operations** | **int** | The total number of class a operations for the object store. | [optional] +**object_store_class_b_operations** | **int** | The total number of class b operations for the object store. | [optional] +**object_store_read_requests** | **int** | Use object_store_class_b_operations. | [optional] +**object_store_write_requests** | **int** | Use object_store_class_a_operations. | [optional] **fanout_req_header_bytes** | **int** | Total header bytes received from end users over Fanout connections. | [optional] **fanout_req_body_bytes** | **int** | Total body or message content bytes received from end users over Fanout connections. | [optional] **fanout_resp_header_bytes** | **int** | Total header bytes sent to end users over Fanout connections. | [optional] diff --git a/docs/TlsSubscriptionResponseAttributes.md b/docs/TlsSubscriptionResponseAttributes.md index b67a4ce..813b430 100644 --- a/docs/TlsSubscriptionResponseAttributes.md +++ b/docs/TlsSubscriptionResponseAttributes.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**state** | **str** | The current state of your subscription. | [optional] [readonly] +**state** | **str** | The current state of your subscription. | [optional] **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] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TlsSubscriptionResponseAttributesAllOf.md b/docs/TlsSubscriptionResponseAttributesAllOf.md index bf10ccc..b8e575e 100644 --- a/docs/TlsSubscriptionResponseAttributesAllOf.md +++ b/docs/TlsSubscriptionResponseAttributesAllOf.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**state** | **str** | The current state of your subscription. | [optional] [readonly] +**state** | **str** | The current state of your subscription. | [optional] **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] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TlsSubscriptionsApi.md b/docs/TlsSubscriptionsApi.md index c424a54..d931ea2 100644 --- a/docs/TlsSubscriptionsApi.md +++ b/docs/TlsSubscriptionsApi.md @@ -476,7 +476,7 @@ configuration.api_key['token'] = 'YOUR_API_KEY' with fastly.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = tls_subscriptions_api.TlsSubscriptionsApi(api_client) - filter_state = "filter[state]_example" # str | Limit the returned subscriptions by state. Valid values are `pending`, `processing`, `issued`, and `renewing`. Accepts parameters: `not` (e.g., `filter[state][not]=renewing`). (optional) + filter_state = "filter[state]_example" # str | Limit the returned subscriptions by state. Valid values are `pending`, `processing`, `issued`, `renewing`, and `failed`. Accepts parameters: `not` (e.g., `filter[state][not]=renewing`). (optional) filter_tls_domains_id = "filter[tls_domains.id]_example" # str | Limit the returned subscriptions to those that include the specific domain. (optional) filter_has_active_order = True # bool | Limit the returned subscriptions to those that have currently active orders. Permitted values: `true`. (optional) include = "tls_authorizations" # str | Include related objects. Optional, comma-separated values. Permitted values: `tls_authorizations` and `tls_authorizations.globalsign_email_challenge`. (optional) @@ -499,7 +499,7 @@ with fastly.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **filter_state** | **str**| Limit the returned subscriptions by state. Valid values are `pending`, `processing`, `issued`, and `renewing`. Accepts parameters: `not` (e.g., `filter[state][not]=renewing`). | [optional] + **filter_state** | **str**| Limit the returned subscriptions by state. Valid values are `pending`, `processing`, `issued`, `renewing`, and `failed`. Accepts parameters: `not` (e.g., `filter[state][not]=renewing`). | [optional] **filter_tls_domains_id** | **str**| Limit the returned subscriptions to those that include the specific domain. | [optional] **filter_has_active_order** | **bool**| Limit the returned subscriptions to those that have currently active orders. Permitted values: `true`. | [optional] **include** | **str**| Include related objects. Optional, comma-separated values. Permitted values: `tls_authorizations` and `tls_authorizations.globalsign_email_challenge`. | [optional] @@ -534,7 +534,7 @@ Name | Type | Description | Notes Update a TLS subscription -Change the TLS domains or common name associated with this subscription, or update the TLS configuration for this set of domains. +Change the TLS domains or common name associated with this subscription, update the TLS configuration for this set of domains, or retry a subscription with state `failed` by setting the state to `retry`. ### Example diff --git a/docs/TypeResource.md b/docs/TypeResource.md index 5309cfc..ff38ae2 100644 --- a/docs/TypeResource.md +++ b/docs/TypeResource.md @@ -5,7 +5,7 @@ Resource type ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **str** | Resource type | defaults to "object-store", must be one of ["object-store", ] +**value** | **str** | Resource type | defaults to "object-store", must be one of ["object-store", "secret-store", ] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/fastly/__init__.py b/fastly/__init__.py index 2edef1a..d8e8f95 100644 --- a/fastly/__init__.py +++ b/fastly/__init__.py @@ -10,7 +10,7 @@ """ -__version__ = "v1.1.0" +__version__ = "1.2.0" # import ApiClient from fastly.api_client import ApiClient diff --git a/fastly/api/backend_api.py b/fastly/api/backend_api.py index b4db6af..f0889a5 100644 --- a/fastly/api/backend_api.py +++ b/fastly/api/backend_api.py @@ -709,7 +709,7 @@ def create_backend( hostname (str, none_type): The hostname of the backend. May be used as an alternative to `address` to set the backend location.. [optional] ipv4 (str, none_type): IPv4 address of the backend. May be used as an alternative to `address` to set the backend location.. [optional] ipv6 (str, none_type): IPv6 address of the backend. May be used as an alternative to `address` to set the backend location.. [optional] - keepalive_time (int, none_type): How long to keep a persistent connection to the backend between requests.. [optional] + keepalive_time (int, none_type): How long in seconds to keep a persistent connection to the backend between requests.. [optional] max_conn (int): Maximum number of concurrent connections this backend will accept.. [optional] max_tls_version (str, none_type): Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.. [optional] min_tls_version (str, none_type): Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.. [optional] @@ -1077,7 +1077,7 @@ def update_backend( hostname (str, none_type): The hostname of the backend. May be used as an alternative to `address` to set the backend location.. [optional] ipv4 (str, none_type): IPv4 address of the backend. May be used as an alternative to `address` to set the backend location.. [optional] ipv6 (str, none_type): IPv6 address of the backend. May be used as an alternative to `address` to set the backend location.. [optional] - keepalive_time (int, none_type): How long to keep a persistent connection to the backend between requests.. [optional] + keepalive_time (int, none_type): How long in seconds to keep a persistent connection to the backend between requests.. [optional] max_conn (int): Maximum number of concurrent connections this backend will accept.. [optional] max_tls_version (str, none_type): Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.. [optional] min_tls_version (str, none_type): Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.. [optional] diff --git a/fastly/api/enabled_products_api.py b/fastly/api/enabled_products_api.py index e97b625..7a2f244 100644 --- a/fastly/api/enabled_products_api.py +++ b/fastly/api/enabled_products_api.py @@ -21,7 +21,7 @@ none_type, validate_and_convert_types ) -from fastly.model.enabled_product import EnabledProduct +from fastly.model.enabled_product_response import EnabledProductResponse class EnabledProductsApi(object): @@ -90,7 +90,7 @@ def __init__(self, api_client=None): ) self.enable_product_endpoint = _Endpoint( settings={ - 'response_type': (EnabledProduct,), + 'response_type': (EnabledProductResponse,), 'auth': [ 'token' ], @@ -147,7 +147,7 @@ def __init__(self, api_client=None): ) self.get_enabled_product_endpoint = _Endpoint( settings={ - 'response_type': (EnabledProduct,), + 'response_type': (EnabledProductResponse,), 'auth': [ 'token' ], @@ -211,7 +211,7 @@ def disable_product( ): """Disable a product # noqa: E501 - Disable a product on a service. Supported product IDs: `origin_inspector`,`domain_inspector`,`image_optimizer`, and `websockets`. # noqa: E501 + Disable a product on a service. Supported product IDs: `brotli_compression`,`domain_inspector`,`fanout`,`image_optimizer`,`origin_inspector`, and `websockets`. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -293,7 +293,7 @@ def enable_product( ): """Enable a product # noqa: E501 - Enable a product on a service. Supported product IDs: `origin_inspector`,`domain_inspector`,`image_optimizer`, and `websockets`. # noqa: E501 + Enable a product on a service. Supported product IDs: `brotli_compression`,`domain_inspector`,`fanout`,`image_optimizer`,`origin_inspector`, and `websockets`. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -333,7 +333,7 @@ def enable_product( async_req (bool): execute request asynchronously Returns: - EnabledProduct + EnabledProductResponse If the method is called asynchronously, returns the request thread. """ @@ -375,7 +375,7 @@ def get_enabled_product( ): """Get enabled product # noqa: E501 - Get enabled product on a service. Supported product IDs: `origin_inspector`,`domain_inspector`,`image_optimizer`, and `websockets`. # noqa: E501 + Get enabled product on a service. Supported product IDs: `brotli_compression`,`domain_inspector`,`fanout`,`image_optimizer`,`origin_inspector`, and `websockets`. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -415,7 +415,7 @@ def get_enabled_product( async_req (bool): execute request asynchronously Returns: - EnabledProduct + EnabledProductResponse If the method is called asynchronously, returns the request thread. """ diff --git a/fastly/api/events_api.py b/fastly/api/events_api.py index e6adef2..8f88f44 100644 --- a/fastly/api/events_api.py +++ b/fastly/api/events_api.py @@ -103,6 +103,7 @@ def __init__(self, api_client=None): 'filter_service_id', 'filter_user_id', 'filter_token_id', + 'filter_created_at', 'page_number', 'page_size', 'sort', @@ -143,6 +144,8 @@ def __init__(self, api_client=None): (str,), 'filter_token_id': (str,), + 'filter_created_at': + (str,), 'page_number': (int,), 'page_size': @@ -156,6 +159,7 @@ def __init__(self, api_client=None): 'filter_service_id': 'filter[service_id]', 'filter_user_id': 'filter[user_id]', 'filter_token_id': 'filter[token_id]', + 'filter_created_at': 'filter[created_at]', 'page_number': 'page[number]', 'page_size': 'page[size]', 'sort': 'sort', @@ -166,6 +170,7 @@ def __init__(self, api_client=None): 'filter_service_id': 'query', 'filter_user_id': 'query', 'filter_token_id': 'query', + 'filter_created_at': 'query', 'page_number': 'query', 'page_size': 'query', 'sort': 'query', @@ -280,6 +285,7 @@ def list_events( filter_service_id (str): Limit the results returned to a specific service.. [optional] filter_user_id (str): Limit the results returned to a specific user.. [optional] filter_token_id (str): Limit the returned events to a specific token.. [optional] + filter_created_at (str): Limit the returned events to a specific time frame. Accepts sub-parameters: lt, lte, gt, gte (e.g., filter[created_at][gt]=2022-01-12). . [optional] page_number (int): Current page.. [optional] page_size (int): Number of records per page.. [optional] if omitted the server will use the default value of 20 sort (str): The order in which to list the results by creation date.. [optional] if omitted the server will use the default value of "created_at" diff --git a/fastly/api/historical_api.py b/fastly/api/historical_api.py index ab3d9bd..37d93e1 100644 --- a/fastly/api/historical_api.py +++ b/fastly/api/historical_api.py @@ -707,7 +707,7 @@ def get_hist_stats( _from (str): Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. . [optional] to (str): Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. . [optional] if omitted the server will use the default value of "now" by (str): Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. . [optional] if omitted the server will use the default value of "day" - region (str): Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea ([from Aug 2, 2021](https://status.fastly.com/incidents/f83m70cqm258)) * `africa_std` - Africa. * `southamerica_std` - South America. . [optional] + region (str): Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America. . [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -784,7 +784,7 @@ def get_hist_stats_aggregated( _from (str): Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. . [optional] to (str): Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. . [optional] if omitted the server will use the default value of "now" by (str): Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. . [optional] if omitted the server will use the default value of "day" - region (str): Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea ([from Aug 2, 2021](https://status.fastly.com/incidents/f83m70cqm258)) * `africa_std` - Africa. * `southamerica_std` - South America. . [optional] + region (str): Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America. . [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -864,7 +864,7 @@ def get_hist_stats_field( _from (str): Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. . [optional] to (str): Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. . [optional] if omitted the server will use the default value of "now" by (str): Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. . [optional] if omitted the server will use the default value of "day" - region (str): Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea ([from Aug 2, 2021](https://status.fastly.com/incidents/f83m70cqm258)) * `africa_std` - Africa. * `southamerica_std` - South America. . [optional] + region (str): Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America. . [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -946,7 +946,7 @@ def get_hist_stats_service( _from (str): Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. . [optional] to (str): Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. . [optional] if omitted the server will use the default value of "now" by (str): Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. . [optional] if omitted the server will use the default value of "day" - region (str): Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea ([from Aug 2, 2021](https://status.fastly.com/incidents/f83m70cqm258)) * `africa_std` - Africa. * `southamerica_std` - South America. . [optional] + region (str): Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America. . [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -1030,7 +1030,7 @@ def get_hist_stats_service_field( _from (str): Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`. . [optional] to (str): Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. . [optional] if omitted the server will use the default value of "now" by (str): Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. . [optional] if omitted the server will use the default value of "day" - region (str): Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea ([from Aug 2, 2021](https://status.fastly.com/incidents/f83m70cqm258)) * `africa_std` - Africa. * `southamerica_std` - South America. . [optional] + region (str): Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America. . [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object diff --git a/fastly/api/object_store_api.py b/fastly/api/object_store_api.py index b559285..b9a672d 100644 --- a/fastly/api/object_store_api.py +++ b/fastly/api/object_store_api.py @@ -21,8 +21,7 @@ none_type, validate_and_convert_types ) -from fastly.model.get_stores_response import GetStoresResponse -from fastly.model.key_response import KeyResponse +from fastly.model.inline_response2001 import InlineResponse2001 from fastly.model.store import Store from fastly.model.store_response import StoreResponse @@ -86,61 +85,6 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.delete_key_from_store_endpoint = _Endpoint( - settings={ - 'response_type': None, - 'auth': [ - 'token' - ], - 'endpoint_path': '/resources/stores/object/{store_id}/keys/{key_name}', - 'operation_id': 'delete_key_from_store', - 'http_method': 'DELETE', - 'servers': None, - }, - params_map={ - 'all': [ - 'store_id', - 'key_name', - ], - 'required': [ - 'store_id', - 'key_name', - ], - 'nullable': [ - ], - 'enum': [ - ], - 'validation': [ - ] - }, - root_map={ - 'validations': { - }, - 'allowed_values': { - }, - 'openapi_types': { - 'store_id': - (str,), - 'key_name': - (str,), - }, - 'attribute_map': { - 'store_id': 'store_id', - 'key_name': 'key_name', - }, - 'location_map': { - 'store_id': 'path', - 'key_name': 'path', - }, - 'collection_format_map': { - } - }, - headers_map={ - 'accept': [], - 'content_type': [], - }, - api_client=api_client - ) self.delete_store_endpoint = _Endpoint( settings={ 'response_type': None, @@ -190,67 +134,6 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_keys_endpoint = _Endpoint( - settings={ - 'response_type': (KeyResponse,), - 'auth': [ - 'token' - ], - 'endpoint_path': '/resources/stores/object/{store_id}/keys', - 'operation_id': 'get_keys', - 'http_method': 'GET', - 'servers': None, - }, - params_map={ - 'all': [ - 'store_id', - 'cursor', - 'limit', - ], - 'required': [ - 'store_id', - ], - 'nullable': [ - ], - 'enum': [ - ], - 'validation': [ - ] - }, - root_map={ - 'validations': { - }, - 'allowed_values': { - }, - 'openapi_types': { - 'store_id': - (str,), - 'cursor': - (str,), - 'limit': - (int,), - }, - 'attribute_map': { - 'store_id': 'store_id', - 'cursor': 'cursor', - 'limit': 'limit', - }, - 'location_map': { - 'store_id': 'path', - 'cursor': 'query', - 'limit': 'query', - }, - 'collection_format_map': { - } - }, - headers_map={ - 'accept': [ - 'application/json' - ], - 'content_type': [], - }, - api_client=api_client - ) self.get_store_endpoint = _Endpoint( settings={ 'response_type': (StoreResponse,), @@ -304,7 +187,7 @@ def __init__(self, api_client=None): ) self.get_stores_endpoint = _Endpoint( settings={ - 'response_type': (GetStoresResponse,), + 'response_type': (InlineResponse2001,), 'auth': [ 'token' ], @@ -356,126 +239,6 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_value_for_key_endpoint = _Endpoint( - settings={ - 'response_type': (file_type,), - 'auth': [ - 'token' - ], - 'endpoint_path': '/resources/stores/object/{store_id}/keys/{key_name}', - 'operation_id': 'get_value_for_key', - 'http_method': 'GET', - 'servers': None, - }, - params_map={ - 'all': [ - 'store_id', - 'key_name', - ], - 'required': [ - 'store_id', - 'key_name', - ], - 'nullable': [ - ], - 'enum': [ - ], - 'validation': [ - ] - }, - root_map={ - 'validations': { - }, - 'allowed_values': { - }, - 'openapi_types': { - 'store_id': - (str,), - 'key_name': - (str,), - }, - 'attribute_map': { - 'store_id': 'store_id', - 'key_name': 'key_name', - }, - 'location_map': { - 'store_id': 'path', - 'key_name': 'path', - }, - 'collection_format_map': { - } - }, - headers_map={ - 'accept': [ - 'application/octet-stream' - ], - 'content_type': [], - }, - api_client=api_client - ) - self.set_value_for_key_endpoint = _Endpoint( - settings={ - 'response_type': (file_type,), - 'auth': [ - 'token' - ], - 'endpoint_path': '/resources/stores/object/{store_id}/keys/{key_name}', - 'operation_id': 'set_value_for_key', - 'http_method': 'PUT', - 'servers': None, - }, - params_map={ - 'all': [ - 'store_id', - 'key_name', - 'body', - ], - 'required': [ - 'store_id', - 'key_name', - ], - 'nullable': [ - ], - 'enum': [ - ], - 'validation': [ - ] - }, - root_map={ - 'validations': { - }, - 'allowed_values': { - }, - 'openapi_types': { - 'store_id': - (str,), - 'key_name': - (str,), - 'body': - (file_type,), - }, - 'attribute_map': { - 'store_id': 'store_id', - 'key_name': 'key_name', - }, - 'location_map': { - 'store_id': 'path', - 'key_name': 'path', - 'body': 'body', - }, - 'collection_format_map': { - } - }, - headers_map={ - 'accept': [ - 'application/octet-stream' - ], - 'content_type': [ - 'application/octet-stream' - ] - }, - api_client=api_client - ) def create_store( self, @@ -551,88 +314,6 @@ def create_store( kwargs['_host_index'] = kwargs.get('_host_index') return self.create_store_endpoint.call_with_http_info(**kwargs) - def delete_key_from_store( - self, - store_id, - key_name, - **kwargs - ): - """Delete object store key. # noqa: E501 - - Delete a key from a customer store. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.delete_key_from_store(store_id, key_name, async_req=True) - >>> result = thread.get() - - Args: - store_id (str): - key_name (str): - - Keyword Args: - _return_http_data_only (bool): response data without head status - code and headers. Default is True. - _preload_content (bool): if False, the urllib3.HTTPResponse object - will be returned without reading/decoding response data. - Default is True. - _request_timeout (int/float/tuple): timeout setting for this request. If - one number provided, it will be total request timeout. It can also - be a pair (tuple) of (connection, read) timeouts. - Default is None. - _check_input_type (bool): specifies if type checking - should be done one the data sent to the server. - Default is True. - _check_return_type (bool): specifies if type checking - should be done one the data received from the server. - Default is True. - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - async_req (bool): execute request asynchronously - - Returns: - None - If the method is called asynchronously, returns the request - thread. - """ - kwargs['async_req'] = kwargs.get( - 'async_req', False - ) - kwargs['_return_http_data_only'] = kwargs.get( - '_return_http_data_only', True - ) - kwargs['_preload_content'] = kwargs.get( - '_preload_content', True - ) - kwargs['_request_timeout'] = kwargs.get( - '_request_timeout', None - ) - kwargs['_check_input_type'] = kwargs.get( - '_check_input_type', True - ) - kwargs['_check_return_type'] = kwargs.get( - '_check_return_type', True - ) - kwargs['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False - ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['store_id'] = \ - store_id - kwargs['key_name'] = \ - key_name - return self.delete_key_from_store_endpoint.call_with_http_info(**kwargs) - def delete_store( self, store_id, @@ -640,7 +321,7 @@ def delete_store( ): """Delete an object store. # noqa: E501 - An object store must be empty before it can be deleted. Deleting an object store that still contains keys will result in a 409 Conflict. # noqa: E501 + An object store must be empty before it can be deleted. Deleting an object store that still contains keys will result in a `409` (Conflict). # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -711,86 +392,6 @@ def delete_store( store_id return self.delete_store_endpoint.call_with_http_info(**kwargs) - def get_keys( - self, - store_id, - **kwargs - ): - """List object store keys. # noqa: E501 - - List all keys within an object store. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.get_keys(store_id, async_req=True) - >>> result = thread.get() - - Args: - store_id (str): - - Keyword Args: - cursor (str): [optional] - limit (int): [optional] if omitted the server will use the default value of 100 - _return_http_data_only (bool): response data without head status - code and headers. Default is True. - _preload_content (bool): if False, the urllib3.HTTPResponse object - will be returned without reading/decoding response data. - Default is True. - _request_timeout (int/float/tuple): timeout setting for this request. If - one number provided, it will be total request timeout. It can also - be a pair (tuple) of (connection, read) timeouts. - Default is None. - _check_input_type (bool): specifies if type checking - should be done one the data sent to the server. - Default is True. - _check_return_type (bool): specifies if type checking - should be done one the data received from the server. - Default is True. - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - async_req (bool): execute request asynchronously - - Returns: - KeyResponse - If the method is called asynchronously, returns the request - thread. - """ - kwargs['async_req'] = kwargs.get( - 'async_req', False - ) - kwargs['_return_http_data_only'] = kwargs.get( - '_return_http_data_only', True - ) - kwargs['_preload_content'] = kwargs.get( - '_preload_content', True - ) - kwargs['_request_timeout'] = kwargs.get( - '_request_timeout', None - ) - kwargs['_check_input_type'] = kwargs.get( - '_check_input_type', True - ) - kwargs['_check_return_type'] = kwargs.get( - '_check_return_type', True - ) - kwargs['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False - ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['store_id'] = \ - store_id - return self.get_keys_endpoint.call_with_http_info(**kwargs) - def get_store( self, store_id, @@ -914,7 +515,7 @@ def get_stores( async_req (bool): execute request asynchronously Returns: - GetStoresResponse + InlineResponse2001 If the method is called asynchronously, returns the request thread. """ @@ -944,168 +545,3 @@ def get_stores( kwargs['_host_index'] = kwargs.get('_host_index') return self.get_stores_endpoint.call_with_http_info(**kwargs) - def get_value_for_key( - self, - store_id, - key_name, - **kwargs - ): - """Get object store key value. # noqa: E501 - - Get the value associated with a key. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.get_value_for_key(store_id, key_name, async_req=True) - >>> result = thread.get() - - Args: - store_id (str): - key_name (str): - - Keyword Args: - _return_http_data_only (bool): response data without head status - code and headers. Default is True. - _preload_content (bool): if False, the urllib3.HTTPResponse object - will be returned without reading/decoding response data. - Default is True. - _request_timeout (int/float/tuple): timeout setting for this request. If - one number provided, it will be total request timeout. It can also - be a pair (tuple) of (connection, read) timeouts. - Default is None. - _check_input_type (bool): specifies if type checking - should be done one the data sent to the server. - Default is True. - _check_return_type (bool): specifies if type checking - should be done one the data received from the server. - Default is True. - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - async_req (bool): execute request asynchronously - - Returns: - file_type - If the method is called asynchronously, returns the request - thread. - """ - kwargs['async_req'] = kwargs.get( - 'async_req', False - ) - kwargs['_return_http_data_only'] = kwargs.get( - '_return_http_data_only', True - ) - kwargs['_preload_content'] = kwargs.get( - '_preload_content', True - ) - kwargs['_request_timeout'] = kwargs.get( - '_request_timeout', None - ) - kwargs['_check_input_type'] = kwargs.get( - '_check_input_type', True - ) - kwargs['_check_return_type'] = kwargs.get( - '_check_return_type', True - ) - kwargs['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False - ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['store_id'] = \ - store_id - kwargs['key_name'] = \ - key_name - return self.get_value_for_key_endpoint.call_with_http_info(**kwargs) - - def set_value_for_key( - self, - store_id, - key_name, - **kwargs - ): - """Insert object store key-value. # noqa: E501 - - Insert a new key-value pair into an object store. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.set_value_for_key(store_id, key_name, async_req=True) - >>> result = thread.get() - - Args: - store_id (str): - key_name (str): - - Keyword Args: - body (file_type): [optional] - _return_http_data_only (bool): response data without head status - code and headers. Default is True. - _preload_content (bool): if False, the urllib3.HTTPResponse object - will be returned without reading/decoding response data. - Default is True. - _request_timeout (int/float/tuple): timeout setting for this request. If - one number provided, it will be total request timeout. It can also - be a pair (tuple) of (connection, read) timeouts. - Default is None. - _check_input_type (bool): specifies if type checking - should be done one the data sent to the server. - Default is True. - _check_return_type (bool): specifies if type checking - should be done one the data received from the server. - Default is True. - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - async_req (bool): execute request asynchronously - - Returns: - file_type - If the method is called asynchronously, returns the request - thread. - """ - kwargs['async_req'] = kwargs.get( - 'async_req', False - ) - kwargs['_return_http_data_only'] = kwargs.get( - '_return_http_data_only', True - ) - kwargs['_preload_content'] = kwargs.get( - '_preload_content', True - ) - kwargs['_request_timeout'] = kwargs.get( - '_request_timeout', None - ) - kwargs['_check_input_type'] = kwargs.get( - '_check_input_type', True - ) - kwargs['_check_return_type'] = kwargs.get( - '_check_return_type', True - ) - kwargs['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False - ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['store_id'] = \ - store_id - kwargs['key_name'] = \ - key_name - return self.set_value_for_key_endpoint.call_with_http_info(**kwargs) - diff --git a/fastly/api/purge_api.py b/fastly/api/purge_api.py index 49d924c..d966790 100644 --- a/fastly/api/purge_api.py +++ b/fastly/api/purge_api.py @@ -89,7 +89,7 @@ def __init__(self, api_client=None): settings={ 'response_type': (PurgeResponse,), 'auth': [ - 'url_purge' + 'token' ], 'endpoint_path': '/purge/{cached_url}', 'operation_id': 'purge_single_url', diff --git a/fastly/api/resource_api.py b/fastly/api/resource_api.py index e2e74d4..d03f983 100644 --- a/fastly/api/resource_api.py +++ b/fastly/api/resource_api.py @@ -110,7 +110,7 @@ def __init__(self, api_client=None): 'auth': [ 'token' ], - 'endpoint_path': '/service/{service_id}/version/{version_id}/resource/{resource_id}', + 'endpoint_path': '/service/{service_id}/version/{version_id}/resource/{id}', 'operation_id': 'delete_resource', 'http_method': 'DELETE', 'servers': None, @@ -119,12 +119,12 @@ def __init__(self, api_client=None): 'all': [ 'service_id', 'version_id', - 'resource_id', + 'id', ], 'required': [ 'service_id', 'version_id', - 'resource_id', + 'id', ], 'nullable': [ ], @@ -143,18 +143,18 @@ def __init__(self, api_client=None): (str,), 'version_id': (int,), - 'resource_id': + 'id': (str,), }, 'attribute_map': { 'service_id': 'service_id', 'version_id': 'version_id', - 'resource_id': 'resource_id', + 'id': 'id', }, 'location_map': { 'service_id': 'path', 'version_id': 'path', - 'resource_id': 'path', + 'id': 'path', }, 'collection_format_map': { } @@ -173,7 +173,7 @@ def __init__(self, api_client=None): 'auth': [ 'token' ], - 'endpoint_path': '/service/{service_id}/version/{version_id}/resource/{resource_id}', + 'endpoint_path': '/service/{service_id}/version/{version_id}/resource/{id}', 'operation_id': 'get_resource', 'http_method': 'GET', 'servers': None, @@ -182,12 +182,12 @@ def __init__(self, api_client=None): 'all': [ 'service_id', 'version_id', - 'resource_id', + 'id', ], 'required': [ 'service_id', 'version_id', - 'resource_id', + 'id', ], 'nullable': [ ], @@ -206,18 +206,18 @@ def __init__(self, api_client=None): (str,), 'version_id': (int,), - 'resource_id': + 'id': (str,), }, 'attribute_map': { 'service_id': 'service_id', 'version_id': 'version_id', - 'resource_id': 'resource_id', + 'id': 'id', }, 'location_map': { 'service_id': 'path', 'version_id': 'path', - 'resource_id': 'path', + 'id': 'path', }, 'collection_format_map': { } @@ -293,7 +293,7 @@ def __init__(self, api_client=None): 'auth': [ 'token' ], - 'endpoint_path': '/service/{service_id}/version/{version_id}/resource/{resource_id}', + 'endpoint_path': '/service/{service_id}/version/{version_id}/resource/{id}', 'operation_id': 'update_resource', 'http_method': 'PUT', 'servers': None, @@ -302,13 +302,13 @@ def __init__(self, api_client=None): 'all': [ 'service_id', 'version_id', - 'resource_id', + 'id', 'name', ], 'required': [ 'service_id', 'version_id', - 'resource_id', + 'id', ], 'nullable': [ ], @@ -327,7 +327,7 @@ def __init__(self, api_client=None): (str,), 'version_id': (int,), - 'resource_id': + 'id': (str,), 'name': (str,), @@ -335,13 +335,13 @@ def __init__(self, api_client=None): 'attribute_map': { 'service_id': 'service_id', 'version_id': 'version_id', - 'resource_id': 'resource_id', + 'id': 'id', 'name': 'name', }, 'location_map': { 'service_id': 'path', 'version_id': 'path', - 'resource_id': 'path', + 'id': 'path', 'name': 'form', }, 'collection_format_map': { @@ -446,7 +446,7 @@ def delete_resource( self, service_id, version_id, - resource_id, + id, **kwargs ): """Delete a resource # noqa: E501 @@ -455,13 +455,13 @@ def delete_resource( This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_resource(service_id, version_id, resource_id, async_req=True) + >>> thread = api.delete_resource(service_id, version_id, id, async_req=True) >>> result = thread.get() Args: service_id (str): Alphanumeric string identifying the service. version_id (int): Integer identifying a service version. - resource_id (str): An alphanumeric string identifying the resource. + id (str): An alphanumeric string identifying the resource link. Keyword Args: _return_http_data_only (bool): response data without head status @@ -524,15 +524,15 @@ def delete_resource( service_id kwargs['version_id'] = \ version_id - kwargs['resource_id'] = \ - resource_id + kwargs['id'] = \ + id return self.delete_resource_endpoint.call_with_http_info(**kwargs) def get_resource( self, service_id, version_id, - resource_id, + id, **kwargs ): """Display a resource # noqa: E501 @@ -541,13 +541,13 @@ def get_resource( This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_resource(service_id, version_id, resource_id, async_req=True) + >>> thread = api.get_resource(service_id, version_id, id, async_req=True) >>> result = thread.get() Args: service_id (str): Alphanumeric string identifying the service. version_id (int): Integer identifying a service version. - resource_id (str): An alphanumeric string identifying the resource. + id (str): An alphanumeric string identifying the resource link. Keyword Args: _return_http_data_only (bool): response data without head status @@ -610,8 +610,8 @@ def get_resource( service_id kwargs['version_id'] = \ version_id - kwargs['resource_id'] = \ - resource_id + kwargs['id'] = \ + id return self.get_resource_endpoint.call_with_http_info(**kwargs) def list_resources( @@ -700,7 +700,7 @@ def update_resource( self, service_id, version_id, - resource_id, + id, **kwargs ): """Update a resource # noqa: E501 @@ -709,13 +709,13 @@ def update_resource( This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_resource(service_id, version_id, resource_id, async_req=True) + >>> thread = api.update_resource(service_id, version_id, id, async_req=True) >>> result = thread.get() Args: service_id (str): Alphanumeric string identifying the service. version_id (int): Integer identifying a service version. - resource_id (str): An alphanumeric string identifying the resource. + id (str): An alphanumeric string identifying the resource link. Keyword Args: name (str): The name of the resource.. [optional] @@ -779,7 +779,7 @@ def update_resource( service_id kwargs['version_id'] = \ version_id - kwargs['resource_id'] = \ - resource_id + kwargs['id'] = \ + id return self.update_resource_endpoint.call_with_http_info(**kwargs) diff --git a/fastly/api/tls_subscriptions_api.py b/fastly/api/tls_subscriptions_api.py index f95ee75..b274689 100644 --- a/fastly/api/tls_subscriptions_api.py +++ b/fastly/api/tls_subscriptions_api.py @@ -889,7 +889,7 @@ def list_tls_subs( Keyword Args: - filter_state (str): Limit the returned subscriptions by state. Valid values are `pending`, `processing`, `issued`, and `renewing`. Accepts parameters: `not` (e.g., `filter[state][not]=renewing`). . [optional] + filter_state (str): Limit the returned subscriptions by state. Valid values are `pending`, `processing`, `issued`, `renewing`, and `failed`. Accepts parameters: `not` (e.g., `filter[state][not]=renewing`). . [optional] filter_tls_domains_id (str): Limit the returned subscriptions to those that include the specific domain.. [optional] filter_has_active_order (bool): Limit the returned subscriptions to those that have currently active orders. Permitted values: `true`. . [optional] include (str): Include related objects. Optional, comma-separated values. Permitted values: `tls_authorizations` and `tls_authorizations.globalsign_email_challenge`. . [optional] @@ -961,7 +961,7 @@ def patch_tls_sub( ): """Update a TLS subscription # noqa: E501 - Change the TLS domains or common name associated with this subscription, or update the TLS configuration for this set of domains. # noqa: E501 + Change the TLS domains or common name associated with this subscription, update the TLS configuration for this set of domains, or retry a subscription with state `failed` by setting the state to `retry`. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/fastly/api_client.py b/fastly/api_client.py index a489fdf..70bcb17 100644 --- a/fastly/api_client.py +++ b/fastly/api_client.py @@ -79,7 +79,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'fastly-py/v1.1.0' + self.user_agent = 'fastly-py/1.2.0' # The last observed value of http header Fastly-RateLimit-Remaining self.rate_limit_remaining = DEFAULT_RATELIMIT diff --git a/fastly/configuration.py b/fastly/configuration.py index 0b223da..e5f06f5 100644 --- a/fastly/configuration.py +++ b/fastly/configuration.py @@ -446,7 +446,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 1.0.0\n"\ - "SDK Package Version: v1.1.0".\ + "SDK Package Version: 1.2.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/fastly/model/backend.py b/fastly/model/backend.py index c610bb6..9db1c6a 100644 --- a/fastly/model/backend.py +++ b/fastly/model/backend.py @@ -201,7 +201,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 hostname (str, none_type): The hostname of the backend. May be used as an alternative to `address` to set the backend location.. [optional] # noqa: E501 ipv4 (str, none_type): IPv4 address of the backend. May be used as an alternative to `address` to set the backend location.. [optional] # noqa: E501 ipv6 (str, none_type): IPv6 address of the backend. May be used as an alternative to `address` to set the backend location.. [optional] # noqa: E501 - keepalive_time (int, none_type): How long to keep a persistent connection to the backend between requests.. [optional] # noqa: E501 + keepalive_time (int, none_type): How long in seconds to keep a persistent connection to the backend between requests.. [optional] # noqa: E501 max_conn (int): Maximum number of concurrent connections this backend will accept.. [optional] # noqa: E501 max_tls_version (str, none_type): Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.. [optional] # noqa: E501 min_tls_version (str, none_type): Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.. [optional] # noqa: E501 @@ -312,7 +312,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 hostname (str, none_type): The hostname of the backend. May be used as an alternative to `address` to set the backend location.. [optional] # noqa: E501 ipv4 (str, none_type): IPv4 address of the backend. May be used as an alternative to `address` to set the backend location.. [optional] # noqa: E501 ipv6 (str, none_type): IPv6 address of the backend. May be used as an alternative to `address` to set the backend location.. [optional] # noqa: E501 - keepalive_time (int, none_type): How long to keep a persistent connection to the backend between requests.. [optional] # noqa: E501 + keepalive_time (int, none_type): How long in seconds to keep a persistent connection to the backend between requests.. [optional] # noqa: E501 max_conn (int): Maximum number of concurrent connections this backend will accept.. [optional] # noqa: E501 max_tls_version (str, none_type): Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.. [optional] # noqa: E501 min_tls_version (str, none_type): Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.. [optional] # noqa: E501 diff --git a/fastly/model/backend_response.py b/fastly/model/backend_response.py index 66fddbf..e47bea4 100644 --- a/fastly/model/backend_response.py +++ b/fastly/model/backend_response.py @@ -229,7 +229,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 hostname (str, none_type): The hostname of the backend. May be used as an alternative to `address` to set the backend location.. [optional] # noqa: E501 ipv4 (str, none_type): IPv4 address of the backend. May be used as an alternative to `address` to set the backend location.. [optional] # noqa: E501 ipv6 (str, none_type): IPv6 address of the backend. May be used as an alternative to `address` to set the backend location.. [optional] # noqa: E501 - keepalive_time (int, none_type): How long to keep a persistent connection to the backend between requests.. [optional] # noqa: E501 + keepalive_time (int, none_type): How long in seconds to keep a persistent connection to the backend between requests.. [optional] # noqa: E501 max_conn (int): Maximum number of concurrent connections this backend will accept.. [optional] # noqa: E501 max_tls_version (str, none_type): Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.. [optional] # noqa: E501 min_tls_version (str, none_type): Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.. [optional] # noqa: E501 @@ -364,7 +364,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 hostname (str, none_type): The hostname of the backend. May be used as an alternative to `address` to set the backend location.. [optional] # noqa: E501 ipv4 (str, none_type): IPv4 address of the backend. May be used as an alternative to `address` to set the backend location.. [optional] # noqa: E501 ipv6 (str, none_type): IPv6 address of the backend. May be used as an alternative to `address` to set the backend location.. [optional] # noqa: E501 - keepalive_time (int, none_type): How long to keep a persistent connection to the backend between requests.. [optional] # noqa: E501 + keepalive_time (int, none_type): How long in seconds to keep a persistent connection to the backend between requests.. [optional] # noqa: E501 max_conn (int): Maximum number of concurrent connections this backend will accept.. [optional] # noqa: E501 max_tls_version (str, none_type): Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.. [optional] # noqa: E501 min_tls_version (str, none_type): Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.. [optional] # noqa: E501 diff --git a/fastly/model/enabled_product.py b/fastly/model/enabled_product_response.py similarity index 89% rename from fastly/model/enabled_product.py rename to fastly/model/enabled_product_response.py index 63fc38e..f7de3a9 100644 --- a/fastly/model/enabled_product.py +++ b/fastly/model/enabled_product_response.py @@ -30,13 +30,15 @@ def lazy_import(): - from fastly.model.enabled_product_links import EnabledProductLinks - from fastly.model.enabled_product_product import EnabledProductProduct - globals()['EnabledProductLinks'] = EnabledProductLinks - globals()['EnabledProductProduct'] = EnabledProductProduct + from fastly.model.enabled_product_response_links import EnabledProductResponseLinks + from fastly.model.enabled_product_response_product import EnabledProductResponseProduct + from fastly.model.enabled_product_response_service import EnabledProductResponseService + globals()['EnabledProductResponseLinks'] = EnabledProductResponseLinks + globals()['EnabledProductResponseProduct'] = EnabledProductResponseProduct + globals()['EnabledProductResponseService'] = EnabledProductResponseService -class EnabledProduct(ModelNormal): +class EnabledProductResponse(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -87,9 +89,9 @@ def openapi_types(): """ lazy_import() return { - 'product': (EnabledProductProduct,), # noqa: E501 - 'service': (EnabledProductProduct,), # noqa: E501 - 'links': (EnabledProductLinks,), # noqa: E501 + 'product': (EnabledProductResponseProduct,), # noqa: E501 + 'service': (EnabledProductResponseService,), # noqa: E501 + 'links': (EnabledProductResponseLinks,), # noqa: E501 } @cached_property @@ -111,7 +113,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """EnabledProduct - a model defined in OpenAPI + """EnabledProductResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -144,9 +146,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - product (EnabledProductProduct): [optional] # noqa: E501 - service (EnabledProductProduct): [optional] # noqa: E501 - links (EnabledProductLinks): [optional] # noqa: E501 + product (EnabledProductResponseProduct): [optional] # noqa: E501 + service (EnabledProductResponseService): [optional] # noqa: E501 + links (EnabledProductResponseLinks): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -195,7 +197,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """EnabledProduct - a model defined in OpenAPI + """EnabledProductResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -228,9 +230,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - product (EnabledProductProduct): [optional] # noqa: E501 - service (EnabledProductProduct): [optional] # noqa: E501 - links (EnabledProductLinks): [optional] # noqa: E501 + product (EnabledProductResponseProduct): [optional] # noqa: E501 + service (EnabledProductResponseService): [optional] # noqa: E501 + links (EnabledProductResponseLinks): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/fastly/model/enabled_product_links.py b/fastly/model/enabled_product_response_links.py similarity index 95% rename from fastly/model/enabled_product_links.py rename to fastly/model/enabled_product_response_links.py index ed46320..10b9ae0 100644 --- a/fastly/model/enabled_product_links.py +++ b/fastly/model/enabled_product_response_links.py @@ -30,7 +30,7 @@ -class EnabledProductLinks(ModelNormal): +class EnabledProductResponseLinks(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -101,7 +101,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """EnabledProductLinks - a model defined in OpenAPI + """EnabledProductResponseLinks - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -134,8 +134,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - _self (str): [optional] # noqa: E501 - service (str): [optional] # noqa: E501 + _self (str): Location of resource. [optional] # noqa: E501 + service (str): Location of the service resource. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -184,7 +184,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """EnabledProductLinks - a model defined in OpenAPI + """EnabledProductResponseLinks - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -217,8 +217,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - _self (str): [optional] # noqa: E501 - service (str): [optional] # noqa: E501 + _self (str): Location of resource. [optional] # noqa: E501 + service (str): Location of the service resource. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/fastly/model/enabled_product_product.py b/fastly/model/enabled_product_response_product.py similarity index 96% rename from fastly/model/enabled_product_product.py rename to fastly/model/enabled_product_response_product.py index 7898658..1366fa1 100644 --- a/fastly/model/enabled_product_product.py +++ b/fastly/model/enabled_product_response_product.py @@ -30,7 +30,7 @@ -class EnabledProductProduct(ModelNormal): +class EnabledProductResponseProduct(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -101,7 +101,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """EnabledProductProduct - a model defined in OpenAPI + """EnabledProductResponseProduct - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -134,8 +134,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - id (str): [optional] # noqa: E501 - object (str): [optional] # noqa: E501 + id (str): Product identifier. [optional] # noqa: E501 + object (str): Name of the object. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -184,7 +184,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """EnabledProductProduct - a model defined in OpenAPI + """EnabledProductResponseProduct - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -217,8 +217,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - id (str): [optional] # noqa: E501 - object (str): [optional] # noqa: E501 + id (str): Product identifier. [optional] # noqa: E501 + object (str): Name of the object. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/fastly/model/key_response.py b/fastly/model/enabled_product_response_service.py similarity index 93% rename from fastly/model/key_response.py rename to fastly/model/enabled_product_response_service.py index b1c432b..d3be4f0 100644 --- a/fastly/model/key_response.py +++ b/fastly/model/enabled_product_response_service.py @@ -29,12 +29,8 @@ from fastly.exceptions import ApiAttributeError -def lazy_import(): - from fastly.model.get_stores_response_meta import GetStoresResponseMeta - globals()['GetStoresResponseMeta'] = GetStoresResponseMeta - -class KeyResponse(ModelNormal): +class EnabledProductResponseService(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -68,7 +64,6 @@ def additional_properties_type(): This must be a method because a model may have properties that are of type self, this must run after the class is loaded """ - lazy_import() return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 _nullable = False @@ -83,10 +78,9 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ - lazy_import() return { - 'data': ([str],), # noqa: E501 - 'meta': (GetStoresResponseMeta,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'object': (str,), # noqa: E501 } @cached_property @@ -95,8 +89,8 @@ def discriminator(): attribute_map = { - 'data': 'data', # noqa: E501 - 'meta': 'meta', # noqa: E501 + 'id': 'id', # noqa: E501 + 'object': 'object', # noqa: E501 } read_only_vars = { @@ -107,7 +101,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """KeyResponse - a model defined in OpenAPI + """EnabledProductResponseService - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -140,8 +134,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - data ([str]): [optional] # noqa: E501 - meta (GetStoresResponseMeta): [optional] # noqa: E501 + id (str): Service identifier. [optional] # noqa: E501 + object (str): Name of the object. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -190,7 +184,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """KeyResponse - a model defined in OpenAPI + """EnabledProductResponseService - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -223,8 +217,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - data ([str]): [optional] # noqa: E501 - meta (GetStoresResponseMeta): [optional] # noqa: E501 + id (str): Service identifier. [optional] # noqa: E501 + object (str): Name of the object. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/fastly/model/get_stores_response.py b/fastly/model/inline_response2001.py similarity index 95% rename from fastly/model/get_stores_response.py rename to fastly/model/inline_response2001.py index 8a64f4e..84646af 100644 --- a/fastly/model/get_stores_response.py +++ b/fastly/model/inline_response2001.py @@ -30,13 +30,13 @@ def lazy_import(): - from fastly.model.get_stores_response_meta import GetStoresResponseMeta + from fastly.model.inline_response2001_meta import InlineResponse2001Meta from fastly.model.store_response import StoreResponse - globals()['GetStoresResponseMeta'] = GetStoresResponseMeta + globals()['InlineResponse2001Meta'] = InlineResponse2001Meta globals()['StoreResponse'] = StoreResponse -class GetStoresResponse(ModelNormal): +class InlineResponse2001(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -88,7 +88,7 @@ def openapi_types(): lazy_import() return { 'data': ([StoreResponse],), # noqa: E501 - 'meta': (GetStoresResponseMeta,), # noqa: E501 + 'meta': (InlineResponse2001Meta,), # noqa: E501 } @cached_property @@ -109,7 +109,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """GetStoresResponse - a model defined in OpenAPI + """InlineResponse2001 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -143,7 +143,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([StoreResponse]): [optional] # noqa: E501 - meta (GetStoresResponseMeta): [optional] # noqa: E501 + meta (InlineResponse2001Meta): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -192,7 +192,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """GetStoresResponse - a model defined in OpenAPI + """InlineResponse2001 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -226,7 +226,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([StoreResponse]): [optional] # noqa: E501 - meta (GetStoresResponseMeta): [optional] # noqa: E501 + meta (InlineResponse2001Meta): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/fastly/model/get_stores_response_meta.py b/fastly/model/inline_response2001_meta.py similarity index 98% rename from fastly/model/get_stores_response_meta.py rename to fastly/model/inline_response2001_meta.py index 821fab9..779ef31 100644 --- a/fastly/model/get_stores_response_meta.py +++ b/fastly/model/inline_response2001_meta.py @@ -30,7 +30,7 @@ -class GetStoresResponseMeta(ModelNormal): +class InlineResponse2001Meta(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -101,7 +101,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """GetStoresResponseMeta - a model defined in OpenAPI + """InlineResponse2001Meta - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -184,7 +184,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """GetStoresResponseMeta - a model defined in OpenAPI + """InlineResponse2001Meta - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/fastly/model/pop.py b/fastly/model/pop.py index 147b79c..d78848a 100644 --- a/fastly/model/pop.py +++ b/fastly/model/pop.py @@ -57,6 +57,46 @@ class Pop(ModelNormal): """ allowed_values = { + ('region',): { + 'APAC': "APAC", + 'ASIA': "Asia", + 'AF-WEST': "AF-West", + 'EU-CENTRAL': "EU-Central", + 'EU-EAST': "EU-East", + 'EU-WEST': "EU-West", + 'MIDDLE-EAST': "Middle-East", + 'NORTH-AMERICA': "North-America", + 'SA-SOUTH': "SA-South", + 'SA-EAST': "SA-East", + 'SA-WEST': "SA-West", + 'SA-NORTH': "SA-North", + 'SOUTH-AFRICA': "South-Africa", + 'SOUTH-AMERICA': "South-America", + 'US-CENTRAL': "US-Central", + 'US-EAST': "US-East", + 'US-WEST': "US-West", + 'ASIA-SOUTH': "Asia-South", + }, + ('stats_region',): { + 'SOUTHAMERICA_STD': "southamerica_std", + 'AFRICA_STD': "africa_std", + 'ANZAC': "anzac", + 'ASIA': "asia", + 'EUROPE': "europe", + 'USA': "usa", + 'ASIA_INDIA': "asia_india", + 'ASIA_SOUTHKOREA': "asia_southkorea", + }, + ('billing_region',): { + 'AFRICA': "Africa", + 'AUSTRALIA': "Australia", + 'ASIA': "Asia", + 'EUROPE': "Europe", + 'INDIA': "India", + 'NORTH_AMERICA': "North America", + 'SOUTH_KOREA': "South Korea", + 'SOUTH_AMERICA': "South America", + }, } validations = { @@ -88,6 +128,9 @@ def openapi_types(): 'code': (str,), # noqa: E501 'name': (str,), # noqa: E501 'group': (str,), # noqa: E501 + 'region': (str,), # noqa: E501 + 'stats_region': (str,), # noqa: E501 + 'billing_region': (str,), # noqa: E501 'coordinates': (PopCoordinates,), # noqa: E501 'shield': (str,), # noqa: E501 } @@ -101,6 +144,9 @@ def discriminator(): 'code': 'code', # noqa: E501 'name': 'name', # noqa: E501 'group': 'group', # noqa: E501 + 'region': 'region', # noqa: E501 + 'stats_region': 'stats_region', # noqa: E501 + 'billing_region': 'billing_region', # noqa: E501 'coordinates': 'coordinates', # noqa: E501 'shield': 'shield', # noqa: E501 } @@ -112,9 +158,17 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, code, name, group, region, stats_region, billing_region, *args, **kwargs): # noqa: E501 """Pop - a model defined in OpenAPI + Args: + code (str): the three-letter code for the [POP](https://developer.fastly.com/learning/concepts/pop/) + name (str): the name of the POP + group (str): + region (str): + stats_region (str): the region used for stats reporting + billing_region (str): the region used for billing + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -146,11 +200,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - code (str): [optional] # noqa: E501 - name (str): [optional] # noqa: E501 - group (str): [optional] # noqa: E501 coordinates (PopCoordinates): [optional] # noqa: E501 - shield (str): [optional] # noqa: E501 + shield (str): the name of the [shield code](https://developer.fastly.com/learning/concepts/shielding/#choosing-a-shield-location) if this POP is suitable for shielding. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -178,6 +229,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.code = code + self.name = name + self.group = group + self.region = region + self.stats_region = stats_region + self.billing_region = billing_region for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -198,9 +255,17 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, code, name, group, region, stats_region, billing_region, *args, **kwargs): # noqa: E501 """Pop - a model defined in OpenAPI + Args: + code (str): the three-letter code for the [POP](https://developer.fastly.com/learning/concepts/pop/) + name (str): the name of the POP + group (str): + region (str): + stats_region (str): the region used for stats reporting + billing_region (str): the region used for billing + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -232,11 +297,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - code (str): [optional] # noqa: E501 - name (str): [optional] # noqa: E501 - group (str): [optional] # noqa: E501 coordinates (PopCoordinates): [optional] # noqa: E501 - shield (str): [optional] # noqa: E501 + shield (str): the name of the [shield code](https://developer.fastly.com/learning/concepts/shielding/#choosing-a-shield-location) if this POP is suitable for shielding. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -262,6 +324,12 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.code = code + self.name = name + self.group = group + self.region = region + self.stats_region = stats_region + self.billing_region = billing_region for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/fastly/model/pop_coordinates.py b/fastly/model/pop_coordinates.py index b26a789..46c357a 100644 --- a/fastly/model/pop_coordinates.py +++ b/fastly/model/pop_coordinates.py @@ -79,8 +79,6 @@ def openapi_types(): and the value is attribute type. """ return { - 'x': (float,), # noqa: E501 - 'y': (float,), # noqa: E501 'latitude': (float,), # noqa: E501 'longitude': (float,), # noqa: E501 } @@ -91,8 +89,6 @@ def discriminator(): attribute_map = { - 'x': 'x', # noqa: E501 - 'y': 'y', # noqa: E501 'latitude': 'latitude', # noqa: E501 'longitude': 'longitude', # noqa: E501 } @@ -104,9 +100,13 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, latitude, longitude, *args, **kwargs): # noqa: E501 """PopCoordinates - a model defined in OpenAPI + Args: + latitude (float): + longitude (float): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -138,10 +138,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - x (float): [optional] # noqa: E501 - y (float): [optional] # noqa: E501 - latitude (float): [optional] # noqa: E501 - longitude (float): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -169,6 +165,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.latitude = latitude + self.longitude = longitude for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -189,9 +187,13 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, latitude, longitude, *args, **kwargs): # noqa: E501 """PopCoordinates - a model defined in OpenAPI + Args: + latitude (float): + longitude (float): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -223,10 +225,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - x (float): [optional] # noqa: E501 - y (float): [optional] # noqa: E501 - latitude (float): [optional] # noqa: E501 - longitude (float): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -252,6 +250,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.latitude = latitude + self.longitude = longitude for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/fastly/model/realtime_measurements.py b/fastly/model/realtime_measurements.py index 77b1bae..9218830 100644 --- a/fastly/model/realtime_measurements.py +++ b/fastly/model/realtime_measurements.py @@ -277,6 +277,8 @@ def openapi_types(): 'websocket_resp_body_bytes': (int,), # noqa: E501 'fanout_recv_publishes': (int,), # noqa: E501 'fanout_send_publishes': (int,), # noqa: E501 + 'object_store_class_a_operations': (int,), # noqa: E501 + 'object_store_class_b_operations': (int,), # noqa: E501 'object_store_read_requests': (int,), # noqa: E501 'object_store_write_requests': (int,), # noqa: E501 'fanout_req_header_bytes': (int,), # noqa: E501 @@ -494,6 +496,8 @@ def discriminator(): 'websocket_resp_body_bytes': 'websocket_resp_body_bytes', # noqa: E501 'fanout_recv_publishes': 'fanout_recv_publishes', # noqa: E501 'fanout_send_publishes': 'fanout_send_publishes', # noqa: E501 + 'object_store_class_a_operations': 'object_store_class_a_operations', # noqa: E501 + 'object_store_class_b_operations': 'object_store_class_b_operations', # noqa: E501 'object_store_read_requests': 'object_store_read_requests', # noqa: E501 'object_store_write_requests': 'object_store_write_requests', # noqa: E501 'fanout_req_header_bytes': 'fanout_req_header_bytes', # noqa: E501 @@ -746,8 +750,10 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 websocket_resp_body_bytes (int): Total message content bytes sent to end users over passthrough WebSocket connections.. [optional] # noqa: E501 fanout_recv_publishes (int): Total published messages received from the publish API endpoint.. [optional] # noqa: E501 fanout_send_publishes (int): Total published messages sent to end users.. [optional] # noqa: E501 - object_store_read_requests (int): The total number of reads received for the object store.. [optional] # noqa: E501 - object_store_write_requests (int): The total number of writes received for the object store.. [optional] # noqa: E501 + object_store_class_a_operations (int): The total number of class a operations for the object store.. [optional] # noqa: E501 + object_store_class_b_operations (int): The total number of class b operations for the object store.. [optional] # noqa: E501 + object_store_read_requests (int): Use object_store_class_b_operations.. [optional] # noqa: E501 + object_store_write_requests (int): Use object_store_class_a_operations.. [optional] # noqa: E501 fanout_req_header_bytes (int): Total header bytes received from end users over Fanout connections.. [optional] # noqa: E501 fanout_req_body_bytes (int): Total body or message content bytes received from end users over Fanout connections.. [optional] # noqa: E501 fanout_resp_header_bytes (int): Total header bytes sent to end users over Fanout connections.. [optional] # noqa: E501 @@ -1036,8 +1042,10 @@ def __init__(self, *args, **kwargs): # noqa: E501 websocket_resp_body_bytes (int): Total message content bytes sent to end users over passthrough WebSocket connections.. [optional] # noqa: E501 fanout_recv_publishes (int): Total published messages received from the publish API endpoint.. [optional] # noqa: E501 fanout_send_publishes (int): Total published messages sent to end users.. [optional] # noqa: E501 - object_store_read_requests (int): The total number of reads received for the object store.. [optional] # noqa: E501 - object_store_write_requests (int): The total number of writes received for the object store.. [optional] # noqa: E501 + object_store_class_a_operations (int): The total number of class a operations for the object store.. [optional] # noqa: E501 + object_store_class_b_operations (int): The total number of class b operations for the object store.. [optional] # noqa: E501 + object_store_read_requests (int): Use object_store_class_b_operations.. [optional] # noqa: E501 + object_store_write_requests (int): Use object_store_class_a_operations.. [optional] # noqa: E501 fanout_req_header_bytes (int): Total header bytes received from end users over Fanout connections.. [optional] # noqa: E501 fanout_req_body_bytes (int): Total body or message content bytes received from end users over Fanout connections.. [optional] # noqa: E501 fanout_resp_header_bytes (int): Total header bytes sent to end users over Fanout connections.. [optional] # noqa: E501 diff --git a/fastly/model/resource_response.py b/fastly/model/resource_response.py index c33563f..f344a4f 100644 --- a/fastly/model/resource_response.py +++ b/fastly/model/resource_response.py @@ -168,7 +168,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 name (str): The name of the resource.. [optional] # noqa: E501 resource_id (str): The ID of the linked resource.. [optional] # noqa: E501 - id (str): An alphanumeric string identifying the resource.. [optional] # noqa: E501 + id (str): An alphanumeric string identifying the resource link.. [optional] # noqa: E501 href (str): The path to the resource.. [optional] # noqa: E501 service_id (str): Alphanumeric string identifying the service.. [optional] # noqa: E501 version (int): Integer identifying a service version.. [optional] # noqa: E501 @@ -277,7 +277,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 name (str): The name of the resource.. [optional] # noqa: E501 resource_id (str): The ID of the linked resource.. [optional] # noqa: E501 - id (str): An alphanumeric string identifying the resource.. [optional] # noqa: E501 + id (str): An alphanumeric string identifying the resource link.. [optional] # noqa: E501 href (str): The path to the resource.. [optional] # noqa: E501 service_id (str): Alphanumeric string identifying the service.. [optional] # noqa: E501 version (int): Integer identifying a service version.. [optional] # noqa: E501 diff --git a/fastly/model/resource_response_all_of.py b/fastly/model/resource_response_all_of.py index 2d7232a..a31f17c 100644 --- a/fastly/model/resource_response_all_of.py +++ b/fastly/model/resource_response_all_of.py @@ -146,7 +146,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - id (str): An alphanumeric string identifying the resource.. [optional] # noqa: E501 + id (str): An alphanumeric string identifying the resource link.. [optional] # noqa: E501 href (str): The path to the resource.. [optional] # noqa: E501 service_id (str): Alphanumeric string identifying the service.. [optional] # noqa: E501 version (int): Integer identifying a service version.. [optional] # noqa: E501 @@ -232,7 +232,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - id (str): An alphanumeric string identifying the resource.. [optional] # noqa: E501 + id (str): An alphanumeric string identifying the resource link.. [optional] # noqa: E501 href (str): The path to the resource.. [optional] # noqa: E501 service_id (str): Alphanumeric string identifying the service.. [optional] # noqa: E501 version (int): Integer identifying a service version.. [optional] # noqa: E501 diff --git a/fastly/model/results.py b/fastly/model/results.py index e5419f8..98f97e5 100644 --- a/fastly/model/results.py +++ b/fastly/model/results.py @@ -275,6 +275,8 @@ def openapi_types(): 'websocket_conn_time_ms': (int,), # noqa: E501 'fanout_recv_publishes': (int,), # noqa: E501 'fanout_send_publishes': (int,), # noqa: E501 + 'object_store_class_a_operations': (int,), # noqa: E501 + 'object_store_class_b_operations': (int,), # noqa: E501 'object_store_read_requests': (int,), # noqa: E501 'object_store_write_requests': (int,), # noqa: E501 'fanout_req_header_bytes': (int,), # noqa: E501 @@ -490,6 +492,8 @@ def discriminator(): 'websocket_conn_time_ms': 'websocket_conn_time_ms', # noqa: E501 'fanout_recv_publishes': 'fanout_recv_publishes', # noqa: E501 'fanout_send_publishes': 'fanout_send_publishes', # noqa: E501 + 'object_store_class_a_operations': 'object_store_class_a_operations', # noqa: E501 + 'object_store_class_b_operations': 'object_store_class_b_operations', # noqa: E501 'object_store_read_requests': 'object_store_read_requests', # noqa: E501 'object_store_write_requests': 'object_store_write_requests', # noqa: E501 'fanout_req_header_bytes': 'fanout_req_header_bytes', # noqa: E501 @@ -554,7 +558,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 errors (int): Number of cache errors.. [optional] # noqa: E501 restarts (int): Number of restarts performed.. [optional] # noqa: E501 hit_ratio (float, none_type): Ratio of cache hits to cache misses (between 0 and 1).. [optional] # noqa: E501 - bandwidth (int): Total bytes delivered (`resp_header_bytes` + `resp_body_bytes` + `bereq_header_bytes` + `bereq_body_bytes` + `compute_resp_header_bytes` + `compute_resp_body_bytes` + `compute_bereq_header_bytes` + `compute_bereq_body_bytes` + `websocket_resp_header_bytes` + `websocket_resp_body_bytes` + `websocket_bereq_header_bytes` + `websocket_bereq_body_bytes`).. [optional] # noqa: E501 + bandwidth (int): Total bytes delivered (`resp_header_bytes` + `resp_body_bytes` + `bereq_header_bytes` + `bereq_body_bytes` + `compute_resp_header_bytes` + `compute_resp_body_bytes` + `compute_bereq_header_bytes` + `compute_bereq_body_bytes` + `websocket_resp_header_bytes` + `websocket_resp_body_bytes` + `websocket_bereq_header_bytes` + `websocket_bereq_body_bytes` + `fanout_resp_header_bytes` + `fanout_resp_body_bytes` + `fanout_bereq_header_bytes` + `fanout_bereq_body_bytes`).. [optional] # noqa: E501 body_size (int): Total body bytes delivered (alias for resp_body_bytes).. [optional] # noqa: E501 header_size (int): Total header bytes delivered (alias for resp_header_bytes).. [optional] # noqa: E501 req_body_bytes (int): Total body bytes received.. [optional] # noqa: E501 @@ -740,8 +744,10 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 websocket_conn_time_ms (int): Total duration of passthrough WebSocket connections with end users.. [optional] # noqa: E501 fanout_recv_publishes (int): Total published messages received from the publish API endpoint.. [optional] # noqa: E501 fanout_send_publishes (int): Total published messages sent to end users.. [optional] # noqa: E501 - object_store_read_requests (int): The total number of reads received for the object store.. [optional] # noqa: E501 - object_store_write_requests (int): The total number of writes received for the object store.. [optional] # noqa: E501 + object_store_class_a_operations (int): The total number of class a operations for the object store.. [optional] # noqa: E501 + object_store_class_b_operations (int): The total number of class b operations for the object store.. [optional] # noqa: E501 + object_store_read_requests (int): Use object_store_class_b_operations.. [optional] # noqa: E501 + object_store_write_requests (int): Use object_store_class_a_operations.. [optional] # noqa: E501 fanout_req_header_bytes (int): Total header bytes received from end users over Fanout connections.. [optional] # noqa: E501 fanout_req_body_bytes (int): Total body or message content bytes received from end users over Fanout connections.. [optional] # noqa: E501 fanout_resp_header_bytes (int): Total header bytes sent to end users over Fanout connections.. [optional] # noqa: E501 @@ -842,7 +848,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 errors (int): Number of cache errors.. [optional] # noqa: E501 restarts (int): Number of restarts performed.. [optional] # noqa: E501 hit_ratio (float, none_type): Ratio of cache hits to cache misses (between 0 and 1).. [optional] # noqa: E501 - bandwidth (int): Total bytes delivered (`resp_header_bytes` + `resp_body_bytes` + `bereq_header_bytes` + `bereq_body_bytes` + `compute_resp_header_bytes` + `compute_resp_body_bytes` + `compute_bereq_header_bytes` + `compute_bereq_body_bytes` + `websocket_resp_header_bytes` + `websocket_resp_body_bytes` + `websocket_bereq_header_bytes` + `websocket_bereq_body_bytes`).. [optional] # noqa: E501 + bandwidth (int): Total bytes delivered (`resp_header_bytes` + `resp_body_bytes` + `bereq_header_bytes` + `bereq_body_bytes` + `compute_resp_header_bytes` + `compute_resp_body_bytes` + `compute_bereq_header_bytes` + `compute_bereq_body_bytes` + `websocket_resp_header_bytes` + `websocket_resp_body_bytes` + `websocket_bereq_header_bytes` + `websocket_bereq_body_bytes` + `fanout_resp_header_bytes` + `fanout_resp_body_bytes` + `fanout_bereq_header_bytes` + `fanout_bereq_body_bytes`).. [optional] # noqa: E501 body_size (int): Total body bytes delivered (alias for resp_body_bytes).. [optional] # noqa: E501 header_size (int): Total header bytes delivered (alias for resp_header_bytes).. [optional] # noqa: E501 req_body_bytes (int): Total body bytes received.. [optional] # noqa: E501 @@ -1028,8 +1034,10 @@ def __init__(self, *args, **kwargs): # noqa: E501 websocket_conn_time_ms (int): Total duration of passthrough WebSocket connections with end users.. [optional] # noqa: E501 fanout_recv_publishes (int): Total published messages received from the publish API endpoint.. [optional] # noqa: E501 fanout_send_publishes (int): Total published messages sent to end users.. [optional] # noqa: E501 - object_store_read_requests (int): The total number of reads received for the object store.. [optional] # noqa: E501 - object_store_write_requests (int): The total number of writes received for the object store.. [optional] # noqa: E501 + object_store_class_a_operations (int): The total number of class a operations for the object store.. [optional] # noqa: E501 + object_store_class_b_operations (int): The total number of class b operations for the object store.. [optional] # noqa: E501 + object_store_read_requests (int): Use object_store_class_b_operations.. [optional] # noqa: E501 + object_store_write_requests (int): Use object_store_class_a_operations.. [optional] # noqa: E501 fanout_req_header_bytes (int): Total header bytes received from end users over Fanout connections.. [optional] # noqa: E501 fanout_req_body_bytes (int): Total body or message content bytes received from end users over Fanout connections.. [optional] # noqa: E501 fanout_resp_header_bytes (int): Total header bytes sent to end users over Fanout connections.. [optional] # noqa: E501 diff --git a/fastly/model/tls_subscription_response_attributes.py b/fastly/model/tls_subscription_response_attributes.py index cf62d3a..6b0120c 100644 --- a/fastly/model/tls_subscription_response_attributes.py +++ b/fastly/model/tls_subscription_response_attributes.py @@ -64,6 +64,7 @@ class TlsSubscriptionResponseAttributes(ModelComposed): 'PROCESSING': "processing", 'ISSUED': "issued", 'RENEWING': "renewing", + 'FAILED': "failed", }, } @@ -115,7 +116,6 @@ def discriminator(): 'created_at', # noqa: E501 'deleted_at', # noqa: E501 'updated_at', # noqa: E501 - 'state', # noqa: E501 } @classmethod diff --git a/fastly/model/tls_subscription_response_attributes_all_of.py b/fastly/model/tls_subscription_response_attributes_all_of.py index 5b28b79..8b28540 100644 --- a/fastly/model/tls_subscription_response_attributes_all_of.py +++ b/fastly/model/tls_subscription_response_attributes_all_of.py @@ -58,6 +58,7 @@ class TlsSubscriptionResponseAttributesAllOf(ModelNormal): 'PROCESSING': "processing", 'ISSUED': "issued", 'RENEWING': "renewing", + 'FAILED': "failed", }, } @@ -98,7 +99,6 @@ def discriminator(): } read_only_vars = { - 'state', # noqa: E501 } _composed_schemas = {} diff --git a/fastly/model/type_resource.py b/fastly/model/type_resource.py index dbe1f6d..f42e0b1 100644 --- a/fastly/model/type_resource.py +++ b/fastly/model/type_resource.py @@ -51,6 +51,7 @@ class TypeResource(ModelSimple): allowed_values = { ('value',): { 'OBJECT-STORE': "object-store", + 'SECRET-STORE': "secret-store", }, } @@ -102,10 +103,10 @@ def __init__(self, *args, **kwargs): Note that value can be passed either in args or in kwargs, but not in both. Args: - args[0] (str): Resource type. if omitted defaults to "object-store", must be one of ["object-store", ] # noqa: E501 + args[0] (str): Resource type. if omitted defaults to "object-store", must be one of ["object-store", "secret-store", ] # noqa: E501 Keyword Args: - value (str): Resource type. if omitted defaults to "object-store", must be one of ["object-store", ] # noqa: E501 + value (str): Resource type. if omitted defaults to "object-store", must be one of ["object-store", "secret-store", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -188,10 +189,10 @@ def _from_openapi_data(cls, *args, **kwargs): Note that value can be passed either in args or in kwargs, but not in both. Args: - args[0] (str): Resource type. if omitted defaults to "object-store", must be one of ["object-store", ] # noqa: E501 + args[0] (str): Resource type. if omitted defaults to "object-store", must be one of ["object-store", "secret-store", ] # noqa: E501 Keyword Args: - value (str): Resource type. if omitted defaults to "object-store", must be one of ["object-store", ] # noqa: E501 + value (str): Resource type. if omitted defaults to "object-store", must be one of ["object-store", "secret-store", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. diff --git a/fastly/models/__init__.py b/fastly/models/__init__.py index 9b11ffe..2767e0e 100644 --- a/fastly/models/__init__.py +++ b/fastly/models/__init__.py @@ -78,9 +78,10 @@ from fastly.model.domain_check_response_list import DomainCheckResponseList from fastly.model.domain_response import DomainResponse from fastly.model.domains_response import DomainsResponse -from fastly.model.enabled_product import EnabledProduct -from fastly.model.enabled_product_links import EnabledProductLinks -from fastly.model.enabled_product_product import EnabledProductProduct +from fastly.model.enabled_product_response import EnabledProductResponse +from fastly.model.enabled_product_response_links import EnabledProductResponseLinks +from fastly.model.enabled_product_response_product import EnabledProductResponseProduct +from fastly.model.enabled_product_response_service import EnabledProductResponseService from fastly.model.error_response import ErrorResponse from fastly.model.error_response_data import ErrorResponseData from fastly.model.event import Event @@ -89,8 +90,6 @@ from fastly.model.events_response import EventsResponse from fastly.model.events_response_all_of import EventsResponseAllOf from fastly.model.generic_token_error import GenericTokenError -from fastly.model.get_stores_response import GetStoresResponse -from fastly.model.get_stores_response_meta import GetStoresResponseMeta from fastly.model.gzip import Gzip from fastly.model.gzip_response import GzipResponse from fastly.model.header import Header @@ -143,6 +142,8 @@ from fastly.model.inline_object import InlineObject from fastly.model.inline_object1 import InlineObject1 from fastly.model.inline_response200 import InlineResponse200 +from fastly.model.inline_response2001 import InlineResponse2001 +from fastly.model.inline_response2001_meta import InlineResponse2001Meta from fastly.model.invitation import Invitation from fastly.model.invitation_data import InvitationData from fastly.model.invitation_data_attributes import InvitationDataAttributes @@ -152,7 +153,6 @@ from fastly.model.invitation_response_data_all_of import InvitationResponseDataAllOf from fastly.model.invitations_response import InvitationsResponse from fastly.model.invitations_response_all_of import InvitationsResponseAllOf -from fastly.model.key_response import KeyResponse from fastly.model.logging_address_and_port import LoggingAddressAndPort from fastly.model.logging_azureblob import LoggingAzureblob from fastly.model.logging_azureblob_all_of import LoggingAzureblobAllOf diff --git a/setup.py b/setup.py index 4ab3645..6d4e19e 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ from pathlib import Path NAME = "fastly" -VERSION = "v1.1.0" +VERSION = "1.2.0" # To install the library, run the following # # python setup.py install diff --git a/sig.json b/sig.json index 22c3463..5e38dab 100644 --- a/sig.json +++ b/sig.json @@ -1 +1 @@ -{"G": "83b1ff61", "D": "e4d025a1"} +{"G": "8139a4eb", "D": "f9245d38"}