Skip to content

Commit

Permalink
Generated v1.0.0-beta.14
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jun 28, 2023
1 parent 923473b commit fa0ef12
Show file tree
Hide file tree
Showing 61 changed files with 8,188 additions and 670 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## [v1.0.0-beta.14](https://github.com/fastly/fastly-go/releases/tag/v1.0.0-beta.14) (2023-06-27)

**Enhancements:**

- feat(automation_tokens): implement endpoints.
- feat(rate_limiter): implement POST/PUT endpoints.

**Bug fixes:**

- fix(historical_stats): extract primitive into custom type.

## [v1.0.0-beta.13](https://github.com/fastly/fastly-go/releases/tag/v1.0.0-beta.13) (2023-06-23)

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

```go.mod
require (
github.com/fastly/fastly-go v1.0.0-beta.13
github.com/fastly/fastly-go v1.0.0-beta.14
)
```

Expand Down Expand Up @@ -73,6 +73,11 @@ Class | Method | HTTP request | Description
*ApexRedirectAPI* | [**GetApexRedirect**](docs/ApexRedirectAPI.md#getapexredirect) | **GET** `/apex-redirects/{apex_redirect_id}` | Get an apex redirect
*ApexRedirectAPI* | [**ListApexRedirects**](docs/ApexRedirectAPI.md#listapexredirects) | **GET** `/service/{service_id}/version/{version_id}/apex-redirects` | List apex redirects
*ApexRedirectAPI* | [**UpdateApexRedirect**](docs/ApexRedirectAPI.md#updateapexredirect) | **PUT** `/apex-redirects/{apex_redirect_id}` | Update an apex redirect
*AutomationTokensAPI* | [**CreateAutomationToken**](docs/AutomationTokensAPI.md#createautomationtoken) | **POST** `/automation-tokens` | Create Automation Token
*AutomationTokensAPI* | [**GetAutomationTokenID**](docs/AutomationTokensAPI.md#getautomationtokenid) | **GET** `/automation-tokens/{id}` | Retrieve an Automation Token by ID
*AutomationTokensAPI* | [**GetAutomationTokensIDServices**](docs/AutomationTokensAPI.md#getautomationtokensidservices) | **GET** `/automation-tokens/{id}/services` | List Automation Token Services
*AutomationTokensAPI* | [**ListAutomationTokens**](docs/AutomationTokensAPI.md#listautomationtokens) | **GET** `/automation-tokens` | List Customer Automation Tokens
*AutomationTokensAPI* | [**RevokeAutomationTokenID**](docs/AutomationTokensAPI.md#revokeautomationtokenid) | **DELETE** `/automation-tokens/{id}` | Revoke an Automation Token by ID
*BackendAPI* | [**CreateBackend**](docs/BackendAPI.md#createbackend) | **POST** `/service/{service_id}/version/{version_id}/backend` | Create a backend
*BackendAPI* | [**DeleteBackend**](docs/BackendAPI.md#deletebackend) | **DELETE** `/service/{service_id}/version/{version_id}/backend/{backend_name}` | Delete a backend
*BackendAPI* | [**GetBackend**](docs/BackendAPI.md#getbackend) | **GET** `/service/{service_id}/version/{version_id}/backend/{backend_name}` | Describe a backend
Expand Down Expand Up @@ -350,9 +355,11 @@ Class | Method | HTTP request | Description
*PurgeAPI* | [**PurgeAll**](docs/PurgeAPI.md#purgeall) | **POST** `/service/{service_id}/purge_all` | Purge everything from a service
*PurgeAPI* | [**PurgeSingleURL**](docs/PurgeAPI.md#purgesingleurl) | **POST** `/purge/{cached_url}` | Purge a URL
*PurgeAPI* | [**PurgeTag**](docs/PurgeAPI.md#purgetag) | **POST** `/service/{service_id}/purge/{surrogate_key}` | Purge by surrogate key tag
*RateLimiterAPI* | [**CreateRateLimiter**](docs/RateLimiterAPI.md#createratelimiter) | **POST** `/service/{service_id}/version/{version_id}/rate-limiters` | Create a rate limiter
*RateLimiterAPI* | [**DeleteRateLimiter**](docs/RateLimiterAPI.md#deleteratelimiter) | **DELETE** `/rate-limiters/{rate_limiter_id}` | Delete a rate limiter
*RateLimiterAPI* | [**GetRateLimiter**](docs/RateLimiterAPI.md#getratelimiter) | **GET** `/rate-limiters/{rate_limiter_id}` | Get a rate limiter
*RateLimiterAPI* | [**ListRateLimiters**](docs/RateLimiterAPI.md#listratelimiters) | **GET** `/service/{service_id}/version/{version_id}/rate-limiters` | List rate limiters
*RateLimiterAPI* | [**UpdateRateLimiter**](docs/RateLimiterAPI.md#updateratelimiter) | **PUT** `/rate-limiters/{rate_limiter_id}` | Update a rate limiter
*RealtimeAPI* | [**GetStatsLast120Seconds**](docs/RealtimeAPI.md#getstatslast120seconds) | **GET** `/v1/channel/{service_id}/ts/h` | Get real-time data for the last 120 seconds
*RealtimeAPI* | [**GetStatsLast120SecondsLimitEntries**](docs/RealtimeAPI.md#getstatslast120secondslimitentries) | **GET** `/v1/channel/{service_id}/ts/h/limit/{max_entries}` | Get a limited number of real-time data entries
*RealtimeAPI* | [**GetStatsLastSecond**](docs/RealtimeAPI.md#getstatslastsecond) | **GET** `/v1/channel/{service_id}/ts/{timestamp_in_seconds}` | Get real-time data from specified time
Expand Down Expand Up @@ -511,16 +518,12 @@ Each of these functions takes a value of the given basic type and returns a poin

The fastly-go API client currently does not support the following endpoints:

- [`/automation-tokens/{id}/services`](https://developer.fastly.com/reference/api/auth-tokens/automation) (GET)
- [`/automation-tokens/{id}`](https://developer.fastly.com/reference/api/auth-tokens/automation) (DELETE, GET)
- [`/automation-tokens`](https://developer.fastly.com/reference/api/auth-tokens/automation) (GET, POST)
- [`/customer/{customer_id}/contacts`](https://developer.fastly.com/reference/api/account/contact) (POST)
- [`/docs/section/{section}`](https://developer.fastly.com/reference/api/utils/docs) (GET)
- [`/docs/subject/{subject}`](https://developer.fastly.com/reference/api/utils/docs) (GET)
- [`/docs`](https://developer.fastly.com/reference/api/utils/docs) (GET)
- [`/metrics/domains/services/{service_id}`](https://developer.fastly.com/reference/api/metrics-stats/domain-inspector/historical) (GET)
- [`/metrics/origins/services/{service_id}`](https://developer.fastly.com/reference/api/metrics-stats/origin-inspector/historical) (GET)
- [`/rate-limiters/{rate_limiter_id}`](https://developer.fastly.com/reference/api/vcl-services/rate-limiter) (PUT)
- [`/resources/stores/secret/client-key`](https://developer.fastly.com/reference/api/services/resources/secret-store) (POST)
- [`/resources/stores/secret/signing-key`](https://developer.fastly.com/reference/api/services/resources/secret-store) (GET)
- [`/resources/stores/secret/{store_id}/secrets/{secret_name}`](https://developer.fastly.com/reference/api/services/resources/secret) (DELETE, GET)
Expand All @@ -541,7 +544,6 @@ The fastly-go API client currently does not support the following endpoints:
- [`/service/{service_id}/version/{version_id}/generated_vcl/content`](https://developer.fastly.com/reference/api/vcl-services/vcl) (GET)
- [`/service/{service_id}/version/{version_id}/logging/kafka/{logging_kafka_name}`](https://developer.fastly.com/reference/api/logging/kafka) (PUT)
- [`/service/{service_id}/version/{version_id}/logging/kinesis/{logging_kinesis_name}`](https://developer.fastly.com/reference/api/logging/kinesis) (PUT)
- [`/service/{service_id}/version/{version_id}/rate-limiters`](https://developer.fastly.com/reference/api/vcl-services/rate-limiter) (POST)
- [`/service/{service_id}/version/{version_id}/request_settings`](https://developer.fastly.com/reference/api/vcl-services/request-settings) (POST)
- [`/service/{service_id}/version/{version_id}/response_object/{response_object_name}`](https://developer.fastly.com/reference/api/vcl-services/response-object) (PUT)
- [`/service/{service_id}/version/{version_id}/response_object`](https://developer.fastly.com/reference/api/vcl-services/response-object) (POST)
Expand Down
158 changes: 158 additions & 0 deletions docs/AutomationToken.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
# AutomationToken

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **string** | The name of the token. | [optional]
**Role** | Pointer to **string** | The role on the token. | [optional]
**Services** | Pointer to **[]string** | (Optional) The service IDs of the services the token will have access to. Separate service IDs with a space. If no services are specified, the token will have access to all services on the account. | [optional]
**Scope** | Pointer to **string** | A space-delimited list of authorization scope. | [optional] [default to "global"]
**ExpiresAt** | Pointer to **string** | A UTC time-stamp of when the token expires. | [optional]

## Methods

### NewAutomationToken

`func NewAutomationToken() *AutomationToken`

NewAutomationToken instantiates a new AutomationToken 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

### NewAutomationTokenWithDefaults

`func NewAutomationTokenWithDefaults() *AutomationToken`

NewAutomationTokenWithDefaults instantiates a new AutomationToken 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

### GetName

`func (o *AutomationToken) GetName() string`

GetName returns the Name field if non-nil, zero value otherwise.

### GetNameOk

`func (o *AutomationToken) GetNameOk() (*string, bool)`

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

### SetName

`func (o *AutomationToken) SetName(v string)`

SetName sets Name field to given value.

### HasName

`func (o *AutomationToken) HasName() bool`

HasName returns a boolean if a field has been set.

### GetRole

`func (o *AutomationToken) GetRole() string`

GetRole returns the Role field if non-nil, zero value otherwise.

### GetRoleOk

`func (o *AutomationToken) GetRoleOk() (*string, bool)`

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

### SetRole

`func (o *AutomationToken) SetRole(v string)`

SetRole sets Role field to given value.

### HasRole

`func (o *AutomationToken) HasRole() bool`

HasRole returns a boolean if a field has been set.

### GetServices

`func (o *AutomationToken) GetServices() []string`

GetServices returns the Services field if non-nil, zero value otherwise.

### GetServicesOk

`func (o *AutomationToken) GetServicesOk() (*[]string, bool)`

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

### SetServices

`func (o *AutomationToken) SetServices(v []string)`

SetServices sets Services field to given value.

### HasServices

`func (o *AutomationToken) HasServices() bool`

HasServices returns a boolean if a field has been set.

### GetScope

`func (o *AutomationToken) GetScope() string`

GetScope returns the Scope field if non-nil, zero value otherwise.

### GetScopeOk

`func (o *AutomationToken) GetScopeOk() (*string, bool)`

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

### SetScope

`func (o *AutomationToken) SetScope(v string)`

SetScope sets Scope field to given value.

### HasScope

`func (o *AutomationToken) HasScope() bool`

HasScope returns a boolean if a field has been set.

### GetExpiresAt

`func (o *AutomationToken) GetExpiresAt() string`

GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise.

### GetExpiresAtOk

`func (o *AutomationToken) GetExpiresAtOk() (*string, bool)`

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

### SetExpiresAt

`func (o *AutomationToken) SetExpiresAt(v string)`

SetExpiresAt sets ExpiresAt field to given value.

### HasExpiresAt

`func (o *AutomationToken) HasExpiresAt() bool`

HasExpiresAt returns a boolean if a field has been set.


[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md)
54 changes: 54 additions & 0 deletions docs/AutomationTokenCreateRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# AutomationTokenCreateRequest

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Attributes** | Pointer to [**AutomationTokenCreateRequestAttributes**](AutomationTokenCreateRequestAttributes.md) | | [optional]

## Methods

### NewAutomationTokenCreateRequest

`func NewAutomationTokenCreateRequest() *AutomationTokenCreateRequest`

NewAutomationTokenCreateRequest instantiates a new AutomationTokenCreateRequest 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

### NewAutomationTokenCreateRequestWithDefaults

`func NewAutomationTokenCreateRequestWithDefaults() *AutomationTokenCreateRequest`

NewAutomationTokenCreateRequestWithDefaults instantiates a new AutomationTokenCreateRequest 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

### GetAttributes

`func (o *AutomationTokenCreateRequest) GetAttributes() AutomationTokenCreateRequestAttributes`

GetAttributes returns the Attributes field if non-nil, zero value otherwise.

### GetAttributesOk

`func (o *AutomationTokenCreateRequest) GetAttributesOk() (*AutomationTokenCreateRequestAttributes, bool)`

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

### SetAttributes

`func (o *AutomationTokenCreateRequest) SetAttributes(v AutomationTokenCreateRequestAttributes)`

SetAttributes sets Attributes field to given value.

### HasAttributes

`func (o *AutomationTokenCreateRequest) HasAttributes() bool`

HasAttributes returns a boolean if a field has been set.


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

0 comments on commit fa0ef12

Please sign in to comment.