Skip to content

Commit

Permalink
Generated v1.0.0-beta.32
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Aug 5, 2024
1 parent 42cdef3 commit 979d199
Show file tree
Hide file tree
Showing 109 changed files with 13,330 additions and 701 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## [v1.0.0-beta.32](https://github.com/fastly/fastly-go/releases/tag/release/v1.0.0-beta.32) (2024-08-04)

**Enhancements:**

- feat(observability): Adds new Observability Custom Dashboards API
- feat(billing-invoices): Adds month-to-date invoice information
- feat(billing-usage-metrics): Adds information on service-level usage.
- feat(tls): Adds an endpoint to get a TLS certificate blob (Limited Availability)
- feat(stats): Add `origin_offload` metric

## [v1.0.0-beta.31](https://github.com/fastly/fastly-go/releases/tag/v1.0.0-beta.31) (2024-07-01)

**Bug fixes:**
Expand Down
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Add the following to your project's `go.mod`:

```go.mod
require (
github.com/fastly/fastly-go 1.0.0-beta.31
github.com/fastly/fastly-go 1.0.0-beta.32
)
```

Expand Down Expand Up @@ -103,7 +103,10 @@ Class | Method | Description
*BillingAddressAPI* | [**GetBillingAddr**](docs/BillingAddressAPI.md#getbillingaddr) | Get a billing address
*BillingAddressAPI* | [**UpdateBillingAddr**](docs/BillingAddressAPI.md#updatebillingaddr) | Update a billing address
*BillingInvoicesAPI* | [**GetInvoiceByInvoiceID**](docs/BillingInvoicesAPI.md#getinvoicebyinvoiceid) | Get invoice by ID.
*BillingInvoicesAPI* | [**GetMonthToDateInvoice**](docs/BillingInvoicesAPI.md#getmonthtodateinvoice) | Get month-to-date invoice.
*BillingInvoicesAPI* | [**ListInvoices**](docs/BillingInvoicesAPI.md#listinvoices) | List of invoices.
*BillingUsageMetricsAPI* | [**GetServiceLevelUsage**](docs/BillingUsageMetricsAPI.md#getservicelevelusage) | Retrieve service-level usage metrics for a product.
*BillingUsageMetricsAPI* | [**GetServiceLevelUsageTypes**](docs/BillingUsageMetricsAPI.md#getservicelevelusagetypes) | Retrieve product usage types for a customer.
*CacheSettingsAPI* | [**CreateCacheSettings**](docs/CacheSettingsAPI.md#createcachesettings) | Create a cache settings object
*CacheSettingsAPI* | [**DeleteCacheSettings**](docs/CacheSettingsAPI.md#deletecachesettings) | Delete a cache settings object
*CacheSettingsAPI* | [**GetCacheSettings**](docs/CacheSettingsAPI.md#getcachesettings) | Get a cache settings object
Expand Down Expand Up @@ -415,6 +418,11 @@ Class | Method | Description
*MutualAuthenticationAPI* | [**GetMutualAuthentication**](docs/MutualAuthenticationAPI.md#getmutualauthentication) | Get a Mutual Authentication
*MutualAuthenticationAPI* | [**ListMutualAuthentications**](docs/MutualAuthenticationAPI.md#listmutualauthentications) | List Mutual Authentications
*MutualAuthenticationAPI* | [**PatchMutualAuthentication**](docs/MutualAuthenticationAPI.md#patchmutualauthentication) | Update a Mutual Authentication
*ObservabilityCustomDashboardsAPI* | [**CreateDashboard**](docs/ObservabilityCustomDashboardsAPI.md#createdashboard) | Create a new dashboard
*ObservabilityCustomDashboardsAPI* | [**DeleteDashboard**](docs/ObservabilityCustomDashboardsAPI.md#deletedashboard) | Delete an existing dashboard
*ObservabilityCustomDashboardsAPI* | [**GetDashboard**](docs/ObservabilityCustomDashboardsAPI.md#getdashboard) | Retrieve a dashboard by ID
*ObservabilityCustomDashboardsAPI* | [**ListDashboards**](docs/ObservabilityCustomDashboardsAPI.md#listdashboards) | List all custom dashboards
*ObservabilityCustomDashboardsAPI* | [**UpdateDashboard**](docs/ObservabilityCustomDashboardsAPI.md#updatedashboard) | Update an existing dashboard
*OriginInspectorHistoricalAPI* | [**GetOriginInspectorHistorical**](docs/OriginInspectorHistoricalAPI.md#getorigininspectorhistorical) | Get historical origin data for a service
*OriginInspectorRealtimeAPI* | [**GetOriginInspectorLast120Seconds**](docs/OriginInspectorRealtimeAPI.md#getorigininspectorlast120seconds) | Get real-time origin data for the last 120 seconds
*OriginInspectorRealtimeAPI* | [**GetOriginInspectorLastMaxEntries**](docs/OriginInspectorRealtimeAPI.md#getorigininspectorlastmaxentries) | Get a limited number of real-time origin data entries
Expand Down Expand Up @@ -516,6 +524,7 @@ Class | Method | Description
*TLSCertificatesAPI* | [**CreateTLSCert**](docs/TlsCertificatesAPI.md#createtlscert) | Create a TLS certificate
*TLSCertificatesAPI* | [**DeleteTLSCert**](docs/TlsCertificatesAPI.md#deletetlscert) | Delete a TLS certificate
*TLSCertificatesAPI* | [**GetTLSCert**](docs/TlsCertificatesAPI.md#gettlscert) | Get a TLS certificate
*TLSCertificatesAPI* | [**GetTLSCertBlob**](docs/TlsCertificatesAPI.md#gettlscertblob) | Get a TLS certificate blob (Limited Availability)
*TLSCertificatesAPI* | [**ListTLSCerts**](docs/TlsCertificatesAPI.md#listtlscerts) | List TLS certificates
*TLSCertificatesAPI* | [**UpdateTLSCert**](docs/TlsCertificatesAPI.md#updatetlscert) | Update a TLS certificate
*TLSConfigurationsAPI* | [**GetTLSConfig**](docs/TlsConfigurationsAPI.md#gettlsconfig) | Get a TLS configuration
Expand Down Expand Up @@ -629,6 +638,8 @@ The fastly-go API client currently does not support the following endpoints:
- [`/alerts/definitions/{definition_id}`](https://www.fastly.com/documentation/reference/api/observability/alerts/definitions) (DELETE, GET, PUT)
- [`/alerts/definitions`](https://www.fastly.com/documentation/reference/api/observability/alerts/definitions) (GET, POST)
- [`/alerts/history`](https://www.fastly.com/documentation/reference/api/observability/alerts/history) (GET)
- [`/dns/configurations/{dns_configuration_id}`](https://www.fastly.com/documentation/reference/api/) (DELETE, GET, PATCH)
- [`/dns/configurations`](https://www.fastly.com/documentation/reference/api/) (GET, POST)
- [`/notifications/integration-types`](https://developer.fastly.com/reference/api/observability/notification) (GET)
- [`/notifications/integrations/{integration_id}/rotateSigningKey`](https://developer.fastly.com/reference/api/observability/notification) (POST)
- [`/notifications/integrations/{integration_id}/signingKey`](https://developer.fastly.com/reference/api/observability/notification) (GET)
Expand All @@ -638,7 +649,9 @@ The fastly-go API client currently does not support the following endpoints:
- [`/resources/stores/kv/{store_id}/batch`](https://www.fastly.com/documentation/reference/api/services/resources/kv-store-item) (PUT)
- [`/tls/activations/{tls_activation_id}`](https://www.fastly.com/documentation/reference/api/tls/mutual-tls/activations) (GET, PATCH)
- [`/tls/activations`](https://www.fastly.com/documentation/reference/api/tls/mutual-tls/activations) (GET)
- [`/tls/preview/domains/{tls_preview_domain_id}`](https://www.fastly.com/documentation/reference/api/) (GET, PATCH)
- [`/tls/configurations/{tls_configuration_id}`](https://www.fastly.com/documentation/reference/api/) (DELETE, GET, PATCH)
- [`/tls/configurations`](https://www.fastly.com/documentation/reference/api/) (GET, POST)
- [`/tls/preview/domains/{domain_id}`](https://www.fastly.com/documentation/reference/api/) (GET, PATCH)
- [`/tls/preview/domains`](https://www.fastly.com/documentation/reference/api/) (GET, POST)
- [`/v1/channel/{service_id}/ts/h/limit/{max_entries}`](https://www.fastly.com/documentation/reference/api/metrics-stats/origin-insights) (GET)
- [`/v1/channel/{service_id}/ts/h`](https://www.fastly.com/documentation/reference/api/metrics-stats/origin-insights) (GET)
Expand Down
80 changes: 80 additions & 0 deletions docs/AsyncResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# AsyncResponse

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Title** | Pointer to **string** | | [optional]
**Status** | Pointer to **string** | | [optional]

## Methods

### NewAsyncResponse

`func NewAsyncResponse() *AsyncResponse`

NewAsyncResponse instantiates a new AsyncResponse object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed

### NewAsyncResponseWithDefaults

`func NewAsyncResponseWithDefaults() *AsyncResponse`

NewAsyncResponseWithDefaults instantiates a new AsyncResponse object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set

### GetTitle

`func (o *AsyncResponse) GetTitle() string`

GetTitle returns the Title field if non-nil, zero value otherwise.

### GetTitleOk

`func (o *AsyncResponse) GetTitleOk() (*string, bool)`

GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetTitle

`func (o *AsyncResponse) SetTitle(v string)`

SetTitle sets Title field to given value.

### HasTitle

`func (o *AsyncResponse) HasTitle() bool`

HasTitle returns a boolean if a field has been set.

### GetStatus

`func (o *AsyncResponse) GetStatus() string`

GetStatus returns the Status field if non-nil, zero value otherwise.

### GetStatusOk

`func (o *AsyncResponse) GetStatusOk() (*string, bool)`

GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetStatus

`func (o *AsyncResponse) SetStatus(v string)`

SetStatus sets Status field to given value.

### HasStatus

`func (o *AsyncResponse) HasStatus() bool`

HasStatus returns a boolean if a field has been set.


[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md)
68 changes: 64 additions & 4 deletions docs/BillingInvoicesAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Method | HTTP request | Description
------------- | ------------- | -------------
[**GetInvoiceByInvoiceID**](BillingInvoicesAPI.md#GetInvoiceByInvoiceID) | **GET** `/billing/v3/invoices/{invoice_id}` | Get invoice by ID.
[**GetMonthToDateInvoice**](BillingInvoicesAPI.md#GetMonthToDateInvoice) | **GET** `/billing/v3/invoices/month-to-date` | Get month-to-date invoice.
[**ListInvoices**](BillingInvoicesAPI.md#ListInvoices) | **GET** `/billing/v3/invoices` | List of invoices.


Expand Down Expand Up @@ -39,7 +40,7 @@ func main() {
fmt.Fprintf(os.Stderr, "Error when calling `BillingInvoicesAPI.GetInvoiceByInvoiceID`: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetInvoiceByInvoiceID`: InvoiceResponse
// response from `GetInvoiceByInvoiceID`: EomInvoiceResponse
fmt.Fprintf(os.Stdout, "Response from `BillingInvoicesAPI.GetInvoiceByInvoiceID`: %v\n", resp)
}
```
Expand All @@ -63,7 +64,66 @@ Name | Type | Description | Notes

### Return type

[**InvoiceResponse**](InvoiceResponse.md)
[**EomInvoiceResponse**](EomInvoiceResponse.md)

### Authorization

[API Token](https://www.fastly.com/documentation/reference/api/#authentication)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md)


## GetMonthToDateInvoice

Get month-to-date invoice.



### Example

```go
package main

import (
"context"
"fmt"
"os"
"github.com/fastly/fastly-go/fastly"
)

func main() {

cfg := fastly.NewConfiguration()
apiClient := fastly.NewAPIClient(cfg)
ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN")
resp, r, err := apiClient.BillingInvoicesAPI.GetMonthToDateInvoice(ctx).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BillingInvoicesAPI.GetMonthToDateInvoice`: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetMonthToDateInvoice`: MtdInvoiceResponse
fmt.Fprintf(os.Stdout, "Response from `BillingInvoicesAPI.GetMonthToDateInvoice`: %v\n", resp)
}
```

### Path Parameters

This endpoint does not need any parameter.

### Other Parameters

Other parameters are passed through a pointer to a apiGetMonthToDateInvoiceRequest struct via the builder pattern



### Return type

[**MtdInvoiceResponse**](MtdInvoiceResponse.md)

### Authorization

Expand Down Expand Up @@ -109,7 +169,7 @@ func main() {
fmt.Fprintf(os.Stderr, "Error when calling `BillingInvoicesAPI.ListInvoices`: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListInvoices`: ListInvoicesResponse
// response from `ListInvoices`: ListEomInvoicesResponse
fmt.Fprintf(os.Stdout, "Response from `BillingInvoicesAPI.ListInvoices`: %v\n", resp)
}
```
Expand All @@ -129,7 +189,7 @@ Name | Type | Description | Notes

### Return type

[**ListInvoicesResponse**](ListInvoicesResponse.md)
[**ListEomInvoicesResponse**](ListEomInvoicesResponse.md)

### Authorization

Expand Down
Loading

0 comments on commit 979d199

Please sign in to comment.