Skip to content

Commit

Permalink
Generated v5.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Aug 8, 2024
1 parent 5d1461a commit 0b00a48
Show file tree
Hide file tree
Showing 35 changed files with 1,208 additions and 71 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [v5.7.0](https://github.com/fastly/fastly-py/releases/tag/release/v5.7.0) (2024-08-08)

**Bug fixes:**

- fix(billing): Adjust type of regional data to help the generator
- fix(billing): Correct type of invoice_id field

## [v5.6.0](https://github.com/fastly/fastly-py/releases/tag/release/v5.6.0) (2024-08-04)

**Enhancements:**
Expand Down
3 changes: 1 addition & 2 deletions docs/Billing.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**end_time** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly]
**start_time** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly]
**invoice_id** | **str** | | [optional] [readonly]
**customer_id** | **str** | | [optional] [readonly]
**vendor_state** | **str** | The current state of our third-party billing vendor. One of `up` or `down`. | [optional] [readonly]
**status** | [**BillingStatus**](BillingStatus.md) | | [optional]
**total** | [**BillingTotal**](BillingTotal.md) | | [optional]
**regions** | **{str: ({str: ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},)},)}** | Breakdown of regional data for products that are region based. | [optional]
**regions** | [**{str: (BillingRegions,)}**](BillingRegions.md) | Breakdown of regional data for products that are region based. | [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)
Expand Down
4 changes: 2 additions & 2 deletions docs/BillingApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ with fastly.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = billing_api.BillingApi(api_client)
customer_id = "x4xCwxxJxGCx123Rx5xTx" # str | Alphanumeric string identifying the customer.
invoice_id = "7SlAESxcJ2zxHOV4gQ9y9X" # str | Alphanumeric string identifying the invoice.
invoice_id = 4183280 # int |

# example passing only required values which don't have defaults set
try:
Expand All @@ -146,7 +146,7 @@ with fastly.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**customer_id** | **str**| Alphanumeric string identifying the customer. |
**invoice_id** | **str**| Alphanumeric string identifying the invoice. |
**invoice_id** | **int**| |

### Return type

Expand Down
13 changes: 13 additions & 0 deletions docs/BillingBandwidth.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# BillingBandwidth


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**total** | **float** | | [optional]
**tiers** | [**[BillingBandwidthTiers]**](BillingBandwidthTiers.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)


16 changes: 16 additions & 0 deletions docs/BillingBandwidthTiers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# BillingBandwidthTiers


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **str** | | [optional]
**units** | **float** | | [optional]
**price** | **float** | | [optional]
**discounted_price** | **float** | | [optional]
**total** | **float** | | [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)


12 changes: 12 additions & 0 deletions docs/BillingEstimateInvoiceId.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# BillingEstimateInvoiceId


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**invoice_id** | **str** | | [optional] [readonly]
**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)


4 changes: 2 additions & 2 deletions docs/BillingEstimateResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**end_time** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly]
**start_time** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly]
**invoice_id** | **str** | | [optional] [readonly]
**customer_id** | **str** | | [optional] [readonly]
**vendor_state** | **str** | The current state of our third-party billing vendor. One of `up` or `down`. | [optional] [readonly]
**status** | [**BillingStatus**](BillingStatus.md) | | [optional]
**total** | [**BillingTotal**](BillingTotal.md) | | [optional]
**regions** | **{str: ({str: ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},)},)}** | Breakdown of regional data for products that are region based. | [optional]
**regions** | [**{str: (BillingRegions,)}**](BillingRegions.md) | Breakdown of regional data for products that are region based. | [optional]
**invoice_id** | **str** | | [optional] [readonly]
**line_items** | [**[BillingEstimateLinesLineItems]**](BillingEstimateLinesLineItems.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]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# LineItemDataReadOnlyInvoiceId
# BillingInvoiceId


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**invoice_id** | **int** | | [optional] [readonly]
**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)

Expand Down
4 changes: 2 additions & 2 deletions docs/BillingInvoicesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ configuration.api_key['token'] = 'YOUR_API_KEY'
with fastly.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = billing_invoices_api.BillingInvoicesApi(api_client)
invoice_id = "7SlAESxcJ2zxHOV4gQ9y9X" # str | Alphanumeric string identifying the invoice.
invoice_id = 4183280 # int |

# example passing only required values which don't have defaults set
try:
Expand All @@ -65,7 +65,7 @@ with fastly.ApiClient(configuration) as api_client:

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**invoice_id** | **str**| Alphanumeric string identifying the invoice. |
**invoice_id** | **int**| |

### Return type

Expand Down
15 changes: 15 additions & 0 deletions docs/BillingRegions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# BillingRegions


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**cost** | **float** | | [optional]
**bandwidth** | [**BillingBandwidth**](BillingBandwidth.md) | | [optional]
**percentile** | [**BillingBandwidth**](BillingBandwidth.md) | | [optional]
**requests** | [**BillingBandwidth**](BillingBandwidth.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)


4 changes: 2 additions & 2 deletions docs/BillingResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**end_time** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly]
**start_time** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly]
**invoice_id** | **str** | | [optional] [readonly]
**customer_id** | **str** | | [optional] [readonly]
**vendor_state** | **str** | The current state of our third-party billing vendor. One of `up` or `down`. | [optional] [readonly]
**status** | [**BillingStatus**](BillingStatus.md) | | [optional]
**total** | [**BillingTotal**](BillingTotal.md) | | [optional]
**regions** | **{str: ({str: ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},)},)}** | Breakdown of regional data for products that are region based. | [optional]
**regions** | [**{str: (BillingRegions,)}**](BillingRegions.md) | Breakdown of regional data for products that are region based. | [optional]
**invoice_id** | **int** | | [optional] [readonly]
**line_items** | [**BillingResponseLineItems**](BillingResponseLineItems.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]

Expand Down
2 changes: 1 addition & 1 deletion docs/BillingResponseLineItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Name | Type | Description | Notes
**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]
**amount** | **float** | | [optional]
**aria_invoice_id** | [**LineItemDataReadOnlyInvoiceId**](LineItemDataReadOnlyInvoiceId.md) | | [optional]
**aria_invoice_id** | **str** | An alphanumeric string identifying the invoice. | [optional] [readonly]
**client_service_id** | **str** | | [optional]
**credit_coupon_code** | **str, none_type** | | [optional]
**description** | **str** | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/EomInvoiceResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**customer_id** | **str** | Customer ID associated with the invoice. | [optional]
**invoice_id** | **str** | Alphanumeric string identifying the invoice. | [optional]
**invoice_id** | **str** | Numeric string identifying the invoice. | [optional]
**invoice_posted_on** | **datetime** | Date and time invoice was posted on, in ISO 8601 format. | [optional]
**billing_start_date** | **datetime** | Date and time (in ISO 8601 format) for initiation point of a billing cycle, signifying the start of charges for a service or subscription. | [optional]
**billing_end_date** | **datetime** | Date and time (in ISO 8601 format) for termination point of a billing cycle, signifying the end of charges for a service or subscription. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/Invoice.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**customer_id** | **str** | Customer ID associated with the invoice. | [optional]
**invoice_id** | **str** | Alphanumeric string identifying the invoice. | [optional]
**invoice_id** | **str** | Numeric string identifying the invoice. | [optional]
**invoice_posted_on** | **datetime** | Date and time invoice was posted on, in ISO 8601 format. | [optional]
**billing_start_date** | **datetime** | Date and time (in ISO 8601 format) for initiation point of a billing cycle, signifying the start of charges for a service or subscription. | [optional]
**billing_end_date** | **datetime** | Date and time (in ISO 8601 format) for termination point of a billing cycle, signifying the end of charges for a service or subscription. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/LineItemData.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**amount** | **float** | | [optional]
**aria_invoice_id** | [**LineItemDataReadOnlyInvoiceId**](LineItemDataReadOnlyInvoiceId.md) | | [optional]
**aria_invoice_id** | **str** | An alphanumeric string identifying the invoice. | [optional] [readonly]
**client_service_id** | **str** | | [optional]
**credit_coupon_code** | **str, none_type** | | [optional]
**description** | **str** | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion fastly/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"""


__version__ = "5.6.0"
__version__ = "5.7.0"

# import ApiClient
from fastly.api_client import ApiClient
Expand Down
4 changes: 2 additions & 2 deletions fastly/api/billing_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def __init__(self, api_client=None):
'customer_id':
(str,),
'invoice_id':
(str,),
(int,),
},
'attribute_map': {
'customer_id': 'customer_id',
Expand Down Expand Up @@ -334,7 +334,7 @@ def get_invoice_by_id(
Args:
customer_id (str): Alphanumeric string identifying the customer.
invoice_id (str): Alphanumeric string identifying the invoice.
invoice_id (int):
Keyword Args:
_return_http_data_only (bool): response data without head status
Expand Down
4 changes: 2 additions & 2 deletions fastly/api/billing_invoices_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __init__(self, api_client=None):
},
'openapi_types': {
'invoice_id':
(str,),
(int,),
},
'attribute_map': {
'invoice_id': 'invoice_id',
Expand Down Expand Up @@ -233,7 +233,7 @@ def get_invoice_by_invoice_id(
>>> result = thread.get()
Args:
invoice_id (str): Alphanumeric string identifying the invoice.
invoice_id (int):
Keyword Args:
_return_http_data_only (bool): response data without head status
Expand Down
2 changes: 1 addition & 1 deletion fastly/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/5.6.0'
self.user_agent = 'fastly-py/5.7.0'

# The last observed value of http header Fastly-RateLimit-Remaining
self.rate_limit_remaining = DEFAULT_RATELIMIT
Expand Down
2 changes: 1 addition & 1 deletion fastly/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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: 5.6.0".\
"SDK Package Version: 5.7.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
13 changes: 5 additions & 8 deletions fastly/model/billing.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@


def lazy_import():
from fastly.model.billing_regions import BillingRegions
from fastly.model.billing_status import BillingStatus
from fastly.model.billing_total import BillingTotal
globals()['BillingRegions'] = BillingRegions
globals()['BillingStatus'] = BillingStatus
globals()['BillingTotal'] = BillingTotal

Expand Down Expand Up @@ -89,12 +91,11 @@ def openapi_types():
return {
'end_time': (datetime, none_type,), # noqa: E501
'start_time': (datetime, none_type,), # noqa: E501
'invoice_id': (str,), # noqa: E501
'customer_id': (str,), # noqa: E501
'vendor_state': (str,), # noqa: E501
'status': (BillingStatus,), # noqa: E501
'total': (BillingTotal,), # noqa: E501
'regions': ({str: ({str: ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},)},)},), # noqa: E501
'regions': ({str: (BillingRegions,)},), # noqa: E501
}

@cached_property
Expand All @@ -105,7 +106,6 @@ def discriminator():
attribute_map = {
'end_time': 'end_time', # noqa: E501
'start_time': 'start_time', # noqa: E501
'invoice_id': 'invoice_id', # noqa: E501
'customer_id': 'customer_id', # noqa: E501
'vendor_state': 'vendor_state', # noqa: E501
'status': 'status', # noqa: E501
Expand All @@ -116,7 +116,6 @@ def discriminator():
read_only_vars = {
'end_time', # noqa: E501
'start_time', # noqa: E501
'invoice_id', # noqa: E501
'customer_id', # noqa: E501
'vendor_state', # noqa: E501
}
Expand Down Expand Up @@ -161,12 +160,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
_visited_composed_classes = (Animal,)
end_time (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501
start_time (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501
invoice_id (str): [optional] # noqa: E501
customer_id (str): [optional] # noqa: E501
vendor_state (str): The current state of our third-party billing vendor. One of `up` or `down`.. [optional] # noqa: E501
status (BillingStatus): [optional] # noqa: E501
total (BillingTotal): [optional] # noqa: E501
regions ({str: ({str: ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},)},)}): Breakdown of regional data for products that are region based.. [optional] # noqa: E501
regions ({str: (BillingRegions,)}): Breakdown of regional data for products that are region based.. [optional] # noqa: E501
"""

_check_type = kwargs.pop('_check_type', True)
Expand Down Expand Up @@ -250,12 +248,11 @@ def __init__(self, *args, **kwargs): # noqa: E501
_visited_composed_classes = (Animal,)
end_time (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501
start_time (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501
invoice_id (str): [optional] # noqa: E501
customer_id (str): [optional] # noqa: E501
vendor_state (str): The current state of our third-party billing vendor. One of `up` or `down`.. [optional] # noqa: E501
status (BillingStatus): [optional] # noqa: E501
total (BillingTotal): [optional] # noqa: E501
regions ({str: ({str: ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},)},)}): Breakdown of regional data for products that are region based.. [optional] # noqa: E501
regions ({str: (BillingRegions,)}): Breakdown of regional data for products that are region based.. [optional] # noqa: E501
"""

_check_type = kwargs.pop('_check_type', True)
Expand Down
Loading

0 comments on commit 0b00a48

Please sign in to comment.