Skip to content

Commit 928e0c3

Browse files
chore(api): update composite API spec
1 parent 902cbe3 commit 928e0c3

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 2028
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a0c559a1a66abed919ab48f1250e6e27646b70fc620808ce1e758d930be17829.yml
3-
openapi_spec_hash: 629af4f49ec06a0c74562b575c7c4f11
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0aa90536a3aa68340d37a3389461eed6b13c9f5561ca9ad8aa46d2ca4cbb1701.yml
3+
openapi_spec_hash: 95c0ec155c861dacf17154c43cba13f8
44
config_hash: a4197f3e022bd501a828d1252b76e06e

stream/liveinput.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ type LiveInput struct {
145145
// indicate no change, or include with a `null` value to remove an existing
146146
// scheduled deletion.
147147
DeleteRecordingAfterDays float64 `json:"deleteRecordingAfterDays"`
148+
// Indicates whether the live input is enabled and can accept streams.
149+
Enabled bool `json:"enabled"`
148150
// A user modifiable key-value store used to reference other systems of record for
149151
// managing live inputs.
150152
Meta interface{} `json:"meta"`
@@ -177,6 +179,7 @@ type LiveInput struct {
177179
type liveInputJSON struct {
178180
Created apijson.Field
179181
DeleteRecordingAfterDays apijson.Field
182+
Enabled apijson.Field
180183
Meta apijson.Field
181184
Modified apijson.Field
182185
Recording apijson.Field
@@ -475,6 +478,8 @@ type LiveInputListResponseLiveInput struct {
475478
// indicate no change, or include with a `null` value to remove an existing
476479
// scheduled deletion.
477480
DeleteRecordingAfterDays float64 `json:"deleteRecordingAfterDays"`
481+
// Indicates whether the live input is enabled and can accept streams.
482+
Enabled bool `json:"enabled"`
478483
// A user modifiable key-value store used to reference other systems of record for
479484
// managing live inputs.
480485
Meta interface{} `json:"meta"`
@@ -490,6 +495,7 @@ type LiveInputListResponseLiveInput struct {
490495
type liveInputListResponseLiveInputJSON struct {
491496
Created apijson.Field
492497
DeleteRecordingAfterDays apijson.Field
498+
Enabled apijson.Field
493499
Meta apijson.Field
494500
Modified apijson.Field
495501
UID apijson.Field
@@ -516,6 +522,8 @@ type LiveInputNewParams struct {
516522
// indicate no change, or include with a `null` value to remove an existing
517523
// scheduled deletion.
518524
DeleteRecordingAfterDays param.Field[float64] `json:"deleteRecordingAfterDays"`
525+
// Indicates whether the live input is enabled and can accept streams.
526+
Enabled param.Field[bool] `json:"enabled"`
519527
// A user modifiable key-value store used to reference other systems of record for
520528
// managing live inputs.
521529
Meta param.Field[interface{}] `json:"meta"`
@@ -727,6 +735,8 @@ type LiveInputUpdateParams struct {
727735
// indicate no change, or include with a `null` value to remove an existing
728736
// scheduled deletion.
729737
DeleteRecordingAfterDays param.Field[float64] `json:"deleteRecordingAfterDays"`
738+
// Indicates whether the live input is enabled and can accept streams.
739+
Enabled param.Field[bool] `json:"enabled"`
730740
// A user modifiable key-value store used to reference other systems of record for
731741
// managing live inputs.
732742
Meta param.Field[interface{}] `json:"meta"`

stream/liveinput_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ func TestLiveInputNewWithOptionalParams(t *testing.T) {
3131
AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
3232
DefaultCreator: cloudflare.F("defaultCreator"),
3333
DeleteRecordingAfterDays: cloudflare.F(45.000000),
34+
Enabled: cloudflare.F(true),
3435
Meta: cloudflare.F[any](map[string]interface{}{
3536
"name": "test stream 1",
3637
}),
@@ -71,6 +72,7 @@ func TestLiveInputUpdateWithOptionalParams(t *testing.T) {
7172
AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
7273
DefaultCreator: cloudflare.F("defaultCreator"),
7374
DeleteRecordingAfterDays: cloudflare.F(45.000000),
75+
Enabled: cloudflare.F(true),
7476
Meta: cloudflare.F[any](map[string]interface{}{
7577
"name": "test stream 1",
7678
}),

0 commit comments

Comments
 (0)