Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.374.2
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Oct 20, 2024
1 parent adec65e commit f997dc5
Show file tree
Hide file tree
Showing 791 changed files with 4,683 additions and 43,188 deletions.
801 changes: 85 additions & 716 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
go:
version: 0.3.0
version: 0.3.1
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
8 changes: 4 additions & 4 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ speakeasyVersion: 1.374.2
sources:
Metronome-OAS:
sourceNamespace: metronome-oas
sourceRevisionDigest: sha256:5670b25a831885bc14322c825dbecdc7a53afafec1db4858f889d1d0c366c74a
sourceBlobDigest: sha256:d17d45fe8bd8bb2b9686fe13fdf57394c96b78684a62e17d654ecf3815f065cc
sourceRevisionDigest: sha256:7698d40de7405bd45bfd82cdafcdd784c49efd7731c42fd73190898e43bd7db0
sourceBlobDigest: sha256:728bc78ba0049eb0a3ed9de7b71d31c2dafcd9b95746c982b8604f7f97dd5e27
tags:
- latest
- main
targets:
metronome:
source: Metronome-OAS
sourceNamespace: metronome-oas
sourceRevisionDigest: sha256:5670b25a831885bc14322c825dbecdc7a53afafec1db4858f889d1d0c366c74a
sourceBlobDigest: sha256:d17d45fe8bd8bb2b9686fe13fdf57394c96b78684a62e17d654ecf3815f065cc
sourceRevisionDigest: sha256:7698d40de7405bd45bfd82cdafcdd784c49efd7731c42fd73190898e43bd7db0
sourceBlobDigest: sha256:728bc78ba0049eb0a3ed9de7b71d31c2dafcd9b95746c982b8604f7f97dd5e27
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
Expand Down
78 changes: 54 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,21 @@ import (
"context"
metronomegosdk "github.com/speakeasy-sdks/metronome-go-sdk"
"github.com/speakeasy-sdks/metronome-go-sdk/models/operations"
"github.com/speakeasy-sdks/metronome-go-sdk/types"
"log"
)

func main() {
s := metronomegosdk.New(
metronomegosdk.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

var request *operations.SetCustomerBillableStatusRequestBody = &operations.SetCustomerBillableStatusRequestBody{
CustomerID: "04ca7e72-4229-4a6e-ab11-9f7376fccbcb",
BillableStatus: operations.BillableStatusBillable,
EffectiveAt: types.MustTimeFromString("2021-01-01T00:00:00Z"),
}
ctx := context.Background()
res, err := s.Customers.SetBillableStatus(ctx, nil)
res, err := s.Customers.SetBillableStatus(ctx, request)
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -92,16 +97,7 @@ func main() {

### [Contracts](docs/sdks/contracts/README.md)

* [Get](docs/sdks/contracts/README.md#get) - Get a contract
* [List](docs/sdks/contracts/README.md#list) - List customer contracts
* [Create](docs/sdks/contracts/README.md#create) - Create a contract
* [Amend](docs/sdks/contracts/README.md#amend) - Amend a contract
* [Archive](docs/sdks/contracts/README.md#archive) - Archive a contract
* [SetUsageFilter](docs/sdks/contracts/README.md#setusagefilter) - Set a contract usage filter
* [AddManualBalanceEntry](docs/sdks/contracts/README.md#addmanualbalanceentry) - Add a manual balance entry
* [UpdateEndDate](docs/sdks/contracts/README.md#updateenddate) - Update the contract end date
* [GetRateSchedule](docs/sdks/contracts/README.md#getrateschedule) - Get the rate schedule for a contract
* [ScheduleProServicesInvoice](docs/sdks/contracts/README.md#scheduleproservicesinvoice) - Schedule ProService invoice
* [CreateHistoricalContractUsageInvoices](docs/sdks/contracts/README.md#createhistoricalcontractusageinvoices) - Create historical invoices

### [Contracts.NamedSchedules](docs/sdks/metronomenamedschedules/README.md)

Expand All @@ -114,6 +110,10 @@ func main() {
* [Create](docs/sdks/customercommits/README.md#create) - Create a commit
* [UpdateEndDate](docs/sdks/customercommits/README.md#updateenddate) - Update the commit end date

### [CreditsAndCommits](docs/sdks/creditsandcommits/README.md)

* [DisableCommitTrueup](docs/sdks/creditsandcommits/README.md#disablecommittrueup) - Disable trueup for commit

### [CustomerCredits](docs/sdks/customercredits/README.md)

* [List](docs/sdks/customercredits/README.md#list) - List credits
Expand All @@ -139,6 +139,7 @@ import (
metronomegosdk "github.com/speakeasy-sdks/metronome-go-sdk"
"github.com/speakeasy-sdks/metronome-go-sdk/models/operations"
"github.com/speakeasy-sdks/metronome-go-sdk/retry"
"github.com/speakeasy-sdks/metronome-go-sdk/types"
"log"
"models/operations"
)
Expand All @@ -147,9 +148,13 @@ func main() {
s := metronomegosdk.New(
metronomegosdk.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

var request *operations.SetCustomerBillableStatusRequestBody = &operations.SetCustomerBillableStatusRequestBody{
CustomerID: "04ca7e72-4229-4a6e-ab11-9f7376fccbcb",
BillableStatus: operations.BillableStatusBillable,
EffectiveAt: types.MustTimeFromString("2021-01-01T00:00:00Z"),
}
ctx := context.Background()
res, err := s.Customers.SetBillableStatus(ctx, nil, operations.WithRetries(
res, err := s.Customers.SetBillableStatus(ctx, request, operations.WithRetries(
retry.Config{
Strategy: "backoff",
Backoff: &retry.BackoffStrategy{
Expand Down Expand Up @@ -179,6 +184,7 @@ import (
metronomegosdk "github.com/speakeasy-sdks/metronome-go-sdk"
"github.com/speakeasy-sdks/metronome-go-sdk/models/operations"
"github.com/speakeasy-sdks/metronome-go-sdk/retry"
"github.com/speakeasy-sdks/metronome-go-sdk/types"
"log"
)

Expand All @@ -197,9 +203,13 @@ func main() {
}),
metronomegosdk.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

var request *operations.SetCustomerBillableStatusRequestBody = &operations.SetCustomerBillableStatusRequestBody{
CustomerID: "04ca7e72-4229-4a6e-ab11-9f7376fccbcb",
BillableStatus: operations.BillableStatusBillable,
EffectiveAt: types.MustTimeFromString("2021-01-01T00:00:00Z"),
}
ctx := context.Background()
res, err := s.Customers.SetBillableStatus(ctx, nil)
res, err := s.Customers.SetBillableStatus(ctx, request)
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -233,16 +243,21 @@ import (
metronomegosdk "github.com/speakeasy-sdks/metronome-go-sdk"
"github.com/speakeasy-sdks/metronome-go-sdk/models/operations"
"github.com/speakeasy-sdks/metronome-go-sdk/models/sdkerrors"
"github.com/speakeasy-sdks/metronome-go-sdk/types"
"log"
)

func main() {
s := metronomegosdk.New(
metronomegosdk.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

var request *operations.SetCustomerBillableStatusRequestBody = &operations.SetCustomerBillableStatusRequestBody{
CustomerID: "04ca7e72-4229-4a6e-ab11-9f7376fccbcb",
BillableStatus: operations.BillableStatusBillable,
EffectiveAt: types.MustTimeFromString("2021-01-01T00:00:00Z"),
}
ctx := context.Background()
res, err := s.Customers.SetBillableStatus(ctx, nil)
res, err := s.Customers.SetBillableStatus(ctx, request)
if err != nil {

var e *sdkerrors.BadRequest
Expand Down Expand Up @@ -288,6 +303,7 @@ import (
"context"
metronomegosdk "github.com/speakeasy-sdks/metronome-go-sdk"
"github.com/speakeasy-sdks/metronome-go-sdk/models/operations"
"github.com/speakeasy-sdks/metronome-go-sdk/types"
"log"
)

Expand All @@ -296,9 +312,13 @@ func main() {
metronomegosdk.WithServerIndex(0),
metronomegosdk.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

var request *operations.SetCustomerBillableStatusRequestBody = &operations.SetCustomerBillableStatusRequestBody{
CustomerID: "04ca7e72-4229-4a6e-ab11-9f7376fccbcb",
BillableStatus: operations.BillableStatusBillable,
EffectiveAt: types.MustTimeFromString("2021-01-01T00:00:00Z"),
}
ctx := context.Background()
res, err := s.Customers.SetBillableStatus(ctx, nil)
res, err := s.Customers.SetBillableStatus(ctx, request)
if err != nil {
log.Fatal(err)
}
Expand All @@ -320,6 +340,7 @@ import (
"context"
metronomegosdk "github.com/speakeasy-sdks/metronome-go-sdk"
"github.com/speakeasy-sdks/metronome-go-sdk/models/operations"
"github.com/speakeasy-sdks/metronome-go-sdk/types"
"log"
)

Expand All @@ -328,9 +349,13 @@ func main() {
metronomegosdk.WithServerURL("https://api.metronome.com/v1"),
metronomegosdk.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

var request *operations.SetCustomerBillableStatusRequestBody = &operations.SetCustomerBillableStatusRequestBody{
CustomerID: "04ca7e72-4229-4a6e-ab11-9f7376fccbcb",
BillableStatus: operations.BillableStatusBillable,
EffectiveAt: types.MustTimeFromString("2021-01-01T00:00:00Z"),
}
ctx := context.Background()
res, err := s.Customers.SetBillableStatus(ctx, nil)
res, err := s.Customers.SetBillableStatus(ctx, request)
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -390,16 +415,21 @@ import (
"context"
metronomegosdk "github.com/speakeasy-sdks/metronome-go-sdk"
"github.com/speakeasy-sdks/metronome-go-sdk/models/operations"
"github.com/speakeasy-sdks/metronome-go-sdk/types"
"log"
)

func main() {
s := metronomegosdk.New(
metronomegosdk.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

var request *operations.SetCustomerBillableStatusRequestBody = &operations.SetCustomerBillableStatusRequestBody{
CustomerID: "04ca7e72-4229-4a6e-ab11-9f7376fccbcb",
BillableStatus: operations.BillableStatusBillable,
EffectiveAt: types.MustTimeFromString("2021-01-01T00:00:00Z"),
}
ctx := context.Background()
res, err := s.Customers.SetBillableStatus(ctx, nil)
res, err := s.Customers.SetBillableStatus(ctx, request)
if err != nil {
log.Fatal(err)
}
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,14 @@ Based on:
### Generated
- [go v0.3.0] .
### Releases
- [Go v0.3.0] https://github.com/speakeasy-sdks/metronome-go-sdk/releases/tag/v0.3.0 - .
- [Go v0.3.0] https://github.com/speakeasy-sdks/metronome-go-sdk/releases/tag/v0.3.0 - .

## 2024-10-20 00:05:49
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.374.2 (2.401.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.3.1] .
### Releases
- [Go v0.3.1] https://github.com/speakeasy-sdks/metronome-go-sdk/releases/tag/v0.3.1 - .
9 changes: 7 additions & 2 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,21 @@ import (
"context"
metronomegosdk "github.com/speakeasy-sdks/metronome-go-sdk"
"github.com/speakeasy-sdks/metronome-go-sdk/models/operations"
"github.com/speakeasy-sdks/metronome-go-sdk/types"
"log"
)

func main() {
s := metronomegosdk.New(
metronomegosdk.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

var request *operations.SetCustomerBillableStatusRequestBody = &operations.SetCustomerBillableStatusRequestBody{
CustomerID: "04ca7e72-4229-4a6e-ab11-9f7376fccbcb",
BillableStatus: operations.BillableStatusBillable,
EffectiveAt: types.MustTimeFromString("2021-01-01T00:00:00Z"),
}
ctx := context.Background()
res, err := s.Customers.SetBillableStatus(ctx, nil)
res, err := s.Customers.SetBillableStatus(ctx, request)
if err != nil {
log.Fatal(err)
}
Expand Down
Loading

0 comments on commit f997dc5

Please sign in to comment.