Skip to content

Commit

Permalink
feat(api): api update (#3839)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Jan 30, 2025
1 parent 95af993 commit 8674441
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1493
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-bac30cf3609d26642f1dadb7fdadadeb8c854cb52f64dd6be1cc82fa45ffc465.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-443edbd0e6675b5d9ccef1192c2f36ecd69cbe5d896c00e15d172a2ab8eb5702.yml
6 changes: 4 additions & 2 deletions zero_trust/accessservicetoken.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,9 @@ type ServiceToken struct {
// The duration for how long the service token will be valid. Must be in the format
// `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, m, h. The
// default is 1 year in hours (8760h).
Duration string `json:"duration"`
ExpiresAt time.Time `json:"expires_at" format:"date-time"`
Duration string `json:"duration"`
ExpiresAt time.Time `json:"expires_at" format:"date-time"`
LastSeenAt time.Time `json:"last_seen_at" format:"date-time"`
// The name of the service token.
Name string `json:"name"`
UpdatedAt time.Time `json:"updated_at" format:"date-time"`
Expand All @@ -284,6 +285,7 @@ type serviceTokenJSON struct {
CreatedAt apijson.Field
Duration apijson.Field
ExpiresAt apijson.Field
LastSeenAt apijson.Field
Name apijson.Field
UpdatedAt apijson.Field
raw string
Expand Down
12 changes: 8 additions & 4 deletions zero_trust/organizationdoh.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ type OrganizationDOHUpdateResponse struct {
// The duration for how long the service token will be valid. Must be in the format
// `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, m, h. The
// default is 1 year in hours (8760h).
Duration string `json:"duration"`
ExpiresAt time.Time `json:"expires_at" format:"date-time"`
Duration string `json:"duration"`
ExpiresAt time.Time `json:"expires_at" format:"date-time"`
LastSeenAt time.Time `json:"last_seen_at" format:"date-time"`
// The name of the service token.
Name string `json:"name"`
UpdatedAt time.Time `json:"updated_at" format:"date-time"`
Expand All @@ -101,6 +102,7 @@ type organizationDOHUpdateResponseJSON struct {
DOHJWTDuration apijson.Field
Duration apijson.Field
ExpiresAt apijson.Field
LastSeenAt apijson.Field
Name apijson.Field
UpdatedAt apijson.Field
raw string
Expand Down Expand Up @@ -129,8 +131,9 @@ type OrganizationDOHGetResponse struct {
// The duration for how long the service token will be valid. Must be in the format
// `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, m, h. The
// default is 1 year in hours (8760h).
Duration string `json:"duration"`
ExpiresAt time.Time `json:"expires_at" format:"date-time"`
Duration string `json:"duration"`
ExpiresAt time.Time `json:"expires_at" format:"date-time"`
LastSeenAt time.Time `json:"last_seen_at" format:"date-time"`
// The name of the service token.
Name string `json:"name"`
UpdatedAt time.Time `json:"updated_at" format:"date-time"`
Expand All @@ -146,6 +149,7 @@ type organizationDOHGetResponseJSON struct {
DOHJWTDuration apijson.Field
Duration apijson.Field
ExpiresAt apijson.Field
LastSeenAt apijson.Field
Name apijson.Field
UpdatedAt apijson.Field
raw string
Expand Down

0 comments on commit 8674441

Please sign in to comment.