Skip to content

Commit

Permalink
feat(dex): add commands support (#3710)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Dec 9, 2024
1 parent 609e2e3 commit 23f698b
Show file tree
Hide file tree
Showing 9 changed files with 854 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 1,2 @@
configured_endpoints: 1450
configured_endpoints: 1454
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-24f32ff8cc230aecb28b850e99ed99f6f66fba898e64194d21052c4c2b869a24.yml
28 changes: 28 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5165,6 5165,34 @@ Response Types:
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust">zero_trust</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#NetworkPathResponse">NetworkPathResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust">zero_trust</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#Percentiles">Percentiles</a>

### Commands

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust">zero_trust</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandNewResponse">DEXCommandNewResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust">zero_trust</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandListResponse">DEXCommandListResponse</a>

Methods:

- <code title="post /accounts/{account_id}/commands">client.ZeroTrust.DEX.Commands.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust">zero_trust</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandNewParams">DEXCommandNewParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust">zero_trust</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandNewResponse">DEXCommandNewResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/commands">client.ZeroTrust.DEX.Commands.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust">zero_trust</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandListParams">DEXCommandListParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/packages/pagination#V4PagePagination">V4PagePagination</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust">zero_trust</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandListResponse">DEXCommandListResponse</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

#### Downloads

Methods:

- <code title="get /accounts/{account_id}/commands/{command_id}/downloads/{filename}">client.ZeroTrust.DEX.Commands.Downloads.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandDownloadService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, commandID <a href="https://pkg.go.dev/builtin#string">string</a>, filename <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust">zero_trust</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandDownloadGetParams">DEXCommandDownloadGetParams</a>) (http.Response, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

#### Quota

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust">zero_trust</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandQuotaGetResponse">DEXCommandQuotaGetResponse</a>

Methods:

- <code title="get /accounts/{account_id}/commands/quota">client.ZeroTrust.DEX.Commands.Quota.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandQuotaService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust">zero_trust</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandQuotaGetParams">DEXCommandQuotaGetParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust">zero_trust</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/zero_trust#DEXCommandQuotaGetResponse">DEXCommandQuotaGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

### Colos

Response Types:
Expand Down
2 changes: 2 additions & 0 deletions zero_trust/dex.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 15,7 @@ import (
// the [NewDEXService] method instead.
type DEXService struct {
Options []option.RequestOption
Commands *DEXCommandService
Colos *DEXColoService
FleetStatus *DEXFleetStatusService
HTTPTests *DEXHTTPTestService
Expand All @@ -29,6 30,7 @@ type DEXService struct {
func NewDEXService(opts ...option.RequestOption) (r *DEXService) {
r = &DEXService{}
r.Options = opts
r.Commands = NewDEXCommandService(opts...)
r.Colos = NewDEXColoService(opts...)
r.FleetStatus = NewDEXFleetStatusService(opts...)
r.HTTPTests = NewDEXHTTPTestService(opts...)
Expand Down
Loading

0 comments on commit 23f698b

Please sign in to comment.