Skip to content

Commit

Permalink
feat: OpenAPI spec update via Stainless API
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Feb 27, 2024
1 parent bc3be11 commit 82e1b44
Show file tree
Hide file tree
Showing 116 changed files with 774 additions and 5,024 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 1249
configured_endpoints: 1235
112 changes: 0 additions & 112 deletions api.md

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions radaras112.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ type RadarAs112TimeseriesParams struct {
// For example, `-174, 3356` excludes results from AS174, but includes results from
// AS3356.
ASN param.Field[[]string] `query:"asn"`
// Array of comma separated list of continents (alpha-2 continent codes). Start
// with `-` to exclude from results. For example, `-EU,NA` excludes results from
// Europe, but includes results from North America.
Continent param.Field[[]string] `query:"continent"`
// End of the date range (inclusive).
DateEnd param.Field[[]time.Time] `query:"dateEnd" format:"date-time"`
// For example, use `7d` and `7dControl` to compare this week with the previous
Expand Down
1 change: 1 addition & 0 deletions radaras112_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func TestRadarAs112TimeseriesWithOptionalParams(t *testing.T) {
_, err := client.Radar.As112.Timeseries(context.TODO(), cloudflare.RadarAs112TimeseriesParams{
AggInterval: cloudflare.F(cloudflare.RadarAs112TimeseriesParamsAggInterval1h),
ASN: cloudflare.F([]string{"string", "string", "string"}),
Continent: cloudflare.F([]string{"string", "string", "string"}),
DateEnd: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
DateRange: cloudflare.F([]cloudflare.RadarAs112TimeseriesParamsDateRange{cloudflare.RadarAs112TimeseriesParamsDateRange1d, cloudflare.RadarAs112TimeseriesParamsDateRange2d, cloudflare.RadarAs112TimeseriesParamsDateRange7d}),
DateStart: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
Expand Down
24 changes: 24 additions & 0 deletions radaras112summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,10 @@ type RadarAs112SummaryDNSSECParams struct {
// For example, `-174, 3356` excludes results from AS174, but includes results from
// AS3356.
ASN param.Field[[]string] `query:"asn"`
// Array of comma separated list of continents (alpha-2 continent codes). Start
// with `-` to exclude from results. For example, `-EU,NA` excludes results from
// Europe, but includes results from North America.
Continent param.Field[[]string] `query:"continent"`
// End of the date range (inclusive).
DateEnd param.Field[[]time.Time] `query:"dateEnd" format:"date-time"`
// For example, use `7d` and `7dControl` to compare this week with the previous
Expand Down Expand Up @@ -988,6 +992,10 @@ type RadarAs112SummaryEdnsParams struct {
// For example, `-174, 3356` excludes results from AS174, but includes results from
// AS3356.
ASN param.Field[[]string] `query:"asn"`
// Array of comma separated list of continents (alpha-2 continent codes). Start
// with `-` to exclude from results. For example, `-EU,NA` excludes results from
// Europe, but includes results from North America.
Continent param.Field[[]string] `query:"continent"`
// End of the date range (inclusive).
DateEnd param.Field[[]time.Time] `query:"dateEnd" format:"date-time"`
// For example, use `7d` and `7dControl` to compare this week with the previous
Expand Down Expand Up @@ -1067,6 +1075,10 @@ type RadarAs112SummaryIPVersionParams struct {
// For example, `-174, 3356` excludes results from AS174, but includes results from
// AS3356.
ASN param.Field[[]string] `query:"asn"`
// Array of comma separated list of continents (alpha-2 continent codes). Start
// with `-` to exclude from results. For example, `-EU,NA` excludes results from
// Europe, but includes results from North America.
Continent param.Field[[]string] `query:"continent"`
// End of the date range (inclusive).
DateEnd param.Field[[]time.Time] `query:"dateEnd" format:"date-time"`
// For example, use `7d` and `7dControl` to compare this week with the previous
Expand Down Expand Up @@ -1146,6 +1158,10 @@ type RadarAs112SummaryProtocolParams struct {
// For example, `-174, 3356` excludes results from AS174, but includes results from
// AS3356.
ASN param.Field[[]string] `query:"asn"`
// Array of comma separated list of continents (alpha-2 continent codes). Start
// with `-` to exclude from results. For example, `-EU,NA` excludes results from
// Europe, but includes results from North America.
Continent param.Field[[]string] `query:"continent"`
// End of the date range (inclusive).
DateEnd param.Field[[]time.Time] `query:"dateEnd" format:"date-time"`
// For example, use `7d` and `7dControl` to compare this week with the previous
Expand Down Expand Up @@ -1225,6 +1241,10 @@ type RadarAs112SummaryQueryTypeParams struct {
// For example, `-174, 3356` excludes results from AS174, but includes results from
// AS3356.
ASN param.Field[[]string] `query:"asn"`
// Array of comma separated list of continents (alpha-2 continent codes). Start
// with `-` to exclude from results. For example, `-EU,NA` excludes results from
// Europe, but includes results from North America.
Continent param.Field[[]string] `query:"continent"`
// End of the date range (inclusive).
DateEnd param.Field[[]time.Time] `query:"dateEnd" format:"date-time"`
// For example, use `7d` and `7dControl` to compare this week with the previous
Expand Down Expand Up @@ -1304,6 +1324,10 @@ type RadarAs112SummaryResponseCodesParams struct {
// For example, `-174, 3356` excludes results from AS174, but includes results from
// AS3356.
ASN param.Field[[]string] `query:"asn"`
// Array of comma separated list of continents (alpha-2 continent codes). Start
// with `-` to exclude from results. For example, `-EU,NA` excludes results from
// Europe, but includes results from North America.
Continent param.Field[[]string] `query:"continent"`
// End of the date range (inclusive).
DateEnd param.Field[[]time.Time] `query:"dateEnd" format:"date-time"`
// For example, use `7d` and `7dControl` to compare this week with the previous
Expand Down
6 changes: 6 additions & 0 deletions radaras112summary_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func TestRadarAs112SummaryDNSSECWithOptionalParams(t *testing.T) {
)
_, err := client.Radar.As112.Summary.DNSSEC(context.TODO(), cloudflare.RadarAs112SummaryDNSSECParams{
ASN: cloudflare.F([]string{"string", "string", "string"}),
Continent: cloudflare.F([]string{"string", "string", "string"}),
DateEnd: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
DateRange: cloudflare.F([]cloudflare.RadarAs112SummaryDNSSECParamsDateRange{cloudflare.RadarAs112SummaryDNSSECParamsDateRange1d, cloudflare.RadarAs112SummaryDNSSECParamsDateRange2d, cloudflare.RadarAs112SummaryDNSSECParamsDateRange7d}),
DateStart: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
Expand Down Expand Up @@ -66,6 +67,7 @@ func TestRadarAs112SummaryEdnsWithOptionalParams(t *testing.T) {
)
_, err := client.Radar.As112.Summary.Edns(context.TODO(), cloudflare.RadarAs112SummaryEdnsParams{
ASN: cloudflare.F([]string{"string", "string", "string"}),
Continent: cloudflare.F([]string{"string", "string", "string"}),
DateEnd: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
DateRange: cloudflare.F([]cloudflare.RadarAs112SummaryEdnsParamsDateRange{cloudflare.RadarAs112SummaryEdnsParamsDateRange1d, cloudflare.RadarAs112SummaryEdnsParamsDateRange2d, cloudflare.RadarAs112SummaryEdnsParamsDateRange7d}),
DateStart: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
Expand Down Expand Up @@ -100,6 +102,7 @@ func TestRadarAs112SummaryIPVersionWithOptionalParams(t *testing.T) {
)
_, err := client.Radar.As112.Summary.IPVersion(context.TODO(), cloudflare.RadarAs112SummaryIPVersionParams{
ASN: cloudflare.F([]string{"string", "string", "string"}),
Continent: cloudflare.F([]string{"string", "string", "string"}),
DateEnd: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
DateRange: cloudflare.F([]cloudflare.RadarAs112SummaryIPVersionParamsDateRange{cloudflare.RadarAs112SummaryIPVersionParamsDateRange1d, cloudflare.RadarAs112SummaryIPVersionParamsDateRange2d, cloudflare.RadarAs112SummaryIPVersionParamsDateRange7d}),
DateStart: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
Expand Down Expand Up @@ -134,6 +137,7 @@ func TestRadarAs112SummaryProtocolWithOptionalParams(t *testing.T) {
)
_, err := client.Radar.As112.Summary.Protocol(context.TODO(), cloudflare.RadarAs112SummaryProtocolParams{
ASN: cloudflare.F([]string{"string", "string", "string"}),
Continent: cloudflare.F([]string{"string", "string", "string"}),
DateEnd: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
DateRange: cloudflare.F([]cloudflare.RadarAs112SummaryProtocolParamsDateRange{cloudflare.RadarAs112SummaryProtocolParamsDateRange1d, cloudflare.RadarAs112SummaryProtocolParamsDateRange2d, cloudflare.RadarAs112SummaryProtocolParamsDateRange7d}),
DateStart: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
Expand Down Expand Up @@ -168,6 +172,7 @@ func TestRadarAs112SummaryQueryTypeWithOptionalParams(t *testing.T) {
)
_, err := client.Radar.As112.Summary.QueryType(context.TODO(), cloudflare.RadarAs112SummaryQueryTypeParams{
ASN: cloudflare.F([]string{"string", "string", "string"}),
Continent: cloudflare.F([]string{"string", "string", "string"}),
DateEnd: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
DateRange: cloudflare.F([]cloudflare.RadarAs112SummaryQueryTypeParamsDateRange{cloudflare.RadarAs112SummaryQueryTypeParamsDateRange1d, cloudflare.RadarAs112SummaryQueryTypeParamsDateRange2d, cloudflare.RadarAs112SummaryQueryTypeParamsDateRange7d}),
DateStart: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
Expand Down Expand Up @@ -202,6 +207,7 @@ func TestRadarAs112SummaryResponseCodesWithOptionalParams(t *testing.T) {
)
_, err := client.Radar.As112.Summary.ResponseCodes(context.TODO(), cloudflare.RadarAs112SummaryResponseCodesParams{
ASN: cloudflare.F([]string{"string", "string", "string"}),
Continent: cloudflare.F([]string{"string", "string", "string"}),
DateEnd: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
DateRange: cloudflare.F([]cloudflare.RadarAs112SummaryResponseCodesParamsDateRange{cloudflare.RadarAs112SummaryResponseCodesParamsDateRange1d, cloudflare.RadarAs112SummaryResponseCodesParamsDateRange2d, cloudflare.RadarAs112SummaryResponseCodesParamsDateRange7d}),
DateStart: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
Expand Down
24 changes: 24 additions & 0 deletions radaras112timeseriesgroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,10 @@ type RadarAs112TimeseriesGroupDNSSECParams struct {
// For example, `-174, 3356` excludes results from AS174, but includes results from
// AS3356.
ASN param.Field[[]string] `query:"asn"`
// Array of comma separated list of continents (alpha-2 continent codes). Start
// with `-` to exclude from results. For example, `-EU,NA` excludes results from
// Europe, but includes results from North America.
Continent param.Field[[]string] `query:"continent"`
// End of the date range (inclusive).
DateEnd param.Field[[]time.Time] `query:"dateEnd" format:"date-time"`
// For example, use `7d` and `7dControl` to compare this week with the previous
Expand Down Expand Up @@ -450,6 +454,10 @@ type RadarAs112TimeseriesGroupEdnsParams struct {
// For example, `-174, 3356` excludes results from AS174, but includes results from
// AS3356.
ASN param.Field[[]string] `query:"asn"`
// Array of comma separated list of continents (alpha-2 continent codes). Start
// with `-` to exclude from results. For example, `-EU,NA` excludes results from
// Europe, but includes results from North America.
Continent param.Field[[]string] `query:"continent"`
// End of the date range (inclusive).
DateEnd param.Field[[]time.Time] `query:"dateEnd" format:"date-time"`
// For example, use `7d` and `7dControl` to compare this week with the previous
Expand Down Expand Up @@ -545,6 +553,10 @@ type RadarAs112TimeseriesGroupIPVersionParams struct {
// For example, `-174, 3356` excludes results from AS174, but includes results from
// AS3356.
ASN param.Field[[]string] `query:"asn"`
// Array of comma separated list of continents (alpha-2 continent codes). Start
// with `-` to exclude from results. For example, `-EU,NA` excludes results from
// Europe, but includes results from North America.
Continent param.Field[[]string] `query:"continent"`
// End of the date range (inclusive).
DateEnd param.Field[[]time.Time] `query:"dateEnd" format:"date-time"`
// For example, use `7d` and `7dControl` to compare this week with the previous
Expand Down Expand Up @@ -640,6 +652,10 @@ type RadarAs112TimeseriesGroupProtocolParams struct {
// For example, `-174, 3356` excludes results from AS174, but includes results from
// AS3356.
ASN param.Field[[]string] `query:"asn"`
// Array of comma separated list of continents (alpha-2 continent codes). Start
// with `-` to exclude from results. For example, `-EU,NA` excludes results from
// Europe, but includes results from North America.
Continent param.Field[[]string] `query:"continent"`
// End of the date range (inclusive).
DateEnd param.Field[[]time.Time] `query:"dateEnd" format:"date-time"`
// For example, use `7d` and `7dControl` to compare this week with the previous
Expand Down Expand Up @@ -735,6 +751,10 @@ type RadarAs112TimeseriesGroupQueryTypeParams struct {
// For example, `-174, 3356` excludes results from AS174, but includes results from
// AS3356.
ASN param.Field[[]string] `query:"asn"`
// Array of comma separated list of continents (alpha-2 continent codes). Start
// with `-` to exclude from results. For example, `-EU,NA` excludes results from
// Europe, but includes results from North America.
Continent param.Field[[]string] `query:"continent"`
// End of the date range (inclusive).
DateEnd param.Field[[]time.Time] `query:"dateEnd" format:"date-time"`
// For example, use `7d` and `7dControl` to compare this week with the previous
Expand Down Expand Up @@ -830,6 +850,10 @@ type RadarAs112TimeseriesGroupResponseCodesParams struct {
// For example, `-174, 3356` excludes results from AS174, but includes results from
// AS3356.
ASN param.Field[[]string] `query:"asn"`
// Array of comma separated list of continents (alpha-2 continent codes). Start
// with `-` to exclude from results. For example, `-EU,NA` excludes results from
// Europe, but includes results from North America.
Continent param.Field[[]string] `query:"continent"`
// End of the date range (inclusive).
DateEnd param.Field[[]time.Time] `query:"dateEnd" format:"date-time"`
// For example, use `7d` and `7dControl` to compare this week with the previous
Expand Down
6 changes: 6 additions & 0 deletions radaras112timeseriesgroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func TestRadarAs112TimeseriesGroupDNSSECWithOptionalParams(t *testing.T) {
_, err := client.Radar.As112.TimeseriesGroups.DNSSEC(context.TODO(), cloudflare.RadarAs112TimeseriesGroupDNSSECParams{
AggInterval: cloudflare.F(cloudflare.RadarAs112TimeseriesGroupDNSSECParamsAggInterval1h),
ASN: cloudflare.F([]string{"string", "string", "string"}),
Continent: cloudflare.F([]string{"string", "string", "string"}),
DateEnd: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
DateRange: cloudflare.F([]cloudflare.RadarAs112TimeseriesGroupDNSSECParamsDateRange{cloudflare.RadarAs112TimeseriesGroupDNSSECParamsDateRange1d, cloudflare.RadarAs112TimeseriesGroupDNSSECParamsDateRange2d, cloudflare.RadarAs112TimeseriesGroupDNSSECParamsDateRange7d}),
DateStart: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
Expand Down Expand Up @@ -68,6 +69,7 @@ func TestRadarAs112TimeseriesGroupEdnsWithOptionalParams(t *testing.T) {
_, err := client.Radar.As112.TimeseriesGroups.Edns(context.TODO(), cloudflare.RadarAs112TimeseriesGroupEdnsParams{
AggInterval: cloudflare.F(cloudflare.RadarAs112TimeseriesGroupEdnsParamsAggInterval1h),
ASN: cloudflare.F([]string{"string", "string", "string"}),
Continent: cloudflare.F([]string{"string", "string", "string"}),
DateEnd: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
DateRange: cloudflare.F([]cloudflare.RadarAs112TimeseriesGroupEdnsParamsDateRange{cloudflare.RadarAs112TimeseriesGroupEdnsParamsDateRange1d, cloudflare.RadarAs112TimeseriesGroupEdnsParamsDateRange2d, cloudflare.RadarAs112TimeseriesGroupEdnsParamsDateRange7d}),
DateStart: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
Expand Down Expand Up @@ -103,6 +105,7 @@ func TestRadarAs112TimeseriesGroupIPVersionWithOptionalParams(t *testing.T) {
_, err := client.Radar.As112.TimeseriesGroups.IPVersion(context.TODO(), cloudflare.RadarAs112TimeseriesGroupIPVersionParams{
AggInterval: cloudflare.F(cloudflare.RadarAs112TimeseriesGroupIPVersionParamsAggInterval1h),
ASN: cloudflare.F([]string{"string", "string", "string"}),
Continent: cloudflare.F([]string{"string", "string", "string"}),
DateEnd: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
DateRange: cloudflare.F([]cloudflare.RadarAs112TimeseriesGroupIPVersionParamsDateRange{cloudflare.RadarAs112TimeseriesGroupIPVersionParamsDateRange1d, cloudflare.RadarAs112TimeseriesGroupIPVersionParamsDateRange2d, cloudflare.RadarAs112TimeseriesGroupIPVersionParamsDateRange7d}),
DateStart: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
Expand Down Expand Up @@ -138,6 +141,7 @@ func TestRadarAs112TimeseriesGroupProtocolWithOptionalParams(t *testing.T) {
_, err := client.Radar.As112.TimeseriesGroups.Protocol(context.TODO(), cloudflare.RadarAs112TimeseriesGroupProtocolParams{
AggInterval: cloudflare.F(cloudflare.RadarAs112TimeseriesGroupProtocolParamsAggInterval1h),
ASN: cloudflare.F([]string{"string", "string", "string"}),
Continent: cloudflare.F([]string{"string", "string", "string"}),
DateEnd: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
DateRange: cloudflare.F([]cloudflare.RadarAs112TimeseriesGroupProtocolParamsDateRange{cloudflare.RadarAs112TimeseriesGroupProtocolParamsDateRange1d, cloudflare.RadarAs112TimeseriesGroupProtocolParamsDateRange2d, cloudflare.RadarAs112TimeseriesGroupProtocolParamsDateRange7d}),
DateStart: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
Expand Down Expand Up @@ -173,6 +177,7 @@ func TestRadarAs112TimeseriesGroupQueryTypeWithOptionalParams(t *testing.T) {
_, err := client.Radar.As112.TimeseriesGroups.QueryType(context.TODO(), cloudflare.RadarAs112TimeseriesGroupQueryTypeParams{
AggInterval: cloudflare.F(cloudflare.RadarAs112TimeseriesGroupQueryTypeParamsAggInterval1h),
ASN: cloudflare.F([]string{"string", "string", "string"}),
Continent: cloudflare.F([]string{"string", "string", "string"}),
DateEnd: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
DateRange: cloudflare.F([]cloudflare.RadarAs112TimeseriesGroupQueryTypeParamsDateRange{cloudflare.RadarAs112TimeseriesGroupQueryTypeParamsDateRange1d, cloudflare.RadarAs112TimeseriesGroupQueryTypeParamsDateRange2d, cloudflare.RadarAs112TimeseriesGroupQueryTypeParamsDateRange7d}),
DateStart: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
Expand Down Expand Up @@ -208,6 +213,7 @@ func TestRadarAs112TimeseriesGroupResponseCodesWithOptionalParams(t *testing.T)
_, err := client.Radar.As112.TimeseriesGroups.ResponseCodes(context.TODO(), cloudflare.RadarAs112TimeseriesGroupResponseCodesParams{
AggInterval: cloudflare.F(cloudflare.RadarAs112TimeseriesGroupResponseCodesParamsAggInterval1h),
ASN: cloudflare.F([]string{"string", "string", "string"}),
Continent: cloudflare.F([]string{"string", "string", "string"}),
DateEnd: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
DateRange: cloudflare.F([]cloudflare.RadarAs112TimeseriesGroupResponseCodesParamsDateRange{cloudflare.RadarAs112TimeseriesGroupResponseCodesParamsDateRange1d, cloudflare.RadarAs112TimeseriesGroupResponseCodesParamsDateRange2d, cloudflare.RadarAs112TimeseriesGroupResponseCodesParamsDateRange7d}),
DateStart: cloudflare.F([]time.Time{time.Now(), time.Now(), time.Now()}),
Expand Down
Loading

0 comments on commit 82e1b44

Please sign in to comment.