From 0adf3e109832895369f53e3f8042090ca3f96379 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 12 Apr 2024 17:22:20 +0000 Subject: [PATCH 01/52] feat(api): update via SDK Studio (#1782) --- .github/workflows/ci.yml | 4 +++- option/requestoption.go | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8aed1ed9900..00569c3040a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,9 +15,11 @@ jobs: steps: - uses: actions/checkout@v4 - + - name: Setup go uses: actions/setup-go@v5 - run: | go build ./... + + diff --git a/option/requestoption.go b/option/requestoption.go index 16e0bd8660f..3dada6b2fbb 100644 --- a/option/requestoption.go +++ b/option/requestoption.go @@ -191,7 +191,10 @@ func WithResponseInto(dst **http.Response) RequestOption { } } -// WithRequestBody returns a RequestOption that provides a custom serialized body with content type. +// WithRequestBody returns a RequestOption that provides a custom serialized body with the given +// content type. +// +// body accepts an io.Reader or raw []bytes. func WithRequestBody(contentType string, body any) RequestOption { return func(r *requestconfig.RequestConfig) error { if reader, ok := body.(io.Reader); ok { @@ -204,7 +207,7 @@ func WithRequestBody(contentType string, body any) RequestOption { return r.Apply(WithHeader("Content-Type", contentType)) } - return fmt.Errorf("body is must either be a byte slice or implement io.Reader") + return fmt.Errorf("body must be a byte slice or implement io.Reader") } } From 1079b16270db855b4c4170cc0401f50a14bd69ef Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 01:18:45 +0000 Subject: [PATCH 02/52] feat(api): update via SDK Studio (#1784) --- .stats.yml | 2 +- api.md | 26 ++ client.go | 3 + event_notifications/aliases.go | 109 ++++++++ event_notifications/eventnotification.go | 27 ++ event_notifications/r2.go | 26 ++ event_notifications/r2configuration.go | 99 +++++++ event_notifications/r2configuration_test.go | 45 ++++ event_notifications/r2configurationqueue.go | 245 ++++++++++++++++++ .../r2configurationqueue_test.go | 90 +++++++ internal/shared/union.go | 13 +- 11 files changed, 678 insertions(+), 7 deletions(-) create mode 100644 event_notifications/aliases.go create mode 100644 event_notifications/eventnotification.go create mode 100644 event_notifications/r2.go create mode 100644 event_notifications/r2configuration.go create mode 100644 event_notifications/r2configuration_test.go create mode 100644 event_notifications/r2configurationqueue.go create mode 100644 event_notifications/r2configurationqueue_test.go diff --git a/.stats.yml b/.stats.yml index d0e375fdcb3..ae473c1891a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1 +1 @@ -configured_endpoints: 1256 +configured_endpoints: 1259 diff --git a/api.md b/api.md index 36ffe60e7ea..ad583b9c13f 100644 --- a/api.md +++ b/api.md @@ -6814,3 +6814,29 @@ Methods: - client.CloudforceOne.Requests.Priority.Delete(ctx context.Context, accountIdentifier string, priorityIdentifer string) (cloudforce_one.RequestPriorityDeleteResponseUnion, error) - client.CloudforceOne.Requests.Priority.Get(ctx context.Context, accountIdentifier string, priorityIdentifer string) (cloudforce_one.Item, error) - client.CloudforceOne.Requests.Priority.Quota(ctx context.Context, accountIdentifier string) (cloudforce_one.Quota, error) + +# EventNotifications + +## R2 + +### Configuration + +Response Types: + +- event_notifications.R2ConfigurationGetResponse + +Methods: + +- client.EventNotifications.R2.Configuration.Get(ctx context.Context, bucketName string, query event_notifications.R2ConfigurationGetParams) (event_notifications.R2ConfigurationGetResponse, error) + +#### Queues + +Response Types: + +- event_notifications.R2ConfigurationQueueUpdateResponse +- event_notifications.R2ConfigurationQueueDeleteResponseUnion + +Methods: + +- client.EventNotifications.R2.Configuration.Queues.Update(ctx context.Context, bucketName string, queueID string, params event_notifications.R2ConfigurationQueueUpdateParams) (event_notifications.R2ConfigurationQueueUpdateResponse, error) +- client.EventNotifications.R2.Configuration.Queues.Delete(ctx context.Context, bucketName string, queueID string, body event_notifications.R2ConfigurationQueueDeleteParams) (event_notifications.R2ConfigurationQueueDeleteResponseUnion, error) diff --git a/client.go b/client.go index e00f1bb1d84..d3385f9e12d 100644 --- a/client.go +++ b/client.go @@ -32,6 +32,7 @@ import ( "github.com/cloudflare/cloudflare-go/v2/dnssec" "github.com/cloudflare/cloudflare-go/v2/durable_objects" "github.com/cloudflare/cloudflare-go/v2/email_routing" + "github.com/cloudflare/cloudflare-go/v2/event_notifications" "github.com/cloudflare/cloudflare-go/v2/filters" "github.com/cloudflare/cloudflare-go/v2/firewall" "github.com/cloudflare/cloudflare-go/v2/healthchecks" @@ -176,6 +177,7 @@ type Client struct { Snippets *snippets.SnippetService Calls *calls.CallService CloudforceOne *cloudforce_one.CloudforceOneService + EventNotifications *event_notifications.EventNotificationService } // NewClient generates a new client with the default option read from the @@ -281,6 +283,7 @@ func NewClient(opts ...option.RequestOption) (r *Client) { r.Snippets = snippets.NewSnippetService(opts...) r.Calls = calls.NewCallService(opts...) r.CloudforceOne = cloudforce_one.NewCloudforceOneService(opts...) + r.EventNotifications = event_notifications.NewEventNotificationService(opts...) return } diff --git a/event_notifications/aliases.go b/event_notifications/aliases.go new file mode 100644 index 00000000000..873cd0b5755 --- /dev/null +++ b/event_notifications/aliases.go @@ -0,0 +1,109 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +package event_notifications + +import ( + "github.com/cloudflare/cloudflare-go/v2/internal/apierror" + "github.com/cloudflare/cloudflare-go/v2/internal/shared" +) + +type Error = apierror.Error + +// This is an alias to an internal type. +type AuditLog = shared.AuditLog + +// This is an alias to an internal type. +type AuditLogAction = shared.AuditLogAction + +// This is an alias to an internal type. +type AuditLogActor = shared.AuditLogActor + +// The type of actor, whether a User, Cloudflare Admin, or an Automated System. +// +// This is an alias to an internal type. +type AuditLogActorType = shared.AuditLogActorType + +// This is an alias to an internal value. +const AuditLogActorTypeUser = shared.AuditLogActorTypeUser + +// This is an alias to an internal value. +const AuditLogActorTypeAdmin = shared.AuditLogActorTypeAdmin + +// This is an alias to an internal value. +const AuditLogActorTypeCloudflare = shared.AuditLogActorTypeCloudflare + +// This is an alias to an internal type. +type AuditLogOwner = shared.AuditLogOwner + +// This is an alias to an internal type. +type AuditLogResource = shared.AuditLogResource + +// A Cloudflare Tunnel that connects your origin to Cloudflare's edge. +// +// This is an alias to an internal type. +type CloudflareTunnel = shared.CloudflareTunnel + +// This is an alias to an internal type. +type CloudflareTunnelConnection = shared.CloudflareTunnelConnection + +// The type of tunnel. +// +// This is an alias to an internal type. +type CloudflareTunnelTunType = shared.CloudflareTunnelTunType + +// This is an alias to an internal value. +const CloudflareTunnelTunTypeCfdTunnel = shared.CloudflareTunnelTunTypeCfdTunnel + +// This is an alias to an internal value. +const CloudflareTunnelTunTypeWARPConnector = shared.CloudflareTunnelTunTypeWARPConnector + +// This is an alias to an internal value. +const CloudflareTunnelTunTypeIPSec = shared.CloudflareTunnelTunTypeIPSec + +// This is an alias to an internal value. +const CloudflareTunnelTunTypeGRE = shared.CloudflareTunnelTunTypeGRE + +// This is an alias to an internal value. +const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI + +// This is an alias to an internal type. +type ErrorData = shared.ErrorData + +// This is an alias to an internal type. +type Permission = shared.Permission + +// This is an alias to an internal type. +type PermissionGrant = shared.PermissionGrant + +// This is an alias to an internal type. +type PermissionGrantParam = shared.PermissionGrantParam + +// This is an alias to an internal type. +type ResponseInfo = shared.ResponseInfo + +// This is an alias to an internal type. +type Role = shared.Role + +// This is an alias to an internal type. +type User = shared.User + +// This is an alias to an internal type. +type UserRole = shared.UserRole + +// This is an alias to an internal type. +type UserRolesPermissions = shared.UserRolesPermissions + +// This is an alias to an internal type. +type UserUser = shared.UserUser + +// This is an alias to an internal type. +type UserParam = shared.UserParam + +// This is an alias to an internal type. +type UserRoleParam = shared.UserRoleParam + +// This is an alias to an internal type. +type UserRolesPermissionsParam = shared.UserRolesPermissionsParam + +// This is an alias to an internal type. +type UserUserParam = shared.UserUserParam diff --git a/event_notifications/eventnotification.go b/event_notifications/eventnotification.go new file mode 100644 index 00000000000..3ca9d36aab4 --- /dev/null +++ b/event_notifications/eventnotification.go @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +package event_notifications + +import ( + "github.com/cloudflare/cloudflare-go/v2/option" +) + +// EventNotificationService contains methods and other services that help with +// interacting with the cloudflare API. Note, unlike clients, this service does not +// read variables from the environment automatically. You should not instantiate +// this service directly, and instead use the [NewEventNotificationService] method +// instead. +type EventNotificationService struct { + Options []option.RequestOption + R2 *R2Service +} + +// NewEventNotificationService generates a new service that applies the given +// options to each request. These options are applied after the parent client's +// options (if there is one), and before any request-specific options. +func NewEventNotificationService(opts ...option.RequestOption) (r *EventNotificationService) { + r = &EventNotificationService{} + r.Options = opts + r.R2 = NewR2Service(opts...) + return +} diff --git a/event_notifications/r2.go b/event_notifications/r2.go new file mode 100644 index 00000000000..5ef22865c00 --- /dev/null +++ b/event_notifications/r2.go @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +package event_notifications + +import ( + "github.com/cloudflare/cloudflare-go/v2/option" +) + +// R2Service contains methods and other services that help with interacting with +// the cloudflare API. Note, unlike clients, this service does not read variables +// from the environment automatically. You should not instantiate this service +// directly, and instead use the [NewR2Service] method instead. +type R2Service struct { + Options []option.RequestOption + Configuration *R2ConfigurationService +} + +// NewR2Service generates a new service that applies the given options to each +// request. These options are applied after the parent client's options (if there +// is one), and before any request-specific options. +func NewR2Service(opts ...option.RequestOption) (r *R2Service) { + r = &R2Service{} + r.Options = opts + r.Configuration = NewR2ConfigurationService(opts...) + return +} diff --git a/event_notifications/r2configuration.go b/event_notifications/r2configuration.go new file mode 100644 index 00000000000..23c06736f8c --- /dev/null +++ b/event_notifications/r2configuration.go @@ -0,0 +1,99 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +package event_notifications + +import ( + "context" + "fmt" + "net/http" + + "github.com/cloudflare/cloudflare-go/v2/internal/apijson" + "github.com/cloudflare/cloudflare-go/v2/internal/param" + "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" + "github.com/cloudflare/cloudflare-go/v2/internal/shared" + "github.com/cloudflare/cloudflare-go/v2/option" +) + +// R2ConfigurationService contains methods and other services that help with +// interacting with the cloudflare API. Note, unlike clients, this service does not +// read variables from the environment automatically. You should not instantiate +// this service directly, and instead use the [NewR2ConfigurationService] method +// instead. +type R2ConfigurationService struct { + Options []option.RequestOption + Queues *R2ConfigurationQueueService +} + +// NewR2ConfigurationService generates a new service that applies the given options +// to each request. These options are applied after the parent client's options (if +// there is one), and before any request-specific options. +func NewR2ConfigurationService(opts ...option.RequestOption) (r *R2ConfigurationService) { + r = &R2ConfigurationService{} + r.Options = opts + r.Queues = NewR2ConfigurationQueueService(opts...) + return +} + +// Returns all notification rules for each queue for which bucket notifications are +// produced. +func (r *R2ConfigurationService) Get(ctx context.Context, bucketName string, query R2ConfigurationGetParams, opts ...option.RequestOption) (res *R2ConfigurationGetResponse, err error) { + opts = append(r.Options[:], opts...) + var env R2ConfigurationGetResponseEnvelope + path := fmt.Sprintf("accounts/%s/event_notifications/r2/%s/configuration", query.AccountID, bucketName) + err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...) + if err != nil { + return + } + res = &env.Result + return +} + +type R2ConfigurationGetResponse map[string]map[string]R2ConfigurationGetResponse + +type R2ConfigurationGetParams struct { + // Identifier + AccountID param.Field[string] `path:"account_id,required"` +} + +type R2ConfigurationGetResponseEnvelope struct { + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + Result R2ConfigurationGetResponse `json:"result,required"` + // Whether the API call was successful + Success R2ConfigurationGetResponseEnvelopeSuccess `json:"success,required"` + JSON r2ConfigurationGetResponseEnvelopeJSON `json:"-"` +} + +// r2ConfigurationGetResponseEnvelopeJSON contains the JSON metadata for the struct +// [R2ConfigurationGetResponseEnvelope] +type r2ConfigurationGetResponseEnvelopeJSON struct { + Errors apijson.Field + Messages apijson.Field + Result apijson.Field + Success apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *R2ConfigurationGetResponseEnvelope) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r r2ConfigurationGetResponseEnvelopeJSON) RawJSON() string { + return r.raw +} + +// Whether the API call was successful +type R2ConfigurationGetResponseEnvelopeSuccess bool + +const ( + R2ConfigurationGetResponseEnvelopeSuccessTrue R2ConfigurationGetResponseEnvelopeSuccess = true +) + +func (r R2ConfigurationGetResponseEnvelopeSuccess) IsKnown() bool { + switch r { + case R2ConfigurationGetResponseEnvelopeSuccessTrue: + return true + } + return false +} diff --git a/event_notifications/r2configuration_test.go b/event_notifications/r2configuration_test.go new file mode 100644 index 00000000000..b8893110b45 --- /dev/null +++ b/event_notifications/r2configuration_test.go @@ -0,0 +1,45 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +package event_notifications_test + +import ( + "context" + "errors" + "os" + "testing" + + "github.com/cloudflare/cloudflare-go/v2" + "github.com/cloudflare/cloudflare-go/v2/event_notifications" + "github.com/cloudflare/cloudflare-go/v2/internal/testutil" + "github.com/cloudflare/cloudflare-go/v2/option" +) + +func TestR2ConfigurationGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") + baseURL := "http://localhost:4010" + if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { + baseURL = envURL + } + if !testutil.CheckTestServer(t, baseURL) { + return + } + client := cloudflare.NewClient( + option.WithBaseURL(baseURL), + option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), + option.WithAPIEmail("user@example.com"), + ) + _, err := client.EventNotifications.R2.Configuration.Get( + context.TODO(), + "023e105f4ecef8ad9ca31a8372d0c353", + event_notifications.R2ConfigurationGetParams{ + AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), + }, + ) + if err != nil { + var apierr *cloudflare.Error + if errors.As(err, &apierr) { + t.Log(string(apierr.DumpRequest(true))) + } + t.Fatalf("err should be nil: %s", err.Error()) + } +} diff --git a/event_notifications/r2configurationqueue.go b/event_notifications/r2configurationqueue.go new file mode 100644 index 00000000000..f1d4c6f5adb --- /dev/null +++ b/event_notifications/r2configurationqueue.go @@ -0,0 +1,245 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +package event_notifications + +import ( + "context" + "fmt" + "net/http" + "reflect" + + "github.com/cloudflare/cloudflare-go/v2/internal/apijson" + "github.com/cloudflare/cloudflare-go/v2/internal/param" + "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" + "github.com/cloudflare/cloudflare-go/v2/internal/shared" + "github.com/cloudflare/cloudflare-go/v2/option" + "github.com/tidwall/gjson" +) + +// R2ConfigurationQueueService contains methods and other services that help with +// interacting with the cloudflare API. Note, unlike clients, this service does not +// read variables from the environment automatically. You should not instantiate +// this service directly, and instead use the [NewR2ConfigurationQueueService] +// method instead. +type R2ConfigurationQueueService struct { + Options []option.RequestOption +} + +// NewR2ConfigurationQueueService generates a new service that applies the given +// options to each request. These options are applied after the parent client's +// options (if there is one), and before any request-specific options. +func NewR2ConfigurationQueueService(opts ...option.RequestOption) (r *R2ConfigurationQueueService) { + r = &R2ConfigurationQueueService{} + r.Options = opts + return +} + +// Define the rules for a given queue which will determine event notification +// production. +func (r *R2ConfigurationQueueService) Update(ctx context.Context, bucketName string, queueID string, params R2ConfigurationQueueUpdateParams, opts ...option.RequestOption) (res *R2ConfigurationQueueUpdateResponse, err error) { + opts = append(r.Options[:], opts...) + var env R2ConfigurationQueueUpdateResponseEnvelope + path := fmt.Sprintf("accounts/%s/event_notifications/r2/%s/configuration/queues/%s", params.AccountID, bucketName, queueID) + err = requestconfig.ExecuteNewRequest(ctx, http.MethodPut, path, params, &env, opts...) + if err != nil { + return + } + res = &env.Result + return +} + +// Turn off all event notifications configured for delivery to a given queue. No +// further notifications will be produced for the queue once complete. +func (r *R2ConfigurationQueueService) Delete(ctx context.Context, bucketName string, queueID string, body R2ConfigurationQueueDeleteParams, opts ...option.RequestOption) (res *R2ConfigurationQueueDeleteResponseUnion, err error) { + opts = append(r.Options[:], opts...) + var env R2ConfigurationQueueDeleteResponseEnvelope + path := fmt.Sprintf("accounts/%s/event_notifications/r2/%s/configuration/queues/%s", body.AccountID, bucketName, queueID) + err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, nil, &env, opts...) + if err != nil { + return + } + res = &env.Result + return +} + +type R2ConfigurationQueueUpdateResponse struct { + EventNotificationDetailID string `json:"event_notification_detail_id"` + JSON r2ConfigurationQueueUpdateResponseJSON `json:"-"` +} + +// r2ConfigurationQueueUpdateResponseJSON contains the JSON metadata for the struct +// [R2ConfigurationQueueUpdateResponse] +type r2ConfigurationQueueUpdateResponseJSON struct { + EventNotificationDetailID apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *R2ConfigurationQueueUpdateResponse) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r r2ConfigurationQueueUpdateResponseJSON) RawJSON() string { + return r.raw +} + +// Union satisfied by +// [event_notifications.R2ConfigurationQueueDeleteResponseUnknown], +// [event_notifications.R2ConfigurationQueueDeleteResponseArray] or +// [shared.UnionString]. +type R2ConfigurationQueueDeleteResponseUnion interface { + ImplementsEventNotificationsR2ConfigurationQueueDeleteResponseUnion() +} + +func init() { + apijson.RegisterUnion( + reflect.TypeOf((*R2ConfigurationQueueDeleteResponseUnion)(nil)).Elem(), + "", + apijson.UnionVariant{ + TypeFilter: gjson.JSON, + Type: reflect.TypeOf(R2ConfigurationQueueDeleteResponseArray{}), + }, + apijson.UnionVariant{ + TypeFilter: gjson.String, + Type: reflect.TypeOf(shared.UnionString("")), + }, + ) +} + +type R2ConfigurationQueueDeleteResponseArray []interface{} + +func (r R2ConfigurationQueueDeleteResponseArray) ImplementsEventNotificationsR2ConfigurationQueueDeleteResponseUnion() { +} + +type R2ConfigurationQueueUpdateParams struct { + // Identifier + AccountID param.Field[string] `path:"account_id,required"` + // Array of rules to drive notifications + Rules param.Field[[]R2ConfigurationQueueUpdateParamsRule] `json:"rules"` +} + +func (r R2ConfigurationQueueUpdateParams) MarshalJSON() (data []byte, err error) { + return apijson.MarshalRoot(r) +} + +type R2ConfigurationQueueUpdateParamsRule struct { + // Array of R2 object actions that will trigger notifications + Actions param.Field[[]R2ConfigurationQueueUpdateParamsRulesAction] `json:"actions,required"` + // Notifications will be sent only for objects with this prefix + Prefix param.Field[string] `json:"prefix"` + // Notifications will be sent only for objects with this suffix + Suffix param.Field[string] `json:"suffix"` +} + +func (r R2ConfigurationQueueUpdateParamsRule) MarshalJSON() (data []byte, err error) { + return apijson.MarshalRoot(r) +} + +type R2ConfigurationQueueUpdateParamsRulesAction string + +const ( + R2ConfigurationQueueUpdateParamsRulesActionPutObject R2ConfigurationQueueUpdateParamsRulesAction = "PutObject" + R2ConfigurationQueueUpdateParamsRulesActionCopyObject R2ConfigurationQueueUpdateParamsRulesAction = "CopyObject" + R2ConfigurationQueueUpdateParamsRulesActionDeleteObject R2ConfigurationQueueUpdateParamsRulesAction = "DeleteObject" + R2ConfigurationQueueUpdateParamsRulesActionCompleteMultipartUpload R2ConfigurationQueueUpdateParamsRulesAction = "CompleteMultipartUpload" + R2ConfigurationQueueUpdateParamsRulesActionAbortMultipartUpload R2ConfigurationQueueUpdateParamsRulesAction = "AbortMultipartUpload" +) + +func (r R2ConfigurationQueueUpdateParamsRulesAction) IsKnown() bool { + switch r { + case R2ConfigurationQueueUpdateParamsRulesActionPutObject, R2ConfigurationQueueUpdateParamsRulesActionCopyObject, R2ConfigurationQueueUpdateParamsRulesActionDeleteObject, R2ConfigurationQueueUpdateParamsRulesActionCompleteMultipartUpload, R2ConfigurationQueueUpdateParamsRulesActionAbortMultipartUpload: + return true + } + return false +} + +type R2ConfigurationQueueUpdateResponseEnvelope struct { + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + Result R2ConfigurationQueueUpdateResponse `json:"result,required"` + // Whether the API call was successful + Success R2ConfigurationQueueUpdateResponseEnvelopeSuccess `json:"success,required"` + JSON r2ConfigurationQueueUpdateResponseEnvelopeJSON `json:"-"` +} + +// r2ConfigurationQueueUpdateResponseEnvelopeJSON contains the JSON metadata for +// the struct [R2ConfigurationQueueUpdateResponseEnvelope] +type r2ConfigurationQueueUpdateResponseEnvelopeJSON struct { + Errors apijson.Field + Messages apijson.Field + Result apijson.Field + Success apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *R2ConfigurationQueueUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r r2ConfigurationQueueUpdateResponseEnvelopeJSON) RawJSON() string { + return r.raw +} + +// Whether the API call was successful +type R2ConfigurationQueueUpdateResponseEnvelopeSuccess bool + +const ( + R2ConfigurationQueueUpdateResponseEnvelopeSuccessTrue R2ConfigurationQueueUpdateResponseEnvelopeSuccess = true +) + +func (r R2ConfigurationQueueUpdateResponseEnvelopeSuccess) IsKnown() bool { + switch r { + case R2ConfigurationQueueUpdateResponseEnvelopeSuccessTrue: + return true + } + return false +} + +type R2ConfigurationQueueDeleteParams struct { + // Identifier + AccountID param.Field[string] `path:"account_id,required"` +} + +type R2ConfigurationQueueDeleteResponseEnvelope struct { + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + Result R2ConfigurationQueueDeleteResponseUnion `json:"result,required"` + // Whether the API call was successful + Success R2ConfigurationQueueDeleteResponseEnvelopeSuccess `json:"success,required"` + JSON r2ConfigurationQueueDeleteResponseEnvelopeJSON `json:"-"` +} + +// r2ConfigurationQueueDeleteResponseEnvelopeJSON contains the JSON metadata for +// the struct [R2ConfigurationQueueDeleteResponseEnvelope] +type r2ConfigurationQueueDeleteResponseEnvelopeJSON struct { + Errors apijson.Field + Messages apijson.Field + Result apijson.Field + Success apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *R2ConfigurationQueueDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r r2ConfigurationQueueDeleteResponseEnvelopeJSON) RawJSON() string { + return r.raw +} + +// Whether the API call was successful +type R2ConfigurationQueueDeleteResponseEnvelopeSuccess bool + +const ( + R2ConfigurationQueueDeleteResponseEnvelopeSuccessTrue R2ConfigurationQueueDeleteResponseEnvelopeSuccess = true +) + +func (r R2ConfigurationQueueDeleteResponseEnvelopeSuccess) IsKnown() bool { + switch r { + case R2ConfigurationQueueDeleteResponseEnvelopeSuccessTrue: + return true + } + return false +} diff --git a/event_notifications/r2configurationqueue_test.go b/event_notifications/r2configurationqueue_test.go new file mode 100644 index 00000000000..5186b21985c --- /dev/null +++ b/event_notifications/r2configurationqueue_test.go @@ -0,0 +1,90 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +package event_notifications_test + +import ( + "context" + "errors" + "os" + "testing" + + "github.com/cloudflare/cloudflare-go/v2" + "github.com/cloudflare/cloudflare-go/v2/event_notifications" + "github.com/cloudflare/cloudflare-go/v2/internal/testutil" + "github.com/cloudflare/cloudflare-go/v2/option" +) + +func TestR2ConfigurationQueueUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") + baseURL := "http://localhost:4010" + if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { + baseURL = envURL + } + if !testutil.CheckTestServer(t, baseURL) { + return + } + client := cloudflare.NewClient( + option.WithBaseURL(baseURL), + option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), + option.WithAPIEmail("user@example.com"), + ) + _, err := client.EventNotifications.R2.Configuration.Queues.Update( + context.TODO(), + "023e105f4ecef8ad9ca31a8372d0c353", + "023e105f4ecef8ad9ca31a8372d0c353", + event_notifications.R2ConfigurationQueueUpdateParams{ + AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), + Rules: cloudflare.F([]event_notifications.R2ConfigurationQueueUpdateParamsRule{{ + Actions: cloudflare.F([]event_notifications.R2ConfigurationQueueUpdateParamsRulesAction{event_notifications.R2ConfigurationQueueUpdateParamsRulesActionPutObject, event_notifications.R2ConfigurationQueueUpdateParamsRulesActionCopyObject}), + Prefix: cloudflare.F("img/"), + Suffix: cloudflare.F(".jpeg"), + }, { + Actions: cloudflare.F([]event_notifications.R2ConfigurationQueueUpdateParamsRulesAction{event_notifications.R2ConfigurationQueueUpdateParamsRulesActionPutObject, event_notifications.R2ConfigurationQueueUpdateParamsRulesActionCopyObject}), + Prefix: cloudflare.F("img/"), + Suffix: cloudflare.F(".jpeg"), + }, { + Actions: cloudflare.F([]event_notifications.R2ConfigurationQueueUpdateParamsRulesAction{event_notifications.R2ConfigurationQueueUpdateParamsRulesActionPutObject, event_notifications.R2ConfigurationQueueUpdateParamsRulesActionCopyObject}), + Prefix: cloudflare.F("img/"), + Suffix: cloudflare.F(".jpeg"), + }}), + }, + ) + if err != nil { + var apierr *cloudflare.Error + if errors.As(err, &apierr) { + t.Log(string(apierr.DumpRequest(true))) + } + t.Fatalf("err should be nil: %s", err.Error()) + } +} + +func TestR2ConfigurationQueueDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") + baseURL := "http://localhost:4010" + if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { + baseURL = envURL + } + if !testutil.CheckTestServer(t, baseURL) { + return + } + client := cloudflare.NewClient( + option.WithBaseURL(baseURL), + option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), + option.WithAPIEmail("user@example.com"), + ) + _, err := client.EventNotifications.R2.Configuration.Queues.Delete( + context.TODO(), + "023e105f4ecef8ad9ca31a8372d0c353", + "023e105f4ecef8ad9ca31a8372d0c353", + event_notifications.R2ConfigurationQueueDeleteParams{ + AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), + }, + ) + if err != nil { + var apierr *cloudflare.Error + if errors.As(err, &apierr) { + t.Log(string(apierr.DumpRequest(true))) + } + t.Fatalf("err should be nil: %s", err.Error()) + } +} diff --git a/internal/shared/union.go b/internal/shared/union.go index 3ce4c02ece4..36dc904895c 100644 --- a/internal/shared/union.go +++ b/internal/shared/union.go @@ -178,12 +178,13 @@ func (UnionString) ImplementsOriginPostQuantumEncryptionOriginPostQuantumEncrypt } func (UnionString) ImplementsOriginPostQuantumEncryptionOriginPostQuantumEncryptionGetResponseUnion() { } -func (UnionString) ImplementsHostnamesSettingValueUnionParam() {} -func (UnionString) ImplementsHostnamesSettingValueUnion() {} -func (UnionString) ImplementsSnippetsSnippetDeleteResponseUnion() {} -func (UnionString) ImplementsCloudforceOneRequestDeleteResponseUnion() {} -func (UnionString) ImplementsCloudforceOneRequestMessageDeleteResponseUnion() {} -func (UnionString) ImplementsCloudforceOneRequestPriorityDeleteResponseUnion() {} +func (UnionString) ImplementsHostnamesSettingValueUnionParam() {} +func (UnionString) ImplementsHostnamesSettingValueUnion() {} +func (UnionString) ImplementsSnippetsSnippetDeleteResponseUnion() {} +func (UnionString) ImplementsCloudforceOneRequestDeleteResponseUnion() {} +func (UnionString) ImplementsCloudforceOneRequestMessageDeleteResponseUnion() {} +func (UnionString) ImplementsCloudforceOneRequestPriorityDeleteResponseUnion() {} +func (UnionString) ImplementsEventNotificationsR2ConfigurationQueueDeleteResponseUnion() {} type UnionInt int64 From c46158d0fe01b5a9568cf2aa87203c903712d21d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 09:52:29 +0000 Subject: [PATCH 03/52] feat(api): OpenAPI spec update via Stainless API (#1785) --- dns/record.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/dns/record.go b/dns/record.go index d8cd58ba01b..4d132329a9a 100644 --- a/dns/record.go +++ b/dns/record.go @@ -3539,9 +3539,9 @@ func (r RecordNewParams) MarshalJSON() (data []byte, err error) { type RecordNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Record `json:"result,required"` // Whether the API call was successful Success RecordNewResponseEnvelopeSuccess `json:"success,required"` + Result Record `json:"result"` JSON recordNewResponseEnvelopeJSON `json:"-"` } @@ -3550,8 +3550,8 @@ type RecordNewResponseEnvelope struct { type recordNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -3592,9 +3592,9 @@ func (r RecordUpdateParams) MarshalJSON() (data []byte, err error) { type RecordUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Record `json:"result,required"` // Whether the API call was successful Success RecordUpdateResponseEnvelopeSuccess `json:"success,required"` + Result Record `json:"result"` JSON recordUpdateResponseEnvelopeJSON `json:"-"` } @@ -3603,8 +3603,8 @@ type RecordUpdateResponseEnvelope struct { type recordUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -3888,9 +3888,9 @@ func (r RecordEditParams) MarshalJSON() (data []byte, err error) { type RecordEditResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Record `json:"result,required"` // Whether the API call was successful Success RecordEditResponseEnvelopeSuccess `json:"success,required"` + Result Record `json:"result"` JSON recordEditResponseEnvelopeJSON `json:"-"` } @@ -3899,8 +3899,8 @@ type RecordEditResponseEnvelope struct { type recordEditResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -3941,9 +3941,9 @@ type RecordGetParams struct { type RecordGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Record `json:"result,required"` // Whether the API call was successful Success RecordGetResponseEnvelopeSuccess `json:"success,required"` + Result Record `json:"result"` JSON recordGetResponseEnvelopeJSON `json:"-"` } @@ -3952,8 +3952,8 @@ type RecordGetResponseEnvelope struct { type recordGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -4003,9 +4003,9 @@ func (r RecordImportParams) MarshalJSON() (data []byte, err error) { type RecordImportResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result RecordImportResponse `json:"result,required"` // Whether the API call was successful Success RecordImportResponseEnvelopeSuccess `json:"success,required"` + Result RecordImportResponse `json:"result"` Timing RecordProcessTiming `json:"timing"` JSON recordImportResponseEnvelopeJSON `json:"-"` } @@ -4015,8 +4015,8 @@ type RecordImportResponseEnvelope struct { type recordImportResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field Timing apijson.Field raw string ExtraFields map[string]apijson.Field @@ -4058,9 +4058,9 @@ func (r RecordScanParams) MarshalJSON() (data []byte, err error) { type RecordScanResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result RecordScanResponse `json:"result,required"` // Whether the API call was successful Success RecordScanResponseEnvelopeSuccess `json:"success,required"` + Result RecordScanResponse `json:"result"` Timing RecordProcessTiming `json:"timing"` JSON recordScanResponseEnvelopeJSON `json:"-"` } @@ -4070,8 +4070,8 @@ type RecordScanResponseEnvelope struct { type recordScanResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field Timing apijson.Field raw string ExtraFields map[string]apijson.Field From 371672b695419519937f44c5e368c6fcce352220 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 10:00:27 +0000 Subject: [PATCH 04/52] feat(api): OpenAPI spec update via Stainless API (#1786) --- secondary_dns/acl.go | 16 +++++------ secondary_dns/forceaxfr.go | 8 +++--- secondary_dns/incoming.go | 24 ++++++++-------- secondary_dns/outgoing.go | 50 ++++++++++++++++----------------- secondary_dns/outgoingstatus.go | 8 +++--- secondary_dns/peer.go | 16 +++++------ secondary_dns/tsig.go | 16 +++++------ 7 files changed, 69 insertions(+), 69 deletions(-) diff --git a/secondary_dns/acl.go b/secondary_dns/acl.go index cce73998052..1631e014aa7 100644 --- a/secondary_dns/acl.go +++ b/secondary_dns/acl.go @@ -185,9 +185,9 @@ func (r ACLNewParams) MarshalJSON() (data []byte, err error) { type ACLNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result ACL `json:"result,required"` // Whether the API call was successful Success ACLNewResponseEnvelopeSuccess `json:"success,required"` + Result ACL `json:"result"` JSON aclNewResponseEnvelopeJSON `json:"-"` } @@ -196,8 +196,8 @@ type ACLNewResponseEnvelope struct { type aclNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -237,9 +237,9 @@ func (r ACLUpdateParams) MarshalJSON() (data []byte, err error) { type ACLUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result ACL `json:"result,required"` // Whether the API call was successful Success ACLUpdateResponseEnvelopeSuccess `json:"success,required"` + Result ACL `json:"result"` JSON aclUpdateResponseEnvelopeJSON `json:"-"` } @@ -248,8 +248,8 @@ type ACLUpdateResponseEnvelope struct { type aclUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -293,9 +293,9 @@ func (r ACLDeleteParams) MarshalJSON() (data []byte, err error) { type ACLDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result ACLDeleteResponse `json:"result,required"` // Whether the API call was successful Success ACLDeleteResponseEnvelopeSuccess `json:"success,required"` + Result ACLDeleteResponse `json:"result"` JSON aclDeleteResponseEnvelopeJSON `json:"-"` } @@ -304,8 +304,8 @@ type ACLDeleteResponseEnvelope struct { type aclDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -340,9 +340,9 @@ type ACLGetParams struct { type ACLGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result ACL `json:"result,required"` // Whether the API call was successful Success ACLGetResponseEnvelopeSuccess `json:"success,required"` + Result ACL `json:"result"` JSON aclGetResponseEnvelopeJSON `json:"-"` } @@ -351,8 +351,8 @@ type ACLGetResponseEnvelope struct { type aclGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/secondary_dns/forceaxfr.go b/secondary_dns/forceaxfr.go index 49d3dd13ce4..062942ae145 100644 --- a/secondary_dns/forceaxfr.go +++ b/secondary_dns/forceaxfr.go @@ -58,11 +58,11 @@ func (r ForceAXFRNewParams) MarshalJSON() (data []byte, err error) { type ForceAXFRNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - // When force_axfr query parameter is set to true, the response is a simple string - Result ForceAXFR `json:"result,required"` // Whether the API call was successful Success ForceAXFRNewResponseEnvelopeSuccess `json:"success,required"` - JSON forceAXFRNewResponseEnvelopeJSON `json:"-"` + // When force_axfr query parameter is set to true, the response is a simple string + Result ForceAXFR `json:"result"` + JSON forceAXFRNewResponseEnvelopeJSON `json:"-"` } // forceAXFRNewResponseEnvelopeJSON contains the JSON metadata for the struct @@ -70,8 +70,8 @@ type ForceAXFRNewResponseEnvelope struct { type forceAXFRNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/secondary_dns/incoming.go b/secondary_dns/incoming.go index f7afdfb69ff..035ee3e0978 100644 --- a/secondary_dns/incoming.go +++ b/secondary_dns/incoming.go @@ -251,9 +251,9 @@ func (r IncomingNewParams) MarshalJSON() (data []byte, err error) { type IncomingNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result IncomingNewResponse `json:"result,required"` // Whether the API call was successful Success IncomingNewResponseEnvelopeSuccess `json:"success,required"` + Result IncomingNewResponse `json:"result"` JSON incomingNewResponseEnvelopeJSON `json:"-"` } @@ -262,8 +262,8 @@ type IncomingNewResponseEnvelope struct { type incomingNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -307,11 +307,11 @@ func (r IncomingUpdateParams) MarshalJSON() (data []byte, err error) { } type IncomingUpdateResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result IncomingUpdateResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success IncomingUpdateResponseEnvelopeSuccess `json:"success,required"` + Result IncomingUpdateResponse `json:"result"` JSON incomingUpdateResponseEnvelopeJSON `json:"-"` } @@ -320,8 +320,8 @@ type IncomingUpdateResponseEnvelope struct { type incomingUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -359,11 +359,11 @@ func (r IncomingDeleteParams) MarshalJSON() (data []byte, err error) { } type IncomingDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result IncomingDeleteResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success IncomingDeleteResponseEnvelopeSuccess `json:"success,required"` + Result IncomingDeleteResponse `json:"result"` JSON incomingDeleteResponseEnvelopeJSON `json:"-"` } @@ -372,8 +372,8 @@ type IncomingDeleteResponseEnvelope struct { type incomingDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -408,9 +408,9 @@ type IncomingGetParams struct { type IncomingGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result IncomingGetResponse `json:"result,required"` // Whether the API call was successful Success IncomingGetResponseEnvelopeSuccess `json:"success,required"` + Result IncomingGetResponse `json:"result"` JSON incomingGetResponseEnvelopeJSON `json:"-"` } @@ -419,8 +419,8 @@ type IncomingGetResponseEnvelope struct { type incomingGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/secondary_dns/outgoing.go b/secondary_dns/outgoing.go index 8c8857b2789..07fbc7492de 100644 --- a/secondary_dns/outgoing.go +++ b/secondary_dns/outgoing.go @@ -282,9 +282,9 @@ func (r OutgoingNewParams) MarshalJSON() (data []byte, err error) { type OutgoingNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result OutgoingNewResponse `json:"result,required"` // Whether the API call was successful Success OutgoingNewResponseEnvelopeSuccess `json:"success,required"` + Result OutgoingNewResponse `json:"result"` JSON outgoingNewResponseEnvelopeJSON `json:"-"` } @@ -293,8 +293,8 @@ type OutgoingNewResponseEnvelope struct { type outgoingNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -335,11 +335,11 @@ func (r OutgoingUpdateParams) MarshalJSON() (data []byte, err error) { } type OutgoingUpdateResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result OutgoingUpdateResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success OutgoingUpdateResponseEnvelopeSuccess `json:"success,required"` + Result OutgoingUpdateResponse `json:"result"` JSON outgoingUpdateResponseEnvelopeJSON `json:"-"` } @@ -348,8 +348,8 @@ type OutgoingUpdateResponseEnvelope struct { type outgoingUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -387,11 +387,11 @@ func (r OutgoingDeleteParams) MarshalJSON() (data []byte, err error) { } type OutgoingDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result OutgoingDeleteResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success OutgoingDeleteResponseEnvelopeSuccess `json:"success,required"` + Result OutgoingDeleteResponse `json:"result"` JSON outgoingDeleteResponseEnvelopeJSON `json:"-"` } @@ -400,8 +400,8 @@ type OutgoingDeleteResponseEnvelope struct { type outgoingDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -441,11 +441,11 @@ func (r OutgoingDisableParams) MarshalJSON() (data []byte, err error) { type OutgoingDisableResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - // The zone transfer status of a primary zone - Result DisableTransfer `json:"result,required"` // Whether the API call was successful Success OutgoingDisableResponseEnvelopeSuccess `json:"success,required"` - JSON outgoingDisableResponseEnvelopeJSON `json:"-"` + // The zone transfer status of a primary zone + Result DisableTransfer `json:"result"` + JSON outgoingDisableResponseEnvelopeJSON `json:"-"` } // outgoingDisableResponseEnvelopeJSON contains the JSON metadata for the struct @@ -453,8 +453,8 @@ type OutgoingDisableResponseEnvelope struct { type outgoingDisableResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -494,11 +494,11 @@ func (r OutgoingEnableParams) MarshalJSON() (data []byte, err error) { type OutgoingEnableResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - // The zone transfer status of a primary zone - Result EnableTransfer `json:"result,required"` // Whether the API call was successful Success OutgoingEnableResponseEnvelopeSuccess `json:"success,required"` - JSON outgoingEnableResponseEnvelopeJSON `json:"-"` + // The zone transfer status of a primary zone + Result EnableTransfer `json:"result"` + JSON outgoingEnableResponseEnvelopeJSON `json:"-"` } // outgoingEnableResponseEnvelopeJSON contains the JSON metadata for the struct @@ -506,8 +506,8 @@ type OutgoingEnableResponseEnvelope struct { type outgoingEnableResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -547,12 +547,12 @@ func (r OutgoingForceNotifyParams) MarshalJSON() (data []byte, err error) { type OutgoingForceNotifyResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - // When force_notify query parameter is set to true, the response is a simple - // string - Result string `json:"result,required"` // Whether the API call was successful Success OutgoingForceNotifyResponseEnvelopeSuccess `json:"success,required"` - JSON outgoingForceNotifyResponseEnvelopeJSON `json:"-"` + // When force_notify query parameter is set to true, the response is a simple + // string + Result string `json:"result"` + JSON outgoingForceNotifyResponseEnvelopeJSON `json:"-"` } // outgoingForceNotifyResponseEnvelopeJSON contains the JSON metadata for the @@ -560,8 +560,8 @@ type OutgoingForceNotifyResponseEnvelope struct { type outgoingForceNotifyResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -596,9 +596,9 @@ type OutgoingGetParams struct { type OutgoingGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result OutgoingGetResponse `json:"result,required"` // Whether the API call was successful Success OutgoingGetResponseEnvelopeSuccess `json:"success,required"` + Result OutgoingGetResponse `json:"result"` JSON outgoingGetResponseEnvelopeJSON `json:"-"` } @@ -607,8 +607,8 @@ type OutgoingGetResponseEnvelope struct { type outgoingGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/secondary_dns/outgoingstatus.go b/secondary_dns/outgoingstatus.go index 9325dc10b00..98adf9d7071 100644 --- a/secondary_dns/outgoingstatus.go +++ b/secondary_dns/outgoingstatus.go @@ -52,11 +52,11 @@ type OutgoingStatusGetParams struct { type OutgoingStatusGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - // The zone transfer status of a primary zone - Result EnableTransfer `json:"result,required"` // Whether the API call was successful Success OutgoingStatusGetResponseEnvelopeSuccess `json:"success,required"` - JSON outgoingStatusGetResponseEnvelopeJSON `json:"-"` + // The zone transfer status of a primary zone + Result EnableTransfer `json:"result"` + JSON outgoingStatusGetResponseEnvelopeJSON `json:"-"` } // outgoingStatusGetResponseEnvelopeJSON contains the JSON metadata for the struct @@ -64,8 +64,8 @@ type OutgoingStatusGetResponseEnvelope struct { type outgoingStatusGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/secondary_dns/peer.go b/secondary_dns/peer.go index 4f17401a1d1..b5b4009f3bf 100644 --- a/secondary_dns/peer.go +++ b/secondary_dns/peer.go @@ -204,9 +204,9 @@ func (r PeerNewParams) MarshalJSON() (data []byte, err error) { type PeerNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Peer `json:"result,required"` // Whether the API call was successful Success PeerNewResponseEnvelopeSuccess `json:"success,required"` + Result Peer `json:"result"` JSON peerNewResponseEnvelopeJSON `json:"-"` } @@ -215,8 +215,8 @@ type PeerNewResponseEnvelope struct { type peerNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -256,9 +256,9 @@ func (r PeerUpdateParams) MarshalJSON() (data []byte, err error) { type PeerUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Peer `json:"result,required"` // Whether the API call was successful Success PeerUpdateResponseEnvelopeSuccess `json:"success,required"` + Result Peer `json:"result"` JSON peerUpdateResponseEnvelopeJSON `json:"-"` } @@ -267,8 +267,8 @@ type PeerUpdateResponseEnvelope struct { type peerUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -312,9 +312,9 @@ func (r PeerDeleteParams) MarshalJSON() (data []byte, err error) { type PeerDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result PeerDeleteResponse `json:"result,required"` // Whether the API call was successful Success PeerDeleteResponseEnvelopeSuccess `json:"success,required"` + Result PeerDeleteResponse `json:"result"` JSON peerDeleteResponseEnvelopeJSON `json:"-"` } @@ -323,8 +323,8 @@ type PeerDeleteResponseEnvelope struct { type peerDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -359,9 +359,9 @@ type PeerGetParams struct { type PeerGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Peer `json:"result,required"` // Whether the API call was successful Success PeerGetResponseEnvelopeSuccess `json:"success,required"` + Result Peer `json:"result"` JSON peerGetResponseEnvelopeJSON `json:"-"` } @@ -370,8 +370,8 @@ type PeerGetResponseEnvelope struct { type peerGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/secondary_dns/tsig.go b/secondary_dns/tsig.go index 3ef653747fb..53fcb94cb73 100644 --- a/secondary_dns/tsig.go +++ b/secondary_dns/tsig.go @@ -182,9 +182,9 @@ func (r TSIGNewParams) MarshalJSON() (data []byte, err error) { type TSIGNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result TSIG `json:"result,required"` // Whether the API call was successful Success TSIGNewResponseEnvelopeSuccess `json:"success,required"` + Result TSIG `json:"result"` JSON tsigNewResponseEnvelopeJSON `json:"-"` } @@ -193,8 +193,8 @@ type TSIGNewResponseEnvelope struct { type tsigNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -234,9 +234,9 @@ func (r TSIGUpdateParams) MarshalJSON() (data []byte, err error) { type TSIGUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result TSIG `json:"result,required"` // Whether the API call was successful Success TSIGUpdateResponseEnvelopeSuccess `json:"success,required"` + Result TSIG `json:"result"` JSON tsigUpdateResponseEnvelopeJSON `json:"-"` } @@ -245,8 +245,8 @@ type TSIGUpdateResponseEnvelope struct { type tsigUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -290,9 +290,9 @@ func (r TSIGDeleteParams) MarshalJSON() (data []byte, err error) { type TSIGDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result TSIGDeleteResponse `json:"result,required"` // Whether the API call was successful Success TSIGDeleteResponseEnvelopeSuccess `json:"success,required"` + Result TSIGDeleteResponse `json:"result"` JSON tsigDeleteResponseEnvelopeJSON `json:"-"` } @@ -301,8 +301,8 @@ type TSIGDeleteResponseEnvelope struct { type tsigDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -337,9 +337,9 @@ type TSIGGetParams struct { type TSIGGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result TSIG `json:"result,required"` // Whether the API call was successful Success TSIGGetResponseEnvelopeSuccess `json:"success,required"` + Result TSIG `json:"result"` JSON tsigGetResponseEnvelopeJSON `json:"-"` } @@ -348,8 +348,8 @@ type TSIGGetResponseEnvelope struct { type tsigGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } From 47ad4050632c4a9304a3b5db2c4eac9d2f0a591f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 10:29:14 +0000 Subject: [PATCH 05/52] feat(api): OpenAPI spec update via Stainless API (#1787) --- request_tracers/trace.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/request_tracers/trace.go b/request_tracers/trace.go index 4acb42079ab..f65644276f3 100644 --- a/request_tracers/trace.go +++ b/request_tracers/trace.go @@ -193,11 +193,11 @@ func (r TraceNewParamsContextGeoloc) MarshalJSON() (data []byte, err error) { type TraceNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - // Trace result with an origin status code - Result TraceNewResponse `json:"result,required"` // Whether the API call was successful Success TraceNewResponseEnvelopeSuccess `json:"success,required"` - JSON traceNewResponseEnvelopeJSON `json:"-"` + // Trace result with an origin status code + Result TraceNewResponse `json:"result"` + JSON traceNewResponseEnvelopeJSON `json:"-"` } // traceNewResponseEnvelopeJSON contains the JSON metadata for the struct @@ -205,8 +205,8 @@ type TraceNewResponseEnvelope struct { type traceNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } From 49d6aec0cdd9a1ca9422bb111b6af16bde444e22 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 11:24:35 +0000 Subject: [PATCH 06/52] feat(api): OpenAPI spec update via Stainless API (#1788) --- zones/dnssetting.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/zones/dnssetting.go b/zones/dnssetting.go index f496d2e0543..1044b666132 100644 --- a/zones/dnssetting.go +++ b/zones/dnssetting.go @@ -134,13 +134,12 @@ func (r nameserverJSON) RawJSON() string { type NameserverType string const ( - NameserverTypeCloudflareStandard NameserverType = "cloudflare.standard" - NameserverTypeCloudflareFoundationDNS NameserverType = "cloudflare.foundation_dns" + NameserverTypeCloudflareStandard NameserverType = "cloudflare.standard" ) func (r NameserverType) IsKnown() bool { switch r { - case NameserverTypeCloudflareStandard, NameserverTypeCloudflareFoundationDNS: + case NameserverTypeCloudflareStandard: return true } return false @@ -172,10 +171,10 @@ type DNSSettingEditResponseEnvelope struct { Messages []shared.ResponseInfo `json:"messages,required"` MultiProvider interface{} `json:"multi_provider,required"` Nameservers interface{} `json:"nameservers,required"` - Result DNSSetting `json:"result,required"` SecondaryOverrides interface{} `json:"secondary_overrides,required"` // Whether the API call was successful Success DNSSettingEditResponseEnvelopeSuccess `json:"success,required"` + Result DNSSetting `json:"result"` JSON dnsSettingEditResponseEnvelopeJSON `json:"-"` } @@ -187,9 +186,9 @@ type dnsSettingEditResponseEnvelopeJSON struct { Messages apijson.Field MultiProvider apijson.Field Nameservers apijson.Field - Result apijson.Field SecondaryOverrides apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -228,10 +227,10 @@ type DNSSettingGetResponseEnvelope struct { Messages []shared.ResponseInfo `json:"messages,required"` MultiProvider interface{} `json:"multi_provider,required"` Nameservers interface{} `json:"nameservers,required"` - Result DNSSetting `json:"result,required"` SecondaryOverrides interface{} `json:"secondary_overrides,required"` // Whether the API call was successful Success DNSSettingGetResponseEnvelopeSuccess `json:"success,required"` + Result DNSSetting `json:"result"` JSON dnsSettingGetResponseEnvelopeJSON `json:"-"` } @@ -243,9 +242,9 @@ type dnsSettingGetResponseEnvelopeJSON struct { Messages apijson.Field MultiProvider apijson.Field Nameservers apijson.Field - Result apijson.Field SecondaryOverrides apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } From 1bfe1dc1b9a68fefdca979dabfff5722ecce32cd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 11:44:23 +0000 Subject: [PATCH 07/52] feat(api): OpenAPI spec update via Stainless API (#1789) --- images/v2directupload.go | 4 ++++ images/v2directupload_test.go | 1 + 2 files changed, 5 insertions(+) diff --git a/images/v2directupload.go b/images/v2directupload.go index 931e8497a55..8bc3f3edb5e 100644 --- a/images/v2directupload.go +++ b/images/v2directupload.go @@ -81,6 +81,10 @@ func (r v2DirectUploadNewResponseJSON) RawJSON() string { type V2DirectUploadNewParams struct { // Account identifier tag. AccountID param.Field[string] `path:"account_id,required"` + // Optional Image Custom ID. Up to 1024 chars. Can include any number of subpaths, + // and utf8 characters. Cannot start nor end with a / (forward slash). Cannot be a + // UUID. + ID param.Field[string] `json:"id"` // The date after which the upload will not be accepted. Minimum: Now + 2 minutes. // Maximum: Now + 6 hours. Expiry param.Field[time.Time] `json:"expiry" format:"date-time"` diff --git a/images/v2directupload_test.go b/images/v2directupload_test.go index ec3bb54fb90..70bcaee3491 100644 --- a/images/v2directupload_test.go +++ b/images/v2directupload_test.go @@ -31,6 +31,7 @@ func TestV2DirectUploadNewWithOptionalParams(t *testing.T) { ) _, err := client.Images.V2.DirectUploads.New(context.TODO(), images.V2DirectUploadNewParams{ AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), + ID: cloudflare.F("this/is/my-customid"), Expiry: cloudflare.F(time.Now()), Metadata: cloudflare.F[any](map[string]interface{}{}), RequireSignedURLs: cloudflare.F(true), From b9acc0b6ced4b2a17391a2933b375e6d2feb11bf Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 20:22:39 +0000 Subject: [PATCH 08/52] feat(api): OpenAPI spec update via Stainless API (#1791) --- api.md | 3 +-- calls/call.go | 16 ++++++------- internal/shared/union.go | 1 - stream/audiotrack.go | 20 ++++++++--------- stream/caption.go | 47 +++++++++------------------------------ stream/clip.go | 4 ++-- stream/copy.go | 4 ++-- stream/directupload.go | 8 +++---- stream/download.go | 24 ++++++++++---------- stream/key.go | 16 ++++++------- stream/liveinput.go | 28 +++++++++++------------ stream/liveinputoutput.go | 8 +++---- stream/stream.go | 4 ++-- stream/token.go | 4 ++-- stream/video.go | 8 +++---- stream/watermark.go | 24 ++++++++++---------- stream/webhook.go | 24 ++++++++++---------- 17 files changed, 108 insertions(+), 135 deletions(-) diff --git a/api.md b/api.md index ad583b9c13f..02fa2425eb9 100644 --- a/api.md +++ b/api.md @@ -4102,12 +4102,11 @@ Response Types: - stream.Caption - stream.CaptionUpdateResponseUnion -- stream.CaptionDeleteResponseUnion Methods: - client.Stream.Captions.Update(ctx context.Context, identifier string, language string, params stream.CaptionUpdateParams) (stream.CaptionUpdateResponseUnion, error) -- client.Stream.Captions.Delete(ctx context.Context, identifier string, language string, params stream.CaptionDeleteParams) (stream.CaptionDeleteResponseUnion, error) +- client.Stream.Captions.Delete(ctx context.Context, identifier string, language string, params stream.CaptionDeleteParams) (string, error) - client.Stream.Captions.Get(ctx context.Context, identifier string, query stream.CaptionGetParams) ([]stream.Caption, error) ## Downloads diff --git a/calls/call.go b/calls/call.go index 229706855cd..693a135c819 100644 --- a/calls/call.go +++ b/calls/call.go @@ -187,9 +187,9 @@ func (r CallNewParams) MarshalJSON() (data []byte, err error) { type CallNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result CallsAppWithSecret `json:"result,required"` // Whether the API call was successful Success CallNewResponseEnvelopeSuccess `json:"success,required"` + Result CallsAppWithSecret `json:"result"` JSON callNewResponseEnvelopeJSON `json:"-"` } @@ -198,8 +198,8 @@ type CallNewResponseEnvelope struct { type callNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -241,9 +241,9 @@ func (r CallUpdateParams) MarshalJSON() (data []byte, err error) { type CallUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result CallsApp `json:"result,required"` // Whether the API call was successful Success CallUpdateResponseEnvelopeSuccess `json:"success,required"` + Result CallsApp `json:"result"` JSON callUpdateResponseEnvelopeJSON `json:"-"` } @@ -252,8 +252,8 @@ type CallUpdateResponseEnvelope struct { type callUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -294,9 +294,9 @@ type CallDeleteParams struct { type CallDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result CallsApp `json:"result,required"` // Whether the API call was successful Success CallDeleteResponseEnvelopeSuccess `json:"success,required"` + Result CallsApp `json:"result"` JSON callDeleteResponseEnvelopeJSON `json:"-"` } @@ -305,8 +305,8 @@ type CallDeleteResponseEnvelope struct { type callDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -342,9 +342,9 @@ type CallGetParams struct { type CallGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result CallsApp `json:"result,required"` // Whether the API call was successful Success CallGetResponseEnvelopeSuccess `json:"success,required"` + Result CallsApp `json:"result"` JSON callGetResponseEnvelopeJSON `json:"-"` } @@ -353,8 +353,8 @@ type CallGetResponseEnvelope struct { type callGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/internal/shared/union.go b/internal/shared/union.go index 36dc904895c..1f140d55f92 100644 --- a/internal/shared/union.go +++ b/internal/shared/union.go @@ -135,7 +135,6 @@ func (UnionString) ImplementsStreamWebhookUpdateResponseUnion() func (UnionString) ImplementsStreamWebhookDeleteResponseUnion() {} func (UnionString) ImplementsStreamWebhookGetResponseUnion() {} func (UnionString) ImplementsStreamCaptionUpdateResponseUnion() {} -func (UnionString) ImplementsStreamCaptionDeleteResponseUnion() {} func (UnionString) ImplementsStreamDownloadNewResponseUnion() {} func (UnionString) ImplementsStreamDownloadDeleteResponseUnion() {} func (UnionString) ImplementsStreamDownloadGetResponseUnion() {} diff --git a/stream/audiotrack.go b/stream/audiotrack.go index 5adfd66e9e0..20c8e4e8164 100644 --- a/stream/audiotrack.go +++ b/stream/audiotrack.go @@ -160,11 +160,11 @@ type AudioTrackDeleteParams struct { } type AudioTrackDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result AudioTrackDeleteResponseUnion `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success AudioTrackDeleteResponseEnvelopeSuccess `json:"success,required"` + Result AudioTrackDeleteResponseUnion `json:"result"` JSON audioTrackDeleteResponseEnvelopeJSON `json:"-"` } @@ -173,8 +173,8 @@ type AudioTrackDeleteResponseEnvelope struct { type audioTrackDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -221,9 +221,9 @@ func (r AudioTrackCopyParams) MarshalJSON() (data []byte, err error) { type AudioTrackCopyResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Audio `json:"result,required"` // Whether the API call was successful Success AudioTrackCopyResponseEnvelopeSuccess `json:"success,required"` + Result Audio `json:"result"` JSON audioTrackCopyResponseEnvelopeJSON `json:"-"` } @@ -232,8 +232,8 @@ type AudioTrackCopyResponseEnvelope struct { type audioTrackCopyResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -278,9 +278,9 @@ func (r AudioTrackEditParams) MarshalJSON() (data []byte, err error) { type AudioTrackEditResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Audio `json:"result,required"` // Whether the API call was successful Success AudioTrackEditResponseEnvelopeSuccess `json:"success,required"` + Result Audio `json:"result"` JSON audioTrackEditResponseEnvelopeJSON `json:"-"` } @@ -289,8 +289,8 @@ type AudioTrackEditResponseEnvelope struct { type audioTrackEditResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -326,9 +326,9 @@ type AudioTrackGetParams struct { type AudioTrackGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result []Audio `json:"result,required"` // Whether the API call was successful Success AudioTrackGetResponseEnvelopeSuccess `json:"success,required"` + Result []Audio `json:"result"` JSON audioTrackGetResponseEnvelopeJSON `json:"-"` } @@ -337,8 +337,8 @@ type AudioTrackGetResponseEnvelope struct { type audioTrackGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/stream/caption.go b/stream/caption.go index 405ce9d065f..15ab324b526 100644 --- a/stream/caption.go +++ b/stream/caption.go @@ -48,7 +48,7 @@ func (r *CaptionService) Update(ctx context.Context, identifier string, language } // Removes the captions or subtitles from a video. -func (r *CaptionService) Delete(ctx context.Context, identifier string, language string, params CaptionDeleteParams, opts ...option.RequestOption) (res *CaptionDeleteResponseUnion, err error) { +func (r *CaptionService) Delete(ctx context.Context, identifier string, language string, params CaptionDeleteParams, opts ...option.RequestOption) (res *string, err error) { opts = append(r.Options[:], opts...) var env CaptionDeleteResponseEnvelope path := fmt.Sprintf("accounts/%s/stream/%s/captions/%s", params.AccountID, identifier, language) @@ -114,31 +114,6 @@ func init() { ) } -// Union satisfied by [stream.CaptionDeleteResponseUnknown], -// [stream.CaptionDeleteResponseArray] or [shared.UnionString]. -type CaptionDeleteResponseUnion interface { - ImplementsStreamCaptionDeleteResponseUnion() -} - -func init() { - apijson.RegisterUnion( - reflect.TypeOf((*CaptionDeleteResponseUnion)(nil)).Elem(), - "", - apijson.UnionVariant{ - TypeFilter: gjson.JSON, - Type: reflect.TypeOf(CaptionDeleteResponseArray{}), - }, - apijson.UnionVariant{ - TypeFilter: gjson.String, - Type: reflect.TypeOf(shared.UnionString("")), - }, - ) -} - -type CaptionDeleteResponseArray []interface{} - -func (r CaptionDeleteResponseArray) ImplementsStreamCaptionDeleteResponseUnion() {} - type CaptionUpdateParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` @@ -151,11 +126,11 @@ func (r CaptionUpdateParams) MarshalJSON() (data []byte, err error) { } type CaptionUpdateResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result CaptionUpdateResponseUnion `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success CaptionUpdateResponseEnvelopeSuccess `json:"success,required"` + Result CaptionUpdateResponseUnion `json:"result"` JSON captionUpdateResponseEnvelopeJSON `json:"-"` } @@ -164,8 +139,8 @@ type CaptionUpdateResponseEnvelope struct { type captionUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -204,11 +179,11 @@ func (r CaptionDeleteParams) MarshalJSON() (data []byte, err error) { } type CaptionDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result CaptionDeleteResponseUnion `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success CaptionDeleteResponseEnvelopeSuccess `json:"success,required"` + Result string `json:"result"` JSON captionDeleteResponseEnvelopeJSON `json:"-"` } @@ -217,8 +192,8 @@ type CaptionDeleteResponseEnvelope struct { type captionDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -254,9 +229,9 @@ type CaptionGetParams struct { type CaptionGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result []Caption `json:"result,required"` // Whether the API call was successful Success CaptionGetResponseEnvelopeSuccess `json:"success,required"` + Result []Caption `json:"result"` JSON captionGetResponseEnvelopeJSON `json:"-"` } @@ -265,8 +240,8 @@ type CaptionGetResponseEnvelope struct { type captionGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/stream/clip.go b/stream/clip.go index c48e3f9fc22..fdea7a7af67 100644 --- a/stream/clip.go +++ b/stream/clip.go @@ -228,9 +228,9 @@ func (r ClipNewParamsWatermark) MarshalJSON() (data []byte, err error) { type ClipNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Clip `json:"result,required"` // Whether the API call was successful Success ClipNewResponseEnvelopeSuccess `json:"success,required"` + Result Clip `json:"result"` JSON clipNewResponseEnvelopeJSON `json:"-"` } @@ -239,8 +239,8 @@ type ClipNewResponseEnvelope struct { type clipNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/stream/copy.go b/stream/copy.go index 215e71ff741..18da331a347 100644 --- a/stream/copy.go +++ b/stream/copy.go @@ -98,9 +98,9 @@ func (r CopyNewParamsWatermark) MarshalJSON() (data []byte, err error) { type CopyNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Video `json:"result,required"` // Whether the API call was successful Success CopyNewResponseEnvelopeSuccess `json:"success,required"` + Result Video `json:"result"` JSON copyNewResponseEnvelopeJSON `json:"-"` } @@ -109,8 +109,8 @@ type CopyNewResponseEnvelope struct { type copyNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/stream/directupload.go b/stream/directupload.go index 1f36470f23f..7ace23e1462 100644 --- a/stream/directupload.go +++ b/stream/directupload.go @@ -129,11 +129,11 @@ func (r DirectUploadNewParamsWatermark) MarshalJSON() (data []byte, err error) { } type DirectUploadNewResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result DirectUploadNewResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DirectUploadNewResponseEnvelopeSuccess `json:"success,required"` + Result DirectUploadNewResponse `json:"result"` JSON directUploadNewResponseEnvelopeJSON `json:"-"` } @@ -142,8 +142,8 @@ type DirectUploadNewResponseEnvelope struct { type directUploadNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/stream/download.go b/stream/download.go index 52a1f07af4c..a3ba065e337 100644 --- a/stream/download.go +++ b/stream/download.go @@ -132,11 +132,11 @@ func (r DownloadNewParams) MarshalJSON() (data []byte, err error) { } type DownloadNewResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result DownloadNewResponseUnion `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DownloadNewResponseEnvelopeSuccess `json:"success,required"` + Result DownloadNewResponseUnion `json:"result"` JSON downloadNewResponseEnvelopeJSON `json:"-"` } @@ -145,8 +145,8 @@ type DownloadNewResponseEnvelope struct { type downloadNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -180,11 +180,11 @@ type DownloadDeleteParams struct { } type DownloadDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result DownloadDeleteResponseUnion `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DownloadDeleteResponseEnvelopeSuccess `json:"success,required"` + Result DownloadDeleteResponseUnion `json:"result"` JSON downloadDeleteResponseEnvelopeJSON `json:"-"` } @@ -193,8 +193,8 @@ type DownloadDeleteResponseEnvelope struct { type downloadDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -228,11 +228,11 @@ type DownloadGetParams struct { } type DownloadGetResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result DownloadGetResponseUnion `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DownloadGetResponseEnvelopeSuccess `json:"success,required"` + Result DownloadGetResponseUnion `json:"result"` JSON downloadGetResponseEnvelopeJSON `json:"-"` } @@ -241,8 +241,8 @@ type DownloadGetResponseEnvelope struct { type downloadGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/stream/key.go b/stream/key.go index 9d102619412..83440e41b75 100644 --- a/stream/key.go +++ b/stream/key.go @@ -158,9 +158,9 @@ func (r KeyNewParams) MarshalJSON() (data []byte, err error) { type KeyNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Keys `json:"result,required"` // Whether the API call was successful Success KeyNewResponseEnvelopeSuccess `json:"success,required"` + Result Keys `json:"result"` JSON keyNewResponseEnvelopeJSON `json:"-"` } @@ -169,8 +169,8 @@ type KeyNewResponseEnvelope struct { type keyNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -209,11 +209,11 @@ func (r KeyDeleteParams) MarshalJSON() (data []byte, err error) { } type KeyDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result KeyDeleteResponseUnion `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success KeyDeleteResponseEnvelopeSuccess `json:"success,required"` + Result KeyDeleteResponseUnion `json:"result"` JSON keyDeleteResponseEnvelopeJSON `json:"-"` } @@ -222,8 +222,8 @@ type KeyDeleteResponseEnvelope struct { type keyDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -259,9 +259,9 @@ type KeyGetParams struct { type KeyGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result []KeyGetResponse `json:"result,required"` // Whether the API call was successful Success KeyGetResponseEnvelopeSuccess `json:"success,required"` + Result []KeyGetResponse `json:"result"` JSON keyGetResponseEnvelopeJSON `json:"-"` } @@ -270,8 +270,8 @@ type KeyGetResponseEnvelope struct { type keyGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/stream/liveinput.go b/stream/liveinput.go index ad8d5ae0e6f..f3fe6c66467 100644 --- a/stream/liveinput.go +++ b/stream/liveinput.go @@ -537,11 +537,11 @@ func (r LiveInputNewParamsRecordingMode) IsKnown() bool { type LiveInputNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - // Details about a live input. - Result LiveInput `json:"result,required"` // Whether the API call was successful Success LiveInputNewResponseEnvelopeSuccess `json:"success,required"` - JSON liveInputNewResponseEnvelopeJSON `json:"-"` + // Details about a live input. + Result LiveInput `json:"result"` + JSON liveInputNewResponseEnvelopeJSON `json:"-"` } // liveInputNewResponseEnvelopeJSON contains the JSON metadata for the struct @@ -549,8 +549,8 @@ type LiveInputNewResponseEnvelope struct { type liveInputNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -649,11 +649,11 @@ func (r LiveInputUpdateParamsRecordingMode) IsKnown() bool { type LiveInputUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - // Details about a live input. - Result LiveInput `json:"result,required"` // Whether the API call was successful Success LiveInputUpdateResponseEnvelopeSuccess `json:"success,required"` - JSON liveInputUpdateResponseEnvelopeJSON `json:"-"` + // Details about a live input. + Result LiveInput `json:"result"` + JSON liveInputUpdateResponseEnvelopeJSON `json:"-"` } // liveInputUpdateResponseEnvelopeJSON contains the JSON metadata for the struct @@ -661,8 +661,8 @@ type LiveInputUpdateResponseEnvelope struct { type liveInputUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -709,9 +709,9 @@ func (r LiveInputListParams) URLQuery() (v url.Values) { type LiveInputListResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result LiveInputListResponse `json:"result,required"` // Whether the API call was successful Success LiveInputListResponseEnvelopeSuccess `json:"success,required"` + Result LiveInputListResponse `json:"result"` JSON liveInputListResponseEnvelopeJSON `json:"-"` } @@ -720,8 +720,8 @@ type LiveInputListResponseEnvelope struct { type liveInputListResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -767,11 +767,11 @@ type LiveInputGetParams struct { type LiveInputGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - // Details about a live input. - Result LiveInput `json:"result,required"` // Whether the API call was successful Success LiveInputGetResponseEnvelopeSuccess `json:"success,required"` - JSON liveInputGetResponseEnvelopeJSON `json:"-"` + // Details about a live input. + Result LiveInput `json:"result"` + JSON liveInputGetResponseEnvelopeJSON `json:"-"` } // liveInputGetResponseEnvelopeJSON contains the JSON metadata for the struct @@ -779,8 +779,8 @@ type LiveInputGetResponseEnvelope struct { type liveInputGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/stream/liveinputoutput.go b/stream/liveinputoutput.go index a3b4ab31e4c..979da0c6530 100644 --- a/stream/liveinputoutput.go +++ b/stream/liveinputoutput.go @@ -149,9 +149,9 @@ func (r LiveInputOutputNewParams) MarshalJSON() (data []byte, err error) { type LiveInputOutputNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Output `json:"result,required"` // Whether the API call was successful Success LiveInputOutputNewResponseEnvelopeSuccess `json:"success,required"` + Result Output `json:"result"` JSON liveInputOutputNewResponseEnvelopeJSON `json:"-"` } @@ -160,8 +160,8 @@ type LiveInputOutputNewResponseEnvelope struct { type liveInputOutputNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -207,9 +207,9 @@ func (r LiveInputOutputUpdateParams) MarshalJSON() (data []byte, err error) { type LiveInputOutputUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Output `json:"result,required"` // Whether the API call was successful Success LiveInputOutputUpdateResponseEnvelopeSuccess `json:"success,required"` + Result Output `json:"result"` JSON liveInputOutputUpdateResponseEnvelopeJSON `json:"-"` } @@ -218,8 +218,8 @@ type LiveInputOutputUpdateResponseEnvelope struct { type liveInputOutputUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/stream/stream.go b/stream/stream.go index 7e074ab1f14..1f3e4d49a27 100644 --- a/stream/stream.go +++ b/stream/stream.go @@ -445,9 +445,9 @@ type StreamGetParams struct { type StreamGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Video `json:"result,required"` // Whether the API call was successful Success StreamGetResponseEnvelopeSuccess `json:"success,required"` + Result Video `json:"result"` JSON streamGetResponseEnvelopeJSON `json:"-"` } @@ -456,8 +456,8 @@ type StreamGetResponseEnvelope struct { type streamGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/stream/token.go b/stream/token.go index 0b0c65eccfd..7b4ba4e7d9c 100644 --- a/stream/token.go +++ b/stream/token.go @@ -159,9 +159,9 @@ func (r TokenNewParamsAccessRulesType) IsKnown() bool { type TokenNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result TokenNewResponse `json:"result,required"` // Whether the API call was successful Success TokenNewResponseEnvelopeSuccess `json:"success,required"` + Result TokenNewResponse `json:"result"` JSON tokenNewResponseEnvelopeJSON `json:"-"` } @@ -170,8 +170,8 @@ type TokenNewResponseEnvelope struct { type tokenNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/stream/video.go b/stream/video.go index 21ef9a088e8..35675997c2e 100644 --- a/stream/video.go +++ b/stream/video.go @@ -94,11 +94,11 @@ func (r VideoStorageUsageParams) URLQuery() (v url.Values) { } type VideoStorageUsageResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result VideoStorageUsageResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success VideoStorageUsageResponseEnvelopeSuccess `json:"success,required"` + Result VideoStorageUsageResponse `json:"result"` JSON videoStorageUsageResponseEnvelopeJSON `json:"-"` } @@ -107,8 +107,8 @@ type VideoStorageUsageResponseEnvelope struct { type videoStorageUsageResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/stream/watermark.go b/stream/watermark.go index 21e7f959007..a1853aa1b50 100644 --- a/stream/watermark.go +++ b/stream/watermark.go @@ -239,11 +239,11 @@ func (r WatermarkNewParams) MarshalJSON() (data []byte, err error) { } type WatermarkNewResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result WatermarkNewResponseUnion `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success WatermarkNewResponseEnvelopeSuccess `json:"success,required"` + Result WatermarkNewResponseUnion `json:"result"` JSON watermarkNewResponseEnvelopeJSON `json:"-"` } @@ -252,8 +252,8 @@ type WatermarkNewResponseEnvelope struct { type watermarkNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -297,11 +297,11 @@ func (r WatermarkDeleteParams) MarshalJSON() (data []byte, err error) { } type WatermarkDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result WatermarkDeleteResponseUnion `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success WatermarkDeleteResponseEnvelopeSuccess `json:"success,required"` + Result WatermarkDeleteResponseUnion `json:"result"` JSON watermarkDeleteResponseEnvelopeJSON `json:"-"` } @@ -310,8 +310,8 @@ type WatermarkDeleteResponseEnvelope struct { type watermarkDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -345,11 +345,11 @@ type WatermarkGetParams struct { } type WatermarkGetResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result WatermarkGetResponseUnion `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success WatermarkGetResponseEnvelopeSuccess `json:"success,required"` + Result WatermarkGetResponseUnion `json:"result"` JSON watermarkGetResponseEnvelopeJSON `json:"-"` } @@ -358,8 +358,8 @@ type WatermarkGetResponseEnvelope struct { type watermarkGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/stream/webhook.go b/stream/webhook.go index f1b8b55eff5..6ebdf1846a4 100644 --- a/stream/webhook.go +++ b/stream/webhook.go @@ -134,11 +134,11 @@ func (r WebhookUpdateParams) MarshalJSON() (data []byte, err error) { } type WebhookUpdateResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result WebhookUpdateResponseUnion `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success WebhookUpdateResponseEnvelopeSuccess `json:"success,required"` + Result WebhookUpdateResponseUnion `json:"result"` JSON webhookUpdateResponseEnvelopeJSON `json:"-"` } @@ -147,8 +147,8 @@ type WebhookUpdateResponseEnvelope struct { type webhookUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -187,11 +187,11 @@ func (r WebhookDeleteParams) MarshalJSON() (data []byte, err error) { } type WebhookDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result WebhookDeleteResponseUnion `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success WebhookDeleteResponseEnvelopeSuccess `json:"success,required"` + Result WebhookDeleteResponseUnion `json:"result"` JSON webhookDeleteResponseEnvelopeJSON `json:"-"` } @@ -200,8 +200,8 @@ type WebhookDeleteResponseEnvelope struct { type webhookDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -235,11 +235,11 @@ type WebhookGetParams struct { } type WebhookGetResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result WebhookGetResponseUnion `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success WebhookGetResponseEnvelopeSuccess `json:"success,required"` + Result WebhookGetResponseUnion `json:"result"` JSON webhookGetResponseEnvelopeJSON `json:"-"` } @@ -248,8 +248,8 @@ type WebhookGetResponseEnvelope struct { type webhookGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } From dcabc909649e42f9d1e6ed42af10fe41599cea3a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 20:24:08 +0000 Subject: [PATCH 09/52] feat(api): OpenAPI spec update via Stainless API (#1792) --- calls/call.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/calls/call.go b/calls/call.go index 693a135c819..229706855cd 100644 --- a/calls/call.go +++ b/calls/call.go @@ -187,9 +187,9 @@ func (r CallNewParams) MarshalJSON() (data []byte, err error) { type CallNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` + Result CallsAppWithSecret `json:"result,required"` // Whether the API call was successful Success CallNewResponseEnvelopeSuccess `json:"success,required"` - Result CallsAppWithSecret `json:"result"` JSON callNewResponseEnvelopeJSON `json:"-"` } @@ -198,8 +198,8 @@ type CallNewResponseEnvelope struct { type callNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -241,9 +241,9 @@ func (r CallUpdateParams) MarshalJSON() (data []byte, err error) { type CallUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` + Result CallsApp `json:"result,required"` // Whether the API call was successful Success CallUpdateResponseEnvelopeSuccess `json:"success,required"` - Result CallsApp `json:"result"` JSON callUpdateResponseEnvelopeJSON `json:"-"` } @@ -252,8 +252,8 @@ type CallUpdateResponseEnvelope struct { type callUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -294,9 +294,9 @@ type CallDeleteParams struct { type CallDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` + Result CallsApp `json:"result,required"` // Whether the API call was successful Success CallDeleteResponseEnvelopeSuccess `json:"success,required"` - Result CallsApp `json:"result"` JSON callDeleteResponseEnvelopeJSON `json:"-"` } @@ -305,8 +305,8 @@ type CallDeleteResponseEnvelope struct { type callDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -342,9 +342,9 @@ type CallGetParams struct { type CallGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` + Result CallsApp `json:"result,required"` // Whether the API call was successful Success CallGetResponseEnvelopeSuccess `json:"success,required"` - Result CallsApp `json:"result"` JSON callGetResponseEnvelopeJSON `json:"-"` } @@ -353,8 +353,8 @@ type CallGetResponseEnvelope struct { type callGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } From b45cf899fe80aebd25098baa30edb7df987d7e23 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 20:25:37 +0000 Subject: [PATCH 10/52] feat(api): OpenAPI spec update via Stainless API (#1793) --- calls/call.go | 16 ++++++++-------- dns/analyticsreport.go | 4 ++-- dns/analyticsreportbytime.go | 4 ++-- dns/firewallanalyticsreport.go | 4 ++-- dns/firewallanalyticsreportbytime.go | 4 ++-- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/calls/call.go b/calls/call.go index 229706855cd..693a135c819 100644 --- a/calls/call.go +++ b/calls/call.go @@ -187,9 +187,9 @@ func (r CallNewParams) MarshalJSON() (data []byte, err error) { type CallNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result CallsAppWithSecret `json:"result,required"` // Whether the API call was successful Success CallNewResponseEnvelopeSuccess `json:"success,required"` + Result CallsAppWithSecret `json:"result"` JSON callNewResponseEnvelopeJSON `json:"-"` } @@ -198,8 +198,8 @@ type CallNewResponseEnvelope struct { type callNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -241,9 +241,9 @@ func (r CallUpdateParams) MarshalJSON() (data []byte, err error) { type CallUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result CallsApp `json:"result,required"` // Whether the API call was successful Success CallUpdateResponseEnvelopeSuccess `json:"success,required"` + Result CallsApp `json:"result"` JSON callUpdateResponseEnvelopeJSON `json:"-"` } @@ -252,8 +252,8 @@ type CallUpdateResponseEnvelope struct { type callUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -294,9 +294,9 @@ type CallDeleteParams struct { type CallDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result CallsApp `json:"result,required"` // Whether the API call was successful Success CallDeleteResponseEnvelopeSuccess `json:"success,required"` + Result CallsApp `json:"result"` JSON callDeleteResponseEnvelopeJSON `json:"-"` } @@ -305,8 +305,8 @@ type CallDeleteResponseEnvelope struct { type callDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -342,9 +342,9 @@ type CallGetParams struct { type CallGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result CallsApp `json:"result,required"` // Whether the API call was successful Success CallGetResponseEnvelopeSuccess `json:"success,required"` + Result CallsApp `json:"result"` JSON callGetResponseEnvelopeJSON `json:"-"` } @@ -353,8 +353,8 @@ type CallGetResponseEnvelope struct { type callGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/dns/analyticsreport.go b/dns/analyticsreport.go index 88f842719c3..048c10cc4ab 100644 --- a/dns/analyticsreport.go +++ b/dns/analyticsreport.go @@ -193,9 +193,9 @@ func (r AnalyticsReportGetParams) URLQuery() (v url.Values) { type AnalyticsReportGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Report `json:"result,required"` // Whether the API call was successful Success AnalyticsReportGetResponseEnvelopeSuccess `json:"success,required"` + Result Report `json:"result"` JSON analyticsReportGetResponseEnvelopeJSON `json:"-"` } @@ -204,8 +204,8 @@ type AnalyticsReportGetResponseEnvelope struct { type analyticsReportGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/dns/analyticsreportbytime.go b/dns/analyticsreportbytime.go index 159f2ee7023..ef59b9073ac 100644 --- a/dns/analyticsreportbytime.go +++ b/dns/analyticsreportbytime.go @@ -182,9 +182,9 @@ func (r AnalyticsReportBytimeGetParamsTimeDelta) IsKnown() bool { type AnalyticsReportBytimeGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result ByTime `json:"result,required"` // Whether the API call was successful Success AnalyticsReportBytimeGetResponseEnvelopeSuccess `json:"success,required"` + Result ByTime `json:"result"` JSON analyticsReportBytimeGetResponseEnvelopeJSON `json:"-"` } @@ -193,8 +193,8 @@ type AnalyticsReportBytimeGetResponseEnvelope struct { type analyticsReportBytimeGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/dns/firewallanalyticsreport.go b/dns/firewallanalyticsreport.go index c2d4824aeea..613717a647f 100644 --- a/dns/firewallanalyticsreport.go +++ b/dns/firewallanalyticsreport.go @@ -86,9 +86,9 @@ func (r FirewallAnalyticsReportGetParams) URLQuery() (v url.Values) { type FirewallAnalyticsReportGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Report `json:"result,required"` // Whether the API call was successful Success FirewallAnalyticsReportGetResponseEnvelopeSuccess `json:"success,required"` + Result Report `json:"result"` JSON firewallAnalyticsReportGetResponseEnvelopeJSON `json:"-"` } @@ -97,8 +97,8 @@ type FirewallAnalyticsReportGetResponseEnvelope struct { type firewallAnalyticsReportGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/dns/firewallanalyticsreportbytime.go b/dns/firewallanalyticsreportbytime.go index 692c195e846..8d252877425 100644 --- a/dns/firewallanalyticsreportbytime.go +++ b/dns/firewallanalyticsreportbytime.go @@ -110,9 +110,9 @@ func (r FirewallAnalyticsReportBytimeGetParamsTimeDelta) IsKnown() bool { type FirewallAnalyticsReportBytimeGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result ByTime `json:"result,required"` // Whether the API call was successful Success FirewallAnalyticsReportBytimeGetResponseEnvelopeSuccess `json:"success,required"` + Result ByTime `json:"result"` JSON firewallAnalyticsReportBytimeGetResponseEnvelopeJSON `json:"-"` } @@ -121,8 +121,8 @@ type FirewallAnalyticsReportBytimeGetResponseEnvelope struct { type firewallAnalyticsReportBytimeGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } From 04ad9cb37c40345025f1675584488cd01c69db05 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 20:27:06 +0000 Subject: [PATCH 11/52] feat(api): OpenAPI spec update via Stainless API (#1794) --- dns/analyticsreport.go | 4 ++-- dns/analyticsreportbytime.go | 4 ++-- dns/firewallanalyticsreport.go | 4 ++-- dns/firewallanalyticsreportbytime.go | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dns/analyticsreport.go b/dns/analyticsreport.go index 048c10cc4ab..88f842719c3 100644 --- a/dns/analyticsreport.go +++ b/dns/analyticsreport.go @@ -193,9 +193,9 @@ func (r AnalyticsReportGetParams) URLQuery() (v url.Values) { type AnalyticsReportGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` + Result Report `json:"result,required"` // Whether the API call was successful Success AnalyticsReportGetResponseEnvelopeSuccess `json:"success,required"` - Result Report `json:"result"` JSON analyticsReportGetResponseEnvelopeJSON `json:"-"` } @@ -204,8 +204,8 @@ type AnalyticsReportGetResponseEnvelope struct { type analyticsReportGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/dns/analyticsreportbytime.go b/dns/analyticsreportbytime.go index ef59b9073ac..159f2ee7023 100644 --- a/dns/analyticsreportbytime.go +++ b/dns/analyticsreportbytime.go @@ -182,9 +182,9 @@ func (r AnalyticsReportBytimeGetParamsTimeDelta) IsKnown() bool { type AnalyticsReportBytimeGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` + Result ByTime `json:"result,required"` // Whether the API call was successful Success AnalyticsReportBytimeGetResponseEnvelopeSuccess `json:"success,required"` - Result ByTime `json:"result"` JSON analyticsReportBytimeGetResponseEnvelopeJSON `json:"-"` } @@ -193,8 +193,8 @@ type AnalyticsReportBytimeGetResponseEnvelope struct { type analyticsReportBytimeGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/dns/firewallanalyticsreport.go b/dns/firewallanalyticsreport.go index 613717a647f..c2d4824aeea 100644 --- a/dns/firewallanalyticsreport.go +++ b/dns/firewallanalyticsreport.go @@ -86,9 +86,9 @@ func (r FirewallAnalyticsReportGetParams) URLQuery() (v url.Values) { type FirewallAnalyticsReportGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` + Result Report `json:"result,required"` // Whether the API call was successful Success FirewallAnalyticsReportGetResponseEnvelopeSuccess `json:"success,required"` - Result Report `json:"result"` JSON firewallAnalyticsReportGetResponseEnvelopeJSON `json:"-"` } @@ -97,8 +97,8 @@ type FirewallAnalyticsReportGetResponseEnvelope struct { type firewallAnalyticsReportGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/dns/firewallanalyticsreportbytime.go b/dns/firewallanalyticsreportbytime.go index 8d252877425..692c195e846 100644 --- a/dns/firewallanalyticsreportbytime.go +++ b/dns/firewallanalyticsreportbytime.go @@ -110,9 +110,9 @@ func (r FirewallAnalyticsReportBytimeGetParamsTimeDelta) IsKnown() bool { type FirewallAnalyticsReportBytimeGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` + Result ByTime `json:"result,required"` // Whether the API call was successful Success FirewallAnalyticsReportBytimeGetResponseEnvelopeSuccess `json:"success,required"` - Result ByTime `json:"result"` JSON firewallAnalyticsReportBytimeGetResponseEnvelopeJSON `json:"-"` } @@ -121,8 +121,8 @@ type FirewallAnalyticsReportBytimeGetResponseEnvelope struct { type firewallAnalyticsReportBytimeGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } From 0c33f28354d1aaea6ab472333c43a482e73f7e1e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 20:44:47 +0000 Subject: [PATCH 12/52] feat(api): OpenAPI spec update via Stainless API (#1795) --- dns/analyticsreport.go | 4 ++-- dns/analyticsreportbytime.go | 4 ++-- dns/firewallanalyticsreport.go | 4 ++-- dns/firewallanalyticsreportbytime.go | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dns/analyticsreport.go b/dns/analyticsreport.go index 88f842719c3..048c10cc4ab 100644 --- a/dns/analyticsreport.go +++ b/dns/analyticsreport.go @@ -193,9 +193,9 @@ func (r AnalyticsReportGetParams) URLQuery() (v url.Values) { type AnalyticsReportGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Report `json:"result,required"` // Whether the API call was successful Success AnalyticsReportGetResponseEnvelopeSuccess `json:"success,required"` + Result Report `json:"result"` JSON analyticsReportGetResponseEnvelopeJSON `json:"-"` } @@ -204,8 +204,8 @@ type AnalyticsReportGetResponseEnvelope struct { type analyticsReportGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/dns/analyticsreportbytime.go b/dns/analyticsreportbytime.go index 159f2ee7023..ef59b9073ac 100644 --- a/dns/analyticsreportbytime.go +++ b/dns/analyticsreportbytime.go @@ -182,9 +182,9 @@ func (r AnalyticsReportBytimeGetParamsTimeDelta) IsKnown() bool { type AnalyticsReportBytimeGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result ByTime `json:"result,required"` // Whether the API call was successful Success AnalyticsReportBytimeGetResponseEnvelopeSuccess `json:"success,required"` + Result ByTime `json:"result"` JSON analyticsReportBytimeGetResponseEnvelopeJSON `json:"-"` } @@ -193,8 +193,8 @@ type AnalyticsReportBytimeGetResponseEnvelope struct { type analyticsReportBytimeGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/dns/firewallanalyticsreport.go b/dns/firewallanalyticsreport.go index c2d4824aeea..613717a647f 100644 --- a/dns/firewallanalyticsreport.go +++ b/dns/firewallanalyticsreport.go @@ -86,9 +86,9 @@ func (r FirewallAnalyticsReportGetParams) URLQuery() (v url.Values) { type FirewallAnalyticsReportGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Report `json:"result,required"` // Whether the API call was successful Success FirewallAnalyticsReportGetResponseEnvelopeSuccess `json:"success,required"` + Result Report `json:"result"` JSON firewallAnalyticsReportGetResponseEnvelopeJSON `json:"-"` } @@ -97,8 +97,8 @@ type FirewallAnalyticsReportGetResponseEnvelope struct { type firewallAnalyticsReportGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/dns/firewallanalyticsreportbytime.go b/dns/firewallanalyticsreportbytime.go index 692c195e846..8d252877425 100644 --- a/dns/firewallanalyticsreportbytime.go +++ b/dns/firewallanalyticsreportbytime.go @@ -110,9 +110,9 @@ func (r FirewallAnalyticsReportBytimeGetParamsTimeDelta) IsKnown() bool { type FirewallAnalyticsReportBytimeGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result ByTime `json:"result,required"` // Whether the API call was successful Success FirewallAnalyticsReportBytimeGetResponseEnvelopeSuccess `json:"success,required"` + Result ByTime `json:"result"` JSON firewallAnalyticsReportBytimeGetResponseEnvelopeJSON `json:"-"` } @@ -121,8 +121,8 @@ type FirewallAnalyticsReportBytimeGetResponseEnvelope struct { type firewallAnalyticsReportBytimeGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } From 6e3fe04e4a2c69ae46809809d430f1d81ec3a11b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 21:10:19 +0000 Subject: [PATCH 13/52] feat(api): OpenAPI spec update via Stainless API (#1796) --- url_scanner/scan.go | 46 ++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/url_scanner/scan.go b/url_scanner/scan.go index 2faa9346547..ead68b03af8 100644 --- a/url_scanner/scan.go +++ b/url_scanner/scan.go @@ -507,7 +507,7 @@ type ScanGetResponseScanPage struct { ASNLocationAlpha2 string `json:"asnLocationAlpha2,required"` Asnname string `json:"asnname,required"` Console []ScanGetResponseScanPageConsole `json:"console,required"` - Cookies []ScanGetResponseScanPageCooky `json:"cookies,required"` + Cookies []ScanGetResponseScanPageCookie `json:"cookies,required"` Country string `json:"country,required"` CountryLocationAlpha2 string `json:"countryLocationAlpha2,required"` Domain string `json:"domain,required"` @@ -580,26 +580,26 @@ func (r scanGetResponseScanPageConsoleJSON) RawJSON() string { return r.raw } -type ScanGetResponseScanPageCooky struct { - Domain string `json:"domain,required"` - Expires float64 `json:"expires,required"` - HTTPOnly bool `json:"httpOnly,required"` - Name string `json:"name,required"` - Path string `json:"path,required"` - SameParty bool `json:"sameParty,required"` - Secure bool `json:"secure,required"` - Session bool `json:"session,required"` - Size float64 `json:"size,required"` - SourcePort float64 `json:"sourcePort,required"` - SourceScheme string `json:"sourceScheme,required"` - Value string `json:"value,required"` - Priority string `json:"priority"` - JSON scanGetResponseScanPageCookyJSON `json:"-"` -} - -// scanGetResponseScanPageCookyJSON contains the JSON metadata for the struct -// [ScanGetResponseScanPageCooky] -type scanGetResponseScanPageCookyJSON struct { +type ScanGetResponseScanPageCookie struct { + Domain string `json:"domain,required"` + Expires float64 `json:"expires,required"` + HTTPOnly bool `json:"httpOnly,required"` + Name string `json:"name,required"` + Path string `json:"path,required"` + SameParty bool `json:"sameParty,required"` + Secure bool `json:"secure,required"` + Session bool `json:"session,required"` + Size float64 `json:"size,required"` + SourcePort float64 `json:"sourcePort,required"` + SourceScheme string `json:"sourceScheme,required"` + Value string `json:"value,required"` + Priority string `json:"priority"` + JSON scanGetResponseScanPageCookieJSON `json:"-"` +} + +// scanGetResponseScanPageCookieJSON contains the JSON metadata for the struct +// [ScanGetResponseScanPageCookie] +type scanGetResponseScanPageCookieJSON struct { Domain apijson.Field Expires apijson.Field HTTPOnly apijson.Field @@ -617,11 +617,11 @@ type scanGetResponseScanPageCookyJSON struct { ExtraFields map[string]apijson.Field } -func (r *ScanGetResponseScanPageCooky) UnmarshalJSON(data []byte) (err error) { +func (r *ScanGetResponseScanPageCookie) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r scanGetResponseScanPageCookyJSON) RawJSON() string { +func (r scanGetResponseScanPageCookieJSON) RawJSON() string { return r.raw } From b1502e06208a02d859d63d8da7156d670edc5971 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 22:28:36 +0000 Subject: [PATCH 14/52] feat(api): OpenAPI spec update via Stainless API (#1797) --- cache/variant.go | 66 +++++++++++++++++++++---------------------- cache/variant_test.go | 22 +++++++-------- 2 files changed, 44 insertions(+), 44 deletions(-) diff --git a/cache/variant.go b/cache/variant.go index ff9d012756d..b454930e29c 100644 --- a/cache/variant.go +++ b/cache/variant.go @@ -164,37 +164,37 @@ func (r variantEditResponseJSON) RawJSON() string { type VariantEditResponseValue struct { // List of strings with the MIME types of all the variants that should be served // for avif. - Avif []interface{} `json:"avif"` + Avif []string `json:"avif"` // List of strings with the MIME types of all the variants that should be served // for bmp. - Bmp []interface{} `json:"bmp"` + Bmp []string `json:"bmp"` // List of strings with the MIME types of all the variants that should be served // for gif. - Gif []interface{} `json:"gif"` + Gif []string `json:"gif"` // List of strings with the MIME types of all the variants that should be served // for jp2. - Jp2 []interface{} `json:"jp2"` + Jp2 []string `json:"jp2"` // List of strings with the MIME types of all the variants that should be served // for jpeg. - Jpeg []interface{} `json:"jpeg"` + Jpeg []string `json:"jpeg"` // List of strings with the MIME types of all the variants that should be served // for jpg. - Jpg []interface{} `json:"jpg"` + Jpg []string `json:"jpg"` // List of strings with the MIME types of all the variants that should be served // for jpg2. - Jpg2 []interface{} `json:"jpg2"` + Jpg2 []string `json:"jpg2"` // List of strings with the MIME types of all the variants that should be served // for png. - Png []interface{} `json:"png"` + Png []string `json:"png"` // List of strings with the MIME types of all the variants that should be served // for tif. - Tif []interface{} `json:"tif"` + Tif []string `json:"tif"` // List of strings with the MIME types of all the variants that should be served // for tiff. - Tiff []interface{} `json:"tiff"` + Tiff []string `json:"tiff"` // List of strings with the MIME types of all the variants that should be served // for webp. - WebP []interface{} `json:"webp"` + WebP []string `json:"webp"` JSON variantEditResponseValueJSON `json:"-"` } @@ -261,37 +261,37 @@ func (r variantGetResponseJSON) RawJSON() string { type VariantGetResponseValue struct { // List of strings with the MIME types of all the variants that should be served // for avif. - Avif []interface{} `json:"avif"` + Avif []string `json:"avif"` // List of strings with the MIME types of all the variants that should be served // for bmp. - Bmp []interface{} `json:"bmp"` + Bmp []string `json:"bmp"` // List of strings with the MIME types of all the variants that should be served // for gif. - Gif []interface{} `json:"gif"` + Gif []string `json:"gif"` // List of strings with the MIME types of all the variants that should be served // for jp2. - Jp2 []interface{} `json:"jp2"` + Jp2 []string `json:"jp2"` // List of strings with the MIME types of all the variants that should be served // for jpeg. - Jpeg []interface{} `json:"jpeg"` + Jpeg []string `json:"jpeg"` // List of strings with the MIME types of all the variants that should be served // for jpg. - Jpg []interface{} `json:"jpg"` + Jpg []string `json:"jpg"` // List of strings with the MIME types of all the variants that should be served // for jpg2. - Jpg2 []interface{} `json:"jpg2"` + Jpg2 []string `json:"jpg2"` // List of strings with the MIME types of all the variants that should be served // for png. - Png []interface{} `json:"png"` + Png []string `json:"png"` // List of strings with the MIME types of all the variants that should be served // for tif. - Tif []interface{} `json:"tif"` + Tif []string `json:"tif"` // List of strings with the MIME types of all the variants that should be served // for tiff. - Tiff []interface{} `json:"tiff"` + Tiff []string `json:"tiff"` // List of strings with the MIME types of all the variants that should be served // for webp. - WebP []interface{} `json:"webp"` + WebP []string `json:"webp"` JSON variantGetResponseValueJSON `json:"-"` } @@ -394,37 +394,37 @@ func (r VariantEditParams) MarshalJSON() (data []byte, err error) { type VariantEditParamsValue struct { // List of strings with the MIME types of all the variants that should be served // for avif. - Avif param.Field[[]interface{}] `json:"avif"` + Avif param.Field[[]string] `json:"avif"` // List of strings with the MIME types of all the variants that should be served // for bmp. - Bmp param.Field[[]interface{}] `json:"bmp"` + Bmp param.Field[[]string] `json:"bmp"` // List of strings with the MIME types of all the variants that should be served // for gif. - Gif param.Field[[]interface{}] `json:"gif"` + Gif param.Field[[]string] `json:"gif"` // List of strings with the MIME types of all the variants that should be served // for jp2. - Jp2 param.Field[[]interface{}] `json:"jp2"` + Jp2 param.Field[[]string] `json:"jp2"` // List of strings with the MIME types of all the variants that should be served // for jpeg. - Jpeg param.Field[[]interface{}] `json:"jpeg"` + Jpeg param.Field[[]string] `json:"jpeg"` // List of strings with the MIME types of all the variants that should be served // for jpg. - Jpg param.Field[[]interface{}] `json:"jpg"` + Jpg param.Field[[]string] `json:"jpg"` // List of strings with the MIME types of all the variants that should be served // for jpg2. - Jpg2 param.Field[[]interface{}] `json:"jpg2"` + Jpg2 param.Field[[]string] `json:"jpg2"` // List of strings with the MIME types of all the variants that should be served // for png. - Png param.Field[[]interface{}] `json:"png"` + Png param.Field[[]string] `json:"png"` // List of strings with the MIME types of all the variants that should be served // for tif. - Tif param.Field[[]interface{}] `json:"tif"` + Tif param.Field[[]string] `json:"tif"` // List of strings with the MIME types of all the variants that should be served // for tiff. - Tiff param.Field[[]interface{}] `json:"tiff"` + Tiff param.Field[[]string] `json:"tiff"` // List of strings with the MIME types of all the variants that should be served // for webp. - WebP param.Field[[]interface{}] `json:"webp"` + WebP param.Field[[]string] `json:"webp"` } func (r VariantEditParamsValue) MarshalJSON() (data []byte, err error) { diff --git a/cache/variant_test.go b/cache/variant_test.go index fc9b3f6b763..9f8f8d727f5 100644 --- a/cache/variant_test.go +++ b/cache/variant_test.go @@ -58,17 +58,17 @@ func TestVariantEditWithOptionalParams(t *testing.T) { _, err := client.Cache.Variants.Edit(context.TODO(), cache.VariantEditParams{ ZoneID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), Value: cloudflare.F(cache.VariantEditParamsValue{ - Avif: cloudflare.F([]interface{}{"image/webp", "image/jpeg"}), - Bmp: cloudflare.F([]interface{}{"image/webp", "image/jpeg"}), - Gif: cloudflare.F([]interface{}{"image/webp", "image/jpeg"}), - Jp2: cloudflare.F([]interface{}{"image/webp", "image/avif"}), - Jpeg: cloudflare.F([]interface{}{"image/webp", "image/avif"}), - Jpg: cloudflare.F([]interface{}{"image/webp", "image/avif"}), - Jpg2: cloudflare.F([]interface{}{"image/webp", "image/avif"}), - Png: cloudflare.F([]interface{}{"image/webp", "image/avif"}), - Tif: cloudflare.F([]interface{}{"image/webp", "image/avif"}), - Tiff: cloudflare.F([]interface{}{"image/webp", "image/avif"}), - WebP: cloudflare.F([]interface{}{"image/jpeg", "image/avif"}), + Avif: cloudflare.F([]string{"image/webp", "image/jpeg"}), + Bmp: cloudflare.F([]string{"image/webp", "image/jpeg"}), + Gif: cloudflare.F([]string{"image/webp", "image/jpeg"}), + Jp2: cloudflare.F([]string{"image/webp", "image/avif"}), + Jpeg: cloudflare.F([]string{"image/webp", "image/avif"}), + Jpg: cloudflare.F([]string{"image/webp", "image/avif"}), + Jpg2: cloudflare.F([]string{"image/webp", "image/avif"}), + Png: cloudflare.F([]string{"image/webp", "image/avif"}), + Tif: cloudflare.F([]string{"image/webp", "image/avif"}), + Tiff: cloudflare.F([]string{"image/webp", "image/avif"}), + WebP: cloudflare.F([]string{"image/jpeg", "image/avif"}), }), }) if err != nil { From 18a026c94477768a9becb39fca9d07467d9c5c7a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Apr 2024 00:25:10 +0000 Subject: [PATCH 15/52] feat(api): OpenAPI spec update via Stainless API (#1798) --- cache/cache.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cache/cache.go b/cache/cache.go index 78bc7dadcd4..e2ca758e71e 100644 --- a/cache/cache.go +++ b/cache/cache.go @@ -219,9 +219,9 @@ func (r CachePurgeParamsBodyCachePurgeFilesFilesCachePurgeURLAndHeaders) Impleme type CachePurgeResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result CachePurgeResponse `json:"result,required,nullable"` // Whether the API call was successful Success CachePurgeResponseEnvelopeSuccess `json:"success,required"` + Result CachePurgeResponse `json:"result,nullable"` JSON cachePurgeResponseEnvelopeJSON `json:"-"` } @@ -230,8 +230,8 @@ type CachePurgeResponseEnvelope struct { type cachePurgeResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } From 476c601dd3811c56d0809cf4ac1da95e48836d38 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Apr 2024 04:40:21 +0000 Subject: [PATCH 16/52] feat(api): update via SDK Studio (#1799) --- cache/variant.go | 80 +++++++++++++++++++++---------------------- cache/variant_test.go | 16 ++++----- 2 files changed, 48 insertions(+), 48 deletions(-) diff --git a/cache/variant.go b/cache/variant.go index b454930e29c..af095ffdbd0 100644 --- a/cache/variant.go +++ b/cache/variant.go @@ -167,31 +167,31 @@ type VariantEditResponseValue struct { Avif []string `json:"avif"` // List of strings with the MIME types of all the variants that should be served // for bmp. - Bmp []string `json:"bmp"` + BMP []string `json:"bmp"` // List of strings with the MIME types of all the variants that should be served // for gif. - Gif []string `json:"gif"` + GIF []string `json:"gif"` // List of strings with the MIME types of all the variants that should be served // for jp2. - Jp2 []string `json:"jp2"` + JP2 []string `json:"jp2"` // List of strings with the MIME types of all the variants that should be served // for jpeg. - Jpeg []string `json:"jpeg"` + JPEG []string `json:"jpeg"` // List of strings with the MIME types of all the variants that should be served // for jpg. Jpg []string `json:"jpg"` // List of strings with the MIME types of all the variants that should be served // for jpg2. - Jpg2 []string `json:"jpg2"` + JPG2 []string `json:"jpg2"` // List of strings with the MIME types of all the variants that should be served // for png. - Png []string `json:"png"` + PNG []string `json:"png"` // List of strings with the MIME types of all the variants that should be served // for tif. - Tif []string `json:"tif"` + TIF []string `json:"tif"` // List of strings with the MIME types of all the variants that should be served // for tiff. - Tiff []string `json:"tiff"` + TIFF []string `json:"tiff"` // List of strings with the MIME types of all the variants that should be served // for webp. WebP []string `json:"webp"` @@ -202,15 +202,15 @@ type VariantEditResponseValue struct { // [VariantEditResponseValue] type variantEditResponseValueJSON struct { Avif apijson.Field - Bmp apijson.Field - Gif apijson.Field - Jp2 apijson.Field - Jpeg apijson.Field + BMP apijson.Field + GIF apijson.Field + JP2 apijson.Field + JPEG apijson.Field Jpg apijson.Field - Jpg2 apijson.Field - Png apijson.Field - Tif apijson.Field - Tiff apijson.Field + JPG2 apijson.Field + PNG apijson.Field + TIF apijson.Field + TIFF apijson.Field WebP apijson.Field raw string ExtraFields map[string]apijson.Field @@ -264,31 +264,31 @@ type VariantGetResponseValue struct { Avif []string `json:"avif"` // List of strings with the MIME types of all the variants that should be served // for bmp. - Bmp []string `json:"bmp"` + BMP []string `json:"bmp"` // List of strings with the MIME types of all the variants that should be served // for gif. - Gif []string `json:"gif"` + GIF []string `json:"gif"` // List of strings with the MIME types of all the variants that should be served // for jp2. - Jp2 []string `json:"jp2"` + JP2 []string `json:"jp2"` // List of strings with the MIME types of all the variants that should be served // for jpeg. - Jpeg []string `json:"jpeg"` + JPEG []string `json:"jpeg"` // List of strings with the MIME types of all the variants that should be served // for jpg. Jpg []string `json:"jpg"` // List of strings with the MIME types of all the variants that should be served // for jpg2. - Jpg2 []string `json:"jpg2"` + JPG2 []string `json:"jpg2"` // List of strings with the MIME types of all the variants that should be served // for png. - Png []string `json:"png"` + PNG []string `json:"png"` // List of strings with the MIME types of all the variants that should be served // for tif. - Tif []string `json:"tif"` + TIF []string `json:"tif"` // List of strings with the MIME types of all the variants that should be served // for tiff. - Tiff []string `json:"tiff"` + TIFF []string `json:"tiff"` // List of strings with the MIME types of all the variants that should be served // for webp. WebP []string `json:"webp"` @@ -299,15 +299,15 @@ type VariantGetResponseValue struct { // [VariantGetResponseValue] type variantGetResponseValueJSON struct { Avif apijson.Field - Bmp apijson.Field - Gif apijson.Field - Jp2 apijson.Field - Jpeg apijson.Field + BMP apijson.Field + GIF apijson.Field + JP2 apijson.Field + JPEG apijson.Field Jpg apijson.Field - Jpg2 apijson.Field - Png apijson.Field - Tif apijson.Field - Tiff apijson.Field + JPG2 apijson.Field + PNG apijson.Field + TIF apijson.Field + TIFF apijson.Field WebP apijson.Field raw string ExtraFields map[string]apijson.Field @@ -397,31 +397,31 @@ type VariantEditParamsValue struct { Avif param.Field[[]string] `json:"avif"` // List of strings with the MIME types of all the variants that should be served // for bmp. - Bmp param.Field[[]string] `json:"bmp"` + BMP param.Field[[]string] `json:"bmp"` // List of strings with the MIME types of all the variants that should be served // for gif. - Gif param.Field[[]string] `json:"gif"` + GIF param.Field[[]string] `json:"gif"` // List of strings with the MIME types of all the variants that should be served // for jp2. - Jp2 param.Field[[]string] `json:"jp2"` + JP2 param.Field[[]string] `json:"jp2"` // List of strings with the MIME types of all the variants that should be served // for jpeg. - Jpeg param.Field[[]string] `json:"jpeg"` + JPEG param.Field[[]string] `json:"jpeg"` // List of strings with the MIME types of all the variants that should be served // for jpg. Jpg param.Field[[]string] `json:"jpg"` // List of strings with the MIME types of all the variants that should be served // for jpg2. - Jpg2 param.Field[[]string] `json:"jpg2"` + JPG2 param.Field[[]string] `json:"jpg2"` // List of strings with the MIME types of all the variants that should be served // for png. - Png param.Field[[]string] `json:"png"` + PNG param.Field[[]string] `json:"png"` // List of strings with the MIME types of all the variants that should be served // for tif. - Tif param.Field[[]string] `json:"tif"` + TIF param.Field[[]string] `json:"tif"` // List of strings with the MIME types of all the variants that should be served // for tiff. - Tiff param.Field[[]string] `json:"tiff"` + TIFF param.Field[[]string] `json:"tiff"` // List of strings with the MIME types of all the variants that should be served // for webp. WebP param.Field[[]string] `json:"webp"` diff --git a/cache/variant_test.go b/cache/variant_test.go index 9f8f8d727f5..cfa9a34ae5f 100644 --- a/cache/variant_test.go +++ b/cache/variant_test.go @@ -59,15 +59,15 @@ func TestVariantEditWithOptionalParams(t *testing.T) { ZoneID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), Value: cloudflare.F(cache.VariantEditParamsValue{ Avif: cloudflare.F([]string{"image/webp", "image/jpeg"}), - Bmp: cloudflare.F([]string{"image/webp", "image/jpeg"}), - Gif: cloudflare.F([]string{"image/webp", "image/jpeg"}), - Jp2: cloudflare.F([]string{"image/webp", "image/avif"}), - Jpeg: cloudflare.F([]string{"image/webp", "image/avif"}), + BMP: cloudflare.F([]string{"image/webp", "image/jpeg"}), + GIF: cloudflare.F([]string{"image/webp", "image/jpeg"}), + JP2: cloudflare.F([]string{"image/webp", "image/avif"}), + JPEG: cloudflare.F([]string{"image/webp", "image/avif"}), Jpg: cloudflare.F([]string{"image/webp", "image/avif"}), - Jpg2: cloudflare.F([]string{"image/webp", "image/avif"}), - Png: cloudflare.F([]string{"image/webp", "image/avif"}), - Tif: cloudflare.F([]string{"image/webp", "image/avif"}), - Tiff: cloudflare.F([]string{"image/webp", "image/avif"}), + JPG2: cloudflare.F([]string{"image/webp", "image/avif"}), + PNG: cloudflare.F([]string{"image/webp", "image/avif"}), + TIF: cloudflare.F([]string{"image/webp", "image/avif"}), + TIFF: cloudflare.F([]string{"image/webp", "image/avif"}), WebP: cloudflare.F([]string{"image/jpeg", "image/avif"}), }), }) From c0c9b23b3a654508939a30dcd85c798f773ec928 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Apr 2024 15:30:53 +0000 Subject: [PATCH 17/52] feat(api): OpenAPI spec update via Stainless API (#1800) --- zero_trust/dexfleetstatus.go | 8 ++++---- zero_trust/dexhttptest.go | 4 ++-- zero_trust/dexhttptestpercentile.go | 8 ++++---- zero_trust/dextest.go | 4 ++-- zero_trust/dextestuniquedevice.go | 4 ++-- zero_trust/dextraceroutetest.go | 16 ++++++++-------- zero_trust/dextraceroutetestresultnetworkpath.go | 8 ++++---- 7 files changed, 26 insertions(+), 26 deletions(-) diff --git a/zero_trust/dexfleetstatus.go b/zero_trust/dexfleetstatus.go index 6fe89f787a4..d93ccb0521f 100644 --- a/zero_trust/dexfleetstatus.go +++ b/zero_trust/dexfleetstatus.go @@ -150,11 +150,11 @@ func (r DEXFleetStatusLiveParams) URLQuery() (v url.Values) { } type DEXFleetStatusLiveResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result DEXFleetStatusLiveResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DEXFleetStatusLiveResponseEnvelopeSuccess `json:"success,required"` + Result DEXFleetStatusLiveResponse `json:"result"` JSON dexFleetStatusLiveResponseEnvelopeJSON `json:"-"` } @@ -163,8 +163,8 @@ type DEXFleetStatusLiveResponseEnvelope struct { type dexFleetStatusLiveResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/dexhttptest.go b/zero_trust/dexhttptest.go index 2230b301a93..0277a2c09a7 100644 --- a/zero_trust/dexhttptest.go +++ b/zero_trust/dexhttptest.go @@ -377,9 +377,9 @@ func (r DexhttpTestGetParamsInterval) IsKnown() bool { type DexhttpTestGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result HTTPDetails `json:"result,required"` // Whether the API call was successful Success DexhttpTestGetResponseEnvelopeSuccess `json:"success,required"` + Result HTTPDetails `json:"result"` JSON dexhttpTestGetResponseEnvelopeJSON `json:"-"` } @@ -388,8 +388,8 @@ type DexhttpTestGetResponseEnvelope struct { type dexhttpTestGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/dexhttptestpercentile.go b/zero_trust/dexhttptestpercentile.go index acbdf4cb7ab..5cbb9016fc7 100644 --- a/zero_trust/dexhttptestpercentile.go +++ b/zero_trust/dexhttptestpercentile.go @@ -150,11 +150,11 @@ func (r DEXHTTPTestPercentileGetParams) URLQuery() (v url.Values) { } type DexhttpTestPercentileGetResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result HTTPDetailsPercentiles `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DexhttpTestPercentileGetResponseEnvelopeSuccess `json:"success,required"` + Result HTTPDetailsPercentiles `json:"result"` JSON dexhttpTestPercentileGetResponseEnvelopeJSON `json:"-"` } @@ -163,8 +163,8 @@ type DexhttpTestPercentileGetResponseEnvelope struct { type dexhttpTestPercentileGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/dextest.go b/zero_trust/dextest.go index 22528a34052..c715d7f738e 100644 --- a/zero_trust/dextest.go +++ b/zero_trust/dextest.go @@ -703,9 +703,9 @@ func (r testsTestsTracerouteResultsByColoRoundTripTimeOverTimeValueJSON) RawJSON type DEXTestListResponse struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Tests `json:"result,required"` // Whether the API call was successful Success DEXTestListResponseSuccess `json:"success,required"` + Result Tests `json:"result"` ResultInfo DEXTestListResponseResultInfo `json:"result_info"` JSON dexTestListResponseJSON `json:"-"` } @@ -715,8 +715,8 @@ type DEXTestListResponse struct { type dexTestListResponseJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field ResultInfo apijson.Field raw string ExtraFields map[string]apijson.Field diff --git a/zero_trust/dextestuniquedevice.go b/zero_trust/dextestuniquedevice.go index 75a80f6ddfa..c7a7c8fc6e1 100644 --- a/zero_trust/dextestuniquedevice.go +++ b/zero_trust/dextestuniquedevice.go @@ -90,9 +90,9 @@ func (r DEXTestUniqueDeviceListParams) URLQuery() (v url.Values) { type DEXTestUniqueDeviceListResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result UniqueDevices `json:"result,required"` // Whether the API call was successful Success DEXTestUniqueDeviceListResponseEnvelopeSuccess `json:"success,required"` + Result UniqueDevices `json:"result"` JSON dexTestUniqueDeviceListResponseEnvelopeJSON `json:"-"` } @@ -101,8 +101,8 @@ type DEXTestUniqueDeviceListResponseEnvelope struct { type dexTestUniqueDeviceListResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/dextraceroutetest.go b/zero_trust/dextraceroutetest.go index 2403a34a88f..9dce1662b91 100644 --- a/zero_trust/dextraceroutetest.go +++ b/zero_trust/dextraceroutetest.go @@ -469,9 +469,9 @@ func (r DEXTracerouteTestGetParamsInterval) IsKnown() bool { type DEXTracerouteTestGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Traceroute `json:"result,required"` // Whether the API call was successful Success DEXTracerouteTestGetResponseEnvelopeSuccess `json:"success,required"` + Result Traceroute `json:"result"` JSON dexTracerouteTestGetResponseEnvelopeJSON `json:"-"` } @@ -480,8 +480,8 @@ type DEXTracerouteTestGetResponseEnvelope struct { type dexTracerouteTestGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -549,9 +549,9 @@ func (r DEXTracerouteTestNetworkPathParamsInterval) IsKnown() bool { type DEXTracerouteTestNetworkPathResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result NetworkPath `json:"result,required"` // Whether the API call was successful Success DEXTracerouteTestNetworkPathResponseEnvelopeSuccess `json:"success,required"` + Result NetworkPath `json:"result"` JSON dexTracerouteTestNetworkPathResponseEnvelopeJSON `json:"-"` } @@ -560,8 +560,8 @@ type DEXTracerouteTestNetworkPathResponseEnvelope struct { type dexTracerouteTestNetworkPathResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -613,11 +613,11 @@ func (r DEXTracerouteTestPercentilesParams) URLQuery() (v url.Values) { } type DEXTracerouteTestPercentilesResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result DEXTracerouteTestPercentilesResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DEXTracerouteTestPercentilesResponseEnvelopeSuccess `json:"success,required"` + Result DEXTracerouteTestPercentilesResponse `json:"result"` JSON dexTracerouteTestPercentilesResponseEnvelopeJSON `json:"-"` } @@ -626,8 +626,8 @@ type DEXTracerouteTestPercentilesResponseEnvelope struct { type dexTracerouteTestPercentilesResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/dextraceroutetestresultnetworkpath.go b/zero_trust/dextraceroutetestresultnetworkpath.go index 6717f267c86..d236c91b2ea 100644 --- a/zero_trust/dextraceroutetestresultnetworkpath.go +++ b/zero_trust/dextraceroutetestresultnetworkpath.go @@ -169,11 +169,11 @@ type DEXTracerouteTestResultNetworkPathGetParams struct { } type DEXTracerouteTestResultNetworkPathGetResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result DEXTracerouteTestResultNetworkPathGetResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DEXTracerouteTestResultNetworkPathGetResponseEnvelopeSuccess `json:"success,required"` + Result DEXTracerouteTestResultNetworkPathGetResponse `json:"result"` JSON dexTracerouteTestResultNetworkPathGetResponseEnvelopeJSON `json:"-"` } @@ -182,8 +182,8 @@ type DEXTracerouteTestResultNetworkPathGetResponseEnvelope struct { type dexTracerouteTestResultNetworkPathGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } From 5a77eaeebe2dbccabb96f831f173c812d7546556 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Apr 2024 15:32:29 +0000 Subject: [PATCH 18/52] feat(api): OpenAPI spec update via Stainless API (#1801) --- zero_trust/dexfleetstatus.go | 8 ++++---- zero_trust/dexhttptest.go | 4 ++-- zero_trust/dexhttptestpercentile.go | 8 ++++---- zero_trust/dextest.go | 4 ++-- zero_trust/dextestuniquedevice.go | 4 ++-- zero_trust/dextraceroutetest.go | 16 ++++++++-------- zero_trust/dextraceroutetestresultnetworkpath.go | 8 ++++---- 7 files changed, 26 insertions(+), 26 deletions(-) diff --git a/zero_trust/dexfleetstatus.go b/zero_trust/dexfleetstatus.go index d93ccb0521f..6fe89f787a4 100644 --- a/zero_trust/dexfleetstatus.go +++ b/zero_trust/dexfleetstatus.go @@ -150,11 +150,11 @@ func (r DEXFleetStatusLiveParams) URLQuery() (v url.Values) { } type DEXFleetStatusLiveResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + Result DEXFleetStatusLiveResponse `json:"result,required"` // Whether the API call was successful Success DEXFleetStatusLiveResponseEnvelopeSuccess `json:"success,required"` - Result DEXFleetStatusLiveResponse `json:"result"` JSON dexFleetStatusLiveResponseEnvelopeJSON `json:"-"` } @@ -163,8 +163,8 @@ type DEXFleetStatusLiveResponseEnvelope struct { type dexFleetStatusLiveResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/dexhttptest.go b/zero_trust/dexhttptest.go index 0277a2c09a7..2230b301a93 100644 --- a/zero_trust/dexhttptest.go +++ b/zero_trust/dexhttptest.go @@ -377,9 +377,9 @@ func (r DexhttpTestGetParamsInterval) IsKnown() bool { type DexhttpTestGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` + Result HTTPDetails `json:"result,required"` // Whether the API call was successful Success DexhttpTestGetResponseEnvelopeSuccess `json:"success,required"` - Result HTTPDetails `json:"result"` JSON dexhttpTestGetResponseEnvelopeJSON `json:"-"` } @@ -388,8 +388,8 @@ type DexhttpTestGetResponseEnvelope struct { type dexhttpTestGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/dexhttptestpercentile.go b/zero_trust/dexhttptestpercentile.go index 5cbb9016fc7..acbdf4cb7ab 100644 --- a/zero_trust/dexhttptestpercentile.go +++ b/zero_trust/dexhttptestpercentile.go @@ -150,11 +150,11 @@ func (r DEXHTTPTestPercentileGetParams) URLQuery() (v url.Values) { } type DexhttpTestPercentileGetResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + Result HTTPDetailsPercentiles `json:"result,required"` // Whether the API call was successful Success DexhttpTestPercentileGetResponseEnvelopeSuccess `json:"success,required"` - Result HTTPDetailsPercentiles `json:"result"` JSON dexhttpTestPercentileGetResponseEnvelopeJSON `json:"-"` } @@ -163,8 +163,8 @@ type DexhttpTestPercentileGetResponseEnvelope struct { type dexhttpTestPercentileGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/dextest.go b/zero_trust/dextest.go index c715d7f738e..22528a34052 100644 --- a/zero_trust/dextest.go +++ b/zero_trust/dextest.go @@ -703,9 +703,9 @@ func (r testsTestsTracerouteResultsByColoRoundTripTimeOverTimeValueJSON) RawJSON type DEXTestListResponse struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` + Result Tests `json:"result,required"` // Whether the API call was successful Success DEXTestListResponseSuccess `json:"success,required"` - Result Tests `json:"result"` ResultInfo DEXTestListResponseResultInfo `json:"result_info"` JSON dexTestListResponseJSON `json:"-"` } @@ -715,8 +715,8 @@ type DEXTestListResponse struct { type dexTestListResponseJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field ResultInfo apijson.Field raw string ExtraFields map[string]apijson.Field diff --git a/zero_trust/dextestuniquedevice.go b/zero_trust/dextestuniquedevice.go index c7a7c8fc6e1..75a80f6ddfa 100644 --- a/zero_trust/dextestuniquedevice.go +++ b/zero_trust/dextestuniquedevice.go @@ -90,9 +90,9 @@ func (r DEXTestUniqueDeviceListParams) URLQuery() (v url.Values) { type DEXTestUniqueDeviceListResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` + Result UniqueDevices `json:"result,required"` // Whether the API call was successful Success DEXTestUniqueDeviceListResponseEnvelopeSuccess `json:"success,required"` - Result UniqueDevices `json:"result"` JSON dexTestUniqueDeviceListResponseEnvelopeJSON `json:"-"` } @@ -101,8 +101,8 @@ type DEXTestUniqueDeviceListResponseEnvelope struct { type dexTestUniqueDeviceListResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/dextraceroutetest.go b/zero_trust/dextraceroutetest.go index 9dce1662b91..2403a34a88f 100644 --- a/zero_trust/dextraceroutetest.go +++ b/zero_trust/dextraceroutetest.go @@ -469,9 +469,9 @@ func (r DEXTracerouteTestGetParamsInterval) IsKnown() bool { type DEXTracerouteTestGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` + Result Traceroute `json:"result,required"` // Whether the API call was successful Success DEXTracerouteTestGetResponseEnvelopeSuccess `json:"success,required"` - Result Traceroute `json:"result"` JSON dexTracerouteTestGetResponseEnvelopeJSON `json:"-"` } @@ -480,8 +480,8 @@ type DEXTracerouteTestGetResponseEnvelope struct { type dexTracerouteTestGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -549,9 +549,9 @@ func (r DEXTracerouteTestNetworkPathParamsInterval) IsKnown() bool { type DEXTracerouteTestNetworkPathResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` + Result NetworkPath `json:"result,required"` // Whether the API call was successful Success DEXTracerouteTestNetworkPathResponseEnvelopeSuccess `json:"success,required"` - Result NetworkPath `json:"result"` JSON dexTracerouteTestNetworkPathResponseEnvelopeJSON `json:"-"` } @@ -560,8 +560,8 @@ type DEXTracerouteTestNetworkPathResponseEnvelope struct { type dexTracerouteTestNetworkPathResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -613,11 +613,11 @@ func (r DEXTracerouteTestPercentilesParams) URLQuery() (v url.Values) { } type DEXTracerouteTestPercentilesResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + Result DEXTracerouteTestPercentilesResponse `json:"result,required"` // Whether the API call was successful Success DEXTracerouteTestPercentilesResponseEnvelopeSuccess `json:"success,required"` - Result DEXTracerouteTestPercentilesResponse `json:"result"` JSON dexTracerouteTestPercentilesResponseEnvelopeJSON `json:"-"` } @@ -626,8 +626,8 @@ type DEXTracerouteTestPercentilesResponseEnvelope struct { type dexTracerouteTestPercentilesResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/dextraceroutetestresultnetworkpath.go b/zero_trust/dextraceroutetestresultnetworkpath.go index d236c91b2ea..6717f267c86 100644 --- a/zero_trust/dextraceroutetestresultnetworkpath.go +++ b/zero_trust/dextraceroutetestresultnetworkpath.go @@ -169,11 +169,11 @@ type DEXTracerouteTestResultNetworkPathGetParams struct { } type DEXTracerouteTestResultNetworkPathGetResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + Result DEXTracerouteTestResultNetworkPathGetResponse `json:"result,required"` // Whether the API call was successful Success DEXTracerouteTestResultNetworkPathGetResponseEnvelopeSuccess `json:"success,required"` - Result DEXTracerouteTestResultNetworkPathGetResponse `json:"result"` JSON dexTracerouteTestResultNetworkPathGetResponseEnvelopeJSON `json:"-"` } @@ -182,8 +182,8 @@ type DEXTracerouteTestResultNetworkPathGetResponseEnvelope struct { type dexTracerouteTestResultNetworkPathGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } From ab55f0c71c381292891bc586cdd25e408216be3c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Apr 2024 15:44:00 +0000 Subject: [PATCH 19/52] feat(api): OpenAPI spec update via Stainless API (#1802) --- .devcontainer/Dockerfile | 4 ++++ zero_trust/dexfleetstatus.go | 8 ++++---- zero_trust/dexhttptest.go | 4 ++-- zero_trust/dexhttptestpercentile.go | 8 ++++---- zero_trust/dextest.go | 4 ++-- zero_trust/dextestuniquedevice.go | 4 ++-- zero_trust/dextraceroutetest.go | 16 ++++++++-------- zero_trust/dextraceroutetestresultnetworkpath.go | 8 ++++---- 8 files changed, 30 insertions(+), 26 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index a5e092fc5ab..1aa883d9954 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -11,6 +11,10 @@ RUN apt-get update && apt-get install -y \ vim \ && apt-get clean autoclean +# Ensure UTF-8 encoding +ENV LANG=C.UTF-8 +ENV LC_ALL=C.UTF-8 + ENV GOPATH=/go ENV PATH=$GOPATH/bin:$PATH diff --git a/zero_trust/dexfleetstatus.go b/zero_trust/dexfleetstatus.go index 6fe89f787a4..d93ccb0521f 100644 --- a/zero_trust/dexfleetstatus.go +++ b/zero_trust/dexfleetstatus.go @@ -150,11 +150,11 @@ func (r DEXFleetStatusLiveParams) URLQuery() (v url.Values) { } type DEXFleetStatusLiveResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result DEXFleetStatusLiveResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DEXFleetStatusLiveResponseEnvelopeSuccess `json:"success,required"` + Result DEXFleetStatusLiveResponse `json:"result"` JSON dexFleetStatusLiveResponseEnvelopeJSON `json:"-"` } @@ -163,8 +163,8 @@ type DEXFleetStatusLiveResponseEnvelope struct { type dexFleetStatusLiveResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/dexhttptest.go b/zero_trust/dexhttptest.go index 2230b301a93..0277a2c09a7 100644 --- a/zero_trust/dexhttptest.go +++ b/zero_trust/dexhttptest.go @@ -377,9 +377,9 @@ func (r DexhttpTestGetParamsInterval) IsKnown() bool { type DexhttpTestGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result HTTPDetails `json:"result,required"` // Whether the API call was successful Success DexhttpTestGetResponseEnvelopeSuccess `json:"success,required"` + Result HTTPDetails `json:"result"` JSON dexhttpTestGetResponseEnvelopeJSON `json:"-"` } @@ -388,8 +388,8 @@ type DexhttpTestGetResponseEnvelope struct { type dexhttpTestGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/dexhttptestpercentile.go b/zero_trust/dexhttptestpercentile.go index acbdf4cb7ab..5cbb9016fc7 100644 --- a/zero_trust/dexhttptestpercentile.go +++ b/zero_trust/dexhttptestpercentile.go @@ -150,11 +150,11 @@ func (r DEXHTTPTestPercentileGetParams) URLQuery() (v url.Values) { } type DexhttpTestPercentileGetResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result HTTPDetailsPercentiles `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DexhttpTestPercentileGetResponseEnvelopeSuccess `json:"success,required"` + Result HTTPDetailsPercentiles `json:"result"` JSON dexhttpTestPercentileGetResponseEnvelopeJSON `json:"-"` } @@ -163,8 +163,8 @@ type DexhttpTestPercentileGetResponseEnvelope struct { type dexhttpTestPercentileGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/dextest.go b/zero_trust/dextest.go index 22528a34052..c715d7f738e 100644 --- a/zero_trust/dextest.go +++ b/zero_trust/dextest.go @@ -703,9 +703,9 @@ func (r testsTestsTracerouteResultsByColoRoundTripTimeOverTimeValueJSON) RawJSON type DEXTestListResponse struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Tests `json:"result,required"` // Whether the API call was successful Success DEXTestListResponseSuccess `json:"success,required"` + Result Tests `json:"result"` ResultInfo DEXTestListResponseResultInfo `json:"result_info"` JSON dexTestListResponseJSON `json:"-"` } @@ -715,8 +715,8 @@ type DEXTestListResponse struct { type dexTestListResponseJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field ResultInfo apijson.Field raw string ExtraFields map[string]apijson.Field diff --git a/zero_trust/dextestuniquedevice.go b/zero_trust/dextestuniquedevice.go index 75a80f6ddfa..c7a7c8fc6e1 100644 --- a/zero_trust/dextestuniquedevice.go +++ b/zero_trust/dextestuniquedevice.go @@ -90,9 +90,9 @@ func (r DEXTestUniqueDeviceListParams) URLQuery() (v url.Values) { type DEXTestUniqueDeviceListResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result UniqueDevices `json:"result,required"` // Whether the API call was successful Success DEXTestUniqueDeviceListResponseEnvelopeSuccess `json:"success,required"` + Result UniqueDevices `json:"result"` JSON dexTestUniqueDeviceListResponseEnvelopeJSON `json:"-"` } @@ -101,8 +101,8 @@ type DEXTestUniqueDeviceListResponseEnvelope struct { type dexTestUniqueDeviceListResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/dextraceroutetest.go b/zero_trust/dextraceroutetest.go index 2403a34a88f..9dce1662b91 100644 --- a/zero_trust/dextraceroutetest.go +++ b/zero_trust/dextraceroutetest.go @@ -469,9 +469,9 @@ func (r DEXTracerouteTestGetParamsInterval) IsKnown() bool { type DEXTracerouteTestGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Traceroute `json:"result,required"` // Whether the API call was successful Success DEXTracerouteTestGetResponseEnvelopeSuccess `json:"success,required"` + Result Traceroute `json:"result"` JSON dexTracerouteTestGetResponseEnvelopeJSON `json:"-"` } @@ -480,8 +480,8 @@ type DEXTracerouteTestGetResponseEnvelope struct { type dexTracerouteTestGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -549,9 +549,9 @@ func (r DEXTracerouteTestNetworkPathParamsInterval) IsKnown() bool { type DEXTracerouteTestNetworkPathResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result NetworkPath `json:"result,required"` // Whether the API call was successful Success DEXTracerouteTestNetworkPathResponseEnvelopeSuccess `json:"success,required"` + Result NetworkPath `json:"result"` JSON dexTracerouteTestNetworkPathResponseEnvelopeJSON `json:"-"` } @@ -560,8 +560,8 @@ type DEXTracerouteTestNetworkPathResponseEnvelope struct { type dexTracerouteTestNetworkPathResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -613,11 +613,11 @@ func (r DEXTracerouteTestPercentilesParams) URLQuery() (v url.Values) { } type DEXTracerouteTestPercentilesResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result DEXTracerouteTestPercentilesResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DEXTracerouteTestPercentilesResponseEnvelopeSuccess `json:"success,required"` + Result DEXTracerouteTestPercentilesResponse `json:"result"` JSON dexTracerouteTestPercentilesResponseEnvelopeJSON `json:"-"` } @@ -626,8 +626,8 @@ type DEXTracerouteTestPercentilesResponseEnvelope struct { type dexTracerouteTestPercentilesResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/dextraceroutetestresultnetworkpath.go b/zero_trust/dextraceroutetestresultnetworkpath.go index 6717f267c86..d236c91b2ea 100644 --- a/zero_trust/dextraceroutetestresultnetworkpath.go +++ b/zero_trust/dextraceroutetestresultnetworkpath.go @@ -169,11 +169,11 @@ type DEXTracerouteTestResultNetworkPathGetParams struct { } type DEXTracerouteTestResultNetworkPathGetResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result DEXTracerouteTestResultNetworkPathGetResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DEXTracerouteTestResultNetworkPathGetResponseEnvelopeSuccess `json:"success,required"` + Result DEXTracerouteTestResultNetworkPathGetResponse `json:"result"` JSON dexTracerouteTestResultNetworkPathGetResponseEnvelopeJSON `json:"-"` } @@ -182,8 +182,8 @@ type DEXTracerouteTestResultNetworkPathGetResponseEnvelope struct { type dexTracerouteTestResultNetworkPathGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } From 3bcc682965266e5ebfe1f1e0c685711b30e04b77 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Apr 2024 15:50:36 +0000 Subject: [PATCH 20/52] feat(api): OpenAPI spec update via Stainless API (#1803) --- zero_trust/accessapplication.go | 48 +++++++++++++++---- zero_trust/accessapplication_test.go | 2 + zero_trust/accessapplicationca.go | 24 +++++----- zero_trust/accessapplicationpolicy.go | 20 ++++---- .../accessapplicationuserpolicycheck.go | 8 ++-- zero_trust/accessbookmark.go | 20 ++++---- zero_trust/accesscertificate.go | 20 ++++---- zero_trust/accesscertificatesetting.go | 8 ++-- zero_trust/accesscustompage.go | 20 ++++---- zero_trust/accessgroup.go | 20 ++++---- zero_trust/accesskey.go | 24 +++++----- zero_trust/accesslogaccessrequest.go | 4 +- zero_trust/accessservicetoken.go | 28 +++++------ zero_trust/accesstag.go | 32 ++++++------- zero_trust/accessuseractivesession.go | 8 ++-- zero_trust/accessuserlastseenidentity.go | 4 +- zero_trust/identityprovider.go | 20 ++++---- zero_trust/organization.go | 12 ++--- zero_trust/seat.go | 4 +- 19 files changed, 178 insertions(+), 148 deletions(-) diff --git a/zero_trust/accessapplication.go b/zero_trust/accessapplication.go index bc9149da9b5..882e10dc7f3 100644 --- a/zero_trust/accessapplication.go +++ b/zero_trust/accessapplication.go @@ -267,6 +267,9 @@ type Application struct { LogoURL string `json:"logo_url"` // The name of the application. Name string `json:"name"` + // Allows options preflight requests to bypass Access authentication and go + // directly to the origin. Cannot turn on if cors_headers is set. + OptionsPreflightBypass bool `json:"options_preflight_bypass"` // Enables cookie paths to scope an application's JWT to the application path. If // disabled, the JWT will scope to the hostname by default PathCookieAttribute bool `json:"path_cookie_attribute"` @@ -310,6 +313,7 @@ type applicationJSON struct { HTTPOnlyCookieAttribute apijson.Field LogoURL apijson.Field Name apijson.Field + OptionsPreflightBypass apijson.Field PathCookieAttribute apijson.Field SameSiteCookieAttribute apijson.Field SelfHostedDomains apijson.Field @@ -436,6 +440,9 @@ type ApplicationSelfHostedApplication struct { LogoURL string `json:"logo_url"` // The name of the application. Name string `json:"name"` + // Allows options preflight requests to bypass Access authentication and go + // directly to the origin. Cannot turn on if cors_headers is set. + OptionsPreflightBypass bool `json:"options_preflight_bypass"` // Enables cookie paths to scope an application's JWT to the application path. If // disabled, the JWT will scope to the hostname by default PathCookieAttribute bool `json:"path_cookie_attribute"` @@ -480,6 +487,7 @@ type applicationSelfHostedApplicationJSON struct { HTTPOnlyCookieAttribute apijson.Field LogoURL apijson.Field Name apijson.Field + OptionsPreflightBypass apijson.Field PathCookieAttribute apijson.Field SameSiteCookieAttribute apijson.Field SelfHostedDomains apijson.Field @@ -842,6 +850,9 @@ type ApplicationBrowserSSHApplication struct { LogoURL string `json:"logo_url"` // The name of the application. Name string `json:"name"` + // Allows options preflight requests to bypass Access authentication and go + // directly to the origin. Cannot turn on if cors_headers is set. + OptionsPreflightBypass bool `json:"options_preflight_bypass"` // Enables cookie paths to scope an application's JWT to the application path. If // disabled, the JWT will scope to the hostname by default PathCookieAttribute bool `json:"path_cookie_attribute"` @@ -886,6 +897,7 @@ type applicationBrowserSSHApplicationJSON struct { HTTPOnlyCookieAttribute apijson.Field LogoURL apijson.Field Name apijson.Field + OptionsPreflightBypass apijson.Field PathCookieAttribute apijson.Field SameSiteCookieAttribute apijson.Field SelfHostedDomains apijson.Field @@ -954,6 +966,9 @@ type ApplicationBrowserVncApplication struct { LogoURL string `json:"logo_url"` // The name of the application. Name string `json:"name"` + // Allows options preflight requests to bypass Access authentication and go + // directly to the origin. Cannot turn on if cors_headers is set. + OptionsPreflightBypass bool `json:"options_preflight_bypass"` // Enables cookie paths to scope an application's JWT to the application path. If // disabled, the JWT will scope to the hostname by default PathCookieAttribute bool `json:"path_cookie_attribute"` @@ -998,6 +1013,7 @@ type applicationBrowserVncApplicationJSON struct { HTTPOnlyCookieAttribute apijson.Field LogoURL apijson.Field Name apijson.Field + OptionsPreflightBypass apijson.Field PathCookieAttribute apijson.Field SameSiteCookieAttribute apijson.Field SelfHostedDomains apijson.Field @@ -1337,6 +1353,9 @@ type ApplicationParam struct { LogoURL param.Field[string] `json:"logo_url"` // The name of the application. Name param.Field[string] `json:"name"` + // Allows options preflight requests to bypass Access authentication and go + // directly to the origin. Cannot turn on if cors_headers is set. + OptionsPreflightBypass param.Field[bool] `json:"options_preflight_bypass"` // Enables cookie paths to scope an application's JWT to the application path. If // disabled, the JWT will scope to the hostname by default PathCookieAttribute param.Field[bool] `json:"path_cookie_attribute"` @@ -1417,6 +1436,9 @@ type ApplicationSelfHostedApplicationParam struct { LogoURL param.Field[string] `json:"logo_url"` // The name of the application. Name param.Field[string] `json:"name"` + // Allows options preflight requests to bypass Access authentication and go + // directly to the origin. Cannot turn on if cors_headers is set. + OptionsPreflightBypass param.Field[bool] `json:"options_preflight_bypass"` // Enables cookie paths to scope an application's JWT to the application path. If // disabled, the JWT will scope to the hostname by default PathCookieAttribute param.Field[bool] `json:"path_cookie_attribute"` @@ -1603,6 +1625,9 @@ type ApplicationBrowserSSHApplicationParam struct { LogoURL param.Field[string] `json:"logo_url"` // The name of the application. Name param.Field[string] `json:"name"` + // Allows options preflight requests to bypass Access authentication and go + // directly to the origin. Cannot turn on if cors_headers is set. + OptionsPreflightBypass param.Field[bool] `json:"options_preflight_bypass"` // Enables cookie paths to scope an application's JWT to the application path. If // disabled, the JWT will scope to the hostname by default PathCookieAttribute param.Field[bool] `json:"path_cookie_attribute"` @@ -1671,6 +1696,9 @@ type ApplicationBrowserVncApplicationParam struct { LogoURL param.Field[string] `json:"logo_url"` // The name of the application. Name param.Field[string] `json:"name"` + // Allows options preflight requests to bypass Access authentication and go + // directly to the origin. Cannot turn on if cors_headers is set. + OptionsPreflightBypass param.Field[bool] `json:"options_preflight_bypass"` // Enables cookie paths to scope an application's JWT to the application path. If // disabled, the JWT will scope to the hostname by default PathCookieAttribute param.Field[bool] `json:"path_cookie_attribute"` @@ -2124,9 +2152,9 @@ func (r AccessApplicationNewParams) MarshalJSON() (data []byte, err error) { type AccessApplicationNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Application `json:"result,required"` // Whether the API call was successful Success AccessApplicationNewResponseEnvelopeSuccess `json:"success,required"` + Result Application `json:"result"` JSON accessApplicationNewResponseEnvelopeJSON `json:"-"` } @@ -2135,8 +2163,8 @@ type AccessApplicationNewResponseEnvelope struct { type accessApplicationNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -2179,9 +2207,9 @@ func (r AccessApplicationUpdateParams) MarshalJSON() (data []byte, err error) { type AccessApplicationUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Application `json:"result,required"` // Whether the API call was successful Success AccessApplicationUpdateResponseEnvelopeSuccess `json:"success,required"` + Result Application `json:"result"` JSON accessApplicationUpdateResponseEnvelopeJSON `json:"-"` } @@ -2190,8 +2218,8 @@ type AccessApplicationUpdateResponseEnvelope struct { type accessApplicationUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -2234,11 +2262,11 @@ type AccessApplicationDeleteParams struct { } type AccessApplicationDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result AccessApplicationDeleteResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success AccessApplicationDeleteResponseEnvelopeSuccess `json:"success,required"` + Result AccessApplicationDeleteResponse `json:"result"` JSON accessApplicationDeleteResponseEnvelopeJSON `json:"-"` } @@ -2247,8 +2275,8 @@ type AccessApplicationDeleteResponseEnvelope struct { type accessApplicationDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -2286,9 +2314,9 @@ type AccessApplicationGetParams struct { type AccessApplicationGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Application `json:"result,required"` // Whether the API call was successful Success AccessApplicationGetResponseEnvelopeSuccess `json:"success,required"` + Result Application `json:"result"` JSON accessApplicationGetResponseEnvelopeJSON `json:"-"` } @@ -2297,8 +2325,8 @@ type AccessApplicationGetResponseEnvelope struct { type accessApplicationGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/accessapplication_test.go b/zero_trust/accessapplication_test.go index ef99ad6c7ea..81fd1ab91cc 100644 --- a/zero_trust/accessapplication_test.go +++ b/zero_trust/accessapplication_test.go @@ -54,6 +54,7 @@ func TestAccessApplicationNewWithOptionalParams(t *testing.T) { HTTPOnlyCookieAttribute: cloudflare.F(true), LogoURL: cloudflare.F("https://www.cloudflare.com/img/logo-web-badges/cf-logo-on-white-bg.svg"), Name: cloudflare.F("Admin Site"), + OptionsPreflightBypass: cloudflare.F(true), PathCookieAttribute: cloudflare.F(true), SameSiteCookieAttribute: cloudflare.F("strict"), SelfHostedDomains: cloudflare.F([]zero_trust.SelfHostedDomainshParam{"test.example.com/admin", "test.anotherexample.com/staff"}), @@ -117,6 +118,7 @@ func TestAccessApplicationUpdateWithOptionalParams(t *testing.T) { HTTPOnlyCookieAttribute: cloudflare.F(true), LogoURL: cloudflare.F("https://www.cloudflare.com/img/logo-web-badges/cf-logo-on-white-bg.svg"), Name: cloudflare.F("Admin Site"), + OptionsPreflightBypass: cloudflare.F(true), PathCookieAttribute: cloudflare.F(true), SameSiteCookieAttribute: cloudflare.F("strict"), SelfHostedDomains: cloudflare.F([]zero_trust.SelfHostedDomainshParam{"test.example.com/admin", "test.anotherexample.com/staff"}), diff --git a/zero_trust/accessapplicationca.go b/zero_trust/accessapplicationca.go index 14e654432cb..a983297e0ea 100644 --- a/zero_trust/accessapplicationca.go +++ b/zero_trust/accessapplicationca.go @@ -225,11 +225,11 @@ type AccessApplicationCANewParams struct { } type AccessApplicationCANewResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result AccessApplicationCANewResponseUnion `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success AccessApplicationCANewResponseEnvelopeSuccess `json:"success,required"` + Result AccessApplicationCANewResponseUnion `json:"result"` JSON accessApplicationCANewResponseEnvelopeJSON `json:"-"` } @@ -238,8 +238,8 @@ type AccessApplicationCANewResponseEnvelope struct { type accessApplicationCANewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -282,11 +282,11 @@ type AccessApplicationCADeleteParams struct { } type AccessApplicationCADeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result AccessApplicationCADeleteResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success AccessApplicationCADeleteResponseEnvelopeSuccess `json:"success,required"` + Result AccessApplicationCADeleteResponse `json:"result"` JSON accessApplicationCADeleteResponseEnvelopeJSON `json:"-"` } @@ -295,8 +295,8 @@ type AccessApplicationCADeleteResponseEnvelope struct { type accessApplicationCADeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -332,11 +332,11 @@ type AccessApplicationCAGetParams struct { } type AccessApplicationCAGetResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result AccessApplicationCAGetResponseUnion `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success AccessApplicationCAGetResponseEnvelopeSuccess `json:"success,required"` + Result AccessApplicationCAGetResponseUnion `json:"result"` JSON accessApplicationCAGetResponseEnvelopeJSON `json:"-"` } @@ -345,8 +345,8 @@ type AccessApplicationCAGetResponseEnvelope struct { type accessApplicationCAGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/accessapplicationpolicy.go b/zero_trust/accessapplicationpolicy.go index 5a0847a3f7a..db0fbb3d1c8 100644 --- a/zero_trust/accessapplicationpolicy.go +++ b/zero_trust/accessapplicationpolicy.go @@ -408,9 +408,9 @@ func (r AccessApplicationPolicyNewParamsDecision) IsKnown() bool { type AccessApplicationPolicyNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Policy `json:"result,required"` // Whether the API call was successful Success AccessApplicationPolicyNewResponseEnvelopeSuccess `json:"success,required"` + Result Policy `json:"result"` JSON accessApplicationPolicyNewResponseEnvelopeJSON `json:"-"` } @@ -419,8 +419,8 @@ type AccessApplicationPolicyNewResponseEnvelope struct { type accessApplicationPolicyNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -512,9 +512,9 @@ func (r AccessApplicationPolicyUpdateParamsDecision) IsKnown() bool { type AccessApplicationPolicyUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Policy `json:"result,required"` // Whether the API call was successful Success AccessApplicationPolicyUpdateResponseEnvelopeSuccess `json:"success,required"` + Result Policy `json:"result"` JSON accessApplicationPolicyUpdateResponseEnvelopeJSON `json:"-"` } @@ -523,8 +523,8 @@ type AccessApplicationPolicyUpdateResponseEnvelope struct { type accessApplicationPolicyUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -567,11 +567,11 @@ type AccessApplicationPolicyDeleteParams struct { } type AccessApplicationPolicyDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result AccessApplicationPolicyDeleteResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success AccessApplicationPolicyDeleteResponseEnvelopeSuccess `json:"success,required"` + Result AccessApplicationPolicyDeleteResponse `json:"result"` JSON accessApplicationPolicyDeleteResponseEnvelopeJSON `json:"-"` } @@ -580,8 +580,8 @@ type AccessApplicationPolicyDeleteResponseEnvelope struct { type accessApplicationPolicyDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -619,9 +619,9 @@ type AccessApplicationPolicyGetParams struct { type AccessApplicationPolicyGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Policy `json:"result,required"` // Whether the API call was successful Success AccessApplicationPolicyGetResponseEnvelopeSuccess `json:"success,required"` + Result Policy `json:"result"` JSON accessApplicationPolicyGetResponseEnvelopeJSON `json:"-"` } @@ -630,8 +630,8 @@ type AccessApplicationPolicyGetResponseEnvelope struct { type accessApplicationPolicyGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/accessapplicationuserpolicycheck.go b/zero_trust/accessapplicationuserpolicycheck.go index 595405ba8d0..d2345882539 100644 --- a/zero_trust/accessapplicationuserpolicycheck.go +++ b/zero_trust/accessapplicationuserpolicycheck.go @@ -181,11 +181,11 @@ type AccessApplicationUserPolicyCheckListParams struct { } type AccessApplicationUserPolicyCheckListResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result AccessApplicationUserPolicyCheckListResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success AccessApplicationUserPolicyCheckListResponseEnvelopeSuccess `json:"success,required"` + Result AccessApplicationUserPolicyCheckListResponse `json:"result"` JSON accessApplicationUserPolicyCheckListResponseEnvelopeJSON `json:"-"` } @@ -194,8 +194,8 @@ type AccessApplicationUserPolicyCheckListResponseEnvelope struct { type accessApplicationUserPolicyCheckListResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/accessbookmark.go b/zero_trust/accessbookmark.go index 0a156212fb2..0d3bc0c05c2 100644 --- a/zero_trust/accessbookmark.go +++ b/zero_trust/accessbookmark.go @@ -178,9 +178,9 @@ func (r AccessBookmarkNewParams) MarshalJSON() (data []byte, err error) { type AccessBookmarkNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Bookmark `json:"result,required"` // Whether the API call was successful Success AccessBookmarkNewResponseEnvelopeSuccess `json:"success,required"` + Result Bookmark `json:"result"` JSON accessBookmarkNewResponseEnvelopeJSON `json:"-"` } @@ -189,8 +189,8 @@ type AccessBookmarkNewResponseEnvelope struct { type accessBookmarkNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -229,9 +229,9 @@ func (r AccessBookmarkUpdateParams) MarshalJSON() (data []byte, err error) { type AccessBookmarkUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Bookmark `json:"result,required"` // Whether the API call was successful Success AccessBookmarkUpdateResponseEnvelopeSuccess `json:"success,required"` + Result Bookmark `json:"result"` JSON accessBookmarkUpdateResponseEnvelopeJSON `json:"-"` } @@ -240,8 +240,8 @@ type AccessBookmarkUpdateResponseEnvelope struct { type accessBookmarkUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -278,11 +278,11 @@ func (r AccessBookmarkDeleteParams) MarshalJSON() (data []byte, err error) { } type AccessBookmarkDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result AccessBookmarkDeleteResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success AccessBookmarkDeleteResponseEnvelopeSuccess `json:"success,required"` + Result AccessBookmarkDeleteResponse `json:"result"` JSON accessBookmarkDeleteResponseEnvelopeJSON `json:"-"` } @@ -291,8 +291,8 @@ type AccessBookmarkDeleteResponseEnvelope struct { type accessBookmarkDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -323,9 +323,9 @@ func (r AccessBookmarkDeleteResponseEnvelopeSuccess) IsKnown() bool { type AccessBookmarkGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Bookmark `json:"result,required"` // Whether the API call was successful Success AccessBookmarkGetResponseEnvelopeSuccess `json:"success,required"` + Result Bookmark `json:"result"` JSON accessBookmarkGetResponseEnvelopeJSON `json:"-"` } @@ -334,8 +334,8 @@ type AccessBookmarkGetResponseEnvelope struct { type accessBookmarkGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/accesscertificate.go b/zero_trust/accesscertificate.go index 64381b7d953..eece81cc343 100644 --- a/zero_trust/accesscertificate.go +++ b/zero_trust/accesscertificate.go @@ -238,9 +238,9 @@ func (r AccessCertificateNewParams) MarshalJSON() (data []byte, err error) { type AccessCertificateNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Certificate `json:"result,required"` // Whether the API call was successful Success AccessCertificateNewResponseEnvelopeSuccess `json:"success,required"` + Result Certificate `json:"result"` JSON accessCertificateNewResponseEnvelopeJSON `json:"-"` } @@ -249,8 +249,8 @@ type AccessCertificateNewResponseEnvelope struct { type accessCertificateNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -296,9 +296,9 @@ func (r AccessCertificateUpdateParams) MarshalJSON() (data []byte, err error) { type AccessCertificateUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Certificate `json:"result,required"` // Whether the API call was successful Success AccessCertificateUpdateResponseEnvelopeSuccess `json:"success,required"` + Result Certificate `json:"result"` JSON accessCertificateUpdateResponseEnvelopeJSON `json:"-"` } @@ -307,8 +307,8 @@ type AccessCertificateUpdateResponseEnvelope struct { type accessCertificateUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -351,11 +351,11 @@ type AccessCertificateDeleteParams struct { } type AccessCertificateDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result AccessCertificateDeleteResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success AccessCertificateDeleteResponseEnvelopeSuccess `json:"success,required"` + Result AccessCertificateDeleteResponse `json:"result"` JSON accessCertificateDeleteResponseEnvelopeJSON `json:"-"` } @@ -364,8 +364,8 @@ type AccessCertificateDeleteResponseEnvelope struct { type accessCertificateDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -403,9 +403,9 @@ type AccessCertificateGetParams struct { type AccessCertificateGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Certificate `json:"result,required"` // Whether the API call was successful Success AccessCertificateGetResponseEnvelopeSuccess `json:"success,required"` + Result Certificate `json:"result"` JSON accessCertificateGetResponseEnvelopeJSON `json:"-"` } @@ -414,8 +414,8 @@ type AccessCertificateGetResponseEnvelope struct { type accessCertificateGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/accesscertificatesetting.go b/zero_trust/accesscertificatesetting.go index fc110331af3..80805149e19 100644 --- a/zero_trust/accesscertificatesetting.go +++ b/zero_trust/accesscertificatesetting.go @@ -138,9 +138,9 @@ func (r AccessCertificateSettingUpdateParams) MarshalJSON() (data []byte, err er type AccessCertificateSettingUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result []CertificateSettings `json:"result,required,nullable"` // Whether the API call was successful Success AccessCertificateSettingUpdateResponseEnvelopeSuccess `json:"success,required"` + Result []CertificateSettings `json:"result,nullable"` ResultInfo AccessCertificateSettingUpdateResponseEnvelopeResultInfo `json:"result_info"` JSON accessCertificateSettingUpdateResponseEnvelopeJSON `json:"-"` } @@ -150,8 +150,8 @@ type AccessCertificateSettingUpdateResponseEnvelope struct { type accessCertificateSettingUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field ResultInfo apijson.Field raw string ExtraFields map[string]apijson.Field @@ -222,9 +222,9 @@ type AccessCertificateSettingGetParams struct { type AccessCertificateSettingGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result []CertificateSettings `json:"result,required,nullable"` // Whether the API call was successful Success AccessCertificateSettingGetResponseEnvelopeSuccess `json:"success,required"` + Result []CertificateSettings `json:"result,nullable"` ResultInfo AccessCertificateSettingGetResponseEnvelopeResultInfo `json:"result_info"` JSON accessCertificateSettingGetResponseEnvelopeJSON `json:"-"` } @@ -234,8 +234,8 @@ type AccessCertificateSettingGetResponseEnvelope struct { type accessCertificateSettingGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field ResultInfo apijson.Field raw string ExtraFields map[string]apijson.Field diff --git a/zero_trust/accesscustompage.go b/zero_trust/accesscustompage.go index e6c286b2fe5..707a91f5246 100644 --- a/zero_trust/accesscustompage.go +++ b/zero_trust/accesscustompage.go @@ -261,9 +261,9 @@ func (r AccessCustomPageNewParams) MarshalJSON() (data []byte, err error) { type AccessCustomPageNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result CustomPageWithoutHTML `json:"result,required"` // Whether the API call was successful Success AccessCustomPageNewResponseEnvelopeSuccess `json:"success,required"` + Result CustomPageWithoutHTML `json:"result"` JSON accessCustomPageNewResponseEnvelopeJSON `json:"-"` } @@ -272,8 +272,8 @@ type AccessCustomPageNewResponseEnvelope struct { type accessCustomPageNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -312,9 +312,9 @@ func (r AccessCustomPageUpdateParams) MarshalJSON() (data []byte, err error) { type AccessCustomPageUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result CustomPageWithoutHTML `json:"result,required"` // Whether the API call was successful Success AccessCustomPageUpdateResponseEnvelopeSuccess `json:"success,required"` + Result CustomPageWithoutHTML `json:"result"` JSON accessCustomPageUpdateResponseEnvelopeJSON `json:"-"` } @@ -323,8 +323,8 @@ type AccessCustomPageUpdateResponseEnvelope struct { type accessCustomPageUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -353,11 +353,11 @@ func (r AccessCustomPageUpdateResponseEnvelopeSuccess) IsKnown() bool { } type AccessCustomPageDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result AccessCustomPageDeleteResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success AccessCustomPageDeleteResponseEnvelopeSuccess `json:"success,required"` + Result AccessCustomPageDeleteResponse `json:"result"` JSON accessCustomPageDeleteResponseEnvelopeJSON `json:"-"` } @@ -366,8 +366,8 @@ type AccessCustomPageDeleteResponseEnvelope struct { type accessCustomPageDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -398,9 +398,9 @@ func (r AccessCustomPageDeleteResponseEnvelopeSuccess) IsKnown() bool { type AccessCustomPageGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result CustomPage `json:"result,required"` // Whether the API call was successful Success AccessCustomPageGetResponseEnvelopeSuccess `json:"success,required"` + Result CustomPage `json:"result"` JSON accessCustomPageGetResponseEnvelopeJSON `json:"-"` } @@ -409,8 +409,8 @@ type AccessCustomPageGetResponseEnvelope struct { type accessCustomPageGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/accessgroup.go b/zero_trust/accessgroup.go index ce12cccf5e9..4145e5778e1 100644 --- a/zero_trust/accessgroup.go +++ b/zero_trust/accessgroup.go @@ -247,9 +247,9 @@ func (r AccessGroupNewParams) MarshalJSON() (data []byte, err error) { type AccessGroupNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result ZeroTrustGroup `json:"result,required"` // Whether the API call was successful Success AccessGroupNewResponseEnvelopeSuccess `json:"success,required"` + Result ZeroTrustGroup `json:"result"` JSON accessGroupNewResponseEnvelopeJSON `json:"-"` } @@ -258,8 +258,8 @@ type AccessGroupNewResponseEnvelope struct { type accessGroupNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -314,9 +314,9 @@ func (r AccessGroupUpdateParams) MarshalJSON() (data []byte, err error) { type AccessGroupUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result ZeroTrustGroup `json:"result,required"` // Whether the API call was successful Success AccessGroupUpdateResponseEnvelopeSuccess `json:"success,required"` + Result ZeroTrustGroup `json:"result"` JSON accessGroupUpdateResponseEnvelopeJSON `json:"-"` } @@ -325,8 +325,8 @@ type AccessGroupUpdateResponseEnvelope struct { type accessGroupUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -369,11 +369,11 @@ type AccessGroupDeleteParams struct { } type AccessGroupDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result AccessGroupDeleteResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success AccessGroupDeleteResponseEnvelopeSuccess `json:"success,required"` + Result AccessGroupDeleteResponse `json:"result"` JSON accessGroupDeleteResponseEnvelopeJSON `json:"-"` } @@ -382,8 +382,8 @@ type AccessGroupDeleteResponseEnvelope struct { type accessGroupDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -421,9 +421,9 @@ type AccessGroupGetParams struct { type AccessGroupGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result ZeroTrustGroup `json:"result,required"` // Whether the API call was successful Success AccessGroupGetResponseEnvelopeSuccess `json:"success,required"` + Result ZeroTrustGroup `json:"result"` JSON accessGroupGetResponseEnvelopeJSON `json:"-"` } @@ -432,8 +432,8 @@ type AccessGroupGetResponseEnvelope struct { type accessGroupGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/accesskey.go b/zero_trust/accesskey.go index abc0bb05cbd..e054adca374 100644 --- a/zero_trust/accesskey.go +++ b/zero_trust/accesskey.go @@ -134,9 +134,8 @@ func (r AccessKeyUpdateParams) MarshalJSON() (data []byte, err error) { } type AccessKeyUpdateResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result AccessKeyUpdateResponseUnion `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success AccessKeyUpdateResponseEnvelopeSuccess `json:"success,required"` // The number of days until the next key rotation. @@ -145,6 +144,7 @@ type AccessKeyUpdateResponseEnvelope struct { KeyRotationIntervalDays float64 `json:"key_rotation_interval_days"` // The timestamp of the previous key rotation. LastKeyRotationAt time.Time `json:"last_key_rotation_at" format:"date-time"` + Result AccessKeyUpdateResponseUnion `json:"result"` JSON accessKeyUpdateResponseEnvelopeJSON `json:"-"` } @@ -153,11 +153,11 @@ type AccessKeyUpdateResponseEnvelope struct { type accessKeyUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field DaysUntilNextRotation apijson.Field KeyRotationIntervalDays apijson.Field LastKeyRotationAt apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -186,9 +186,8 @@ func (r AccessKeyUpdateResponseEnvelopeSuccess) IsKnown() bool { } type AccessKeyGetResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result AccessKeyGetResponseUnion `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success AccessKeyGetResponseEnvelopeSuccess `json:"success,required"` // The number of days until the next key rotation. @@ -197,6 +196,7 @@ type AccessKeyGetResponseEnvelope struct { KeyRotationIntervalDays float64 `json:"key_rotation_interval_days"` // The timestamp of the previous key rotation. LastKeyRotationAt time.Time `json:"last_key_rotation_at" format:"date-time"` + Result AccessKeyGetResponseUnion `json:"result"` JSON accessKeyGetResponseEnvelopeJSON `json:"-"` } @@ -205,11 +205,11 @@ type AccessKeyGetResponseEnvelope struct { type accessKeyGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field DaysUntilNextRotation apijson.Field KeyRotationIntervalDays apijson.Field LastKeyRotationAt apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -238,9 +238,8 @@ func (r AccessKeyGetResponseEnvelopeSuccess) IsKnown() bool { } type AccessKeyRotateResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result AccessKeyRotateResponseUnion `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success AccessKeyRotateResponseEnvelopeSuccess `json:"success,required"` // The number of days until the next key rotation. @@ -249,6 +248,7 @@ type AccessKeyRotateResponseEnvelope struct { KeyRotationIntervalDays float64 `json:"key_rotation_interval_days"` // The timestamp of the previous key rotation. LastKeyRotationAt time.Time `json:"last_key_rotation_at" format:"date-time"` + Result AccessKeyRotateResponseUnion `json:"result"` JSON accessKeyRotateResponseEnvelopeJSON `json:"-"` } @@ -257,11 +257,11 @@ type AccessKeyRotateResponseEnvelope struct { type accessKeyRotateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field DaysUntilNextRotation apijson.Field KeyRotationIntervalDays apijson.Field LastKeyRotationAt apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/accesslogaccessrequest.go b/zero_trust/accesslogaccessrequest.go index 8441e77005f..26c1febd616 100644 --- a/zero_trust/accesslogaccessrequest.go +++ b/zero_trust/accesslogaccessrequest.go @@ -92,9 +92,9 @@ func (r accessRequestsJSON) RawJSON() string { type AccessLogAccessRequestListResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result []AccessRequests `json:"result,required,nullable"` // Whether the API call was successful Success AccessLogAccessRequestListResponseEnvelopeSuccess `json:"success,required"` + Result []AccessRequests `json:"result,nullable"` ResultInfo AccessLogAccessRequestListResponseEnvelopeResultInfo `json:"result_info"` JSON accessLogAccessRequestListResponseEnvelopeJSON `json:"-"` } @@ -104,8 +104,8 @@ type AccessLogAccessRequestListResponseEnvelope struct { type accessLogAccessRequestListResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field ResultInfo apijson.Field raw string ExtraFields map[string]apijson.Field diff --git a/zero_trust/accessservicetoken.go b/zero_trust/accessservicetoken.go index edb33d0f945..d58de5ac480 100644 --- a/zero_trust/accessservicetoken.go +++ b/zero_trust/accessservicetoken.go @@ -299,11 +299,11 @@ func (r AccessServiceTokenNewParams) MarshalJSON() (data []byte, err error) { } type AccessServiceTokenNewResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result AccessServiceTokenNewResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success AccessServiceTokenNewResponseEnvelopeSuccess `json:"success,required"` + Result AccessServiceTokenNewResponse `json:"result"` JSON accessServiceTokenNewResponseEnvelopeJSON `json:"-"` } @@ -312,8 +312,8 @@ type AccessServiceTokenNewResponseEnvelope struct { type accessServiceTokenNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -361,9 +361,9 @@ func (r AccessServiceTokenUpdateParams) MarshalJSON() (data []byte, err error) { type AccessServiceTokenUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result ServiceToken `json:"result,required"` // Whether the API call was successful Success AccessServiceTokenUpdateResponseEnvelopeSuccess `json:"success,required"` + Result ServiceToken `json:"result"` JSON accessServiceTokenUpdateResponseEnvelopeJSON `json:"-"` } @@ -372,8 +372,8 @@ type AccessServiceTokenUpdateResponseEnvelope struct { type accessServiceTokenUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -418,9 +418,9 @@ type AccessServiceTokenDeleteParams struct { type AccessServiceTokenDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result ServiceToken `json:"result,required"` // Whether the API call was successful Success AccessServiceTokenDeleteResponseEnvelopeSuccess `json:"success,required"` + Result ServiceToken `json:"result"` JSON accessServiceTokenDeleteResponseEnvelopeJSON `json:"-"` } @@ -429,8 +429,8 @@ type AccessServiceTokenDeleteResponseEnvelope struct { type accessServiceTokenDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -461,9 +461,9 @@ func (r AccessServiceTokenDeleteResponseEnvelopeSuccess) IsKnown() bool { type AccessServiceTokenRefreshResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result ServiceToken `json:"result,required"` // Whether the API call was successful Success AccessServiceTokenRefreshResponseEnvelopeSuccess `json:"success,required"` + Result ServiceToken `json:"result"` JSON accessServiceTokenRefreshResponseEnvelopeJSON `json:"-"` } @@ -472,8 +472,8 @@ type AccessServiceTokenRefreshResponseEnvelope struct { type accessServiceTokenRefreshResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -502,11 +502,11 @@ func (r AccessServiceTokenRefreshResponseEnvelopeSuccess) IsKnown() bool { } type AccessServiceTokenRotateResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result AccessServiceTokenRotateResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success AccessServiceTokenRotateResponseEnvelopeSuccess `json:"success,required"` + Result AccessServiceTokenRotateResponse `json:"result"` JSON accessServiceTokenRotateResponseEnvelopeJSON `json:"-"` } @@ -515,8 +515,8 @@ type AccessServiceTokenRotateResponseEnvelope struct { type accessServiceTokenRotateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/accesstag.go b/zero_trust/accesstag.go index 7b0bbb5566e..2ebbc75babc 100644 --- a/zero_trust/accesstag.go +++ b/zero_trust/accesstag.go @@ -171,11 +171,11 @@ func (r AccessTagNewParams) MarshalJSON() (data []byte, err error) { type AccessTagNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - // A tag - Result Tag `json:"result,required"` // Whether the API call was successful Success AccessTagNewResponseEnvelopeSuccess `json:"success,required"` - JSON accessTagNewResponseEnvelopeJSON `json:"-"` + // A tag + Result Tag `json:"result"` + JSON accessTagNewResponseEnvelopeJSON `json:"-"` } // accessTagNewResponseEnvelopeJSON contains the JSON metadata for the struct @@ -183,8 +183,8 @@ type AccessTagNewResponseEnvelope struct { type accessTagNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -224,11 +224,11 @@ func (r AccessTagUpdateParams) MarshalJSON() (data []byte, err error) { type AccessTagUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - // A tag - Result Tag `json:"result,required"` // Whether the API call was successful Success AccessTagUpdateResponseEnvelopeSuccess `json:"success,required"` - JSON accessTagUpdateResponseEnvelopeJSON `json:"-"` + // A tag + Result Tag `json:"result"` + JSON accessTagUpdateResponseEnvelopeJSON `json:"-"` } // accessTagUpdateResponseEnvelopeJSON contains the JSON metadata for the struct @@ -236,8 +236,8 @@ type AccessTagUpdateResponseEnvelope struct { type accessTagUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -266,11 +266,11 @@ func (r AccessTagUpdateResponseEnvelopeSuccess) IsKnown() bool { } type AccessTagDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result AccessTagDeleteResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success AccessTagDeleteResponseEnvelopeSuccess `json:"success,required"` + Result AccessTagDeleteResponse `json:"result"` JSON accessTagDeleteResponseEnvelopeJSON `json:"-"` } @@ -279,8 +279,8 @@ type AccessTagDeleteResponseEnvelope struct { type accessTagDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -311,11 +311,11 @@ func (r AccessTagDeleteResponseEnvelopeSuccess) IsKnown() bool { type AccessTagGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - // A tag - Result Tag `json:"result,required"` // Whether the API call was successful Success AccessTagGetResponseEnvelopeSuccess `json:"success,required"` - JSON accessTagGetResponseEnvelopeJSON `json:"-"` + // A tag + Result Tag `json:"result"` + JSON accessTagGetResponseEnvelopeJSON `json:"-"` } // accessTagGetResponseEnvelopeJSON contains the JSON metadata for the struct @@ -323,8 +323,8 @@ type AccessTagGetResponseEnvelope struct { type accessTagGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/accessuseractivesession.go b/zero_trust/accessuseractivesession.go index 91ca68e0250..a6c2d6176c2 100644 --- a/zero_trust/accessuseractivesession.go +++ b/zero_trust/accessuseractivesession.go @@ -340,11 +340,11 @@ func (r accessUserActiveSessionGetResponseMTLSAuthJSON) RawJSON() string { } type AccessUserActiveSessionGetResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result AccessUserActiveSessionGetResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success AccessUserActiveSessionGetResponseEnvelopeSuccess `json:"success,required"` + Result AccessUserActiveSessionGetResponse `json:"result"` JSON accessUserActiveSessionGetResponseEnvelopeJSON `json:"-"` } @@ -353,8 +353,8 @@ type AccessUserActiveSessionGetResponseEnvelope struct { type accessUserActiveSessionGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/accessuserlastseenidentity.go b/zero_trust/accessuserlastseenidentity.go index 4949df6c6b4..8bc754baff2 100644 --- a/zero_trust/accessuserlastseenidentity.go +++ b/zero_trust/accessuserlastseenidentity.go @@ -233,9 +233,9 @@ func (r identityMTLSAuthJSON) RawJSON() string { type AccessUserLastSeenIdentityGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Identity `json:"result,required"` // Whether the API call was successful Success AccessUserLastSeenIdentityGetResponseEnvelopeSuccess `json:"success,required"` + Result Identity `json:"result"` JSON accessUserLastSeenIdentityGetResponseEnvelopeJSON `json:"-"` } @@ -244,8 +244,8 @@ type AccessUserLastSeenIdentityGetResponseEnvelope struct { type accessUserLastSeenIdentityGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/identityprovider.go b/zero_trust/identityprovider.go index 058246c1a11..840377a9890 100644 --- a/zero_trust/identityprovider.go +++ b/zero_trust/identityprovider.go @@ -2971,9 +2971,9 @@ func (r IdentityProviderNewParams) MarshalJSON() (data []byte, err error) { type IdentityProviderNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result IdentityProvider `json:"result,required"` // Whether the API call was successful Success IdentityProviderNewResponseEnvelopeSuccess `json:"success,required"` + Result IdentityProvider `json:"result"` JSON identityProviderNewResponseEnvelopeJSON `json:"-"` } @@ -2982,8 +2982,8 @@ type IdentityProviderNewResponseEnvelope struct { type identityProviderNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -3026,9 +3026,9 @@ func (r IdentityProviderUpdateParams) MarshalJSON() (data []byte, err error) { type IdentityProviderUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result IdentityProvider `json:"result,required"` // Whether the API call was successful Success IdentityProviderUpdateResponseEnvelopeSuccess `json:"success,required"` + Result IdentityProvider `json:"result"` JSON identityProviderUpdateResponseEnvelopeJSON `json:"-"` } @@ -3037,8 +3037,8 @@ type IdentityProviderUpdateResponseEnvelope struct { type identityProviderUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -3081,11 +3081,11 @@ type IdentityProviderDeleteParams struct { } type IdentityProviderDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result IdentityProviderDeleteResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success IdentityProviderDeleteResponseEnvelopeSuccess `json:"success,required"` + Result IdentityProviderDeleteResponse `json:"result"` JSON identityProviderDeleteResponseEnvelopeJSON `json:"-"` } @@ -3094,8 +3094,8 @@ type IdentityProviderDeleteResponseEnvelope struct { type identityProviderDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -3133,9 +3133,9 @@ type IdentityProviderGetParams struct { type IdentityProviderGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result IdentityProvider `json:"result,required"` // Whether the API call was successful Success IdentityProviderGetResponseEnvelopeSuccess `json:"success,required"` + Result IdentityProvider `json:"result"` JSON identityProviderGetResponseEnvelopeJSON `json:"-"` } @@ -3144,8 +3144,8 @@ type IdentityProviderGetResponseEnvelope struct { type identityProviderGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/organization.go b/zero_trust/organization.go index 54132080501..c361263603e 100644 --- a/zero_trust/organization.go +++ b/zero_trust/organization.go @@ -316,9 +316,9 @@ func (r OrganizationNewParams) MarshalJSON() (data []byte, err error) { type OrganizationNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Organization `json:"result,required"` // Whether the API call was successful Success OrganizationNewResponseEnvelopeSuccess `json:"success,required"` + Result Organization `json:"result"` JSON organizationNewResponseEnvelopeJSON `json:"-"` } @@ -327,8 +327,8 @@ type OrganizationNewResponseEnvelope struct { type organizationNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -411,9 +411,9 @@ func (r OrganizationUpdateParamsCustomPages) MarshalJSON() (data []byte, err err type OrganizationUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Organization `json:"result,required"` // Whether the API call was successful Success OrganizationUpdateResponseEnvelopeSuccess `json:"success,required"` + Result Organization `json:"result"` JSON organizationUpdateResponseEnvelopeJSON `json:"-"` } @@ -422,8 +422,8 @@ type OrganizationUpdateResponseEnvelope struct { type organizationUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -461,9 +461,9 @@ type OrganizationListParams struct { type OrganizationListResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Organization `json:"result,required"` // Whether the API call was successful Success OrganizationListResponseEnvelopeSuccess `json:"success,required"` + Result Organization `json:"result"` JSON organizationListResponseEnvelopeJSON `json:"-"` } @@ -472,8 +472,8 @@ type OrganizationListResponseEnvelope struct { type organizationListResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/seat.go b/zero_trust/seat.go index f02b064de5f..92fb1cf91e1 100644 --- a/zero_trust/seat.go +++ b/zero_trust/seat.go @@ -99,9 +99,9 @@ func (r SeatEditParamsBody) MarshalJSON() (data []byte, err error) { type SeatEditResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result []Seat `json:"result,required,nullable"` // Whether the API call was successful Success SeatEditResponseEnvelopeSuccess `json:"success,required"` + Result []Seat `json:"result,nullable"` ResultInfo SeatEditResponseEnvelopeResultInfo `json:"result_info"` JSON seatEditResponseEnvelopeJSON `json:"-"` } @@ -111,8 +111,8 @@ type SeatEditResponseEnvelope struct { type seatEditResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field ResultInfo apijson.Field raw string ExtraFields map[string]apijson.Field From 01f9e5a71831170c90298c1dd02f1d03eefd6937 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Apr 2024 17:18:30 +0000 Subject: [PATCH 21/52] feat(api): OpenAPI spec update via Stainless API (#1804) --- api.md | 4 +- internal/shared/union.go | 1 - workers/accountsetting.go | 16 +-- workers/domain.go | 8 +- workers/script.go | 4 +- workers/scriptcontent.go | 4 +- workers/scriptdeployment.go | 16 +-- workers/scriptschedule.go | 16 +-- workers/scriptsetting.go | 8 +- workers/scripttail.go | 116 +++++++----------- workers/scriptversion.go | 24 ++-- workers/subdomain.go | 12 +- workers_for_platforms/dispatchnamespace.go | 24 ++-- .../dispatchnamespacescript.go | 12 +- .../dispatchnamespacescriptbinding.go | 8 +- .../dispatchnamespacescriptcontent.go | 4 +- .../dispatchnamespacescriptsecret.go | 8 +- .../dispatchnamespacescriptsetting.go | 16 +-- .../dispatchnamespacescripttag.go | 12 +- 19 files changed, 139 insertions(+), 174 deletions(-) diff --git a/api.md b/api.md index 02fa2425eb9..060fe8218af 100644 --- a/api.md +++ b/api.md @@ -2501,13 +2501,13 @@ Response Types: - workers.ConsumerScript - workers.ScriptTailNewResponse -- workers.ScriptTailDeleteResponseUnion +- workers.ScriptTailDeleteResponse - workers.ScriptTailGetResponse Methods: - client.Workers.Scripts.Tail.New(ctx context.Context, scriptName string, params workers.ScriptTailNewParams) (workers.ScriptTailNewResponse, error) -- client.Workers.Scripts.Tail.Delete(ctx context.Context, scriptName string, id string, params workers.ScriptTailDeleteParams) (workers.ScriptTailDeleteResponseUnion, error) +- client.Workers.Scripts.Tail.Delete(ctx context.Context, scriptName string, id string, params workers.ScriptTailDeleteParams) (workers.ScriptTailDeleteResponse, error) - client.Workers.Scripts.Tail.Get(ctx context.Context, scriptName string, query workers.ScriptTailGetParams) (workers.ScriptTailGetResponse, error) ### Content diff --git a/internal/shared/union.go b/internal/shared/union.go index 1f140d55f92..da72313c790 100644 --- a/internal/shared/union.go +++ b/internal/shared/union.go @@ -84,7 +84,6 @@ func (UnionString) ImplementsRateLimitsRateLimitEditResponseUnion() func (UnionString) ImplementsRateLimitsRateLimitGetResponseUnion() {} func (UnionString) ImplementsWorkersAIRunResponseUnion() {} func (UnionString) ImplementsWorkersAIRunParamsBodyTextEmbeddingsTextUnion() {} -func (UnionString) ImplementsWorkersScriptTailDeleteResponseUnion() {} func (UnionString) ImplementsKVNamespaceUpdateResponseUnion() {} func (UnionString) ImplementsKVNamespaceDeleteResponseUnion() {} func (UnionString) ImplementsKVNamespaceBulkUpdateResponseUnion() {} diff --git a/workers/accountsetting.go b/workers/accountsetting.go index 9caf4c2d516..42bda6ba2d0 100644 --- a/workers/accountsetting.go +++ b/workers/accountsetting.go @@ -115,11 +115,11 @@ func (r AccountSettingUpdateParams) MarshalJSON() (data []byte, err error) { } type AccountSettingUpdateResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result AccountSettingUpdateResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success AccountSettingUpdateResponseEnvelopeSuccess `json:"success,required"` + Result AccountSettingUpdateResponse `json:"result"` JSON accountSettingUpdateResponseEnvelopeJSON `json:"-"` } @@ -128,8 +128,8 @@ type AccountSettingUpdateResponseEnvelope struct { type accountSettingUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -163,11 +163,11 @@ type AccountSettingGetParams struct { } type AccountSettingGetResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result AccountSettingGetResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success AccountSettingGetResponseEnvelopeSuccess `json:"success,required"` + Result AccountSettingGetResponse `json:"result"` JSON accountSettingGetResponseEnvelopeJSON `json:"-"` } @@ -176,8 +176,8 @@ type AccountSettingGetResponseEnvelope struct { type accountSettingGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/workers/domain.go b/workers/domain.go index dcbcfce9401..f4b5984b1b3 100644 --- a/workers/domain.go +++ b/workers/domain.go @@ -147,9 +147,9 @@ func (r DomainUpdateParams) MarshalJSON() (data []byte, err error) { type DomainUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Domain `json:"result,required"` // Whether the API call was successful Success DomainUpdateResponseEnvelopeSuccess `json:"success,required"` + Result Domain `json:"result"` JSON domainUpdateResponseEnvelopeJSON `json:"-"` } @@ -158,8 +158,8 @@ type DomainUpdateResponseEnvelope struct { type domainUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -225,9 +225,9 @@ type DomainGetParams struct { type DomainGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Domain `json:"result,required"` // Whether the API call was successful Success DomainGetResponseEnvelopeSuccess `json:"success,required"` + Result Domain `json:"result"` JSON domainGetResponseEnvelopeJSON `json:"-"` } @@ -236,8 +236,8 @@ type DomainGetResponseEnvelope struct { type domainGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/workers/script.go b/workers/script.go index d263f62be8c..9d61c719e1d 100644 --- a/workers/script.go +++ b/workers/script.go @@ -341,9 +341,9 @@ func (r ScriptUpdateParamsBodyObjectMetadataUsageModel) IsKnown() bool { type ScriptUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Script `json:"result,required"` // Whether the API call was successful Success ScriptUpdateResponseEnvelopeSuccess `json:"success,required"` + Result Script `json:"result"` JSON scriptUpdateResponseEnvelopeJSON `json:"-"` } @@ -352,8 +352,8 @@ type ScriptUpdateResponseEnvelope struct { type scriptUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/workers/scriptcontent.go b/workers/scriptcontent.go index 84ee7e1f33d..646520b0cb7 100644 --- a/workers/scriptcontent.go +++ b/workers/scriptcontent.go @@ -92,9 +92,9 @@ func (r ScriptContentUpdateParams) MarshalMultipart() (data []byte, contentType type ScriptContentUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Script `json:"result,required"` // Whether the API call was successful Success ScriptContentUpdateResponseEnvelopeSuccess `json:"success,required"` + Result Script `json:"result"` JSON scriptContentUpdateResponseEnvelopeJSON `json:"-"` } @@ -103,8 +103,8 @@ type ScriptContentUpdateResponseEnvelope struct { type scriptContentUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/workers/scriptdeployment.go b/workers/scriptdeployment.go index 265fb5fdd1c..3a57927f9a5 100644 --- a/workers/scriptdeployment.go +++ b/workers/scriptdeployment.go @@ -187,11 +187,11 @@ func (r ScriptDeploymentNewParams) MarshalJSON() (data []byte, err error) { } type ScriptDeploymentNewResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result ScriptDeploymentNewResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success ScriptDeploymentNewResponseEnvelopeSuccess `json:"success,required"` + Result ScriptDeploymentNewResponse `json:"result"` JSON scriptDeploymentNewResponseEnvelopeJSON `json:"-"` } @@ -200,8 +200,8 @@ type ScriptDeploymentNewResponseEnvelope struct { type scriptDeploymentNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -235,11 +235,11 @@ type ScriptDeploymentGetParams struct { } type ScriptDeploymentGetResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result ScriptDeploymentGetResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success ScriptDeploymentGetResponseEnvelopeSuccess `json:"success,required"` + Result ScriptDeploymentGetResponse `json:"result"` JSON scriptDeploymentGetResponseEnvelopeJSON `json:"-"` } @@ -248,8 +248,8 @@ type ScriptDeploymentGetResponseEnvelope struct { type scriptDeploymentGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/workers/scriptschedule.go b/workers/scriptschedule.go index 57655387c80..6c6bdb17ed4 100644 --- a/workers/scriptschedule.go +++ b/workers/scriptschedule.go @@ -142,11 +142,11 @@ func (r ScriptScheduleUpdateParams) MarshalJSON() (data []byte, err error) { } type ScriptScheduleUpdateResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result ScriptScheduleUpdateResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success ScriptScheduleUpdateResponseEnvelopeSuccess `json:"success,required"` + Result ScriptScheduleUpdateResponse `json:"result"` JSON scriptScheduleUpdateResponseEnvelopeJSON `json:"-"` } @@ -155,8 +155,8 @@ type ScriptScheduleUpdateResponseEnvelope struct { type scriptScheduleUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -190,11 +190,11 @@ type ScriptScheduleGetParams struct { } type ScriptScheduleGetResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result ScriptScheduleGetResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success ScriptScheduleGetResponseEnvelopeSuccess `json:"success,required"` + Result ScriptScheduleGetResponse `json:"result"` JSON scriptScheduleGetResponseEnvelopeJSON `json:"-"` } @@ -203,8 +203,8 @@ type ScriptScheduleGetResponseEnvelope struct { type scriptScheduleGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/workers/scriptsetting.go b/workers/scriptsetting.go index ed8c14427bd..ba6b484e370 100644 --- a/workers/scriptsetting.go +++ b/workers/scriptsetting.go @@ -75,9 +75,9 @@ func (r ScriptSettingEditParams) MarshalJSON() (data []byte, err error) { type ScriptSettingEditResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result ScriptSetting `json:"result,required"` // Whether the API call was successful Success ScriptSettingEditResponseEnvelopeSuccess `json:"success,required"` + Result ScriptSetting `json:"result"` JSON scriptSettingEditResponseEnvelopeJSON `json:"-"` } @@ -86,8 +86,8 @@ type ScriptSettingEditResponseEnvelope struct { type scriptSettingEditResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -123,9 +123,9 @@ type ScriptSettingGetParams struct { type ScriptSettingGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result ScriptSetting `json:"result,required"` // Whether the API call was successful Success ScriptSettingGetResponseEnvelopeSuccess `json:"success,required"` + Result ScriptSetting `json:"result"` JSON scriptSettingGetResponseEnvelopeJSON `json:"-"` } @@ -134,8 +134,8 @@ type ScriptSettingGetResponseEnvelope struct { type scriptSettingGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/workers/scripttail.go b/workers/scripttail.go index 2824704d2f1..5abc1c62226 100644 --- a/workers/scripttail.go +++ b/workers/scripttail.go @@ -6,14 +6,12 @@ import ( "context" "fmt" "net/http" - "reflect" "github.com/cloudflare/cloudflare-go/v2/internal/apijson" "github.com/cloudflare/cloudflare-go/v2/internal/param" "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" "github.com/cloudflare/cloudflare-go/v2/internal/shared" "github.com/cloudflare/cloudflare-go/v2/option" - "github.com/tidwall/gjson" ) // ScriptTailService contains methods and other services that help with interacting @@ -47,15 +45,10 @@ func (r *ScriptTailService) New(ctx context.Context, scriptName string, params S } // Deletes a tail from a Worker. -func (r *ScriptTailService) Delete(ctx context.Context, scriptName string, id string, params ScriptTailDeleteParams, opts ...option.RequestOption) (res *ScriptTailDeleteResponseUnion, err error) { +func (r *ScriptTailService) Delete(ctx context.Context, scriptName string, id string, params ScriptTailDeleteParams, opts ...option.RequestOption) (res *ScriptTailDeleteResponse, err error) { opts = append(r.Options[:], opts...) - var env ScriptTailDeleteResponseEnvelope path := fmt.Sprintf("accounts/%s/workers/scripts/%s/tails/%s", params.AccountID, scriptName, id) - err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, nil, &env, opts...) - if err != nil { - return - } - res = &env.Result + err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, nil, &res, opts...) return } @@ -139,30 +132,46 @@ func (r scriptTailNewResponseJSON) RawJSON() string { return r.raw } -// Union satisfied by [workers.ScriptTailDeleteResponseUnknown], -// [workers.ScriptTailDeleteResponseArray] or [shared.UnionString]. -type ScriptTailDeleteResponseUnion interface { - ImplementsWorkersScriptTailDeleteResponseUnion() +type ScriptTailDeleteResponse struct { + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + // Whether the API call was successful + Success ScriptTailDeleteResponseSuccess `json:"success,required"` + JSON scriptTailDeleteResponseJSON `json:"-"` +} + +// scriptTailDeleteResponseJSON contains the JSON metadata for the struct +// [ScriptTailDeleteResponse] +type scriptTailDeleteResponseJSON struct { + Errors apijson.Field + Messages apijson.Field + Success apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *ScriptTailDeleteResponse) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) } -func init() { - apijson.RegisterUnion( - reflect.TypeOf((*ScriptTailDeleteResponseUnion)(nil)).Elem(), - "", - apijson.UnionVariant{ - TypeFilter: gjson.JSON, - Type: reflect.TypeOf(ScriptTailDeleteResponseArray{}), - }, - apijson.UnionVariant{ - TypeFilter: gjson.String, - Type: reflect.TypeOf(shared.UnionString("")), - }, - ) +func (r scriptTailDeleteResponseJSON) RawJSON() string { + return r.raw } -type ScriptTailDeleteResponseArray []interface{} +// Whether the API call was successful +type ScriptTailDeleteResponseSuccess bool -func (r ScriptTailDeleteResponseArray) ImplementsWorkersScriptTailDeleteResponseUnion() {} +const ( + ScriptTailDeleteResponseSuccessTrue ScriptTailDeleteResponseSuccess = true +) + +func (r ScriptTailDeleteResponseSuccess) IsKnown() bool { + switch r { + case ScriptTailDeleteResponseSuccessTrue: + return true + } + return false +} type ScriptTailGetResponse struct { ID interface{} `json:"id"` @@ -202,9 +211,9 @@ func (r ScriptTailNewParams) MarshalJSON() (data []byte, err error) { type ScriptTailNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result ScriptTailNewResponse `json:"result,required"` // Whether the API call was successful Success ScriptTailNewResponseEnvelopeSuccess `json:"success,required"` + Result ScriptTailNewResponse `json:"result"` JSON scriptTailNewResponseEnvelopeJSON `json:"-"` } @@ -213,8 +222,8 @@ type ScriptTailNewResponseEnvelope struct { type scriptTailNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -252,49 +261,6 @@ func (r ScriptTailDeleteParams) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r.Body) } -type ScriptTailDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result ScriptTailDeleteResponseUnion `json:"result,required"` - // Whether the API call was successful - Success ScriptTailDeleteResponseEnvelopeSuccess `json:"success,required"` - JSON scriptTailDeleteResponseEnvelopeJSON `json:"-"` -} - -// scriptTailDeleteResponseEnvelopeJSON contains the JSON metadata for the struct -// [ScriptTailDeleteResponseEnvelope] -type scriptTailDeleteResponseEnvelopeJSON struct { - Errors apijson.Field - Messages apijson.Field - Result apijson.Field - Success apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *ScriptTailDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r scriptTailDeleteResponseEnvelopeJSON) RawJSON() string { - return r.raw -} - -// Whether the API call was successful -type ScriptTailDeleteResponseEnvelopeSuccess bool - -const ( - ScriptTailDeleteResponseEnvelopeSuccessTrue ScriptTailDeleteResponseEnvelopeSuccess = true -) - -func (r ScriptTailDeleteResponseEnvelopeSuccess) IsKnown() bool { - switch r { - case ScriptTailDeleteResponseEnvelopeSuccessTrue: - return true - } - return false -} - type ScriptTailGetParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` @@ -303,9 +269,9 @@ type ScriptTailGetParams struct { type ScriptTailGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result ScriptTailGetResponse `json:"result,required"` // Whether the API call was successful Success ScriptTailGetResponseEnvelopeSuccess `json:"success,required"` + Result ScriptTailGetResponse `json:"result"` JSON scriptTailGetResponseEnvelopeJSON `json:"-"` } @@ -314,8 +280,8 @@ type ScriptTailGetResponseEnvelope struct { type scriptTailGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/workers/scriptversion.go b/workers/scriptversion.go index 88c5434fd2d..44623661d9b 100644 --- a/workers/scriptversion.go +++ b/workers/scriptversion.go @@ -253,11 +253,11 @@ func (r ScriptVersionNewParamsMetadataUsageModel) IsKnown() bool { } type ScriptVersionNewResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result ScriptVersionNewResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success ScriptVersionNewResponseEnvelopeSuccess `json:"success,required"` + Result ScriptVersionNewResponse `json:"result"` JSON scriptVersionNewResponseEnvelopeJSON `json:"-"` } @@ -266,8 +266,8 @@ type ScriptVersionNewResponseEnvelope struct { type scriptVersionNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -301,11 +301,11 @@ type ScriptVersionListParams struct { } type ScriptVersionListResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result ScriptVersionListResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success ScriptVersionListResponseEnvelopeSuccess `json:"success,required"` + Result ScriptVersionListResponse `json:"result"` JSON scriptVersionListResponseEnvelopeJSON `json:"-"` } @@ -314,8 +314,8 @@ type ScriptVersionListResponseEnvelope struct { type scriptVersionListResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -349,11 +349,11 @@ type ScriptVersionGetParams struct { } type ScriptVersionGetResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result ScriptVersionGetResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success ScriptVersionGetResponseEnvelopeSuccess `json:"success,required"` + Result ScriptVersionGetResponse `json:"result"` JSON scriptVersionGetResponseEnvelopeJSON `json:"-"` } @@ -362,8 +362,8 @@ type ScriptVersionGetResponseEnvelope struct { type scriptVersionGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/workers/subdomain.go b/workers/subdomain.go index 947137a3ea2..b79b628002f 100644 --- a/workers/subdomain.go +++ b/workers/subdomain.go @@ -110,11 +110,11 @@ func (r SubdomainUpdateParams) MarshalJSON() (data []byte, err error) { } type SubdomainUpdateResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result SubdomainUpdateResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success SubdomainUpdateResponseEnvelopeSuccess `json:"success,required"` + Result SubdomainUpdateResponse `json:"result"` JSON subdomainUpdateResponseEnvelopeJSON `json:"-"` } @@ -123,8 +123,8 @@ type SubdomainUpdateResponseEnvelope struct { type subdomainUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -160,9 +160,9 @@ type SubdomainGetParams struct { type SubdomainGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result SubdomainGetResponse `json:"result,required"` // Whether the API call was successful Success SubdomainGetResponseEnvelopeSuccess `json:"success,required"` + Result SubdomainGetResponse `json:"result"` JSON subdomainGetResponseEnvelopeJSON `json:"-"` } @@ -171,8 +171,8 @@ type SubdomainGetResponseEnvelope struct { type subdomainGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/workers_for_platforms/dispatchnamespace.go b/workers_for_platforms/dispatchnamespace.go index 70cd3343add..8335dfecb95 100644 --- a/workers_for_platforms/dispatchnamespace.go +++ b/workers_for_platforms/dispatchnamespace.go @@ -232,11 +232,11 @@ func (r DispatchNamespaceNewParams) MarshalJSON() (data []byte, err error) { } type DispatchNamespaceNewResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result DispatchNamespaceNewResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DispatchNamespaceNewResponseEnvelopeSuccess `json:"success,required"` + Result DispatchNamespaceNewResponse `json:"result"` JSON dispatchNamespaceNewResponseEnvelopeJSON `json:"-"` } @@ -245,8 +245,8 @@ type DispatchNamespaceNewResponseEnvelope struct { type dispatchNamespaceNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -285,11 +285,11 @@ type DispatchNamespaceDeleteParams struct { } type DispatchNamespaceDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result DispatchNamespaceDeleteResponse `json:"result,required,nullable"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DispatchNamespaceDeleteResponseEnvelopeSuccess `json:"success,required"` + Result DispatchNamespaceDeleteResponse `json:"result,nullable"` JSON dispatchNamespaceDeleteResponseEnvelopeJSON `json:"-"` } @@ -298,8 +298,8 @@ type DispatchNamespaceDeleteResponseEnvelope struct { type dispatchNamespaceDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -333,11 +333,11 @@ type DispatchNamespaceGetParams struct { } type DispatchNamespaceGetResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result DispatchNamespaceGetResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DispatchNamespaceGetResponseEnvelopeSuccess `json:"success,required"` + Result DispatchNamespaceGetResponse `json:"result"` JSON dispatchNamespaceGetResponseEnvelopeJSON `json:"-"` } @@ -346,8 +346,8 @@ type DispatchNamespaceGetResponseEnvelope struct { type dispatchNamespaceGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/workers_for_platforms/dispatchnamespacescript.go b/workers_for_platforms/dispatchnamespacescript.go index d80c3ada18c..13de482c183 100644 --- a/workers_for_platforms/dispatchnamespacescript.go +++ b/workers_for_platforms/dispatchnamespacescript.go @@ -268,9 +268,9 @@ func (r DispatchNamespaceScriptUpdateParamsBodyObjectMetadataUsageModel) IsKnown type DispatchNamespaceScriptUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result workers.Script `json:"result,required"` // Whether the API call was successful Success DispatchNamespaceScriptUpdateResponseEnvelopeSuccess `json:"success,required"` + Result workers.Script `json:"result"` JSON dispatchNamespaceScriptUpdateResponseEnvelopeJSON `json:"-"` } @@ -279,8 +279,8 @@ type DispatchNamespaceScriptUpdateResponseEnvelope struct { type dispatchNamespaceScriptUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -339,11 +339,11 @@ type DispatchNamespaceScriptGetParams struct { type DispatchNamespaceScriptGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - // Details about a worker uploaded to a Workers for Platforms namespace. - Result Script `json:"result,required"` // Whether the API call was successful Success DispatchNamespaceScriptGetResponseEnvelopeSuccess `json:"success,required"` - JSON dispatchNamespaceScriptGetResponseEnvelopeJSON `json:"-"` + // Details about a worker uploaded to a Workers for Platforms namespace. + Result Script `json:"result"` + JSON dispatchNamespaceScriptGetResponseEnvelopeJSON `json:"-"` } // dispatchNamespaceScriptGetResponseEnvelopeJSON contains the JSON metadata for @@ -351,8 +351,8 @@ type DispatchNamespaceScriptGetResponseEnvelope struct { type dispatchNamespaceScriptGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/workers_for_platforms/dispatchnamespacescriptbinding.go b/workers_for_platforms/dispatchnamespacescriptbinding.go index b8613a0cacb..b5fa1a12cc0 100644 --- a/workers_for_platforms/dispatchnamespacescriptbinding.go +++ b/workers_for_platforms/dispatchnamespacescriptbinding.go @@ -55,11 +55,11 @@ type DispatchNamespaceScriptBindingGetParams struct { type DispatchNamespaceScriptBindingGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - // List of bindings attached to this Worker - Result []workers.Binding `json:"result,required"` // Whether the API call was successful Success DispatchNamespaceScriptBindingGetResponseEnvelopeSuccess `json:"success,required"` - JSON dispatchNamespaceScriptBindingGetResponseEnvelopeJSON `json:"-"` + // List of bindings attached to this Worker + Result []workers.Binding `json:"result"` + JSON dispatchNamespaceScriptBindingGetResponseEnvelopeJSON `json:"-"` } // dispatchNamespaceScriptBindingGetResponseEnvelopeJSON contains the JSON metadata @@ -67,8 +67,8 @@ type DispatchNamespaceScriptBindingGetResponseEnvelope struct { type dispatchNamespaceScriptBindingGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/workers_for_platforms/dispatchnamespacescriptcontent.go b/workers_for_platforms/dispatchnamespacescriptcontent.go index cc786b80ce5..e9b858c5fae 100644 --- a/workers_for_platforms/dispatchnamespacescriptcontent.go +++ b/workers_for_platforms/dispatchnamespacescriptcontent.go @@ -94,9 +94,9 @@ func (r DispatchNamespaceScriptContentUpdateParams) MarshalMultipart() (data []b type DispatchNamespaceScriptContentUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result workers.Script `json:"result,required"` // Whether the API call was successful Success DispatchNamespaceScriptContentUpdateResponseEnvelopeSuccess `json:"success,required"` + Result workers.Script `json:"result"` JSON dispatchNamespaceScriptContentUpdateResponseEnvelopeJSON `json:"-"` } @@ -105,8 +105,8 @@ type DispatchNamespaceScriptContentUpdateResponseEnvelope struct { type dispatchNamespaceScriptContentUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/workers_for_platforms/dispatchnamespacescriptsecret.go b/workers_for_platforms/dispatchnamespacescriptsecret.go index d46fb698f18..bb5f4bfe9c2 100644 --- a/workers_for_platforms/dispatchnamespacescriptsecret.go +++ b/workers_for_platforms/dispatchnamespacescriptsecret.go @@ -180,11 +180,11 @@ func (r DispatchNamespaceScriptSecretUpdateParamsType) IsKnown() bool { } type DispatchNamespaceScriptSecretUpdateResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result DispatchNamespaceScriptSecretUpdateResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DispatchNamespaceScriptSecretUpdateResponseEnvelopeSuccess `json:"success,required"` + Result DispatchNamespaceScriptSecretUpdateResponse `json:"result"` JSON dispatchNamespaceScriptSecretUpdateResponseEnvelopeJSON `json:"-"` } @@ -193,8 +193,8 @@ type DispatchNamespaceScriptSecretUpdateResponseEnvelope struct { type dispatchNamespaceScriptSecretUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/workers_for_platforms/dispatchnamespacescriptsetting.go b/workers_for_platforms/dispatchnamespacescriptsetting.go index 9d1a43c4fa4..bd495f39dd4 100644 --- a/workers_for_platforms/dispatchnamespacescriptsetting.go +++ b/workers_for_platforms/dispatchnamespacescriptsetting.go @@ -416,11 +416,11 @@ type DispatchNamespaceScriptSettingEditParamsSettingsMigrationsUnion interface { } type DispatchNamespaceScriptSettingEditResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result DispatchNamespaceScriptSettingEditResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DispatchNamespaceScriptSettingEditResponseEnvelopeSuccess `json:"success,required"` + Result DispatchNamespaceScriptSettingEditResponse `json:"result"` JSON dispatchNamespaceScriptSettingEditResponseEnvelopeJSON `json:"-"` } @@ -429,8 +429,8 @@ type DispatchNamespaceScriptSettingEditResponseEnvelope struct { type dispatchNamespaceScriptSettingEditResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -464,11 +464,11 @@ type DispatchNamespaceScriptSettingGetParams struct { } type DispatchNamespaceScriptSettingGetResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result DispatchNamespaceScriptSettingGetResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DispatchNamespaceScriptSettingGetResponseEnvelopeSuccess `json:"success,required"` + Result DispatchNamespaceScriptSettingGetResponse `json:"result"` JSON dispatchNamespaceScriptSettingGetResponseEnvelopeJSON `json:"-"` } @@ -477,8 +477,8 @@ type DispatchNamespaceScriptSettingGetResponseEnvelope struct { type dispatchNamespaceScriptSettingGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/workers_for_platforms/dispatchnamespacescripttag.go b/workers_for_platforms/dispatchnamespacescripttag.go index b3c0772fec6..2cbec1b431a 100644 --- a/workers_for_platforms/dispatchnamespacescripttag.go +++ b/workers_for_platforms/dispatchnamespacescripttag.go @@ -98,9 +98,9 @@ func (r DispatchNamespaceScriptTagUpdateParams) MarshalJSON() (data []byte, err type DispatchNamespaceScriptTagUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result []string `json:"result,required"` // Whether the API call was successful Success DispatchNamespaceScriptTagUpdateResponseEnvelopeSuccess `json:"success,required"` + Result []string `json:"result"` JSON dispatchNamespaceScriptTagUpdateResponseEnvelopeJSON `json:"-"` } @@ -109,8 +109,8 @@ type DispatchNamespaceScriptTagUpdateResponseEnvelope struct { type dispatchNamespaceScriptTagUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -149,11 +149,11 @@ type DispatchNamespaceScriptTagDeleteParams struct { } type DispatchNamespaceScriptTagDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result DispatchNamespaceScriptTagDeleteResponse `json:"result,required,nullable"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DispatchNamespaceScriptTagDeleteResponseEnvelopeSuccess `json:"success,required"` + Result DispatchNamespaceScriptTagDeleteResponse `json:"result,nullable"` JSON dispatchNamespaceScriptTagDeleteResponseEnvelopeJSON `json:"-"` } @@ -162,8 +162,8 @@ type DispatchNamespaceScriptTagDeleteResponseEnvelope struct { type dispatchNamespaceScriptTagDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } From 9d6c74e90da8159fdcee67d6cd285e440f946063 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Apr 2024 18:13:29 +0000 Subject: [PATCH 22/52] feat(api): OpenAPI spec update via Stainless API (#1805) --- api.md | 4 ++-- internal/shared/union.go | 1 - logs/controlcmbconfig.go | 45 +++++++++------------------------------- 3 files changed, 12 insertions(+), 38 deletions(-) diff --git a/api.md b/api.md index 060fe8218af..d7b41e52b06 100644 --- a/api.md +++ b/api.md @@ -1992,12 +1992,12 @@ Params Types: Response Types: - logs.CmbConfig -- logs.ControlCmbConfigDeleteResponseUnion +- logs.ControlCmbConfigDeleteResponse Methods: - client.Logs.Control.Cmb.Config.New(ctx context.Context, params logs.ControlCmbConfigNewParams) (logs.CmbConfig, error) -- client.Logs.Control.Cmb.Config.Delete(ctx context.Context, params logs.ControlCmbConfigDeleteParams) (logs.ControlCmbConfigDeleteResponseUnion, error) +- client.Logs.Control.Cmb.Config.Delete(ctx context.Context, params logs.ControlCmbConfigDeleteParams) (logs.ControlCmbConfigDeleteResponse, error) - client.Logs.Control.Cmb.Config.Get(ctx context.Context, query logs.ControlCmbConfigGetParams) (logs.CmbConfig, error) ## RayID diff --git a/internal/shared/union.go b/internal/shared/union.go index da72313c790..81f6c251540 100644 --- a/internal/shared/union.go +++ b/internal/shared/union.go @@ -67,7 +67,6 @@ func (UnionString) ImplementsFirewallWAFPackageGroupEditResponseUnion() func (UnionString) ImplementsFirewallWAFPackageGroupGetResponseUnion() {} func (UnionString) ImplementsFirewallWAFPackageRuleGetResponseUnion() {} func (UnionString) ImplementsLogpushJobDeleteResponseUnion() {} -func (UnionString) ImplementsLogsControlCmbConfigDeleteResponseUnion() {} func (UnionString) ImplementsLogsRayIDGetResponseUnion() {} func (UnionString) ImplementsLogsReceivedGetResponseUnion() {} func (UnionString) ImplementsLogsReceivedGetParamsEndUnion() {} diff --git a/logs/controlcmbconfig.go b/logs/controlcmbconfig.go index b66ff77cefb..cfbda105947 100644 --- a/logs/controlcmbconfig.go +++ b/logs/controlcmbconfig.go @@ -6,14 +6,12 @@ import ( "context" "fmt" "net/http" - "reflect" "github.com/cloudflare/cloudflare-go/v2/internal/apijson" "github.com/cloudflare/cloudflare-go/v2/internal/param" "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" "github.com/cloudflare/cloudflare-go/v2/internal/shared" "github.com/cloudflare/cloudflare-go/v2/option" - "github.com/tidwall/gjson" ) // ControlCmbConfigService contains methods and other services that help with @@ -48,7 +46,7 @@ func (r *ControlCmbConfigService) New(ctx context.Context, params ControlCmbConf } // Deletes CMB config. -func (r *ControlCmbConfigService) Delete(ctx context.Context, params ControlCmbConfigDeleteParams, opts ...option.RequestOption) (res *ControlCmbConfigDeleteResponseUnion, err error) { +func (r *ControlCmbConfigService) Delete(ctx context.Context, params ControlCmbConfigDeleteParams, opts ...option.RequestOption) (res *ControlCmbConfigDeleteResponse, err error) { opts = append(r.Options[:], opts...) var env ControlCmbConfigDeleteResponseEnvelope path := fmt.Sprintf("accounts/%s/logs/control/cmb/config", params.AccountID) @@ -103,30 +101,7 @@ func (r CmbConfigParam) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -// Union satisfied by [logs.ControlCmbConfigDeleteResponseUnknown], -// [logs.ControlCmbConfigDeleteResponseArray] or [shared.UnionString]. -type ControlCmbConfigDeleteResponseUnion interface { - ImplementsLogsControlCmbConfigDeleteResponseUnion() -} - -func init() { - apijson.RegisterUnion( - reflect.TypeOf((*ControlCmbConfigDeleteResponseUnion)(nil)).Elem(), - "", - apijson.UnionVariant{ - TypeFilter: gjson.JSON, - Type: reflect.TypeOf(ControlCmbConfigDeleteResponseArray{}), - }, - apijson.UnionVariant{ - TypeFilter: gjson.String, - Type: reflect.TypeOf(shared.UnionString("")), - }, - ) -} - -type ControlCmbConfigDeleteResponseArray []interface{} - -func (r ControlCmbConfigDeleteResponseArray) ImplementsLogsControlCmbConfigDeleteResponseUnion() {} +type ControlCmbConfigDeleteResponse = interface{} type ControlCmbConfigNewParams struct { // Identifier @@ -141,9 +116,9 @@ func (r ControlCmbConfigNewParams) MarshalJSON() (data []byte, err error) { type ControlCmbConfigNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result CmbConfig `json:"result,required,nullable"` // Whether the API call was successful Success ControlCmbConfigNewResponseEnvelopeSuccess `json:"success,required"` + Result CmbConfig `json:"result,nullable"` JSON controlCmbConfigNewResponseEnvelopeJSON `json:"-"` } @@ -152,8 +127,8 @@ type ControlCmbConfigNewResponseEnvelope struct { type controlCmbConfigNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -192,11 +167,11 @@ func (r ControlCmbConfigDeleteParams) MarshalJSON() (data []byte, err error) { } type ControlCmbConfigDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result ControlCmbConfigDeleteResponseUnion `json:"result,required,nullable"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success ControlCmbConfigDeleteResponseEnvelopeSuccess `json:"success,required"` + Result ControlCmbConfigDeleteResponse `json:"result,nullable"` JSON controlCmbConfigDeleteResponseEnvelopeJSON `json:"-"` } @@ -205,8 +180,8 @@ type ControlCmbConfigDeleteResponseEnvelope struct { type controlCmbConfigDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -242,9 +217,9 @@ type ControlCmbConfigGetParams struct { type ControlCmbConfigGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result CmbConfig `json:"result,required,nullable"` // Whether the API call was successful Success ControlCmbConfigGetResponseEnvelopeSuccess `json:"success,required"` + Result CmbConfig `json:"result,nullable"` JSON controlCmbConfigGetResponseEnvelopeJSON `json:"-"` } @@ -253,8 +228,8 @@ type ControlCmbConfigGetResponseEnvelope struct { type controlCmbConfigGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } From a229e9e5944107503cc2d474367e252bae7141b5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Apr 2024 19:02:22 +0000 Subject: [PATCH 23/52] feat(api): OpenAPI spec update via Stainless API (#1806) --- api.md | 4 +- custom_hostnames/customhostname.go | 676 +++++++++++++++++++++++++++-- hyperdrive/config_test.go | 42 +- internal/shared/union.go | 1 - logpush/datasetfield.go | 8 +- logpush/datasetjob.go | 4 +- logpush/edge.go | 8 +- logpush/job.go | 49 +-- logpush/ownership.go | 8 +- logpush/validate.go | 16 +- 10 files changed, 719 insertions(+), 97 deletions(-) diff --git a/api.md b/api.md index d7b41e52b06..e0b5448113a 100644 --- a/api.md +++ b/api.md @@ -1929,14 +1929,14 @@ Response Types: - logpush.LogpushJob - logpush.OutputOptions -- logpush.JobDeleteResponseUnion +- logpush.JobDeleteResponse Methods: - client.Logpush.Jobs.New(ctx context.Context, params logpush.JobNewParams) (logpush.LogpushJob, error) - client.Logpush.Jobs.Update(ctx context.Context, jobID int64, params logpush.JobUpdateParams) (logpush.LogpushJob, error) - client.Logpush.Jobs.List(ctx context.Context, query logpush.JobListParams) (pagination.SinglePage[logpush.LogpushJob], error) -- client.Logpush.Jobs.Delete(ctx context.Context, jobID int64, params logpush.JobDeleteParams) (logpush.JobDeleteResponseUnion, error) +- client.Logpush.Jobs.Delete(ctx context.Context, jobID int64, params logpush.JobDeleteParams) (logpush.JobDeleteResponse, error) - client.Logpush.Jobs.Get(ctx context.Context, jobID int64, query logpush.JobGetParams) (logpush.LogpushJob, error) ## Ownership diff --git a/custom_hostnames/customhostname.go b/custom_hostnames/customhostname.go index fe8506a80a0..c06346dcc45 100644 --- a/custom_hostnames/customhostname.go +++ b/custom_hostnames/customhostname.go @@ -176,18 +176,48 @@ type CustomHostnameNewResponse struct { // The custom hostname that will point to your hostname via CNAME. Hostname string `json:"hostname,required"` // SSL properties for the custom hostname. - SSL CustomHostnameNewResponseSSL `json:"ssl,required"` - JSON customHostnameNewResponseJSON `json:"-"` + SSL CustomHostnameNewResponseSSL `json:"ssl,required"` + // This is the time the hostname was created. + CreatedAt time.Time `json:"created_at" format:"date-time"` + // These are per-hostname (customer) settings. + CustomMetadata CustomHostnameNewResponseCustomMetadata `json:"custom_metadata"` + // a valid hostname that’s been added to your DNS zone as an A, AAAA, or CNAME + // record. + CustomOriginServer string `json:"custom_origin_server"` + // A hostname that will be sent to your custom origin server as SNI for TLS + // handshake. This can be a valid subdomain of the zone or custom origin server + // name or the string ':request_host_header:' which will cause the host header in + // the request to be used as SNI. Not configurable with default/fallback origin + // server. + CustomOriginSni string `json:"custom_origin_sni"` + // This is a record which can be placed to activate a hostname. + OwnershipVerification CustomHostnameNewResponseOwnershipVerification `json:"ownership_verification"` + // This presents the token to be served by the given http url to activate a + // hostname. + OwnershipVerificationHTTP CustomHostnameNewResponseOwnershipVerificationHTTP `json:"ownership_verification_http"` + // Status of the hostname's activation. + Status CustomHostnameNewResponseStatus `json:"status"` + // These are errors that were encountered while trying to activate a hostname. + VerificationErrors []interface{} `json:"verification_errors"` + JSON customHostnameNewResponseJSON `json:"-"` } // customHostnameNewResponseJSON contains the JSON metadata for the struct // [CustomHostnameNewResponse] type customHostnameNewResponseJSON struct { - ID apijson.Field - Hostname apijson.Field - SSL apijson.Field - raw string - ExtraFields map[string]apijson.Field + ID apijson.Field + Hostname apijson.Field + SSL apijson.Field + CreatedAt apijson.Field + CustomMetadata apijson.Field + CustomOriginServer apijson.Field + CustomOriginSni apijson.Field + OwnershipVerification apijson.Field + OwnershipVerificationHTTP apijson.Field + Status apijson.Field + VerificationErrors apijson.Field + raw string + ExtraFields map[string]apijson.Field } func (r *CustomHostnameNewResponse) UnmarshalJSON(data []byte) (err error) { @@ -494,24 +524,179 @@ func (r customHostnameNewResponseSSLValidationRecordJSON) RawJSON() string { return r.raw } +// These are per-hostname (customer) settings. +type CustomHostnameNewResponseCustomMetadata struct { + // Unique metadata for this hostname. + Key string `json:"key"` + JSON customHostnameNewResponseCustomMetadataJSON `json:"-"` +} + +// customHostnameNewResponseCustomMetadataJSON contains the JSON metadata for the +// struct [CustomHostnameNewResponseCustomMetadata] +type customHostnameNewResponseCustomMetadataJSON struct { + Key apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *CustomHostnameNewResponseCustomMetadata) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r customHostnameNewResponseCustomMetadataJSON) RawJSON() string { + return r.raw +} + +// This is a record which can be placed to activate a hostname. +type CustomHostnameNewResponseOwnershipVerification struct { + // DNS Name for record. + Name string `json:"name"` + // DNS Record type. + Type CustomHostnameNewResponseOwnershipVerificationType `json:"type"` + // Content for the record. + Value string `json:"value"` + JSON customHostnameNewResponseOwnershipVerificationJSON `json:"-"` +} + +// customHostnameNewResponseOwnershipVerificationJSON contains the JSON metadata +// for the struct [CustomHostnameNewResponseOwnershipVerification] +type customHostnameNewResponseOwnershipVerificationJSON struct { + Name apijson.Field + Type apijson.Field + Value apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *CustomHostnameNewResponseOwnershipVerification) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r customHostnameNewResponseOwnershipVerificationJSON) RawJSON() string { + return r.raw +} + +// DNS Record type. +type CustomHostnameNewResponseOwnershipVerificationType string + +const ( + CustomHostnameNewResponseOwnershipVerificationTypeTXT CustomHostnameNewResponseOwnershipVerificationType = "txt" +) + +func (r CustomHostnameNewResponseOwnershipVerificationType) IsKnown() bool { + switch r { + case CustomHostnameNewResponseOwnershipVerificationTypeTXT: + return true + } + return false +} + +// This presents the token to be served by the given http url to activate a +// hostname. +type CustomHostnameNewResponseOwnershipVerificationHTTP struct { + // Token to be served. + HTTPBody string `json:"http_body"` + // The HTTP URL that will be checked during custom hostname verification and where + // the customer should host the token. + HTTPURL string `json:"http_url"` + JSON customHostnameNewResponseOwnershipVerificationHTTPJSON `json:"-"` +} + +// customHostnameNewResponseOwnershipVerificationHTTPJSON contains the JSON +// metadata for the struct [CustomHostnameNewResponseOwnershipVerificationHTTP] +type customHostnameNewResponseOwnershipVerificationHTTPJSON struct { + HTTPBody apijson.Field + HTTPURL apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *CustomHostnameNewResponseOwnershipVerificationHTTP) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r customHostnameNewResponseOwnershipVerificationHTTPJSON) RawJSON() string { + return r.raw +} + +// Status of the hostname's activation. +type CustomHostnameNewResponseStatus string + +const ( + CustomHostnameNewResponseStatusActive CustomHostnameNewResponseStatus = "active" + CustomHostnameNewResponseStatusPending CustomHostnameNewResponseStatus = "pending" + CustomHostnameNewResponseStatusActiveRedeploying CustomHostnameNewResponseStatus = "active_redeploying" + CustomHostnameNewResponseStatusMoved CustomHostnameNewResponseStatus = "moved" + CustomHostnameNewResponseStatusPendingDeletion CustomHostnameNewResponseStatus = "pending_deletion" + CustomHostnameNewResponseStatusDeleted CustomHostnameNewResponseStatus = "deleted" + CustomHostnameNewResponseStatusPendingBlocked CustomHostnameNewResponseStatus = "pending_blocked" + CustomHostnameNewResponseStatusPendingMigration CustomHostnameNewResponseStatus = "pending_migration" + CustomHostnameNewResponseStatusPendingProvisioned CustomHostnameNewResponseStatus = "pending_provisioned" + CustomHostnameNewResponseStatusTestPending CustomHostnameNewResponseStatus = "test_pending" + CustomHostnameNewResponseStatusTestActive CustomHostnameNewResponseStatus = "test_active" + CustomHostnameNewResponseStatusTestActiveApex CustomHostnameNewResponseStatus = "test_active_apex" + CustomHostnameNewResponseStatusTestBlocked CustomHostnameNewResponseStatus = "test_blocked" + CustomHostnameNewResponseStatusTestFailed CustomHostnameNewResponseStatus = "test_failed" + CustomHostnameNewResponseStatusProvisioned CustomHostnameNewResponseStatus = "provisioned" + CustomHostnameNewResponseStatusBlocked CustomHostnameNewResponseStatus = "blocked" +) + +func (r CustomHostnameNewResponseStatus) IsKnown() bool { + switch r { + case CustomHostnameNewResponseStatusActive, CustomHostnameNewResponseStatusPending, CustomHostnameNewResponseStatusActiveRedeploying, CustomHostnameNewResponseStatusMoved, CustomHostnameNewResponseStatusPendingDeletion, CustomHostnameNewResponseStatusDeleted, CustomHostnameNewResponseStatusPendingBlocked, CustomHostnameNewResponseStatusPendingMigration, CustomHostnameNewResponseStatusPendingProvisioned, CustomHostnameNewResponseStatusTestPending, CustomHostnameNewResponseStatusTestActive, CustomHostnameNewResponseStatusTestActiveApex, CustomHostnameNewResponseStatusTestBlocked, CustomHostnameNewResponseStatusTestFailed, CustomHostnameNewResponseStatusProvisioned, CustomHostnameNewResponseStatusBlocked: + return true + } + return false +} + type CustomHostnameListResponse struct { // Identifier ID string `json:"id,required"` // The custom hostname that will point to your hostname via CNAME. Hostname string `json:"hostname,required"` // SSL properties for the custom hostname. - SSL CustomHostnameListResponseSSL `json:"ssl,required"` - JSON customHostnameListResponseJSON `json:"-"` + SSL CustomHostnameListResponseSSL `json:"ssl,required"` + // This is the time the hostname was created. + CreatedAt time.Time `json:"created_at" format:"date-time"` + // These are per-hostname (customer) settings. + CustomMetadata CustomHostnameListResponseCustomMetadata `json:"custom_metadata"` + // a valid hostname that’s been added to your DNS zone as an A, AAAA, or CNAME + // record. + CustomOriginServer string `json:"custom_origin_server"` + // A hostname that will be sent to your custom origin server as SNI for TLS + // handshake. This can be a valid subdomain of the zone or custom origin server + // name or the string ':request_host_header:' which will cause the host header in + // the request to be used as SNI. Not configurable with default/fallback origin + // server. + CustomOriginSni string `json:"custom_origin_sni"` + // This is a record which can be placed to activate a hostname. + OwnershipVerification CustomHostnameListResponseOwnershipVerification `json:"ownership_verification"` + // This presents the token to be served by the given http url to activate a + // hostname. + OwnershipVerificationHTTP CustomHostnameListResponseOwnershipVerificationHTTP `json:"ownership_verification_http"` + // Status of the hostname's activation. + Status CustomHostnameListResponseStatus `json:"status"` + // These are errors that were encountered while trying to activate a hostname. + VerificationErrors []interface{} `json:"verification_errors"` + JSON customHostnameListResponseJSON `json:"-"` } // customHostnameListResponseJSON contains the JSON metadata for the struct // [CustomHostnameListResponse] type customHostnameListResponseJSON struct { - ID apijson.Field - Hostname apijson.Field - SSL apijson.Field - raw string - ExtraFields map[string]apijson.Field + ID apijson.Field + Hostname apijson.Field + SSL apijson.Field + CreatedAt apijson.Field + CustomMetadata apijson.Field + CustomOriginServer apijson.Field + CustomOriginSni apijson.Field + OwnershipVerification apijson.Field + OwnershipVerificationHTTP apijson.Field + Status apijson.Field + VerificationErrors apijson.Field + raw string + ExtraFields map[string]apijson.Field } func (r *CustomHostnameListResponse) UnmarshalJSON(data []byte) (err error) { @@ -818,6 +1003,131 @@ func (r customHostnameListResponseSSLValidationRecordJSON) RawJSON() string { return r.raw } +// These are per-hostname (customer) settings. +type CustomHostnameListResponseCustomMetadata struct { + // Unique metadata for this hostname. + Key string `json:"key"` + JSON customHostnameListResponseCustomMetadataJSON `json:"-"` +} + +// customHostnameListResponseCustomMetadataJSON contains the JSON metadata for the +// struct [CustomHostnameListResponseCustomMetadata] +type customHostnameListResponseCustomMetadataJSON struct { + Key apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *CustomHostnameListResponseCustomMetadata) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r customHostnameListResponseCustomMetadataJSON) RawJSON() string { + return r.raw +} + +// This is a record which can be placed to activate a hostname. +type CustomHostnameListResponseOwnershipVerification struct { + // DNS Name for record. + Name string `json:"name"` + // DNS Record type. + Type CustomHostnameListResponseOwnershipVerificationType `json:"type"` + // Content for the record. + Value string `json:"value"` + JSON customHostnameListResponseOwnershipVerificationJSON `json:"-"` +} + +// customHostnameListResponseOwnershipVerificationJSON contains the JSON metadata +// for the struct [CustomHostnameListResponseOwnershipVerification] +type customHostnameListResponseOwnershipVerificationJSON struct { + Name apijson.Field + Type apijson.Field + Value apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *CustomHostnameListResponseOwnershipVerification) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r customHostnameListResponseOwnershipVerificationJSON) RawJSON() string { + return r.raw +} + +// DNS Record type. +type CustomHostnameListResponseOwnershipVerificationType string + +const ( + CustomHostnameListResponseOwnershipVerificationTypeTXT CustomHostnameListResponseOwnershipVerificationType = "txt" +) + +func (r CustomHostnameListResponseOwnershipVerificationType) IsKnown() bool { + switch r { + case CustomHostnameListResponseOwnershipVerificationTypeTXT: + return true + } + return false +} + +// This presents the token to be served by the given http url to activate a +// hostname. +type CustomHostnameListResponseOwnershipVerificationHTTP struct { + // Token to be served. + HTTPBody string `json:"http_body"` + // The HTTP URL that will be checked during custom hostname verification and where + // the customer should host the token. + HTTPURL string `json:"http_url"` + JSON customHostnameListResponseOwnershipVerificationHTTPJSON `json:"-"` +} + +// customHostnameListResponseOwnershipVerificationHTTPJSON contains the JSON +// metadata for the struct [CustomHostnameListResponseOwnershipVerificationHTTP] +type customHostnameListResponseOwnershipVerificationHTTPJSON struct { + HTTPBody apijson.Field + HTTPURL apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *CustomHostnameListResponseOwnershipVerificationHTTP) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r customHostnameListResponseOwnershipVerificationHTTPJSON) RawJSON() string { + return r.raw +} + +// Status of the hostname's activation. +type CustomHostnameListResponseStatus string + +const ( + CustomHostnameListResponseStatusActive CustomHostnameListResponseStatus = "active" + CustomHostnameListResponseStatusPending CustomHostnameListResponseStatus = "pending" + CustomHostnameListResponseStatusActiveRedeploying CustomHostnameListResponseStatus = "active_redeploying" + CustomHostnameListResponseStatusMoved CustomHostnameListResponseStatus = "moved" + CustomHostnameListResponseStatusPendingDeletion CustomHostnameListResponseStatus = "pending_deletion" + CustomHostnameListResponseStatusDeleted CustomHostnameListResponseStatus = "deleted" + CustomHostnameListResponseStatusPendingBlocked CustomHostnameListResponseStatus = "pending_blocked" + CustomHostnameListResponseStatusPendingMigration CustomHostnameListResponseStatus = "pending_migration" + CustomHostnameListResponseStatusPendingProvisioned CustomHostnameListResponseStatus = "pending_provisioned" + CustomHostnameListResponseStatusTestPending CustomHostnameListResponseStatus = "test_pending" + CustomHostnameListResponseStatusTestActive CustomHostnameListResponseStatus = "test_active" + CustomHostnameListResponseStatusTestActiveApex CustomHostnameListResponseStatus = "test_active_apex" + CustomHostnameListResponseStatusTestBlocked CustomHostnameListResponseStatus = "test_blocked" + CustomHostnameListResponseStatusTestFailed CustomHostnameListResponseStatus = "test_failed" + CustomHostnameListResponseStatusProvisioned CustomHostnameListResponseStatus = "provisioned" + CustomHostnameListResponseStatusBlocked CustomHostnameListResponseStatus = "blocked" +) + +func (r CustomHostnameListResponseStatus) IsKnown() bool { + switch r { + case CustomHostnameListResponseStatusActive, CustomHostnameListResponseStatusPending, CustomHostnameListResponseStatusActiveRedeploying, CustomHostnameListResponseStatusMoved, CustomHostnameListResponseStatusPendingDeletion, CustomHostnameListResponseStatusDeleted, CustomHostnameListResponseStatusPendingBlocked, CustomHostnameListResponseStatusPendingMigration, CustomHostnameListResponseStatusPendingProvisioned, CustomHostnameListResponseStatusTestPending, CustomHostnameListResponseStatusTestActive, CustomHostnameListResponseStatusTestActiveApex, CustomHostnameListResponseStatusTestBlocked, CustomHostnameListResponseStatusTestFailed, CustomHostnameListResponseStatusProvisioned, CustomHostnameListResponseStatusBlocked: + return true + } + return false +} + type CustomHostnameDeleteResponse struct { // Identifier ID string `json:"id"` @@ -846,18 +1156,48 @@ type CustomHostnameEditResponse struct { // The custom hostname that will point to your hostname via CNAME. Hostname string `json:"hostname,required"` // SSL properties for the custom hostname. - SSL CustomHostnameEditResponseSSL `json:"ssl,required"` - JSON customHostnameEditResponseJSON `json:"-"` + SSL CustomHostnameEditResponseSSL `json:"ssl,required"` + // This is the time the hostname was created. + CreatedAt time.Time `json:"created_at" format:"date-time"` + // These are per-hostname (customer) settings. + CustomMetadata CustomHostnameEditResponseCustomMetadata `json:"custom_metadata"` + // a valid hostname that’s been added to your DNS zone as an A, AAAA, or CNAME + // record. + CustomOriginServer string `json:"custom_origin_server"` + // A hostname that will be sent to your custom origin server as SNI for TLS + // handshake. This can be a valid subdomain of the zone or custom origin server + // name or the string ':request_host_header:' which will cause the host header in + // the request to be used as SNI. Not configurable with default/fallback origin + // server. + CustomOriginSni string `json:"custom_origin_sni"` + // This is a record which can be placed to activate a hostname. + OwnershipVerification CustomHostnameEditResponseOwnershipVerification `json:"ownership_verification"` + // This presents the token to be served by the given http url to activate a + // hostname. + OwnershipVerificationHTTP CustomHostnameEditResponseOwnershipVerificationHTTP `json:"ownership_verification_http"` + // Status of the hostname's activation. + Status CustomHostnameEditResponseStatus `json:"status"` + // These are errors that were encountered while trying to activate a hostname. + VerificationErrors []interface{} `json:"verification_errors"` + JSON customHostnameEditResponseJSON `json:"-"` } // customHostnameEditResponseJSON contains the JSON metadata for the struct // [CustomHostnameEditResponse] type customHostnameEditResponseJSON struct { - ID apijson.Field - Hostname apijson.Field - SSL apijson.Field - raw string - ExtraFields map[string]apijson.Field + ID apijson.Field + Hostname apijson.Field + SSL apijson.Field + CreatedAt apijson.Field + CustomMetadata apijson.Field + CustomOriginServer apijson.Field + CustomOriginSni apijson.Field + OwnershipVerification apijson.Field + OwnershipVerificationHTTP apijson.Field + Status apijson.Field + VerificationErrors apijson.Field + raw string + ExtraFields map[string]apijson.Field } func (r *CustomHostnameEditResponse) UnmarshalJSON(data []byte) (err error) { @@ -1164,24 +1504,179 @@ func (r customHostnameEditResponseSSLValidationRecordJSON) RawJSON() string { return r.raw } +// These are per-hostname (customer) settings. +type CustomHostnameEditResponseCustomMetadata struct { + // Unique metadata for this hostname. + Key string `json:"key"` + JSON customHostnameEditResponseCustomMetadataJSON `json:"-"` +} + +// customHostnameEditResponseCustomMetadataJSON contains the JSON metadata for the +// struct [CustomHostnameEditResponseCustomMetadata] +type customHostnameEditResponseCustomMetadataJSON struct { + Key apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *CustomHostnameEditResponseCustomMetadata) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r customHostnameEditResponseCustomMetadataJSON) RawJSON() string { + return r.raw +} + +// This is a record which can be placed to activate a hostname. +type CustomHostnameEditResponseOwnershipVerification struct { + // DNS Name for record. + Name string `json:"name"` + // DNS Record type. + Type CustomHostnameEditResponseOwnershipVerificationType `json:"type"` + // Content for the record. + Value string `json:"value"` + JSON customHostnameEditResponseOwnershipVerificationJSON `json:"-"` +} + +// customHostnameEditResponseOwnershipVerificationJSON contains the JSON metadata +// for the struct [CustomHostnameEditResponseOwnershipVerification] +type customHostnameEditResponseOwnershipVerificationJSON struct { + Name apijson.Field + Type apijson.Field + Value apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *CustomHostnameEditResponseOwnershipVerification) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r customHostnameEditResponseOwnershipVerificationJSON) RawJSON() string { + return r.raw +} + +// DNS Record type. +type CustomHostnameEditResponseOwnershipVerificationType string + +const ( + CustomHostnameEditResponseOwnershipVerificationTypeTXT CustomHostnameEditResponseOwnershipVerificationType = "txt" +) + +func (r CustomHostnameEditResponseOwnershipVerificationType) IsKnown() bool { + switch r { + case CustomHostnameEditResponseOwnershipVerificationTypeTXT: + return true + } + return false +} + +// This presents the token to be served by the given http url to activate a +// hostname. +type CustomHostnameEditResponseOwnershipVerificationHTTP struct { + // Token to be served. + HTTPBody string `json:"http_body"` + // The HTTP URL that will be checked during custom hostname verification and where + // the customer should host the token. + HTTPURL string `json:"http_url"` + JSON customHostnameEditResponseOwnershipVerificationHTTPJSON `json:"-"` +} + +// customHostnameEditResponseOwnershipVerificationHTTPJSON contains the JSON +// metadata for the struct [CustomHostnameEditResponseOwnershipVerificationHTTP] +type customHostnameEditResponseOwnershipVerificationHTTPJSON struct { + HTTPBody apijson.Field + HTTPURL apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *CustomHostnameEditResponseOwnershipVerificationHTTP) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r customHostnameEditResponseOwnershipVerificationHTTPJSON) RawJSON() string { + return r.raw +} + +// Status of the hostname's activation. +type CustomHostnameEditResponseStatus string + +const ( + CustomHostnameEditResponseStatusActive CustomHostnameEditResponseStatus = "active" + CustomHostnameEditResponseStatusPending CustomHostnameEditResponseStatus = "pending" + CustomHostnameEditResponseStatusActiveRedeploying CustomHostnameEditResponseStatus = "active_redeploying" + CustomHostnameEditResponseStatusMoved CustomHostnameEditResponseStatus = "moved" + CustomHostnameEditResponseStatusPendingDeletion CustomHostnameEditResponseStatus = "pending_deletion" + CustomHostnameEditResponseStatusDeleted CustomHostnameEditResponseStatus = "deleted" + CustomHostnameEditResponseStatusPendingBlocked CustomHostnameEditResponseStatus = "pending_blocked" + CustomHostnameEditResponseStatusPendingMigration CustomHostnameEditResponseStatus = "pending_migration" + CustomHostnameEditResponseStatusPendingProvisioned CustomHostnameEditResponseStatus = "pending_provisioned" + CustomHostnameEditResponseStatusTestPending CustomHostnameEditResponseStatus = "test_pending" + CustomHostnameEditResponseStatusTestActive CustomHostnameEditResponseStatus = "test_active" + CustomHostnameEditResponseStatusTestActiveApex CustomHostnameEditResponseStatus = "test_active_apex" + CustomHostnameEditResponseStatusTestBlocked CustomHostnameEditResponseStatus = "test_blocked" + CustomHostnameEditResponseStatusTestFailed CustomHostnameEditResponseStatus = "test_failed" + CustomHostnameEditResponseStatusProvisioned CustomHostnameEditResponseStatus = "provisioned" + CustomHostnameEditResponseStatusBlocked CustomHostnameEditResponseStatus = "blocked" +) + +func (r CustomHostnameEditResponseStatus) IsKnown() bool { + switch r { + case CustomHostnameEditResponseStatusActive, CustomHostnameEditResponseStatusPending, CustomHostnameEditResponseStatusActiveRedeploying, CustomHostnameEditResponseStatusMoved, CustomHostnameEditResponseStatusPendingDeletion, CustomHostnameEditResponseStatusDeleted, CustomHostnameEditResponseStatusPendingBlocked, CustomHostnameEditResponseStatusPendingMigration, CustomHostnameEditResponseStatusPendingProvisioned, CustomHostnameEditResponseStatusTestPending, CustomHostnameEditResponseStatusTestActive, CustomHostnameEditResponseStatusTestActiveApex, CustomHostnameEditResponseStatusTestBlocked, CustomHostnameEditResponseStatusTestFailed, CustomHostnameEditResponseStatusProvisioned, CustomHostnameEditResponseStatusBlocked: + return true + } + return false +} + type CustomHostnameGetResponse struct { // Identifier ID string `json:"id,required"` // The custom hostname that will point to your hostname via CNAME. Hostname string `json:"hostname,required"` // SSL properties for the custom hostname. - SSL CustomHostnameGetResponseSSL `json:"ssl,required"` - JSON customHostnameGetResponseJSON `json:"-"` + SSL CustomHostnameGetResponseSSL `json:"ssl,required"` + // This is the time the hostname was created. + CreatedAt time.Time `json:"created_at" format:"date-time"` + // These are per-hostname (customer) settings. + CustomMetadata CustomHostnameGetResponseCustomMetadata `json:"custom_metadata"` + // a valid hostname that’s been added to your DNS zone as an A, AAAA, or CNAME + // record. + CustomOriginServer string `json:"custom_origin_server"` + // A hostname that will be sent to your custom origin server as SNI for TLS + // handshake. This can be a valid subdomain of the zone or custom origin server + // name or the string ':request_host_header:' which will cause the host header in + // the request to be used as SNI. Not configurable with default/fallback origin + // server. + CustomOriginSni string `json:"custom_origin_sni"` + // This is a record which can be placed to activate a hostname. + OwnershipVerification CustomHostnameGetResponseOwnershipVerification `json:"ownership_verification"` + // This presents the token to be served by the given http url to activate a + // hostname. + OwnershipVerificationHTTP CustomHostnameGetResponseOwnershipVerificationHTTP `json:"ownership_verification_http"` + // Status of the hostname's activation. + Status CustomHostnameGetResponseStatus `json:"status"` + // These are errors that were encountered while trying to activate a hostname. + VerificationErrors []interface{} `json:"verification_errors"` + JSON customHostnameGetResponseJSON `json:"-"` } // customHostnameGetResponseJSON contains the JSON metadata for the struct // [CustomHostnameGetResponse] type customHostnameGetResponseJSON struct { - ID apijson.Field - Hostname apijson.Field - SSL apijson.Field - raw string - ExtraFields map[string]apijson.Field + ID apijson.Field + Hostname apijson.Field + SSL apijson.Field + CreatedAt apijson.Field + CustomMetadata apijson.Field + CustomOriginServer apijson.Field + CustomOriginSni apijson.Field + OwnershipVerification apijson.Field + OwnershipVerificationHTTP apijson.Field + Status apijson.Field + VerificationErrors apijson.Field + raw string + ExtraFields map[string]apijson.Field } func (r *CustomHostnameGetResponse) UnmarshalJSON(data []byte) (err error) { @@ -1488,6 +1983,131 @@ func (r customHostnameGetResponseSSLValidationRecordJSON) RawJSON() string { return r.raw } +// These are per-hostname (customer) settings. +type CustomHostnameGetResponseCustomMetadata struct { + // Unique metadata for this hostname. + Key string `json:"key"` + JSON customHostnameGetResponseCustomMetadataJSON `json:"-"` +} + +// customHostnameGetResponseCustomMetadataJSON contains the JSON metadata for the +// struct [CustomHostnameGetResponseCustomMetadata] +type customHostnameGetResponseCustomMetadataJSON struct { + Key apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *CustomHostnameGetResponseCustomMetadata) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r customHostnameGetResponseCustomMetadataJSON) RawJSON() string { + return r.raw +} + +// This is a record which can be placed to activate a hostname. +type CustomHostnameGetResponseOwnershipVerification struct { + // DNS Name for record. + Name string `json:"name"` + // DNS Record type. + Type CustomHostnameGetResponseOwnershipVerificationType `json:"type"` + // Content for the record. + Value string `json:"value"` + JSON customHostnameGetResponseOwnershipVerificationJSON `json:"-"` +} + +// customHostnameGetResponseOwnershipVerificationJSON contains the JSON metadata +// for the struct [CustomHostnameGetResponseOwnershipVerification] +type customHostnameGetResponseOwnershipVerificationJSON struct { + Name apijson.Field + Type apijson.Field + Value apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *CustomHostnameGetResponseOwnershipVerification) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r customHostnameGetResponseOwnershipVerificationJSON) RawJSON() string { + return r.raw +} + +// DNS Record type. +type CustomHostnameGetResponseOwnershipVerificationType string + +const ( + CustomHostnameGetResponseOwnershipVerificationTypeTXT CustomHostnameGetResponseOwnershipVerificationType = "txt" +) + +func (r CustomHostnameGetResponseOwnershipVerificationType) IsKnown() bool { + switch r { + case CustomHostnameGetResponseOwnershipVerificationTypeTXT: + return true + } + return false +} + +// This presents the token to be served by the given http url to activate a +// hostname. +type CustomHostnameGetResponseOwnershipVerificationHTTP struct { + // Token to be served. + HTTPBody string `json:"http_body"` + // The HTTP URL that will be checked during custom hostname verification and where + // the customer should host the token. + HTTPURL string `json:"http_url"` + JSON customHostnameGetResponseOwnershipVerificationHTTPJSON `json:"-"` +} + +// customHostnameGetResponseOwnershipVerificationHTTPJSON contains the JSON +// metadata for the struct [CustomHostnameGetResponseOwnershipVerificationHTTP] +type customHostnameGetResponseOwnershipVerificationHTTPJSON struct { + HTTPBody apijson.Field + HTTPURL apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *CustomHostnameGetResponseOwnershipVerificationHTTP) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r customHostnameGetResponseOwnershipVerificationHTTPJSON) RawJSON() string { + return r.raw +} + +// Status of the hostname's activation. +type CustomHostnameGetResponseStatus string + +const ( + CustomHostnameGetResponseStatusActive CustomHostnameGetResponseStatus = "active" + CustomHostnameGetResponseStatusPending CustomHostnameGetResponseStatus = "pending" + CustomHostnameGetResponseStatusActiveRedeploying CustomHostnameGetResponseStatus = "active_redeploying" + CustomHostnameGetResponseStatusMoved CustomHostnameGetResponseStatus = "moved" + CustomHostnameGetResponseStatusPendingDeletion CustomHostnameGetResponseStatus = "pending_deletion" + CustomHostnameGetResponseStatusDeleted CustomHostnameGetResponseStatus = "deleted" + CustomHostnameGetResponseStatusPendingBlocked CustomHostnameGetResponseStatus = "pending_blocked" + CustomHostnameGetResponseStatusPendingMigration CustomHostnameGetResponseStatus = "pending_migration" + CustomHostnameGetResponseStatusPendingProvisioned CustomHostnameGetResponseStatus = "pending_provisioned" + CustomHostnameGetResponseStatusTestPending CustomHostnameGetResponseStatus = "test_pending" + CustomHostnameGetResponseStatusTestActive CustomHostnameGetResponseStatus = "test_active" + CustomHostnameGetResponseStatusTestActiveApex CustomHostnameGetResponseStatus = "test_active_apex" + CustomHostnameGetResponseStatusTestBlocked CustomHostnameGetResponseStatus = "test_blocked" + CustomHostnameGetResponseStatusTestFailed CustomHostnameGetResponseStatus = "test_failed" + CustomHostnameGetResponseStatusProvisioned CustomHostnameGetResponseStatus = "provisioned" + CustomHostnameGetResponseStatusBlocked CustomHostnameGetResponseStatus = "blocked" +) + +func (r CustomHostnameGetResponseStatus) IsKnown() bool { + switch r { + case CustomHostnameGetResponseStatusActive, CustomHostnameGetResponseStatusPending, CustomHostnameGetResponseStatusActiveRedeploying, CustomHostnameGetResponseStatusMoved, CustomHostnameGetResponseStatusPendingDeletion, CustomHostnameGetResponseStatusDeleted, CustomHostnameGetResponseStatusPendingBlocked, CustomHostnameGetResponseStatusPendingMigration, CustomHostnameGetResponseStatusPendingProvisioned, CustomHostnameGetResponseStatusTestPending, CustomHostnameGetResponseStatusTestActive, CustomHostnameGetResponseStatusTestActiveApex, CustomHostnameGetResponseStatusTestBlocked, CustomHostnameGetResponseStatusTestFailed, CustomHostnameGetResponseStatusProvisioned, CustomHostnameGetResponseStatusBlocked: + return true + } + return false +} + type CustomHostnameNewParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` diff --git a/hyperdrive/config_test.go b/hyperdrive/config_test.go index 91cc316d45f..19dfd6b1936 100644 --- a/hyperdrive/config_test.go +++ b/hyperdrive/config_test.go @@ -14,7 +14,7 @@ import ( "github.com/cloudflare/cloudflare-go/v2/option" ) -func TestConfigNew(t *testing.T) { +func TestConfigNewWithOptionalParams(t *testing.T) { t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { @@ -31,10 +31,19 @@ func TestConfigNew(t *testing.T) { _, err := client.Hyperdrive.Configs.New(context.TODO(), hyperdrive.ConfigNewParams{ AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), Hyperdrive: hyperdrive.HyperdriveParam{ + Caching: cloudflare.F(hyperdrive.HyperdriveCachingParam{ + Disabled: cloudflare.F(false), + MaxAge: cloudflare.F(int64(60)), + StaleWhileRevalidate: cloudflare.F(int64(15)), + }), + Name: cloudflare.F("example-hyperdrive"), Origin: cloudflare.F(hyperdrive.ConfigurationParam{ - Password: cloudflare.F("password1234!"), + Database: cloudflare.F("postgres"), + Host: cloudflare.F("database.example.com"), + Port: cloudflare.F(int64(0)), + Scheme: cloudflare.F(hyperdrive.ConfigurationSchemePostgres), + User: cloudflare.F("postgres"), }), - Name: cloudflare.F[any](map[string]interface{}{}), }, }) if err != nil { @@ -46,7 +55,7 @@ func TestConfigNew(t *testing.T) { } } -func TestConfigUpdate(t *testing.T) { +func TestConfigUpdateWithOptionalParams(t *testing.T) { t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { @@ -66,10 +75,19 @@ func TestConfigUpdate(t *testing.T) { hyperdrive.ConfigUpdateParams{ AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), Hyperdrive: hyperdrive.HyperdriveParam{ + Caching: cloudflare.F(hyperdrive.HyperdriveCachingParam{ + Disabled: cloudflare.F(false), + MaxAge: cloudflare.F(int64(60)), + StaleWhileRevalidate: cloudflare.F(int64(15)), + }), + Name: cloudflare.F("example-hyperdrive"), Origin: cloudflare.F(hyperdrive.ConfigurationParam{ - Password: cloudflare.F("password1234!"), + Database: cloudflare.F("postgres"), + Host: cloudflare.F("database.example.com"), + Port: cloudflare.F(int64(0)), + Scheme: cloudflare.F(hyperdrive.ConfigurationSchemePostgres), + User: cloudflare.F("postgres"), }), - Name: cloudflare.F[any](map[string]interface{}{}), }, }, ) @@ -158,8 +176,18 @@ func TestConfigEditWithOptionalParams(t *testing.T) { hyperdrive.ConfigEditParams{ AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), Hyperdrive: hyperdrive.HyperdriveParam{ + Caching: cloudflare.F(hyperdrive.HyperdriveCachingParam{ + Disabled: cloudflare.F(false), + MaxAge: cloudflare.F(int64(60)), + StaleWhileRevalidate: cloudflare.F(int64(15)), + }), + Name: cloudflare.F("example-hyperdrive"), Origin: cloudflare.F(hyperdrive.ConfigurationParam{ - Password: cloudflare.F("password1234!"), + Database: cloudflare.F("postgres"), + Host: cloudflare.F("database.example.com"), + Port: cloudflare.F(int64(0)), + Scheme: cloudflare.F(hyperdrive.ConfigurationSchemePostgres), + User: cloudflare.F("postgres"), }), }, }, diff --git a/internal/shared/union.go b/internal/shared/union.go index 81f6c251540..b1ef3d0ce8a 100644 --- a/internal/shared/union.go +++ b/internal/shared/union.go @@ -66,7 +66,6 @@ func (UnionString) ImplementsFirewallWAFPackageGetResponseFirewallAPIResponseSin func (UnionString) ImplementsFirewallWAFPackageGroupEditResponseUnion() {} func (UnionString) ImplementsFirewallWAFPackageGroupGetResponseUnion() {} func (UnionString) ImplementsFirewallWAFPackageRuleGetResponseUnion() {} -func (UnionString) ImplementsLogpushJobDeleteResponseUnion() {} func (UnionString) ImplementsLogsRayIDGetResponseUnion() {} func (UnionString) ImplementsLogsReceivedGetResponseUnion() {} func (UnionString) ImplementsLogsReceivedGetParamsEndUnion() {} diff --git a/logpush/datasetfield.go b/logpush/datasetfield.go index cbd9333255d..5928d2e80ea 100644 --- a/logpush/datasetfield.go +++ b/logpush/datasetfield.go @@ -65,11 +65,11 @@ type DatasetFieldGetParams struct { } type DatasetFieldGetResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result DatasetFieldGetResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DatasetFieldGetResponseEnvelopeSuccess `json:"success,required"` + Result DatasetFieldGetResponse `json:"result"` JSON datasetFieldGetResponseEnvelopeJSON `json:"-"` } @@ -78,8 +78,8 @@ type DatasetFieldGetResponseEnvelope struct { type datasetFieldGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/logpush/datasetjob.go b/logpush/datasetjob.go index 64746b08f8c..935adf7dfbb 100644 --- a/logpush/datasetjob.go +++ b/logpush/datasetjob.go @@ -63,9 +63,9 @@ type DatasetJobGetParams struct { type DatasetJobGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result []LogpushJob `json:"result,required"` // Whether the API call was successful Success DatasetJobGetResponseEnvelopeSuccess `json:"success,required"` + Result []LogpushJob `json:"result"` JSON datasetJobGetResponseEnvelopeJSON `json:"-"` } @@ -74,8 +74,8 @@ type DatasetJobGetResponseEnvelope struct { type datasetJobGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/logpush/edge.go b/logpush/edge.go index 695af6949f5..6c36a6197d5 100644 --- a/logpush/edge.go +++ b/logpush/edge.go @@ -111,9 +111,9 @@ func (r EdgeNewParams) MarshalJSON() (data []byte, err error) { type EdgeNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result InstantLogpushJob `json:"result,required,nullable"` // Whether the API call was successful Success EdgeNewResponseEnvelopeSuccess `json:"success,required"` + Result InstantLogpushJob `json:"result,nullable"` JSON edgeNewResponseEnvelopeJSON `json:"-"` } @@ -122,8 +122,8 @@ type EdgeNewResponseEnvelope struct { type edgeNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -159,9 +159,9 @@ type EdgeGetParams struct { type EdgeGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result []InstantLogpushJob `json:"result,required"` // Whether the API call was successful Success EdgeGetResponseEnvelopeSuccess `json:"success,required"` + Result []InstantLogpushJob `json:"result"` JSON edgeGetResponseEnvelopeJSON `json:"-"` } @@ -170,8 +170,8 @@ type EdgeGetResponseEnvelope struct { type edgeGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/logpush/job.go b/logpush/job.go index c1e5a9866c6..fdcec70eb64 100644 --- a/logpush/job.go +++ b/logpush/job.go @@ -6,7 +6,6 @@ import ( "context" "fmt" "net/http" - "reflect" "time" "github.com/cloudflare/cloudflare-go/v2/internal/apijson" @@ -15,7 +14,6 @@ import ( "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" "github.com/cloudflare/cloudflare-go/v2/internal/shared" "github.com/cloudflare/cloudflare-go/v2/option" - "github.com/tidwall/gjson" ) // JobService contains methods and other services that help with interacting with @@ -112,7 +110,7 @@ func (r *JobService) ListAutoPaging(ctx context.Context, query JobListParams, op } // Deletes a Logpush job. -func (r *JobService) Delete(ctx context.Context, jobID int64, params JobDeleteParams, opts ...option.RequestOption) (res *JobDeleteResponseUnion, err error) { +func (r *JobService) Delete(ctx context.Context, jobID int64, params JobDeleteParams, opts ...option.RequestOption) (res *JobDeleteResponse, err error) { opts = append(r.Options[:], opts...) var env JobDeleteResponseEnvelope var accountOrZone string @@ -388,30 +386,7 @@ func (r OutputOptionsParam) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -// Union satisfied by [logpush.JobDeleteResponseUnknown], -// [logpush.JobDeleteResponseArray] or [shared.UnionString]. -type JobDeleteResponseUnion interface { - ImplementsLogpushJobDeleteResponseUnion() -} - -func init() { - apijson.RegisterUnion( - reflect.TypeOf((*JobDeleteResponseUnion)(nil)).Elem(), - "", - apijson.UnionVariant{ - TypeFilter: gjson.JSON, - Type: reflect.TypeOf(JobDeleteResponseArray{}), - }, - apijson.UnionVariant{ - TypeFilter: gjson.String, - Type: reflect.TypeOf(shared.UnionString("")), - }, - ) -} - -type JobDeleteResponseArray []interface{} - -func (r JobDeleteResponseArray) ImplementsLogpushJobDeleteResponseUnion() {} +type JobDeleteResponse = interface{} type JobNewParams struct { // Uniquely identifies a resource (such as an s3 bucket) where data will be pushed. @@ -472,9 +447,9 @@ func (r JobNewParamsFrequency) IsKnown() bool { type JobNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result LogpushJob `json:"result,required,nullable"` // Whether the API call was successful Success JobNewResponseEnvelopeSuccess `json:"success,required"` + Result LogpushJob `json:"result,nullable"` JSON jobNewResponseEnvelopeJSON `json:"-"` } @@ -483,8 +458,8 @@ type JobNewResponseEnvelope struct { type jobNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -565,9 +540,9 @@ func (r JobUpdateParamsFrequency) IsKnown() bool { type JobUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result LogpushJob `json:"result,required,nullable"` // Whether the API call was successful Success JobUpdateResponseEnvelopeSuccess `json:"success,required"` + Result LogpushJob `json:"result,nullable"` JSON jobUpdateResponseEnvelopeJSON `json:"-"` } @@ -576,8 +551,8 @@ type JobUpdateResponseEnvelope struct { type jobUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -625,11 +600,11 @@ func (r JobDeleteParams) MarshalJSON() (data []byte, err error) { } type JobDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result JobDeleteResponseUnion `json:"result,required,nullable"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success JobDeleteResponseEnvelopeSuccess `json:"success,required"` + Result JobDeleteResponse `json:"result,nullable"` JSON jobDeleteResponseEnvelopeJSON `json:"-"` } @@ -638,8 +613,8 @@ type JobDeleteResponseEnvelope struct { type jobDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -677,9 +652,9 @@ type JobGetParams struct { type JobGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result LogpushJob `json:"result,required,nullable"` // Whether the API call was successful Success JobGetResponseEnvelopeSuccess `json:"success,required"` + Result LogpushJob `json:"result,nullable"` JSON jobGetResponseEnvelopeJSON `json:"-"` } @@ -688,8 +663,8 @@ type JobGetResponseEnvelope struct { type jobGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/logpush/ownership.go b/logpush/ownership.go index f9dacc22297..b42013b6e5b 100644 --- a/logpush/ownership.go +++ b/logpush/ownership.go @@ -139,9 +139,9 @@ func (r OwnershipNewParams) MarshalJSON() (data []byte, err error) { type OwnershipNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result OwnershipNewResponse `json:"result,required,nullable"` // Whether the API call was successful Success OwnershipNewResponseEnvelopeSuccess `json:"success,required"` + Result OwnershipNewResponse `json:"result,nullable"` JSON ownershipNewResponseEnvelopeJSON `json:"-"` } @@ -150,8 +150,8 @@ type OwnershipNewResponseEnvelope struct { type ownershipNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -199,9 +199,9 @@ func (r OwnershipValidateParams) MarshalJSON() (data []byte, err error) { type OwnershipValidateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result OwnershipValidation `json:"result,required,nullable"` // Whether the API call was successful Success OwnershipValidateResponseEnvelopeSuccess `json:"success,required"` + Result OwnershipValidation `json:"result,nullable"` JSON ownershipValidateResponseEnvelopeJSON `json:"-"` } @@ -210,8 +210,8 @@ type OwnershipValidateResponseEnvelope struct { type ownershipValidateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/logpush/validate.go b/logpush/validate.go index 4f94b6c22b7..0c8c8640ed3 100644 --- a/logpush/validate.go +++ b/logpush/validate.go @@ -135,11 +135,11 @@ func (r ValidateDestinationParams) MarshalJSON() (data []byte, err error) { } type ValidateDestinationResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result ValidateDestinationResponse `json:"result,required,nullable"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success ValidateDestinationResponseEnvelopeSuccess `json:"success,required"` + Result ValidateDestinationResponse `json:"result,nullable"` JSON validateDestinationResponseEnvelopeJSON `json:"-"` } @@ -148,8 +148,8 @@ type ValidateDestinationResponseEnvelope struct { type validateDestinationResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -195,11 +195,11 @@ func (r ValidateOriginParams) MarshalJSON() (data []byte, err error) { } type ValidateOriginResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result ValidateOriginResponse `json:"result,required,nullable"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success ValidateOriginResponseEnvelopeSuccess `json:"success,required"` + Result ValidateOriginResponse `json:"result,nullable"` JSON validateOriginResponseEnvelopeJSON `json:"-"` } @@ -208,8 +208,8 @@ type ValidateOriginResponseEnvelope struct { type validateOriginResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } From dc7ff768bb1bf424f9b96c164db9e3cfc9d8ef15 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Apr 2024 19:03:56 +0000 Subject: [PATCH 24/52] feat(api): OpenAPI spec update via Stainless API (#1807) --- api.md | 4 ++-- internal/shared/union.go | 1 + logpush/datasetfield.go | 8 +++---- logpush/datasetjob.go | 4 ++-- logpush/edge.go | 8 +++---- logpush/job.go | 49 ++++++++++++++++++++++++++++++---------- logpush/ownership.go | 8 +++---- logpush/validate.go | 16 ++++++------- 8 files changed, 62 insertions(+), 36 deletions(-) diff --git a/api.md b/api.md index e0b5448113a..d7b41e52b06 100644 --- a/api.md +++ b/api.md @@ -1929,14 +1929,14 @@ Response Types: - logpush.LogpushJob - logpush.OutputOptions -- logpush.JobDeleteResponse +- logpush.JobDeleteResponseUnion Methods: - client.Logpush.Jobs.New(ctx context.Context, params logpush.JobNewParams) (logpush.LogpushJob, error) - client.Logpush.Jobs.Update(ctx context.Context, jobID int64, params logpush.JobUpdateParams) (logpush.LogpushJob, error) - client.Logpush.Jobs.List(ctx context.Context, query logpush.JobListParams) (pagination.SinglePage[logpush.LogpushJob], error) -- client.Logpush.Jobs.Delete(ctx context.Context, jobID int64, params logpush.JobDeleteParams) (logpush.JobDeleteResponse, error) +- client.Logpush.Jobs.Delete(ctx context.Context, jobID int64, params logpush.JobDeleteParams) (logpush.JobDeleteResponseUnion, error) - client.Logpush.Jobs.Get(ctx context.Context, jobID int64, query logpush.JobGetParams) (logpush.LogpushJob, error) ## Ownership diff --git a/internal/shared/union.go b/internal/shared/union.go index b1ef3d0ce8a..81f6c251540 100644 --- a/internal/shared/union.go +++ b/internal/shared/union.go @@ -66,6 +66,7 @@ func (UnionString) ImplementsFirewallWAFPackageGetResponseFirewallAPIResponseSin func (UnionString) ImplementsFirewallWAFPackageGroupEditResponseUnion() {} func (UnionString) ImplementsFirewallWAFPackageGroupGetResponseUnion() {} func (UnionString) ImplementsFirewallWAFPackageRuleGetResponseUnion() {} +func (UnionString) ImplementsLogpushJobDeleteResponseUnion() {} func (UnionString) ImplementsLogsRayIDGetResponseUnion() {} func (UnionString) ImplementsLogsReceivedGetResponseUnion() {} func (UnionString) ImplementsLogsReceivedGetParamsEndUnion() {} diff --git a/logpush/datasetfield.go b/logpush/datasetfield.go index 5928d2e80ea..cbd9333255d 100644 --- a/logpush/datasetfield.go +++ b/logpush/datasetfield.go @@ -65,11 +65,11 @@ type DatasetFieldGetParams struct { } type DatasetFieldGetResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + Result DatasetFieldGetResponse `json:"result,required"` // Whether the API call was successful Success DatasetFieldGetResponseEnvelopeSuccess `json:"success,required"` - Result DatasetFieldGetResponse `json:"result"` JSON datasetFieldGetResponseEnvelopeJSON `json:"-"` } @@ -78,8 +78,8 @@ type DatasetFieldGetResponseEnvelope struct { type datasetFieldGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/logpush/datasetjob.go b/logpush/datasetjob.go index 935adf7dfbb..64746b08f8c 100644 --- a/logpush/datasetjob.go +++ b/logpush/datasetjob.go @@ -63,9 +63,9 @@ type DatasetJobGetParams struct { type DatasetJobGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` + Result []LogpushJob `json:"result,required"` // Whether the API call was successful Success DatasetJobGetResponseEnvelopeSuccess `json:"success,required"` - Result []LogpushJob `json:"result"` JSON datasetJobGetResponseEnvelopeJSON `json:"-"` } @@ -74,8 +74,8 @@ type DatasetJobGetResponseEnvelope struct { type datasetJobGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/logpush/edge.go b/logpush/edge.go index 6c36a6197d5..695af6949f5 100644 --- a/logpush/edge.go +++ b/logpush/edge.go @@ -111,9 +111,9 @@ func (r EdgeNewParams) MarshalJSON() (data []byte, err error) { type EdgeNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` + Result InstantLogpushJob `json:"result,required,nullable"` // Whether the API call was successful Success EdgeNewResponseEnvelopeSuccess `json:"success,required"` - Result InstantLogpushJob `json:"result,nullable"` JSON edgeNewResponseEnvelopeJSON `json:"-"` } @@ -122,8 +122,8 @@ type EdgeNewResponseEnvelope struct { type edgeNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -159,9 +159,9 @@ type EdgeGetParams struct { type EdgeGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` + Result []InstantLogpushJob `json:"result,required"` // Whether the API call was successful Success EdgeGetResponseEnvelopeSuccess `json:"success,required"` - Result []InstantLogpushJob `json:"result"` JSON edgeGetResponseEnvelopeJSON `json:"-"` } @@ -170,8 +170,8 @@ type EdgeGetResponseEnvelope struct { type edgeGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/logpush/job.go b/logpush/job.go index fdcec70eb64..c1e5a9866c6 100644 --- a/logpush/job.go +++ b/logpush/job.go @@ -6,6 +6,7 @@ import ( "context" "fmt" "net/http" + "reflect" "time" "github.com/cloudflare/cloudflare-go/v2/internal/apijson" @@ -14,6 +15,7 @@ import ( "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" "github.com/cloudflare/cloudflare-go/v2/internal/shared" "github.com/cloudflare/cloudflare-go/v2/option" + "github.com/tidwall/gjson" ) // JobService contains methods and other services that help with interacting with @@ -110,7 +112,7 @@ func (r *JobService) ListAutoPaging(ctx context.Context, query JobListParams, op } // Deletes a Logpush job. -func (r *JobService) Delete(ctx context.Context, jobID int64, params JobDeleteParams, opts ...option.RequestOption) (res *JobDeleteResponse, err error) { +func (r *JobService) Delete(ctx context.Context, jobID int64, params JobDeleteParams, opts ...option.RequestOption) (res *JobDeleteResponseUnion, err error) { opts = append(r.Options[:], opts...) var env JobDeleteResponseEnvelope var accountOrZone string @@ -386,7 +388,30 @@ func (r OutputOptionsParam) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -type JobDeleteResponse = interface{} +// Union satisfied by [logpush.JobDeleteResponseUnknown], +// [logpush.JobDeleteResponseArray] or [shared.UnionString]. +type JobDeleteResponseUnion interface { + ImplementsLogpushJobDeleteResponseUnion() +} + +func init() { + apijson.RegisterUnion( + reflect.TypeOf((*JobDeleteResponseUnion)(nil)).Elem(), + "", + apijson.UnionVariant{ + TypeFilter: gjson.JSON, + Type: reflect.TypeOf(JobDeleteResponseArray{}), + }, + apijson.UnionVariant{ + TypeFilter: gjson.String, + Type: reflect.TypeOf(shared.UnionString("")), + }, + ) +} + +type JobDeleteResponseArray []interface{} + +func (r JobDeleteResponseArray) ImplementsLogpushJobDeleteResponseUnion() {} type JobNewParams struct { // Uniquely identifies a resource (such as an s3 bucket) where data will be pushed. @@ -447,9 +472,9 @@ func (r JobNewParamsFrequency) IsKnown() bool { type JobNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` + Result LogpushJob `json:"result,required,nullable"` // Whether the API call was successful Success JobNewResponseEnvelopeSuccess `json:"success,required"` - Result LogpushJob `json:"result,nullable"` JSON jobNewResponseEnvelopeJSON `json:"-"` } @@ -458,8 +483,8 @@ type JobNewResponseEnvelope struct { type jobNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -540,9 +565,9 @@ func (r JobUpdateParamsFrequency) IsKnown() bool { type JobUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` + Result LogpushJob `json:"result,required,nullable"` // Whether the API call was successful Success JobUpdateResponseEnvelopeSuccess `json:"success,required"` - Result LogpushJob `json:"result,nullable"` JSON jobUpdateResponseEnvelopeJSON `json:"-"` } @@ -551,8 +576,8 @@ type JobUpdateResponseEnvelope struct { type jobUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -600,11 +625,11 @@ func (r JobDeleteParams) MarshalJSON() (data []byte, err error) { } type JobDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + Result JobDeleteResponseUnion `json:"result,required,nullable"` // Whether the API call was successful Success JobDeleteResponseEnvelopeSuccess `json:"success,required"` - Result JobDeleteResponse `json:"result,nullable"` JSON jobDeleteResponseEnvelopeJSON `json:"-"` } @@ -613,8 +638,8 @@ type JobDeleteResponseEnvelope struct { type jobDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -652,9 +677,9 @@ type JobGetParams struct { type JobGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` + Result LogpushJob `json:"result,required,nullable"` // Whether the API call was successful Success JobGetResponseEnvelopeSuccess `json:"success,required"` - Result LogpushJob `json:"result,nullable"` JSON jobGetResponseEnvelopeJSON `json:"-"` } @@ -663,8 +688,8 @@ type JobGetResponseEnvelope struct { type jobGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/logpush/ownership.go b/logpush/ownership.go index b42013b6e5b..f9dacc22297 100644 --- a/logpush/ownership.go +++ b/logpush/ownership.go @@ -139,9 +139,9 @@ func (r OwnershipNewParams) MarshalJSON() (data []byte, err error) { type OwnershipNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` + Result OwnershipNewResponse `json:"result,required,nullable"` // Whether the API call was successful Success OwnershipNewResponseEnvelopeSuccess `json:"success,required"` - Result OwnershipNewResponse `json:"result,nullable"` JSON ownershipNewResponseEnvelopeJSON `json:"-"` } @@ -150,8 +150,8 @@ type OwnershipNewResponseEnvelope struct { type ownershipNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -199,9 +199,9 @@ func (r OwnershipValidateParams) MarshalJSON() (data []byte, err error) { type OwnershipValidateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` + Result OwnershipValidation `json:"result,required,nullable"` // Whether the API call was successful Success OwnershipValidateResponseEnvelopeSuccess `json:"success,required"` - Result OwnershipValidation `json:"result,nullable"` JSON ownershipValidateResponseEnvelopeJSON `json:"-"` } @@ -210,8 +210,8 @@ type OwnershipValidateResponseEnvelope struct { type ownershipValidateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/logpush/validate.go b/logpush/validate.go index 0c8c8640ed3..4f94b6c22b7 100644 --- a/logpush/validate.go +++ b/logpush/validate.go @@ -135,11 +135,11 @@ func (r ValidateDestinationParams) MarshalJSON() (data []byte, err error) { } type ValidateDestinationResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + Result ValidateDestinationResponse `json:"result,required,nullable"` // Whether the API call was successful Success ValidateDestinationResponseEnvelopeSuccess `json:"success,required"` - Result ValidateDestinationResponse `json:"result,nullable"` JSON validateDestinationResponseEnvelopeJSON `json:"-"` } @@ -148,8 +148,8 @@ type ValidateDestinationResponseEnvelope struct { type validateDestinationResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -195,11 +195,11 @@ func (r ValidateOriginParams) MarshalJSON() (data []byte, err error) { } type ValidateOriginResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + Result ValidateOriginResponse `json:"result,required,nullable"` // Whether the API call was successful Success ValidateOriginResponseEnvelopeSuccess `json:"success,required"` - Result ValidateOriginResponse `json:"result,nullable"` JSON validateOriginResponseEnvelopeJSON `json:"-"` } @@ -208,8 +208,8 @@ type ValidateOriginResponseEnvelope struct { type validateOriginResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Success apijson.Field Result apijson.Field + Success apijson.Field raw string ExtraFields map[string]apijson.Field } From eb3189de6c671b07769d53b5acccc6f8ae4572d3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Apr 2024 19:12:17 +0000 Subject: [PATCH 25/52] feat(api): OpenAPI spec update via Stainless API (#1808) --- api.md | 4 ++-- internal/shared/union.go | 1 - logpush/datasetfield.go | 8 +++---- logpush/datasetjob.go | 4 ++-- logpush/edge.go | 8 +++---- logpush/job.go | 49 ++++++++++------------------------------ logpush/ownership.go | 8 +++---- logpush/validate.go | 16 ++++++------- 8 files changed, 36 insertions(+), 62 deletions(-) diff --git a/api.md b/api.md index d7b41e52b06..e0b5448113a 100644 --- a/api.md +++ b/api.md @@ -1929,14 +1929,14 @@ Response Types: - logpush.LogpushJob - logpush.OutputOptions -- logpush.JobDeleteResponseUnion +- logpush.JobDeleteResponse Methods: - client.Logpush.Jobs.New(ctx context.Context, params logpush.JobNewParams) (logpush.LogpushJob, error) - client.Logpush.Jobs.Update(ctx context.Context, jobID int64, params logpush.JobUpdateParams) (logpush.LogpushJob, error) - client.Logpush.Jobs.List(ctx context.Context, query logpush.JobListParams) (pagination.SinglePage[logpush.LogpushJob], error) -- client.Logpush.Jobs.Delete(ctx context.Context, jobID int64, params logpush.JobDeleteParams) (logpush.JobDeleteResponseUnion, error) +- client.Logpush.Jobs.Delete(ctx context.Context, jobID int64, params logpush.JobDeleteParams) (logpush.JobDeleteResponse, error) - client.Logpush.Jobs.Get(ctx context.Context, jobID int64, query logpush.JobGetParams) (logpush.LogpushJob, error) ## Ownership diff --git a/internal/shared/union.go b/internal/shared/union.go index 81f6c251540..b1ef3d0ce8a 100644 --- a/internal/shared/union.go +++ b/internal/shared/union.go @@ -66,7 +66,6 @@ func (UnionString) ImplementsFirewallWAFPackageGetResponseFirewallAPIResponseSin func (UnionString) ImplementsFirewallWAFPackageGroupEditResponseUnion() {} func (UnionString) ImplementsFirewallWAFPackageGroupGetResponseUnion() {} func (UnionString) ImplementsFirewallWAFPackageRuleGetResponseUnion() {} -func (UnionString) ImplementsLogpushJobDeleteResponseUnion() {} func (UnionString) ImplementsLogsRayIDGetResponseUnion() {} func (UnionString) ImplementsLogsReceivedGetResponseUnion() {} func (UnionString) ImplementsLogsReceivedGetParamsEndUnion() {} diff --git a/logpush/datasetfield.go b/logpush/datasetfield.go index cbd9333255d..5928d2e80ea 100644 --- a/logpush/datasetfield.go +++ b/logpush/datasetfield.go @@ -65,11 +65,11 @@ type DatasetFieldGetParams struct { } type DatasetFieldGetResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result DatasetFieldGetResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DatasetFieldGetResponseEnvelopeSuccess `json:"success,required"` + Result DatasetFieldGetResponse `json:"result"` JSON datasetFieldGetResponseEnvelopeJSON `json:"-"` } @@ -78,8 +78,8 @@ type DatasetFieldGetResponseEnvelope struct { type datasetFieldGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/logpush/datasetjob.go b/logpush/datasetjob.go index 64746b08f8c..935adf7dfbb 100644 --- a/logpush/datasetjob.go +++ b/logpush/datasetjob.go @@ -63,9 +63,9 @@ type DatasetJobGetParams struct { type DatasetJobGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result []LogpushJob `json:"result,required"` // Whether the API call was successful Success DatasetJobGetResponseEnvelopeSuccess `json:"success,required"` + Result []LogpushJob `json:"result"` JSON datasetJobGetResponseEnvelopeJSON `json:"-"` } @@ -74,8 +74,8 @@ type DatasetJobGetResponseEnvelope struct { type datasetJobGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/logpush/edge.go b/logpush/edge.go index 695af6949f5..6c36a6197d5 100644 --- a/logpush/edge.go +++ b/logpush/edge.go @@ -111,9 +111,9 @@ func (r EdgeNewParams) MarshalJSON() (data []byte, err error) { type EdgeNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result InstantLogpushJob `json:"result,required,nullable"` // Whether the API call was successful Success EdgeNewResponseEnvelopeSuccess `json:"success,required"` + Result InstantLogpushJob `json:"result,nullable"` JSON edgeNewResponseEnvelopeJSON `json:"-"` } @@ -122,8 +122,8 @@ type EdgeNewResponseEnvelope struct { type edgeNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -159,9 +159,9 @@ type EdgeGetParams struct { type EdgeGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result []InstantLogpushJob `json:"result,required"` // Whether the API call was successful Success EdgeGetResponseEnvelopeSuccess `json:"success,required"` + Result []InstantLogpushJob `json:"result"` JSON edgeGetResponseEnvelopeJSON `json:"-"` } @@ -170,8 +170,8 @@ type EdgeGetResponseEnvelope struct { type edgeGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/logpush/job.go b/logpush/job.go index c1e5a9866c6..fdcec70eb64 100644 --- a/logpush/job.go +++ b/logpush/job.go @@ -6,7 +6,6 @@ import ( "context" "fmt" "net/http" - "reflect" "time" "github.com/cloudflare/cloudflare-go/v2/internal/apijson" @@ -15,7 +14,6 @@ import ( "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" "github.com/cloudflare/cloudflare-go/v2/internal/shared" "github.com/cloudflare/cloudflare-go/v2/option" - "github.com/tidwall/gjson" ) // JobService contains methods and other services that help with interacting with @@ -112,7 +110,7 @@ func (r *JobService) ListAutoPaging(ctx context.Context, query JobListParams, op } // Deletes a Logpush job. -func (r *JobService) Delete(ctx context.Context, jobID int64, params JobDeleteParams, opts ...option.RequestOption) (res *JobDeleteResponseUnion, err error) { +func (r *JobService) Delete(ctx context.Context, jobID int64, params JobDeleteParams, opts ...option.RequestOption) (res *JobDeleteResponse, err error) { opts = append(r.Options[:], opts...) var env JobDeleteResponseEnvelope var accountOrZone string @@ -388,30 +386,7 @@ func (r OutputOptionsParam) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -// Union satisfied by [logpush.JobDeleteResponseUnknown], -// [logpush.JobDeleteResponseArray] or [shared.UnionString]. -type JobDeleteResponseUnion interface { - ImplementsLogpushJobDeleteResponseUnion() -} - -func init() { - apijson.RegisterUnion( - reflect.TypeOf((*JobDeleteResponseUnion)(nil)).Elem(), - "", - apijson.UnionVariant{ - TypeFilter: gjson.JSON, - Type: reflect.TypeOf(JobDeleteResponseArray{}), - }, - apijson.UnionVariant{ - TypeFilter: gjson.String, - Type: reflect.TypeOf(shared.UnionString("")), - }, - ) -} - -type JobDeleteResponseArray []interface{} - -func (r JobDeleteResponseArray) ImplementsLogpushJobDeleteResponseUnion() {} +type JobDeleteResponse = interface{} type JobNewParams struct { // Uniquely identifies a resource (such as an s3 bucket) where data will be pushed. @@ -472,9 +447,9 @@ func (r JobNewParamsFrequency) IsKnown() bool { type JobNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result LogpushJob `json:"result,required,nullable"` // Whether the API call was successful Success JobNewResponseEnvelopeSuccess `json:"success,required"` + Result LogpushJob `json:"result,nullable"` JSON jobNewResponseEnvelopeJSON `json:"-"` } @@ -483,8 +458,8 @@ type JobNewResponseEnvelope struct { type jobNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -565,9 +540,9 @@ func (r JobUpdateParamsFrequency) IsKnown() bool { type JobUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result LogpushJob `json:"result,required,nullable"` // Whether the API call was successful Success JobUpdateResponseEnvelopeSuccess `json:"success,required"` + Result LogpushJob `json:"result,nullable"` JSON jobUpdateResponseEnvelopeJSON `json:"-"` } @@ -576,8 +551,8 @@ type JobUpdateResponseEnvelope struct { type jobUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -625,11 +600,11 @@ func (r JobDeleteParams) MarshalJSON() (data []byte, err error) { } type JobDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result JobDeleteResponseUnion `json:"result,required,nullable"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success JobDeleteResponseEnvelopeSuccess `json:"success,required"` + Result JobDeleteResponse `json:"result,nullable"` JSON jobDeleteResponseEnvelopeJSON `json:"-"` } @@ -638,8 +613,8 @@ type JobDeleteResponseEnvelope struct { type jobDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -677,9 +652,9 @@ type JobGetParams struct { type JobGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result LogpushJob `json:"result,required,nullable"` // Whether the API call was successful Success JobGetResponseEnvelopeSuccess `json:"success,required"` + Result LogpushJob `json:"result,nullable"` JSON jobGetResponseEnvelopeJSON `json:"-"` } @@ -688,8 +663,8 @@ type JobGetResponseEnvelope struct { type jobGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/logpush/ownership.go b/logpush/ownership.go index f9dacc22297..b42013b6e5b 100644 --- a/logpush/ownership.go +++ b/logpush/ownership.go @@ -139,9 +139,9 @@ func (r OwnershipNewParams) MarshalJSON() (data []byte, err error) { type OwnershipNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result OwnershipNewResponse `json:"result,required,nullable"` // Whether the API call was successful Success OwnershipNewResponseEnvelopeSuccess `json:"success,required"` + Result OwnershipNewResponse `json:"result,nullable"` JSON ownershipNewResponseEnvelopeJSON `json:"-"` } @@ -150,8 +150,8 @@ type OwnershipNewResponseEnvelope struct { type ownershipNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -199,9 +199,9 @@ func (r OwnershipValidateParams) MarshalJSON() (data []byte, err error) { type OwnershipValidateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result OwnershipValidation `json:"result,required,nullable"` // Whether the API call was successful Success OwnershipValidateResponseEnvelopeSuccess `json:"success,required"` + Result OwnershipValidation `json:"result,nullable"` JSON ownershipValidateResponseEnvelopeJSON `json:"-"` } @@ -210,8 +210,8 @@ type OwnershipValidateResponseEnvelope struct { type ownershipValidateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/logpush/validate.go b/logpush/validate.go index 4f94b6c22b7..0c8c8640ed3 100644 --- a/logpush/validate.go +++ b/logpush/validate.go @@ -135,11 +135,11 @@ func (r ValidateDestinationParams) MarshalJSON() (data []byte, err error) { } type ValidateDestinationResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result ValidateDestinationResponse `json:"result,required,nullable"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success ValidateDestinationResponseEnvelopeSuccess `json:"success,required"` + Result ValidateDestinationResponse `json:"result,nullable"` JSON validateDestinationResponseEnvelopeJSON `json:"-"` } @@ -148,8 +148,8 @@ type ValidateDestinationResponseEnvelope struct { type validateDestinationResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -195,11 +195,11 @@ func (r ValidateOriginParams) MarshalJSON() (data []byte, err error) { } type ValidateOriginResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result ValidateOriginResponse `json:"result,required,nullable"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success ValidateOriginResponseEnvelopeSuccess `json:"success,required"` + Result ValidateOriginResponse `json:"result,nullable"` JSON validateOriginResponseEnvelopeJSON `json:"-"` } @@ -208,8 +208,8 @@ type ValidateOriginResponseEnvelope struct { type validateOriginResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } From 7832d67b4bca1d1e0c9308897bd2a02c1b3c0532 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Apr 2024 19:13:48 +0000 Subject: [PATCH 26/52] feat(api): OpenAPI spec update via Stainless API (#1809) --- .stats.yml | 2 +- api.md | 28 -- internal/shared/union.go | 1 - vectorize/index.go | 933 --------------------------------------- vectorize/index_test.go | 318 ------------- 5 files changed, 1 insertion(+), 1281 deletions(-) delete mode 100644 vectorize/index_test.go diff --git a/.stats.yml b/.stats.yml index ae473c1891a..0a0068803e8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1 +1 @@ -configured_endpoints: 1259 +configured_endpoints: 1249 diff --git a/api.md b/api.md index e0b5448113a..95928b81faa 100644 --- a/api.md +++ b/api.md @@ -5622,34 +5622,6 @@ Methods: ## Indexes -Params Types: - -- vectorize.IndexDimensionConfigurationParam - -Response Types: - -- vectorize.CreateIndex -- vectorize.IndexDeleteVectorsByID -- vectorize.IndexDimensionConfiguration -- vectorize.IndexInsert -- vectorize.IndexQuery -- vectorize.IndexUpsert -- vectorize.IndexDeleteResponseUnion -- vectorize.IndexGetByIDsResponse - -Methods: - -- client.Vectorize.Indexes.New(ctx context.Context, accountIdentifier string, body vectorize.IndexNewParams) (vectorize.CreateIndex, error) -- client.Vectorize.Indexes.Update(ctx context.Context, accountIdentifier string, indexName string, body vectorize.IndexUpdateParams) (vectorize.CreateIndex, error) -- client.Vectorize.Indexes.List(ctx context.Context, accountIdentifier string) (pagination.SinglePage[vectorize.CreateIndex], error) -- client.Vectorize.Indexes.Delete(ctx context.Context, accountIdentifier string, indexName string) (vectorize.IndexDeleteResponseUnion, error) -- client.Vectorize.Indexes.DeleteByIDs(ctx context.Context, accountIdentifier string, indexName string, body vectorize.IndexDeleteByIDsParams) (vectorize.IndexDeleteVectorsByID, error) -- client.Vectorize.Indexes.Get(ctx context.Context, accountIdentifier string, indexName string) (vectorize.CreateIndex, error) -- client.Vectorize.Indexes.GetByIDs(ctx context.Context, accountIdentifier string, indexName string, body vectorize.IndexGetByIDsParams) (vectorize.IndexGetByIDsResponse, error) -- client.Vectorize.Indexes.Insert(ctx context.Context, accountIdentifier string, indexName string, body vectorize.IndexInsertParams) (vectorize.IndexInsert, error) -- client.Vectorize.Indexes.Query(ctx context.Context, accountIdentifier string, indexName string, body vectorize.IndexQueryParams) (vectorize.IndexQuery, error) -- client.Vectorize.Indexes.Upsert(ctx context.Context, accountIdentifier string, indexName string, body vectorize.IndexUpsertParams) (vectorize.IndexUpsert, error) - # URLScanner Response Types: diff --git a/internal/shared/union.go b/internal/shared/union.go index b1ef3d0ce8a..aef85ca578b 100644 --- a/internal/shared/union.go +++ b/internal/shared/union.go @@ -168,7 +168,6 @@ func (UnionString) ImplementsZeroTrustNetworkVirtualNetworkNewResponseUnion() func (UnionString) ImplementsZeroTrustNetworkVirtualNetworkDeleteResponseUnion() {} func (UnionString) ImplementsZeroTrustNetworkVirtualNetworkEditResponseUnion() {} func (UnionString) ImplementsHyperdriveConfigDeleteResponseUnion() {} -func (UnionString) ImplementsVectorizeIndexDeleteResponseUnion() {} func (UnionString) ImplementsRadarRankingTimeseriesGroupsResponseSerie0Union() {} func (UnionString) ImplementsOriginPostQuantumEncryptionOriginPostQuantumEncryptionUpdateResponseUnion() { } diff --git a/vectorize/index.go b/vectorize/index.go index 45990d230e5..5051ebd824b 100644 --- a/vectorize/index.go +++ b/vectorize/index.go @@ -3,18 +3,7 @@ package vectorize import ( - "context" - "fmt" - "net/http" - "reflect" - - "github.com/cloudflare/cloudflare-go/v2/internal/apijson" - "github.com/cloudflare/cloudflare-go/v2/internal/pagination" - "github.com/cloudflare/cloudflare-go/v2/internal/param" - "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" - "github.com/cloudflare/cloudflare-go/v2/internal/shared" "github.com/cloudflare/cloudflare-go/v2/option" - "github.com/tidwall/gjson" ) // IndexService contains methods and other services that help with interacting with @@ -33,925 +22,3 @@ func NewIndexService(opts ...option.RequestOption) (r *IndexService) { r.Options = opts return } - -// Creates and returns a new Vectorize Index. -func (r *IndexService) New(ctx context.Context, accountIdentifier string, body IndexNewParams, opts ...option.RequestOption) (res *CreateIndex, err error) { - opts = append(r.Options[:], opts...) - var env IndexNewResponseEnvelope - path := fmt.Sprintf("accounts/%s/vectorize/indexes", accountIdentifier) - err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &env, opts...) - if err != nil { - return - } - res = &env.Result - return -} - -// Updates and returns the specified Vectorize Index. -func (r *IndexService) Update(ctx context.Context, accountIdentifier string, indexName string, body IndexUpdateParams, opts ...option.RequestOption) (res *CreateIndex, err error) { - opts = append(r.Options[:], opts...) - var env IndexUpdateResponseEnvelope - path := fmt.Sprintf("accounts/%s/vectorize/indexes/%s", accountIdentifier, indexName) - err = requestconfig.ExecuteNewRequest(ctx, http.MethodPut, path, body, &env, opts...) - if err != nil { - return - } - res = &env.Result - return -} - -// Returns a list of Vectorize Indexes -func (r *IndexService) List(ctx context.Context, accountIdentifier string, opts ...option.RequestOption) (res *pagination.SinglePage[CreateIndex], err error) { - var raw *http.Response - opts = append(r.Options, opts...) - opts = append([]option.RequestOption{option.WithResponseInto(&raw)}, opts...) - path := fmt.Sprintf("accounts/%s/vectorize/indexes", accountIdentifier) - cfg, err := requestconfig.NewRequestConfig(ctx, http.MethodGet, path, nil, &res, opts...) - if err != nil { - return nil, err - } - err = cfg.Execute() - if err != nil { - return nil, err - } - res.SetPageConfig(cfg, raw) - return res, nil -} - -// Returns a list of Vectorize Indexes -func (r *IndexService) ListAutoPaging(ctx context.Context, accountIdentifier string, opts ...option.RequestOption) *pagination.SinglePageAutoPager[CreateIndex] { - return pagination.NewSinglePageAutoPager(r.List(ctx, accountIdentifier, opts...)) -} - -// Deletes the specified Vectorize Index. -func (r *IndexService) Delete(ctx context.Context, accountIdentifier string, indexName string, opts ...option.RequestOption) (res *IndexDeleteResponseUnion, err error) { - opts = append(r.Options[:], opts...) - var env IndexDeleteResponseEnvelope - path := fmt.Sprintf("accounts/%s/vectorize/indexes/%s", accountIdentifier, indexName) - err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, nil, &env, opts...) - if err != nil { - return - } - res = &env.Result - return -} - -// Delete a set of vectors from an index by their vector identifiers. -func (r *IndexService) DeleteByIDs(ctx context.Context, accountIdentifier string, indexName string, body IndexDeleteByIDsParams, opts ...option.RequestOption) (res *IndexDeleteVectorsByID, err error) { - opts = append(r.Options[:], opts...) - var env IndexDeleteByIDsResponseEnvelope - path := fmt.Sprintf("accounts/%s/vectorize/indexes/%s/delete-by-ids", accountIdentifier, indexName) - err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &env, opts...) - if err != nil { - return - } - res = &env.Result - return -} - -// Returns the specified Vectorize Index. -func (r *IndexService) Get(ctx context.Context, accountIdentifier string, indexName string, opts ...option.RequestOption) (res *CreateIndex, err error) { - opts = append(r.Options[:], opts...) - var env IndexGetResponseEnvelope - path := fmt.Sprintf("accounts/%s/vectorize/indexes/%s", accountIdentifier, indexName) - err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...) - if err != nil { - return - } - res = &env.Result - return -} - -// Get a set of vectors from an index by their vector identifiers. -func (r *IndexService) GetByIDs(ctx context.Context, accountIdentifier string, indexName string, body IndexGetByIDsParams, opts ...option.RequestOption) (res *IndexGetByIDsResponse, err error) { - opts = append(r.Options[:], opts...) - var env IndexGetByIDsResponseEnvelope - path := fmt.Sprintf("accounts/%s/vectorize/indexes/%s/get-by-ids", accountIdentifier, indexName) - err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &env, opts...) - if err != nil { - return - } - res = &env.Result - return -} - -// Inserts vectors into the specified index and returns the count of the vectors -// successfully inserted. -func (r *IndexService) Insert(ctx context.Context, accountIdentifier string, indexName string, body IndexInsertParams, opts ...option.RequestOption) (res *IndexInsert, err error) { - opts = append(r.Options[:], opts...) - var env IndexInsertResponseEnvelope - path := fmt.Sprintf("accounts/%s/vectorize/indexes/%s/insert", accountIdentifier, indexName) - err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &env, opts...) - if err != nil { - return - } - res = &env.Result - return -} - -// Finds vectors closest to a given vector in an index. -func (r *IndexService) Query(ctx context.Context, accountIdentifier string, indexName string, body IndexQueryParams, opts ...option.RequestOption) (res *IndexQuery, err error) { - opts = append(r.Options[:], opts...) - var env IndexQueryResponseEnvelope - path := fmt.Sprintf("accounts/%s/vectorize/indexes/%s/query", accountIdentifier, indexName) - err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &env, opts...) - if err != nil { - return - } - res = &env.Result - return -} - -// Upserts vectors into the specified index, creating them if they do not exist and -// returns the count of values and ids successfully inserted. -func (r *IndexService) Upsert(ctx context.Context, accountIdentifier string, indexName string, body IndexUpsertParams, opts ...option.RequestOption) (res *IndexUpsert, err error) { - opts = append(r.Options[:], opts...) - var env IndexUpsertResponseEnvelope - path := fmt.Sprintf("accounts/%s/vectorize/indexes/%s/upsert", accountIdentifier, indexName) - err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &env, opts...) - if err != nil { - return - } - res = &env.Result - return -} - -type CreateIndex struct { - Config IndexDimensionConfiguration `json:"config"` - // Specifies the timestamp the resource was created as an ISO8601 string. - CreatedOn string `json:"created_on"` - // Specifies the description of the index. - Description string `json:"description"` - // Specifies the timestamp the resource was modified as an ISO8601 string. - ModifiedOn string `json:"modified_on"` - Name string `json:"name"` - JSON createIndexJSON `json:"-"` -} - -// createIndexJSON contains the JSON metadata for the struct [CreateIndex] -type createIndexJSON struct { - Config apijson.Field - CreatedOn apijson.Field - Description apijson.Field - ModifiedOn apijson.Field - Name apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *CreateIndex) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r createIndexJSON) RawJSON() string { - return r.raw -} - -type IndexDeleteVectorsByID struct { - // The count of the vectors successfully deleted. - Count int64 `json:"count"` - // Array of vector identifiers of the vectors that were successfully processed for - // deletion. - IDs []string `json:"ids"` - JSON indexDeleteVectorsByIDJSON `json:"-"` -} - -// indexDeleteVectorsByIDJSON contains the JSON metadata for the struct -// [IndexDeleteVectorsByID] -type indexDeleteVectorsByIDJSON struct { - Count apijson.Field - IDs apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *IndexDeleteVectorsByID) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r indexDeleteVectorsByIDJSON) RawJSON() string { - return r.raw -} - -type IndexDimensionConfiguration struct { - // Specifies the number of dimensions for the index - Dimensions int64 `json:"dimensions,required"` - // Specifies the type of metric to use calculating distance. - Metric IndexDimensionConfigurationMetric `json:"metric,required"` - JSON indexDimensionConfigurationJSON `json:"-"` -} - -// indexDimensionConfigurationJSON contains the JSON metadata for the struct -// [IndexDimensionConfiguration] -type indexDimensionConfigurationJSON struct { - Dimensions apijson.Field - Metric apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *IndexDimensionConfiguration) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r indexDimensionConfigurationJSON) RawJSON() string { - return r.raw -} - -// Specifies the type of metric to use calculating distance. -type IndexDimensionConfigurationMetric string - -const ( - IndexDimensionConfigurationMetricCosine IndexDimensionConfigurationMetric = "cosine" - IndexDimensionConfigurationMetricEuclidean IndexDimensionConfigurationMetric = "euclidean" - IndexDimensionConfigurationMetricDotProduct IndexDimensionConfigurationMetric = "dot-product" -) - -func (r IndexDimensionConfigurationMetric) IsKnown() bool { - switch r { - case IndexDimensionConfigurationMetricCosine, IndexDimensionConfigurationMetricEuclidean, IndexDimensionConfigurationMetricDotProduct: - return true - } - return false -} - -type IndexDimensionConfigurationParam struct { - // Specifies the number of dimensions for the index - Dimensions param.Field[int64] `json:"dimensions,required"` - // Specifies the type of metric to use calculating distance. - Metric param.Field[IndexDimensionConfigurationMetric] `json:"metric,required"` -} - -func (r IndexDimensionConfigurationParam) MarshalJSON() (data []byte, err error) { - return apijson.MarshalRoot(r) -} - -func (r IndexDimensionConfigurationParam) implementsVectorizeIndexNewParamsConfigUnion() {} - -type IndexInsert struct { - // Specifies the count of the vectors successfully inserted. - Count int64 `json:"count"` - // Array of vector identifiers of the vectors successfully inserted. - IDs []string `json:"ids"` - JSON indexInsertJSON `json:"-"` -} - -// indexInsertJSON contains the JSON metadata for the struct [IndexInsert] -type indexInsertJSON struct { - Count apijson.Field - IDs apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *IndexInsert) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r indexInsertJSON) RawJSON() string { - return r.raw -} - -type IndexQuery struct { - // Specifies the count of vectors returned by the search - Count int64 `json:"count"` - // Array of vectors matched by the search - Matches []IndexQueryMatch `json:"matches"` - JSON indexQueryJSON `json:"-"` -} - -// indexQueryJSON contains the JSON metadata for the struct [IndexQuery] -type indexQueryJSON struct { - Count apijson.Field - Matches apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *IndexQuery) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r indexQueryJSON) RawJSON() string { - return r.raw -} - -type IndexQueryMatch struct { - // Identifier - ID string `json:"id"` - Metadata interface{} `json:"metadata"` - // The score of the vector according to the index's distance metric - Score float64 `json:"score"` - Values []float64 `json:"values"` - JSON indexQueryMatchJSON `json:"-"` -} - -// indexQueryMatchJSON contains the JSON metadata for the struct [IndexQueryMatch] -type indexQueryMatchJSON struct { - ID apijson.Field - Metadata apijson.Field - Score apijson.Field - Values apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *IndexQueryMatch) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r indexQueryMatchJSON) RawJSON() string { - return r.raw -} - -type IndexUpsert struct { - // Specifies the count of the vectors successfully inserted. - Count int64 `json:"count"` - // Array of vector identifiers of the vectors successfully inserted. - IDs []string `json:"ids"` - JSON indexUpsertJSON `json:"-"` -} - -// indexUpsertJSON contains the JSON metadata for the struct [IndexUpsert] -type indexUpsertJSON struct { - Count apijson.Field - IDs apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *IndexUpsert) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r indexUpsertJSON) RawJSON() string { - return r.raw -} - -// Union satisfied by [vectorize.IndexDeleteResponseUnknown] or -// [shared.UnionString]. -type IndexDeleteResponseUnion interface { - ImplementsVectorizeIndexDeleteResponseUnion() -} - -func init() { - apijson.RegisterUnion( - reflect.TypeOf((*IndexDeleteResponseUnion)(nil)).Elem(), - "", - apijson.UnionVariant{ - TypeFilter: gjson.String, - Type: reflect.TypeOf(shared.UnionString("")), - }, - ) -} - -type IndexGetByIDsResponse = interface{} - -type IndexNewParams struct { - // Specifies the type of configuration to use for the index. - Config param.Field[IndexNewParamsConfigUnion] `json:"config,required"` - Name param.Field[string] `json:"name,required"` - // Specifies the description of the index. - Description param.Field[string] `json:"description"` -} - -func (r IndexNewParams) MarshalJSON() (data []byte, err error) { - return apijson.MarshalRoot(r) -} - -// Specifies the type of configuration to use for the index. -type IndexNewParamsConfig struct { - // Specifies the preset to use for the index. - Preset param.Field[IndexNewParamsConfigPreset] `json:"preset"` - // Specifies the number of dimensions for the index - Dimensions param.Field[int64] `json:"dimensions"` - // Specifies the type of metric to use calculating distance. - Metric param.Field[IndexNewParamsConfigMetric] `json:"metric"` -} - -func (r IndexNewParamsConfig) MarshalJSON() (data []byte, err error) { - return apijson.MarshalRoot(r) -} - -func (r IndexNewParamsConfig) implementsVectorizeIndexNewParamsConfigUnion() {} - -// Specifies the type of configuration to use for the index. -// -// Satisfied by [vectorize.IndexNewParamsConfigVectorizeIndexPresetConfiguration], -// [vectorize.IndexDimensionConfigurationParam], [IndexNewParamsConfig]. -type IndexNewParamsConfigUnion interface { - implementsVectorizeIndexNewParamsConfigUnion() -} - -type IndexNewParamsConfigVectorizeIndexPresetConfiguration struct { - // Specifies the preset to use for the index. - Preset param.Field[IndexNewParamsConfigVectorizeIndexPresetConfigurationPreset] `json:"preset,required"` -} - -func (r IndexNewParamsConfigVectorizeIndexPresetConfiguration) MarshalJSON() (data []byte, err error) { - return apijson.MarshalRoot(r) -} - -func (r IndexNewParamsConfigVectorizeIndexPresetConfiguration) implementsVectorizeIndexNewParamsConfigUnion() { -} - -// Specifies the preset to use for the index. -type IndexNewParamsConfigVectorizeIndexPresetConfigurationPreset string - -const ( - IndexNewParamsConfigVectorizeIndexPresetConfigurationPresetCfBaaiBgeSmallEnV1_5 IndexNewParamsConfigVectorizeIndexPresetConfigurationPreset = "@cf/baai/bge-small-en-v1.5" - IndexNewParamsConfigVectorizeIndexPresetConfigurationPresetCfBaaiBgeBaseEnV1_5 IndexNewParamsConfigVectorizeIndexPresetConfigurationPreset = "@cf/baai/bge-base-en-v1.5" - IndexNewParamsConfigVectorizeIndexPresetConfigurationPresetCfBaaiBgeLargeEnV1_5 IndexNewParamsConfigVectorizeIndexPresetConfigurationPreset = "@cf/baai/bge-large-en-v1.5" - IndexNewParamsConfigVectorizeIndexPresetConfigurationPresetOpenAITextEmbeddingAda002 IndexNewParamsConfigVectorizeIndexPresetConfigurationPreset = "openai/text-embedding-ada-002" - IndexNewParamsConfigVectorizeIndexPresetConfigurationPresetCohereEmbedMultilingualV2_0 IndexNewParamsConfigVectorizeIndexPresetConfigurationPreset = "cohere/embed-multilingual-v2.0" -) - -func (r IndexNewParamsConfigVectorizeIndexPresetConfigurationPreset) IsKnown() bool { - switch r { - case IndexNewParamsConfigVectorizeIndexPresetConfigurationPresetCfBaaiBgeSmallEnV1_5, IndexNewParamsConfigVectorizeIndexPresetConfigurationPresetCfBaaiBgeBaseEnV1_5, IndexNewParamsConfigVectorizeIndexPresetConfigurationPresetCfBaaiBgeLargeEnV1_5, IndexNewParamsConfigVectorizeIndexPresetConfigurationPresetOpenAITextEmbeddingAda002, IndexNewParamsConfigVectorizeIndexPresetConfigurationPresetCohereEmbedMultilingualV2_0: - return true - } - return false -} - -// Specifies the preset to use for the index. -type IndexNewParamsConfigPreset string - -const ( - IndexNewParamsConfigPresetCfBaaiBgeSmallEnV1_5 IndexNewParamsConfigPreset = "@cf/baai/bge-small-en-v1.5" - IndexNewParamsConfigPresetCfBaaiBgeBaseEnV1_5 IndexNewParamsConfigPreset = "@cf/baai/bge-base-en-v1.5" - IndexNewParamsConfigPresetCfBaaiBgeLargeEnV1_5 IndexNewParamsConfigPreset = "@cf/baai/bge-large-en-v1.5" - IndexNewParamsConfigPresetOpenAITextEmbeddingAda002 IndexNewParamsConfigPreset = "openai/text-embedding-ada-002" - IndexNewParamsConfigPresetCohereEmbedMultilingualV2_0 IndexNewParamsConfigPreset = "cohere/embed-multilingual-v2.0" -) - -func (r IndexNewParamsConfigPreset) IsKnown() bool { - switch r { - case IndexNewParamsConfigPresetCfBaaiBgeSmallEnV1_5, IndexNewParamsConfigPresetCfBaaiBgeBaseEnV1_5, IndexNewParamsConfigPresetCfBaaiBgeLargeEnV1_5, IndexNewParamsConfigPresetOpenAITextEmbeddingAda002, IndexNewParamsConfigPresetCohereEmbedMultilingualV2_0: - return true - } - return false -} - -// Specifies the type of metric to use calculating distance. -type IndexNewParamsConfigMetric string - -const ( - IndexNewParamsConfigMetricCosine IndexNewParamsConfigMetric = "cosine" - IndexNewParamsConfigMetricEuclidean IndexNewParamsConfigMetric = "euclidean" - IndexNewParamsConfigMetricDotProduct IndexNewParamsConfigMetric = "dot-product" -) - -func (r IndexNewParamsConfigMetric) IsKnown() bool { - switch r { - case IndexNewParamsConfigMetricCosine, IndexNewParamsConfigMetricEuclidean, IndexNewParamsConfigMetricDotProduct: - return true - } - return false -} - -type IndexNewResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result CreateIndex `json:"result,required,nullable"` - // Whether the API call was successful - Success IndexNewResponseEnvelopeSuccess `json:"success,required"` - JSON indexNewResponseEnvelopeJSON `json:"-"` -} - -// indexNewResponseEnvelopeJSON contains the JSON metadata for the struct -// [IndexNewResponseEnvelope] -type indexNewResponseEnvelopeJSON struct { - Errors apijson.Field - Messages apijson.Field - Result apijson.Field - Success apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *IndexNewResponseEnvelope) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r indexNewResponseEnvelopeJSON) RawJSON() string { - return r.raw -} - -// Whether the API call was successful -type IndexNewResponseEnvelopeSuccess bool - -const ( - IndexNewResponseEnvelopeSuccessTrue IndexNewResponseEnvelopeSuccess = true -) - -func (r IndexNewResponseEnvelopeSuccess) IsKnown() bool { - switch r { - case IndexNewResponseEnvelopeSuccessTrue: - return true - } - return false -} - -type IndexUpdateParams struct { - // Specifies the description of the index. - Description param.Field[string] `json:"description,required"` -} - -func (r IndexUpdateParams) MarshalJSON() (data []byte, err error) { - return apijson.MarshalRoot(r) -} - -type IndexUpdateResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result CreateIndex `json:"result,required,nullable"` - // Whether the API call was successful - Success IndexUpdateResponseEnvelopeSuccess `json:"success,required"` - JSON indexUpdateResponseEnvelopeJSON `json:"-"` -} - -// indexUpdateResponseEnvelopeJSON contains the JSON metadata for the struct -// [IndexUpdateResponseEnvelope] -type indexUpdateResponseEnvelopeJSON struct { - Errors apijson.Field - Messages apijson.Field - Result apijson.Field - Success apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *IndexUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r indexUpdateResponseEnvelopeJSON) RawJSON() string { - return r.raw -} - -// Whether the API call was successful -type IndexUpdateResponseEnvelopeSuccess bool - -const ( - IndexUpdateResponseEnvelopeSuccessTrue IndexUpdateResponseEnvelopeSuccess = true -) - -func (r IndexUpdateResponseEnvelopeSuccess) IsKnown() bool { - switch r { - case IndexUpdateResponseEnvelopeSuccessTrue: - return true - } - return false -} - -type IndexDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result IndexDeleteResponseUnion `json:"result,required"` - // Whether the API call was successful - Success IndexDeleteResponseEnvelopeSuccess `json:"success,required"` - JSON indexDeleteResponseEnvelopeJSON `json:"-"` -} - -// indexDeleteResponseEnvelopeJSON contains the JSON metadata for the struct -// [IndexDeleteResponseEnvelope] -type indexDeleteResponseEnvelopeJSON struct { - Errors apijson.Field - Messages apijson.Field - Result apijson.Field - Success apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *IndexDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r indexDeleteResponseEnvelopeJSON) RawJSON() string { - return r.raw -} - -// Whether the API call was successful -type IndexDeleteResponseEnvelopeSuccess bool - -const ( - IndexDeleteResponseEnvelopeSuccessTrue IndexDeleteResponseEnvelopeSuccess = true -) - -func (r IndexDeleteResponseEnvelopeSuccess) IsKnown() bool { - switch r { - case IndexDeleteResponseEnvelopeSuccessTrue: - return true - } - return false -} - -type IndexDeleteByIDsParams struct { - // A list of vector identifiers to delete from the index indicated by the path. - IDs param.Field[[]string] `json:"ids"` -} - -func (r IndexDeleteByIDsParams) MarshalJSON() (data []byte, err error) { - return apijson.MarshalRoot(r) -} - -type IndexDeleteByIDsResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result IndexDeleteVectorsByID `json:"result,required,nullable"` - // Whether the API call was successful - Success IndexDeleteByIDsResponseEnvelopeSuccess `json:"success,required"` - JSON indexDeleteByIDsResponseEnvelopeJSON `json:"-"` -} - -// indexDeleteByIDsResponseEnvelopeJSON contains the JSON metadata for the struct -// [IndexDeleteByIDsResponseEnvelope] -type indexDeleteByIDsResponseEnvelopeJSON struct { - Errors apijson.Field - Messages apijson.Field - Result apijson.Field - Success apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *IndexDeleteByIDsResponseEnvelope) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r indexDeleteByIDsResponseEnvelopeJSON) RawJSON() string { - return r.raw -} - -// Whether the API call was successful -type IndexDeleteByIDsResponseEnvelopeSuccess bool - -const ( - IndexDeleteByIDsResponseEnvelopeSuccessTrue IndexDeleteByIDsResponseEnvelopeSuccess = true -) - -func (r IndexDeleteByIDsResponseEnvelopeSuccess) IsKnown() bool { - switch r { - case IndexDeleteByIDsResponseEnvelopeSuccessTrue: - return true - } - return false -} - -type IndexGetResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result CreateIndex `json:"result,required,nullable"` - // Whether the API call was successful - Success IndexGetResponseEnvelopeSuccess `json:"success,required"` - JSON indexGetResponseEnvelopeJSON `json:"-"` -} - -// indexGetResponseEnvelopeJSON contains the JSON metadata for the struct -// [IndexGetResponseEnvelope] -type indexGetResponseEnvelopeJSON struct { - Errors apijson.Field - Messages apijson.Field - Result apijson.Field - Success apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *IndexGetResponseEnvelope) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r indexGetResponseEnvelopeJSON) RawJSON() string { - return r.raw -} - -// Whether the API call was successful -type IndexGetResponseEnvelopeSuccess bool - -const ( - IndexGetResponseEnvelopeSuccessTrue IndexGetResponseEnvelopeSuccess = true -) - -func (r IndexGetResponseEnvelopeSuccess) IsKnown() bool { - switch r { - case IndexGetResponseEnvelopeSuccessTrue: - return true - } - return false -} - -type IndexGetByIDsParams struct { - // A list of vector identifiers to retrieve from the index indicated by the path. - IDs param.Field[[]string] `json:"ids"` -} - -func (r IndexGetByIDsParams) MarshalJSON() (data []byte, err error) { - return apijson.MarshalRoot(r) -} - -type IndexGetByIDsResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - // Array of vectors with matching ids. - Result IndexGetByIDsResponse `json:"result,required,nullable"` - // Whether the API call was successful - Success IndexGetByIDsResponseEnvelopeSuccess `json:"success,required"` - JSON indexGetByIDsResponseEnvelopeJSON `json:"-"` -} - -// indexGetByIDsResponseEnvelopeJSON contains the JSON metadata for the struct -// [IndexGetByIDsResponseEnvelope] -type indexGetByIDsResponseEnvelopeJSON struct { - Errors apijson.Field - Messages apijson.Field - Result apijson.Field - Success apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *IndexGetByIDsResponseEnvelope) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r indexGetByIDsResponseEnvelopeJSON) RawJSON() string { - return r.raw -} - -// Whether the API call was successful -type IndexGetByIDsResponseEnvelopeSuccess bool - -const ( - IndexGetByIDsResponseEnvelopeSuccessTrue IndexGetByIDsResponseEnvelopeSuccess = true -) - -func (r IndexGetByIDsResponseEnvelopeSuccess) IsKnown() bool { - switch r { - case IndexGetByIDsResponseEnvelopeSuccessTrue: - return true - } - return false -} - -type IndexInsertParams struct { - Body interface{} `json:"body,required"` -} - -func (r IndexInsertParams) MarshalJSON() (data []byte, err error) { - return apijson.MarshalRoot(r.Body) -} - -type IndexInsertResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result IndexInsert `json:"result,required,nullable"` - // Whether the API call was successful - Success IndexInsertResponseEnvelopeSuccess `json:"success,required"` - JSON indexInsertResponseEnvelopeJSON `json:"-"` -} - -// indexInsertResponseEnvelopeJSON contains the JSON metadata for the struct -// [IndexInsertResponseEnvelope] -type indexInsertResponseEnvelopeJSON struct { - Errors apijson.Field - Messages apijson.Field - Result apijson.Field - Success apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *IndexInsertResponseEnvelope) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r indexInsertResponseEnvelopeJSON) RawJSON() string { - return r.raw -} - -// Whether the API call was successful -type IndexInsertResponseEnvelopeSuccess bool - -const ( - IndexInsertResponseEnvelopeSuccessTrue IndexInsertResponseEnvelopeSuccess = true -) - -func (r IndexInsertResponseEnvelopeSuccess) IsKnown() bool { - switch r { - case IndexInsertResponseEnvelopeSuccessTrue: - return true - } - return false -} - -type IndexQueryParams struct { - // Whether to return the metadata associated with the closest vectors. - ReturnMetadata param.Field[bool] `json:"returnMetadata"` - // Whether to return the values associated with the closest vectors. - ReturnValues param.Field[bool] `json:"returnValues"` - // The number of nearest neighbors to find. - TopK param.Field[float64] `json:"topK"` - // The search vector that will be used to find the nearest neighbors. - Vector param.Field[[]float64] `json:"vector"` -} - -func (r IndexQueryParams) MarshalJSON() (data []byte, err error) { - return apijson.MarshalRoot(r) -} - -type IndexQueryResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result IndexQuery `json:"result,required,nullable"` - // Whether the API call was successful - Success IndexQueryResponseEnvelopeSuccess `json:"success,required"` - JSON indexQueryResponseEnvelopeJSON `json:"-"` -} - -// indexQueryResponseEnvelopeJSON contains the JSON metadata for the struct -// [IndexQueryResponseEnvelope] -type indexQueryResponseEnvelopeJSON struct { - Errors apijson.Field - Messages apijson.Field - Result apijson.Field - Success apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *IndexQueryResponseEnvelope) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r indexQueryResponseEnvelopeJSON) RawJSON() string { - return r.raw -} - -// Whether the API call was successful -type IndexQueryResponseEnvelopeSuccess bool - -const ( - IndexQueryResponseEnvelopeSuccessTrue IndexQueryResponseEnvelopeSuccess = true -) - -func (r IndexQueryResponseEnvelopeSuccess) IsKnown() bool { - switch r { - case IndexQueryResponseEnvelopeSuccessTrue: - return true - } - return false -} - -type IndexUpsertParams struct { - Body interface{} `json:"body,required"` -} - -func (r IndexUpsertParams) MarshalJSON() (data []byte, err error) { - return apijson.MarshalRoot(r.Body) -} - -type IndexUpsertResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result IndexUpsert `json:"result,required,nullable"` - // Whether the API call was successful - Success IndexUpsertResponseEnvelopeSuccess `json:"success,required"` - JSON indexUpsertResponseEnvelopeJSON `json:"-"` -} - -// indexUpsertResponseEnvelopeJSON contains the JSON metadata for the struct -// [IndexUpsertResponseEnvelope] -type indexUpsertResponseEnvelopeJSON struct { - Errors apijson.Field - Messages apijson.Field - Result apijson.Field - Success apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *IndexUpsertResponseEnvelope) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r indexUpsertResponseEnvelopeJSON) RawJSON() string { - return r.raw -} - -// Whether the API call was successful -type IndexUpsertResponseEnvelopeSuccess bool - -const ( - IndexUpsertResponseEnvelopeSuccessTrue IndexUpsertResponseEnvelopeSuccess = true -) - -func (r IndexUpsertResponseEnvelopeSuccess) IsKnown() bool { - switch r { - case IndexUpsertResponseEnvelopeSuccessTrue: - return true - } - return false -} diff --git a/vectorize/index_test.go b/vectorize/index_test.go deleted file mode 100644 index 2a47549e5d3..00000000000 --- a/vectorize/index_test.go +++ /dev/null @@ -1,318 +0,0 @@ -// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -package vectorize_test - -import ( - "context" - "errors" - "os" - "testing" - - "github.com/cloudflare/cloudflare-go/v2" - "github.com/cloudflare/cloudflare-go/v2/internal/testutil" - "github.com/cloudflare/cloudflare-go/v2/option" - "github.com/cloudflare/cloudflare-go/v2/vectorize" -) - -func TestIndexNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") - baseURL := "http://localhost:4010" - if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { - baseURL = envURL - } - if !testutil.CheckTestServer(t, baseURL) { - return - } - client := cloudflare.NewClient( - option.WithBaseURL(baseURL), - option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), - option.WithAPIEmail("user@example.com"), - ) - _, err := client.Vectorize.Indexes.New( - context.TODO(), - "023e105f4ecef8ad9ca31a8372d0c353", - vectorize.IndexNewParams{ - Config: cloudflare.F[vectorize.IndexNewParamsConfigUnion](vectorize.IndexNewParamsConfigVectorizeIndexPresetConfiguration{ - Preset: cloudflare.F(vectorize.IndexNewParamsConfigVectorizeIndexPresetConfigurationPresetCfBaaiBgeSmallEnV1_5), - }), - Name: cloudflare.F("example-index"), - Description: cloudflare.F("This is my example index."), - }, - ) - if err != nil { - var apierr *cloudflare.Error - if errors.As(err, &apierr) { - t.Log(string(apierr.DumpRequest(true))) - } - t.Fatalf("err should be nil: %s", err.Error()) - } -} - -func TestIndexUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") - baseURL := "http://localhost:4010" - if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { - baseURL = envURL - } - if !testutil.CheckTestServer(t, baseURL) { - return - } - client := cloudflare.NewClient( - option.WithBaseURL(baseURL), - option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), - option.WithAPIEmail("user@example.com"), - ) - _, err := client.Vectorize.Indexes.Update( - context.TODO(), - "023e105f4ecef8ad9ca31a8372d0c353", - "example-index", - vectorize.IndexUpdateParams{ - Description: cloudflare.F("This is my example index."), - }, - ) - if err != nil { - var apierr *cloudflare.Error - if errors.As(err, &apierr) { - t.Log(string(apierr.DumpRequest(true))) - } - t.Fatalf("err should be nil: %s", err.Error()) - } -} - -func TestIndexList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") - baseURL := "http://localhost:4010" - if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { - baseURL = envURL - } - if !testutil.CheckTestServer(t, baseURL) { - return - } - client := cloudflare.NewClient( - option.WithBaseURL(baseURL), - option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), - option.WithAPIEmail("user@example.com"), - ) - _, err := client.Vectorize.Indexes.List(context.TODO(), "023e105f4ecef8ad9ca31a8372d0c353") - if err != nil { - var apierr *cloudflare.Error - if errors.As(err, &apierr) { - t.Log(string(apierr.DumpRequest(true))) - } - t.Fatalf("err should be nil: %s", err.Error()) - } -} - -func TestIndexDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") - baseURL := "http://localhost:4010" - if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { - baseURL = envURL - } - if !testutil.CheckTestServer(t, baseURL) { - return - } - client := cloudflare.NewClient( - option.WithBaseURL(baseURL), - option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), - option.WithAPIEmail("user@example.com"), - ) - _, err := client.Vectorize.Indexes.Delete( - context.TODO(), - "023e105f4ecef8ad9ca31a8372d0c353", - "example-index", - ) - if err != nil { - var apierr *cloudflare.Error - if errors.As(err, &apierr) { - t.Log(string(apierr.DumpRequest(true))) - } - t.Fatalf("err should be nil: %s", err.Error()) - } -} - -func TestIndexDeleteByIDsWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") - baseURL := "http://localhost:4010" - if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { - baseURL = envURL - } - if !testutil.CheckTestServer(t, baseURL) { - return - } - client := cloudflare.NewClient( - option.WithBaseURL(baseURL), - option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), - option.WithAPIEmail("user@example.com"), - ) - _, err := client.Vectorize.Indexes.DeleteByIDs( - context.TODO(), - "023e105f4ecef8ad9ca31a8372d0c353", - "example-index", - vectorize.IndexDeleteByIDsParams{ - IDs: cloudflare.F([]string{"5121db81354a40c6aedc3fe1ace51c59", "f90eb49c2107486abdfd78c67e853430"}), - }, - ) - if err != nil { - var apierr *cloudflare.Error - if errors.As(err, &apierr) { - t.Log(string(apierr.DumpRequest(true))) - } - t.Fatalf("err should be nil: %s", err.Error()) - } -} - -func TestIndexGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") - baseURL := "http://localhost:4010" - if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { - baseURL = envURL - } - if !testutil.CheckTestServer(t, baseURL) { - return - } - client := cloudflare.NewClient( - option.WithBaseURL(baseURL), - option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), - option.WithAPIEmail("user@example.com"), - ) - _, err := client.Vectorize.Indexes.Get( - context.TODO(), - "023e105f4ecef8ad9ca31a8372d0c353", - "example-index", - ) - if err != nil { - var apierr *cloudflare.Error - if errors.As(err, &apierr) { - t.Log(string(apierr.DumpRequest(true))) - } - t.Fatalf("err should be nil: %s", err.Error()) - } -} - -func TestIndexGetByIDsWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") - baseURL := "http://localhost:4010" - if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { - baseURL = envURL - } - if !testutil.CheckTestServer(t, baseURL) { - return - } - client := cloudflare.NewClient( - option.WithBaseURL(baseURL), - option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), - option.WithAPIEmail("user@example.com"), - ) - _, err := client.Vectorize.Indexes.GetByIDs( - context.TODO(), - "023e105f4ecef8ad9ca31a8372d0c353", - "example-index", - vectorize.IndexGetByIDsParams{ - IDs: cloudflare.F([]string{"5121db81354a40c6aedc3fe1ace51c59", "f90eb49c2107486abdfd78c67e853430"}), - }, - ) - if err != nil { - var apierr *cloudflare.Error - if errors.As(err, &apierr) { - t.Log(string(apierr.DumpRequest(true))) - } - t.Fatalf("err should be nil: %s", err.Error()) - } -} - -func TestIndexInsert(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") - baseURL := "http://localhost:4010" - if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { - baseURL = envURL - } - if !testutil.CheckTestServer(t, baseURL) { - return - } - client := cloudflare.NewClient( - option.WithBaseURL(baseURL), - option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), - option.WithAPIEmail("user@example.com"), - ) - _, err := client.Vectorize.Indexes.Insert( - context.TODO(), - "023e105f4ecef8ad9ca31a8372d0c353", - "example-index", - vectorize.IndexInsertParams{ - Body: map[string]interface{}{}, - }, - ) - if err != nil { - var apierr *cloudflare.Error - if errors.As(err, &apierr) { - t.Log(string(apierr.DumpRequest(true))) - } - t.Fatalf("err should be nil: %s", err.Error()) - } -} - -func TestIndexQueryWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") - baseURL := "http://localhost:4010" - if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { - baseURL = envURL - } - if !testutil.CheckTestServer(t, baseURL) { - return - } - client := cloudflare.NewClient( - option.WithBaseURL(baseURL), - option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), - option.WithAPIEmail("user@example.com"), - ) - _, err := client.Vectorize.Indexes.Query( - context.TODO(), - "023e105f4ecef8ad9ca31a8372d0c353", - "example-index", - vectorize.IndexQueryParams{ - ReturnMetadata: cloudflare.F(true), - ReturnValues: cloudflare.F(true), - TopK: cloudflare.F(5.000000), - Vector: cloudflare.F([]float64{0.500000, 0.500000, 0.500000}), - }, - ) - if err != nil { - var apierr *cloudflare.Error - if errors.As(err, &apierr) { - t.Log(string(apierr.DumpRequest(true))) - } - t.Fatalf("err should be nil: %s", err.Error()) - } -} - -func TestIndexUpsert(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") - baseURL := "http://localhost:4010" - if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { - baseURL = envURL - } - if !testutil.CheckTestServer(t, baseURL) { - return - } - client := cloudflare.NewClient( - option.WithBaseURL(baseURL), - option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), - option.WithAPIEmail("user@example.com"), - ) - _, err := client.Vectorize.Indexes.Upsert( - context.TODO(), - "023e105f4ecef8ad9ca31a8372d0c353", - "example-index", - vectorize.IndexUpsertParams{ - Body: map[string]interface{}{}, - }, - ) - if err != nil { - var apierr *cloudflare.Error - if errors.As(err, &apierr) { - t.Log(string(apierr.DumpRequest(true))) - } - t.Fatalf("err should be nil: %s", err.Error()) - } -} From 2745e9f609abecabb005071e82623852ec56afd3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Apr 2024 21:01:02 +0000 Subject: [PATCH 27/52] feat(api): OpenAPI spec update via Stainless API (#1810) --- api.md | 2 +- healthchecks/healthcheck.go | 24 +++++++++++++++++++----- healthchecks/healthcheck_test.go | 6 ++++-- 3 files changed, 24 insertions(+), 8 deletions(-) diff --git a/api.md b/api.md index 95928b81faa..63863d9193b 100644 --- a/api.md +++ b/api.md @@ -1851,7 +1851,7 @@ Methods: - client.Healthchecks.New(ctx context.Context, params healthchecks.HealthcheckNewParams) (healthchecks.Healthcheck, error) - client.Healthchecks.Update(ctx context.Context, healthcheckID string, params healthchecks.HealthcheckUpdateParams) (healthchecks.Healthcheck, error) -- client.Healthchecks.List(ctx context.Context, query healthchecks.HealthcheckListParams) (pagination.SinglePage[healthchecks.Healthcheck], error) +- client.Healthchecks.List(ctx context.Context, params healthchecks.HealthcheckListParams) (pagination.SinglePage[healthchecks.Healthcheck], error) - client.Healthchecks.Delete(ctx context.Context, healthcheckID string, params healthchecks.HealthcheckDeleteParams) (healthchecks.HealthcheckDeleteResponse, error) - client.Healthchecks.Edit(ctx context.Context, healthcheckID string, params healthchecks.HealthcheckEditParams) (healthchecks.Healthcheck, error) - client.Healthchecks.Get(ctx context.Context, healthcheckID string, query healthchecks.HealthcheckGetParams) (healthchecks.Healthcheck, error) diff --git a/healthchecks/healthcheck.go b/healthchecks/healthcheck.go index 867246819cf..1916c5b0d4b 100644 --- a/healthchecks/healthcheck.go +++ b/healthchecks/healthcheck.go @@ -6,9 +6,11 @@ import ( "context" "fmt" "net/http" + "net/url" "time" "github.com/cloudflare/cloudflare-go/v2/internal/apijson" + "github.com/cloudflare/cloudflare-go/v2/internal/apiquery" "github.com/cloudflare/cloudflare-go/v2/internal/pagination" "github.com/cloudflare/cloudflare-go/v2/internal/param" "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" @@ -63,12 +65,12 @@ func (r *HealthcheckService) Update(ctx context.Context, healthcheckID string, p } // List configured health checks. -func (r *HealthcheckService) List(ctx context.Context, query HealthcheckListParams, opts ...option.RequestOption) (res *pagination.SinglePage[Healthcheck], err error) { +func (r *HealthcheckService) List(ctx context.Context, params HealthcheckListParams, opts ...option.RequestOption) (res *pagination.SinglePage[Healthcheck], err error) { var raw *http.Response opts = append(r.Options, opts...) opts = append([]option.RequestOption{option.WithResponseInto(&raw)}, opts...) - path := fmt.Sprintf("zones/%s/healthchecks", query.ZoneID) - cfg, err := requestconfig.NewRequestConfig(ctx, http.MethodGet, path, query, &res, opts...) + path := fmt.Sprintf("zones/%s/healthchecks", params.ZoneID) + cfg, err := requestconfig.NewRequestConfig(ctx, http.MethodGet, path, params, &res, opts...) if err != nil { return nil, err } @@ -81,8 +83,8 @@ func (r *HealthcheckService) List(ctx context.Context, query HealthcheckListPara } // List configured health checks. -func (r *HealthcheckService) ListAutoPaging(ctx context.Context, query HealthcheckListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[Healthcheck] { - return pagination.NewSinglePageAutoPager(r.List(ctx, query, opts...)) +func (r *HealthcheckService) ListAutoPaging(ctx context.Context, params HealthcheckListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[Healthcheck] { + return pagination.NewSinglePageAutoPager(r.List(ctx, params, opts...)) } // Delete a health check. @@ -569,6 +571,18 @@ func (r HealthcheckUpdateResponseEnvelopeSuccess) IsKnown() bool { type HealthcheckListParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` + // Page number of paginated results. + Page param.Field[interface{}] `query:"page"` + // Maximum number of results per page. Must be a multiple of 5. + PerPage param.Field[interface{}] `query:"per_page"` +} + +// URLQuery serializes [HealthcheckListParams]'s query parameters as `url.Values`. +func (r HealthcheckListParams) URLQuery() (v url.Values) { + return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{ + ArrayFormat: apiquery.ArrayQueryFormatRepeat, + NestedFormat: apiquery.NestedQueryFormatBrackets, + }) } type HealthcheckDeleteParams struct { diff --git a/healthchecks/healthcheck_test.go b/healthchecks/healthcheck_test.go index c74edc22035..3edde20e3d2 100644 --- a/healthchecks/healthcheck_test.go +++ b/healthchecks/healthcheck_test.go @@ -138,7 +138,7 @@ func TestHealthcheckUpdateWithOptionalParams(t *testing.T) { } } -func TestHealthcheckList(t *testing.T) { +func TestHealthcheckListWithOptionalParams(t *testing.T) { t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { @@ -153,7 +153,9 @@ func TestHealthcheckList(t *testing.T) { option.WithAPIEmail("user@example.com"), ) _, err := client.Healthchecks.List(context.TODO(), healthchecks.HealthcheckListParams{ - ZoneID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), + ZoneID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), + Page: cloudflare.F[any](map[string]interface{}{}), + PerPage: cloudflare.F[any](map[string]interface{}{}), }) if err != nil { var apierr *cloudflare.Error From 5e44bc50b00eede6a5cef326306c1f9e503dacbc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Apr 2024 23:12:08 +0000 Subject: [PATCH 28/52] feat(api): update via SDK Studio (#1812) --- accounts/aliases.go | 26 +- accounts/member.go | 12 +- accounts/member_test.go | 4 +- acm/aliases.go | 26 +- addressing/aliases.go | 26 +- alerting/aliases.go | 26 +- aliases.go | 26 +- api.md | 20 +- argo/aliases.go | 26 +- audit_logs/aliases.go | 26 +- billing/aliases.go | 26 +- bot_management/aliases.go | 26 +- brand_protection/aliases.go | 26 +- cache/aliases.go | 26 +- calls/aliases.go | 26 +- certificate_authorities/aliases.go | 26 +- challenges/aliases.go | 26 +- client_certificates/aliases.go | 26 +- cloudforce_one/aliases.go | 26 +- custom_certificates/aliases.go | 26 +- custom_hostnames/aliases.go | 26 +- custom_nameservers/aliases.go | 26 +- d1/aliases.go | 26 +- dcv_delegation/aliases.go | 26 +- diagnostics/aliases.go | 26 +- dns/aliases.go | 26 +- dnssec/aliases.go | 26 +- durable_objects/aliases.go | 26 +- email_routing/aliases.go | 26 +- event_notifications/aliases.go | 26 +- filters/aliases.go | 26 +- firewall/aliases.go | 26 +- healthchecks/aliases.go | 26 +- hostnames/aliases.go | 26 +- hyperdrive/aliases.go | 26 +- images/aliases.go | 26 +- images/v1key.go | 85 +++++-- intel/aliases.go | 26 +- internal/shared/shared.go | 278 +++++++++++----------- ips/aliases.go | 26 +- keyless_certificates/aliases.go | 26 +- kv/aliases.go | 26 +- load_balancers/aliases.go | 26 +- logpush/aliases.go | 26 +- logs/aliases.go | 26 +- magic_network_monitoring/aliases.go | 26 +- magic_transit/aliases.go | 26 +- managed_headers/aliases.go | 26 +- memberships/aliases.go | 26 +- mtls_certificates/aliases.go | 26 +- origin_ca_certificates/aliases.go | 26 +- origin_post_quantum_encryption/aliases.go | 26 +- origin_tls_client_auth/aliases.go | 26 +- page_shield/aliases.go | 26 +- pagerules/aliases.go | 26 +- pages/aliases.go | 26 +- pcaps/aliases.go | 26 +- plans/aliases.go | 26 +- queues/aliases.go | 26 +- r2/aliases.go | 26 +- radar/aliases.go | 26 +- rate_limits/aliases.go | 26 +- rate_plans/aliases.go | 26 +- registrar/aliases.go | 26 +- request_tracers/aliases.go | 26 +- rules/aliases.go | 26 +- rulesets/aliases.go | 26 +- rum/aliases.go | 26 +- secondary_dns/aliases.go | 26 +- snippets/aliases.go | 26 +- spectrum/aliases.go | 26 +- speed/aliases.go | 26 +- ssl/aliases.go | 26 +- storage/aliases.go | 26 +- stream/aliases.go | 26 +- subscriptions/aliases.go | 26 +- url_normalization/aliases.go | 26 +- url_scanner/aliases.go | 26 +- user/aliases.go | 26 +- vectorize/aliases.go | 26 +- waiting_rooms/aliases.go | 26 +- warp_connector/aliases.go | 26 +- web3/aliases.go | 26 +- workers/aliases.go | 26 +- workers_for_platforms/aliases.go | 26 +- zero_trust/aliases.go | 26 +- zero_trust/dex.go | 155 ++++++------ zero_trust/dextraceroutetest.go | 4 +- zones/aliases.go | 26 +- 89 files changed, 1368 insertions(+), 1322 deletions(-) diff --git a/accounts/aliases.go b/accounts/aliases.go index 371b3e9d2ae..54ece404b23 100644 --- a/accounts/aliases.go +++ b/accounts/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/accounts/member.go b/accounts/member.go index 733f670c13a..95e44542fce 100644 --- a/accounts/member.go +++ b/accounts/member.go @@ -48,7 +48,7 @@ func (r *MemberService) New(ctx context.Context, params MemberNewParams, opts .. } // Modify an account member. -func (r *MemberService) Update(ctx context.Context, memberID string, params MemberUpdateParams, opts ...option.RequestOption) (res *shared.User, err error) { +func (r *MemberService) Update(ctx context.Context, memberID string, params MemberUpdateParams, opts ...option.RequestOption) (res *shared.IamMember, err error) { opts = append(r.Options[:], opts...) var env MemberUpdateResponseEnvelope path := fmt.Sprintf("accounts/%v/members/%s", params.AccountID, memberID) @@ -97,7 +97,7 @@ func (r *MemberService) Delete(ctx context.Context, memberID string, params Memb } // Get information about a specific member of an account. -func (r *MemberService) Get(ctx context.Context, memberID string, query MemberGetParams, opts ...option.RequestOption) (res *shared.User, err error) { +func (r *MemberService) Get(ctx context.Context, memberID string, query MemberGetParams, opts ...option.RequestOption) (res *shared.IamMember, err error) { opts = append(r.Options[:], opts...) var env MemberGetResponseEnvelope path := fmt.Sprintf("accounts/%v/members/%s", query.AccountID, memberID) @@ -394,17 +394,17 @@ func (r MemberNewResponseEnvelopeSuccess) IsKnown() bool { type MemberUpdateParams struct { AccountID param.Field[interface{}] `path:"account_id,required"` - User shared.UserParam `json:"user,required"` + IamMember shared.IamMemberParam `json:"iam_member,required"` } func (r MemberUpdateParams) MarshalJSON() (data []byte, err error) { - return apijson.MarshalRoot(r.User) + return apijson.MarshalRoot(r.IamMember) } type MemberUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result shared.User `json:"result,required"` + Result shared.IamMember `json:"result,required"` // Whether the API call was successful Success MemberUpdateResponseEnvelopeSuccess `json:"success,required"` JSON memberUpdateResponseEnvelopeJSON `json:"-"` @@ -576,7 +576,7 @@ type MemberGetParams struct { type MemberGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result shared.User `json:"result,required"` + Result shared.IamMember `json:"result,required"` // Whether the API call was successful Success MemberGetResponseEnvelopeSuccess `json:"success,required"` JSON memberGetResponseEnvelopeJSON `json:"-"` diff --git a/accounts/member_test.go b/accounts/member_test.go index 1834134f9e9..9f7d59a7848 100644 --- a/accounts/member_test.go +++ b/accounts/member_test.go @@ -63,8 +63,8 @@ func TestMemberUpdate(t *testing.T) { "4536bcfad5faccb111b47003c79917fa", accounts.MemberUpdateParams{ AccountID: cloudflare.F[any](map[string]interface{}{}), - User: shared.UserParam{ - Roles: cloudflare.F([]shared.UserRoleParam{{ + IamMember: shared.IamMemberParam{ + Roles: cloudflare.F([]shared.IamMemberRoleParam{{ ID: cloudflare.F("3536bcfad5faccb999b47003c79917fb"), }, { ID: cloudflare.F("3536bcfad5faccb999b47003c79917fb"), diff --git a/acm/aliases.go b/acm/aliases.go index cb3afa2b2c6..49caa906188 100644 --- a/acm/aliases.go +++ b/acm/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/addressing/aliases.go b/addressing/aliases.go index d53662933d2..d8225d20119 100644 --- a/addressing/aliases.go +++ b/addressing/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/alerting/aliases.go b/alerting/aliases.go index 712effdcf8b..9d11fb76c3f 100644 --- a/alerting/aliases.go +++ b/alerting/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/aliases.go b/aliases.go index 36677d72a7a..52e79bccfc0 100644 --- a/aliases.go +++ b/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/api.md b/api.md index 63863d9193b..916ed4aedd7 100644 --- a/api.md +++ b/api.md @@ -1,18 +1,18 @@ # Shared Params Types +- shared.IamMemberParam - shared.PermissionGrantParam -- shared.UserParam # Shared Response Types - shared.AuditLog - shared.CloudflareTunnel - shared.ErrorData +- shared.IamMember - shared.Permission - shared.PermissionGrant - shared.ResponseInfo - shared.Role -- shared.User # Accounts @@ -44,10 +44,10 @@ Response Types: Methods: - client.Accounts.Members.New(ctx context.Context, params accounts.MemberNewParams) (accounts.UserWithInviteCode, error) -- client.Accounts.Members.Update(ctx context.Context, memberID string, params accounts.MemberUpdateParams) (shared.User, error) +- client.Accounts.Members.Update(ctx context.Context, memberID string, params accounts.MemberUpdateParams) (shared.IamMember, error) - client.Accounts.Members.List(ctx context.Context, params accounts.MemberListParams) (pagination.V4PagePaginationArray[accounts.MemberListResponse], error) - client.Accounts.Members.Delete(ctx context.Context, memberID string, params accounts.MemberDeleteParams) (accounts.MemberDeleteResponse, error) -- client.Accounts.Members.Get(ctx context.Context, memberID string, query accounts.MemberGetParams) (shared.User, error) +- client.Accounts.Members.Get(ctx context.Context, memberID string, query accounts.MemberGetParams) (shared.IamMember, error) ## Roles @@ -3215,12 +3215,15 @@ Methods: Response Types: - images.Key +- images.V1KeyUpdateResponse +- images.V1KeyListResponse +- images.V1KeyDeleteResponse Methods: -- client.Images.V1.Keys.Update(ctx context.Context, signingKeyName string, body images.V1KeyUpdateParams) (images.Key, error) -- client.Images.V1.Keys.List(ctx context.Context, query images.V1KeyListParams) (images.Key, error) -- client.Images.V1.Keys.Delete(ctx context.Context, signingKeyName string, body images.V1KeyDeleteParams) (images.Key, error) +- client.Images.V1.Keys.Update(ctx context.Context, signingKeyName string, body images.V1KeyUpdateParams) (images.V1KeyUpdateResponse, error) +- client.Images.V1.Keys.List(ctx context.Context, query images.V1KeyListParams) (images.V1KeyListResponse, error) +- client.Images.V1.Keys.Delete(ctx context.Context, signingKeyName string, body images.V1KeyDeleteParams) (images.V1KeyDeleteResponse, error) ### Stats @@ -5012,6 +5015,7 @@ Response Types: - zero_trust.DeviceExperienceMonitor - zero_trust.NetworkPath +- zero_trust.NetworkPathResponse - zero_trust.Percentiles ### Colos @@ -5111,7 +5115,7 @@ Response Types: Methods: - client.ZeroTrust.DEX.TracerouteTests.Get(ctx context.Context, testID string, params zero_trust.DEXTracerouteTestGetParams) (zero_trust.Traceroute, error) -- client.ZeroTrust.DEX.TracerouteTests.NetworkPath(ctx context.Context, testID string, params zero_trust.DEXTracerouteTestNetworkPathParams) (zero_trust.NetworkPath, error) +- client.ZeroTrust.DEX.TracerouteTests.NetworkPath(ctx context.Context, testID string, params zero_trust.DEXTracerouteTestNetworkPathParams) (zero_trust.NetworkPathResponse, error) - client.ZeroTrust.DEX.TracerouteTests.Percentiles(ctx context.Context, testID string, params zero_trust.DEXTracerouteTestPercentilesParams) (zero_trust.DEXTracerouteTestPercentilesResponse, error) ## Tunnels diff --git a/argo/aliases.go b/argo/aliases.go index 01696364798..5e85c668cec 100644 --- a/argo/aliases.go +++ b/argo/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/audit_logs/aliases.go b/audit_logs/aliases.go index f2bdfc5ac77..8f6369fbf7d 100644 --- a/audit_logs/aliases.go +++ b/audit_logs/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/billing/aliases.go b/billing/aliases.go index 734dcbfb28e..10871a65fa9 100644 --- a/billing/aliases.go +++ b/billing/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/bot_management/aliases.go b/bot_management/aliases.go index bc7a6ccb903..fda554afb74 100644 --- a/bot_management/aliases.go +++ b/bot_management/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/brand_protection/aliases.go b/brand_protection/aliases.go index dc9e848f761..28fb8df02f7 100644 --- a/brand_protection/aliases.go +++ b/brand_protection/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/cache/aliases.go b/cache/aliases.go index 3e01e0786e4..06739f610bc 100644 --- a/cache/aliases.go +++ b/cache/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/calls/aliases.go b/calls/aliases.go index eb71c1958dc..f2f1a53f96f 100644 --- a/calls/aliases.go +++ b/calls/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/certificate_authorities/aliases.go b/certificate_authorities/aliases.go index b179e90a28d..4b0fad77a90 100644 --- a/certificate_authorities/aliases.go +++ b/certificate_authorities/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/challenges/aliases.go b/challenges/aliases.go index 0a08b216299..75f033def36 100644 --- a/challenges/aliases.go +++ b/challenges/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/client_certificates/aliases.go b/client_certificates/aliases.go index 00623700f9b..eba82cb123a 100644 --- a/client_certificates/aliases.go +++ b/client_certificates/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/cloudforce_one/aliases.go b/cloudforce_one/aliases.go index 0ba61456f06..cc4f3928cbb 100644 --- a/cloudforce_one/aliases.go +++ b/cloudforce_one/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/custom_certificates/aliases.go b/custom_certificates/aliases.go index 6b2559f0297..8b9445fffcb 100644 --- a/custom_certificates/aliases.go +++ b/custom_certificates/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/custom_hostnames/aliases.go b/custom_hostnames/aliases.go index 4ad39d37f42..152d4169dc3 100644 --- a/custom_hostnames/aliases.go +++ b/custom_hostnames/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/custom_nameservers/aliases.go b/custom_nameservers/aliases.go index 204a2ba1824..21bd146efd1 100644 --- a/custom_nameservers/aliases.go +++ b/custom_nameservers/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/d1/aliases.go b/d1/aliases.go index d40b4c6ed39..6c606af2b84 100644 --- a/d1/aliases.go +++ b/d1/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/dcv_delegation/aliases.go b/dcv_delegation/aliases.go index adad4bfa5f5..40c95cc6e22 100644 --- a/dcv_delegation/aliases.go +++ b/dcv_delegation/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/diagnostics/aliases.go b/diagnostics/aliases.go index 3913b5b5551..20b6a4ec427 100644 --- a/diagnostics/aliases.go +++ b/diagnostics/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/dns/aliases.go b/dns/aliases.go index 61d93c581e4..035be3a9aa9 100644 --- a/dns/aliases.go +++ b/dns/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/dnssec/aliases.go b/dnssec/aliases.go index 0bdac82730a..1d3a8b293b6 100644 --- a/dnssec/aliases.go +++ b/dnssec/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/durable_objects/aliases.go b/durable_objects/aliases.go index 019035d725f..b376abe8ee0 100644 --- a/durable_objects/aliases.go +++ b/durable_objects/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/email_routing/aliases.go b/email_routing/aliases.go index 319771a4b20..288dfa9058e 100644 --- a/email_routing/aliases.go +++ b/email_routing/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/event_notifications/aliases.go b/event_notifications/aliases.go index 873cd0b5755..ef6bb386854 100644 --- a/event_notifications/aliases.go +++ b/event_notifications/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/filters/aliases.go b/filters/aliases.go index 31f5a60f7b6..7e2adeaee2c 100644 --- a/filters/aliases.go +++ b/filters/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/firewall/aliases.go b/firewall/aliases.go index 16fe507379f..8cda1b1d8e1 100644 --- a/firewall/aliases.go +++ b/firewall/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/healthchecks/aliases.go b/healthchecks/aliases.go index cf9bc24b819..32189bd81ec 100644 --- a/healthchecks/aliases.go +++ b/healthchecks/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/hostnames/aliases.go b/hostnames/aliases.go index c4615166466..338787c113b 100644 --- a/hostnames/aliases.go +++ b/hostnames/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/hyperdrive/aliases.go b/hyperdrive/aliases.go index 163b6fbd5b2..0b0326de600 100644 --- a/hyperdrive/aliases.go +++ b/hyperdrive/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/images/aliases.go b/images/aliases.go index 20a6da359f6..0fcff3744ea 100644 --- a/images/aliases.go +++ b/images/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/images/v1key.go b/images/v1key.go index 14095d0705d..706ddc05ad8 100644 --- a/images/v1key.go +++ b/images/v1key.go @@ -32,7 +32,7 @@ func NewV1KeyService(opts ...option.RequestOption) (r *V1KeyService) { } // Create a new signing key with specified name. Returns all keys available. -func (r *V1KeyService) Update(ctx context.Context, signingKeyName string, body V1KeyUpdateParams, opts ...option.RequestOption) (res *Key, err error) { +func (r *V1KeyService) Update(ctx context.Context, signingKeyName string, body V1KeyUpdateParams, opts ...option.RequestOption) (res *V1KeyUpdateResponse, err error) { opts = append(r.Options[:], opts...) var env V1KeyUpdateResponseEnvelope path := fmt.Sprintf("accounts/%s/images/v1/keys/%s", body.AccountID, signingKeyName) @@ -45,7 +45,7 @@ func (r *V1KeyService) Update(ctx context.Context, signingKeyName string, body V } // Lists your signing keys. These can be found on your Cloudflare Images dashboard. -func (r *V1KeyService) List(ctx context.Context, query V1KeyListParams, opts ...option.RequestOption) (res *Key, err error) { +func (r *V1KeyService) List(ctx context.Context, query V1KeyListParams, opts ...option.RequestOption) (res *V1KeyListResponse, err error) { opts = append(r.Options[:], opts...) var env V1KeyListResponseEnvelope path := fmt.Sprintf("accounts/%s/images/v1/keys", query.AccountID) @@ -59,7 +59,7 @@ func (r *V1KeyService) List(ctx context.Context, query V1KeyListParams, opts ... // Delete signing key with specified name. Returns all keys available. When last // key is removed, a new default signing key will be generated. -func (r *V1KeyService) Delete(ctx context.Context, signingKeyName string, body V1KeyDeleteParams, opts ...option.RequestOption) (res *Key, err error) { +func (r *V1KeyService) Delete(ctx context.Context, signingKeyName string, body V1KeyDeleteParams, opts ...option.RequestOption) (res *V1KeyDeleteResponse, err error) { opts = append(r.Options[:], opts...) var env V1KeyDeleteResponseEnvelope path := fmt.Sprintf("accounts/%s/images/v1/keys/%s", body.AccountID, signingKeyName) @@ -72,13 +72,17 @@ func (r *V1KeyService) Delete(ctx context.Context, signingKeyName string, body V } type Key struct { - Keys []KeyKey `json:"keys"` - JSON keyJSON `json:"-"` + // Key name. + Name string `json:"name"` + // Key value. + Value string `json:"value"` + JSON keyJSON `json:"-"` } // keyJSON contains the JSON metadata for the struct [Key] type keyJSON struct { - Keys apijson.Field + Name apijson.Field + Value apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -91,27 +95,66 @@ func (r keyJSON) RawJSON() string { return r.raw } -type KeyKey struct { - // Key name. - Name string `json:"name"` - // Key value. - Value string `json:"value"` - JSON keyKeyJSON `json:"-"` +type V1KeyUpdateResponse struct { + Keys []Key `json:"keys"` + JSON v1KeyUpdateResponseJSON `json:"-"` } -// keyKeyJSON contains the JSON metadata for the struct [KeyKey] -type keyKeyJSON struct { - Name apijson.Field - Value apijson.Field +// v1KeyUpdateResponseJSON contains the JSON metadata for the struct +// [V1KeyUpdateResponse] +type v1KeyUpdateResponseJSON struct { + Keys apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *V1KeyUpdateResponse) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r v1KeyUpdateResponseJSON) RawJSON() string { + return r.raw +} + +type V1KeyListResponse struct { + Keys []Key `json:"keys"` + JSON v1KeyListResponseJSON `json:"-"` +} + +// v1KeyListResponseJSON contains the JSON metadata for the struct +// [V1KeyListResponse] +type v1KeyListResponseJSON struct { + Keys apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *V1KeyListResponse) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r v1KeyListResponseJSON) RawJSON() string { + return r.raw +} + +type V1KeyDeleteResponse struct { + Keys []Key `json:"keys"` + JSON v1KeyDeleteResponseJSON `json:"-"` +} + +// v1KeyDeleteResponseJSON contains the JSON metadata for the struct +// [V1KeyDeleteResponse] +type v1KeyDeleteResponseJSON struct { + Keys apijson.Field raw string ExtraFields map[string]apijson.Field } -func (r *KeyKey) UnmarshalJSON(data []byte) (err error) { +func (r *V1KeyDeleteResponse) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r keyKeyJSON) RawJSON() string { +func (r v1KeyDeleteResponseJSON) RawJSON() string { return r.raw } @@ -123,7 +166,7 @@ type V1KeyUpdateParams struct { type V1KeyUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Key `json:"result,required"` + Result V1KeyUpdateResponse `json:"result,required"` // Whether the API call was successful Success V1KeyUpdateResponseEnvelopeSuccess `json:"success,required"` JSON v1KeyUpdateResponseEnvelopeJSON `json:"-"` @@ -171,7 +214,7 @@ type V1KeyListParams struct { type V1KeyListResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Key `json:"result,required"` + Result V1KeyListResponse `json:"result,required"` // Whether the API call was successful Success V1KeyListResponseEnvelopeSuccess `json:"success,required"` JSON v1KeyListResponseEnvelopeJSON `json:"-"` @@ -219,7 +262,7 @@ type V1KeyDeleteParams struct { type V1KeyDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Key `json:"result,required"` + Result V1KeyDeleteResponse `json:"result,required"` // Whether the API call was successful Success V1KeyDeleteResponseEnvelopeSuccess `json:"success,required"` JSON v1KeyDeleteResponseEnvelopeJSON `json:"-"` diff --git a/intel/aliases.go b/intel/aliases.go index a66cb3acb0d..f37f7f09c7b 100644 --- a/intel/aliases.go +++ b/intel/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/internal/shared/shared.go b/internal/shared/shared.go index 6e8789fd849..00d5f7efc9f 100644 --- a/internal/shared/shared.go +++ b/internal/shared/shared.go @@ -336,103 +336,18 @@ func (r errorDataJSON) RawJSON() string { return r.raw } -type Permission = string - -type PermissionGrant struct { - Read bool `json:"read"` - Write bool `json:"write"` - JSON permissionGrantJSON `json:"-"` -} - -// permissionGrantJSON contains the JSON metadata for the struct [PermissionGrant] -type permissionGrantJSON struct { - Read apijson.Field - Write apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *PermissionGrant) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r permissionGrantJSON) RawJSON() string { - return r.raw -} - -type PermissionGrantParam struct { - Read param.Field[bool] `json:"read"` - Write param.Field[bool] `json:"write"` -} - -func (r PermissionGrantParam) MarshalJSON() (data []byte, err error) { - return apijson.MarshalRoot(r) -} - -type ResponseInfo struct { - Code int64 `json:"code,required"` - Message string `json:"message,required"` - JSON responseInfoJSON `json:"-"` -} - -// responseInfoJSON contains the JSON metadata for the struct [ResponseInfo] -type responseInfoJSON struct { - Code apijson.Field - Message apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *ResponseInfo) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r responseInfoJSON) RawJSON() string { - return r.raw -} - -type Role struct { - // Role identifier tag. - ID string `json:"id,required"` - // Description of role's permissions. - Description string `json:"description,required"` - // Role Name. - Name string `json:"name,required"` - // Access permissions for this User. - Permissions []Permission `json:"permissions,required"` - JSON roleJSON `json:"-"` -} - -// roleJSON contains the JSON metadata for the struct [Role] -type roleJSON struct { - ID apijson.Field - Description apijson.Field - Name apijson.Field - Permissions apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *Role) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r roleJSON) RawJSON() string { - return r.raw -} - -type User struct { +type IamMember struct { // Membership identifier tag. ID string `json:"id,required"` // Roles assigned to this member. - Roles []UserRole `json:"roles,required"` - Status interface{} `json:"status,required"` - User UserUser `json:"user,required"` - JSON userJSON `json:"-"` + Roles []IamMemberRole `json:"roles,required"` + Status interface{} `json:"status,required"` + User IamMemberUser `json:"user,required"` + JSON iamMemberJSON `json:"-"` } -// userJSON contains the JSON metadata for the struct [User] -type userJSON struct { +// iamMemberJSON contains the JSON metadata for the struct [IamMember] +type iamMemberJSON struct { ID apijson.Field Roles apijson.Field Status apijson.Field @@ -441,27 +356,27 @@ type userJSON struct { ExtraFields map[string]apijson.Field } -func (r *User) UnmarshalJSON(data []byte) (err error) { +func (r *IamMember) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r userJSON) RawJSON() string { +func (r iamMemberJSON) RawJSON() string { return r.raw } -type UserRole struct { +type IamMemberRole struct { // Role identifier tag. ID string `json:"id,required"` // Description of role's permissions. Description string `json:"description,required"` // Role name. - Name string `json:"name,required"` - Permissions UserRolesPermissions `json:"permissions,required"` - JSON userRoleJSON `json:"-"` + Name string `json:"name,required"` + Permissions IamMemberRolesPermissions `json:"permissions,required"` + JSON iamMemberRoleJSON `json:"-"` } -// userRoleJSON contains the JSON metadata for the struct [UserRole] -type userRoleJSON struct { +// iamMemberRoleJSON contains the JSON metadata for the struct [IamMemberRole] +type iamMemberRoleJSON struct { ID apijson.Field Description apijson.Field Name apijson.Field @@ -470,33 +385,33 @@ type userRoleJSON struct { ExtraFields map[string]apijson.Field } -func (r *UserRole) UnmarshalJSON(data []byte) (err error) { +func (r *IamMemberRole) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r userRoleJSON) RawJSON() string { +func (r iamMemberRoleJSON) RawJSON() string { return r.raw } -type UserRolesPermissions struct { - Analytics PermissionGrant `json:"analytics"` - Billing PermissionGrant `json:"billing"` - CachePurge PermissionGrant `json:"cache_purge"` - DNS PermissionGrant `json:"dns"` - DNSRecords PermissionGrant `json:"dns_records"` - LB PermissionGrant `json:"lb"` - Logs PermissionGrant `json:"logs"` - Organization PermissionGrant `json:"organization"` - SSL PermissionGrant `json:"ssl"` - WAF PermissionGrant `json:"waf"` - ZoneSettings PermissionGrant `json:"zone_settings"` - Zones PermissionGrant `json:"zones"` - JSON userRolesPermissionsJSON `json:"-"` -} - -// userRolesPermissionsJSON contains the JSON metadata for the struct -// [UserRolesPermissions] -type userRolesPermissionsJSON struct { +type IamMemberRolesPermissions struct { + Analytics PermissionGrant `json:"analytics"` + Billing PermissionGrant `json:"billing"` + CachePurge PermissionGrant `json:"cache_purge"` + DNS PermissionGrant `json:"dns"` + DNSRecords PermissionGrant `json:"dns_records"` + LB PermissionGrant `json:"lb"` + Logs PermissionGrant `json:"logs"` + Organization PermissionGrant `json:"organization"` + SSL PermissionGrant `json:"ssl"` + WAF PermissionGrant `json:"waf"` + ZoneSettings PermissionGrant `json:"zone_settings"` + Zones PermissionGrant `json:"zones"` + JSON iamMemberRolesPermissionsJSON `json:"-"` +} + +// iamMemberRolesPermissionsJSON contains the JSON metadata for the struct +// [IamMemberRolesPermissions] +type iamMemberRolesPermissionsJSON struct { Analytics apijson.Field Billing apijson.Field CachePurge apijson.Field @@ -513,15 +428,15 @@ type userRolesPermissionsJSON struct { ExtraFields map[string]apijson.Field } -func (r *UserRolesPermissions) UnmarshalJSON(data []byte) (err error) { +func (r *IamMemberRolesPermissions) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r userRolesPermissionsJSON) RawJSON() string { +func (r iamMemberRolesPermissionsJSON) RawJSON() string { return r.raw } -type UserUser struct { +type IamMemberUser struct { // The contact email address of the user. Email string `json:"email,required"` // Identifier @@ -532,12 +447,12 @@ type UserUser struct { LastName string `json:"last_name,nullable"` // Indicates whether two-factor authentication is enabled for the user account. // Does not apply to API authentication. - TwoFactorAuthenticationEnabled bool `json:"two_factor_authentication_enabled"` - JSON userUserJSON `json:"-"` + TwoFactorAuthenticationEnabled bool `json:"two_factor_authentication_enabled"` + JSON iamMemberUserJSON `json:"-"` } -// userUserJSON contains the JSON metadata for the struct [UserUser] -type userUserJSON struct { +// iamMemberUserJSON contains the JSON metadata for the struct [IamMemberUser] +type iamMemberUserJSON struct { Email apijson.Field ID apijson.Field FirstName apijson.Field @@ -547,33 +462,33 @@ type userUserJSON struct { ExtraFields map[string]apijson.Field } -func (r *UserUser) UnmarshalJSON(data []byte) (err error) { +func (r *IamMemberUser) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r userUserJSON) RawJSON() string { +func (r iamMemberUserJSON) RawJSON() string { return r.raw } -type UserParam struct { +type IamMemberParam struct { // Roles assigned to this member. - Roles param.Field[[]UserRoleParam] `json:"roles,required"` + Roles param.Field[[]IamMemberRoleParam] `json:"roles,required"` } -func (r UserParam) MarshalJSON() (data []byte, err error) { +func (r IamMemberParam) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -type UserRoleParam struct { +type IamMemberRoleParam struct { // Role identifier tag. ID param.Field[string] `json:"id,required"` } -func (r UserRoleParam) MarshalJSON() (data []byte, err error) { +func (r IamMemberRoleParam) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -type UserRolesPermissionsParam struct { +type IamMemberRolesPermissionsParam struct { Analytics param.Field[PermissionGrantParam] `json:"analytics"` Billing param.Field[PermissionGrantParam] `json:"billing"` CachePurge param.Field[PermissionGrantParam] `json:"cache_purge"` @@ -588,11 +503,11 @@ type UserRolesPermissionsParam struct { Zones param.Field[PermissionGrantParam] `json:"zones"` } -func (r UserRolesPermissionsParam) MarshalJSON() (data []byte, err error) { +func (r IamMemberRolesPermissionsParam) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -type UserUserParam struct { +type IamMemberUserParam struct { // The contact email address of the user. Email param.Field[string] `json:"email,required"` // User's first name @@ -601,6 +516,91 @@ type UserUserParam struct { LastName param.Field[string] `json:"last_name"` } -func (r UserUserParam) MarshalJSON() (data []byte, err error) { +func (r IamMemberUserParam) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } + +type Permission = string + +type PermissionGrant struct { + Read bool `json:"read"` + Write bool `json:"write"` + JSON permissionGrantJSON `json:"-"` +} + +// permissionGrantJSON contains the JSON metadata for the struct [PermissionGrant] +type permissionGrantJSON struct { + Read apijson.Field + Write apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *PermissionGrant) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r permissionGrantJSON) RawJSON() string { + return r.raw +} + +type PermissionGrantParam struct { + Read param.Field[bool] `json:"read"` + Write param.Field[bool] `json:"write"` +} + +func (r PermissionGrantParam) MarshalJSON() (data []byte, err error) { + return apijson.MarshalRoot(r) +} + +type ResponseInfo struct { + Code int64 `json:"code,required"` + Message string `json:"message,required"` + JSON responseInfoJSON `json:"-"` +} + +// responseInfoJSON contains the JSON metadata for the struct [ResponseInfo] +type responseInfoJSON struct { + Code apijson.Field + Message apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *ResponseInfo) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r responseInfoJSON) RawJSON() string { + return r.raw +} + +type Role struct { + // Role identifier tag. + ID string `json:"id,required"` + // Description of role's permissions. + Description string `json:"description,required"` + // Role Name. + Name string `json:"name,required"` + // Access permissions for this User. + Permissions []Permission `json:"permissions,required"` + JSON roleJSON `json:"-"` +} + +// roleJSON contains the JSON metadata for the struct [Role] +type roleJSON struct { + ID apijson.Field + Description apijson.Field + Name apijson.Field + Permissions apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *Role) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r roleJSON) RawJSON() string { + return r.raw +} diff --git a/ips/aliases.go b/ips/aliases.go index e9a9d6a2f7b..c5161d5eef6 100644 --- a/ips/aliases.go +++ b/ips/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/keyless_certificates/aliases.go b/keyless_certificates/aliases.go index 51b7a5f7426..0b8d6ec061f 100644 --- a/keyless_certificates/aliases.go +++ b/keyless_certificates/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/kv/aliases.go b/kv/aliases.go index a3d531463a0..77b84e6e57f 100644 --- a/kv/aliases.go +++ b/kv/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/load_balancers/aliases.go b/load_balancers/aliases.go index ed4503bf1f9..3c3f65d9e8b 100644 --- a/load_balancers/aliases.go +++ b/load_balancers/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/logpush/aliases.go b/logpush/aliases.go index c09f30f272e..fcfabb9dbcb 100644 --- a/logpush/aliases.go +++ b/logpush/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/logs/aliases.go b/logs/aliases.go index 925139463c1..6d539a3d5ab 100644 --- a/logs/aliases.go +++ b/logs/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/magic_network_monitoring/aliases.go b/magic_network_monitoring/aliases.go index 65590eee672..1293ebfcc4c 100644 --- a/magic_network_monitoring/aliases.go +++ b/magic_network_monitoring/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/magic_transit/aliases.go b/magic_transit/aliases.go index 69db7642805..c9db541f872 100644 --- a/magic_transit/aliases.go +++ b/magic_transit/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/managed_headers/aliases.go b/managed_headers/aliases.go index 95925ea12de..6be86873547 100644 --- a/managed_headers/aliases.go +++ b/managed_headers/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/memberships/aliases.go b/memberships/aliases.go index e43c70db24b..aa0badb0e94 100644 --- a/memberships/aliases.go +++ b/memberships/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/mtls_certificates/aliases.go b/mtls_certificates/aliases.go index e60d6610158..3f8f4edecf3 100644 --- a/mtls_certificates/aliases.go +++ b/mtls_certificates/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/origin_ca_certificates/aliases.go b/origin_ca_certificates/aliases.go index 5dbf3a3458e..a3667494a7c 100644 --- a/origin_ca_certificates/aliases.go +++ b/origin_ca_certificates/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/origin_post_quantum_encryption/aliases.go b/origin_post_quantum_encryption/aliases.go index b13e0fd8b6a..30c54037350 100644 --- a/origin_post_quantum_encryption/aliases.go +++ b/origin_post_quantum_encryption/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/origin_tls_client_auth/aliases.go b/origin_tls_client_auth/aliases.go index e6c0265e794..0c72432c94d 100644 --- a/origin_tls_client_auth/aliases.go +++ b/origin_tls_client_auth/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/page_shield/aliases.go b/page_shield/aliases.go index f9190339eed..80eaa1fe66e 100644 --- a/page_shield/aliases.go +++ b/page_shield/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/pagerules/aliases.go b/pagerules/aliases.go index ba19b37d0c3..9f224c5c17a 100644 --- a/pagerules/aliases.go +++ b/pagerules/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/pages/aliases.go b/pages/aliases.go index 00284fdfc04..6a84539aba5 100644 --- a/pages/aliases.go +++ b/pages/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/pcaps/aliases.go b/pcaps/aliases.go index 1226de1151b..cbfb623c979 100644 --- a/pcaps/aliases.go +++ b/pcaps/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/plans/aliases.go b/plans/aliases.go index 5c99aff0795..33b9e838abd 100644 --- a/plans/aliases.go +++ b/plans/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/queues/aliases.go b/queues/aliases.go index d6a0cb83648..161dde2d6c8 100644 --- a/queues/aliases.go +++ b/queues/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/r2/aliases.go b/r2/aliases.go index b43b2ac0731..41e1b568168 100644 --- a/r2/aliases.go +++ b/r2/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/radar/aliases.go b/radar/aliases.go index 2abb0c5f08f..ca67ce32208 100644 --- a/radar/aliases.go +++ b/radar/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/rate_limits/aliases.go b/rate_limits/aliases.go index 39387f63b95..d7394bcc5bf 100644 --- a/rate_limits/aliases.go +++ b/rate_limits/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/rate_plans/aliases.go b/rate_plans/aliases.go index 70a9ad8ac10..11e9625a0ad 100644 --- a/rate_plans/aliases.go +++ b/rate_plans/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/registrar/aliases.go b/registrar/aliases.go index d38de0959b8..3f7855fda3a 100644 --- a/registrar/aliases.go +++ b/registrar/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/request_tracers/aliases.go b/request_tracers/aliases.go index 134dad239d4..ae5bc597cf2 100644 --- a/request_tracers/aliases.go +++ b/request_tracers/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/rules/aliases.go b/rules/aliases.go index 8847c2b1bc6..811af0dbb48 100644 --- a/rules/aliases.go +++ b/rules/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/rulesets/aliases.go b/rulesets/aliases.go index 6273e15c28c..3ac4e457506 100644 --- a/rulesets/aliases.go +++ b/rulesets/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/rum/aliases.go b/rum/aliases.go index 291614971c2..47ae439ec62 100644 --- a/rum/aliases.go +++ b/rum/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/secondary_dns/aliases.go b/secondary_dns/aliases.go index b3a2adb1c4a..6f99f4aea48 100644 --- a/secondary_dns/aliases.go +++ b/secondary_dns/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/snippets/aliases.go b/snippets/aliases.go index 2305284a708..cdfb18c40b9 100644 --- a/snippets/aliases.go +++ b/snippets/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/spectrum/aliases.go b/spectrum/aliases.go index ed69da0b0de..a4306047c37 100644 --- a/spectrum/aliases.go +++ b/spectrum/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/speed/aliases.go b/speed/aliases.go index 35c601fd729..8bf8bc3da63 100644 --- a/speed/aliases.go +++ b/speed/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/ssl/aliases.go b/ssl/aliases.go index 936b9b2f36f..6f15566a040 100644 --- a/ssl/aliases.go +++ b/ssl/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/storage/aliases.go b/storage/aliases.go index 78d52af3864..6362aed8c75 100644 --- a/storage/aliases.go +++ b/storage/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/stream/aliases.go b/stream/aliases.go index 05d08701683..eeb8b261cf9 100644 --- a/stream/aliases.go +++ b/stream/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/subscriptions/aliases.go b/subscriptions/aliases.go index 1fd260119b8..91cd45a7d0b 100644 --- a/subscriptions/aliases.go +++ b/subscriptions/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/url_normalization/aliases.go b/url_normalization/aliases.go index 57b1da720e7..c649022ca21 100644 --- a/url_normalization/aliases.go +++ b/url_normalization/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/url_scanner/aliases.go b/url_scanner/aliases.go index f1f25744793..c8085f79443 100644 --- a/url_scanner/aliases.go +++ b/url_scanner/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/user/aliases.go b/user/aliases.go index da170ec353f..23a0159bf53 100644 --- a/user/aliases.go +++ b/user/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/vectorize/aliases.go b/vectorize/aliases.go index 308d00382d4..9e73ec1f28e 100644 --- a/vectorize/aliases.go +++ b/vectorize/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/waiting_rooms/aliases.go b/waiting_rooms/aliases.go index 90aca3d8719..483f4e9be89 100644 --- a/waiting_rooms/aliases.go +++ b/waiting_rooms/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/warp_connector/aliases.go b/warp_connector/aliases.go index 074163df9bd..3228e139d4f 100644 --- a/warp_connector/aliases.go +++ b/warp_connector/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/web3/aliases.go b/web3/aliases.go index 83fdb7aa08c..09145560a39 100644 --- a/web3/aliases.go +++ b/web3/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/workers/aliases.go b/workers/aliases.go index 2a465ca1fe2..8bc28841a26 100644 --- a/workers/aliases.go +++ b/workers/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/workers_for_platforms/aliases.go b/workers_for_platforms/aliases.go index ffdf71b240b..75b9b2a2e1f 100644 --- a/workers_for_platforms/aliases.go +++ b/workers_for_platforms/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/zero_trust/aliases.go b/zero_trust/aliases.go index dbb24fc538b..01b71ebded0 100644 --- a/zero_trust/aliases.go +++ b/zero_trust/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role diff --git a/zero_trust/dex.go b/zero_trust/dex.go index 7f9a503bfbc..f5d3b908970 100644 --- a/zero_trust/dex.go +++ b/zero_trust/dex.go @@ -63,81 +63,31 @@ func (r deviceExperienceMonitorJSON) RawJSON() string { } type NetworkPath struct { - // API Resource UUID tag. - ID string `json:"id,required"` - DeviceName string `json:"deviceName"` - // The interval at which the Traceroute synthetic application test is set to run. - Interval string `json:"interval"` - Kind NetworkPathKind `json:"kind"` - Name string `json:"name"` - NetworkPath NetworkPathNetworkPath `json:"networkPath,nullable"` - // The host of the Traceroute synthetic application test - URL string `json:"url"` - JSON networkPathJSON `json:"-"` -} - -// networkPathJSON contains the JSON metadata for the struct [NetworkPath] -type networkPathJSON struct { - ID apijson.Field - DeviceName apijson.Field - Interval apijson.Field - Kind apijson.Field - Name apijson.Field - NetworkPath apijson.Field - URL apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *NetworkPath) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r networkPathJSON) RawJSON() string { - return r.raw -} - -type NetworkPathKind string - -const ( - NetworkPathKindTraceroute NetworkPathKind = "traceroute" -) - -func (r NetworkPathKind) IsKnown() bool { - switch r { - case NetworkPathKindTraceroute: - return true - } - return false -} - -type NetworkPathNetworkPath struct { - Slots []NetworkPathNetworkPathSlot `json:"slots,required"` + Slots []NetworkPathSlot `json:"slots,required"` // Specifies the sampling applied, if any, to the slots response. When sampled, // results shown represent the first test run to the start of each sampling // interval. - Sampling NetworkPathNetworkPathSampling `json:"sampling,nullable"` - JSON networkPathNetworkPathJSON `json:"-"` + Sampling NetworkPathSampling `json:"sampling,nullable"` + JSON networkPathJSON `json:"-"` } -// networkPathNetworkPathJSON contains the JSON metadata for the struct -// [NetworkPathNetworkPath] -type networkPathNetworkPathJSON struct { +// networkPathJSON contains the JSON metadata for the struct [NetworkPath] +type networkPathJSON struct { Slots apijson.Field Sampling apijson.Field raw string ExtraFields map[string]apijson.Field } -func (r *NetworkPathNetworkPath) UnmarshalJSON(data []byte) (err error) { +func (r *NetworkPath) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r networkPathNetworkPathJSON) RawJSON() string { +func (r networkPathJSON) RawJSON() string { return r.raw } -type NetworkPathNetworkPathSlot struct { +type NetworkPathSlot struct { // API Resource UUID tag. ID string `json:"id,required"` // Round trip time in ms of the client to app mile @@ -148,13 +98,12 @@ type NetworkPathNetworkPathSlot struct { ClientToCfIngressRTTMs int64 `json:"clientToCfIngressRttMs,required,nullable"` Timestamp string `json:"timestamp,required"` // Round trip time in ms of the client to ISP mile - ClientToIspRTTMs int64 `json:"clientToIspRttMs,nullable"` - JSON networkPathNetworkPathSlotJSON `json:"-"` + ClientToIspRTTMs int64 `json:"clientToIspRttMs,nullable"` + JSON networkPathSlotJSON `json:"-"` } -// networkPathNetworkPathSlotJSON contains the JSON metadata for the struct -// [NetworkPathNetworkPathSlot] -type networkPathNetworkPathSlotJSON struct { +// networkPathSlotJSON contains the JSON metadata for the struct [NetworkPathSlot] +type networkPathSlotJSON struct { ID apijson.Field ClientToAppRTTMs apijson.Field ClientToCfEgressRTTMs apijson.Field @@ -165,49 +114,99 @@ type networkPathNetworkPathSlotJSON struct { ExtraFields map[string]apijson.Field } -func (r *NetworkPathNetworkPathSlot) UnmarshalJSON(data []byte) (err error) { +func (r *NetworkPathSlot) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r networkPathNetworkPathSlotJSON) RawJSON() string { +func (r networkPathSlotJSON) RawJSON() string { return r.raw } // Specifies the sampling applied, if any, to the slots response. When sampled, // results shown represent the first test run to the start of each sampling // interval. -type NetworkPathNetworkPathSampling struct { - Unit NetworkPathNetworkPathSamplingUnit `json:"unit,required"` - Value int64 `json:"value,required"` - JSON networkPathNetworkPathSamplingJSON `json:"-"` +type NetworkPathSampling struct { + Unit NetworkPathSamplingUnit `json:"unit,required"` + Value int64 `json:"value,required"` + JSON networkPathSamplingJSON `json:"-"` } -// networkPathNetworkPathSamplingJSON contains the JSON metadata for the struct -// [NetworkPathNetworkPathSampling] -type networkPathNetworkPathSamplingJSON struct { +// networkPathSamplingJSON contains the JSON metadata for the struct +// [NetworkPathSampling] +type networkPathSamplingJSON struct { Unit apijson.Field Value apijson.Field raw string ExtraFields map[string]apijson.Field } -func (r *NetworkPathNetworkPathSampling) UnmarshalJSON(data []byte) (err error) { +func (r *NetworkPathSampling) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r networkPathSamplingJSON) RawJSON() string { + return r.raw +} + +type NetworkPathSamplingUnit string + +const ( + NetworkPathSamplingUnitHours NetworkPathSamplingUnit = "hours" +) + +func (r NetworkPathSamplingUnit) IsKnown() bool { + switch r { + case NetworkPathSamplingUnitHours: + return true + } + return false +} + +type NetworkPathResponse struct { + // API Resource UUID tag. + ID string `json:"id,required"` + DeviceName string `json:"deviceName"` + // The interval at which the Traceroute synthetic application test is set to run. + Interval string `json:"interval"` + Kind NetworkPathResponseKind `json:"kind"` + Name string `json:"name"` + NetworkPath NetworkPath `json:"networkPath,nullable"` + // The host of the Traceroute synthetic application test + URL string `json:"url"` + JSON networkPathResponseJSON `json:"-"` +} + +// networkPathResponseJSON contains the JSON metadata for the struct +// [NetworkPathResponse] +type networkPathResponseJSON struct { + ID apijson.Field + DeviceName apijson.Field + Interval apijson.Field + Kind apijson.Field + Name apijson.Field + NetworkPath apijson.Field + URL apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *NetworkPathResponse) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r networkPathNetworkPathSamplingJSON) RawJSON() string { +func (r networkPathResponseJSON) RawJSON() string { return r.raw } -type NetworkPathNetworkPathSamplingUnit string +type NetworkPathResponseKind string const ( - NetworkPathNetworkPathSamplingUnitHours NetworkPathNetworkPathSamplingUnit = "hours" + NetworkPathResponseKindTraceroute NetworkPathResponseKind = "traceroute" ) -func (r NetworkPathNetworkPathSamplingUnit) IsKnown() bool { +func (r NetworkPathResponseKind) IsKnown() bool { switch r { - case NetworkPathNetworkPathSamplingUnitHours: + case NetworkPathResponseKindTraceroute: return true } return false diff --git a/zero_trust/dextraceroutetest.go b/zero_trust/dextraceroutetest.go index 9dce1662b91..f17d11fdbf1 100644 --- a/zero_trust/dextraceroutetest.go +++ b/zero_trust/dextraceroutetest.go @@ -49,7 +49,7 @@ func (r *DEXTracerouteTestService) Get(ctx context.Context, testID string, param } // Get a breakdown of metrics by hop for individual traceroute test runs -func (r *DEXTracerouteTestService) NetworkPath(ctx context.Context, testID string, params DEXTracerouteTestNetworkPathParams, opts ...option.RequestOption) (res *NetworkPath, err error) { +func (r *DEXTracerouteTestService) NetworkPath(ctx context.Context, testID string, params DEXTracerouteTestNetworkPathParams, opts ...option.RequestOption) (res *NetworkPathResponse, err error) { opts = append(r.Options[:], opts...) var env DEXTracerouteTestNetworkPathResponseEnvelope path := fmt.Sprintf("accounts/%s/dex/traceroute-tests/%s/network-path", params.AccountID, testID) @@ -551,7 +551,7 @@ type DEXTracerouteTestNetworkPathResponseEnvelope struct { Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DEXTracerouteTestNetworkPathResponseEnvelopeSuccess `json:"success,required"` - Result NetworkPath `json:"result"` + Result NetworkPathResponse `json:"result"` JSON dexTracerouteTestNetworkPathResponseEnvelopeJSON `json:"-"` } diff --git a/zones/aliases.go b/zones/aliases.go index aa2272aa21e..58427ddfa0d 100644 --- a/zones/aliases.go +++ b/zones/aliases.go @@ -70,40 +70,40 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type Permission = shared.Permission +type IamMember = shared.IamMember // This is an alias to an internal type. -type PermissionGrant = shared.PermissionGrant +type IamMemberRole = shared.IamMemberRole // This is an alias to an internal type. -type PermissionGrantParam = shared.PermissionGrantParam +type IamMemberRolesPermissions = shared.IamMemberRolesPermissions // This is an alias to an internal type. -type ResponseInfo = shared.ResponseInfo +type IamMemberUser = shared.IamMemberUser // This is an alias to an internal type. -type Role = shared.Role +type IamMemberParam = shared.IamMemberParam // This is an alias to an internal type. -type User = shared.User +type IamMemberRoleParam = shared.IamMemberRoleParam // This is an alias to an internal type. -type UserRole = shared.UserRole +type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam // This is an alias to an internal type. -type UserRolesPermissions = shared.UserRolesPermissions +type IamMemberUserParam = shared.IamMemberUserParam // This is an alias to an internal type. -type UserUser = shared.UserUser +type Permission = shared.Permission // This is an alias to an internal type. -type UserParam = shared.UserParam +type PermissionGrant = shared.PermissionGrant // This is an alias to an internal type. -type UserRoleParam = shared.UserRoleParam +type PermissionGrantParam = shared.PermissionGrantParam // This is an alias to an internal type. -type UserRolesPermissionsParam = shared.UserRolesPermissionsParam +type ResponseInfo = shared.ResponseInfo // This is an alias to an internal type. -type UserUserParam = shared.UserUserParam +type Role = shared.Role From 24099461a67f2d63aa7395d6b7faad59d788d6d5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 17 Apr 2024 00:34:08 +0000 Subject: [PATCH 29/52] feat(api): update via SDK Studio (#1813) --- client.go | 8 ++++---- internal/requestconfig/requestconfig.go | 2 +- option/requestoption.go | 16 ++++++++-------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/client.go b/client.go index d3385f9e12d..64360fdedad 100644 --- a/client.go +++ b/client.go @@ -181,21 +181,21 @@ type Client struct { } // NewClient generates a new client with the default option read from the -// environment (CLOUDFLARE_API_KEY, CLOUDFLARE_EMAIL, CLOUDFLARE_API_TOKEN, +// environment (CLOUDFLARE_API_TOKEN, CLOUDFLARE_API_KEY, CLOUDFLARE_EMAIL, // CLOUDFLARE_API_USER_SERVICE_KEY). The option passed in as arguments are applied // after these default arguments, and all option will be passed down to the // services and requests that this client makes. func NewClient(opts ...option.RequestOption) (r *Client) { defaults := []option.RequestOption{option.WithEnvironmentProduction()} + if o, ok := os.LookupEnv("CLOUDFLARE_API_TOKEN"); ok { + defaults = append(defaults, option.WithAPIToken(o)) + } if o, ok := os.LookupEnv("CLOUDFLARE_API_KEY"); ok { defaults = append(defaults, option.WithAPIKey(o)) } if o, ok := os.LookupEnv("CLOUDFLARE_EMAIL"); ok { defaults = append(defaults, option.WithAPIEmail(o)) } - if o, ok := os.LookupEnv("CLOUDFLARE_API_TOKEN"); ok { - defaults = append(defaults, option.WithAPIToken(o)) - } if o, ok := os.LookupEnv("CLOUDFLARE_API_USER_SERVICE_KEY"); ok { defaults = append(defaults, option.WithUserServiceKey(o)) } diff --git a/internal/requestconfig/requestconfig.go b/internal/requestconfig/requestconfig.go index 04b741eeb16..72a6d4c7a39 100644 --- a/internal/requestconfig/requestconfig.go +++ b/internal/requestconfig/requestconfig.go @@ -171,9 +171,9 @@ type RequestConfig struct { BaseURL *url.URL HTTPClient *http.Client Middlewares []middleware + APIToken string APIKey string APIEmail string - APIToken string UserServiceKey string // If ResponseBodyInto not nil, then we will attempt to deserialize into // ResponseBodyInto. If Destination is a []byte, then it will return the body as diff --git a/option/requestoption.go b/option/requestoption.go index 3dada6b2fbb..21c42bfdcf7 100644 --- a/option/requestoption.go +++ b/option/requestoption.go @@ -228,6 +228,14 @@ func WithEnvironmentProduction() RequestOption { return WithBaseURL("https://api.cloudflare.com/client/v4/") } +// WithAPIToken returns a RequestOption that sets the client setting "api_token". +func WithAPIToken(value string) RequestOption { + return func(r *requestconfig.RequestConfig) error { + r.APIToken = value + return r.Apply(WithHeader("authorization", fmt.Sprintf("Bearer %s", r.APIToken))) + } +} + // WithAPIKey returns a RequestOption that sets the client setting "api_key". func WithAPIKey(value string) RequestOption { return func(r *requestconfig.RequestConfig) error { @@ -244,14 +252,6 @@ func WithAPIEmail(value string) RequestOption { } } -// WithAPIToken returns a RequestOption that sets the client setting "api_token". -func WithAPIToken(value string) RequestOption { - return func(r *requestconfig.RequestConfig) error { - r.APIToken = value - return r.Apply(WithHeader("authorization", fmt.Sprintf("Bearer %s", r.APIToken))) - } -} - // WithUserServiceKey returns a RequestOption that sets the client setting "user_service_key". func WithUserServiceKey(value string) RequestOption { return func(r *requestconfig.RequestConfig) error { From 438a7c913a22e53abe682a86837dc2c1d9fc6af8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 17 Apr 2024 00:54:25 +0000 Subject: [PATCH 30/52] feat(api): update via SDK Studio (#1814) --- .stats.yml | 2 +- api.md | 28 ++ internal/shared/union.go | 1 + vectorize/index.go | 965 +++++++++++++++++++++++++++++++++++++++ vectorize/index_test.go | 328 +++++++++++++ 5 files changed, 1323 insertions(+), 1 deletion(-) create mode 100644 vectorize/index_test.go diff --git a/.stats.yml b/.stats.yml index 0a0068803e8..ae473c1891a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1 +1 @@ -configured_endpoints: 1249 +configured_endpoints: 1259 diff --git a/api.md b/api.md index 916ed4aedd7..2d0255e0908 100644 --- a/api.md +++ b/api.md @@ -5626,6 +5626,34 @@ Methods: ## Indexes +Params Types: + +- vectorize.IndexDimensionConfigurationParam + +Response Types: + +- vectorize.CreateIndex +- vectorize.IndexDeleteVectorsByID +- vectorize.IndexDimensionConfiguration +- vectorize.IndexInsert +- vectorize.IndexQuery +- vectorize.IndexUpsert +- vectorize.IndexDeleteResponseUnion +- vectorize.IndexGetByIDsResponse + +Methods: + +- client.Vectorize.Indexes.New(ctx context.Context, params vectorize.IndexNewParams) (vectorize.CreateIndex, error) +- client.Vectorize.Indexes.Update(ctx context.Context, indexName string, params vectorize.IndexUpdateParams) (vectorize.CreateIndex, error) +- client.Vectorize.Indexes.List(ctx context.Context, query vectorize.IndexListParams) (pagination.SinglePage[vectorize.CreateIndex], error) +- client.Vectorize.Indexes.Delete(ctx context.Context, indexName string, body vectorize.IndexDeleteParams) (vectorize.IndexDeleteResponseUnion, error) +- client.Vectorize.Indexes.DeleteByIDs(ctx context.Context, indexName string, params vectorize.IndexDeleteByIDsParams) (vectorize.IndexDeleteVectorsByID, error) +- client.Vectorize.Indexes.Get(ctx context.Context, indexName string, query vectorize.IndexGetParams) (vectorize.CreateIndex, error) +- client.Vectorize.Indexes.GetByIDs(ctx context.Context, indexName string, params vectorize.IndexGetByIDsParams) (vectorize.IndexGetByIDsResponse, error) +- client.Vectorize.Indexes.Insert(ctx context.Context, indexName string, params vectorize.IndexInsertParams) (vectorize.IndexInsert, error) +- client.Vectorize.Indexes.Query(ctx context.Context, indexName string, params vectorize.IndexQueryParams) (vectorize.IndexQuery, error) +- client.Vectorize.Indexes.Upsert(ctx context.Context, indexName string, params vectorize.IndexUpsertParams) (vectorize.IndexUpsert, error) + # URLScanner Response Types: diff --git a/internal/shared/union.go b/internal/shared/union.go index aef85ca578b..b1ef3d0ce8a 100644 --- a/internal/shared/union.go +++ b/internal/shared/union.go @@ -168,6 +168,7 @@ func (UnionString) ImplementsZeroTrustNetworkVirtualNetworkNewResponseUnion() func (UnionString) ImplementsZeroTrustNetworkVirtualNetworkDeleteResponseUnion() {} func (UnionString) ImplementsZeroTrustNetworkVirtualNetworkEditResponseUnion() {} func (UnionString) ImplementsHyperdriveConfigDeleteResponseUnion() {} +func (UnionString) ImplementsVectorizeIndexDeleteResponseUnion() {} func (UnionString) ImplementsRadarRankingTimeseriesGroupsResponseSerie0Union() {} func (UnionString) ImplementsOriginPostQuantumEncryptionOriginPostQuantumEncryptionUpdateResponseUnion() { } diff --git a/vectorize/index.go b/vectorize/index.go index 5051ebd824b..9002e014660 100644 --- a/vectorize/index.go +++ b/vectorize/index.go @@ -3,7 +3,18 @@ package vectorize import ( + "context" + "fmt" + "net/http" + "reflect" + + "github.com/cloudflare/cloudflare-go/v2/internal/apijson" + "github.com/cloudflare/cloudflare-go/v2/internal/pagination" + "github.com/cloudflare/cloudflare-go/v2/internal/param" + "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" + "github.com/cloudflare/cloudflare-go/v2/internal/shared" "github.com/cloudflare/cloudflare-go/v2/option" + "github.com/tidwall/gjson" ) // IndexService contains methods and other services that help with interacting with @@ -22,3 +33,957 @@ func NewIndexService(opts ...option.RequestOption) (r *IndexService) { r.Options = opts return } + +// Creates and returns a new Vectorize Index. +func (r *IndexService) New(ctx context.Context, params IndexNewParams, opts ...option.RequestOption) (res *CreateIndex, err error) { + opts = append(r.Options[:], opts...) + var env IndexNewResponseEnvelope + path := fmt.Sprintf("accounts/%s/vectorize/indexes", params.AccountID) + err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, params, &env, opts...) + if err != nil { + return + } + res = &env.Result + return +} + +// Updates and returns the specified Vectorize Index. +func (r *IndexService) Update(ctx context.Context, indexName string, params IndexUpdateParams, opts ...option.RequestOption) (res *CreateIndex, err error) { + opts = append(r.Options[:], opts...) + var env IndexUpdateResponseEnvelope + path := fmt.Sprintf("accounts/%s/vectorize/indexes/%s", params.AccountID, indexName) + err = requestconfig.ExecuteNewRequest(ctx, http.MethodPut, path, params, &env, opts...) + if err != nil { + return + } + res = &env.Result + return +} + +// Returns a list of Vectorize Indexes +func (r *IndexService) List(ctx context.Context, query IndexListParams, opts ...option.RequestOption) (res *pagination.SinglePage[CreateIndex], err error) { + var raw *http.Response + opts = append(r.Options, opts...) + opts = append([]option.RequestOption{option.WithResponseInto(&raw)}, opts...) + path := fmt.Sprintf("accounts/%s/vectorize/indexes", query.AccountID) + cfg, err := requestconfig.NewRequestConfig(ctx, http.MethodGet, path, query, &res, opts...) + if err != nil { + return nil, err + } + err = cfg.Execute() + if err != nil { + return nil, err + } + res.SetPageConfig(cfg, raw) + return res, nil +} + +// Returns a list of Vectorize Indexes +func (r *IndexService) ListAutoPaging(ctx context.Context, query IndexListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[CreateIndex] { + return pagination.NewSinglePageAutoPager(r.List(ctx, query, opts...)) +} + +// Deletes the specified Vectorize Index. +func (r *IndexService) Delete(ctx context.Context, indexName string, body IndexDeleteParams, opts ...option.RequestOption) (res *IndexDeleteResponseUnion, err error) { + opts = append(r.Options[:], opts...) + var env IndexDeleteResponseEnvelope + path := fmt.Sprintf("accounts/%s/vectorize/indexes/%s", body.AccountID, indexName) + err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, nil, &env, opts...) + if err != nil { + return + } + res = &env.Result + return +} + +// Delete a set of vectors from an index by their vector identifiers. +func (r *IndexService) DeleteByIDs(ctx context.Context, indexName string, params IndexDeleteByIDsParams, opts ...option.RequestOption) (res *IndexDeleteVectorsByID, err error) { + opts = append(r.Options[:], opts...) + var env IndexDeleteByIDsResponseEnvelope + path := fmt.Sprintf("accounts/%s/vectorize/indexes/%s/delete-by-ids", params.AccountID, indexName) + err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, params, &env, opts...) + if err != nil { + return + } + res = &env.Result + return +} + +// Returns the specified Vectorize Index. +func (r *IndexService) Get(ctx context.Context, indexName string, query IndexGetParams, opts ...option.RequestOption) (res *CreateIndex, err error) { + opts = append(r.Options[:], opts...) + var env IndexGetResponseEnvelope + path := fmt.Sprintf("accounts/%s/vectorize/indexes/%s", query.AccountID, indexName) + err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...) + if err != nil { + return + } + res = &env.Result + return +} + +// Get a set of vectors from an index by their vector identifiers. +func (r *IndexService) GetByIDs(ctx context.Context, indexName string, params IndexGetByIDsParams, opts ...option.RequestOption) (res *IndexGetByIDsResponse, err error) { + opts = append(r.Options[:], opts...) + var env IndexGetByIDsResponseEnvelope + path := fmt.Sprintf("accounts/%s/vectorize/indexes/%s/get-by-ids", params.AccountID, indexName) + err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, params, &env, opts...) + if err != nil { + return + } + res = &env.Result + return +} + +// Inserts vectors into the specified index and returns the count of the vectors +// successfully inserted. +func (r *IndexService) Insert(ctx context.Context, indexName string, params IndexInsertParams, opts ...option.RequestOption) (res *IndexInsert, err error) { + opts = append(r.Options[:], opts...) + var env IndexInsertResponseEnvelope + path := fmt.Sprintf("accounts/%s/vectorize/indexes/%s/insert", params.AccountID, indexName) + err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, params, &env, opts...) + if err != nil { + return + } + res = &env.Result + return +} + +// Finds vectors closest to a given vector in an index. +func (r *IndexService) Query(ctx context.Context, indexName string, params IndexQueryParams, opts ...option.RequestOption) (res *IndexQuery, err error) { + opts = append(r.Options[:], opts...) + var env IndexQueryResponseEnvelope + path := fmt.Sprintf("accounts/%s/vectorize/indexes/%s/query", params.AccountID, indexName) + err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, params, &env, opts...) + if err != nil { + return + } + res = &env.Result + return +} + +// Upserts vectors into the specified index, creating them if they do not exist and +// returns the count of values and ids successfully inserted. +func (r *IndexService) Upsert(ctx context.Context, indexName string, params IndexUpsertParams, opts ...option.RequestOption) (res *IndexUpsert, err error) { + opts = append(r.Options[:], opts...) + var env IndexUpsertResponseEnvelope + path := fmt.Sprintf("accounts/%s/vectorize/indexes/%s/upsert", params.AccountID, indexName) + err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, params, &env, opts...) + if err != nil { + return + } + res = &env.Result + return +} + +type CreateIndex struct { + Config IndexDimensionConfiguration `json:"config"` + // Specifies the timestamp the resource was created as an ISO8601 string. + CreatedOn string `json:"created_on"` + // Specifies the description of the index. + Description string `json:"description"` + // Specifies the timestamp the resource was modified as an ISO8601 string. + ModifiedOn string `json:"modified_on"` + Name string `json:"name"` + JSON createIndexJSON `json:"-"` +} + +// createIndexJSON contains the JSON metadata for the struct [CreateIndex] +type createIndexJSON struct { + Config apijson.Field + CreatedOn apijson.Field + Description apijson.Field + ModifiedOn apijson.Field + Name apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *CreateIndex) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r createIndexJSON) RawJSON() string { + return r.raw +} + +type IndexDeleteVectorsByID struct { + // The count of the vectors successfully deleted. + Count int64 `json:"count"` + // Array of vector identifiers of the vectors that were successfully processed for + // deletion. + IDs []string `json:"ids"` + JSON indexDeleteVectorsByIDJSON `json:"-"` +} + +// indexDeleteVectorsByIDJSON contains the JSON metadata for the struct +// [IndexDeleteVectorsByID] +type indexDeleteVectorsByIDJSON struct { + Count apijson.Field + IDs apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *IndexDeleteVectorsByID) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r indexDeleteVectorsByIDJSON) RawJSON() string { + return r.raw +} + +type IndexDimensionConfiguration struct { + // Specifies the number of dimensions for the index + Dimensions int64 `json:"dimensions,required"` + // Specifies the type of metric to use calculating distance. + Metric IndexDimensionConfigurationMetric `json:"metric,required"` + JSON indexDimensionConfigurationJSON `json:"-"` +} + +// indexDimensionConfigurationJSON contains the JSON metadata for the struct +// [IndexDimensionConfiguration] +type indexDimensionConfigurationJSON struct { + Dimensions apijson.Field + Metric apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *IndexDimensionConfiguration) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r indexDimensionConfigurationJSON) RawJSON() string { + return r.raw +} + +// Specifies the type of metric to use calculating distance. +type IndexDimensionConfigurationMetric string + +const ( + IndexDimensionConfigurationMetricCosine IndexDimensionConfigurationMetric = "cosine" + IndexDimensionConfigurationMetricEuclidean IndexDimensionConfigurationMetric = "euclidean" + IndexDimensionConfigurationMetricDotProduct IndexDimensionConfigurationMetric = "dot-product" +) + +func (r IndexDimensionConfigurationMetric) IsKnown() bool { + switch r { + case IndexDimensionConfigurationMetricCosine, IndexDimensionConfigurationMetricEuclidean, IndexDimensionConfigurationMetricDotProduct: + return true + } + return false +} + +type IndexDimensionConfigurationParam struct { + // Specifies the number of dimensions for the index + Dimensions param.Field[int64] `json:"dimensions,required"` + // Specifies the type of metric to use calculating distance. + Metric param.Field[IndexDimensionConfigurationMetric] `json:"metric,required"` +} + +func (r IndexDimensionConfigurationParam) MarshalJSON() (data []byte, err error) { + return apijson.MarshalRoot(r) +} + +func (r IndexDimensionConfigurationParam) implementsVectorizeIndexNewParamsConfigUnion() {} + +type IndexInsert struct { + // Specifies the count of the vectors successfully inserted. + Count int64 `json:"count"` + // Array of vector identifiers of the vectors successfully inserted. + IDs []string `json:"ids"` + JSON indexInsertJSON `json:"-"` +} + +// indexInsertJSON contains the JSON metadata for the struct [IndexInsert] +type indexInsertJSON struct { + Count apijson.Field + IDs apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *IndexInsert) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r indexInsertJSON) RawJSON() string { + return r.raw +} + +type IndexQuery struct { + // Specifies the count of vectors returned by the search + Count int64 `json:"count"` + // Array of vectors matched by the search + Matches []IndexQueryMatch `json:"matches"` + JSON indexQueryJSON `json:"-"` +} + +// indexQueryJSON contains the JSON metadata for the struct [IndexQuery] +type indexQueryJSON struct { + Count apijson.Field + Matches apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *IndexQuery) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r indexQueryJSON) RawJSON() string { + return r.raw +} + +type IndexQueryMatch struct { + // Identifier + ID string `json:"id"` + Metadata interface{} `json:"metadata,nullable"` + // The score of the vector according to the index's distance metric + Score float64 `json:"score"` + Values []float64 `json:"values,nullable"` + JSON indexQueryMatchJSON `json:"-"` +} + +// indexQueryMatchJSON contains the JSON metadata for the struct [IndexQueryMatch] +type indexQueryMatchJSON struct { + ID apijson.Field + Metadata apijson.Field + Score apijson.Field + Values apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *IndexQueryMatch) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r indexQueryMatchJSON) RawJSON() string { + return r.raw +} + +type IndexUpsert struct { + // Specifies the count of the vectors successfully inserted. + Count int64 `json:"count"` + // Array of vector identifiers of the vectors successfully inserted. + IDs []string `json:"ids"` + JSON indexUpsertJSON `json:"-"` +} + +// indexUpsertJSON contains the JSON metadata for the struct [IndexUpsert] +type indexUpsertJSON struct { + Count apijson.Field + IDs apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *IndexUpsert) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r indexUpsertJSON) RawJSON() string { + return r.raw +} + +// Union satisfied by [vectorize.IndexDeleteResponseUnknown] or +// [shared.UnionString]. +type IndexDeleteResponseUnion interface { + ImplementsVectorizeIndexDeleteResponseUnion() +} + +func init() { + apijson.RegisterUnion( + reflect.TypeOf((*IndexDeleteResponseUnion)(nil)).Elem(), + "", + apijson.UnionVariant{ + TypeFilter: gjson.String, + Type: reflect.TypeOf(shared.UnionString("")), + }, + ) +} + +type IndexGetByIDsResponse = interface{} + +type IndexNewParams struct { + // Identifier + AccountID param.Field[string] `path:"account_id,required"` + // Specifies the type of configuration to use for the index. + Config param.Field[IndexNewParamsConfigUnion] `json:"config,required"` + Name param.Field[string] `json:"name,required"` + // Specifies the description of the index. + Description param.Field[string] `json:"description"` +} + +func (r IndexNewParams) MarshalJSON() (data []byte, err error) { + return apijson.MarshalRoot(r) +} + +// Specifies the type of configuration to use for the index. +type IndexNewParamsConfig struct { + // Specifies the number of dimensions for the index + Dimensions param.Field[int64] `json:"dimensions"` + // Specifies the type of metric to use calculating distance. + Metric param.Field[IndexNewParamsConfigMetric] `json:"metric"` + // Specifies the preset to use for the index. + Preset param.Field[IndexNewParamsConfigPreset] `json:"preset"` +} + +func (r IndexNewParamsConfig) MarshalJSON() (data []byte, err error) { + return apijson.MarshalRoot(r) +} + +func (r IndexNewParamsConfig) implementsVectorizeIndexNewParamsConfigUnion() {} + +// Specifies the type of configuration to use for the index. +// +// Satisfied by [vectorize.IndexDimensionConfigurationParam], +// [vectorize.IndexNewParamsConfigVectorizeIndexPresetConfiguration], +// [IndexNewParamsConfig]. +type IndexNewParamsConfigUnion interface { + implementsVectorizeIndexNewParamsConfigUnion() +} + +type IndexNewParamsConfigVectorizeIndexPresetConfiguration struct { + // Specifies the preset to use for the index. + Preset param.Field[IndexNewParamsConfigVectorizeIndexPresetConfigurationPreset] `json:"preset,required"` +} + +func (r IndexNewParamsConfigVectorizeIndexPresetConfiguration) MarshalJSON() (data []byte, err error) { + return apijson.MarshalRoot(r) +} + +func (r IndexNewParamsConfigVectorizeIndexPresetConfiguration) implementsVectorizeIndexNewParamsConfigUnion() { +} + +// Specifies the preset to use for the index. +type IndexNewParamsConfigVectorizeIndexPresetConfigurationPreset string + +const ( + IndexNewParamsConfigVectorizeIndexPresetConfigurationPresetCfBaaiBgeSmallEnV1_5 IndexNewParamsConfigVectorizeIndexPresetConfigurationPreset = "@cf/baai/bge-small-en-v1.5" + IndexNewParamsConfigVectorizeIndexPresetConfigurationPresetCfBaaiBgeBaseEnV1_5 IndexNewParamsConfigVectorizeIndexPresetConfigurationPreset = "@cf/baai/bge-base-en-v1.5" + IndexNewParamsConfigVectorizeIndexPresetConfigurationPresetCfBaaiBgeLargeEnV1_5 IndexNewParamsConfigVectorizeIndexPresetConfigurationPreset = "@cf/baai/bge-large-en-v1.5" + IndexNewParamsConfigVectorizeIndexPresetConfigurationPresetOpenAITextEmbeddingAda002 IndexNewParamsConfigVectorizeIndexPresetConfigurationPreset = "openai/text-embedding-ada-002" + IndexNewParamsConfigVectorizeIndexPresetConfigurationPresetCohereEmbedMultilingualV2_0 IndexNewParamsConfigVectorizeIndexPresetConfigurationPreset = "cohere/embed-multilingual-v2.0" +) + +func (r IndexNewParamsConfigVectorizeIndexPresetConfigurationPreset) IsKnown() bool { + switch r { + case IndexNewParamsConfigVectorizeIndexPresetConfigurationPresetCfBaaiBgeSmallEnV1_5, IndexNewParamsConfigVectorizeIndexPresetConfigurationPresetCfBaaiBgeBaseEnV1_5, IndexNewParamsConfigVectorizeIndexPresetConfigurationPresetCfBaaiBgeLargeEnV1_5, IndexNewParamsConfigVectorizeIndexPresetConfigurationPresetOpenAITextEmbeddingAda002, IndexNewParamsConfigVectorizeIndexPresetConfigurationPresetCohereEmbedMultilingualV2_0: + return true + } + return false +} + +// Specifies the type of metric to use calculating distance. +type IndexNewParamsConfigMetric string + +const ( + IndexNewParamsConfigMetricCosine IndexNewParamsConfigMetric = "cosine" + IndexNewParamsConfigMetricEuclidean IndexNewParamsConfigMetric = "euclidean" + IndexNewParamsConfigMetricDotProduct IndexNewParamsConfigMetric = "dot-product" +) + +func (r IndexNewParamsConfigMetric) IsKnown() bool { + switch r { + case IndexNewParamsConfigMetricCosine, IndexNewParamsConfigMetricEuclidean, IndexNewParamsConfigMetricDotProduct: + return true + } + return false +} + +// Specifies the preset to use for the index. +type IndexNewParamsConfigPreset string + +const ( + IndexNewParamsConfigPresetCfBaaiBgeSmallEnV1_5 IndexNewParamsConfigPreset = "@cf/baai/bge-small-en-v1.5" + IndexNewParamsConfigPresetCfBaaiBgeBaseEnV1_5 IndexNewParamsConfigPreset = "@cf/baai/bge-base-en-v1.5" + IndexNewParamsConfigPresetCfBaaiBgeLargeEnV1_5 IndexNewParamsConfigPreset = "@cf/baai/bge-large-en-v1.5" + IndexNewParamsConfigPresetOpenAITextEmbeddingAda002 IndexNewParamsConfigPreset = "openai/text-embedding-ada-002" + IndexNewParamsConfigPresetCohereEmbedMultilingualV2_0 IndexNewParamsConfigPreset = "cohere/embed-multilingual-v2.0" +) + +func (r IndexNewParamsConfigPreset) IsKnown() bool { + switch r { + case IndexNewParamsConfigPresetCfBaaiBgeSmallEnV1_5, IndexNewParamsConfigPresetCfBaaiBgeBaseEnV1_5, IndexNewParamsConfigPresetCfBaaiBgeLargeEnV1_5, IndexNewParamsConfigPresetOpenAITextEmbeddingAda002, IndexNewParamsConfigPresetCohereEmbedMultilingualV2_0: + return true + } + return false +} + +type IndexNewResponseEnvelope struct { + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + Result CreateIndex `json:"result,required,nullable"` + // Whether the API call was successful + Success IndexNewResponseEnvelopeSuccess `json:"success,required"` + JSON indexNewResponseEnvelopeJSON `json:"-"` +} + +// indexNewResponseEnvelopeJSON contains the JSON metadata for the struct +// [IndexNewResponseEnvelope] +type indexNewResponseEnvelopeJSON struct { + Errors apijson.Field + Messages apijson.Field + Result apijson.Field + Success apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *IndexNewResponseEnvelope) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r indexNewResponseEnvelopeJSON) RawJSON() string { + return r.raw +} + +// Whether the API call was successful +type IndexNewResponseEnvelopeSuccess bool + +const ( + IndexNewResponseEnvelopeSuccessTrue IndexNewResponseEnvelopeSuccess = true +) + +func (r IndexNewResponseEnvelopeSuccess) IsKnown() bool { + switch r { + case IndexNewResponseEnvelopeSuccessTrue: + return true + } + return false +} + +type IndexUpdateParams struct { + // Identifier + AccountID param.Field[string] `path:"account_id,required"` + // Specifies the description of the index. + Description param.Field[string] `json:"description,required"` +} + +func (r IndexUpdateParams) MarshalJSON() (data []byte, err error) { + return apijson.MarshalRoot(r) +} + +type IndexUpdateResponseEnvelope struct { + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + Result CreateIndex `json:"result,required,nullable"` + // Whether the API call was successful + Success IndexUpdateResponseEnvelopeSuccess `json:"success,required"` + JSON indexUpdateResponseEnvelopeJSON `json:"-"` +} + +// indexUpdateResponseEnvelopeJSON contains the JSON metadata for the struct +// [IndexUpdateResponseEnvelope] +type indexUpdateResponseEnvelopeJSON struct { + Errors apijson.Field + Messages apijson.Field + Result apijson.Field + Success apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *IndexUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r indexUpdateResponseEnvelopeJSON) RawJSON() string { + return r.raw +} + +// Whether the API call was successful +type IndexUpdateResponseEnvelopeSuccess bool + +const ( + IndexUpdateResponseEnvelopeSuccessTrue IndexUpdateResponseEnvelopeSuccess = true +) + +func (r IndexUpdateResponseEnvelopeSuccess) IsKnown() bool { + switch r { + case IndexUpdateResponseEnvelopeSuccessTrue: + return true + } + return false +} + +type IndexListParams struct { + // Identifier + AccountID param.Field[string] `path:"account_id,required"` +} + +type IndexDeleteParams struct { + // Identifier + AccountID param.Field[string] `path:"account_id,required"` +} + +type IndexDeleteResponseEnvelope struct { + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + Result IndexDeleteResponseUnion `json:"result,required"` + // Whether the API call was successful + Success IndexDeleteResponseEnvelopeSuccess `json:"success,required"` + JSON indexDeleteResponseEnvelopeJSON `json:"-"` +} + +// indexDeleteResponseEnvelopeJSON contains the JSON metadata for the struct +// [IndexDeleteResponseEnvelope] +type indexDeleteResponseEnvelopeJSON struct { + Errors apijson.Field + Messages apijson.Field + Result apijson.Field + Success apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *IndexDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r indexDeleteResponseEnvelopeJSON) RawJSON() string { + return r.raw +} + +// Whether the API call was successful +type IndexDeleteResponseEnvelopeSuccess bool + +const ( + IndexDeleteResponseEnvelopeSuccessTrue IndexDeleteResponseEnvelopeSuccess = true +) + +func (r IndexDeleteResponseEnvelopeSuccess) IsKnown() bool { + switch r { + case IndexDeleteResponseEnvelopeSuccessTrue: + return true + } + return false +} + +type IndexDeleteByIDsParams struct { + // Identifier + AccountID param.Field[string] `path:"account_id,required"` + // A list of vector identifiers to delete from the index indicated by the path. + IDs param.Field[[]string] `json:"ids"` +} + +func (r IndexDeleteByIDsParams) MarshalJSON() (data []byte, err error) { + return apijson.MarshalRoot(r) +} + +type IndexDeleteByIDsResponseEnvelope struct { + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + Result IndexDeleteVectorsByID `json:"result,required,nullable"` + // Whether the API call was successful + Success IndexDeleteByIDsResponseEnvelopeSuccess `json:"success,required"` + JSON indexDeleteByIDsResponseEnvelopeJSON `json:"-"` +} + +// indexDeleteByIDsResponseEnvelopeJSON contains the JSON metadata for the struct +// [IndexDeleteByIDsResponseEnvelope] +type indexDeleteByIDsResponseEnvelopeJSON struct { + Errors apijson.Field + Messages apijson.Field + Result apijson.Field + Success apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *IndexDeleteByIDsResponseEnvelope) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r indexDeleteByIDsResponseEnvelopeJSON) RawJSON() string { + return r.raw +} + +// Whether the API call was successful +type IndexDeleteByIDsResponseEnvelopeSuccess bool + +const ( + IndexDeleteByIDsResponseEnvelopeSuccessTrue IndexDeleteByIDsResponseEnvelopeSuccess = true +) + +func (r IndexDeleteByIDsResponseEnvelopeSuccess) IsKnown() bool { + switch r { + case IndexDeleteByIDsResponseEnvelopeSuccessTrue: + return true + } + return false +} + +type IndexGetParams struct { + // Identifier + AccountID param.Field[string] `path:"account_id,required"` +} + +type IndexGetResponseEnvelope struct { + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + Result CreateIndex `json:"result,required,nullable"` + // Whether the API call was successful + Success IndexGetResponseEnvelopeSuccess `json:"success,required"` + JSON indexGetResponseEnvelopeJSON `json:"-"` +} + +// indexGetResponseEnvelopeJSON contains the JSON metadata for the struct +// [IndexGetResponseEnvelope] +type indexGetResponseEnvelopeJSON struct { + Errors apijson.Field + Messages apijson.Field + Result apijson.Field + Success apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *IndexGetResponseEnvelope) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r indexGetResponseEnvelopeJSON) RawJSON() string { + return r.raw +} + +// Whether the API call was successful +type IndexGetResponseEnvelopeSuccess bool + +const ( + IndexGetResponseEnvelopeSuccessTrue IndexGetResponseEnvelopeSuccess = true +) + +func (r IndexGetResponseEnvelopeSuccess) IsKnown() bool { + switch r { + case IndexGetResponseEnvelopeSuccessTrue: + return true + } + return false +} + +type IndexGetByIDsParams struct { + // Identifier + AccountID param.Field[string] `path:"account_id,required"` + // A list of vector identifiers to retrieve from the index indicated by the path. + IDs param.Field[[]string] `json:"ids"` +} + +func (r IndexGetByIDsParams) MarshalJSON() (data []byte, err error) { + return apijson.MarshalRoot(r) +} + +type IndexGetByIDsResponseEnvelope struct { + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + // Array of vectors with matching ids. + Result IndexGetByIDsResponse `json:"result,required,nullable"` + // Whether the API call was successful + Success IndexGetByIDsResponseEnvelopeSuccess `json:"success,required"` + JSON indexGetByIDsResponseEnvelopeJSON `json:"-"` +} + +// indexGetByIDsResponseEnvelopeJSON contains the JSON metadata for the struct +// [IndexGetByIDsResponseEnvelope] +type indexGetByIDsResponseEnvelopeJSON struct { + Errors apijson.Field + Messages apijson.Field + Result apijson.Field + Success apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *IndexGetByIDsResponseEnvelope) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r indexGetByIDsResponseEnvelopeJSON) RawJSON() string { + return r.raw +} + +// Whether the API call was successful +type IndexGetByIDsResponseEnvelopeSuccess bool + +const ( + IndexGetByIDsResponseEnvelopeSuccessTrue IndexGetByIDsResponseEnvelopeSuccess = true +) + +func (r IndexGetByIDsResponseEnvelopeSuccess) IsKnown() bool { + switch r { + case IndexGetByIDsResponseEnvelopeSuccessTrue: + return true + } + return false +} + +type IndexInsertParams struct { + // Identifier + AccountID param.Field[string] `path:"account_id,required"` + Body interface{} `json:"body,required"` +} + +func (r IndexInsertParams) MarshalJSON() (data []byte, err error) { + return apijson.MarshalRoot(r.Body) +} + +type IndexInsertResponseEnvelope struct { + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + Result IndexInsert `json:"result,required,nullable"` + // Whether the API call was successful + Success IndexInsertResponseEnvelopeSuccess `json:"success,required"` + JSON indexInsertResponseEnvelopeJSON `json:"-"` +} + +// indexInsertResponseEnvelopeJSON contains the JSON metadata for the struct +// [IndexInsertResponseEnvelope] +type indexInsertResponseEnvelopeJSON struct { + Errors apijson.Field + Messages apijson.Field + Result apijson.Field + Success apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *IndexInsertResponseEnvelope) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r indexInsertResponseEnvelopeJSON) RawJSON() string { + return r.raw +} + +// Whether the API call was successful +type IndexInsertResponseEnvelopeSuccess bool + +const ( + IndexInsertResponseEnvelopeSuccessTrue IndexInsertResponseEnvelopeSuccess = true +) + +func (r IndexInsertResponseEnvelopeSuccess) IsKnown() bool { + switch r { + case IndexInsertResponseEnvelopeSuccessTrue: + return true + } + return false +} + +type IndexQueryParams struct { + // Identifier + AccountID param.Field[string] `path:"account_id,required"` + // The search vector that will be used to find the nearest neighbors. + Vector param.Field[[]float64] `json:"vector,required"` + // A metadata filter expression used to limit nearest neighbor results. + Filter param.Field[interface{}] `json:"filter"` + // Whether to return the metadata associated with the closest vectors. + ReturnMetadata param.Field[bool] `json:"returnMetadata"` + // Whether to return the values associated with the closest vectors. + ReturnValues param.Field[bool] `json:"returnValues"` + // The number of nearest neighbors to find. + TopK param.Field[float64] `json:"topK"` +} + +func (r IndexQueryParams) MarshalJSON() (data []byte, err error) { + return apijson.MarshalRoot(r) +} + +type IndexQueryResponseEnvelope struct { + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + Result IndexQuery `json:"result,required,nullable"` + // Whether the API call was successful + Success IndexQueryResponseEnvelopeSuccess `json:"success,required"` + JSON indexQueryResponseEnvelopeJSON `json:"-"` +} + +// indexQueryResponseEnvelopeJSON contains the JSON metadata for the struct +// [IndexQueryResponseEnvelope] +type indexQueryResponseEnvelopeJSON struct { + Errors apijson.Field + Messages apijson.Field + Result apijson.Field + Success apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *IndexQueryResponseEnvelope) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r indexQueryResponseEnvelopeJSON) RawJSON() string { + return r.raw +} + +// Whether the API call was successful +type IndexQueryResponseEnvelopeSuccess bool + +const ( + IndexQueryResponseEnvelopeSuccessTrue IndexQueryResponseEnvelopeSuccess = true +) + +func (r IndexQueryResponseEnvelopeSuccess) IsKnown() bool { + switch r { + case IndexQueryResponseEnvelopeSuccessTrue: + return true + } + return false +} + +type IndexUpsertParams struct { + // Identifier + AccountID param.Field[string] `path:"account_id,required"` + Body interface{} `json:"body,required"` +} + +func (r IndexUpsertParams) MarshalJSON() (data []byte, err error) { + return apijson.MarshalRoot(r.Body) +} + +type IndexUpsertResponseEnvelope struct { + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + Result IndexUpsert `json:"result,required,nullable"` + // Whether the API call was successful + Success IndexUpsertResponseEnvelopeSuccess `json:"success,required"` + JSON indexUpsertResponseEnvelopeJSON `json:"-"` +} + +// indexUpsertResponseEnvelopeJSON contains the JSON metadata for the struct +// [IndexUpsertResponseEnvelope] +type indexUpsertResponseEnvelopeJSON struct { + Errors apijson.Field + Messages apijson.Field + Result apijson.Field + Success apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *IndexUpsertResponseEnvelope) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r indexUpsertResponseEnvelopeJSON) RawJSON() string { + return r.raw +} + +// Whether the API call was successful +type IndexUpsertResponseEnvelopeSuccess bool + +const ( + IndexUpsertResponseEnvelopeSuccessTrue IndexUpsertResponseEnvelopeSuccess = true +) + +func (r IndexUpsertResponseEnvelopeSuccess) IsKnown() bool { + switch r { + case IndexUpsertResponseEnvelopeSuccessTrue: + return true + } + return false +} diff --git a/vectorize/index_test.go b/vectorize/index_test.go new file mode 100644 index 00000000000..8b2b7e37c98 --- /dev/null +++ b/vectorize/index_test.go @@ -0,0 +1,328 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +package vectorize_test + +import ( + "context" + "errors" + "os" + "testing" + + "github.com/cloudflare/cloudflare-go/v2" + "github.com/cloudflare/cloudflare-go/v2/internal/testutil" + "github.com/cloudflare/cloudflare-go/v2/option" + "github.com/cloudflare/cloudflare-go/v2/vectorize" +) + +func TestIndexNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") + baseURL := "http://localhost:4010" + if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { + baseURL = envURL + } + if !testutil.CheckTestServer(t, baseURL) { + return + } + client := cloudflare.NewClient( + option.WithBaseURL(baseURL), + option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), + option.WithAPIEmail("user@example.com"), + ) + _, err := client.Vectorize.Indexes.New(context.TODO(), vectorize.IndexNewParams{ + AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), + Config: cloudflare.F[vectorize.IndexNewParamsConfigUnion](vectorize.IndexDimensionConfigurationParam{ + Dimensions: cloudflare.F(int64(768)), + Metric: cloudflare.F(vectorize.IndexDimensionConfigurationMetricCosine), + }), + Name: cloudflare.F("example-index"), + Description: cloudflare.F("This is my example index."), + }) + if err != nil { + var apierr *cloudflare.Error + if errors.As(err, &apierr) { + t.Log(string(apierr.DumpRequest(true))) + } + t.Fatalf("err should be nil: %s", err.Error()) + } +} + +func TestIndexUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") + baseURL := "http://localhost:4010" + if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { + baseURL = envURL + } + if !testutil.CheckTestServer(t, baseURL) { + return + } + client := cloudflare.NewClient( + option.WithBaseURL(baseURL), + option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), + option.WithAPIEmail("user@example.com"), + ) + _, err := client.Vectorize.Indexes.Update( + context.TODO(), + "example-index", + vectorize.IndexUpdateParams{ + AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), + Description: cloudflare.F("This is my example index."), + }, + ) + if err != nil { + var apierr *cloudflare.Error + if errors.As(err, &apierr) { + t.Log(string(apierr.DumpRequest(true))) + } + t.Fatalf("err should be nil: %s", err.Error()) + } +} + +func TestIndexList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") + baseURL := "http://localhost:4010" + if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { + baseURL = envURL + } + if !testutil.CheckTestServer(t, baseURL) { + return + } + client := cloudflare.NewClient( + option.WithBaseURL(baseURL), + option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), + option.WithAPIEmail("user@example.com"), + ) + _, err := client.Vectorize.Indexes.List(context.TODO(), vectorize.IndexListParams{ + AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), + }) + if err != nil { + var apierr *cloudflare.Error + if errors.As(err, &apierr) { + t.Log(string(apierr.DumpRequest(true))) + } + t.Fatalf("err should be nil: %s", err.Error()) + } +} + +func TestIndexDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") + baseURL := "http://localhost:4010" + if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { + baseURL = envURL + } + if !testutil.CheckTestServer(t, baseURL) { + return + } + client := cloudflare.NewClient( + option.WithBaseURL(baseURL), + option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), + option.WithAPIEmail("user@example.com"), + ) + _, err := client.Vectorize.Indexes.Delete( + context.TODO(), + "example-index", + vectorize.IndexDeleteParams{ + AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), + }, + ) + if err != nil { + var apierr *cloudflare.Error + if errors.As(err, &apierr) { + t.Log(string(apierr.DumpRequest(true))) + } + t.Fatalf("err should be nil: %s", err.Error()) + } +} + +func TestIndexDeleteByIDsWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") + baseURL := "http://localhost:4010" + if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { + baseURL = envURL + } + if !testutil.CheckTestServer(t, baseURL) { + return + } + client := cloudflare.NewClient( + option.WithBaseURL(baseURL), + option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), + option.WithAPIEmail("user@example.com"), + ) + _, err := client.Vectorize.Indexes.DeleteByIDs( + context.TODO(), + "example-index", + vectorize.IndexDeleteByIDsParams{ + AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), + IDs: cloudflare.F([]string{"5121db81354a40c6aedc3fe1ace51c59", "f90eb49c2107486abdfd78c67e853430"}), + }, + ) + if err != nil { + var apierr *cloudflare.Error + if errors.As(err, &apierr) { + t.Log(string(apierr.DumpRequest(true))) + } + t.Fatalf("err should be nil: %s", err.Error()) + } +} + +func TestIndexGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") + baseURL := "http://localhost:4010" + if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { + baseURL = envURL + } + if !testutil.CheckTestServer(t, baseURL) { + return + } + client := cloudflare.NewClient( + option.WithBaseURL(baseURL), + option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), + option.WithAPIEmail("user@example.com"), + ) + _, err := client.Vectorize.Indexes.Get( + context.TODO(), + "example-index", + vectorize.IndexGetParams{ + AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), + }, + ) + if err != nil { + var apierr *cloudflare.Error + if errors.As(err, &apierr) { + t.Log(string(apierr.DumpRequest(true))) + } + t.Fatalf("err should be nil: %s", err.Error()) + } +} + +func TestIndexGetByIDsWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") + baseURL := "http://localhost:4010" + if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { + baseURL = envURL + } + if !testutil.CheckTestServer(t, baseURL) { + return + } + client := cloudflare.NewClient( + option.WithBaseURL(baseURL), + option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), + option.WithAPIEmail("user@example.com"), + ) + _, err := client.Vectorize.Indexes.GetByIDs( + context.TODO(), + "example-index", + vectorize.IndexGetByIDsParams{ + AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), + IDs: cloudflare.F([]string{"5121db81354a40c6aedc3fe1ace51c59", "f90eb49c2107486abdfd78c67e853430"}), + }, + ) + if err != nil { + var apierr *cloudflare.Error + if errors.As(err, &apierr) { + t.Log(string(apierr.DumpRequest(true))) + } + t.Fatalf("err should be nil: %s", err.Error()) + } +} + +func TestIndexInsert(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") + baseURL := "http://localhost:4010" + if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { + baseURL = envURL + } + if !testutil.CheckTestServer(t, baseURL) { + return + } + client := cloudflare.NewClient( + option.WithBaseURL(baseURL), + option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), + option.WithAPIEmail("user@example.com"), + ) + _, err := client.Vectorize.Indexes.Insert( + context.TODO(), + "example-index", + vectorize.IndexInsertParams{ + AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), + Body: map[string]interface{}{}, + }, + ) + if err != nil { + var apierr *cloudflare.Error + if errors.As(err, &apierr) { + t.Log(string(apierr.DumpRequest(true))) + } + t.Fatalf("err should be nil: %s", err.Error()) + } +} + +func TestIndexQueryWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") + baseURL := "http://localhost:4010" + if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { + baseURL = envURL + } + if !testutil.CheckTestServer(t, baseURL) { + return + } + client := cloudflare.NewClient( + option.WithBaseURL(baseURL), + option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), + option.WithAPIEmail("user@example.com"), + ) + _, err := client.Vectorize.Indexes.Query( + context.TODO(), + "example-index", + vectorize.IndexQueryParams{ + AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), + Vector: cloudflare.F([]float64{0.500000, 0.500000, 0.500000}), + Filter: cloudflare.F[any](map[string]interface{}{ + "has_viewed": map[string]interface{}{ + "$ne": true, + }, + "streaming_platform": "netflix", + }), + ReturnMetadata: cloudflare.F(true), + ReturnValues: cloudflare.F(true), + TopK: cloudflare.F(5.000000), + }, + ) + if err != nil { + var apierr *cloudflare.Error + if errors.As(err, &apierr) { + t.Log(string(apierr.DumpRequest(true))) + } + t.Fatalf("err should be nil: %s", err.Error()) + } +} + +func TestIndexUpsert(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") + baseURL := "http://localhost:4010" + if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { + baseURL = envURL + } + if !testutil.CheckTestServer(t, baseURL) { + return + } + client := cloudflare.NewClient( + option.WithBaseURL(baseURL), + option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), + option.WithAPIEmail("user@example.com"), + ) + _, err := client.Vectorize.Indexes.Upsert( + context.TODO(), + "example-index", + vectorize.IndexUpsertParams{ + AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), + Body: map[string]interface{}{}, + }, + ) + if err != nil { + var apierr *cloudflare.Error + if errors.As(err, &apierr) { + t.Log(string(apierr.DumpRequest(true))) + } + t.Fatalf("err should be nil: %s", err.Error()) + } +} From 39d96dfe0021a26066fb83ac86e247fae596e462 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 17 Apr 2024 00:59:56 +0000 Subject: [PATCH 31/52] feat(api): update via SDK Studio (#1815) --- intel/ip.go | 4 ++-- zero_trust/dex.go | 4 ++-- zero_trust/dextraceroutetestresultnetworkpath.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/intel/ip.go b/intel/ip.go index 06f485310c3..ad18b856d69 100644 --- a/intel/ip.go +++ b/intel/ip.go @@ -110,13 +110,13 @@ type IPBelongsToRefType string const ( IPBelongsToRefTypeHostingProvider IPBelongsToRefType = "hosting_provider" - IPBelongsToRefTypeIsp IPBelongsToRefType = "isp" + IPBelongsToRefTypeISP IPBelongsToRefType = "isp" IPBelongsToRefTypeOrganization IPBelongsToRefType = "organization" ) func (r IPBelongsToRefType) IsKnown() bool { switch r { - case IPBelongsToRefTypeHostingProvider, IPBelongsToRefTypeIsp, IPBelongsToRefTypeOrganization: + case IPBelongsToRefTypeHostingProvider, IPBelongsToRefTypeISP, IPBelongsToRefTypeOrganization: return true } return false diff --git a/zero_trust/dex.go b/zero_trust/dex.go index f5d3b908970..44bc5fb21a2 100644 --- a/zero_trust/dex.go +++ b/zero_trust/dex.go @@ -98,7 +98,7 @@ type NetworkPathSlot struct { ClientToCfIngressRTTMs int64 `json:"clientToCfIngressRttMs,required,nullable"` Timestamp string `json:"timestamp,required"` // Round trip time in ms of the client to ISP mile - ClientToIspRTTMs int64 `json:"clientToIspRttMs,nullable"` + ClientToISPRTTMs int64 `json:"clientToIspRttMs,nullable"` JSON networkPathSlotJSON `json:"-"` } @@ -109,7 +109,7 @@ type networkPathSlotJSON struct { ClientToCfEgressRTTMs apijson.Field ClientToCfIngressRTTMs apijson.Field Timestamp apijson.Field - ClientToIspRTTMs apijson.Field + ClientToISPRTTMs apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/dextraceroutetestresultnetworkpath.go b/zero_trust/dextraceroutetestresultnetworkpath.go index d236c91b2ea..e84d879172b 100644 --- a/zero_trust/dextraceroutetestresultnetworkpath.go +++ b/zero_trust/dextraceroutetestresultnetworkpath.go @@ -153,12 +153,12 @@ const ( DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToApp DEXTracerouteTestResultNetworkPathGetResponseHopsMile = "client-to-app" DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToCfEgress DEXTracerouteTestResultNetworkPathGetResponseHopsMile = "client-to-cf-egress" DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToCfIngress DEXTracerouteTestResultNetworkPathGetResponseHopsMile = "client-to-cf-ingress" - DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToIsp DEXTracerouteTestResultNetworkPathGetResponseHopsMile = "client-to-isp" + DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToISP DEXTracerouteTestResultNetworkPathGetResponseHopsMile = "client-to-isp" ) func (r DEXTracerouteTestResultNetworkPathGetResponseHopsMile) IsKnown() bool { switch r { - case DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToApp, DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToCfEgress, DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToCfIngress, DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToIsp: + case DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToApp, DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToCfEgress, DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToCfIngress, DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToISP: return true } return false From 03cca00a0ebdda0b7ab51fee254e522320aa1fc5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 17 Apr 2024 14:16:43 +0000 Subject: [PATCH 32/52] feat(api): OpenAPI spec update via Stainless API (#1816) --- zero_trust/gateway.go | 8 ++++---- zero_trust/gatewayauditsshsetting.go | 8 ++++---- zero_trust/gatewayconfiguration.go | 24 ++++++++++++------------ zero_trust/gatewaylist.go | 28 ++++++++++++++-------------- zero_trust/gatewaylocation.go | 20 ++++++++++---------- zero_trust/gatewaylogging.go | 8 ++++---- zero_trust/gatewayproxyendpoint.go | 20 ++++++++++---------- zero_trust/gatewayrule.go | 20 ++++++++++---------- 8 files changed, 68 insertions(+), 68 deletions(-) diff --git a/zero_trust/gateway.go b/zero_trust/gateway.go index 43f1dc6fafc..25284bb80bf 100644 --- a/zero_trust/gateway.go +++ b/zero_trust/gateway.go @@ -138,9 +138,9 @@ type GatewayNewParams struct { type GatewayNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result GatewayNewResponse `json:"result,required"` // Whether the API call was successful Success GatewayNewResponseEnvelopeSuccess `json:"success,required"` + Result GatewayNewResponse `json:"result"` JSON gatewayNewResponseEnvelopeJSON `json:"-"` } @@ -149,8 +149,8 @@ type GatewayNewResponseEnvelope struct { type gatewayNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -185,9 +185,9 @@ type GatewayListParams struct { type GatewayListResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result GatewayListResponse `json:"result,required"` // Whether the API call was successful Success GatewayListResponseEnvelopeSuccess `json:"success,required"` + Result GatewayListResponse `json:"result"` JSON gatewayListResponseEnvelopeJSON `json:"-"` } @@ -196,8 +196,8 @@ type GatewayListResponseEnvelope struct { type gatewayListResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/gatewayauditsshsetting.go b/zero_trust/gatewayauditsshsetting.go index a04803dffdc..a4415d57ab9 100644 --- a/zero_trust/gatewayauditsshsetting.go +++ b/zero_trust/gatewayauditsshsetting.go @@ -102,9 +102,9 @@ func (r GatewayAuditSSHSettingUpdateParams) MarshalJSON() (data []byte, err erro type GatewayAuditSSHSettingUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result GatewaySettings `json:"result,required"` // Whether the API call was successful Success GatewayAuditSSHSettingUpdateResponseEnvelopeSuccess `json:"success,required"` + Result GatewaySettings `json:"result"` JSON gatewayAuditSSHSettingUpdateResponseEnvelopeJSON `json:"-"` } @@ -113,8 +113,8 @@ type GatewayAuditSSHSettingUpdateResponseEnvelope struct { type gatewayAuditSSHSettingUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -149,9 +149,9 @@ type GatewayAuditSSHSettingGetParams struct { type GatewayAuditSSHSettingGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result GatewaySettings `json:"result,required"` // Whether the API call was successful Success GatewayAuditSSHSettingGetResponseEnvelopeSuccess `json:"success,required"` + Result GatewaySettings `json:"result"` JSON gatewayAuditSSHSettingGetResponseEnvelopeJSON `json:"-"` } @@ -160,8 +160,8 @@ type GatewayAuditSSHSettingGetResponseEnvelope struct { type gatewayAuditSSHSettingGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/gatewayconfiguration.go b/zero_trust/gatewayconfiguration.go index 85e0f9cd131..8151e7dd53b 100644 --- a/zero_trust/gatewayconfiguration.go +++ b/zero_trust/gatewayconfiguration.go @@ -697,11 +697,11 @@ func (r GatewayConfigurationUpdateParams) MarshalJSON() (data []byte, err error) type GatewayConfigurationUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - // account settings. - Result GatewayConfigurationUpdateResponse `json:"result,required"` // Whether the API call was successful Success GatewayConfigurationUpdateResponseEnvelopeSuccess `json:"success,required"` - JSON gatewayConfigurationUpdateResponseEnvelopeJSON `json:"-"` + // account settings. + Result GatewayConfigurationUpdateResponse `json:"result"` + JSON gatewayConfigurationUpdateResponseEnvelopeJSON `json:"-"` } // gatewayConfigurationUpdateResponseEnvelopeJSON contains the JSON metadata for @@ -709,8 +709,8 @@ type GatewayConfigurationUpdateResponseEnvelope struct { type gatewayConfigurationUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -751,11 +751,11 @@ func (r GatewayConfigurationEditParams) MarshalJSON() (data []byte, err error) { type GatewayConfigurationEditResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - // account settings. - Result GatewayConfigurationEditResponse `json:"result,required"` // Whether the API call was successful Success GatewayConfigurationEditResponseEnvelopeSuccess `json:"success,required"` - JSON gatewayConfigurationEditResponseEnvelopeJSON `json:"-"` + // account settings. + Result GatewayConfigurationEditResponse `json:"result"` + JSON gatewayConfigurationEditResponseEnvelopeJSON `json:"-"` } // gatewayConfigurationEditResponseEnvelopeJSON contains the JSON metadata for the @@ -763,8 +763,8 @@ type GatewayConfigurationEditResponseEnvelope struct { type gatewayConfigurationEditResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -799,11 +799,11 @@ type GatewayConfigurationGetParams struct { type GatewayConfigurationGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - // account settings. - Result GatewayConfigurationGetResponse `json:"result,required"` // Whether the API call was successful Success GatewayConfigurationGetResponseEnvelopeSuccess `json:"success,required"` - JSON gatewayConfigurationGetResponseEnvelopeJSON `json:"-"` + // account settings. + Result GatewayConfigurationGetResponse `json:"result"` + JSON gatewayConfigurationGetResponseEnvelopeJSON `json:"-"` } // gatewayConfigurationGetResponseEnvelopeJSON contains the JSON metadata for the @@ -811,8 +811,8 @@ type GatewayConfigurationGetResponseEnvelope struct { type gatewayConfigurationGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/gatewaylist.go b/zero_trust/gatewaylist.go index fa1205d955e..f6ec411ce31 100644 --- a/zero_trust/gatewaylist.go +++ b/zero_trust/gatewaylist.go @@ -324,11 +324,11 @@ func (r GatewayListNewParamsType) IsKnown() bool { } type GatewayListNewResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result GatewayListNewResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success GatewayListNewResponseEnvelopeSuccess `json:"success,required"` + Result GatewayListNewResponse `json:"result"` JSON gatewayListNewResponseEnvelopeJSON `json:"-"` } @@ -337,8 +337,8 @@ type GatewayListNewResponseEnvelope struct { type gatewayListNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -381,9 +381,9 @@ func (r GatewayListUpdateParams) MarshalJSON() (data []byte, err error) { type GatewayListUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result GatewayList `json:"result,required"` // Whether the API call was successful Success GatewayListUpdateResponseEnvelopeSuccess `json:"success,required"` + Result GatewayList `json:"result"` JSON gatewayListUpdateResponseEnvelopeJSON `json:"-"` } @@ -392,8 +392,8 @@ type GatewayListUpdateResponseEnvelope struct { type gatewayListUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -435,11 +435,11 @@ func (r GatewayListDeleteParams) MarshalJSON() (data []byte, err error) { } type GatewayListDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result GatewayListDeleteResponseUnion `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success GatewayListDeleteResponseEnvelopeSuccess `json:"success,required"` + Result GatewayListDeleteResponseUnion `json:"result"` JSON gatewayListDeleteResponseEnvelopeJSON `json:"-"` } @@ -448,8 +448,8 @@ type GatewayListDeleteResponseEnvelope struct { type gatewayListDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -492,9 +492,9 @@ func (r GatewayListEditParams) MarshalJSON() (data []byte, err error) { type GatewayListEditResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result GatewayList `json:"result,required"` // Whether the API call was successful Success GatewayListEditResponseEnvelopeSuccess `json:"success,required"` + Result GatewayList `json:"result"` JSON gatewayListEditResponseEnvelopeJSON `json:"-"` } @@ -503,8 +503,8 @@ type GatewayListEditResponseEnvelope struct { type gatewayListEditResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -539,9 +539,9 @@ type GatewayListGetParams struct { type GatewayListGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result GatewayList `json:"result,required"` // Whether the API call was successful Success GatewayListGetResponseEnvelopeSuccess `json:"success,required"` + Result GatewayList `json:"result"` JSON gatewayListGetResponseEnvelopeJSON `json:"-"` } @@ -550,8 +550,8 @@ type GatewayListGetResponseEnvelope struct { type gatewayListGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/gatewaylocation.go b/zero_trust/gatewaylocation.go index 19a458cb651..fcb9ff2e4ed 100644 --- a/zero_trust/gatewaylocation.go +++ b/zero_trust/gatewaylocation.go @@ -222,9 +222,9 @@ func (r GatewayLocationNewParams) MarshalJSON() (data []byte, err error) { type GatewayLocationNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Location `json:"result,required"` // Whether the API call was successful Success GatewayLocationNewResponseEnvelopeSuccess `json:"success,required"` + Result Location `json:"result"` JSON gatewayLocationNewResponseEnvelopeJSON `json:"-"` } @@ -233,8 +233,8 @@ type GatewayLocationNewResponseEnvelope struct { type gatewayLocationNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -281,9 +281,9 @@ func (r GatewayLocationUpdateParams) MarshalJSON() (data []byte, err error) { type GatewayLocationUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Location `json:"result,required"` // Whether the API call was successful Success GatewayLocationUpdateResponseEnvelopeSuccess `json:"success,required"` + Result Location `json:"result"` JSON gatewayLocationUpdateResponseEnvelopeJSON `json:"-"` } @@ -292,8 +292,8 @@ type GatewayLocationUpdateResponseEnvelope struct { type gatewayLocationUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -335,11 +335,11 @@ func (r GatewayLocationDeleteParams) MarshalJSON() (data []byte, err error) { } type GatewayLocationDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result GatewayLocationDeleteResponseUnion `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success GatewayLocationDeleteResponseEnvelopeSuccess `json:"success,required"` + Result GatewayLocationDeleteResponseUnion `json:"result"` JSON gatewayLocationDeleteResponseEnvelopeJSON `json:"-"` } @@ -348,8 +348,8 @@ type GatewayLocationDeleteResponseEnvelope struct { type gatewayLocationDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -384,9 +384,9 @@ type GatewayLocationGetParams struct { type GatewayLocationGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Location `json:"result,required"` // Whether the API call was successful Success GatewayLocationGetResponseEnvelopeSuccess `json:"success,required"` + Result Location `json:"result"` JSON gatewayLocationGetResponseEnvelopeJSON `json:"-"` } @@ -395,8 +395,8 @@ type GatewayLocationGetResponseEnvelope struct { type gatewayLocationGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/gatewaylogging.go b/zero_trust/gatewaylogging.go index 1957ae2ffa8..ce1a5f92829 100644 --- a/zero_trust/gatewaylogging.go +++ b/zero_trust/gatewaylogging.go @@ -150,9 +150,9 @@ func (r GatewayLoggingUpdateParams) MarshalJSON() (data []byte, err error) { type GatewayLoggingUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result LoggingSetting `json:"result,required"` // Whether the API call was successful Success GatewayLoggingUpdateResponseEnvelopeSuccess `json:"success,required"` + Result LoggingSetting `json:"result"` JSON gatewayLoggingUpdateResponseEnvelopeJSON `json:"-"` } @@ -161,8 +161,8 @@ type GatewayLoggingUpdateResponseEnvelope struct { type gatewayLoggingUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -197,9 +197,9 @@ type GatewayLoggingGetParams struct { type GatewayLoggingGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result LoggingSetting `json:"result,required"` // Whether the API call was successful Success GatewayLoggingGetResponseEnvelopeSuccess `json:"success,required"` + Result LoggingSetting `json:"result"` JSON gatewayLoggingGetResponseEnvelopeJSON `json:"-"` } @@ -208,8 +208,8 @@ type GatewayLoggingGetResponseEnvelope struct { type gatewayLoggingGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/gatewayproxyendpoint.go b/zero_trust/gatewayproxyendpoint.go index 46e21e372af..13423654bea 100644 --- a/zero_trust/gatewayproxyendpoint.go +++ b/zero_trust/gatewayproxyendpoint.go @@ -180,9 +180,9 @@ func (r GatewayProxyEndpointNewParams) MarshalJSON() (data []byte, err error) { type GatewayProxyEndpointNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result ProxyEndpoint `json:"result,required"` // Whether the API call was successful Success GatewayProxyEndpointNewResponseEnvelopeSuccess `json:"success,required"` + Result ProxyEndpoint `json:"result"` JSON gatewayProxyEndpointNewResponseEnvelopeJSON `json:"-"` } @@ -191,8 +191,8 @@ type GatewayProxyEndpointNewResponseEnvelope struct { type gatewayProxyEndpointNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -234,11 +234,11 @@ func (r GatewayProxyEndpointDeleteParams) MarshalJSON() (data []byte, err error) } type GatewayProxyEndpointDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result GatewayProxyEndpointDeleteResponseUnion `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success GatewayProxyEndpointDeleteResponseEnvelopeSuccess `json:"success,required"` + Result GatewayProxyEndpointDeleteResponseUnion `json:"result"` JSON gatewayProxyEndpointDeleteResponseEnvelopeJSON `json:"-"` } @@ -247,8 +247,8 @@ type GatewayProxyEndpointDeleteResponseEnvelope struct { type gatewayProxyEndpointDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -291,9 +291,9 @@ func (r GatewayProxyEndpointEditParams) MarshalJSON() (data []byte, err error) { type GatewayProxyEndpointEditResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result ProxyEndpoint `json:"result,required"` // Whether the API call was successful Success GatewayProxyEndpointEditResponseEnvelopeSuccess `json:"success,required"` + Result ProxyEndpoint `json:"result"` JSON gatewayProxyEndpointEditResponseEnvelopeJSON `json:"-"` } @@ -302,8 +302,8 @@ type GatewayProxyEndpointEditResponseEnvelope struct { type gatewayProxyEndpointEditResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -338,9 +338,9 @@ type GatewayProxyEndpointGetParams struct { type GatewayProxyEndpointGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result ProxyEndpoint `json:"result,required"` // Whether the API call was successful Success GatewayProxyEndpointGetResponseEnvelopeSuccess `json:"success,required"` + Result ProxyEndpoint `json:"result"` JSON gatewayProxyEndpointGetResponseEnvelopeJSON `json:"-"` } @@ -349,8 +349,8 @@ type GatewayProxyEndpointGetResponseEnvelope struct { type gatewayProxyEndpointGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/gatewayrule.go b/zero_trust/gatewayrule.go index 1832d5f4cfe..7af70bddc06 100644 --- a/zero_trust/gatewayrule.go +++ b/zero_trust/gatewayrule.go @@ -1056,9 +1056,9 @@ func (r GatewayRuleNewParamsAction) IsKnown() bool { type GatewayRuleNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result GatewayRule `json:"result,required"` // Whether the API call was successful Success GatewayRuleNewResponseEnvelopeSuccess `json:"success,required"` + Result GatewayRule `json:"result"` JSON gatewayRuleNewResponseEnvelopeJSON `json:"-"` } @@ -1067,8 +1067,8 @@ type GatewayRuleNewResponseEnvelope struct { type gatewayRuleNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -1164,9 +1164,9 @@ func (r GatewayRuleUpdateParamsAction) IsKnown() bool { type GatewayRuleUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result GatewayRule `json:"result,required"` // Whether the API call was successful Success GatewayRuleUpdateResponseEnvelopeSuccess `json:"success,required"` + Result GatewayRule `json:"result"` JSON gatewayRuleUpdateResponseEnvelopeJSON `json:"-"` } @@ -1175,8 +1175,8 @@ type GatewayRuleUpdateResponseEnvelope struct { type gatewayRuleUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -1218,11 +1218,11 @@ func (r GatewayRuleDeleteParams) MarshalJSON() (data []byte, err error) { } type GatewayRuleDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result GatewayRuleDeleteResponseUnion `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success GatewayRuleDeleteResponseEnvelopeSuccess `json:"success,required"` + Result GatewayRuleDeleteResponseUnion `json:"result"` JSON gatewayRuleDeleteResponseEnvelopeJSON `json:"-"` } @@ -1231,8 +1231,8 @@ type GatewayRuleDeleteResponseEnvelope struct { type gatewayRuleDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -1267,9 +1267,9 @@ type GatewayRuleGetParams struct { type GatewayRuleGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result GatewayRule `json:"result,required"` // Whether the API call was successful Success GatewayRuleGetResponseEnvelopeSuccess `json:"success,required"` + Result GatewayRule `json:"result"` JSON gatewayRuleGetResponseEnvelopeJSON `json:"-"` } @@ -1278,8 +1278,8 @@ type GatewayRuleGetResponseEnvelope struct { type gatewayRuleGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } From 6f304fa3d6c0c8741a9ad11cdb7ef89d2f2e2ebc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 18 Apr 2024 00:54:31 +0000 Subject: [PATCH 33/52] feat(api): update via SDK Studio (#1817) --- accounts/aliases.go | 16 ++-- accounts/member.go | 12 +-- accounts/member_test.go | 4 +- acm/aliases.go | 16 ++-- addressing/aliases.go | 16 ++-- alerting/aliases.go | 16 ++-- aliases.go | 16 ++-- api.md | 8 +- argo/aliases.go | 16 ++-- audit_logs/aliases.go | 16 ++-- billing/aliases.go | 16 ++-- bot_management/aliases.go | 16 ++-- brand_protection/aliases.go | 16 ++-- cache/aliases.go | 16 ++-- calls/aliases.go | 16 ++-- certificate_authorities/aliases.go | 16 ++-- challenges/aliases.go | 16 ++-- client_certificates/aliases.go | 16 ++-- cloudforce_one/aliases.go | 16 ++-- custom_certificates/aliases.go | 16 ++-- custom_hostnames/aliases.go | 16 ++-- custom_nameservers/aliases.go | 16 ++-- d1/aliases.go | 16 ++-- dcv_delegation/aliases.go | 16 ++-- diagnostics/aliases.go | 16 ++-- dns/aliases.go | 16 ++-- dnssec/aliases.go | 16 ++-- durable_objects/aliases.go | 16 ++-- email_routing/aliases.go | 16 ++-- event_notifications/aliases.go | 16 ++-- filters/aliases.go | 16 ++-- firewall/aliases.go | 16 ++-- healthchecks/aliases.go | 16 ++-- hostnames/aliases.go | 16 ++-- hyperdrive/aliases.go | 16 ++-- images/aliases.go | 16 ++-- intel/aliases.go | 16 ++-- internal/shared/shared.go | 108 +++++++++++----------- ips/aliases.go | 16 ++-- keyless_certificates/aliases.go | 16 ++-- kv/aliases.go | 16 ++-- load_balancers/aliases.go | 16 ++-- logpush/aliases.go | 16 ++-- logs/aliases.go | 16 ++-- magic_network_monitoring/aliases.go | 16 ++-- magic_transit/aliases.go | 16 ++-- managed_headers/aliases.go | 16 ++-- memberships/aliases.go | 16 ++-- mtls_certificates/aliases.go | 16 ++-- origin_ca_certificates/aliases.go | 16 ++-- origin_post_quantum_encryption/aliases.go | 16 ++-- origin_tls_client_auth/aliases.go | 16 ++-- page_shield/aliases.go | 16 ++-- pagerules/aliases.go | 16 ++-- pages/aliases.go | 16 ++-- pcaps/aliases.go | 16 ++-- plans/aliases.go | 16 ++-- queues/aliases.go | 16 ++-- r2/aliases.go | 16 ++-- radar/aliases.go | 16 ++-- rate_limits/aliases.go | 16 ++-- rate_plans/aliases.go | 16 ++-- registrar/aliases.go | 16 ++-- request_tracers/aliases.go | 16 ++-- rules/aliases.go | 16 ++-- rulesets/aliases.go | 16 ++-- rum/aliases.go | 16 ++-- secondary_dns/aliases.go | 16 ++-- snippets/aliases.go | 16 ++-- spectrum/aliases.go | 16 ++-- speed/aliases.go | 16 ++-- ssl/aliases.go | 16 ++-- storage/aliases.go | 16 ++-- stream/aliases.go | 16 ++-- subscriptions/aliases.go | 16 ++-- url_normalization/aliases.go | 16 ++-- url_scanner/aliases.go | 16 ++-- user/aliases.go | 16 ++-- vectorize/aliases.go | 16 ++-- waiting_rooms/aliases.go | 16 ++-- warp_connector/aliases.go | 16 ++-- web3/aliases.go | 16 ++-- workers/aliases.go | 16 ++-- workers_for_platforms/aliases.go | 16 ++-- zero_trust/aliases.go | 16 ++-- zones/aliases.go | 16 ++-- 86 files changed, 722 insertions(+), 722 deletions(-) diff --git a/accounts/aliases.go b/accounts/aliases.go index 54ece404b23..b98d3d2ee7f 100644 --- a/accounts/aliases.go +++ b/accounts/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/accounts/member.go b/accounts/member.go index 95e44542fce..6143a705171 100644 --- a/accounts/member.go +++ b/accounts/member.go @@ -48,7 +48,7 @@ func (r *MemberService) New(ctx context.Context, params MemberNewParams, opts .. } // Modify an account member. -func (r *MemberService) Update(ctx context.Context, memberID string, params MemberUpdateParams, opts ...option.RequestOption) (res *shared.IamMember, err error) { +func (r *MemberService) Update(ctx context.Context, memberID string, params MemberUpdateParams, opts ...option.RequestOption) (res *shared.Member, err error) { opts = append(r.Options[:], opts...) var env MemberUpdateResponseEnvelope path := fmt.Sprintf("accounts/%v/members/%s", params.AccountID, memberID) @@ -97,7 +97,7 @@ func (r *MemberService) Delete(ctx context.Context, memberID string, params Memb } // Get information about a specific member of an account. -func (r *MemberService) Get(ctx context.Context, memberID string, query MemberGetParams, opts ...option.RequestOption) (res *shared.IamMember, err error) { +func (r *MemberService) Get(ctx context.Context, memberID string, query MemberGetParams, opts ...option.RequestOption) (res *shared.Member, err error) { opts = append(r.Options[:], opts...) var env MemberGetResponseEnvelope path := fmt.Sprintf("accounts/%v/members/%s", query.AccountID, memberID) @@ -394,17 +394,17 @@ func (r MemberNewResponseEnvelopeSuccess) IsKnown() bool { type MemberUpdateParams struct { AccountID param.Field[interface{}] `path:"account_id,required"` - IamMember shared.IamMemberParam `json:"iam_member,required"` + Member shared.MemberParam `json:"member,required"` } func (r MemberUpdateParams) MarshalJSON() (data []byte, err error) { - return apijson.MarshalRoot(r.IamMember) + return apijson.MarshalRoot(r.Member) } type MemberUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result shared.IamMember `json:"result,required"` + Result shared.Member `json:"result,required"` // Whether the API call was successful Success MemberUpdateResponseEnvelopeSuccess `json:"success,required"` JSON memberUpdateResponseEnvelopeJSON `json:"-"` @@ -576,7 +576,7 @@ type MemberGetParams struct { type MemberGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result shared.IamMember `json:"result,required"` + Result shared.Member `json:"result,required"` // Whether the API call was successful Success MemberGetResponseEnvelopeSuccess `json:"success,required"` JSON memberGetResponseEnvelopeJSON `json:"-"` diff --git a/accounts/member_test.go b/accounts/member_test.go index 9f7d59a7848..f5ddc86ec77 100644 --- a/accounts/member_test.go +++ b/accounts/member_test.go @@ -63,8 +63,8 @@ func TestMemberUpdate(t *testing.T) { "4536bcfad5faccb111b47003c79917fa", accounts.MemberUpdateParams{ AccountID: cloudflare.F[any](map[string]interface{}{}), - IamMember: shared.IamMemberParam{ - Roles: cloudflare.F([]shared.IamMemberRoleParam{{ + Member: shared.MemberParam{ + Roles: cloudflare.F([]shared.MemberRoleParam{{ ID: cloudflare.F("3536bcfad5faccb999b47003c79917fb"), }, { ID: cloudflare.F("3536bcfad5faccb999b47003c79917fb"), diff --git a/acm/aliases.go b/acm/aliases.go index 49caa906188..1884a8d91fa 100644 --- a/acm/aliases.go +++ b/acm/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/addressing/aliases.go b/addressing/aliases.go index d8225d20119..a81845762c5 100644 --- a/addressing/aliases.go +++ b/addressing/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/alerting/aliases.go b/alerting/aliases.go index 9d11fb76c3f..dc9beae42fd 100644 --- a/alerting/aliases.go +++ b/alerting/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/aliases.go b/aliases.go index 52e79bccfc0..f11b1bbad61 100644 --- a/aliases.go +++ b/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/api.md b/api.md index 2d0255e0908..94137c88809 100644 --- a/api.md +++ b/api.md @@ -1,6 +1,6 @@ # Shared Params Types -- shared.IamMemberParam +- shared.MemberParam - shared.PermissionGrantParam # Shared Response Types @@ -8,7 +8,7 @@ - shared.AuditLog - shared.CloudflareTunnel - shared.ErrorData -- shared.IamMember +- shared.Member - shared.Permission - shared.PermissionGrant - shared.ResponseInfo @@ -44,10 +44,10 @@ Response Types: Methods: - client.Accounts.Members.New(ctx context.Context, params accounts.MemberNewParams) (accounts.UserWithInviteCode, error) -- client.Accounts.Members.Update(ctx context.Context, memberID string, params accounts.MemberUpdateParams) (shared.IamMember, error) +- client.Accounts.Members.Update(ctx context.Context, memberID string, params accounts.MemberUpdateParams) (shared.Member, error) - client.Accounts.Members.List(ctx context.Context, params accounts.MemberListParams) (pagination.V4PagePaginationArray[accounts.MemberListResponse], error) - client.Accounts.Members.Delete(ctx context.Context, memberID string, params accounts.MemberDeleteParams) (accounts.MemberDeleteResponse, error) -- client.Accounts.Members.Get(ctx context.Context, memberID string, query accounts.MemberGetParams) (shared.IamMember, error) +- client.Accounts.Members.Get(ctx context.Context, memberID string, query accounts.MemberGetParams) (shared.Member, error) ## Roles diff --git a/argo/aliases.go b/argo/aliases.go index 5e85c668cec..41983208868 100644 --- a/argo/aliases.go +++ b/argo/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/audit_logs/aliases.go b/audit_logs/aliases.go index 8f6369fbf7d..8111740ecb0 100644 --- a/audit_logs/aliases.go +++ b/audit_logs/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/billing/aliases.go b/billing/aliases.go index 10871a65fa9..1d227b6a9ab 100644 --- a/billing/aliases.go +++ b/billing/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/bot_management/aliases.go b/bot_management/aliases.go index fda554afb74..c5254882829 100644 --- a/bot_management/aliases.go +++ b/bot_management/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/brand_protection/aliases.go b/brand_protection/aliases.go index 28fb8df02f7..348e7a47830 100644 --- a/brand_protection/aliases.go +++ b/brand_protection/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/cache/aliases.go b/cache/aliases.go index 06739f610bc..094ae6796a3 100644 --- a/cache/aliases.go +++ b/cache/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/calls/aliases.go b/calls/aliases.go index f2f1a53f96f..4c236649b25 100644 --- a/calls/aliases.go +++ b/calls/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/certificate_authorities/aliases.go b/certificate_authorities/aliases.go index 4b0fad77a90..7f44d71ac85 100644 --- a/certificate_authorities/aliases.go +++ b/certificate_authorities/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/challenges/aliases.go b/challenges/aliases.go index 75f033def36..809e3d7b8b2 100644 --- a/challenges/aliases.go +++ b/challenges/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/client_certificates/aliases.go b/client_certificates/aliases.go index eba82cb123a..009c486ddbd 100644 --- a/client_certificates/aliases.go +++ b/client_certificates/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/cloudforce_one/aliases.go b/cloudforce_one/aliases.go index cc4f3928cbb..287a0ee2533 100644 --- a/cloudforce_one/aliases.go +++ b/cloudforce_one/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/custom_certificates/aliases.go b/custom_certificates/aliases.go index 8b9445fffcb..a1979b26e56 100644 --- a/custom_certificates/aliases.go +++ b/custom_certificates/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/custom_hostnames/aliases.go b/custom_hostnames/aliases.go index 152d4169dc3..4fc4abebebd 100644 --- a/custom_hostnames/aliases.go +++ b/custom_hostnames/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/custom_nameservers/aliases.go b/custom_nameservers/aliases.go index 21bd146efd1..646f50eaf3c 100644 --- a/custom_nameservers/aliases.go +++ b/custom_nameservers/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/d1/aliases.go b/d1/aliases.go index 6c606af2b84..b4725749757 100644 --- a/d1/aliases.go +++ b/d1/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/dcv_delegation/aliases.go b/dcv_delegation/aliases.go index 40c95cc6e22..4af94328206 100644 --- a/dcv_delegation/aliases.go +++ b/dcv_delegation/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/diagnostics/aliases.go b/diagnostics/aliases.go index 20b6a4ec427..5babceb36e9 100644 --- a/diagnostics/aliases.go +++ b/diagnostics/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/dns/aliases.go b/dns/aliases.go index 035be3a9aa9..33a8714ccac 100644 --- a/dns/aliases.go +++ b/dns/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/dnssec/aliases.go b/dnssec/aliases.go index 1d3a8b293b6..5944537de76 100644 --- a/dnssec/aliases.go +++ b/dnssec/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/durable_objects/aliases.go b/durable_objects/aliases.go index b376abe8ee0..4088767274f 100644 --- a/durable_objects/aliases.go +++ b/durable_objects/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/email_routing/aliases.go b/email_routing/aliases.go index 288dfa9058e..f456615039e 100644 --- a/email_routing/aliases.go +++ b/email_routing/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/event_notifications/aliases.go b/event_notifications/aliases.go index ef6bb386854..79bb19200b8 100644 --- a/event_notifications/aliases.go +++ b/event_notifications/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/filters/aliases.go b/filters/aliases.go index 7e2adeaee2c..8f8be75135b 100644 --- a/filters/aliases.go +++ b/filters/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/firewall/aliases.go b/firewall/aliases.go index 8cda1b1d8e1..7994f37f18e 100644 --- a/firewall/aliases.go +++ b/firewall/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/healthchecks/aliases.go b/healthchecks/aliases.go index 32189bd81ec..656e1c3b97c 100644 --- a/healthchecks/aliases.go +++ b/healthchecks/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/hostnames/aliases.go b/hostnames/aliases.go index 338787c113b..d9265c90cd1 100644 --- a/hostnames/aliases.go +++ b/hostnames/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/hyperdrive/aliases.go b/hyperdrive/aliases.go index 0b0326de600..28ed7f2fa6d 100644 --- a/hyperdrive/aliases.go +++ b/hyperdrive/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/images/aliases.go b/images/aliases.go index 0fcff3744ea..63dbfe88de9 100644 --- a/images/aliases.go +++ b/images/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/intel/aliases.go b/intel/aliases.go index f37f7f09c7b..3cf8b2d96ec 100644 --- a/intel/aliases.go +++ b/intel/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/internal/shared/shared.go b/internal/shared/shared.go index 00d5f7efc9f..2616041bb7e 100644 --- a/internal/shared/shared.go +++ b/internal/shared/shared.go @@ -336,18 +336,18 @@ func (r errorDataJSON) RawJSON() string { return r.raw } -type IamMember struct { +type Member struct { // Membership identifier tag. ID string `json:"id,required"` // Roles assigned to this member. - Roles []IamMemberRole `json:"roles,required"` - Status interface{} `json:"status,required"` - User IamMemberUser `json:"user,required"` - JSON iamMemberJSON `json:"-"` + Roles []MemberRole `json:"roles,required"` + Status interface{} `json:"status,required"` + User MemberUser `json:"user,required"` + JSON memberJSON `json:"-"` } -// iamMemberJSON contains the JSON metadata for the struct [IamMember] -type iamMemberJSON struct { +// memberJSON contains the JSON metadata for the struct [Member] +type memberJSON struct { ID apijson.Field Roles apijson.Field Status apijson.Field @@ -356,27 +356,27 @@ type iamMemberJSON struct { ExtraFields map[string]apijson.Field } -func (r *IamMember) UnmarshalJSON(data []byte) (err error) { +func (r *Member) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r iamMemberJSON) RawJSON() string { +func (r memberJSON) RawJSON() string { return r.raw } -type IamMemberRole struct { +type MemberRole struct { // Role identifier tag. ID string `json:"id,required"` // Description of role's permissions. Description string `json:"description,required"` // Role name. - Name string `json:"name,required"` - Permissions IamMemberRolesPermissions `json:"permissions,required"` - JSON iamMemberRoleJSON `json:"-"` + Name string `json:"name,required"` + Permissions MemberRolesPermissions `json:"permissions,required"` + JSON memberRoleJSON `json:"-"` } -// iamMemberRoleJSON contains the JSON metadata for the struct [IamMemberRole] -type iamMemberRoleJSON struct { +// memberRoleJSON contains the JSON metadata for the struct [MemberRole] +type memberRoleJSON struct { ID apijson.Field Description apijson.Field Name apijson.Field @@ -385,33 +385,33 @@ type iamMemberRoleJSON struct { ExtraFields map[string]apijson.Field } -func (r *IamMemberRole) UnmarshalJSON(data []byte) (err error) { +func (r *MemberRole) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r iamMemberRoleJSON) RawJSON() string { +func (r memberRoleJSON) RawJSON() string { return r.raw } -type IamMemberRolesPermissions struct { - Analytics PermissionGrant `json:"analytics"` - Billing PermissionGrant `json:"billing"` - CachePurge PermissionGrant `json:"cache_purge"` - DNS PermissionGrant `json:"dns"` - DNSRecords PermissionGrant `json:"dns_records"` - LB PermissionGrant `json:"lb"` - Logs PermissionGrant `json:"logs"` - Organization PermissionGrant `json:"organization"` - SSL PermissionGrant `json:"ssl"` - WAF PermissionGrant `json:"waf"` - ZoneSettings PermissionGrant `json:"zone_settings"` - Zones PermissionGrant `json:"zones"` - JSON iamMemberRolesPermissionsJSON `json:"-"` -} - -// iamMemberRolesPermissionsJSON contains the JSON metadata for the struct -// [IamMemberRolesPermissions] -type iamMemberRolesPermissionsJSON struct { +type MemberRolesPermissions struct { + Analytics PermissionGrant `json:"analytics"` + Billing PermissionGrant `json:"billing"` + CachePurge PermissionGrant `json:"cache_purge"` + DNS PermissionGrant `json:"dns"` + DNSRecords PermissionGrant `json:"dns_records"` + LB PermissionGrant `json:"lb"` + Logs PermissionGrant `json:"logs"` + Organization PermissionGrant `json:"organization"` + SSL PermissionGrant `json:"ssl"` + WAF PermissionGrant `json:"waf"` + ZoneSettings PermissionGrant `json:"zone_settings"` + Zones PermissionGrant `json:"zones"` + JSON memberRolesPermissionsJSON `json:"-"` +} + +// memberRolesPermissionsJSON contains the JSON metadata for the struct +// [MemberRolesPermissions] +type memberRolesPermissionsJSON struct { Analytics apijson.Field Billing apijson.Field CachePurge apijson.Field @@ -428,15 +428,15 @@ type iamMemberRolesPermissionsJSON struct { ExtraFields map[string]apijson.Field } -func (r *IamMemberRolesPermissions) UnmarshalJSON(data []byte) (err error) { +func (r *MemberRolesPermissions) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r iamMemberRolesPermissionsJSON) RawJSON() string { +func (r memberRolesPermissionsJSON) RawJSON() string { return r.raw } -type IamMemberUser struct { +type MemberUser struct { // The contact email address of the user. Email string `json:"email,required"` // Identifier @@ -447,12 +447,12 @@ type IamMemberUser struct { LastName string `json:"last_name,nullable"` // Indicates whether two-factor authentication is enabled for the user account. // Does not apply to API authentication. - TwoFactorAuthenticationEnabled bool `json:"two_factor_authentication_enabled"` - JSON iamMemberUserJSON `json:"-"` + TwoFactorAuthenticationEnabled bool `json:"two_factor_authentication_enabled"` + JSON memberUserJSON `json:"-"` } -// iamMemberUserJSON contains the JSON metadata for the struct [IamMemberUser] -type iamMemberUserJSON struct { +// memberUserJSON contains the JSON metadata for the struct [MemberUser] +type memberUserJSON struct { Email apijson.Field ID apijson.Field FirstName apijson.Field @@ -462,33 +462,33 @@ type iamMemberUserJSON struct { ExtraFields map[string]apijson.Field } -func (r *IamMemberUser) UnmarshalJSON(data []byte) (err error) { +func (r *MemberUser) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r iamMemberUserJSON) RawJSON() string { +func (r memberUserJSON) RawJSON() string { return r.raw } -type IamMemberParam struct { +type MemberParam struct { // Roles assigned to this member. - Roles param.Field[[]IamMemberRoleParam] `json:"roles,required"` + Roles param.Field[[]MemberRoleParam] `json:"roles,required"` } -func (r IamMemberParam) MarshalJSON() (data []byte, err error) { +func (r MemberParam) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -type IamMemberRoleParam struct { +type MemberRoleParam struct { // Role identifier tag. ID param.Field[string] `json:"id,required"` } -func (r IamMemberRoleParam) MarshalJSON() (data []byte, err error) { +func (r MemberRoleParam) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -type IamMemberRolesPermissionsParam struct { +type MemberRolesPermissionsParam struct { Analytics param.Field[PermissionGrantParam] `json:"analytics"` Billing param.Field[PermissionGrantParam] `json:"billing"` CachePurge param.Field[PermissionGrantParam] `json:"cache_purge"` @@ -503,11 +503,11 @@ type IamMemberRolesPermissionsParam struct { Zones param.Field[PermissionGrantParam] `json:"zones"` } -func (r IamMemberRolesPermissionsParam) MarshalJSON() (data []byte, err error) { +func (r MemberRolesPermissionsParam) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -type IamMemberUserParam struct { +type MemberUserParam struct { // The contact email address of the user. Email param.Field[string] `json:"email,required"` // User's first name @@ -516,7 +516,7 @@ type IamMemberUserParam struct { LastName param.Field[string] `json:"last_name"` } -func (r IamMemberUserParam) MarshalJSON() (data []byte, err error) { +func (r MemberUserParam) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } diff --git a/ips/aliases.go b/ips/aliases.go index c5161d5eef6..e7a8f7530b3 100644 --- a/ips/aliases.go +++ b/ips/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/keyless_certificates/aliases.go b/keyless_certificates/aliases.go index 0b8d6ec061f..a004ad34d7c 100644 --- a/keyless_certificates/aliases.go +++ b/keyless_certificates/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/kv/aliases.go b/kv/aliases.go index 77b84e6e57f..593ab0f9c73 100644 --- a/kv/aliases.go +++ b/kv/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/load_balancers/aliases.go b/load_balancers/aliases.go index 3c3f65d9e8b..eafc1f81e8d 100644 --- a/load_balancers/aliases.go +++ b/load_balancers/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/logpush/aliases.go b/logpush/aliases.go index fcfabb9dbcb..c3f95f8a374 100644 --- a/logpush/aliases.go +++ b/logpush/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/logs/aliases.go b/logs/aliases.go index 6d539a3d5ab..63b6d79cf77 100644 --- a/logs/aliases.go +++ b/logs/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/magic_network_monitoring/aliases.go b/magic_network_monitoring/aliases.go index 1293ebfcc4c..49070bed46d 100644 --- a/magic_network_monitoring/aliases.go +++ b/magic_network_monitoring/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/magic_transit/aliases.go b/magic_transit/aliases.go index c9db541f872..59fc9b29cca 100644 --- a/magic_transit/aliases.go +++ b/magic_transit/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/managed_headers/aliases.go b/managed_headers/aliases.go index 6be86873547..310fae8dd96 100644 --- a/managed_headers/aliases.go +++ b/managed_headers/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/memberships/aliases.go b/memberships/aliases.go index aa0badb0e94..21db87d94d9 100644 --- a/memberships/aliases.go +++ b/memberships/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/mtls_certificates/aliases.go b/mtls_certificates/aliases.go index 3f8f4edecf3..a5182e005b3 100644 --- a/mtls_certificates/aliases.go +++ b/mtls_certificates/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/origin_ca_certificates/aliases.go b/origin_ca_certificates/aliases.go index a3667494a7c..49dc27332a0 100644 --- a/origin_ca_certificates/aliases.go +++ b/origin_ca_certificates/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/origin_post_quantum_encryption/aliases.go b/origin_post_quantum_encryption/aliases.go index 30c54037350..9688e7e0f77 100644 --- a/origin_post_quantum_encryption/aliases.go +++ b/origin_post_quantum_encryption/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/origin_tls_client_auth/aliases.go b/origin_tls_client_auth/aliases.go index 0c72432c94d..0356a803c54 100644 --- a/origin_tls_client_auth/aliases.go +++ b/origin_tls_client_auth/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/page_shield/aliases.go b/page_shield/aliases.go index 80eaa1fe66e..c11d4906d88 100644 --- a/page_shield/aliases.go +++ b/page_shield/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/pagerules/aliases.go b/pagerules/aliases.go index 9f224c5c17a..8fe42926f85 100644 --- a/pagerules/aliases.go +++ b/pagerules/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/pages/aliases.go b/pages/aliases.go index 6a84539aba5..1f4383fcf65 100644 --- a/pages/aliases.go +++ b/pages/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/pcaps/aliases.go b/pcaps/aliases.go index cbfb623c979..d1dbbfdbb83 100644 --- a/pcaps/aliases.go +++ b/pcaps/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/plans/aliases.go b/plans/aliases.go index 33b9e838abd..0d25cb0b82d 100644 --- a/plans/aliases.go +++ b/plans/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/queues/aliases.go b/queues/aliases.go index 161dde2d6c8..cd17b84a92a 100644 --- a/queues/aliases.go +++ b/queues/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/r2/aliases.go b/r2/aliases.go index 41e1b568168..3c25ed71131 100644 --- a/r2/aliases.go +++ b/r2/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/radar/aliases.go b/radar/aliases.go index ca67ce32208..a3c4f2b71e2 100644 --- a/radar/aliases.go +++ b/radar/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/rate_limits/aliases.go b/rate_limits/aliases.go index d7394bcc5bf..87e39ece659 100644 --- a/rate_limits/aliases.go +++ b/rate_limits/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/rate_plans/aliases.go b/rate_plans/aliases.go index 11e9625a0ad..4ec997b6c77 100644 --- a/rate_plans/aliases.go +++ b/rate_plans/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/registrar/aliases.go b/registrar/aliases.go index 3f7855fda3a..8aa4f8ca0b3 100644 --- a/registrar/aliases.go +++ b/registrar/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/request_tracers/aliases.go b/request_tracers/aliases.go index ae5bc597cf2..ead9bf507c5 100644 --- a/request_tracers/aliases.go +++ b/request_tracers/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/rules/aliases.go b/rules/aliases.go index 811af0dbb48..29ce22e9265 100644 --- a/rules/aliases.go +++ b/rules/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/rulesets/aliases.go b/rulesets/aliases.go index 3ac4e457506..dc77a323c1b 100644 --- a/rulesets/aliases.go +++ b/rulesets/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/rum/aliases.go b/rum/aliases.go index 47ae439ec62..dac20cb0b3c 100644 --- a/rum/aliases.go +++ b/rum/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/secondary_dns/aliases.go b/secondary_dns/aliases.go index 6f99f4aea48..2de5b18f06c 100644 --- a/secondary_dns/aliases.go +++ b/secondary_dns/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/snippets/aliases.go b/snippets/aliases.go index cdfb18c40b9..b17827c9e51 100644 --- a/snippets/aliases.go +++ b/snippets/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/spectrum/aliases.go b/spectrum/aliases.go index a4306047c37..694bfdfb0e2 100644 --- a/spectrum/aliases.go +++ b/spectrum/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/speed/aliases.go b/speed/aliases.go index 8bf8bc3da63..a9fa6cbb216 100644 --- a/speed/aliases.go +++ b/speed/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/ssl/aliases.go b/ssl/aliases.go index 6f15566a040..85f949d06bc 100644 --- a/ssl/aliases.go +++ b/ssl/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/storage/aliases.go b/storage/aliases.go index 6362aed8c75..8eff45c3182 100644 --- a/storage/aliases.go +++ b/storage/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/stream/aliases.go b/stream/aliases.go index eeb8b261cf9..9b020646b66 100644 --- a/stream/aliases.go +++ b/stream/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/subscriptions/aliases.go b/subscriptions/aliases.go index 91cd45a7d0b..d84af686f00 100644 --- a/subscriptions/aliases.go +++ b/subscriptions/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/url_normalization/aliases.go b/url_normalization/aliases.go index c649022ca21..793a3bc6514 100644 --- a/url_normalization/aliases.go +++ b/url_normalization/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/url_scanner/aliases.go b/url_scanner/aliases.go index c8085f79443..cc874147d53 100644 --- a/url_scanner/aliases.go +++ b/url_scanner/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/user/aliases.go b/user/aliases.go index 23a0159bf53..a86f7ef729d 100644 --- a/user/aliases.go +++ b/user/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/vectorize/aliases.go b/vectorize/aliases.go index 9e73ec1f28e..dd3fdbb11d2 100644 --- a/vectorize/aliases.go +++ b/vectorize/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/waiting_rooms/aliases.go b/waiting_rooms/aliases.go index 483f4e9be89..705c2e078fb 100644 --- a/waiting_rooms/aliases.go +++ b/waiting_rooms/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/warp_connector/aliases.go b/warp_connector/aliases.go index 3228e139d4f..9bd75d69e7e 100644 --- a/warp_connector/aliases.go +++ b/warp_connector/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/web3/aliases.go b/web3/aliases.go index 09145560a39..dadc111b6bb 100644 --- a/web3/aliases.go +++ b/web3/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/workers/aliases.go b/workers/aliases.go index 8bc28841a26..ffc80b750e2 100644 --- a/workers/aliases.go +++ b/workers/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/workers_for_platforms/aliases.go b/workers_for_platforms/aliases.go index 75b9b2a2e1f..5d2f2d97b9c 100644 --- a/workers_for_platforms/aliases.go +++ b/workers_for_platforms/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/zero_trust/aliases.go b/zero_trust/aliases.go index 01b71ebded0..4483a406629 100644 --- a/zero_trust/aliases.go +++ b/zero_trust/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission diff --git a/zones/aliases.go b/zones/aliases.go index 58427ddfa0d..fa4254a6c84 100644 --- a/zones/aliases.go +++ b/zones/aliases.go @@ -70,28 +70,28 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI type ErrorData = shared.ErrorData // This is an alias to an internal type. -type IamMember = shared.IamMember +type Member = shared.Member // This is an alias to an internal type. -type IamMemberRole = shared.IamMemberRole +type MemberRole = shared.MemberRole // This is an alias to an internal type. -type IamMemberRolesPermissions = shared.IamMemberRolesPermissions +type MemberRolesPermissions = shared.MemberRolesPermissions // This is an alias to an internal type. -type IamMemberUser = shared.IamMemberUser +type MemberUser = shared.MemberUser // This is an alias to an internal type. -type IamMemberParam = shared.IamMemberParam +type MemberParam = shared.MemberParam // This is an alias to an internal type. -type IamMemberRoleParam = shared.IamMemberRoleParam +type MemberRoleParam = shared.MemberRoleParam // This is an alias to an internal type. -type IamMemberRolesPermissionsParam = shared.IamMemberRolesPermissionsParam +type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam // This is an alias to an internal type. -type IamMemberUserParam = shared.IamMemberUserParam +type MemberUserParam = shared.MemberUserParam // This is an alias to an internal type. type Permission = shared.Permission From 8570aec19a2e2376b7f035043e5d94cfcd4faeca Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 18 Apr 2024 03:25:54 +0000 Subject: [PATCH 34/52] feat(api): update via SDK Studio (#1818) --- page_shield/connection.go | 6 +++--- page_shield/connection_test.go | 2 +- page_shield/script.go | 10 +++++----- page_shield/script_test.go | 2 +- zones/zone.go | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/page_shield/connection.go b/page_shield/connection.go index 994dfd72faa..d55274d4143 100644 --- a/page_shield/connection.go +++ b/page_shield/connection.go @@ -74,7 +74,7 @@ type Connection struct { LastSeenAt string `json:"last_seen_at"` PageURLs []string `json:"page_urls"` URL string `json:"url"` - URLContainsCdnCgiPath bool `json:"url_contains_cdn_cgi_path"` + URLContainsCDNCgiPath bool `json:"url_contains_cdn_cgi_path"` JSON connectionJSON `json:"-"` } @@ -89,7 +89,7 @@ type connectionJSON struct { LastSeenAt apijson.Field PageURLs apijson.Field URL apijson.Field - URLContainsCdnCgiPath apijson.Field + URLContainsCDNCgiPath apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -109,7 +109,7 @@ type ConnectionListParams struct { Direction param.Field[ConnectionListParamsDirection] `query:"direction"` // When true, excludes connections seen in a `/cdn-cgi` path from the returned // connections. The default value is true. - ExcludeCdnCgi param.Field[bool] `query:"exclude_cdn_cgi"` + ExcludeCDNCgi param.Field[bool] `query:"exclude_cdn_cgi"` // Excludes connections whose URL contains one of the URL-encoded URLs separated by // commas. ExcludeURLs param.Field[string] `query:"exclude_urls"` diff --git a/page_shield/connection_test.go b/page_shield/connection_test.go index 48378a0805e..a4cf5f33d21 100644 --- a/page_shield/connection_test.go +++ b/page_shield/connection_test.go @@ -31,7 +31,7 @@ func TestConnectionListWithOptionalParams(t *testing.T) { _, err := client.PageShield.Connections.List(context.TODO(), page_shield.ConnectionListParams{ ZoneID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), Direction: cloudflare.F(page_shield.ConnectionListParamsDirectionAsc), - ExcludeCdnCgi: cloudflare.F(true), + ExcludeCDNCgi: cloudflare.F(true), ExcludeURLs: cloudflare.F("blog.cloudflare.com,www.example"), Export: cloudflare.F(page_shield.ConnectionListParamsExportCsv), Hosts: cloudflare.F("blog.cloudflare.com,www.example*,*cloudflare.com"), diff --git a/page_shield/script.go b/page_shield/script.go index 7c6e1d4d7c4..9dd7a1a171e 100644 --- a/page_shield/script.go +++ b/page_shield/script.go @@ -79,7 +79,7 @@ type Script struct { ObfuscationScore float64 `json:"obfuscation_score"` PageURLs []string `json:"page_urls"` URL string `json:"url"` - URLContainsCdnCgiPath bool `json:"url_contains_cdn_cgi_path"` + URLContainsCDNCgiPath bool `json:"url_contains_cdn_cgi_path"` JSON scriptJSON `json:"-"` } @@ -99,7 +99,7 @@ type scriptJSON struct { ObfuscationScore apijson.Field PageURLs apijson.Field URL apijson.Field - URLContainsCdnCgiPath apijson.Field + URLContainsCDNCgiPath apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -127,7 +127,7 @@ type ScriptGetResponse struct { ObfuscationScore float64 `json:"obfuscation_score"` PageURLs []string `json:"page_urls"` URL string `json:"url"` - URLContainsCdnCgiPath bool `json:"url_contains_cdn_cgi_path"` + URLContainsCDNCgiPath bool `json:"url_contains_cdn_cgi_path"` Versions []ScriptGetResponseVersion `json:"versions,nullable"` JSON scriptGetResponseJSON `json:"-"` } @@ -149,7 +149,7 @@ type scriptGetResponseJSON struct { ObfuscationScore apijson.Field PageURLs apijson.Field URL apijson.Field - URLContainsCdnCgiPath apijson.Field + URLContainsCDNCgiPath apijson.Field Versions apijson.Field raw string ExtraFields map[string]apijson.Field @@ -205,7 +205,7 @@ type ScriptListParams struct { Direction param.Field[ScriptListParamsDirection] `query:"direction"` // When true, excludes scripts seen in a `/cdn-cgi` path from the returned scripts. // The default value is true. - ExcludeCdnCgi param.Field[bool] `query:"exclude_cdn_cgi"` + ExcludeCDNCgi param.Field[bool] `query:"exclude_cdn_cgi"` // When true, excludes duplicate scripts. We consider a script duplicate of another // if their javascript content matches and they share the same url host and zone // hostname. In such case, we return the most recent script for the URL host and diff --git a/page_shield/script_test.go b/page_shield/script_test.go index e725748be61..4508c3f1c7d 100644 --- a/page_shield/script_test.go +++ b/page_shield/script_test.go @@ -31,7 +31,7 @@ func TestScriptListWithOptionalParams(t *testing.T) { _, err := client.PageShield.Scripts.List(context.TODO(), page_shield.ScriptListParams{ ZoneID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), Direction: cloudflare.F(page_shield.ScriptListParamsDirectionAsc), - ExcludeCdnCgi: cloudflare.F(true), + ExcludeCDNCgi: cloudflare.F(true), ExcludeDuplicates: cloudflare.F(true), ExcludeURLs: cloudflare.F("blog.cloudflare.com,www.example"), Export: cloudflare.F(page_shield.ScriptListParamsExportCsv), diff --git a/zones/zone.go b/zones/zone.go index 4d1bc7e22d5..e87b85ac196 100644 --- a/zones/zone.go +++ b/zones/zone.go @@ -211,7 +211,7 @@ func (r zoneAccountJSON) RawJSON() string { // Metadata about the zone type ZoneMeta struct { // The zone is only configured for CDN - CdnOnly bool `json:"cdn_only"` + CDNOnly bool `json:"cdn_only"` // Number of Custom Certificates the zone can have CustomCertificateQuota int64 `json:"custom_certificate_quota"` // The zone is only configured for DNS @@ -228,7 +228,7 @@ type ZoneMeta struct { // zoneMetaJSON contains the JSON metadata for the struct [ZoneMeta] type zoneMetaJSON struct { - CdnOnly apijson.Field + CDNOnly apijson.Field CustomCertificateQuota apijson.Field DNSOnly apijson.Field FoundationDNS apijson.Field From cceb524ecef30a14f46423417797f82ea06ce8c1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 18 Apr 2024 03:36:18 +0000 Subject: [PATCH 35/52] feat(api): update via SDK Studio (#1819) --- page_shield/connection.go | 6 +++--- page_shield/connection_test.go | 2 +- page_shield/script.go | 10 +++++----- page_shield/script_test.go | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/page_shield/connection.go b/page_shield/connection.go index d55274d4143..026ab39cbff 100644 --- a/page_shield/connection.go +++ b/page_shield/connection.go @@ -74,7 +74,7 @@ type Connection struct { LastSeenAt string `json:"last_seen_at"` PageURLs []string `json:"page_urls"` URL string `json:"url"` - URLContainsCDNCgiPath bool `json:"url_contains_cdn_cgi_path"` + URLContainsCDNCGIPath bool `json:"url_contains_cdn_cgi_path"` JSON connectionJSON `json:"-"` } @@ -89,7 +89,7 @@ type connectionJSON struct { LastSeenAt apijson.Field PageURLs apijson.Field URL apijson.Field - URLContainsCDNCgiPath apijson.Field + URLContainsCDNCGIPath apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -109,7 +109,7 @@ type ConnectionListParams struct { Direction param.Field[ConnectionListParamsDirection] `query:"direction"` // When true, excludes connections seen in a `/cdn-cgi` path from the returned // connections. The default value is true. - ExcludeCDNCgi param.Field[bool] `query:"exclude_cdn_cgi"` + ExcludeCDNCGI param.Field[bool] `query:"exclude_cdn_cgi"` // Excludes connections whose URL contains one of the URL-encoded URLs separated by // commas. ExcludeURLs param.Field[string] `query:"exclude_urls"` diff --git a/page_shield/connection_test.go b/page_shield/connection_test.go index a4cf5f33d21..5fab545513f 100644 --- a/page_shield/connection_test.go +++ b/page_shield/connection_test.go @@ -31,7 +31,7 @@ func TestConnectionListWithOptionalParams(t *testing.T) { _, err := client.PageShield.Connections.List(context.TODO(), page_shield.ConnectionListParams{ ZoneID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), Direction: cloudflare.F(page_shield.ConnectionListParamsDirectionAsc), - ExcludeCDNCgi: cloudflare.F(true), + ExcludeCDNCGI: cloudflare.F(true), ExcludeURLs: cloudflare.F("blog.cloudflare.com,www.example"), Export: cloudflare.F(page_shield.ConnectionListParamsExportCsv), Hosts: cloudflare.F("blog.cloudflare.com,www.example*,*cloudflare.com"), diff --git a/page_shield/script.go b/page_shield/script.go index 9dd7a1a171e..bf26dfb540c 100644 --- a/page_shield/script.go +++ b/page_shield/script.go @@ -79,7 +79,7 @@ type Script struct { ObfuscationScore float64 `json:"obfuscation_score"` PageURLs []string `json:"page_urls"` URL string `json:"url"` - URLContainsCDNCgiPath bool `json:"url_contains_cdn_cgi_path"` + URLContainsCDNCGIPath bool `json:"url_contains_cdn_cgi_path"` JSON scriptJSON `json:"-"` } @@ -99,7 +99,7 @@ type scriptJSON struct { ObfuscationScore apijson.Field PageURLs apijson.Field URL apijson.Field - URLContainsCDNCgiPath apijson.Field + URLContainsCDNCGIPath apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -127,7 +127,7 @@ type ScriptGetResponse struct { ObfuscationScore float64 `json:"obfuscation_score"` PageURLs []string `json:"page_urls"` URL string `json:"url"` - URLContainsCDNCgiPath bool `json:"url_contains_cdn_cgi_path"` + URLContainsCDNCGIPath bool `json:"url_contains_cdn_cgi_path"` Versions []ScriptGetResponseVersion `json:"versions,nullable"` JSON scriptGetResponseJSON `json:"-"` } @@ -149,7 +149,7 @@ type scriptGetResponseJSON struct { ObfuscationScore apijson.Field PageURLs apijson.Field URL apijson.Field - URLContainsCDNCgiPath apijson.Field + URLContainsCDNCGIPath apijson.Field Versions apijson.Field raw string ExtraFields map[string]apijson.Field @@ -205,7 +205,7 @@ type ScriptListParams struct { Direction param.Field[ScriptListParamsDirection] `query:"direction"` // When true, excludes scripts seen in a `/cdn-cgi` path from the returned scripts. // The default value is true. - ExcludeCDNCgi param.Field[bool] `query:"exclude_cdn_cgi"` + ExcludeCDNCGI param.Field[bool] `query:"exclude_cdn_cgi"` // When true, excludes duplicate scripts. We consider a script duplicate of another // if their javascript content matches and they share the same url host and zone // hostname. In such case, we return the most recent script for the URL host and diff --git a/page_shield/script_test.go b/page_shield/script_test.go index 4508c3f1c7d..17dcf95d886 100644 --- a/page_shield/script_test.go +++ b/page_shield/script_test.go @@ -31,7 +31,7 @@ func TestScriptListWithOptionalParams(t *testing.T) { _, err := client.PageShield.Scripts.List(context.TODO(), page_shield.ScriptListParams{ ZoneID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), Direction: cloudflare.F(page_shield.ScriptListParamsDirectionAsc), - ExcludeCDNCgi: cloudflare.F(true), + ExcludeCDNCGI: cloudflare.F(true), ExcludeDuplicates: cloudflare.F(true), ExcludeURLs: cloudflare.F("blog.cloudflare.com,www.example"), Export: cloudflare.F(page_shield.ScriptListParamsExportCsv), From b6b38eed042165ba51ad4d86ae08d50b21170144 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 18 Apr 2024 21:12:31 +0000 Subject: [PATCH 36/52] feat(api): OpenAPI spec update via Stainless API (#1820) --- api.md | 9 +++------ internal/shared/union.go | 3 --- stream/caption.go | 23 ++--------------------- stream/watermark.go | 40 ++++------------------------------------ 4 files changed, 9 insertions(+), 66 deletions(-) diff --git a/api.md b/api.md index 94137c88809..c4ac2b549f0 100644 --- a/api.md +++ b/api.md @@ -4074,16 +4074,14 @@ Methods: Response Types: - stream.Watermaks -- stream.WatermarkNewResponseUnion - stream.WatermarkDeleteResponseUnion -- stream.WatermarkGetResponseUnion Methods: -- client.Stream.Watermarks.New(ctx context.Context, params stream.WatermarkNewParams) (stream.WatermarkNewResponseUnion, error) +- client.Stream.Watermarks.New(ctx context.Context, params stream.WatermarkNewParams) (stream.Watermaks, error) - client.Stream.Watermarks.List(ctx context.Context, query stream.WatermarkListParams) (pagination.SinglePage[stream.Watermaks], error) - client.Stream.Watermarks.Delete(ctx context.Context, identifier string, params stream.WatermarkDeleteParams) (stream.WatermarkDeleteResponseUnion, error) -- client.Stream.Watermarks.Get(ctx context.Context, identifier string, query stream.WatermarkGetParams) (stream.WatermarkGetResponseUnion, error) +- client.Stream.Watermarks.Get(ctx context.Context, identifier string, query stream.WatermarkGetParams) (stream.Watermaks, error) ## Webhooks @@ -4104,11 +4102,10 @@ Methods: Response Types: - stream.Caption -- stream.CaptionUpdateResponseUnion Methods: -- client.Stream.Captions.Update(ctx context.Context, identifier string, language string, params stream.CaptionUpdateParams) (stream.CaptionUpdateResponseUnion, error) +- client.Stream.Captions.Update(ctx context.Context, identifier string, language string, params stream.CaptionUpdateParams) (stream.Caption, error) - client.Stream.Captions.Delete(ctx context.Context, identifier string, language string, params stream.CaptionDeleteParams) (string, error) - client.Stream.Captions.Get(ctx context.Context, identifier string, query stream.CaptionGetParams) ([]stream.Caption, error) diff --git a/internal/shared/union.go b/internal/shared/union.go index b1ef3d0ce8a..dc2ae3d317d 100644 --- a/internal/shared/union.go +++ b/internal/shared/union.go @@ -125,13 +125,10 @@ func (UnionString) ImplementsRegistrarDomainGetResponseUnion() func (UnionString) ImplementsRulesListItemGetResponseUnion() {} func (UnionString) ImplementsStreamAudioTrackDeleteResponseUnion() {} func (UnionString) ImplementsStreamKeyDeleteResponseUnion() {} -func (UnionString) ImplementsStreamWatermarkNewResponseUnion() {} func (UnionString) ImplementsStreamWatermarkDeleteResponseUnion() {} -func (UnionString) ImplementsStreamWatermarkGetResponseUnion() {} func (UnionString) ImplementsStreamWebhookUpdateResponseUnion() {} func (UnionString) ImplementsStreamWebhookDeleteResponseUnion() {} func (UnionString) ImplementsStreamWebhookGetResponseUnion() {} -func (UnionString) ImplementsStreamCaptionUpdateResponseUnion() {} func (UnionString) ImplementsStreamDownloadNewResponseUnion() {} func (UnionString) ImplementsStreamDownloadDeleteResponseUnion() {} func (UnionString) ImplementsStreamDownloadGetResponseUnion() {} diff --git a/stream/caption.go b/stream/caption.go index 15ab324b526..2472f6df3f4 100644 --- a/stream/caption.go +++ b/stream/caption.go @@ -6,14 +6,12 @@ import ( "context" "fmt" "net/http" - "reflect" "github.com/cloudflare/cloudflare-go/v2/internal/apijson" "github.com/cloudflare/cloudflare-go/v2/internal/param" "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" "github.com/cloudflare/cloudflare-go/v2/internal/shared" "github.com/cloudflare/cloudflare-go/v2/option" - "github.com/tidwall/gjson" ) // CaptionService contains methods and other services that help with interacting @@ -35,7 +33,7 @@ func NewCaptionService(opts ...option.RequestOption) (r *CaptionService) { // Uploads the caption or subtitle file to the endpoint for a specific BCP47 // language. One caption or subtitle file per language is allowed. -func (r *CaptionService) Update(ctx context.Context, identifier string, language string, params CaptionUpdateParams, opts ...option.RequestOption) (res *CaptionUpdateResponseUnion, err error) { +func (r *CaptionService) Update(ctx context.Context, identifier string, language string, params CaptionUpdateParams, opts ...option.RequestOption) (res *Caption, err error) { opts = append(r.Options[:], opts...) var env CaptionUpdateResponseEnvelope path := fmt.Sprintf("accounts/%s/stream/%s/captions/%s", params.AccountID, identifier, language) @@ -97,23 +95,6 @@ func (r captionJSON) RawJSON() string { return r.raw } -// Union satisfied by [stream.CaptionUpdateResponseUnknown] or -// [shared.UnionString]. -type CaptionUpdateResponseUnion interface { - ImplementsStreamCaptionUpdateResponseUnion() -} - -func init() { - apijson.RegisterUnion( - reflect.TypeOf((*CaptionUpdateResponseUnion)(nil)).Elem(), - "", - apijson.UnionVariant{ - TypeFilter: gjson.String, - Type: reflect.TypeOf(shared.UnionString("")), - }, - ) -} - type CaptionUpdateParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` @@ -130,7 +111,7 @@ type CaptionUpdateResponseEnvelope struct { Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success CaptionUpdateResponseEnvelopeSuccess `json:"success,required"` - Result CaptionUpdateResponseUnion `json:"result"` + Result Caption `json:"result"` JSON captionUpdateResponseEnvelopeJSON `json:"-"` } diff --git a/stream/watermark.go b/stream/watermark.go index a1853aa1b50..408fe473091 100644 --- a/stream/watermark.go +++ b/stream/watermark.go @@ -37,7 +37,7 @@ func NewWatermarkService(opts ...option.RequestOption) (r *WatermarkService) { // Creates watermark profiles using a single `HTTP POST multipart/form-data` // request. -func (r *WatermarkService) New(ctx context.Context, params WatermarkNewParams, opts ...option.RequestOption) (res *WatermarkNewResponseUnion, err error) { +func (r *WatermarkService) New(ctx context.Context, params WatermarkNewParams, opts ...option.RequestOption) (res *Watermaks, err error) { opts = append(r.Options[:], opts...) var env WatermarkNewResponseEnvelope path := fmt.Sprintf("accounts/%s/stream/watermarks", params.AccountID) @@ -86,7 +86,7 @@ func (r *WatermarkService) Delete(ctx context.Context, identifier string, params } // Retrieves details for a single watermark profile. -func (r *WatermarkService) Get(ctx context.Context, identifier string, query WatermarkGetParams, opts ...option.RequestOption) (res *WatermarkGetResponseUnion, err error) { +func (r *WatermarkService) Get(ctx context.Context, identifier string, query WatermarkGetParams, opts ...option.RequestOption) (res *Watermaks, err error) { opts = append(r.Options[:], opts...) var env WatermarkGetResponseEnvelope path := fmt.Sprintf("accounts/%s/stream/watermarks/%s", query.AccountID, identifier) @@ -159,22 +159,6 @@ func (r watermaksJSON) RawJSON() string { return r.raw } -// Union satisfied by [stream.WatermarkNewResponseUnknown] or [shared.UnionString]. -type WatermarkNewResponseUnion interface { - ImplementsStreamWatermarkNewResponseUnion() -} - -func init() { - apijson.RegisterUnion( - reflect.TypeOf((*WatermarkNewResponseUnion)(nil)).Elem(), - "", - apijson.UnionVariant{ - TypeFilter: gjson.String, - Type: reflect.TypeOf(shared.UnionString("")), - }, - ) -} - // Union satisfied by [stream.WatermarkDeleteResponseUnknown] or // [shared.UnionString]. type WatermarkDeleteResponseUnion interface { @@ -192,22 +176,6 @@ func init() { ) } -// Union satisfied by [stream.WatermarkGetResponseUnknown] or [shared.UnionString]. -type WatermarkGetResponseUnion interface { - ImplementsStreamWatermarkGetResponseUnion() -} - -func init() { - apijson.RegisterUnion( - reflect.TypeOf((*WatermarkGetResponseUnion)(nil)).Elem(), - "", - apijson.UnionVariant{ - TypeFilter: gjson.String, - Type: reflect.TypeOf(shared.UnionString("")), - }, - ) -} - type WatermarkNewParams struct { // The account identifier tag. AccountID param.Field[string] `path:"account_id,required"` @@ -243,7 +211,7 @@ type WatermarkNewResponseEnvelope struct { Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success WatermarkNewResponseEnvelopeSuccess `json:"success,required"` - Result WatermarkNewResponseUnion `json:"result"` + Result Watermaks `json:"result"` JSON watermarkNewResponseEnvelopeJSON `json:"-"` } @@ -349,7 +317,7 @@ type WatermarkGetResponseEnvelope struct { Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success WatermarkGetResponseEnvelopeSuccess `json:"success,required"` - Result WatermarkGetResponseUnion `json:"result"` + Result Watermaks `json:"result"` JSON watermarkGetResponseEnvelopeJSON `json:"-"` } From a035789c514c6b7bbdd36e4eb3f7c607fb7cc0dd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 18 Apr 2024 22:58:59 +0000 Subject: [PATCH 37/52] feat(api): update via SDK Studio (#1821) --- api.md | 8 ++++---- stream/directupload.go | 2 +- stream/stream.go | 2 +- stream/watermark.go | 24 ++++++++++++------------ 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/api.md b/api.md index c4ac2b549f0..b03ddc549ad 100644 --- a/api.md +++ b/api.md @@ -4073,15 +4073,15 @@ Methods: Response Types: -- stream.Watermaks +- stream.Watermark - stream.WatermarkDeleteResponseUnion Methods: -- client.Stream.Watermarks.New(ctx context.Context, params stream.WatermarkNewParams) (stream.Watermaks, error) -- client.Stream.Watermarks.List(ctx context.Context, query stream.WatermarkListParams) (pagination.SinglePage[stream.Watermaks], error) +- client.Stream.Watermarks.New(ctx context.Context, params stream.WatermarkNewParams) (stream.Watermark, error) +- client.Stream.Watermarks.List(ctx context.Context, query stream.WatermarkListParams) (pagination.SinglePage[stream.Watermark], error) - client.Stream.Watermarks.Delete(ctx context.Context, identifier string, params stream.WatermarkDeleteParams) (stream.WatermarkDeleteResponseUnion, error) -- client.Stream.Watermarks.Get(ctx context.Context, identifier string, query stream.WatermarkGetParams) (stream.Watermaks, error) +- client.Stream.Watermarks.Get(ctx context.Context, identifier string, query stream.WatermarkGetParams) (stream.Watermark, error) ## Webhooks diff --git a/stream/directupload.go b/stream/directupload.go index 7ace23e1462..736a8ebdf95 100644 --- a/stream/directupload.go +++ b/stream/directupload.go @@ -56,7 +56,7 @@ type DirectUploadNewResponse struct { // The URL an unauthenticated upload can use for a single // `HTTP POST multipart/form-data` request. UploadURL string `json:"uploadURL"` - Watermark Watermaks `json:"watermark"` + Watermark Watermark `json:"watermark"` JSON directUploadNewResponseJSON `json:"-"` } diff --git a/stream/stream.go b/stream/stream.go index 1f3e4d49a27..122bb94cebc 100644 --- a/stream/stream.go +++ b/stream/stream.go @@ -189,7 +189,7 @@ type Video struct { // The date and time when the video upload URL is no longer valid for direct user // uploads. UploadExpiry time.Time `json:"uploadExpiry" format:"date-time"` - Watermark Watermaks `json:"watermark"` + Watermark Watermark `json:"watermark"` JSON videoJSON `json:"-"` } diff --git a/stream/watermark.go b/stream/watermark.go index 408fe473091..188470410ae 100644 --- a/stream/watermark.go +++ b/stream/watermark.go @@ -37,7 +37,7 @@ func NewWatermarkService(opts ...option.RequestOption) (r *WatermarkService) { // Creates watermark profiles using a single `HTTP POST multipart/form-data` // request. -func (r *WatermarkService) New(ctx context.Context, params WatermarkNewParams, opts ...option.RequestOption) (res *Watermaks, err error) { +func (r *WatermarkService) New(ctx context.Context, params WatermarkNewParams, opts ...option.RequestOption) (res *Watermark, err error) { opts = append(r.Options[:], opts...) var env WatermarkNewResponseEnvelope path := fmt.Sprintf("accounts/%s/stream/watermarks", params.AccountID) @@ -50,7 +50,7 @@ func (r *WatermarkService) New(ctx context.Context, params WatermarkNewParams, o } // Lists all watermark profiles for an account. -func (r *WatermarkService) List(ctx context.Context, query WatermarkListParams, opts ...option.RequestOption) (res *pagination.SinglePage[Watermaks], err error) { +func (r *WatermarkService) List(ctx context.Context, query WatermarkListParams, opts ...option.RequestOption) (res *pagination.SinglePage[Watermark], err error) { var raw *http.Response opts = append(r.Options, opts...) opts = append([]option.RequestOption{option.WithResponseInto(&raw)}, opts...) @@ -68,7 +68,7 @@ func (r *WatermarkService) List(ctx context.Context, query WatermarkListParams, } // Lists all watermark profiles for an account. -func (r *WatermarkService) ListAutoPaging(ctx context.Context, query WatermarkListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[Watermaks] { +func (r *WatermarkService) ListAutoPaging(ctx context.Context, query WatermarkListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[Watermark] { return pagination.NewSinglePageAutoPager(r.List(ctx, query, opts...)) } @@ -86,7 +86,7 @@ func (r *WatermarkService) Delete(ctx context.Context, identifier string, params } // Retrieves details for a single watermark profile. -func (r *WatermarkService) Get(ctx context.Context, identifier string, query WatermarkGetParams, opts ...option.RequestOption) (res *Watermaks, err error) { +func (r *WatermarkService) Get(ctx context.Context, identifier string, query WatermarkGetParams, opts ...option.RequestOption) (res *Watermark, err error) { opts = append(r.Options[:], opts...) var env WatermarkGetResponseEnvelope path := fmt.Sprintf("accounts/%s/stream/watermarks/%s", query.AccountID, identifier) @@ -98,7 +98,7 @@ func (r *WatermarkService) Get(ctx context.Context, identifier string, query Wat return } -type Watermaks struct { +type Watermark struct { // The date and a time a watermark profile was created. Created time.Time `json:"created" format:"date-time"` // The source URL for a downloaded image. If the watermark profile was created via @@ -131,11 +131,11 @@ type Watermaks struct { UID string `json:"uid"` // The width of the image in pixels. Width int64 `json:"width"` - JSON watermaksJSON `json:"-"` + JSON watermarkJSON `json:"-"` } -// watermaksJSON contains the JSON metadata for the struct [Watermaks] -type watermaksJSON struct { +// watermarkJSON contains the JSON metadata for the struct [Watermark] +type watermarkJSON struct { Created apijson.Field DownloadedFrom apijson.Field Height apijson.Field @@ -151,11 +151,11 @@ type watermaksJSON struct { ExtraFields map[string]apijson.Field } -func (r *Watermaks) UnmarshalJSON(data []byte) (err error) { +func (r *Watermark) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r watermaksJSON) RawJSON() string { +func (r watermarkJSON) RawJSON() string { return r.raw } @@ -211,7 +211,7 @@ type WatermarkNewResponseEnvelope struct { Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success WatermarkNewResponseEnvelopeSuccess `json:"success,required"` - Result Watermaks `json:"result"` + Result Watermark `json:"result"` JSON watermarkNewResponseEnvelopeJSON `json:"-"` } @@ -317,7 +317,7 @@ type WatermarkGetResponseEnvelope struct { Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success WatermarkGetResponseEnvelopeSuccess `json:"success,required"` - Result Watermaks `json:"result"` + Result Watermark `json:"result"` JSON watermarkGetResponseEnvelopeJSON `json:"-"` } From b0878be3db6f725218a5b83bff0741f1ac3dcd79 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 19 Apr 2024 00:14:28 +0000 Subject: [PATCH 38/52] feat(api): update via SDK Studio (#1822) --- .stats.yml | 2 +- api.md | 50 +++- internal/shared/union.go | 1 + stream/caption.go | 138 +--------- stream/caption_test.go | 64 ----- stream/captionlanguage.go | 230 ++++++++++++++++ stream/captionlanguage_test.go | 110 ++++++++ stream/captionlanguagevtt.go | 51 ++++ stream/captionlanguagevtt_test.go | 47 ++++ zero_trust/riskscoring.go | 335 ++++++++++++++++++++++++ zero_trust/riskscoring_test.go | 77 ++++++ zero_trust/riskscoringbehaviour.go | 306 ++++++++++++++++++++++ zero_trust/riskscoringbehaviour_test.go | 74 ++++++ zero_trust/riskscoringsummary.go | 237 +++++++++++++++++ zero_trust/riskscoringsummary_test.go | 48 ++++ zero_trust/zerotrust.go | 2 + 16 files changed, 1570 insertions(+), 202 deletions(-) create mode 100644 stream/captionlanguage.go create mode 100644 stream/captionlanguage_test.go create mode 100644 stream/captionlanguagevtt.go create mode 100644 stream/captionlanguagevtt_test.go create mode 100644 zero_trust/riskscoring.go create mode 100644 zero_trust/riskscoring_test.go create mode 100644 zero_trust/riskscoringbehaviour.go create mode 100644 zero_trust/riskscoringbehaviour_test.go create mode 100644 zero_trust/riskscoringsummary.go create mode 100644 zero_trust/riskscoringsummary_test.go diff --git a/.stats.yml b/.stats.yml index ae473c1891a..860345bb66e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1 +1 @@ -configured_endpoints: 1259 +configured_endpoints: 1266 diff --git a/api.md b/api.md index b03ddc549ad..c934f9e24f8 100644 --- a/api.md +++ b/api.md @@ -4105,10 +4105,22 @@ Response Types: Methods: -- client.Stream.Captions.Update(ctx context.Context, identifier string, language string, params stream.CaptionUpdateParams) (stream.Caption, error) -- client.Stream.Captions.Delete(ctx context.Context, identifier string, language string, params stream.CaptionDeleteParams) (string, error) - client.Stream.Captions.Get(ctx context.Context, identifier string, query stream.CaptionGetParams) ([]stream.Caption, error) +### Language + +Methods: + +- client.Stream.Captions.Language.Update(ctx context.Context, identifier string, language string, params stream.CaptionLanguageUpdateParams) (stream.Caption, error) +- client.Stream.Captions.Language.Delete(ctx context.Context, identifier string, language string, params stream.CaptionLanguageDeleteParams) (string, error) +- client.Stream.Captions.Language.Get(ctx context.Context, identifier string, language string, query stream.CaptionLanguageGetParams) (stream.Caption, error) + +#### Vtt + +Methods: + +- client.Stream.Captions.Language.Vtt.Get(ctx context.Context, identifier string, language string, params stream.CaptionLanguageVttGetParams) (string, error) + ## Downloads Response Types: @@ -5537,6 +5549,40 @@ Methods: - client.ZeroTrust.Networks.VirtualNetworks.Delete(ctx context.Context, virtualNetworkID string, params zero_trust.NetworkVirtualNetworkDeleteParams) (zero_trust.NetworkVirtualNetworkDeleteResponseUnion, error) - client.ZeroTrust.Networks.VirtualNetworks.Edit(ctx context.Context, virtualNetworkID string, params zero_trust.NetworkVirtualNetworkEditParams) (zero_trust.NetworkVirtualNetworkEditResponseUnion, error) +## RiskScoring + +Response Types: + +- zero_trust.RiskScoringGetResponse +- zero_trust.RiskScoringResetResponseUnion + +Methods: + +- client.ZeroTrust.RiskScoring.Get(ctx context.Context, accountIdentifier string, userID string, query zero_trust.RiskScoringGetParams) (zero_trust.RiskScoringGetResponse, error) +- client.ZeroTrust.RiskScoring.Reset(ctx context.Context, accountIdentifier string, userID string) (zero_trust.RiskScoringResetResponseUnion, error) + +### Behaviours + +Response Types: + +- zero_trust.RiskScoringBehaviourUpdateResponse +- zero_trust.RiskScoringBehaviourGetResponse + +Methods: + +- client.ZeroTrust.RiskScoring.Behaviours.Update(ctx context.Context, accountIdentifier string, body zero_trust.RiskScoringBehaviourUpdateParams) (zero_trust.RiskScoringBehaviourUpdateResponse, error) +- client.ZeroTrust.RiskScoring.Behaviours.Get(ctx context.Context, accountIdentifier string) (zero_trust.RiskScoringBehaviourGetResponse, error) + +### Summary + +Response Types: + +- zero_trust.RiskScoringSummaryGetResponse + +Methods: + +- client.ZeroTrust.RiskScoring.Summary.Get(ctx context.Context, accountIdentifier string, query zero_trust.RiskScoringSummaryGetParams) (zero_trust.RiskScoringSummaryGetResponse, error) + # Challenges ## Widgets diff --git a/internal/shared/union.go b/internal/shared/union.go index dc2ae3d317d..d4cf1476d75 100644 --- a/internal/shared/union.go +++ b/internal/shared/union.go @@ -164,6 +164,7 @@ func (UnionString) ImplementsZeroTrustGatewayRuleDeleteResponseUnion() func (UnionString) ImplementsZeroTrustNetworkVirtualNetworkNewResponseUnion() {} func (UnionString) ImplementsZeroTrustNetworkVirtualNetworkDeleteResponseUnion() {} func (UnionString) ImplementsZeroTrustNetworkVirtualNetworkEditResponseUnion() {} +func (UnionString) ImplementsZeroTrustRiskScoringResetResponseUnion() {} func (UnionString) ImplementsHyperdriveConfigDeleteResponseUnion() {} func (UnionString) ImplementsVectorizeIndexDeleteResponseUnion() {} func (UnionString) ImplementsRadarRankingTimeseriesGroupsResponseSerie0Union() {} diff --git a/stream/caption.go b/stream/caption.go index 2472f6df3f4..f1c395b5ccc 100644 --- a/stream/caption.go +++ b/stream/caption.go @@ -19,7 +19,8 @@ import ( // variables from the environment automatically. You should not instantiate this // service directly, and instead use the [NewCaptionService] method instead. type CaptionService struct { - Options []option.RequestOption + Options []option.RequestOption + Language *CaptionLanguageService } // NewCaptionService generates a new service that applies the given options to each @@ -28,33 +29,7 @@ type CaptionService struct { func NewCaptionService(opts ...option.RequestOption) (r *CaptionService) { r = &CaptionService{} r.Options = opts - return -} - -// Uploads the caption or subtitle file to the endpoint for a specific BCP47 -// language. One caption or subtitle file per language is allowed. -func (r *CaptionService) Update(ctx context.Context, identifier string, language string, params CaptionUpdateParams, opts ...option.RequestOption) (res *Caption, err error) { - opts = append(r.Options[:], opts...) - var env CaptionUpdateResponseEnvelope - path := fmt.Sprintf("accounts/%s/stream/%s/captions/%s", params.AccountID, identifier, language) - err = requestconfig.ExecuteNewRequest(ctx, http.MethodPut, path, params, &env, opts...) - if err != nil { - return - } - res = &env.Result - return -} - -// Removes the captions or subtitles from a video. -func (r *CaptionService) Delete(ctx context.Context, identifier string, language string, params CaptionDeleteParams, opts ...option.RequestOption) (res *string, err error) { - opts = append(r.Options[:], opts...) - var env CaptionDeleteResponseEnvelope - path := fmt.Sprintf("accounts/%s/stream/%s/captions/%s", params.AccountID, identifier, language) - err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, nil, &env, opts...) - if err != nil { - return - } - res = &env.Result + r.Language = NewCaptionLanguageService(opts...) return } @@ -95,113 +70,6 @@ func (r captionJSON) RawJSON() string { return r.raw } -type CaptionUpdateParams struct { - // Identifier - AccountID param.Field[string] `path:"account_id,required"` - // The WebVTT file containing the caption or subtitle content. - File param.Field[string] `json:"file,required"` -} - -func (r CaptionUpdateParams) MarshalJSON() (data []byte, err error) { - return apijson.MarshalRoot(r) -} - -type CaptionUpdateResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - // Whether the API call was successful - Success CaptionUpdateResponseEnvelopeSuccess `json:"success,required"` - Result Caption `json:"result"` - JSON captionUpdateResponseEnvelopeJSON `json:"-"` -} - -// captionUpdateResponseEnvelopeJSON contains the JSON metadata for the struct -// [CaptionUpdateResponseEnvelope] -type captionUpdateResponseEnvelopeJSON struct { - Errors apijson.Field - Messages apijson.Field - Success apijson.Field - Result apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *CaptionUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r captionUpdateResponseEnvelopeJSON) RawJSON() string { - return r.raw -} - -// Whether the API call was successful -type CaptionUpdateResponseEnvelopeSuccess bool - -const ( - CaptionUpdateResponseEnvelopeSuccessTrue CaptionUpdateResponseEnvelopeSuccess = true -) - -func (r CaptionUpdateResponseEnvelopeSuccess) IsKnown() bool { - switch r { - case CaptionUpdateResponseEnvelopeSuccessTrue: - return true - } - return false -} - -type CaptionDeleteParams struct { - // Identifier - AccountID param.Field[string] `path:"account_id,required"` - Body interface{} `json:"body,required"` -} - -func (r CaptionDeleteParams) MarshalJSON() (data []byte, err error) { - return apijson.MarshalRoot(r.Body) -} - -type CaptionDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - // Whether the API call was successful - Success CaptionDeleteResponseEnvelopeSuccess `json:"success,required"` - Result string `json:"result"` - JSON captionDeleteResponseEnvelopeJSON `json:"-"` -} - -// captionDeleteResponseEnvelopeJSON contains the JSON metadata for the struct -// [CaptionDeleteResponseEnvelope] -type captionDeleteResponseEnvelopeJSON struct { - Errors apijson.Field - Messages apijson.Field - Success apijson.Field - Result apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *CaptionDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r captionDeleteResponseEnvelopeJSON) RawJSON() string { - return r.raw -} - -// Whether the API call was successful -type CaptionDeleteResponseEnvelopeSuccess bool - -const ( - CaptionDeleteResponseEnvelopeSuccessTrue CaptionDeleteResponseEnvelopeSuccess = true -) - -func (r CaptionDeleteResponseEnvelopeSuccess) IsKnown() bool { - switch r { - case CaptionDeleteResponseEnvelopeSuccessTrue: - return true - } - return false -} - type CaptionGetParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` diff --git a/stream/caption_test.go b/stream/caption_test.go index 4d28e941c82..e5d30189325 100644 --- a/stream/caption_test.go +++ b/stream/caption_test.go @@ -14,70 +14,6 @@ import ( "github.com/cloudflare/cloudflare-go/v2/stream" ) -func TestCaptionUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") - baseURL := "http://localhost:4010" - if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { - baseURL = envURL - } - if !testutil.CheckTestServer(t, baseURL) { - return - } - client := cloudflare.NewClient( - option.WithBaseURL(baseURL), - option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), - option.WithAPIEmail("user@example.com"), - ) - _, err := client.Stream.Captions.Update( - context.TODO(), - "ea95132c15732412d22c1476fa83f27a", - "tr", - stream.CaptionUpdateParams{ - AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), - File: cloudflare.F("@/Users/kyle/Desktop/tr.vtt"), - }, - ) - if err != nil { - var apierr *cloudflare.Error - if errors.As(err, &apierr) { - t.Log(string(apierr.DumpRequest(true))) - } - t.Fatalf("err should be nil: %s", err.Error()) - } -} - -func TestCaptionDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") - baseURL := "http://localhost:4010" - if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { - baseURL = envURL - } - if !testutil.CheckTestServer(t, baseURL) { - return - } - client := cloudflare.NewClient( - option.WithBaseURL(baseURL), - option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), - option.WithAPIEmail("user@example.com"), - ) - _, err := client.Stream.Captions.Delete( - context.TODO(), - "ea95132c15732412d22c1476fa83f27a", - "tr", - stream.CaptionDeleteParams{ - AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), - Body: map[string]interface{}{}, - }, - ) - if err != nil { - var apierr *cloudflare.Error - if errors.As(err, &apierr) { - t.Log(string(apierr.DumpRequest(true))) - } - t.Fatalf("err should be nil: %s", err.Error()) - } -} - func TestCaptionGet(t *testing.T) { t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" diff --git a/stream/captionlanguage.go b/stream/captionlanguage.go new file mode 100644 index 00000000000..b43d91ad177 --- /dev/null +++ b/stream/captionlanguage.go @@ -0,0 +1,230 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +package stream + +import ( + "context" + "fmt" + "net/http" + + "github.com/cloudflare/cloudflare-go/v2/internal/apijson" + "github.com/cloudflare/cloudflare-go/v2/internal/param" + "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" + "github.com/cloudflare/cloudflare-go/v2/internal/shared" + "github.com/cloudflare/cloudflare-go/v2/option" +) + +// CaptionLanguageService contains methods and other services that help with +// interacting with the cloudflare API. Note, unlike clients, this service does not +// read variables from the environment automatically. You should not instantiate +// this service directly, and instead use the [NewCaptionLanguageService] method +// instead. +type CaptionLanguageService struct { + Options []option.RequestOption + Vtt *CaptionLanguageVttService +} + +// NewCaptionLanguageService generates a new service that applies the given options +// to each request. These options are applied after the parent client's options (if +// there is one), and before any request-specific options. +func NewCaptionLanguageService(opts ...option.RequestOption) (r *CaptionLanguageService) { + r = &CaptionLanguageService{} + r.Options = opts + r.Vtt = NewCaptionLanguageVttService(opts...) + return +} + +// Uploads the caption or subtitle file to the endpoint for a specific BCP47 +// language. One caption or subtitle file per language is allowed. +func (r *CaptionLanguageService) Update(ctx context.Context, identifier string, language string, params CaptionLanguageUpdateParams, opts ...option.RequestOption) (res *Caption, err error) { + opts = append(r.Options[:], opts...) + var env CaptionLanguageUpdateResponseEnvelope + path := fmt.Sprintf("accounts/%s/stream/%s/captions/%s", params.AccountID, identifier, language) + err = requestconfig.ExecuteNewRequest(ctx, http.MethodPut, path, params, &env, opts...) + if err != nil { + return + } + res = &env.Result + return +} + +// Removes the captions or subtitles from a video. +func (r *CaptionLanguageService) Delete(ctx context.Context, identifier string, language string, params CaptionLanguageDeleteParams, opts ...option.RequestOption) (res *string, err error) { + opts = append(r.Options[:], opts...) + var env CaptionLanguageDeleteResponseEnvelope + path := fmt.Sprintf("accounts/%s/stream/%s/captions/%s", params.AccountID, identifier, language) + err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, nil, &env, opts...) + if err != nil { + return + } + res = &env.Result + return +} + +// Lists the captions or subtitles for provided language. +func (r *CaptionLanguageService) Get(ctx context.Context, identifier string, language string, query CaptionLanguageGetParams, opts ...option.RequestOption) (res *Caption, err error) { + opts = append(r.Options[:], opts...) + var env CaptionLanguageGetResponseEnvelope + path := fmt.Sprintf("accounts/%s/stream/%s/captions/%s", query.AccountID, identifier, language) + err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...) + if err != nil { + return + } + res = &env.Result + return +} + +type CaptionLanguageUpdateParams struct { + // Identifier + AccountID param.Field[string] `path:"account_id,required"` + // The WebVTT file containing the caption or subtitle content. + File param.Field[string] `json:"file,required"` +} + +func (r CaptionLanguageUpdateParams) MarshalJSON() (data []byte, err error) { + return apijson.MarshalRoot(r) +} + +type CaptionLanguageUpdateResponseEnvelope struct { + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + // Whether the API call was successful + Success CaptionLanguageUpdateResponseEnvelopeSuccess `json:"success,required"` + Result Caption `json:"result"` + JSON captionLanguageUpdateResponseEnvelopeJSON `json:"-"` +} + +// captionLanguageUpdateResponseEnvelopeJSON contains the JSON metadata for the +// struct [CaptionLanguageUpdateResponseEnvelope] +type captionLanguageUpdateResponseEnvelopeJSON struct { + Errors apijson.Field + Messages apijson.Field + Success apijson.Field + Result apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *CaptionLanguageUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r captionLanguageUpdateResponseEnvelopeJSON) RawJSON() string { + return r.raw +} + +// Whether the API call was successful +type CaptionLanguageUpdateResponseEnvelopeSuccess bool + +const ( + CaptionLanguageUpdateResponseEnvelopeSuccessTrue CaptionLanguageUpdateResponseEnvelopeSuccess = true +) + +func (r CaptionLanguageUpdateResponseEnvelopeSuccess) IsKnown() bool { + switch r { + case CaptionLanguageUpdateResponseEnvelopeSuccessTrue: + return true + } + return false +} + +type CaptionLanguageDeleteParams struct { + // Identifier + AccountID param.Field[string] `path:"account_id,required"` + Body interface{} `json:"body,required"` +} + +func (r CaptionLanguageDeleteParams) MarshalJSON() (data []byte, err error) { + return apijson.MarshalRoot(r.Body) +} + +type CaptionLanguageDeleteResponseEnvelope struct { + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + // Whether the API call was successful + Success CaptionLanguageDeleteResponseEnvelopeSuccess `json:"success,required"` + Result string `json:"result"` + JSON captionLanguageDeleteResponseEnvelopeJSON `json:"-"` +} + +// captionLanguageDeleteResponseEnvelopeJSON contains the JSON metadata for the +// struct [CaptionLanguageDeleteResponseEnvelope] +type captionLanguageDeleteResponseEnvelopeJSON struct { + Errors apijson.Field + Messages apijson.Field + Success apijson.Field + Result apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *CaptionLanguageDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r captionLanguageDeleteResponseEnvelopeJSON) RawJSON() string { + return r.raw +} + +// Whether the API call was successful +type CaptionLanguageDeleteResponseEnvelopeSuccess bool + +const ( + CaptionLanguageDeleteResponseEnvelopeSuccessTrue CaptionLanguageDeleteResponseEnvelopeSuccess = true +) + +func (r CaptionLanguageDeleteResponseEnvelopeSuccess) IsKnown() bool { + switch r { + case CaptionLanguageDeleteResponseEnvelopeSuccessTrue: + return true + } + return false +} + +type CaptionLanguageGetParams struct { + // Identifier + AccountID param.Field[string] `path:"account_id,required"` +} + +type CaptionLanguageGetResponseEnvelope struct { + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + // Whether the API call was successful + Success CaptionLanguageGetResponseEnvelopeSuccess `json:"success,required"` + Result Caption `json:"result"` + JSON captionLanguageGetResponseEnvelopeJSON `json:"-"` +} + +// captionLanguageGetResponseEnvelopeJSON contains the JSON metadata for the struct +// [CaptionLanguageGetResponseEnvelope] +type captionLanguageGetResponseEnvelopeJSON struct { + Errors apijson.Field + Messages apijson.Field + Success apijson.Field + Result apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *CaptionLanguageGetResponseEnvelope) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r captionLanguageGetResponseEnvelopeJSON) RawJSON() string { + return r.raw +} + +// Whether the API call was successful +type CaptionLanguageGetResponseEnvelopeSuccess bool + +const ( + CaptionLanguageGetResponseEnvelopeSuccessTrue CaptionLanguageGetResponseEnvelopeSuccess = true +) + +func (r CaptionLanguageGetResponseEnvelopeSuccess) IsKnown() bool { + switch r { + case CaptionLanguageGetResponseEnvelopeSuccessTrue: + return true + } + return false +} diff --git a/stream/captionlanguage_test.go b/stream/captionlanguage_test.go new file mode 100644 index 00000000000..6ee9346253e --- /dev/null +++ b/stream/captionlanguage_test.go @@ -0,0 +1,110 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +package stream_test + +import ( + "context" + "errors" + "os" + "testing" + + "github.com/cloudflare/cloudflare-go/v2" + "github.com/cloudflare/cloudflare-go/v2/internal/testutil" + "github.com/cloudflare/cloudflare-go/v2/option" + "github.com/cloudflare/cloudflare-go/v2/stream" +) + +func TestCaptionLanguageUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") + baseURL := "http://localhost:4010" + if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { + baseURL = envURL + } + if !testutil.CheckTestServer(t, baseURL) { + return + } + client := cloudflare.NewClient( + option.WithBaseURL(baseURL), + option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), + option.WithAPIEmail("user@example.com"), + ) + _, err := client.Stream.Captions.Language.Update( + context.TODO(), + "ea95132c15732412d22c1476fa83f27a", + "tr", + stream.CaptionLanguageUpdateParams{ + AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), + File: cloudflare.F("@/Users/kyle/Desktop/tr.vtt"), + }, + ) + if err != nil { + var apierr *cloudflare.Error + if errors.As(err, &apierr) { + t.Log(string(apierr.DumpRequest(true))) + } + t.Fatalf("err should be nil: %s", err.Error()) + } +} + +func TestCaptionLanguageDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") + baseURL := "http://localhost:4010" + if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { + baseURL = envURL + } + if !testutil.CheckTestServer(t, baseURL) { + return + } + client := cloudflare.NewClient( + option.WithBaseURL(baseURL), + option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), + option.WithAPIEmail("user@example.com"), + ) + _, err := client.Stream.Captions.Language.Delete( + context.TODO(), + "ea95132c15732412d22c1476fa83f27a", + "tr", + stream.CaptionLanguageDeleteParams{ + AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), + Body: map[string]interface{}{}, + }, + ) + if err != nil { + var apierr *cloudflare.Error + if errors.As(err, &apierr) { + t.Log(string(apierr.DumpRequest(true))) + } + t.Fatalf("err should be nil: %s", err.Error()) + } +} + +func TestCaptionLanguageGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") + baseURL := "http://localhost:4010" + if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { + baseURL = envURL + } + if !testutil.CheckTestServer(t, baseURL) { + return + } + client := cloudflare.NewClient( + option.WithBaseURL(baseURL), + option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), + option.WithAPIEmail("user@example.com"), + ) + _, err := client.Stream.Captions.Language.Get( + context.TODO(), + "ea95132c15732412d22c1476fa83f27a", + "tr", + stream.CaptionLanguageGetParams{ + AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), + }, + ) + if err != nil { + var apierr *cloudflare.Error + if errors.As(err, &apierr) { + t.Log(string(apierr.DumpRequest(true))) + } + t.Fatalf("err should be nil: %s", err.Error()) + } +} diff --git a/stream/captionlanguagevtt.go b/stream/captionlanguagevtt.go new file mode 100644 index 00000000000..7d15f6b2ab1 --- /dev/null +++ b/stream/captionlanguagevtt.go @@ -0,0 +1,51 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +package stream + +import ( + "context" + "fmt" + "net/http" + + "github.com/cloudflare/cloudflare-go/v2/internal/apijson" + "github.com/cloudflare/cloudflare-go/v2/internal/param" + "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" + "github.com/cloudflare/cloudflare-go/v2/option" +) + +// CaptionLanguageVttService contains methods and other services that help with +// interacting with the cloudflare API. Note, unlike clients, this service does not +// read variables from the environment automatically. You should not instantiate +// this service directly, and instead use the [NewCaptionLanguageVttService] method +// instead. +type CaptionLanguageVttService struct { + Options []option.RequestOption +} + +// NewCaptionLanguageVttService generates a new service that applies the given +// options to each request. These options are applied after the parent client's +// options (if there is one), and before any request-specific options. +func NewCaptionLanguageVttService(opts ...option.RequestOption) (r *CaptionLanguageVttService) { + r = &CaptionLanguageVttService{} + r.Options = opts + return +} + +// Return WebVTT captions for a provided language. +func (r *CaptionLanguageVttService) Get(ctx context.Context, identifier string, language string, params CaptionLanguageVttGetParams, opts ...option.RequestOption) (res *string, err error) { + opts = append(r.Options[:], opts...) + opts = append([]option.RequestOption{option.WithHeader("Accept", "text/vtt")}, opts...) + path := fmt.Sprintf("accounts/%s/stream/%s/captions/%s/vtt", params.AccountID, identifier, language) + err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &res, opts...) + return +} + +type CaptionLanguageVttGetParams struct { + // Identifier + AccountID param.Field[string] `path:"account_id,required"` + Body interface{} `json:"body,required"` +} + +func (r CaptionLanguageVttGetParams) MarshalJSON() (data []byte, err error) { + return apijson.MarshalRoot(r.Body) +} diff --git a/stream/captionlanguagevtt_test.go b/stream/captionlanguagevtt_test.go new file mode 100644 index 00000000000..0f097a57544 --- /dev/null +++ b/stream/captionlanguagevtt_test.go @@ -0,0 +1,47 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +package stream_test + +import ( + "context" + "errors" + "os" + "testing" + + "github.com/cloudflare/cloudflare-go/v2" + "github.com/cloudflare/cloudflare-go/v2/internal/testutil" + "github.com/cloudflare/cloudflare-go/v2/option" + "github.com/cloudflare/cloudflare-go/v2/stream" +) + +func TestCaptionLanguageVttGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") + baseURL := "http://localhost:4010" + if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { + baseURL = envURL + } + if !testutil.CheckTestServer(t, baseURL) { + return + } + client := cloudflare.NewClient( + option.WithBaseURL(baseURL), + option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), + option.WithAPIEmail("user@example.com"), + ) + _, err := client.Stream.Captions.Language.Vtt.Get( + context.TODO(), + "ea95132c15732412d22c1476fa83f27a", + "tr", + stream.CaptionLanguageVttGetParams{ + AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), + Body: map[string]interface{}{}, + }, + ) + if err != nil { + var apierr *cloudflare.Error + if errors.As(err, &apierr) { + t.Log(string(apierr.DumpRequest(true))) + } + t.Fatalf("err should be nil: %s", err.Error()) + } +} diff --git a/zero_trust/riskscoring.go b/zero_trust/riskscoring.go new file mode 100644 index 00000000000..bb004f6fa40 --- /dev/null +++ b/zero_trust/riskscoring.go @@ -0,0 +1,335 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +package zero_trust + +import ( + "context" + "fmt" + "net/http" + "net/url" + "reflect" + "time" + + "github.com/cloudflare/cloudflare-go/v2/internal/apijson" + "github.com/cloudflare/cloudflare-go/v2/internal/apiquery" + "github.com/cloudflare/cloudflare-go/v2/internal/param" + "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" + "github.com/cloudflare/cloudflare-go/v2/internal/shared" + "github.com/cloudflare/cloudflare-go/v2/option" + "github.com/tidwall/gjson" +) + +// RiskScoringService contains methods and other services that help with +// interacting with the cloudflare API. Note, unlike clients, this service does not +// read variables from the environment automatically. You should not instantiate +// this service directly, and instead use the [NewRiskScoringService] method +// instead. +type RiskScoringService struct { + Options []option.RequestOption + Behaviours *RiskScoringBehaviourService + Summary *RiskScoringSummaryService +} + +// NewRiskScoringService generates a new service that applies the given options to +// each request. These options are applied after the parent client's options (if +// there is one), and before any request-specific options. +func NewRiskScoringService(opts ...option.RequestOption) (r *RiskScoringService) { + r = &RiskScoringService{} + r.Options = opts + r.Behaviours = NewRiskScoringBehaviourService(opts...) + r.Summary = NewRiskScoringSummaryService(opts...) + return +} + +// Get risk event/score information for a specific user +func (r *RiskScoringService) Get(ctx context.Context, accountIdentifier string, userID string, query RiskScoringGetParams, opts ...option.RequestOption) (res *RiskScoringGetResponse, err error) { + opts = append(r.Options[:], opts...) + var env RiskScoringGetResponseEnvelope + path := fmt.Sprintf("accounts/%s/zt_risk_scoring/%s", accountIdentifier, userID) + err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...) + if err != nil { + return + } + res = &env.Result + return +} + +// Clear the risk score for a particular user +func (r *RiskScoringService) Reset(ctx context.Context, accountIdentifier string, userID string, opts ...option.RequestOption) (res *RiskScoringResetResponseUnion, err error) { + opts = append(r.Options[:], opts...) + var env RiskScoringResetResponseEnvelope + path := fmt.Sprintf("accounts/%s/zt_risk_scoring/%s/reset", accountIdentifier, userID) + err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, nil, &env, opts...) + if err != nil { + return + } + res = &env.Result + return +} + +type RiskScoringGetResponse struct { + Email string `json:"email"` + Events []RiskScoringGetResponseEvent `json:"events"` + LastResetTime time.Time `json:"last_reset_time,nullable" format:"date-time"` + Name string `json:"name"` + RiskLevel RiskScoringGetResponseRiskLevel `json:"risk_level,nullable"` + JSON riskScoringGetResponseJSON `json:"-"` +} + +// riskScoringGetResponseJSON contains the JSON metadata for the struct +// [RiskScoringGetResponse] +type riskScoringGetResponseJSON struct { + Email apijson.Field + Events apijson.Field + LastResetTime apijson.Field + Name apijson.Field + RiskLevel apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *RiskScoringGetResponse) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r riskScoringGetResponseJSON) RawJSON() string { + return r.raw +} + +type RiskScoringGetResponseEvent struct { + ID string `json:"id,required"` + Name string `json:"name,required"` + RiskLevel RiskScoringGetResponseEventsRiskLevel `json:"risk_level,required,nullable"` + Timestamp time.Time `json:"timestamp,required" format:"date-time"` + EventDetails interface{} `json:"event_details"` + JSON riskScoringGetResponseEventJSON `json:"-"` +} + +// riskScoringGetResponseEventJSON contains the JSON metadata for the struct +// [RiskScoringGetResponseEvent] +type riskScoringGetResponseEventJSON struct { + ID apijson.Field + Name apijson.Field + RiskLevel apijson.Field + Timestamp apijson.Field + EventDetails apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *RiskScoringGetResponseEvent) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r riskScoringGetResponseEventJSON) RawJSON() string { + return r.raw +} + +type RiskScoringGetResponseEventsRiskLevel string + +const ( + RiskScoringGetResponseEventsRiskLevelLow RiskScoringGetResponseEventsRiskLevel = "low" + RiskScoringGetResponseEventsRiskLevelMedium RiskScoringGetResponseEventsRiskLevel = "medium" + RiskScoringGetResponseEventsRiskLevelHigh RiskScoringGetResponseEventsRiskLevel = "high" +) + +func (r RiskScoringGetResponseEventsRiskLevel) IsKnown() bool { + switch r { + case RiskScoringGetResponseEventsRiskLevelLow, RiskScoringGetResponseEventsRiskLevelMedium, RiskScoringGetResponseEventsRiskLevelHigh: + return true + } + return false +} + +type RiskScoringGetResponseRiskLevel string + +const ( + RiskScoringGetResponseRiskLevelLow RiskScoringGetResponseRiskLevel = "low" + RiskScoringGetResponseRiskLevelMedium RiskScoringGetResponseRiskLevel = "medium" + RiskScoringGetResponseRiskLevelHigh RiskScoringGetResponseRiskLevel = "high" +) + +func (r RiskScoringGetResponseRiskLevel) IsKnown() bool { + switch r { + case RiskScoringGetResponseRiskLevelLow, RiskScoringGetResponseRiskLevelMedium, RiskScoringGetResponseRiskLevelHigh: + return true + } + return false +} + +// Union satisfied by [zero_trust.RiskScoringResetResponseUnknown] or +// [shared.UnionString]. +type RiskScoringResetResponseUnion interface { + ImplementsZeroTrustRiskScoringResetResponseUnion() +} + +func init() { + apijson.RegisterUnion( + reflect.TypeOf((*RiskScoringResetResponseUnion)(nil)).Elem(), + "", + apijson.UnionVariant{ + TypeFilter: gjson.String, + Type: reflect.TypeOf(shared.UnionString("")), + }, + ) +} + +type RiskScoringGetParams struct { + Direction param.Field[RiskScoringGetParamsDirection] `query:"direction"` + OrderBy param.Field[RiskScoringGetParamsOrderBy] `query:"order_by"` + Page param.Field[int64] `query:"page"` + PerPage param.Field[int64] `query:"per_page"` +} + +// URLQuery serializes [RiskScoringGetParams]'s query parameters as `url.Values`. +func (r RiskScoringGetParams) URLQuery() (v url.Values) { + return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{ + ArrayFormat: apiquery.ArrayQueryFormatRepeat, + NestedFormat: apiquery.NestedQueryFormatBrackets, + }) +} + +type RiskScoringGetParamsDirection string + +const ( + RiskScoringGetParamsDirectionDesc RiskScoringGetParamsDirection = "desc" + RiskScoringGetParamsDirectionAsc RiskScoringGetParamsDirection = "asc" +) + +func (r RiskScoringGetParamsDirection) IsKnown() bool { + switch r { + case RiskScoringGetParamsDirectionDesc, RiskScoringGetParamsDirectionAsc: + return true + } + return false +} + +type RiskScoringGetParamsOrderBy string + +const ( + RiskScoringGetParamsOrderByTimestamp RiskScoringGetParamsOrderBy = "timestamp" + RiskScoringGetParamsOrderByRiskLevel RiskScoringGetParamsOrderBy = "risk_level" +) + +func (r RiskScoringGetParamsOrderBy) IsKnown() bool { + switch r { + case RiskScoringGetParamsOrderByTimestamp, RiskScoringGetParamsOrderByRiskLevel: + return true + } + return false +} + +type RiskScoringGetResponseEnvelope struct { + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + Result RiskScoringGetResponse `json:"result,required"` + // Whether the API call was successful + Success RiskScoringGetResponseEnvelopeSuccess `json:"success,required"` + ResultInfo RiskScoringGetResponseEnvelopeResultInfo `json:"result_info"` + JSON riskScoringGetResponseEnvelopeJSON `json:"-"` +} + +// riskScoringGetResponseEnvelopeJSON contains the JSON metadata for the struct +// [RiskScoringGetResponseEnvelope] +type riskScoringGetResponseEnvelopeJSON struct { + Errors apijson.Field + Messages apijson.Field + Result apijson.Field + Success apijson.Field + ResultInfo apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *RiskScoringGetResponseEnvelope) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r riskScoringGetResponseEnvelopeJSON) RawJSON() string { + return r.raw +} + +// Whether the API call was successful +type RiskScoringGetResponseEnvelopeSuccess bool + +const ( + RiskScoringGetResponseEnvelopeSuccessTrue RiskScoringGetResponseEnvelopeSuccess = true +) + +func (r RiskScoringGetResponseEnvelopeSuccess) IsKnown() bool { + switch r { + case RiskScoringGetResponseEnvelopeSuccessTrue: + return true + } + return false +} + +type RiskScoringGetResponseEnvelopeResultInfo struct { + Count int64 `json:"count,required"` + Page int64 `json:"page,required"` + PerPage int64 `json:"per_page,required"` + TotalCount int64 `json:"total_count,required"` + JSON riskScoringGetResponseEnvelopeResultInfoJSON `json:"-"` +} + +// riskScoringGetResponseEnvelopeResultInfoJSON contains the JSON metadata for the +// struct [RiskScoringGetResponseEnvelopeResultInfo] +type riskScoringGetResponseEnvelopeResultInfoJSON struct { + Count apijson.Field + Page apijson.Field + PerPage apijson.Field + TotalCount apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *RiskScoringGetResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r riskScoringGetResponseEnvelopeResultInfoJSON) RawJSON() string { + return r.raw +} + +type RiskScoringResetResponseEnvelope struct { + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + Result RiskScoringResetResponseUnion `json:"result,required"` + // Whether the API call was successful + Success RiskScoringResetResponseEnvelopeSuccess `json:"success,required"` + JSON riskScoringResetResponseEnvelopeJSON `json:"-"` +} + +// riskScoringResetResponseEnvelopeJSON contains the JSON metadata for the struct +// [RiskScoringResetResponseEnvelope] +type riskScoringResetResponseEnvelopeJSON struct { + Errors apijson.Field + Messages apijson.Field + Result apijson.Field + Success apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *RiskScoringResetResponseEnvelope) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r riskScoringResetResponseEnvelopeJSON) RawJSON() string { + return r.raw +} + +// Whether the API call was successful +type RiskScoringResetResponseEnvelopeSuccess bool + +const ( + RiskScoringResetResponseEnvelopeSuccessTrue RiskScoringResetResponseEnvelopeSuccess = true +) + +func (r RiskScoringResetResponseEnvelopeSuccess) IsKnown() bool { + switch r { + case RiskScoringResetResponseEnvelopeSuccessTrue: + return true + } + return false +} diff --git a/zero_trust/riskscoring_test.go b/zero_trust/riskscoring_test.go new file mode 100644 index 00000000000..75642159c99 --- /dev/null +++ b/zero_trust/riskscoring_test.go @@ -0,0 +1,77 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +package zero_trust_test + +import ( + "context" + "errors" + "os" + "testing" + + "github.com/cloudflare/cloudflare-go/v2" + "github.com/cloudflare/cloudflare-go/v2/internal/testutil" + "github.com/cloudflare/cloudflare-go/v2/option" + "github.com/cloudflare/cloudflare-go/v2/zero_trust" +) + +func TestRiskScoringGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") + baseURL := "http://localhost:4010" + if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { + baseURL = envURL + } + if !testutil.CheckTestServer(t, baseURL) { + return + } + client := cloudflare.NewClient( + option.WithBaseURL(baseURL), + option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), + option.WithAPIEmail("user@example.com"), + ) + _, err := client.ZeroTrust.RiskScoring.Get( + context.TODO(), + "023e105f4ecef8ad9ca31a8372d0c353", + "f2108713-1206-4e84-8b80-0e71a6a1c67b", + zero_trust.RiskScoringGetParams{ + Direction: cloudflare.F(zero_trust.RiskScoringGetParamsDirectionDesc), + OrderBy: cloudflare.F(zero_trust.RiskScoringGetParamsOrderByTimestamp), + Page: cloudflare.F(int64(0)), + PerPage: cloudflare.F(int64(0)), + }, + ) + if err != nil { + var apierr *cloudflare.Error + if errors.As(err, &apierr) { + t.Log(string(apierr.DumpRequest(true))) + } + t.Fatalf("err should be nil: %s", err.Error()) + } +} + +func TestRiskScoringReset(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") + baseURL := "http://localhost:4010" + if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { + baseURL = envURL + } + if !testutil.CheckTestServer(t, baseURL) { + return + } + client := cloudflare.NewClient( + option.WithBaseURL(baseURL), + option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), + option.WithAPIEmail("user@example.com"), + ) + _, err := client.ZeroTrust.RiskScoring.Reset( + context.TODO(), + "023e105f4ecef8ad9ca31a8372d0c353", + "f2108713-1206-4e84-8b80-0e71a6a1c67b", + ) + if err != nil { + var apierr *cloudflare.Error + if errors.As(err, &apierr) { + t.Log(string(apierr.DumpRequest(true))) + } + t.Fatalf("err should be nil: %s", err.Error()) + } +} diff --git a/zero_trust/riskscoringbehaviour.go b/zero_trust/riskscoringbehaviour.go new file mode 100644 index 00000000000..cfb0ac33a48 --- /dev/null +++ b/zero_trust/riskscoringbehaviour.go @@ -0,0 +1,306 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +package zero_trust + +import ( + "context" + "fmt" + "net/http" + + "github.com/cloudflare/cloudflare-go/v2/internal/apijson" + "github.com/cloudflare/cloudflare-go/v2/internal/param" + "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" + "github.com/cloudflare/cloudflare-go/v2/internal/shared" + "github.com/cloudflare/cloudflare-go/v2/option" +) + +// RiskScoringBehaviourService contains methods and other services that help with +// interacting with the cloudflare API. Note, unlike clients, this service does not +// read variables from the environment automatically. You should not instantiate +// this service directly, and instead use the [NewRiskScoringBehaviourService] +// method instead. +type RiskScoringBehaviourService struct { + Options []option.RequestOption +} + +// NewRiskScoringBehaviourService generates a new service that applies the given +// options to each request. These options are applied after the parent client's +// options (if there is one), and before any request-specific options. +func NewRiskScoringBehaviourService(opts ...option.RequestOption) (r *RiskScoringBehaviourService) { + r = &RiskScoringBehaviourService{} + r.Options = opts + return +} + +// Update configuration for risk behaviors +func (r *RiskScoringBehaviourService) Update(ctx context.Context, accountIdentifier string, body RiskScoringBehaviourUpdateParams, opts ...option.RequestOption) (res *RiskScoringBehaviourUpdateResponse, err error) { + opts = append(r.Options[:], opts...) + var env RiskScoringBehaviourUpdateResponseEnvelope + path := fmt.Sprintf("accounts/%s/zt_risk_scoring/behaviors", accountIdentifier) + err = requestconfig.ExecuteNewRequest(ctx, http.MethodPut, path, body, &env, opts...) + if err != nil { + return + } + res = &env.Result + return +} + +// Get all behaviors and associated configuration +func (r *RiskScoringBehaviourService) Get(ctx context.Context, accountIdentifier string, opts ...option.RequestOption) (res *RiskScoringBehaviourGetResponse, err error) { + opts = append(r.Options[:], opts...) + var env RiskScoringBehaviourGetResponseEnvelope + path := fmt.Sprintf("accounts/%s/zt_risk_scoring/behaviors", accountIdentifier) + err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...) + if err != nil { + return + } + res = &env.Result + return +} + +type RiskScoringBehaviourUpdateResponse struct { + Behaviors map[string]RiskScoringBehaviourUpdateResponseBehavior `json:"behaviors"` + JSON riskScoringBehaviourUpdateResponseJSON `json:"-"` +} + +// riskScoringBehaviourUpdateResponseJSON contains the JSON metadata for the struct +// [RiskScoringBehaviourUpdateResponse] +type riskScoringBehaviourUpdateResponseJSON struct { + Behaviors apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *RiskScoringBehaviourUpdateResponse) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r riskScoringBehaviourUpdateResponseJSON) RawJSON() string { + return r.raw +} + +type RiskScoringBehaviourUpdateResponseBehavior struct { + Description string `json:"description"` + Enabled bool `json:"enabled"` + Name string `json:"name"` + RiskLevel RiskScoringBehaviourUpdateResponseBehaviorsRiskLevel `json:"risk_level,nullable"` + JSON riskScoringBehaviourUpdateResponseBehaviorJSON `json:"-"` +} + +// riskScoringBehaviourUpdateResponseBehaviorJSON contains the JSON metadata for +// the struct [RiskScoringBehaviourUpdateResponseBehavior] +type riskScoringBehaviourUpdateResponseBehaviorJSON struct { + Description apijson.Field + Enabled apijson.Field + Name apijson.Field + RiskLevel apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *RiskScoringBehaviourUpdateResponseBehavior) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r riskScoringBehaviourUpdateResponseBehaviorJSON) RawJSON() string { + return r.raw +} + +type RiskScoringBehaviourUpdateResponseBehaviorsRiskLevel string + +const ( + RiskScoringBehaviourUpdateResponseBehaviorsRiskLevelLow RiskScoringBehaviourUpdateResponseBehaviorsRiskLevel = "low" + RiskScoringBehaviourUpdateResponseBehaviorsRiskLevelMedium RiskScoringBehaviourUpdateResponseBehaviorsRiskLevel = "medium" + RiskScoringBehaviourUpdateResponseBehaviorsRiskLevelHigh RiskScoringBehaviourUpdateResponseBehaviorsRiskLevel = "high" +) + +func (r RiskScoringBehaviourUpdateResponseBehaviorsRiskLevel) IsKnown() bool { + switch r { + case RiskScoringBehaviourUpdateResponseBehaviorsRiskLevelLow, RiskScoringBehaviourUpdateResponseBehaviorsRiskLevelMedium, RiskScoringBehaviourUpdateResponseBehaviorsRiskLevelHigh: + return true + } + return false +} + +type RiskScoringBehaviourGetResponse struct { + Behaviors map[string]RiskScoringBehaviourGetResponseBehavior `json:"behaviors"` + JSON riskScoringBehaviourGetResponseJSON `json:"-"` +} + +// riskScoringBehaviourGetResponseJSON contains the JSON metadata for the struct +// [RiskScoringBehaviourGetResponse] +type riskScoringBehaviourGetResponseJSON struct { + Behaviors apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *RiskScoringBehaviourGetResponse) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r riskScoringBehaviourGetResponseJSON) RawJSON() string { + return r.raw +} + +type RiskScoringBehaviourGetResponseBehavior struct { + Description string `json:"description"` + Enabled bool `json:"enabled"` + Name string `json:"name"` + RiskLevel RiskScoringBehaviourGetResponseBehaviorsRiskLevel `json:"risk_level,nullable"` + JSON riskScoringBehaviourGetResponseBehaviorJSON `json:"-"` +} + +// riskScoringBehaviourGetResponseBehaviorJSON contains the JSON metadata for the +// struct [RiskScoringBehaviourGetResponseBehavior] +type riskScoringBehaviourGetResponseBehaviorJSON struct { + Description apijson.Field + Enabled apijson.Field + Name apijson.Field + RiskLevel apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *RiskScoringBehaviourGetResponseBehavior) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r riskScoringBehaviourGetResponseBehaviorJSON) RawJSON() string { + return r.raw +} + +type RiskScoringBehaviourGetResponseBehaviorsRiskLevel string + +const ( + RiskScoringBehaviourGetResponseBehaviorsRiskLevelLow RiskScoringBehaviourGetResponseBehaviorsRiskLevel = "low" + RiskScoringBehaviourGetResponseBehaviorsRiskLevelMedium RiskScoringBehaviourGetResponseBehaviorsRiskLevel = "medium" + RiskScoringBehaviourGetResponseBehaviorsRiskLevelHigh RiskScoringBehaviourGetResponseBehaviorsRiskLevel = "high" +) + +func (r RiskScoringBehaviourGetResponseBehaviorsRiskLevel) IsKnown() bool { + switch r { + case RiskScoringBehaviourGetResponseBehaviorsRiskLevelLow, RiskScoringBehaviourGetResponseBehaviorsRiskLevelMedium, RiskScoringBehaviourGetResponseBehaviorsRiskLevelHigh: + return true + } + return false +} + +type RiskScoringBehaviourUpdateParams struct { + Behaviors param.Field[map[string]RiskScoringBehaviourUpdateParamsBehaviors] `json:"behaviors"` +} + +func (r RiskScoringBehaviourUpdateParams) MarshalJSON() (data []byte, err error) { + return apijson.MarshalRoot(r) +} + +type RiskScoringBehaviourUpdateParamsBehaviors struct { + Enabled param.Field[bool] `json:"enabled,required"` + RiskLevel param.Field[RiskScoringBehaviourUpdateParamsBehaviorsRiskLevel] `json:"risk_level,required"` +} + +func (r RiskScoringBehaviourUpdateParamsBehaviors) MarshalJSON() (data []byte, err error) { + return apijson.MarshalRoot(r) +} + +type RiskScoringBehaviourUpdateParamsBehaviorsRiskLevel string + +const ( + RiskScoringBehaviourUpdateParamsBehaviorsRiskLevelLow RiskScoringBehaviourUpdateParamsBehaviorsRiskLevel = "low" + RiskScoringBehaviourUpdateParamsBehaviorsRiskLevelMedium RiskScoringBehaviourUpdateParamsBehaviorsRiskLevel = "medium" + RiskScoringBehaviourUpdateParamsBehaviorsRiskLevelHigh RiskScoringBehaviourUpdateParamsBehaviorsRiskLevel = "high" +) + +func (r RiskScoringBehaviourUpdateParamsBehaviorsRiskLevel) IsKnown() bool { + switch r { + case RiskScoringBehaviourUpdateParamsBehaviorsRiskLevelLow, RiskScoringBehaviourUpdateParamsBehaviorsRiskLevelMedium, RiskScoringBehaviourUpdateParamsBehaviorsRiskLevelHigh: + return true + } + return false +} + +type RiskScoringBehaviourUpdateResponseEnvelope struct { + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + Result RiskScoringBehaviourUpdateResponse `json:"result,required"` + // Whether the API call was successful + Success RiskScoringBehaviourUpdateResponseEnvelopeSuccess `json:"success,required"` + JSON riskScoringBehaviourUpdateResponseEnvelopeJSON `json:"-"` +} + +// riskScoringBehaviourUpdateResponseEnvelopeJSON contains the JSON metadata for +// the struct [RiskScoringBehaviourUpdateResponseEnvelope] +type riskScoringBehaviourUpdateResponseEnvelopeJSON struct { + Errors apijson.Field + Messages apijson.Field + Result apijson.Field + Success apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *RiskScoringBehaviourUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r riskScoringBehaviourUpdateResponseEnvelopeJSON) RawJSON() string { + return r.raw +} + +// Whether the API call was successful +type RiskScoringBehaviourUpdateResponseEnvelopeSuccess bool + +const ( + RiskScoringBehaviourUpdateResponseEnvelopeSuccessTrue RiskScoringBehaviourUpdateResponseEnvelopeSuccess = true +) + +func (r RiskScoringBehaviourUpdateResponseEnvelopeSuccess) IsKnown() bool { + switch r { + case RiskScoringBehaviourUpdateResponseEnvelopeSuccessTrue: + return true + } + return false +} + +type RiskScoringBehaviourGetResponseEnvelope struct { + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + Result RiskScoringBehaviourGetResponse `json:"result,required"` + // Whether the API call was successful + Success RiskScoringBehaviourGetResponseEnvelopeSuccess `json:"success,required"` + JSON riskScoringBehaviourGetResponseEnvelopeJSON `json:"-"` +} + +// riskScoringBehaviourGetResponseEnvelopeJSON contains the JSON metadata for the +// struct [RiskScoringBehaviourGetResponseEnvelope] +type riskScoringBehaviourGetResponseEnvelopeJSON struct { + Errors apijson.Field + Messages apijson.Field + Result apijson.Field + Success apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *RiskScoringBehaviourGetResponseEnvelope) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r riskScoringBehaviourGetResponseEnvelopeJSON) RawJSON() string { + return r.raw +} + +// Whether the API call was successful +type RiskScoringBehaviourGetResponseEnvelopeSuccess bool + +const ( + RiskScoringBehaviourGetResponseEnvelopeSuccessTrue RiskScoringBehaviourGetResponseEnvelopeSuccess = true +) + +func (r RiskScoringBehaviourGetResponseEnvelopeSuccess) IsKnown() bool { + switch r { + case RiskScoringBehaviourGetResponseEnvelopeSuccessTrue: + return true + } + return false +} diff --git a/zero_trust/riskscoringbehaviour_test.go b/zero_trust/riskscoringbehaviour_test.go new file mode 100644 index 00000000000..cc3b5e43056 --- /dev/null +++ b/zero_trust/riskscoringbehaviour_test.go @@ -0,0 +1,74 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +package zero_trust_test + +import ( + "context" + "errors" + "os" + "testing" + + "github.com/cloudflare/cloudflare-go/v2" + "github.com/cloudflare/cloudflare-go/v2/internal/testutil" + "github.com/cloudflare/cloudflare-go/v2/option" + "github.com/cloudflare/cloudflare-go/v2/zero_trust" +) + +func TestRiskScoringBehaviourUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") + baseURL := "http://localhost:4010" + if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { + baseURL = envURL + } + if !testutil.CheckTestServer(t, baseURL) { + return + } + client := cloudflare.NewClient( + option.WithBaseURL(baseURL), + option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), + option.WithAPIEmail("user@example.com"), + ) + _, err := client.ZeroTrust.RiskScoring.Behaviours.Update( + context.TODO(), + "023e105f4ecef8ad9ca31a8372d0c353", + zero_trust.RiskScoringBehaviourUpdateParams{ + Behaviors: cloudflare.F(map[string]zero_trust.RiskScoringBehaviourUpdateParamsBehaviors{ + "foo": { + Enabled: cloudflare.F(true), + RiskLevel: cloudflare.F(zero_trust.RiskScoringBehaviourUpdateParamsBehaviorsRiskLevelLow), + }, + }), + }, + ) + if err != nil { + var apierr *cloudflare.Error + if errors.As(err, &apierr) { + t.Log(string(apierr.DumpRequest(true))) + } + t.Fatalf("err should be nil: %s", err.Error()) + } +} + +func TestRiskScoringBehaviourGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") + baseURL := "http://localhost:4010" + if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { + baseURL = envURL + } + if !testutil.CheckTestServer(t, baseURL) { + return + } + client := cloudflare.NewClient( + option.WithBaseURL(baseURL), + option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), + option.WithAPIEmail("user@example.com"), + ) + _, err := client.ZeroTrust.RiskScoring.Behaviours.Get(context.TODO(), "023e105f4ecef8ad9ca31a8372d0c353") + if err != nil { + var apierr *cloudflare.Error + if errors.As(err, &apierr) { + t.Log(string(apierr.DumpRequest(true))) + } + t.Fatalf("err should be nil: %s", err.Error()) + } +} diff --git a/zero_trust/riskscoringsummary.go b/zero_trust/riskscoringsummary.go new file mode 100644 index 00000000000..5e6119315ac --- /dev/null +++ b/zero_trust/riskscoringsummary.go @@ -0,0 +1,237 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +package zero_trust + +import ( + "context" + "fmt" + "net/http" + "net/url" + "time" + + "github.com/cloudflare/cloudflare-go/v2/internal/apijson" + "github.com/cloudflare/cloudflare-go/v2/internal/apiquery" + "github.com/cloudflare/cloudflare-go/v2/internal/param" + "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" + "github.com/cloudflare/cloudflare-go/v2/internal/shared" + "github.com/cloudflare/cloudflare-go/v2/option" +) + +// RiskScoringSummaryService contains methods and other services that help with +// interacting with the cloudflare API. Note, unlike clients, this service does not +// read variables from the environment automatically. You should not instantiate +// this service directly, and instead use the [NewRiskScoringSummaryService] method +// instead. +type RiskScoringSummaryService struct { + Options []option.RequestOption +} + +// NewRiskScoringSummaryService generates a new service that applies the given +// options to each request. These options are applied after the parent client's +// options (if there is one), and before any request-specific options. +func NewRiskScoringSummaryService(opts ...option.RequestOption) (r *RiskScoringSummaryService) { + r = &RiskScoringSummaryService{} + r.Options = opts + return +} + +// Get risk score info for all users in the account +func (r *RiskScoringSummaryService) Get(ctx context.Context, accountIdentifier string, query RiskScoringSummaryGetParams, opts ...option.RequestOption) (res *RiskScoringSummaryGetResponse, err error) { + opts = append(r.Options[:], opts...) + var env RiskScoringSummaryGetResponseEnvelope + path := fmt.Sprintf("accounts/%s/zt_risk_scoring/summary", accountIdentifier) + err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...) + if err != nil { + return + } + res = &env.Result + return +} + +type RiskScoringSummaryGetResponse struct { + Users []RiskScoringSummaryGetResponseUser `json:"users"` + JSON riskScoringSummaryGetResponseJSON `json:"-"` +} + +// riskScoringSummaryGetResponseJSON contains the JSON metadata for the struct +// [RiskScoringSummaryGetResponse] +type riskScoringSummaryGetResponseJSON struct { + Users apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *RiskScoringSummaryGetResponse) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r riskScoringSummaryGetResponseJSON) RawJSON() string { + return r.raw +} + +type RiskScoringSummaryGetResponseUser struct { + Email string `json:"email,required"` + EventCount int64 `json:"event_count,required"` + LastEvent time.Time `json:"last_event,required" format:"date-time"` + MaxRiskLevel RiskScoringSummaryGetResponseUsersMaxRiskLevel `json:"max_risk_level,required,nullable"` + Name string `json:"name,required"` + // The ID for a user + UserID string `json:"user_id,required"` + JSON riskScoringSummaryGetResponseUserJSON `json:"-"` +} + +// riskScoringSummaryGetResponseUserJSON contains the JSON metadata for the struct +// [RiskScoringSummaryGetResponseUser] +type riskScoringSummaryGetResponseUserJSON struct { + Email apijson.Field + EventCount apijson.Field + LastEvent apijson.Field + MaxRiskLevel apijson.Field + Name apijson.Field + UserID apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *RiskScoringSummaryGetResponseUser) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r riskScoringSummaryGetResponseUserJSON) RawJSON() string { + return r.raw +} + +type RiskScoringSummaryGetResponseUsersMaxRiskLevel string + +const ( + RiskScoringSummaryGetResponseUsersMaxRiskLevelLow RiskScoringSummaryGetResponseUsersMaxRiskLevel = "low" + RiskScoringSummaryGetResponseUsersMaxRiskLevelMedium RiskScoringSummaryGetResponseUsersMaxRiskLevel = "medium" + RiskScoringSummaryGetResponseUsersMaxRiskLevelHigh RiskScoringSummaryGetResponseUsersMaxRiskLevel = "high" +) + +func (r RiskScoringSummaryGetResponseUsersMaxRiskLevel) IsKnown() bool { + switch r { + case RiskScoringSummaryGetResponseUsersMaxRiskLevelLow, RiskScoringSummaryGetResponseUsersMaxRiskLevelMedium, RiskScoringSummaryGetResponseUsersMaxRiskLevelHigh: + return true + } + return false +} + +type RiskScoringSummaryGetParams struct { + Direction param.Field[RiskScoringSummaryGetParamsDirection] `query:"direction"` + OrderBy param.Field[RiskScoringSummaryGetParamsOrderBy] `query:"order_by"` + Page param.Field[int64] `query:"page"` + PerPage param.Field[int64] `query:"per_page"` +} + +// URLQuery serializes [RiskScoringSummaryGetParams]'s query parameters as +// `url.Values`. +func (r RiskScoringSummaryGetParams) URLQuery() (v url.Values) { + return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{ + ArrayFormat: apiquery.ArrayQueryFormatRepeat, + NestedFormat: apiquery.NestedQueryFormatBrackets, + }) +} + +type RiskScoringSummaryGetParamsDirection string + +const ( + RiskScoringSummaryGetParamsDirectionDesc RiskScoringSummaryGetParamsDirection = "desc" + RiskScoringSummaryGetParamsDirectionAsc RiskScoringSummaryGetParamsDirection = "asc" +) + +func (r RiskScoringSummaryGetParamsDirection) IsKnown() bool { + switch r { + case RiskScoringSummaryGetParamsDirectionDesc, RiskScoringSummaryGetParamsDirectionAsc: + return true + } + return false +} + +type RiskScoringSummaryGetParamsOrderBy string + +const ( + RiskScoringSummaryGetParamsOrderByTimestamp RiskScoringSummaryGetParamsOrderBy = "timestamp" + RiskScoringSummaryGetParamsOrderByEventCount RiskScoringSummaryGetParamsOrderBy = "event_count" + RiskScoringSummaryGetParamsOrderByMaxRiskLevel RiskScoringSummaryGetParamsOrderBy = "max_risk_level" +) + +func (r RiskScoringSummaryGetParamsOrderBy) IsKnown() bool { + switch r { + case RiskScoringSummaryGetParamsOrderByTimestamp, RiskScoringSummaryGetParamsOrderByEventCount, RiskScoringSummaryGetParamsOrderByMaxRiskLevel: + return true + } + return false +} + +type RiskScoringSummaryGetResponseEnvelope struct { + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + Result RiskScoringSummaryGetResponse `json:"result,required"` + // Whether the API call was successful + Success RiskScoringSummaryGetResponseEnvelopeSuccess `json:"success,required"` + ResultInfo RiskScoringSummaryGetResponseEnvelopeResultInfo `json:"result_info"` + JSON riskScoringSummaryGetResponseEnvelopeJSON `json:"-"` +} + +// riskScoringSummaryGetResponseEnvelopeJSON contains the JSON metadata for the +// struct [RiskScoringSummaryGetResponseEnvelope] +type riskScoringSummaryGetResponseEnvelopeJSON struct { + Errors apijson.Field + Messages apijson.Field + Result apijson.Field + Success apijson.Field + ResultInfo apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *RiskScoringSummaryGetResponseEnvelope) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r riskScoringSummaryGetResponseEnvelopeJSON) RawJSON() string { + return r.raw +} + +// Whether the API call was successful +type RiskScoringSummaryGetResponseEnvelopeSuccess bool + +const ( + RiskScoringSummaryGetResponseEnvelopeSuccessTrue RiskScoringSummaryGetResponseEnvelopeSuccess = true +) + +func (r RiskScoringSummaryGetResponseEnvelopeSuccess) IsKnown() bool { + switch r { + case RiskScoringSummaryGetResponseEnvelopeSuccessTrue: + return true + } + return false +} + +type RiskScoringSummaryGetResponseEnvelopeResultInfo struct { + Count int64 `json:"count,required"` + Page int64 `json:"page,required"` + PerPage int64 `json:"per_page,required"` + TotalCount int64 `json:"total_count,required"` + JSON riskScoringSummaryGetResponseEnvelopeResultInfoJSON `json:"-"` +} + +// riskScoringSummaryGetResponseEnvelopeResultInfoJSON contains the JSON metadata +// for the struct [RiskScoringSummaryGetResponseEnvelopeResultInfo] +type riskScoringSummaryGetResponseEnvelopeResultInfoJSON struct { + Count apijson.Field + Page apijson.Field + PerPage apijson.Field + TotalCount apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *RiskScoringSummaryGetResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r riskScoringSummaryGetResponseEnvelopeResultInfoJSON) RawJSON() string { + return r.raw +} diff --git a/zero_trust/riskscoringsummary_test.go b/zero_trust/riskscoringsummary_test.go new file mode 100644 index 00000000000..45e9f61c126 --- /dev/null +++ b/zero_trust/riskscoringsummary_test.go @@ -0,0 +1,48 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +package zero_trust_test + +import ( + "context" + "errors" + "os" + "testing" + + "github.com/cloudflare/cloudflare-go/v2" + "github.com/cloudflare/cloudflare-go/v2/internal/testutil" + "github.com/cloudflare/cloudflare-go/v2/option" + "github.com/cloudflare/cloudflare-go/v2/zero_trust" +) + +func TestRiskScoringSummaryGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") + baseURL := "http://localhost:4010" + if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { + baseURL = envURL + } + if !testutil.CheckTestServer(t, baseURL) { + return + } + client := cloudflare.NewClient( + option.WithBaseURL(baseURL), + option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), + option.WithAPIEmail("user@example.com"), + ) + _, err := client.ZeroTrust.RiskScoring.Summary.Get( + context.TODO(), + "023e105f4ecef8ad9ca31a8372d0c353", + zero_trust.RiskScoringSummaryGetParams{ + Direction: cloudflare.F(zero_trust.RiskScoringSummaryGetParamsDirectionDesc), + OrderBy: cloudflare.F(zero_trust.RiskScoringSummaryGetParamsOrderByTimestamp), + Page: cloudflare.F(int64(0)), + PerPage: cloudflare.F(int64(0)), + }, + ) + if err != nil { + var apierr *cloudflare.Error + if errors.As(err, &apierr) { + t.Log(string(apierr.DumpRequest(true))) + } + t.Fatalf("err should be nil: %s", err.Error()) + } +} diff --git a/zero_trust/zerotrust.go b/zero_trust/zerotrust.go index cdbc3a0c630..f35b9103c5a 100644 --- a/zero_trust/zerotrust.go +++ b/zero_trust/zerotrust.go @@ -23,6 +23,7 @@ type ZeroTrustService struct { DLP *DLPService Gateway *GatewayService Networks *NetworkService + RiskScoring *RiskScoringService } // NewZeroTrustService generates a new service that applies the given options to @@ -42,5 +43,6 @@ func NewZeroTrustService(opts ...option.RequestOption) (r *ZeroTrustService) { r.DLP = NewDLPService(opts...) r.Gateway = NewGatewayService(opts...) r.Networks = NewNetworkService(opts...) + r.RiskScoring = NewRiskScoringService(opts...) return } From 8e49406cad34e98e6d969069c8490fa889db061e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 19 Apr 2024 00:26:36 +0000 Subject: [PATCH 39/52] feat(api): update via SDK Studio (#1823) --- accounts/account_test.go | 3 --- accounts/member_test.go | 5 ----- accounts/role_test.go | 2 -- acm/totaltls_test.go | 2 -- addressing/addressmap_test.go | 5 ----- addressing/addressmapaccount_test.go | 2 -- addressing/addressmapip_test.go | 2 -- addressing/addressmapzone_test.go | 2 -- addressing/loadocument_test.go | 1 - addressing/loadocumentdownload_test.go | 1 - addressing/prefix_test.go | 5 ----- addressing/prefixbgpbinding_test.go | 4 ---- addressing/prefixbgpprefix_test.go | 3 --- addressing/prefixbgpstatus_test.go | 2 -- addressing/prefixdelegation_test.go | 3 --- addressing/service_test.go | 1 - alerting/availablealert_test.go | 1 - alerting/destinationeligible_test.go | 1 - alerting/destinationpagerduty_test.go | 4 ---- alerting/destinationwebhook_test.go | 5 ----- alerting/history_test.go | 1 - alerting/policy_test.go | 5 ----- argo/smartrouting_test.go | 2 -- argo/tieredcaching_test.go | 2 -- audit_logs/auditlog_test.go | 1 - billing/profile_test.go | 1 - bot_management/botmanagement_test.go | 2 -- brand_protection/brandprotection_test.go | 2 -- cache/cache_test.go | 1 - cache/cachereserve_test.go | 4 ---- cache/regionaltieredcache_test.go | 2 -- cache/smarttieredcache_test.go | 3 --- cache/variant_test.go | 3 --- calls/call_test.go | 5 ----- certificate_authorities/hostnameassociation_test.go | 2 -- challenges/widget_test.go | 6 ------ client_certificates/clientcertificate_test.go | 5 ----- cloudforce_one/request_test.go | 8 -------- cloudforce_one/requestmessage_test.go | 4 ---- cloudforce_one/requestpriority_test.go | 5 ----- custom_certificates/customcertificate_test.go | 5 ----- custom_certificates/prioritize_test.go | 1 - custom_hostnames/customhostname_test.go | 5 ----- custom_hostnames/fallbackorigin_test.go | 3 --- custom_nameservers/customnameserver_test.go | 5 ----- d1/database_test.go | 5 ----- dcv_delegation/uuid_test.go | 1 - diagnostics/traceroute_test.go | 1 - dns/analyticsreport_test.go | 1 - dns/analyticsreportbytime_test.go | 1 - dns/firewall_test.go | 5 ----- dns/firewallanalyticsreport_test.go | 1 - dns/firewallanalyticsreportbytime_test.go | 1 - dns/record_test.go | 9 --------- dnssec/dnssec_test.go | 3 --- durable_objects/namespace_test.go | 1 - durable_objects/namespaceobject_test.go | 1 - email_routing/address_test.go | 4 ---- email_routing/dns_test.go | 1 - email_routing/emailrouting_test.go | 3 --- email_routing/rule_test.go | 5 ----- email_routing/rulecatchall_test.go | 2 -- event_notifications/r2configuration_test.go | 1 - event_notifications/r2configurationqueue_test.go | 2 -- filters/filter_test.go | 5 ----- firewall/accessrule_test.go | 5 ----- firewall/lockdown_test.go | 5 ----- firewall/rule_test.go | 6 ------ firewall/uarule_test.go | 5 ----- firewall/wafoverride_test.go | 5 ----- firewall/wafpackage_test.go | 2 -- firewall/wafpackagegroup_test.go | 3 --- firewall/wafpackagerule_test.go | 3 --- healthchecks/healthcheck_test.go | 6 ------ healthchecks/preview_test.go | 3 --- hostnames/settingtls_test.go | 3 --- hyperdrive/config_test.go | 6 ------ images/v1_test.go | 5 ----- images/v1blob_test.go | 1 - images/v1key_test.go | 3 --- images/v1stat_test.go | 1 - images/v1variant_test.go | 5 ----- images/v2_test.go | 1 - images/v2directupload_test.go | 1 - intel/asn_test.go | 1 - intel/asnsubnet_test.go | 1 - intel/attacksurfacereportissue_test.go | 5 ----- intel/attacksurfacereportissuetype_test.go | 1 - intel/dns_test.go | 1 - intel/domain_test.go | 1 - intel/domainbulk_test.go | 1 - intel/domainhistory_test.go | 1 - intel/indicatorfeed_test.go | 5 ----- intel/indicatorfeedpermission_test.go | 3 --- intel/ip_test.go | 1 - intel/iplist_test.go | 1 - intel/miscategorization_test.go | 1 - intel/sinkhole_test.go | 1 - intel/whois_test.go | 1 - ips/ip_test.go | 1 - keyless_certificates/keylesscertificate_test.go | 5 ----- kv/namespace_test.go | 4 ---- kv/namespacebulk_test.go | 2 -- kv/namespacekey_test.go | 1 - kv/namespacemetadata_test.go | 1 - kv/namespacevalue_test.go | 3 --- load_balancers/loadbalancer_test.go | 6 ------ load_balancers/monitor_test.go | 6 ------ load_balancers/monitorpreview_test.go | 1 - load_balancers/monitorreference_test.go | 1 - load_balancers/pool_test.go | 6 ------ load_balancers/poolhealth_test.go | 2 -- load_balancers/poolreference_test.go | 1 - load_balancers/preview_test.go | 1 - load_balancers/region_test.go | 2 -- load_balancers/search_test.go | 1 - logpush/datasetfield_test.go | 1 - logpush/datasetjob_test.go | 1 - logpush/edge_test.go | 2 -- logpush/job_test.go | 5 ----- logpush/ownership_test.go | 2 -- logpush/validate_test.go | 2 -- logs/controlcmbconfig_test.go | 3 --- logs/controlretentionflag_test.go | 2 -- logs/rayid_test.go | 1 - logs/received_test.go | 1 - logs/receivedfield_test.go | 1 - magic_network_monitoring/config_test.go | 5 ----- magic_network_monitoring/configfull_test.go | 1 - magic_network_monitoring/rule_test.go | 6 ------ magic_network_monitoring/ruleadvertisement_test.go | 1 - magic_transit/cfinterconnect_test.go | 3 --- magic_transit/gretunnel_test.go | 5 ----- magic_transit/ipsectunnel_test.go | 6 ------ magic_transit/route_test.go | 6 ------ magic_transit/site_test.go | 5 ----- magic_transit/siteacl_test.go | 5 ----- magic_transit/sitelan_test.go | 5 ----- magic_transit/sitewan_test.go | 5 ----- managed_headers/managedheader_test.go | 2 -- memberships/membership_test.go | 4 ---- mtls_certificates/association_test.go | 1 - mtls_certificates/mtlscertificate_test.go | 4 ---- origin_ca_certificates/origincacertificate_test.go | 4 ---- .../originpostquantumencryption_test.go | 2 -- origin_tls_client_auth/hostname_test.go | 2 -- origin_tls_client_auth/hostnamecertificate_test.go | 4 ---- origin_tls_client_auth/origintlsclientauth_test.go | 4 ---- origin_tls_client_auth/setting_test.go | 2 -- page_shield/connection_test.go | 2 -- page_shield/pageshield_test.go | 2 -- page_shield/policy_test.go | 5 ----- page_shield/script_test.go | 2 -- pagerules/pagerule_test.go | 6 ------ pagerules/setting_test.go | 1 - pages/project_test.go | 6 ------ pages/projectdeployment_test.go | 6 ------ pages/projectdeploymenthistorylog_test.go | 1 - pages/projectdomain_test.go | 5 ----- pcaps/download_test.go | 1 - pcaps/ownership_test.go | 4 ---- pcaps/pcap_test.go | 3 --- plans/plan_test.go | 2 -- queues/consumer_test.go | 4 ---- queues/message_test.go | 2 -- queues/queue_test.go | 5 ----- r2/bucket_test.go | 4 ---- r2/sippy_test.go | 3 --- radar/annotationoutage_test.go | 2 -- radar/as112_test.go | 1 - radar/as112summary_test.go | 6 ------ radar/as112timeseriesgroup_test.go | 6 ------ radar/as112top_test.go | 4 ---- radar/attacklayer3_test.go | 1 - radar/attacklayer3summary_test.go | 6 ------ radar/attacklayer3timeseriesgroup_test.go | 8 -------- radar/attacklayer3top_test.go | 3 --- radar/attacklayer3toplocation_test.go | 2 -- radar/attacklayer7_test.go | 1 - radar/attacklayer7summary_test.go | 6 ------ radar/attacklayer7timeseriesgroup_test.go | 8 -------- radar/attacklayer7top_test.go | 3 --- radar/attacklayer7topase_test.go | 1 - radar/attacklayer7toplocation_test.go | 2 -- radar/bgp_test.go | 1 - radar/bgphijackevent_test.go | 1 - radar/bgpleakevent_test.go | 1 - radar/bgproute_test.go | 4 ---- radar/bgptop_test.go | 1 - radar/bgptopase_test.go | 2 -- radar/connectiontampering_test.go | 2 -- radar/dataset_test.go | 3 --- radar/dnstop_test.go | 2 -- radar/emailroutingsummary_test.go | 6 ------ radar/emailroutingtimeseriesgroup_test.go | 6 ------ radar/emailsecuritysummary_test.go | 9 --------- radar/emailsecuritytimeseriesgroup_test.go | 9 --------- radar/emailsecuritytoptld_test.go | 1 - radar/emailsecuritytoptldmalicious_test.go | 1 - radar/emailsecuritytoptldspam_test.go | 1 - radar/emailsecuritytoptldspoof_test.go | 1 - radar/entity_test.go | 1 - radar/entityasn_test.go | 4 ---- radar/entitylocation_test.go | 2 -- radar/httpase_test.go | 1 - radar/httpasebotclass_test.go | 1 - radar/httpasedevicetype_test.go | 1 - radar/httpasehttpmethod_test.go | 1 - radar/httpasehttpprotocol_test.go | 1 - radar/httpaseipversion_test.go | 1 - radar/httpaseos_test.go | 1 - radar/httpasetlsversion_test.go | 1 - radar/httplocation_test.go | 1 - radar/httplocationbotclass_test.go | 1 - radar/httplocationdevicetype_test.go | 1 - radar/httplocationhttpmethod_test.go | 1 - radar/httplocationhttpprotocol_test.go | 1 - radar/httplocationipversion_test.go | 1 - radar/httplocationos_test.go | 1 - radar/httplocationtlsversion_test.go | 1 - radar/httpsummary_test.go | 7 ------- radar/httptimeseriesgroup_test.go | 9 --------- radar/httptop_test.go | 2 -- radar/netflow_test.go | 1 - radar/netflowtop_test.go | 2 -- radar/qualityiqi_test.go | 2 -- radar/qualityspeed_test.go | 2 -- radar/qualityspeedtop_test.go | 2 -- radar/ranking_test.go | 2 -- radar/rankingdomain_test.go | 1 - radar/search_test.go | 1 - radar/trafficanomaly_test.go | 1 - radar/trafficanomalylocation_test.go | 1 - radar/verifiedbottop_test.go | 2 -- rate_limits/ratelimit_test.go | 5 ----- rate_plans/rateplan_test.go | 1 - registrar/domain_test.go | 3 --- request_tracers/trace_test.go | 1 - rules/list_test.go | 5 ----- rules/listbulkoperation_test.go | 1 - rules/listitem_test.go | 5 ----- rulesets/phase_test.go | 2 -- rulesets/phaseversion_test.go | 2 -- rulesets/rule_test.go | 3 --- rulesets/ruleset_test.go | 5 ----- rulesets/version_test.go | 3 --- rulesets/versionbytag_test.go | 1 - rum/rule_test.go | 4 ---- rum/siteinfo_test.go | 5 ----- secondary_dns/acl_test.go | 5 ----- secondary_dns/forceaxfr_test.go | 1 - secondary_dns/incoming_test.go | 4 ---- secondary_dns/outgoing_test.go | 7 ------- secondary_dns/outgoingstatus_test.go | 1 - secondary_dns/peer_test.go | 5 ----- secondary_dns/tsig_test.go | 5 ----- snippets/content_test.go | 1 - snippets/rule_test.go | 2 -- snippets/snippet_test.go | 4 ---- spectrum/analyticsaggregatecurrent_test.go | 1 - spectrum/analyticseventbytime_test.go | 1 - spectrum/analyticseventsummary_test.go | 1 - spectrum/app_test.go | 5 ----- speed/availability_test.go | 1 - speed/page_test.go | 1 - speed/schedule_test.go | 1 - speed/speed_test.go | 3 --- speed/test_test.go | 4 ---- ssl/analyze_test.go | 1 - ssl/certificatepack_test.go | 4 ---- ssl/certificatepackorder_test.go | 1 - ssl/certificatepackquota_test.go | 1 - ssl/recommendation_test.go | 1 - ssl/universalsetting_test.go | 2 -- ssl/verification_test.go | 2 -- storage/analytics_test.go | 2 -- stream/audiotrack_test.go | 4 ---- stream/caption_test.go | 1 - stream/captionlanguage_test.go | 3 --- stream/captionlanguagevtt_test.go | 1 - stream/clip_test.go | 1 - stream/copy_test.go | 1 - stream/directupload_test.go | 1 - stream/download_test.go | 3 --- stream/embed_test.go | 1 - stream/key_test.go | 3 --- stream/liveinput_test.go | 5 ----- stream/liveinputoutput_test.go | 4 ---- stream/stream_test.go | 4 ---- stream/token_test.go | 1 - stream/video_test.go | 1 - stream/watermark_test.go | 4 ---- stream/webhook_test.go | 3 --- subscriptions/subscription_test.go | 5 ----- url_normalization/urlnormalization_test.go | 2 -- url_scanner/scan_test.go | 4 ---- url_scanner/urlscanner_test.go | 1 - user/auditlog_test.go | 1 - user/billinghistory_test.go | 1 - user/billingprofile_test.go | 1 - user/invite_test.go | 3 --- user/organization_test.go | 3 --- user/subscription_test.go | 4 ---- user/token_test.go | 6 ------ user/tokenpermissiongroup_test.go | 1 - user/tokenvalue_test.go | 1 - user/user_test.go | 2 -- vectorize/index_test.go | 10 ---------- waiting_rooms/event_test.go | 6 ------ waiting_rooms/eventdetail_test.go | 1 - waiting_rooms/page_test.go | 1 - waiting_rooms/rule_test.go | 5 ----- waiting_rooms/setting_test.go | 3 --- waiting_rooms/status_test.go | 1 - waiting_rooms/waitingroom_test.go | 6 ------ warp_connector/warpconnector_test.go | 6 ------ web3/hostname_test.go | 5 ----- web3/hostnameipfsuniversalpathcontentlist_test.go | 2 -- web3/hostnameipfsuniversalpathcontentlistentry_test.go | 5 ----- workers/accountsetting_test.go | 2 -- workers/ai_test.go | 1 - workers/domain_test.go | 4 ---- workers/script_test.go | 4 ---- workers/scriptcontent_test.go | 2 -- workers/scriptdeployment_test.go | 2 -- workers/scriptschedule_test.go | 2 -- workers/scriptsetting_test.go | 2 -- workers/scripttail_test.go | 3 --- workers/scriptversion_test.go | 3 --- workers/subdomain_test.go | 2 -- workers_for_platforms/dispatchnamespace_test.go | 4 ---- workers_for_platforms/dispatchnamespacescript_test.go | 3 --- .../dispatchnamespacescriptbinding_test.go | 1 - .../dispatchnamespacescriptcontent_test.go | 2 -- .../dispatchnamespacescriptsecret_test.go | 2 -- .../dispatchnamespacescriptsetting_test.go | 2 -- .../dispatchnamespacescripttag_test.go | 3 --- zero_trust/accessapplication_test.go | 6 ------ zero_trust/accessapplicationca_test.go | 4 ---- zero_trust/accessapplicationpolicy_test.go | 5 ----- zero_trust/accessapplicationuserpolicycheck_test.go | 1 - zero_trust/accessbookmark_test.go | 5 ----- zero_trust/accesscertificate_test.go | 5 ----- zero_trust/accesscertificatesetting_test.go | 2 -- zero_trust/accesscustompage_test.go | 5 ----- zero_trust/accessgroup_test.go | 5 ----- zero_trust/accesskey_test.go | 3 --- zero_trust/accesslogaccessrequest_test.go | 1 - zero_trust/accessservicetoken_test.go | 6 ------ zero_trust/accesstag_test.go | 5 ----- zero_trust/accessuser_test.go | 1 - zero_trust/accessuseractivesession_test.go | 2 -- zero_trust/accessuserfailedlogin_test.go | 1 - zero_trust/accessuserlastseenidentity_test.go | 1 - zero_trust/connectivitysetting_test.go | 2 -- zero_trust/device_test.go | 2 -- zero_trust/devicedextest_test.go | 5 ----- zero_trust/devicenetwork_test.go | 5 ----- zero_trust/deviceoverridecode_test.go | 1 - zero_trust/devicepolicy_test.go | 5 ----- zero_trust/devicepolicydefaultpolicy_test.go | 1 - zero_trust/devicepolicyexclude_test.go | 3 --- zero_trust/devicepolicyfallbackdomain_test.go | 3 --- zero_trust/devicepolicyinclude_test.go | 3 --- zero_trust/deviceposture_test.go | 5 ----- zero_trust/devicepostureintegration_test.go | 5 ----- zero_trust/devicerevoke_test.go | 1 - zero_trust/devicesetting_test.go | 2 -- zero_trust/deviceunrevoke_test.go | 1 - zero_trust/dexcolo_test.go | 1 - zero_trust/dexfleetstatus_test.go | 2 -- zero_trust/dexfleetstatusdevice_test.go | 1 - zero_trust/dexhttptest_test.go | 1 - zero_trust/dexhttptestpercentile_test.go | 1 - zero_trust/dextest_test.go | 1 - zero_trust/dextestuniquedevice_test.go | 1 - zero_trust/dextraceroutetest_test.go | 3 --- zero_trust/dextraceroutetestresultnetworkpath_test.go | 1 - zero_trust/dlpdataset_test.go | 5 ----- zero_trust/dlpdatasetupload_test.go | 2 -- zero_trust/dlppattern_test.go | 1 - zero_trust/dlppayloadlog_test.go | 2 -- zero_trust/dlpprofile_test.go | 2 -- zero_trust/dlpprofilecustom_test.go | 4 ---- zero_trust/dlpprofilepredefined_test.go | 2 -- zero_trust/gateway_test.go | 2 -- zero_trust/gatewayapptype_test.go | 1 - zero_trust/gatewayauditsshsetting_test.go | 2 -- zero_trust/gatewaycategory_test.go | 1 - zero_trust/gatewayconfiguration_test.go | 3 --- zero_trust/gatewaylist_test.go | 6 ------ zero_trust/gatewaylistitem_test.go | 1 - zero_trust/gatewaylocation_test.go | 5 ----- zero_trust/gatewaylogging_test.go | 2 -- zero_trust/gatewayproxyendpoint_test.go | 5 ----- zero_trust/gatewayrule_test.go | 5 ----- zero_trust/identityprovider_test.go | 5 ----- zero_trust/networkroute_test.go | 4 ---- zero_trust/networkrouteip_test.go | 1 - zero_trust/networkroutenetwork_test.go | 3 --- zero_trust/networkvirtualnetwork_test.go | 4 ---- zero_trust/organization_test.go | 4 ---- zero_trust/riskscoring_test.go | 2 -- zero_trust/riskscoringbehaviour_test.go | 2 -- zero_trust/riskscoringsummary_test.go | 1 - zero_trust/seat_test.go | 1 - zero_trust/tunnel_test.go | 5 ----- zero_trust/tunnelconfiguration_test.go | 2 -- zero_trust/tunnelconnection_test.go | 2 -- zero_trust/tunnelconnector_test.go | 1 - zero_trust/tunnelmanagement_test.go | 1 - zero_trust/tunneltoken_test.go | 1 - zones/activationcheck_test.go | 1 - zones/customnameserver_test.go | 2 -- zones/dnssetting_test.go | 2 -- zones/hold_test.go | 3 --- zones/settingadvancedddos_test.go | 1 - zones/settingalwaysonline_test.go | 2 -- zones/settingalwaysusehttps_test.go | 2 -- zones/settingautomatichttpsrewrite_test.go | 2 -- zones/settingautomaticplatformoptimization_test.go | 2 -- zones/settingbrotli_test.go | 2 -- zones/settingbrowsercachettl_test.go | 2 -- zones/settingbrowsercheck_test.go | 2 -- zones/settingcachelevel_test.go | 2 -- zones/settingchallengettl_test.go | 2 -- zones/settingcipher_test.go | 2 -- zones/settingdevelopmentmode_test.go | 2 -- zones/settingearlyhint_test.go | 2 -- zones/settingemailobfuscation_test.go | 2 -- zones/settingfontsetting_test.go | 2 -- zones/settingh2prioritization_test.go | 2 -- zones/settinghotlinkprotection_test.go | 2 -- zones/settinghttp2_test.go | 2 -- zones/settinghttp3_test.go | 2 -- zones/settingimageresizing_test.go | 2 -- zones/settingipgeolocation_test.go | 2 -- zones/settingipv6_test.go | 2 -- zones/settingminify_test.go | 2 -- zones/settingmintlsversion_test.go | 2 -- zones/settingmirage_test.go | 2 -- zones/settingmobileredirect_test.go | 2 -- zones/settingnel_test.go | 2 -- zones/settingopportunisticencryption_test.go | 2 -- zones/settingopportunisticonion_test.go | 2 -- zones/settingorangetoorange_test.go | 2 -- zones/settingoriginerrorpagepassthru_test.go | 2 -- zones/settingoriginmaxhttpversion_test.go | 2 -- zones/settingpolish_test.go | 2 -- zones/settingprefetchpreload_test.go | 2 -- zones/settingproxyreadtimeout_test.go | 2 -- zones/settingpseudoipv4_test.go | 2 -- zones/settingresponsebuffering_test.go | 2 -- zones/settingrocketloader_test.go | 2 -- zones/settingsecurityheader_test.go | 2 -- zones/settingsecuritylevel_test.go | 2 -- zones/settingserversideexclude_test.go | 2 -- zones/settingsortquerystringforcache_test.go | 2 -- zones/settingssl_test.go | 2 -- zones/settingsslrecommender_test.go | 2 -- zones/settingtls13_test.go | 2 -- zones/settingtlsclientauth_test.go | 2 -- zones/settingtrueclientipheader_test.go | 2 -- zones/settingwaf_test.go | 2 -- zones/settingwebp_test.go | 2 -- zones/settingwebsocket_test.go | 2 -- zones/settingzerortt_test.go | 2 -- zones/subscription_test.go | 3 --- zones/zone_test.go | 4 ---- 469 files changed, 1268 deletions(-) diff --git a/accounts/account_test.go b/accounts/account_test.go index 498f9e3410f..dd676ac759c 100644 --- a/accounts/account_test.go +++ b/accounts/account_test.go @@ -15,7 +15,6 @@ import ( ) func TestAccountUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,7 +48,6 @@ func TestAccountUpdateWithOptionalParams(t *testing.T) { } func TestAccountListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -78,7 +76,6 @@ func TestAccountListWithOptionalParams(t *testing.T) { } func TestAccountGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/accounts/member_test.go b/accounts/member_test.go index f5ddc86ec77..b4781e84be3 100644 --- a/accounts/member_test.go +++ b/accounts/member_test.go @@ -16,7 +16,6 @@ import ( ) func TestMemberNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestMemberNewWithOptionalParams(t *testing.T) { } func TestMemberUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -84,7 +82,6 @@ func TestMemberUpdate(t *testing.T) { } func TestMemberListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -115,7 +112,6 @@ func TestMemberListWithOptionalParams(t *testing.T) { } func TestMemberDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -146,7 +142,6 @@ func TestMemberDelete(t *testing.T) { } func TestMemberGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/accounts/role_test.go b/accounts/role_test.go index 27a107f5a39..eaa277fcf50 100644 --- a/accounts/role_test.go +++ b/accounts/role_test.go @@ -15,7 +15,6 @@ import ( ) func TestRoleList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,7 +40,6 @@ func TestRoleList(t *testing.T) { } func TestRoleGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/acm/totaltls_test.go b/acm/totaltls_test.go index cd4e02e4d13..87496fef010 100644 --- a/acm/totaltls_test.go +++ b/acm/totaltls_test.go @@ -15,7 +15,6 @@ import ( ) func TestTotalTLSNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,7 +42,6 @@ func TestTotalTLSNewWithOptionalParams(t *testing.T) { } func TestTotalTLSGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/addressing/addressmap_test.go b/addressing/addressmap_test.go index 301c5faef90..f8ed3d43385 100644 --- a/addressing/addressmap_test.go +++ b/addressing/addressmap_test.go @@ -15,7 +15,6 @@ import ( ) func TestAddressMapNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,7 +42,6 @@ func TestAddressMapNewWithOptionalParams(t *testing.T) { } func TestAddressMapList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -69,7 +67,6 @@ func TestAddressMapList(t *testing.T) { } func TestAddressMapDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -100,7 +97,6 @@ func TestAddressMapDelete(t *testing.T) { } func TestAddressMapEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -133,7 +129,6 @@ func TestAddressMapEditWithOptionalParams(t *testing.T) { } func TestAddressMapGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/addressing/addressmapaccount_test.go b/addressing/addressmapaccount_test.go index 697d6f70988..cc9b51e1c73 100644 --- a/addressing/addressmapaccount_test.go +++ b/addressing/addressmapaccount_test.go @@ -15,7 +15,6 @@ import ( ) func TestAddressMapAccountUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,7 +45,6 @@ func TestAddressMapAccountUpdate(t *testing.T) { } func TestAddressMapAccountDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/addressing/addressmapip_test.go b/addressing/addressmapip_test.go index 4f0c3ebe7d3..a4acdc25d5b 100644 --- a/addressing/addressmapip_test.go +++ b/addressing/addressmapip_test.go @@ -15,7 +15,6 @@ import ( ) func TestAddressMapIPUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -47,7 +46,6 @@ func TestAddressMapIPUpdate(t *testing.T) { } func TestAddressMapIPDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/addressing/addressmapzone_test.go b/addressing/addressmapzone_test.go index 4268fa43c9d..13d53fb5697 100644 --- a/addressing/addressmapzone_test.go +++ b/addressing/addressmapzone_test.go @@ -15,7 +15,6 @@ import ( ) func TestAddressMapZoneUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -47,7 +46,6 @@ func TestAddressMapZoneUpdate(t *testing.T) { } func TestAddressMapZoneDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/addressing/loadocument_test.go b/addressing/loadocument_test.go index efe065c41fa..976176b857c 100644 --- a/addressing/loadocument_test.go +++ b/addressing/loadocument_test.go @@ -15,7 +15,6 @@ import ( ) func TestLOADocumentNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/addressing/loadocumentdownload_test.go b/addressing/loadocumentdownload_test.go index 478f5fa5b2b..3f20aacbdba 100644 --- a/addressing/loadocumentdownload_test.go +++ b/addressing/loadocumentdownload_test.go @@ -15,7 +15,6 @@ import ( ) func TestLOADocumentDownloadGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/addressing/prefix_test.go b/addressing/prefix_test.go index 7cee67a6a5d..70bae4a24f8 100644 --- a/addressing/prefix_test.go +++ b/addressing/prefix_test.go @@ -15,7 +15,6 @@ import ( ) func TestPrefixNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,7 +43,6 @@ func TestPrefixNew(t *testing.T) { } func TestPrefixList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -70,7 +68,6 @@ func TestPrefixList(t *testing.T) { } func TestPrefixDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -101,7 +98,6 @@ func TestPrefixDelete(t *testing.T) { } func TestPrefixEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -132,7 +128,6 @@ func TestPrefixEdit(t *testing.T) { } func TestPrefixGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/addressing/prefixbgpbinding_test.go b/addressing/prefixbgpbinding_test.go index fad3e9995e6..eedb9e668b8 100644 --- a/addressing/prefixbgpbinding_test.go +++ b/addressing/prefixbgpbinding_test.go @@ -15,7 +15,6 @@ import ( ) func TestPrefixBGPBindingNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -47,7 +46,6 @@ func TestPrefixBGPBindingNewWithOptionalParams(t *testing.T) { } func TestPrefixBGPBindingList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -77,7 +75,6 @@ func TestPrefixBGPBindingList(t *testing.T) { } func TestPrefixBGPBindingDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -108,7 +105,6 @@ func TestPrefixBGPBindingDelete(t *testing.T) { } func TestPrefixBGPBindingGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/addressing/prefixbgpprefix_test.go b/addressing/prefixbgpprefix_test.go index 7ff53960935..239aa144238 100644 --- a/addressing/prefixbgpprefix_test.go +++ b/addressing/prefixbgpprefix_test.go @@ -15,7 +15,6 @@ import ( ) func TestPrefixBGPPrefixList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestPrefixBGPPrefixList(t *testing.T) { } func TestPrefixBGPPrefixEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -79,7 +77,6 @@ func TestPrefixBGPPrefixEditWithOptionalParams(t *testing.T) { } func TestPrefixBGPPrefixGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/addressing/prefixbgpstatus_test.go b/addressing/prefixbgpstatus_test.go index cf9b5f4fc9b..9071cb5db57 100644 --- a/addressing/prefixbgpstatus_test.go +++ b/addressing/prefixbgpstatus_test.go @@ -15,7 +15,6 @@ import ( ) func TestPrefixBGPStatusEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,7 +45,6 @@ func TestPrefixBGPStatusEdit(t *testing.T) { } func TestPrefixBGPStatusGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/addressing/prefixdelegation_test.go b/addressing/prefixdelegation_test.go index 670d919c955..9db6246091a 100644 --- a/addressing/prefixdelegation_test.go +++ b/addressing/prefixdelegation_test.go @@ -15,7 +15,6 @@ import ( ) func TestPrefixDelegationNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -47,7 +46,6 @@ func TestPrefixDelegationNew(t *testing.T) { } func TestPrefixDelegationList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -77,7 +75,6 @@ func TestPrefixDelegationList(t *testing.T) { } func TestPrefixDelegationDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/addressing/service_test.go b/addressing/service_test.go index bc4ff9ba62c..d4ed51063bb 100644 --- a/addressing/service_test.go +++ b/addressing/service_test.go @@ -15,7 +15,6 @@ import ( ) func TestServiceList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/alerting/availablealert_test.go b/alerting/availablealert_test.go index 236231c2070..6805acf5c62 100644 --- a/alerting/availablealert_test.go +++ b/alerting/availablealert_test.go @@ -15,7 +15,6 @@ import ( ) func TestAvailableAlertList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/alerting/destinationeligible_test.go b/alerting/destinationeligible_test.go index b17253b6861..7d9afb69025 100644 --- a/alerting/destinationeligible_test.go +++ b/alerting/destinationeligible_test.go @@ -15,7 +15,6 @@ import ( ) func TestDestinationEligibleGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/alerting/destinationpagerduty_test.go b/alerting/destinationpagerduty_test.go index a11b279f02d..63f12175b25 100644 --- a/alerting/destinationpagerduty_test.go +++ b/alerting/destinationpagerduty_test.go @@ -15,7 +15,6 @@ import ( ) func TestDestinationPagerdutyNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,7 +40,6 @@ func TestDestinationPagerdutyNew(t *testing.T) { } func TestDestinationPagerdutyDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -67,7 +65,6 @@ func TestDestinationPagerdutyDelete(t *testing.T) { } func TestDestinationPagerdutyGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -93,7 +90,6 @@ func TestDestinationPagerdutyGet(t *testing.T) { } func TestDestinationPagerdutyLink(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/alerting/destinationwebhook_test.go b/alerting/destinationwebhook_test.go index e4cad3a9718..df44b9de16a 100644 --- a/alerting/destinationwebhook_test.go +++ b/alerting/destinationwebhook_test.go @@ -15,7 +15,6 @@ import ( ) func TestDestinationWebhookNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,7 +43,6 @@ func TestDestinationWebhookNewWithOptionalParams(t *testing.T) { } func TestDestinationWebhookUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -77,7 +75,6 @@ func TestDestinationWebhookUpdateWithOptionalParams(t *testing.T) { } func TestDestinationWebhookList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -103,7 +100,6 @@ func TestDestinationWebhookList(t *testing.T) { } func TestDestinationWebhookDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -133,7 +129,6 @@ func TestDestinationWebhookDelete(t *testing.T) { } func TestDestinationWebhookGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/alerting/history_test.go b/alerting/history_test.go index e1b46503f98..5a24b9606db 100644 --- a/alerting/history_test.go +++ b/alerting/history_test.go @@ -16,7 +16,6 @@ import ( ) func TestHistoryListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/alerting/policy_test.go b/alerting/policy_test.go index e42ad6ac6a8..09063d2d13a 100644 --- a/alerting/policy_test.go +++ b/alerting/policy_test.go @@ -16,7 +16,6 @@ import ( ) func TestPolicyNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -99,7 +98,6 @@ func TestPolicyNewWithOptionalParams(t *testing.T) { } func TestPolicyUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -186,7 +184,6 @@ func TestPolicyUpdateWithOptionalParams(t *testing.T) { } func TestPolicyList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -212,7 +209,6 @@ func TestPolicyList(t *testing.T) { } func TestPolicyDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -242,7 +238,6 @@ func TestPolicyDelete(t *testing.T) { } func TestPolicyGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/argo/smartrouting_test.go b/argo/smartrouting_test.go index 128ab4279c7..437e11c1641 100644 --- a/argo/smartrouting_test.go +++ b/argo/smartrouting_test.go @@ -15,7 +15,6 @@ import ( ) func TestSmartRoutingEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSmartRoutingEdit(t *testing.T) { } func TestSmartRoutingGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/argo/tieredcaching_test.go b/argo/tieredcaching_test.go index 1912a7806d3..a016e4d3cec 100644 --- a/argo/tieredcaching_test.go +++ b/argo/tieredcaching_test.go @@ -15,7 +15,6 @@ import ( ) func TestTieredCachingEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestTieredCachingEdit(t *testing.T) { } func TestTieredCachingGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/audit_logs/auditlog_test.go b/audit_logs/auditlog_test.go index ee7487991f8..37216ea8dd6 100644 --- a/audit_logs/auditlog_test.go +++ b/audit_logs/auditlog_test.go @@ -16,7 +16,6 @@ import ( ) func TestAuditLogListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/billing/profile_test.go b/billing/profile_test.go index d938c8f3151..50709fd1bae 100644 --- a/billing/profile_test.go +++ b/billing/profile_test.go @@ -14,7 +14,6 @@ import ( ) func TestProfileGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/bot_management/botmanagement_test.go b/bot_management/botmanagement_test.go index c8b5b09395f..b840013dd4c 100644 --- a/bot_management/botmanagement_test.go +++ b/bot_management/botmanagement_test.go @@ -15,7 +15,6 @@ import ( ) func TestBotManagementUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestBotManagementUpdateWithOptionalParams(t *testing.T) { } func TestBotManagementGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/brand_protection/brandprotection_test.go b/brand_protection/brandprotection_test.go index 757be0c5613..422d0e4631b 100644 --- a/brand_protection/brandprotection_test.go +++ b/brand_protection/brandprotection_test.go @@ -15,7 +15,6 @@ import ( ) func TestBrandProtectionSubmitWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestBrandProtectionSubmitWithOptionalParams(t *testing.T) { } func TestBrandProtectionURLInfoWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/cache/cache_test.go b/cache/cache_test.go index d452bb279fd..2de0944910c 100644 --- a/cache/cache_test.go +++ b/cache/cache_test.go @@ -15,7 +15,6 @@ import ( ) func TestCachePurgeWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/cache/cachereserve_test.go b/cache/cachereserve_test.go index af51eb1a1a0..5ba08282af6 100644 --- a/cache/cachereserve_test.go +++ b/cache/cachereserve_test.go @@ -15,7 +15,6 @@ import ( ) func TestCacheReserveClear(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestCacheReserveClear(t *testing.T) { } func TestCacheReserveEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -69,7 +67,6 @@ func TestCacheReserveEdit(t *testing.T) { } func TestCacheReserveGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -95,7 +92,6 @@ func TestCacheReserveGet(t *testing.T) { } func TestCacheReserveStatus(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/cache/regionaltieredcache_test.go b/cache/regionaltieredcache_test.go index e8973cca30f..103ff446cbf 100644 --- a/cache/regionaltieredcache_test.go +++ b/cache/regionaltieredcache_test.go @@ -15,7 +15,6 @@ import ( ) func TestRegionalTieredCacheEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestRegionalTieredCacheEdit(t *testing.T) { } func TestRegionalTieredCacheGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/cache/smarttieredcache_test.go b/cache/smarttieredcache_test.go index 661bf82872f..678c812de9f 100644 --- a/cache/smarttieredcache_test.go +++ b/cache/smarttieredcache_test.go @@ -15,7 +15,6 @@ import ( ) func TestSmartTieredCacheDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSmartTieredCacheDelete(t *testing.T) { } func TestSmartTieredCacheEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -69,7 +67,6 @@ func TestSmartTieredCacheEdit(t *testing.T) { } func TestSmartTieredCacheGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/cache/variant_test.go b/cache/variant_test.go index cfa9a34ae5f..803fb70a172 100644 --- a/cache/variant_test.go +++ b/cache/variant_test.go @@ -15,7 +15,6 @@ import ( ) func TestVariantDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestVariantDelete(t *testing.T) { } func TestVariantEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -81,7 +79,6 @@ func TestVariantEditWithOptionalParams(t *testing.T) { } func TestVariantGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/calls/call_test.go b/calls/call_test.go index 34930f089bd..c2b5a8e9e5a 100644 --- a/calls/call_test.go +++ b/calls/call_test.go @@ -15,7 +15,6 @@ import ( ) func TestCallNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestCallNewWithOptionalParams(t *testing.T) { } func TestCallUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -73,7 +71,6 @@ func TestCallUpdateWithOptionalParams(t *testing.T) { } func TestCallList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -99,7 +96,6 @@ func TestCallList(t *testing.T) { } func TestCallDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -129,7 +125,6 @@ func TestCallDelete(t *testing.T) { } func TestCallGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/certificate_authorities/hostnameassociation_test.go b/certificate_authorities/hostnameassociation_test.go index fb40cc9e557..073bf735d29 100644 --- a/certificate_authorities/hostnameassociation_test.go +++ b/certificate_authorities/hostnameassociation_test.go @@ -15,7 +15,6 @@ import ( ) func TestHostnameAssociationUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestHostnameAssociationUpdateWithOptionalParams(t *testing.T) { } func TestHostnameAssociationGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/challenges/widget_test.go b/challenges/widget_test.go index 489014e7763..d9756330ddb 100644 --- a/challenges/widget_test.go +++ b/challenges/widget_test.go @@ -15,7 +15,6 @@ import ( ) func TestWidgetNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -52,7 +51,6 @@ func TestWidgetNewWithOptionalParams(t *testing.T) { } func TestWidgetUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -88,7 +86,6 @@ func TestWidgetUpdateWithOptionalParams(t *testing.T) { } func TestWidgetListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -118,7 +115,6 @@ func TestWidgetListWithOptionalParams(t *testing.T) { } func TestWidgetDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -148,7 +144,6 @@ func TestWidgetDelete(t *testing.T) { } func TestWidgetGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -178,7 +173,6 @@ func TestWidgetGet(t *testing.T) { } func TestWidgetRotateSecretWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/client_certificates/clientcertificate_test.go b/client_certificates/clientcertificate_test.go index 47d6119b603..81fc7287f67 100644 --- a/client_certificates/clientcertificate_test.go +++ b/client_certificates/clientcertificate_test.go @@ -15,7 +15,6 @@ import ( ) func TestClientCertificateNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,7 +42,6 @@ func TestClientCertificateNew(t *testing.T) { } func TestClientCertificateListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -74,7 +72,6 @@ func TestClientCertificateListWithOptionalParams(t *testing.T) { } func TestClientCertificateDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -104,7 +101,6 @@ func TestClientCertificateDelete(t *testing.T) { } func TestClientCertificateEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -134,7 +130,6 @@ func TestClientCertificateEdit(t *testing.T) { } func TestClientCertificateGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/cloudforce_one/request_test.go b/cloudforce_one/request_test.go index 356bca2ef57..a1204865a68 100644 --- a/cloudforce_one/request_test.go +++ b/cloudforce_one/request_test.go @@ -16,7 +16,6 @@ import ( ) func TestRequestNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -50,7 +49,6 @@ func TestRequestNewWithOptionalParams(t *testing.T) { } func TestRequestUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -85,7 +83,6 @@ func TestRequestUpdateWithOptionalParams(t *testing.T) { } func TestRequestListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -124,7 +121,6 @@ func TestRequestListWithOptionalParams(t *testing.T) { } func TestRequestDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -152,7 +148,6 @@ func TestRequestDelete(t *testing.T) { } func TestRequestConstants(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -176,7 +171,6 @@ func TestRequestConstants(t *testing.T) { } func TestRequestGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -204,7 +198,6 @@ func TestRequestGet(t *testing.T) { } func TestRequestQuota(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -228,7 +221,6 @@ func TestRequestQuota(t *testing.T) { } func TestRequestTypes(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/cloudforce_one/requestmessage_test.go b/cloudforce_one/requestmessage_test.go index 1204633b33c..4cf854f8dc3 100644 --- a/cloudforce_one/requestmessage_test.go +++ b/cloudforce_one/requestmessage_test.go @@ -16,7 +16,6 @@ import ( ) func TestRequestMessageNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -47,7 +46,6 @@ func TestRequestMessageNewWithOptionalParams(t *testing.T) { } func TestRequestMessageUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -83,7 +81,6 @@ func TestRequestMessageUpdateWithOptionalParams(t *testing.T) { } func TestRequestMessageDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -112,7 +109,6 @@ func TestRequestMessageDelete(t *testing.T) { } func TestRequestMessageGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/cloudforce_one/requestpriority_test.go b/cloudforce_one/requestpriority_test.go index 4888c2d1deb..7e8cbe9551e 100644 --- a/cloudforce_one/requestpriority_test.go +++ b/cloudforce_one/requestpriority_test.go @@ -15,7 +15,6 @@ import ( ) func TestRequestPriorityNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -50,7 +49,6 @@ func TestRequestPriorityNew(t *testing.T) { } func TestRequestPriorityUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -86,7 +84,6 @@ func TestRequestPriorityUpdate(t *testing.T) { } func TestRequestPriorityDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -114,7 +111,6 @@ func TestRequestPriorityDelete(t *testing.T) { } func TestRequestPriorityGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -142,7 +138,6 @@ func TestRequestPriorityGet(t *testing.T) { } func TestRequestPriorityQuota(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/custom_certificates/customcertificate_test.go b/custom_certificates/customcertificate_test.go index ba46385c715..39ff5dfd06e 100644 --- a/custom_certificates/customcertificate_test.go +++ b/custom_certificates/customcertificate_test.go @@ -16,7 +16,6 @@ import ( ) func TestCustomCertificateNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -50,7 +49,6 @@ func TestCustomCertificateNewWithOptionalParams(t *testing.T) { } func TestCustomCertificateListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -80,7 +78,6 @@ func TestCustomCertificateListWithOptionalParams(t *testing.T) { } func TestCustomCertificateDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -111,7 +108,6 @@ func TestCustomCertificateDelete(t *testing.T) { } func TestCustomCertificateEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -148,7 +144,6 @@ func TestCustomCertificateEditWithOptionalParams(t *testing.T) { } func TestCustomCertificateGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/custom_certificates/prioritize_test.go b/custom_certificates/prioritize_test.go index c953a49eb84..1064f392ac0 100644 --- a/custom_certificates/prioritize_test.go +++ b/custom_certificates/prioritize_test.go @@ -15,7 +15,6 @@ import ( ) func TestPrioritizeUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/custom_hostnames/customhostname_test.go b/custom_hostnames/customhostname_test.go index 6ae3aeefb07..85ad87469fa 100644 --- a/custom_hostnames/customhostname_test.go +++ b/custom_hostnames/customhostname_test.go @@ -15,7 +15,6 @@ import ( ) func TestCustomHostnameNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -61,7 +60,6 @@ func TestCustomHostnameNewWithOptionalParams(t *testing.T) { } func TestCustomHostnameListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -94,7 +92,6 @@ func TestCustomHostnameListWithOptionalParams(t *testing.T) { } func TestCustomHostnameDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -125,7 +122,6 @@ func TestCustomHostnameDelete(t *testing.T) { } func TestCustomHostnameEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -176,7 +172,6 @@ func TestCustomHostnameEditWithOptionalParams(t *testing.T) { } func TestCustomHostnameGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/custom_hostnames/fallbackorigin_test.go b/custom_hostnames/fallbackorigin_test.go index 988da10cf65..88ecac7459e 100644 --- a/custom_hostnames/fallbackorigin_test.go +++ b/custom_hostnames/fallbackorigin_test.go @@ -15,7 +15,6 @@ import ( ) func TestFallbackOriginUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestFallbackOriginUpdate(t *testing.T) { } func TestFallbackOriginDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -69,7 +67,6 @@ func TestFallbackOriginDelete(t *testing.T) { } func TestFallbackOriginGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/custom_nameservers/customnameserver_test.go b/custom_nameservers/customnameserver_test.go index 7d9df3e08e4..b3df9cb10c8 100644 --- a/custom_nameservers/customnameserver_test.go +++ b/custom_nameservers/customnameserver_test.go @@ -15,7 +15,6 @@ import ( ) func TestCustomNameserverNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,7 +42,6 @@ func TestCustomNameserverNewWithOptionalParams(t *testing.T) { } func TestCustomNameserverDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -74,7 +72,6 @@ func TestCustomNameserverDelete(t *testing.T) { } func TestCustomNameserverAvailabilty(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -100,7 +97,6 @@ func TestCustomNameserverAvailabilty(t *testing.T) { } func TestCustomNameserverGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -126,7 +122,6 @@ func TestCustomNameserverGet(t *testing.T) { } func TestCustomNameserverVerify(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/d1/database_test.go b/d1/database_test.go index a130eef651f..b9fa9320cf4 100644 --- a/d1/database_test.go +++ b/d1/database_test.go @@ -15,7 +15,6 @@ import ( ) func TestDatabaseNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestDatabaseNew(t *testing.T) { } func TestDatabaseListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -71,7 +69,6 @@ func TestDatabaseListWithOptionalParams(t *testing.T) { } func TestDatabaseDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -99,7 +96,6 @@ func TestDatabaseDelete(t *testing.T) { } func TestDatabaseGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -127,7 +123,6 @@ func TestDatabaseGet(t *testing.T) { } func TestDatabaseQueryWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/dcv_delegation/uuid_test.go b/dcv_delegation/uuid_test.go index 39b99f5b560..d5ba65f3eed 100644 --- a/dcv_delegation/uuid_test.go +++ b/dcv_delegation/uuid_test.go @@ -15,7 +15,6 @@ import ( ) func TestUUIDGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/diagnostics/traceroute_test.go b/diagnostics/traceroute_test.go index e7dd38398fb..d09d777390f 100644 --- a/diagnostics/traceroute_test.go +++ b/diagnostics/traceroute_test.go @@ -15,7 +15,6 @@ import ( ) func TestTracerouteNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/dns/analyticsreport_test.go b/dns/analyticsreport_test.go index 16993e5c056..17f32a2d394 100644 --- a/dns/analyticsreport_test.go +++ b/dns/analyticsreport_test.go @@ -16,7 +16,6 @@ import ( ) func TestAnalyticsReportGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/dns/analyticsreportbytime_test.go b/dns/analyticsreportbytime_test.go index 21ea18b2a67..5894bf3dfad 100644 --- a/dns/analyticsreportbytime_test.go +++ b/dns/analyticsreportbytime_test.go @@ -16,7 +16,6 @@ import ( ) func TestAnalyticsReportBytimeGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/dns/firewall_test.go b/dns/firewall_test.go index 624ae1b64ec..afa29248e47 100644 --- a/dns/firewall_test.go +++ b/dns/firewall_test.go @@ -16,7 +16,6 @@ import ( ) func TestFirewallNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -55,7 +54,6 @@ func TestFirewallNewWithOptionalParams(t *testing.T) { } func TestFirewallListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -83,7 +81,6 @@ func TestFirewallListWithOptionalParams(t *testing.T) { } func TestFirewallDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -114,7 +111,6 @@ func TestFirewallDelete(t *testing.T) { } func TestFirewallEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -160,7 +156,6 @@ func TestFirewallEditWithOptionalParams(t *testing.T) { } func TestFirewallGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/dns/firewallanalyticsreport_test.go b/dns/firewallanalyticsreport_test.go index 3ba63eacc61..73b49c91c24 100644 --- a/dns/firewallanalyticsreport_test.go +++ b/dns/firewallanalyticsreport_test.go @@ -16,7 +16,6 @@ import ( ) func TestFirewallAnalyticsReportGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/dns/firewallanalyticsreportbytime_test.go b/dns/firewallanalyticsreportbytime_test.go index 66f749cac80..9b0cc654e35 100644 --- a/dns/firewallanalyticsreportbytime_test.go +++ b/dns/firewallanalyticsreportbytime_test.go @@ -16,7 +16,6 @@ import ( ) func TestFirewallAnalyticsReportBytimeGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/dns/record_test.go b/dns/record_test.go index 267e28141f4..13b93b5a4c8 100644 --- a/dns/record_test.go +++ b/dns/record_test.go @@ -16,7 +16,6 @@ import ( ) func TestRecordNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -51,7 +50,6 @@ func TestRecordNewWithOptionalParams(t *testing.T) { } func TestRecordUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -90,7 +88,6 @@ func TestRecordUpdateWithOptionalParams(t *testing.T) { } func TestRecordListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -143,7 +140,6 @@ func TestRecordListWithOptionalParams(t *testing.T) { } func TestRecordDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -174,7 +170,6 @@ func TestRecordDelete(t *testing.T) { } func TestRecordEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -213,7 +208,6 @@ func TestRecordEditWithOptionalParams(t *testing.T) { } func TestRecordExport(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -239,7 +233,6 @@ func TestRecordExport(t *testing.T) { } func TestRecordGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -269,7 +262,6 @@ func TestRecordGet(t *testing.T) { } func TestRecordImportWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -297,7 +289,6 @@ func TestRecordImportWithOptionalParams(t *testing.T) { } func TestRecordScan(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/dnssec/dnssec_test.go b/dnssec/dnssec_test.go index 2e87d475d14..4bb5b10291d 100644 --- a/dnssec/dnssec_test.go +++ b/dnssec/dnssec_test.go @@ -15,7 +15,6 @@ import ( ) func TestDNSSECDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestDNSSECDelete(t *testing.T) { } func TestDNSSECEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -71,7 +69,6 @@ func TestDNSSECEditWithOptionalParams(t *testing.T) { } func TestDNSSECGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/durable_objects/namespace_test.go b/durable_objects/namespace_test.go index 5703c74b69b..f2726ce1c30 100644 --- a/durable_objects/namespace_test.go +++ b/durable_objects/namespace_test.go @@ -15,7 +15,6 @@ import ( ) func TestNamespaceList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/durable_objects/namespaceobject_test.go b/durable_objects/namespaceobject_test.go index 23f3deef1ec..aba9d77d806 100644 --- a/durable_objects/namespaceobject_test.go +++ b/durable_objects/namespaceobject_test.go @@ -15,7 +15,6 @@ import ( ) func TestNamespaceObjectListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/email_routing/address_test.go b/email_routing/address_test.go index 5b1ddf6f232..9ce0600551b 100644 --- a/email_routing/address_test.go +++ b/email_routing/address_test.go @@ -15,7 +15,6 @@ import ( ) func TestAddressNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestAddressNew(t *testing.T) { } func TestAddressListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -78,7 +76,6 @@ func TestAddressListWithOptionalParams(t *testing.T) { } func TestAddressDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -106,7 +103,6 @@ func TestAddressDelete(t *testing.T) { } func TestAddressGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/email_routing/dns_test.go b/email_routing/dns_test.go index 50e7fa5772b..8a629dc5a36 100644 --- a/email_routing/dns_test.go +++ b/email_routing/dns_test.go @@ -14,7 +14,6 @@ import ( ) func TestDNSGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/email_routing/emailrouting_test.go b/email_routing/emailrouting_test.go index 6bcafdd26b9..0e45ffcc969 100644 --- a/email_routing/emailrouting_test.go +++ b/email_routing/emailrouting_test.go @@ -15,7 +15,6 @@ import ( ) func TestEmailRoutingDisable(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestEmailRoutingDisable(t *testing.T) { } func TestEmailRoutingEnable(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -75,7 +73,6 @@ func TestEmailRoutingEnable(t *testing.T) { } func TestEmailRoutingGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/email_routing/rule_test.go b/email_routing/rule_test.go index ec41c0dbb95..6e1965bd899 100644 --- a/email_routing/rule_test.go +++ b/email_routing/rule_test.go @@ -15,7 +15,6 @@ import ( ) func TestRuleNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -70,7 +69,6 @@ func TestRuleNewWithOptionalParams(t *testing.T) { } func TestRuleUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -126,7 +124,6 @@ func TestRuleUpdateWithOptionalParams(t *testing.T) { } func TestRuleListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -158,7 +155,6 @@ func TestRuleListWithOptionalParams(t *testing.T) { } func TestRuleDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -186,7 +182,6 @@ func TestRuleDelete(t *testing.T) { } func TestRuleGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/email_routing/rulecatchall_test.go b/email_routing/rulecatchall_test.go index fc47c1c6205..22b490f9a5e 100644 --- a/email_routing/rulecatchall_test.go +++ b/email_routing/rulecatchall_test.go @@ -15,7 +15,6 @@ import ( ) func TestRuleCatchAllUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -63,7 +62,6 @@ func TestRuleCatchAllUpdateWithOptionalParams(t *testing.T) { } func TestRuleCatchAllGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/event_notifications/r2configuration_test.go b/event_notifications/r2configuration_test.go index b8893110b45..0bd0542286a 100644 --- a/event_notifications/r2configuration_test.go +++ b/event_notifications/r2configuration_test.go @@ -15,7 +15,6 @@ import ( ) func TestR2ConfigurationGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/event_notifications/r2configurationqueue_test.go b/event_notifications/r2configurationqueue_test.go index 5186b21985c..8994ac66cd4 100644 --- a/event_notifications/r2configurationqueue_test.go +++ b/event_notifications/r2configurationqueue_test.go @@ -15,7 +15,6 @@ import ( ) func TestR2ConfigurationQueueUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -59,7 +58,6 @@ func TestR2ConfigurationQueueUpdateWithOptionalParams(t *testing.T) { } func TestR2ConfigurationQueueDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/filters/filter_test.go b/filters/filter_test.go index f39799c8455..e517d067e17 100644 --- a/filters/filter_test.go +++ b/filters/filter_test.go @@ -15,7 +15,6 @@ import ( ) func TestFilterNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestFilterNew(t *testing.T) { } func TestFilterUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -76,7 +74,6 @@ func TestFilterUpdate(t *testing.T) { } func TestFilterListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -112,7 +109,6 @@ func TestFilterListWithOptionalParams(t *testing.T) { } func TestFilterDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -143,7 +139,6 @@ func TestFilterDelete(t *testing.T) { } func TestFilterGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/firewall/accessrule_test.go b/firewall/accessrule_test.go index 102a172c4c0..80cb97f1be4 100644 --- a/firewall/accessrule_test.go +++ b/firewall/accessrule_test.go @@ -15,7 +15,6 @@ import ( ) func TestAccessRuleNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -48,7 +47,6 @@ func TestAccessRuleNewWithOptionalParams(t *testing.T) { } func TestAccessRuleListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -92,7 +90,6 @@ func TestAccessRuleListWithOptionalParams(t *testing.T) { } func TestAccessRuleDeleteWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -124,7 +121,6 @@ func TestAccessRuleDeleteWithOptionalParams(t *testing.T) { } func TestAccessRuleEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -161,7 +157,6 @@ func TestAccessRuleEditWithOptionalParams(t *testing.T) { } func TestAccessRuleGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/firewall/lockdown_test.go b/firewall/lockdown_test.go index 37c38596048..edb59458687 100644 --- a/firewall/lockdown_test.go +++ b/firewall/lockdown_test.go @@ -16,7 +16,6 @@ import ( ) func TestLockdownNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,7 +45,6 @@ func TestLockdownNew(t *testing.T) { } func TestLockdownUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -77,7 +75,6 @@ func TestLockdownUpdate(t *testing.T) { } func TestLockdownListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -117,7 +114,6 @@ func TestLockdownListWithOptionalParams(t *testing.T) { } func TestLockdownDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -148,7 +144,6 @@ func TestLockdownDelete(t *testing.T) { } func TestLockdownGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/firewall/rule_test.go b/firewall/rule_test.go index 2d99b0534db..bb27b80a088 100644 --- a/firewall/rule_test.go +++ b/firewall/rule_test.go @@ -15,7 +15,6 @@ import ( ) func TestRuleNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestRuleNew(t *testing.T) { } func TestRuleUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -76,7 +74,6 @@ func TestRuleUpdate(t *testing.T) { } func TestRuleListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -111,7 +108,6 @@ func TestRuleListWithOptionalParams(t *testing.T) { } func TestRuleDeleteWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -142,7 +138,6 @@ func TestRuleDeleteWithOptionalParams(t *testing.T) { } func TestRuleEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -173,7 +168,6 @@ func TestRuleEdit(t *testing.T) { } func TestRuleGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/firewall/uarule_test.go b/firewall/uarule_test.go index 909e141d2fc..0d7184ba435 100644 --- a/firewall/uarule_test.go +++ b/firewall/uarule_test.go @@ -15,7 +15,6 @@ import ( ) func TestUARuleNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestUARuleNew(t *testing.T) { } func TestUARuleUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -76,7 +74,6 @@ func TestUARuleUpdate(t *testing.T) { } func TestUARuleListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -110,7 +107,6 @@ func TestUARuleListWithOptionalParams(t *testing.T) { } func TestUARuleDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -141,7 +137,6 @@ func TestUARuleDelete(t *testing.T) { } func TestUARuleGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/firewall/wafoverride_test.go b/firewall/wafoverride_test.go index 1a187260cdf..e52fd30c622 100644 --- a/firewall/wafoverride_test.go +++ b/firewall/wafoverride_test.go @@ -15,7 +15,6 @@ import ( ) func TestWAFOverrideNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestWAFOverrideNew(t *testing.T) { } func TestWAFOverrideUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -76,7 +74,6 @@ func TestWAFOverrideUpdate(t *testing.T) { } func TestWAFOverrideListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -107,7 +104,6 @@ func TestWAFOverrideListWithOptionalParams(t *testing.T) { } func TestWAFOverrideDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -138,7 +134,6 @@ func TestWAFOverrideDelete(t *testing.T) { } func TestWAFOverrideGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/firewall/wafpackage_test.go b/firewall/wafpackage_test.go index 6abf2e73bfa..3463986e220 100644 --- a/firewall/wafpackage_test.go +++ b/firewall/wafpackage_test.go @@ -15,7 +15,6 @@ import ( ) func TestWAFPackageListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -50,7 +49,6 @@ func TestWAFPackageListWithOptionalParams(t *testing.T) { } func TestWAFPackageGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/firewall/wafpackagegroup_test.go b/firewall/wafpackagegroup_test.go index 61a96ef341c..86eb054d647 100644 --- a/firewall/wafpackagegroup_test.go +++ b/firewall/wafpackagegroup_test.go @@ -15,7 +15,6 @@ import ( ) func TestWAFPackageGroupListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -53,7 +52,6 @@ func TestWAFPackageGroupListWithOptionalParams(t *testing.T) { } func TestWAFPackageGroupEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -85,7 +83,6 @@ func TestWAFPackageGroupEditWithOptionalParams(t *testing.T) { } func TestWAFPackageGroupGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/firewall/wafpackagerule_test.go b/firewall/wafpackagerule_test.go index 1cdf79b6960..19412d32d27 100644 --- a/firewall/wafpackagerule_test.go +++ b/firewall/wafpackagerule_test.go @@ -15,7 +15,6 @@ import ( ) func TestWAFPackageRuleListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -54,7 +53,6 @@ func TestWAFPackageRuleListWithOptionalParams(t *testing.T) { } func TestWAFPackageRuleEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -86,7 +84,6 @@ func TestWAFPackageRuleEditWithOptionalParams(t *testing.T) { } func TestWAFPackageRuleGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/healthchecks/healthcheck_test.go b/healthchecks/healthcheck_test.go index 3edde20e3d2..da0d0128e73 100644 --- a/healthchecks/healthcheck_test.go +++ b/healthchecks/healthcheck_test.go @@ -15,7 +15,6 @@ import ( ) func TestHealthcheckNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -75,7 +74,6 @@ func TestHealthcheckNewWithOptionalParams(t *testing.T) { } func TestHealthcheckUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -139,7 +137,6 @@ func TestHealthcheckUpdateWithOptionalParams(t *testing.T) { } func TestHealthcheckListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -167,7 +164,6 @@ func TestHealthcheckListWithOptionalParams(t *testing.T) { } func TestHealthcheckDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -198,7 +194,6 @@ func TestHealthcheckDelete(t *testing.T) { } func TestHealthcheckEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -262,7 +257,6 @@ func TestHealthcheckEditWithOptionalParams(t *testing.T) { } func TestHealthcheckGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/healthchecks/preview_test.go b/healthchecks/preview_test.go index 47267ef08f0..37173c751f4 100644 --- a/healthchecks/preview_test.go +++ b/healthchecks/preview_test.go @@ -15,7 +15,6 @@ import ( ) func TestPreviewNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -75,7 +74,6 @@ func TestPreviewNewWithOptionalParams(t *testing.T) { } func TestPreviewDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -106,7 +104,6 @@ func TestPreviewDelete(t *testing.T) { } func TestPreviewGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/hostnames/settingtls_test.go b/hostnames/settingtls_test.go index dfb2056f914..85f977be599 100644 --- a/hostnames/settingtls_test.go +++ b/hostnames/settingtls_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingTLSUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -47,7 +46,6 @@ func TestSettingTLSUpdate(t *testing.T) { } func TestSettingTLSDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -78,7 +76,6 @@ func TestSettingTLSDelete(t *testing.T) { } func TestSettingTLSGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/hyperdrive/config_test.go b/hyperdrive/config_test.go index 19dfd6b1936..fdfcfc247b5 100644 --- a/hyperdrive/config_test.go +++ b/hyperdrive/config_test.go @@ -15,7 +15,6 @@ import ( ) func TestConfigNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -56,7 +55,6 @@ func TestConfigNewWithOptionalParams(t *testing.T) { } func TestConfigUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -101,7 +99,6 @@ func TestConfigUpdateWithOptionalParams(t *testing.T) { } func TestConfigList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -127,7 +124,6 @@ func TestConfigList(t *testing.T) { } func TestConfigDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -157,7 +153,6 @@ func TestConfigDelete(t *testing.T) { } func TestConfigEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -202,7 +197,6 @@ func TestConfigEditWithOptionalParams(t *testing.T) { } func TestConfigGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/images/v1_test.go b/images/v1_test.go index 3971ac966bf..a2294c625cb 100644 --- a/images/v1_test.go +++ b/images/v1_test.go @@ -15,7 +15,6 @@ import ( ) func TestV1NewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestV1NewWithOptionalParams(t *testing.T) { } func TestV1ListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -73,7 +71,6 @@ func TestV1ListWithOptionalParams(t *testing.T) { } func TestV1Delete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -104,7 +101,6 @@ func TestV1Delete(t *testing.T) { } func TestV1EditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -136,7 +132,6 @@ func TestV1EditWithOptionalParams(t *testing.T) { } func TestV1Get(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/images/v1blob_test.go b/images/v1blob_test.go index 2526efe0181..5670f99fda2 100644 --- a/images/v1blob_test.go +++ b/images/v1blob_test.go @@ -17,7 +17,6 @@ import ( ) func TestV1BlobGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(200) w.Write([]byte("abc")) diff --git a/images/v1key_test.go b/images/v1key_test.go index 670ae3783c8..2364962a5b7 100644 --- a/images/v1key_test.go +++ b/images/v1key_test.go @@ -15,7 +15,6 @@ import ( ) func TestV1KeyUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestV1KeyUpdate(t *testing.T) { } func TestV1KeyList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -71,7 +69,6 @@ func TestV1KeyList(t *testing.T) { } func TestV1KeyDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/images/v1stat_test.go b/images/v1stat_test.go index 0e7079513ff..8add044cd63 100644 --- a/images/v1stat_test.go +++ b/images/v1stat_test.go @@ -15,7 +15,6 @@ import ( ) func TestV1StatGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/images/v1variant_test.go b/images/v1variant_test.go index 75b21ec3790..66bcd4463aa 100644 --- a/images/v1variant_test.go +++ b/images/v1variant_test.go @@ -15,7 +15,6 @@ import ( ) func TestV1VariantNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,7 +48,6 @@ func TestV1VariantNewWithOptionalParams(t *testing.T) { } func TestV1VariantList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -75,7 +73,6 @@ func TestV1VariantList(t *testing.T) { } func TestV1VariantDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -106,7 +103,6 @@ func TestV1VariantDelete(t *testing.T) { } func TestV1VariantEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -143,7 +139,6 @@ func TestV1VariantEditWithOptionalParams(t *testing.T) { } func TestV1VariantGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/images/v2_test.go b/images/v2_test.go index 3c0155f5dfe..9640ba02824 100644 --- a/images/v2_test.go +++ b/images/v2_test.go @@ -15,7 +15,6 @@ import ( ) func TestV2ListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/images/v2directupload_test.go b/images/v2directupload_test.go index 70bcaee3491..6f9963b0900 100644 --- a/images/v2directupload_test.go +++ b/images/v2directupload_test.go @@ -16,7 +16,6 @@ import ( ) func TestV2DirectUploadNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/asn_test.go b/intel/asn_test.go index 5e348aebd99..37efdae2f48 100644 --- a/intel/asn_test.go +++ b/intel/asn_test.go @@ -15,7 +15,6 @@ import ( ) func TestASNGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/asnsubnet_test.go b/intel/asnsubnet_test.go index bc3a7fcdacd..92692f20501 100644 --- a/intel/asnsubnet_test.go +++ b/intel/asnsubnet_test.go @@ -15,7 +15,6 @@ import ( ) func TestASNSubnetGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/attacksurfacereportissue_test.go b/intel/attacksurfacereportissue_test.go index 0384573822e..d130c6c15bc 100644 --- a/intel/attacksurfacereportissue_test.go +++ b/intel/attacksurfacereportissue_test.go @@ -15,7 +15,6 @@ import ( ) func TestAttackSurfaceReportIssueListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -54,7 +53,6 @@ func TestAttackSurfaceReportIssueListWithOptionalParams(t *testing.T) { } func TestAttackSurfaceReportIssueClassWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -91,7 +89,6 @@ func TestAttackSurfaceReportIssueClassWithOptionalParams(t *testing.T) { } func TestAttackSurfaceReportIssueDismissWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -122,7 +119,6 @@ func TestAttackSurfaceReportIssueDismissWithOptionalParams(t *testing.T) { } func TestAttackSurfaceReportIssueSeverityWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -159,7 +155,6 @@ func TestAttackSurfaceReportIssueSeverityWithOptionalParams(t *testing.T) { } func TestAttackSurfaceReportIssueTypeWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/attacksurfacereportissuetype_test.go b/intel/attacksurfacereportissuetype_test.go index c10067441aa..86cc9f95cae 100644 --- a/intel/attacksurfacereportissuetype_test.go +++ b/intel/attacksurfacereportissuetype_test.go @@ -15,7 +15,6 @@ import ( ) func TestAttackSurfaceReportIssueTypeGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/dns_test.go b/intel/dns_test.go index fb1700345f1..a1e5b3aab4c 100644 --- a/intel/dns_test.go +++ b/intel/dns_test.go @@ -16,7 +16,6 @@ import ( ) func TestDNSListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/domain_test.go b/intel/domain_test.go index fc74babe65a..35377c4df83 100644 --- a/intel/domain_test.go +++ b/intel/domain_test.go @@ -15,7 +15,6 @@ import ( ) func TestDomainGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/domainbulk_test.go b/intel/domainbulk_test.go index e42b9bb2082..c1f8d21d276 100644 --- a/intel/domainbulk_test.go +++ b/intel/domainbulk_test.go @@ -15,7 +15,6 @@ import ( ) func TestDomainBulkGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/domainhistory_test.go b/intel/domainhistory_test.go index 8de27a27703..65f81860948 100644 --- a/intel/domainhistory_test.go +++ b/intel/domainhistory_test.go @@ -15,7 +15,6 @@ import ( ) func TestDomainHistoryGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/indicatorfeed_test.go b/intel/indicatorfeed_test.go index 60ea6840b57..14a1c957ec9 100644 --- a/intel/indicatorfeed_test.go +++ b/intel/indicatorfeed_test.go @@ -15,7 +15,6 @@ import ( ) func TestIndicatorFeedNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,7 +42,6 @@ func TestIndicatorFeedNewWithOptionalParams(t *testing.T) { } func TestIndicatorFeedUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -74,7 +72,6 @@ func TestIndicatorFeedUpdateWithOptionalParams(t *testing.T) { } func TestIndicatorFeedList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -100,7 +97,6 @@ func TestIndicatorFeedList(t *testing.T) { } func TestIndicatorFeedData(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -130,7 +126,6 @@ func TestIndicatorFeedData(t *testing.T) { } func TestIndicatorFeedGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/indicatorfeedpermission_test.go b/intel/indicatorfeedpermission_test.go index d03140692aa..5467a49a029 100644 --- a/intel/indicatorfeedpermission_test.go +++ b/intel/indicatorfeedpermission_test.go @@ -15,7 +15,6 @@ import ( ) func TestIndicatorFeedPermissionNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,7 +42,6 @@ func TestIndicatorFeedPermissionNewWithOptionalParams(t *testing.T) { } func TestIndicatorFeedPermissionList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -69,7 +67,6 @@ func TestIndicatorFeedPermissionList(t *testing.T) { } func TestIndicatorFeedPermissionDeleteWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/ip_test.go b/intel/ip_test.go index efa167b8f6c..20387116c3a 100644 --- a/intel/ip_test.go +++ b/intel/ip_test.go @@ -15,7 +15,6 @@ import ( ) func TestIPGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/iplist_test.go b/intel/iplist_test.go index cb817df57fd..6885ac2cf10 100644 --- a/intel/iplist_test.go +++ b/intel/iplist_test.go @@ -15,7 +15,6 @@ import ( ) func TestIPListGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/miscategorization_test.go b/intel/miscategorization_test.go index 11936e603a2..a4f0d3a774b 100644 --- a/intel/miscategorization_test.go +++ b/intel/miscategorization_test.go @@ -15,7 +15,6 @@ import ( ) func TestMiscategorizationNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/sinkhole_test.go b/intel/sinkhole_test.go index a3f131f8609..450d992ac53 100644 --- a/intel/sinkhole_test.go +++ b/intel/sinkhole_test.go @@ -15,7 +15,6 @@ import ( ) func TestSinkholeList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/whois_test.go b/intel/whois_test.go index 688920c8be6..85465963b5e 100644 --- a/intel/whois_test.go +++ b/intel/whois_test.go @@ -15,7 +15,6 @@ import ( ) func TestWhoisGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/ips/ip_test.go b/ips/ip_test.go index cf31c45a8bd..17dc2984606 100644 --- a/ips/ip_test.go +++ b/ips/ip_test.go @@ -15,7 +15,6 @@ import ( ) func TestIPListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/keyless_certificates/keylesscertificate_test.go b/keyless_certificates/keylesscertificate_test.go index bef4462bd5f..d59ad72328a 100644 --- a/keyless_certificates/keylesscertificate_test.go +++ b/keyless_certificates/keylesscertificate_test.go @@ -16,7 +16,6 @@ import ( ) func TestKeylessCertificateNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -51,7 +50,6 @@ func TestKeylessCertificateNewWithOptionalParams(t *testing.T) { } func TestKeylessCertificateList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -77,7 +75,6 @@ func TestKeylessCertificateList(t *testing.T) { } func TestKeylessCertificateDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -108,7 +105,6 @@ func TestKeylessCertificateDelete(t *testing.T) { } func TestKeylessCertificateEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -146,7 +142,6 @@ func TestKeylessCertificateEditWithOptionalParams(t *testing.T) { } func TestKeylessCertificateGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/kv/namespace_test.go b/kv/namespace_test.go index 3d4bbb4e88f..4925f9a3ae5 100644 --- a/kv/namespace_test.go +++ b/kv/namespace_test.go @@ -15,7 +15,6 @@ import ( ) func TestNamespaceNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestNamespaceNew(t *testing.T) { } func TestNamespaceUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -73,7 +71,6 @@ func TestNamespaceUpdate(t *testing.T) { } func TestNamespaceListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -103,7 +100,6 @@ func TestNamespaceListWithOptionalParams(t *testing.T) { } func TestNamespaceDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/kv/namespacebulk_test.go b/kv/namespacebulk_test.go index b8ab731e9f1..2766f4ae902 100644 --- a/kv/namespacebulk_test.go +++ b/kv/namespacebulk_test.go @@ -15,7 +15,6 @@ import ( ) func TestNamespaceBulkUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -73,7 +72,6 @@ func TestNamespaceBulkUpdate(t *testing.T) { } func TestNamespaceBulkDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/kv/namespacekey_test.go b/kv/namespacekey_test.go index af5a9080736..1062c719671 100644 --- a/kv/namespacekey_test.go +++ b/kv/namespacekey_test.go @@ -15,7 +15,6 @@ import ( ) func TestNamespaceKeyListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/kv/namespacemetadata_test.go b/kv/namespacemetadata_test.go index f629189be62..b06656431d7 100644 --- a/kv/namespacemetadata_test.go +++ b/kv/namespacemetadata_test.go @@ -15,7 +15,6 @@ import ( ) func TestNamespaceMetadataGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/kv/namespacevalue_test.go b/kv/namespacevalue_test.go index 175a684b6fd..cd05ddb0e04 100644 --- a/kv/namespacevalue_test.go +++ b/kv/namespacevalue_test.go @@ -15,7 +15,6 @@ import ( ) func TestNamespaceValueUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -48,7 +47,6 @@ func TestNamespaceValueUpdate(t *testing.T) { } func TestNamespaceValueDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -80,7 +78,6 @@ func TestNamespaceValueDelete(t *testing.T) { } func TestNamespaceValueGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/load_balancers/loadbalancer_test.go b/load_balancers/loadbalancer_test.go index ce92749b2f3..0cbea77b9df 100644 --- a/load_balancers/loadbalancer_test.go +++ b/load_balancers/loadbalancer_test.go @@ -15,7 +15,6 @@ import ( ) func TestLoadBalancerNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -323,7 +322,6 @@ func TestLoadBalancerNewWithOptionalParams(t *testing.T) { } func TestLoadBalancerUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -636,7 +634,6 @@ func TestLoadBalancerUpdateWithOptionalParams(t *testing.T) { } func TestLoadBalancerList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -662,7 +659,6 @@ func TestLoadBalancerList(t *testing.T) { } func TestLoadBalancerDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -693,7 +689,6 @@ func TestLoadBalancerDelete(t *testing.T) { } func TestLoadBalancerEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -1006,7 +1001,6 @@ func TestLoadBalancerEditWithOptionalParams(t *testing.T) { } func TestLoadBalancerGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/load_balancers/monitor_test.go b/load_balancers/monitor_test.go index 60066c91079..a9c892a413e 100644 --- a/load_balancers/monitor_test.go +++ b/load_balancers/monitor_test.go @@ -15,7 +15,6 @@ import ( ) func TestMonitorNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -64,7 +63,6 @@ func TestMonitorNewWithOptionalParams(t *testing.T) { } func TestMonitorUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -117,7 +115,6 @@ func TestMonitorUpdateWithOptionalParams(t *testing.T) { } func TestMonitorList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -143,7 +140,6 @@ func TestMonitorList(t *testing.T) { } func TestMonitorDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -174,7 +170,6 @@ func TestMonitorDelete(t *testing.T) { } func TestMonitorEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -227,7 +222,6 @@ func TestMonitorEditWithOptionalParams(t *testing.T) { } func TestMonitorGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/load_balancers/monitorpreview_test.go b/load_balancers/monitorpreview_test.go index 3f9fb4d500a..aca2d025f05 100644 --- a/load_balancers/monitorpreview_test.go +++ b/load_balancers/monitorpreview_test.go @@ -15,7 +15,6 @@ import ( ) func TestMonitorPreviewNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/load_balancers/monitorreference_test.go b/load_balancers/monitorreference_test.go index 0edf026f95f..507c3ffde5d 100644 --- a/load_balancers/monitorreference_test.go +++ b/load_balancers/monitorreference_test.go @@ -15,7 +15,6 @@ import ( ) func TestMonitorReferenceGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/load_balancers/pool_test.go b/load_balancers/pool_test.go index 2d164435952..8a1c24b5ca6 100644 --- a/load_balancers/pool_test.go +++ b/load_balancers/pool_test.go @@ -15,7 +15,6 @@ import ( ) func TestPoolNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -96,7 +95,6 @@ func TestPoolNewWithOptionalParams(t *testing.T) { } func TestPoolUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -182,7 +180,6 @@ func TestPoolUpdateWithOptionalParams(t *testing.T) { } func TestPoolListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -209,7 +206,6 @@ func TestPoolListWithOptionalParams(t *testing.T) { } func TestPoolDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -240,7 +236,6 @@ func TestPoolDelete(t *testing.T) { } func TestPoolEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -326,7 +321,6 @@ func TestPoolEditWithOptionalParams(t *testing.T) { } func TestPoolGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/load_balancers/poolhealth_test.go b/load_balancers/poolhealth_test.go index 3bbc54b2b00..f982613ecb1 100644 --- a/load_balancers/poolhealth_test.go +++ b/load_balancers/poolhealth_test.go @@ -15,7 +15,6 @@ import ( ) func TestPoolHealthNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -68,7 +67,6 @@ func TestPoolHealthNewWithOptionalParams(t *testing.T) { } func TestPoolHealthGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/load_balancers/poolreference_test.go b/load_balancers/poolreference_test.go index a610ff9174d..8020f111d75 100644 --- a/load_balancers/poolreference_test.go +++ b/load_balancers/poolreference_test.go @@ -15,7 +15,6 @@ import ( ) func TestPoolReferenceGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/load_balancers/preview_test.go b/load_balancers/preview_test.go index 073d3fa640d..89b98b8721d 100644 --- a/load_balancers/preview_test.go +++ b/load_balancers/preview_test.go @@ -15,7 +15,6 @@ import ( ) func TestPreviewGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/load_balancers/region_test.go b/load_balancers/region_test.go index 335b0bb9f0d..5807a5e9230 100644 --- a/load_balancers/region_test.go +++ b/load_balancers/region_test.go @@ -15,7 +15,6 @@ import ( ) func TestRegionListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,7 +43,6 @@ func TestRegionListWithOptionalParams(t *testing.T) { } func TestRegionGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/load_balancers/search_test.go b/load_balancers/search_test.go index b0c1eaa3256..230ce5e9caf 100644 --- a/load_balancers/search_test.go +++ b/load_balancers/search_test.go @@ -15,7 +15,6 @@ import ( ) func TestSearchGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/logpush/datasetfield_test.go b/logpush/datasetfield_test.go index c161ff6f8be..3306bc8b2a1 100644 --- a/logpush/datasetfield_test.go +++ b/logpush/datasetfield_test.go @@ -15,7 +15,6 @@ import ( ) func TestDatasetFieldGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/logpush/datasetjob_test.go b/logpush/datasetjob_test.go index f2016d43a13..30121bd1ff9 100644 --- a/logpush/datasetjob_test.go +++ b/logpush/datasetjob_test.go @@ -15,7 +15,6 @@ import ( ) func TestDatasetJobGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/logpush/edge_test.go b/logpush/edge_test.go index 679fa60a4ff..8d729783183 100644 --- a/logpush/edge_test.go +++ b/logpush/edge_test.go @@ -15,7 +15,6 @@ import ( ) func TestEdgeNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,7 +43,6 @@ func TestEdgeNewWithOptionalParams(t *testing.T) { } func TestEdgeGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/logpush/job_test.go b/logpush/job_test.go index b1793153a73..1d0aae59010 100644 --- a/logpush/job_test.go +++ b/logpush/job_test.go @@ -15,7 +15,6 @@ import ( ) func TestJobNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -63,7 +62,6 @@ func TestJobNewWithOptionalParams(t *testing.T) { } func TestJobUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -113,7 +111,6 @@ func TestJobUpdateWithOptionalParams(t *testing.T) { } func TestJobListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -140,7 +137,6 @@ func TestJobListWithOptionalParams(t *testing.T) { } func TestJobDeleteWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -172,7 +168,6 @@ func TestJobDeleteWithOptionalParams(t *testing.T) { } func TestJobGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/logpush/ownership_test.go b/logpush/ownership_test.go index a6aec09c0ec..8208b82247d 100644 --- a/logpush/ownership_test.go +++ b/logpush/ownership_test.go @@ -15,7 +15,6 @@ import ( ) func TestOwnershipNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,7 +42,6 @@ func TestOwnershipNewWithOptionalParams(t *testing.T) { } func TestOwnershipValidateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/logpush/validate_test.go b/logpush/validate_test.go index 3c60fe8ec14..82b3a3dd2de 100644 --- a/logpush/validate_test.go +++ b/logpush/validate_test.go @@ -15,7 +15,6 @@ import ( ) func TestValidateDestinationWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,7 +42,6 @@ func TestValidateDestinationWithOptionalParams(t *testing.T) { } func TestValidateOriginWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/logs/controlcmbconfig_test.go b/logs/controlcmbconfig_test.go index adad27d9232..c3a4ce4cbd0 100644 --- a/logs/controlcmbconfig_test.go +++ b/logs/controlcmbconfig_test.go @@ -15,7 +15,6 @@ import ( ) func TestControlCmbConfigNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,7 +43,6 @@ func TestControlCmbConfigNewWithOptionalParams(t *testing.T) { } func TestControlCmbConfigDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -71,7 +69,6 @@ func TestControlCmbConfigDelete(t *testing.T) { } func TestControlCmbConfigGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/logs/controlretentionflag_test.go b/logs/controlretentionflag_test.go index ff637d7121d..dccea36fa41 100644 --- a/logs/controlretentionflag_test.go +++ b/logs/controlretentionflag_test.go @@ -15,7 +15,6 @@ import ( ) func TestControlRetentionFlagNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestControlRetentionFlagNew(t *testing.T) { } func TestControlRetentionFlagGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/logs/rayid_test.go b/logs/rayid_test.go index 15fb0010fc1..de2e088e389 100644 --- a/logs/rayid_test.go +++ b/logs/rayid_test.go @@ -15,7 +15,6 @@ import ( ) func TestRayIDGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/logs/received_test.go b/logs/received_test.go index 9f22f9694fa..8cf87cb8228 100644 --- a/logs/received_test.go +++ b/logs/received_test.go @@ -16,7 +16,6 @@ import ( ) func TestReceivedGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/logs/receivedfield_test.go b/logs/receivedfield_test.go index 84aabd88a9b..bf5fe40d2e0 100644 --- a/logs/receivedfield_test.go +++ b/logs/receivedfield_test.go @@ -14,7 +14,6 @@ import ( ) func TestReceivedFieldGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/magic_network_monitoring/config_test.go b/magic_network_monitoring/config_test.go index 7cc445edfb9..35796b758b7 100644 --- a/magic_network_monitoring/config_test.go +++ b/magic_network_monitoring/config_test.go @@ -15,7 +15,6 @@ import ( ) func TestConfigNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestConfigNew(t *testing.T) { } func TestConfigUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -69,7 +67,6 @@ func TestConfigUpdate(t *testing.T) { } func TestConfigDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -96,7 +93,6 @@ func TestConfigDelete(t *testing.T) { } func TestConfigEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -123,7 +119,6 @@ func TestConfigEdit(t *testing.T) { } func TestConfigGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/magic_network_monitoring/configfull_test.go b/magic_network_monitoring/configfull_test.go index f0b25963496..3fbcb1e2fcb 100644 --- a/magic_network_monitoring/configfull_test.go +++ b/magic_network_monitoring/configfull_test.go @@ -15,7 +15,6 @@ import ( ) func TestConfigFullGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/magic_network_monitoring/rule_test.go b/magic_network_monitoring/rule_test.go index 711b273f820..207efcfe7ec 100644 --- a/magic_network_monitoring/rule_test.go +++ b/magic_network_monitoring/rule_test.go @@ -15,7 +15,6 @@ import ( ) func TestRuleNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestRuleNew(t *testing.T) { } func TestRuleUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -69,7 +67,6 @@ func TestRuleUpdate(t *testing.T) { } func TestRuleList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -95,7 +92,6 @@ func TestRuleList(t *testing.T) { } func TestRuleDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -126,7 +122,6 @@ func TestRuleDelete(t *testing.T) { } func TestRuleEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -157,7 +152,6 @@ func TestRuleEdit(t *testing.T) { } func TestRuleGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/magic_network_monitoring/ruleadvertisement_test.go b/magic_network_monitoring/ruleadvertisement_test.go index dfe6f09bd81..bffae3c1fa0 100644 --- a/magic_network_monitoring/ruleadvertisement_test.go +++ b/magic_network_monitoring/ruleadvertisement_test.go @@ -15,7 +15,6 @@ import ( ) func TestRuleAdvertisementEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/magic_transit/cfinterconnect_test.go b/magic_transit/cfinterconnect_test.go index 49df094f77f..3379bd0da1d 100644 --- a/magic_transit/cfinterconnect_test.go +++ b/magic_transit/cfinterconnect_test.go @@ -15,7 +15,6 @@ import ( ) func TestCfInterconnectUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -57,7 +56,6 @@ func TestCfInterconnectUpdateWithOptionalParams(t *testing.T) { } func TestCfInterconnectList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -83,7 +81,6 @@ func TestCfInterconnectList(t *testing.T) { } func TestCfInterconnectGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/magic_transit/gretunnel_test.go b/magic_transit/gretunnel_test.go index 585c40d1c39..7dc76b6c829 100644 --- a/magic_transit/gretunnel_test.go +++ b/magic_transit/gretunnel_test.go @@ -15,7 +15,6 @@ import ( ) func TestGRETunnelNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestGRETunnelNew(t *testing.T) { } func TestGRETunnelUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -86,7 +84,6 @@ func TestGRETunnelUpdateWithOptionalParams(t *testing.T) { } func TestGRETunnelList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -112,7 +109,6 @@ func TestGRETunnelList(t *testing.T) { } func TestGRETunnelDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -143,7 +139,6 @@ func TestGRETunnelDelete(t *testing.T) { } func TestGRETunnelGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/magic_transit/ipsectunnel_test.go b/magic_transit/ipsectunnel_test.go index 535200851f8..4544feed0c6 100644 --- a/magic_transit/ipsectunnel_test.go +++ b/magic_transit/ipsectunnel_test.go @@ -15,7 +15,6 @@ import ( ) func TestIPSECTunnelNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -55,7 +54,6 @@ func TestIPSECTunnelNewWithOptionalParams(t *testing.T) { } func TestIPSECTunnelUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -99,7 +97,6 @@ func TestIPSECTunnelUpdateWithOptionalParams(t *testing.T) { } func TestIPSECTunnelList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -125,7 +122,6 @@ func TestIPSECTunnelList(t *testing.T) { } func TestIPSECTunnelDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -156,7 +152,6 @@ func TestIPSECTunnelDelete(t *testing.T) { } func TestIPSECTunnelGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -186,7 +181,6 @@ func TestIPSECTunnelGet(t *testing.T) { } func TestIPSECTunnelPSKGenerate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/magic_transit/route_test.go b/magic_transit/route_test.go index bf86a596a0b..b123e5e25a3 100644 --- a/magic_transit/route_test.go +++ b/magic_transit/route_test.go @@ -15,7 +15,6 @@ import ( ) func TestRouteNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestRouteNew(t *testing.T) { } func TestRouteUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -81,7 +79,6 @@ func TestRouteUpdateWithOptionalParams(t *testing.T) { } func TestRouteList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -107,7 +104,6 @@ func TestRouteList(t *testing.T) { } func TestRouteDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -138,7 +134,6 @@ func TestRouteDelete(t *testing.T) { } func TestRouteEmpty(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -165,7 +160,6 @@ func TestRouteEmpty(t *testing.T) { } func TestRouteGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/magic_transit/site_test.go b/magic_transit/site_test.go index 6de303b55db..5d0e330eef1 100644 --- a/magic_transit/site_test.go +++ b/magic_transit/site_test.go @@ -15,7 +15,6 @@ import ( ) func TestSiteNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -52,7 +51,6 @@ func TestSiteNewWithOptionalParams(t *testing.T) { } func TestSiteUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -92,7 +90,6 @@ func TestSiteUpdateWithOptionalParams(t *testing.T) { } func TestSiteListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -119,7 +116,6 @@ func TestSiteListWithOptionalParams(t *testing.T) { } func TestSiteDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -150,7 +146,6 @@ func TestSiteDelete(t *testing.T) { } func TestSiteGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/magic_transit/siteacl_test.go b/magic_transit/siteacl_test.go index 168684be874..3899ad8ac0e 100644 --- a/magic_transit/siteacl_test.go +++ b/magic_transit/siteacl_test.go @@ -16,7 +16,6 @@ import ( ) func TestSiteACLNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -64,7 +63,6 @@ func TestSiteACLNewWithOptionalParams(t *testing.T) { } func TestSiteACLUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -113,7 +111,6 @@ func TestSiteACLUpdateWithOptionalParams(t *testing.T) { } func TestSiteACLList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -143,7 +140,6 @@ func TestSiteACLList(t *testing.T) { } func TestSiteACLDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -175,7 +171,6 @@ func TestSiteACLDelete(t *testing.T) { } func TestSiteACLGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/magic_transit/sitelan_test.go b/magic_transit/sitelan_test.go index da69bd311e6..0bf2e4ee4bd 100644 --- a/magic_transit/sitelan_test.go +++ b/magic_transit/sitelan_test.go @@ -15,7 +15,6 @@ import ( ) func TestSiteLANNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -90,7 +89,6 @@ func TestSiteLANNewWithOptionalParams(t *testing.T) { } func TestSiteLANUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -165,7 +163,6 @@ func TestSiteLANUpdateWithOptionalParams(t *testing.T) { } func TestSiteLANList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -195,7 +192,6 @@ func TestSiteLANList(t *testing.T) { } func TestSiteLANDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -227,7 +223,6 @@ func TestSiteLANDelete(t *testing.T) { } func TestSiteLANGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/magic_transit/sitewan_test.go b/magic_transit/sitewan_test.go index 2f34eff3512..fa051192cc2 100644 --- a/magic_transit/sitewan_test.go +++ b/magic_transit/sitewan_test.go @@ -15,7 +15,6 @@ import ( ) func TestSiteWANNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -56,7 +55,6 @@ func TestSiteWANNewWithOptionalParams(t *testing.T) { } func TestSiteWANUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -98,7 +96,6 @@ func TestSiteWANUpdateWithOptionalParams(t *testing.T) { } func TestSiteWANList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -128,7 +125,6 @@ func TestSiteWANList(t *testing.T) { } func TestSiteWANDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -160,7 +156,6 @@ func TestSiteWANDelete(t *testing.T) { } func TestSiteWANGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/managed_headers/managedheader_test.go b/managed_headers/managedheader_test.go index e0c671db033..733083926ee 100644 --- a/managed_headers/managedheader_test.go +++ b/managed_headers/managedheader_test.go @@ -15,7 +15,6 @@ import ( ) func TestManagedHeaderList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,7 +40,6 @@ func TestManagedHeaderList(t *testing.T) { } func TestManagedHeaderEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/memberships/membership_test.go b/memberships/membership_test.go index cd5c30699ea..34507c60f63 100644 --- a/memberships/membership_test.go +++ b/memberships/membership_test.go @@ -15,7 +15,6 @@ import ( ) func TestMembershipUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestMembershipUpdate(t *testing.T) { } func TestMembershipListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -79,7 +77,6 @@ func TestMembershipListWithOptionalParams(t *testing.T) { } func TestMembershipDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -109,7 +106,6 @@ func TestMembershipDelete(t *testing.T) { } func TestMembershipGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/mtls_certificates/association_test.go b/mtls_certificates/association_test.go index ef82e6bf761..f1a32192605 100644 --- a/mtls_certificates/association_test.go +++ b/mtls_certificates/association_test.go @@ -15,7 +15,6 @@ import ( ) func TestAssociationGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/mtls_certificates/mtlscertificate_test.go b/mtls_certificates/mtlscertificate_test.go index 339b113e186..02a7b7c6d7e 100644 --- a/mtls_certificates/mtlscertificate_test.go +++ b/mtls_certificates/mtlscertificate_test.go @@ -15,7 +15,6 @@ import ( ) func TestMTLSCertificateNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestMTLSCertificateNewWithOptionalParams(t *testing.T) { } func TestMTLSCertificateList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -71,7 +69,6 @@ func TestMTLSCertificateList(t *testing.T) { } func TestMTLSCertificateDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -102,7 +99,6 @@ func TestMTLSCertificateDelete(t *testing.T) { } func TestMTLSCertificateGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/origin_ca_certificates/origincacertificate_test.go b/origin_ca_certificates/origincacertificate_test.go index d9697157fb1..0b38be188bf 100644 --- a/origin_ca_certificates/origincacertificate_test.go +++ b/origin_ca_certificates/origincacertificate_test.go @@ -15,7 +15,6 @@ import ( ) func TestOriginCACertificateNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,7 +43,6 @@ func TestOriginCACertificateNewWithOptionalParams(t *testing.T) { } func TestOriginCACertificateListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -70,7 +68,6 @@ func TestOriginCACertificateListWithOptionalParams(t *testing.T) { } func TestOriginCACertificateDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -100,7 +97,6 @@ func TestOriginCACertificateDelete(t *testing.T) { } func TestOriginCACertificateGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/origin_post_quantum_encryption/originpostquantumencryption_test.go b/origin_post_quantum_encryption/originpostquantumencryption_test.go index 382c39f7504..ab76a76eaba 100644 --- a/origin_post_quantum_encryption/originpostquantumencryption_test.go +++ b/origin_post_quantum_encryption/originpostquantumencryption_test.go @@ -15,7 +15,6 @@ import ( ) func TestOriginPostQuantumEncryptionUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestOriginPostQuantumEncryptionUpdate(t *testing.T) { } func TestOriginPostQuantumEncryptionGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/origin_tls_client_auth/hostname_test.go b/origin_tls_client_auth/hostname_test.go index 4836ae647da..a6f8292492b 100644 --- a/origin_tls_client_auth/hostname_test.go +++ b/origin_tls_client_auth/hostname_test.go @@ -15,7 +15,6 @@ import ( ) func TestHostnameUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -54,7 +53,6 @@ func TestHostnameUpdate(t *testing.T) { } func TestHostnameGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/origin_tls_client_auth/hostnamecertificate_test.go b/origin_tls_client_auth/hostnamecertificate_test.go index 28868c3714f..1b8e702ccdd 100644 --- a/origin_tls_client_auth/hostnamecertificate_test.go +++ b/origin_tls_client_auth/hostnamecertificate_test.go @@ -15,7 +15,6 @@ import ( ) func TestHostnameCertificateNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,7 +42,6 @@ func TestHostnameCertificateNew(t *testing.T) { } func TestHostnameCertificateList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -69,7 +67,6 @@ func TestHostnameCertificateList(t *testing.T) { } func TestHostnameCertificateDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -100,7 +97,6 @@ func TestHostnameCertificateDelete(t *testing.T) { } func TestHostnameCertificateGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/origin_tls_client_auth/origintlsclientauth_test.go b/origin_tls_client_auth/origintlsclientauth_test.go index a35d31223c1..5dd7444546a 100644 --- a/origin_tls_client_auth/origintlsclientauth_test.go +++ b/origin_tls_client_auth/origintlsclientauth_test.go @@ -15,7 +15,6 @@ import ( ) func TestOriginTLSClientAuthNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,7 +42,6 @@ func TestOriginTLSClientAuthNew(t *testing.T) { } func TestOriginTLSClientAuthList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -69,7 +67,6 @@ func TestOriginTLSClientAuthList(t *testing.T) { } func TestOriginTLSClientAuthDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -100,7 +97,6 @@ func TestOriginTLSClientAuthDelete(t *testing.T) { } func TestOriginTLSClientAuthGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/origin_tls_client_auth/setting_test.go b/origin_tls_client_auth/setting_test.go index e5a70e3a48b..7d70daae3c8 100644 --- a/origin_tls_client_auth/setting_test.go +++ b/origin_tls_client_auth/setting_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingUpdate(t *testing.T) { } func TestSettingGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/page_shield/connection_test.go b/page_shield/connection_test.go index 5fab545513f..d93e9d4d4dd 100644 --- a/page_shield/connection_test.go +++ b/page_shield/connection_test.go @@ -15,7 +15,6 @@ import ( ) func TestConnectionListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -53,7 +52,6 @@ func TestConnectionListWithOptionalParams(t *testing.T) { } func TestConnectionGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/page_shield/pageshield_test.go b/page_shield/pageshield_test.go index 968d323a4e4..bca1f914bdf 100644 --- a/page_shield/pageshield_test.go +++ b/page_shield/pageshield_test.go @@ -15,7 +15,6 @@ import ( ) func TestPageShieldUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,7 +43,6 @@ func TestPageShieldUpdateWithOptionalParams(t *testing.T) { } func TestPageShieldGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/page_shield/policy_test.go b/page_shield/policy_test.go index 0183e953564..9b078e19f42 100644 --- a/page_shield/policy_test.go +++ b/page_shield/policy_test.go @@ -15,7 +15,6 @@ import ( ) func TestPolicyNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,7 +45,6 @@ func TestPolicyNewWithOptionalParams(t *testing.T) { } func TestPolicyUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -81,7 +79,6 @@ func TestPolicyUpdateWithOptionalParams(t *testing.T) { } func TestPolicyList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -107,7 +104,6 @@ func TestPolicyList(t *testing.T) { } func TestPolicyDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -137,7 +133,6 @@ func TestPolicyDelete(t *testing.T) { } func TestPolicyGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/page_shield/script_test.go b/page_shield/script_test.go index 17dcf95d886..ca19699ebf9 100644 --- a/page_shield/script_test.go +++ b/page_shield/script_test.go @@ -15,7 +15,6 @@ import ( ) func TestScriptListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -54,7 +53,6 @@ func TestScriptListWithOptionalParams(t *testing.T) { } func TestScriptGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/pagerules/pagerule_test.go b/pagerules/pagerule_test.go index 6901225ca61..14d24a0ce3a 100644 --- a/pagerules/pagerule_test.go +++ b/pagerules/pagerule_test.go @@ -15,7 +15,6 @@ import ( ) func TestPageruleNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -57,7 +56,6 @@ func TestPageruleNewWithOptionalParams(t *testing.T) { } func TestPageruleUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -103,7 +101,6 @@ func TestPageruleUpdateWithOptionalParams(t *testing.T) { } func TestPageruleListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -133,7 +130,6 @@ func TestPageruleListWithOptionalParams(t *testing.T) { } func TestPageruleDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -164,7 +160,6 @@ func TestPageruleDelete(t *testing.T) { } func TestPageruleEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -210,7 +205,6 @@ func TestPageruleEditWithOptionalParams(t *testing.T) { } func TestPageruleGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/pagerules/setting_test.go b/pagerules/setting_test.go index 8d66dfd03df..0910e68a798 100644 --- a/pagerules/setting_test.go +++ b/pagerules/setting_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/pages/project_test.go b/pages/project_test.go index 5b8aab66c82..e223d150861 100644 --- a/pages/project_test.go +++ b/pages/project_test.go @@ -15,7 +15,6 @@ import ( ) func TestProjectNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -203,7 +202,6 @@ func TestProjectNewWithOptionalParams(t *testing.T) { } func TestProjectList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -229,7 +227,6 @@ func TestProjectList(t *testing.T) { } func TestProjectDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -260,7 +257,6 @@ func TestProjectDelete(t *testing.T) { } func TestProjectEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -310,7 +306,6 @@ func TestProjectEdit(t *testing.T) { } func TestProjectGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -340,7 +335,6 @@ func TestProjectGet(t *testing.T) { } func TestProjectPurgeBuildCache(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/pages/projectdeployment_test.go b/pages/projectdeployment_test.go index cd560bf2796..14ebca1dfde 100644 --- a/pages/projectdeployment_test.go +++ b/pages/projectdeployment_test.go @@ -15,7 +15,6 @@ import ( ) func TestProjectDeploymentNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,7 +45,6 @@ func TestProjectDeploymentNewWithOptionalParams(t *testing.T) { } func TestProjectDeploymentListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -77,7 +75,6 @@ func TestProjectDeploymentListWithOptionalParams(t *testing.T) { } func TestProjectDeploymentDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -109,7 +106,6 @@ func TestProjectDeploymentDelete(t *testing.T) { } func TestProjectDeploymentGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -140,7 +136,6 @@ func TestProjectDeploymentGet(t *testing.T) { } func TestProjectDeploymentRetry(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -172,7 +167,6 @@ func TestProjectDeploymentRetry(t *testing.T) { } func TestProjectDeploymentRollback(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/pages/projectdeploymenthistorylog_test.go b/pages/projectdeploymenthistorylog_test.go index 14e6c374f6f..16ea453d671 100644 --- a/pages/projectdeploymenthistorylog_test.go +++ b/pages/projectdeploymenthistorylog_test.go @@ -15,7 +15,6 @@ import ( ) func TestProjectDeploymentHistoryLogGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/pages/projectdomain_test.go b/pages/projectdomain_test.go index 6e54698b562..48a8b432715 100644 --- a/pages/projectdomain_test.go +++ b/pages/projectdomain_test.go @@ -15,7 +15,6 @@ import ( ) func TestProjectDomainNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -48,7 +47,6 @@ func TestProjectDomainNew(t *testing.T) { } func TestProjectDomainList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -78,7 +76,6 @@ func TestProjectDomainList(t *testing.T) { } func TestProjectDomainDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -110,7 +107,6 @@ func TestProjectDomainDelete(t *testing.T) { } func TestProjectDomainEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -142,7 +138,6 @@ func TestProjectDomainEdit(t *testing.T) { } func TestProjectDomainGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/pcaps/download_test.go b/pcaps/download_test.go index b8b39208bc0..deffd349a34 100644 --- a/pcaps/download_test.go +++ b/pcaps/download_test.go @@ -17,7 +17,6 @@ import ( ) func TestDownloadGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(200) w.Write([]byte("abc")) diff --git a/pcaps/ownership_test.go b/pcaps/ownership_test.go index 2724e3c429b..80ed081c411 100644 --- a/pcaps/ownership_test.go +++ b/pcaps/ownership_test.go @@ -15,7 +15,6 @@ import ( ) func TestOwnershipNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestOwnershipNew(t *testing.T) { } func TestOwnershipDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -72,7 +70,6 @@ func TestOwnershipDelete(t *testing.T) { } func TestOwnershipGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -98,7 +95,6 @@ func TestOwnershipGet(t *testing.T) { } func TestOwnershipValidate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/pcaps/pcap_test.go b/pcaps/pcap_test.go index d67b4f2e140..3541fdc1a27 100644 --- a/pcaps/pcap_test.go +++ b/pcaps/pcap_test.go @@ -15,7 +15,6 @@ import ( ) func TestPCAPNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -54,7 +53,6 @@ func TestPCAPNewWithOptionalParams(t *testing.T) { } func TestPCAPList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -80,7 +78,6 @@ func TestPCAPList(t *testing.T) { } func TestPCAPGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/plans/plan_test.go b/plans/plan_test.go index 122d9cac3cd..7f9158a410e 100644 --- a/plans/plan_test.go +++ b/plans/plan_test.go @@ -14,7 +14,6 @@ import ( ) func TestPlanList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -38,7 +37,6 @@ func TestPlanList(t *testing.T) { } func TestPlanGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/queues/consumer_test.go b/queues/consumer_test.go index f53c3fca042..5b2e202e30b 100644 --- a/queues/consumer_test.go +++ b/queues/consumer_test.go @@ -15,7 +15,6 @@ import ( ) func TestConsumerNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -55,7 +54,6 @@ func TestConsumerNew(t *testing.T) { } func TestConsumerUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -94,7 +92,6 @@ func TestConsumerUpdate(t *testing.T) { } func TestConsumerDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -126,7 +123,6 @@ func TestConsumerDelete(t *testing.T) { } func TestConsumerGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/queues/message_test.go b/queues/message_test.go index 6836144d12b..e17d8312298 100644 --- a/queues/message_test.go +++ b/queues/message_test.go @@ -15,7 +15,6 @@ import ( ) func TestMessageAckWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -62,7 +61,6 @@ func TestMessageAckWithOptionalParams(t *testing.T) { } func TestMessagePullWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/queues/queue_test.go b/queues/queue_test.go index 3cf77ee8818..71e7e75d32e 100644 --- a/queues/queue_test.go +++ b/queues/queue_test.go @@ -15,7 +15,6 @@ import ( ) func TestQueueNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,7 +43,6 @@ func TestQueueNew(t *testing.T) { } func TestQueueUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -77,7 +75,6 @@ func TestQueueUpdate(t *testing.T) { } func TestQueueList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -103,7 +100,6 @@ func TestQueueList(t *testing.T) { } func TestQueueDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -134,7 +130,6 @@ func TestQueueDelete(t *testing.T) { } func TestQueueGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/r2/bucket_test.go b/r2/bucket_test.go index 624e783ccd5..6109ef77c3b 100644 --- a/r2/bucket_test.go +++ b/r2/bucket_test.go @@ -15,7 +15,6 @@ import ( ) func TestBucketNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,7 +42,6 @@ func TestBucketNewWithOptionalParams(t *testing.T) { } func TestBucketListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -75,7 +73,6 @@ func TestBucketListWithOptionalParams(t *testing.T) { } func TestBucketDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -105,7 +102,6 @@ func TestBucketDelete(t *testing.T) { } func TestBucketGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/r2/sippy_test.go b/r2/sippy_test.go index b6b699e22e9..ab8653a4715 100644 --- a/r2/sippy_test.go +++ b/r2/sippy_test.go @@ -15,7 +15,6 @@ import ( ) func TestSippyUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -59,7 +58,6 @@ func TestSippyUpdateWithOptionalParams(t *testing.T) { } func TestSippyDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -89,7 +87,6 @@ func TestSippyDelete(t *testing.T) { } func TestSippyGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/annotationoutage_test.go b/radar/annotationoutage_test.go index 50606c824e5..eeda9f7541e 100644 --- a/radar/annotationoutage_test.go +++ b/radar/annotationoutage_test.go @@ -16,7 +16,6 @@ import ( ) func TestAnnotationOutageGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,7 +48,6 @@ func TestAnnotationOutageGetWithOptionalParams(t *testing.T) { } func TestAnnotationOutageLocationsWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/as112_test.go b/radar/as112_test.go index 43db28bb625..4fa0a53d71e 100644 --- a/radar/as112_test.go +++ b/radar/as112_test.go @@ -16,7 +16,6 @@ import ( ) func TestAS112TimeseriesWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/as112summary_test.go b/radar/as112summary_test.go index 768baf515eb..5f6c47b79a0 100644 --- a/radar/as112summary_test.go +++ b/radar/as112summary_test.go @@ -16,7 +16,6 @@ import ( ) func TestAS112SummaryDNSSECWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,7 +48,6 @@ func TestAS112SummaryDNSSECWithOptionalParams(t *testing.T) { } func TestAS112SummaryEdnsWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -82,7 +80,6 @@ func TestAS112SummaryEdnsWithOptionalParams(t *testing.T) { } func TestAS112SummaryIPVersionWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -115,7 +112,6 @@ func TestAS112SummaryIPVersionWithOptionalParams(t *testing.T) { } func TestAS112SummaryProtocolWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -148,7 +144,6 @@ func TestAS112SummaryProtocolWithOptionalParams(t *testing.T) { } func TestAS112SummaryQueryTypeWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -181,7 +176,6 @@ func TestAS112SummaryQueryTypeWithOptionalParams(t *testing.T) { } func TestAS112SummaryResponseCodesWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/as112timeseriesgroup_test.go b/radar/as112timeseriesgroup_test.go index 020483321a7..54e4e94cb10 100644 --- a/radar/as112timeseriesgroup_test.go +++ b/radar/as112timeseriesgroup_test.go @@ -16,7 +16,6 @@ import ( ) func TestAS112TimeseriesGroupDNSSECWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -50,7 +49,6 @@ func TestAS112TimeseriesGroupDNSSECWithOptionalParams(t *testing.T) { } func TestAS112TimeseriesGroupEdnsWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -84,7 +82,6 @@ func TestAS112TimeseriesGroupEdnsWithOptionalParams(t *testing.T) { } func TestAS112TimeseriesGroupIPVersionWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -118,7 +115,6 @@ func TestAS112TimeseriesGroupIPVersionWithOptionalParams(t *testing.T) { } func TestAS112TimeseriesGroupProtocolWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -152,7 +148,6 @@ func TestAS112TimeseriesGroupProtocolWithOptionalParams(t *testing.T) { } func TestAS112TimeseriesGroupQueryTypeWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -186,7 +181,6 @@ func TestAS112TimeseriesGroupQueryTypeWithOptionalParams(t *testing.T) { } func TestAS112TimeseriesGroupResponseCodesWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/as112top_test.go b/radar/as112top_test.go index e54bcdb3d56..0d66fbce009 100644 --- a/radar/as112top_test.go +++ b/radar/as112top_test.go @@ -16,7 +16,6 @@ import ( ) func TestAS112TopDNSSECWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -54,7 +53,6 @@ func TestAS112TopDNSSECWithOptionalParams(t *testing.T) { } func TestAS112TopEdnsWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -92,7 +90,6 @@ func TestAS112TopEdnsWithOptionalParams(t *testing.T) { } func TestAS112TopIPVersionWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -130,7 +127,6 @@ func TestAS112TopIPVersionWithOptionalParams(t *testing.T) { } func TestAS112TopLocationsWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/attacklayer3_test.go b/radar/attacklayer3_test.go index 448a71e9a59..230309eee21 100644 --- a/radar/attacklayer3_test.go +++ b/radar/attacklayer3_test.go @@ -16,7 +16,6 @@ import ( ) func TestAttackLayer3TimeseriesWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/attacklayer3summary_test.go b/radar/attacklayer3summary_test.go index 409533aa769..c847ce6e466 100644 --- a/radar/attacklayer3summary_test.go +++ b/radar/attacklayer3summary_test.go @@ -16,7 +16,6 @@ import ( ) func TestAttackLayer3SummaryBitrateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -51,7 +50,6 @@ func TestAttackLayer3SummaryBitrateWithOptionalParams(t *testing.T) { } func TestAttackLayer3SummaryDurationWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -86,7 +84,6 @@ func TestAttackLayer3SummaryDurationWithOptionalParams(t *testing.T) { } func TestAttackLayer3SummaryGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -119,7 +116,6 @@ func TestAttackLayer3SummaryGetWithOptionalParams(t *testing.T) { } func TestAttackLayer3SummaryIPVersionWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -153,7 +149,6 @@ func TestAttackLayer3SummaryIPVersionWithOptionalParams(t *testing.T) { } func TestAttackLayer3SummaryProtocolWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -187,7 +182,6 @@ func TestAttackLayer3SummaryProtocolWithOptionalParams(t *testing.T) { } func TestAttackLayer3SummaryVectorWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/attacklayer3timeseriesgroup_test.go b/radar/attacklayer3timeseriesgroup_test.go index 12865a68a3b..ced4274e509 100644 --- a/radar/attacklayer3timeseriesgroup_test.go +++ b/radar/attacklayer3timeseriesgroup_test.go @@ -16,7 +16,6 @@ import ( ) func TestAttackLayer3TimeseriesGroupBitrateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -53,7 +52,6 @@ func TestAttackLayer3TimeseriesGroupBitrateWithOptionalParams(t *testing.T) { } func TestAttackLayer3TimeseriesGroupDurationWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -90,7 +88,6 @@ func TestAttackLayer3TimeseriesGroupDurationWithOptionalParams(t *testing.T) { } func TestAttackLayer3TimeseriesGroupGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -124,7 +121,6 @@ func TestAttackLayer3TimeseriesGroupGetWithOptionalParams(t *testing.T) { } func TestAttackLayer3TimeseriesGroupIndustryWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -161,7 +157,6 @@ func TestAttackLayer3TimeseriesGroupIndustryWithOptionalParams(t *testing.T) { } func TestAttackLayer3TimeseriesGroupIPVersionWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -197,7 +192,6 @@ func TestAttackLayer3TimeseriesGroupIPVersionWithOptionalParams(t *testing.T) { } func TestAttackLayer3TimeseriesGroupProtocolWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -233,7 +227,6 @@ func TestAttackLayer3TimeseriesGroupProtocolWithOptionalParams(t *testing.T) { } func TestAttackLayer3TimeseriesGroupVectorWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -271,7 +264,6 @@ func TestAttackLayer3TimeseriesGroupVectorWithOptionalParams(t *testing.T) { } func TestAttackLayer3TimeseriesGroupVerticalWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/attacklayer3top_test.go b/radar/attacklayer3top_test.go index c27f5a0365c..23a2a8e4cec 100644 --- a/radar/attacklayer3top_test.go +++ b/radar/attacklayer3top_test.go @@ -16,7 +16,6 @@ import ( ) func TestAttackLayer3TopAttacksWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -53,7 +52,6 @@ func TestAttackLayer3TopAttacksWithOptionalParams(t *testing.T) { } func TestAttackLayer3TopIndustryWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -88,7 +86,6 @@ func TestAttackLayer3TopIndustryWithOptionalParams(t *testing.T) { } func TestAttackLayer3TopVerticalWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/attacklayer3toplocation_test.go b/radar/attacklayer3toplocation_test.go index 3d13f00b268..d33d9abded0 100644 --- a/radar/attacklayer3toplocation_test.go +++ b/radar/attacklayer3toplocation_test.go @@ -16,7 +16,6 @@ import ( ) func TestAttackLayer3TopLocationOriginWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -51,7 +50,6 @@ func TestAttackLayer3TopLocationOriginWithOptionalParams(t *testing.T) { } func TestAttackLayer3TopLocationTargetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/attacklayer7_test.go b/radar/attacklayer7_test.go index e9185184a65..546c13423c9 100644 --- a/radar/attacklayer7_test.go +++ b/radar/attacklayer7_test.go @@ -16,7 +16,6 @@ import ( ) func TestAttackLayer7TimeseriesWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/attacklayer7summary_test.go b/radar/attacklayer7summary_test.go index 4d52fad6d8b..609911d1702 100644 --- a/radar/attacklayer7summary_test.go +++ b/radar/attacklayer7summary_test.go @@ -16,7 +16,6 @@ import ( ) func TestAttackLayer7SummaryGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,7 +48,6 @@ func TestAttackLayer7SummaryGetWithOptionalParams(t *testing.T) { } func TestAttackLayer7SummaryHTTPMethodWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -85,7 +83,6 @@ func TestAttackLayer7SummaryHTTPMethodWithOptionalParams(t *testing.T) { } func TestAttackLayer7SummaryHTTPVersionWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -121,7 +118,6 @@ func TestAttackLayer7SummaryHTTPVersionWithOptionalParams(t *testing.T) { } func TestAttackLayer7SummaryIPVersionWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -157,7 +153,6 @@ func TestAttackLayer7SummaryIPVersionWithOptionalParams(t *testing.T) { } func TestAttackLayer7SummaryManagedRulesWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -194,7 +189,6 @@ func TestAttackLayer7SummaryManagedRulesWithOptionalParams(t *testing.T) { } func TestAttackLayer7SummaryMitigationProductWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/attacklayer7timeseriesgroup_test.go b/radar/attacklayer7timeseriesgroup_test.go index 688542200d6..fc4edfbf42e 100644 --- a/radar/attacklayer7timeseriesgroup_test.go +++ b/radar/attacklayer7timeseriesgroup_test.go @@ -16,7 +16,6 @@ import ( ) func TestAttackLayer7TimeseriesGroupGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -50,7 +49,6 @@ func TestAttackLayer7TimeseriesGroupGetWithOptionalParams(t *testing.T) { } func TestAttackLayer7TimeseriesGroupHTTPMethodWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -88,7 +86,6 @@ func TestAttackLayer7TimeseriesGroupHTTPMethodWithOptionalParams(t *testing.T) { } func TestAttackLayer7TimeseriesGroupHTTPVersionWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -126,7 +123,6 @@ func TestAttackLayer7TimeseriesGroupHTTPVersionWithOptionalParams(t *testing.T) } func TestAttackLayer7TimeseriesGroupIndustryWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -166,7 +162,6 @@ func TestAttackLayer7TimeseriesGroupIndustryWithOptionalParams(t *testing.T) { } func TestAttackLayer7TimeseriesGroupIPVersionWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -204,7 +199,6 @@ func TestAttackLayer7TimeseriesGroupIPVersionWithOptionalParams(t *testing.T) { } func TestAttackLayer7TimeseriesGroupManagedRulesWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -243,7 +237,6 @@ func TestAttackLayer7TimeseriesGroupManagedRulesWithOptionalParams(t *testing.T) } func TestAttackLayer7TimeseriesGroupMitigationProductWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -281,7 +274,6 @@ func TestAttackLayer7TimeseriesGroupMitigationProductWithOptionalParams(t *testi } func TestAttackLayer7TimeseriesGroupVerticalWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/attacklayer7top_test.go b/radar/attacklayer7top_test.go index 628cc58bc48..e7e4d38f7c4 100644 --- a/radar/attacklayer7top_test.go +++ b/radar/attacklayer7top_test.go @@ -16,7 +16,6 @@ import ( ) func TestAttackLayer7TopAttacksWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -53,7 +52,6 @@ func TestAttackLayer7TopAttacksWithOptionalParams(t *testing.T) { } func TestAttackLayer7TopIndustryWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -87,7 +85,6 @@ func TestAttackLayer7TopIndustryWithOptionalParams(t *testing.T) { } func TestAttackLayer7TopVerticalWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/attacklayer7topase_test.go b/radar/attacklayer7topase_test.go index e70550c2d54..399b257044c 100644 --- a/radar/attacklayer7topase_test.go +++ b/radar/attacklayer7topase_test.go @@ -16,7 +16,6 @@ import ( ) func TestAttackLayer7TopAseOriginWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/attacklayer7toplocation_test.go b/radar/attacklayer7toplocation_test.go index 3eab517f3a2..78a9556c3bb 100644 --- a/radar/attacklayer7toplocation_test.go +++ b/radar/attacklayer7toplocation_test.go @@ -16,7 +16,6 @@ import ( ) func TestAttackLayer7TopLocationOriginWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,7 +48,6 @@ func TestAttackLayer7TopLocationOriginWithOptionalParams(t *testing.T) { } func TestAttackLayer7TopLocationTargetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/bgp_test.go b/radar/bgp_test.go index 697640b698f..f16397aa995 100644 --- a/radar/bgp_test.go +++ b/radar/bgp_test.go @@ -16,7 +16,6 @@ import ( ) func TestBGPTimeseriesWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/bgphijackevent_test.go b/radar/bgphijackevent_test.go index ad36d1ce826..61551b21288 100644 --- a/radar/bgphijackevent_test.go +++ b/radar/bgphijackevent_test.go @@ -16,7 +16,6 @@ import ( ) func TestBGPHijackEventListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/bgpleakevent_test.go b/radar/bgpleakevent_test.go index 7c44f8c02cd..b9f66befcf2 100644 --- a/radar/bgpleakevent_test.go +++ b/radar/bgpleakevent_test.go @@ -16,7 +16,6 @@ import ( ) func TestBGPLeakEventListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/bgproute_test.go b/radar/bgproute_test.go index b6da03886e5..d46865eea65 100644 --- a/radar/bgproute_test.go +++ b/radar/bgproute_test.go @@ -16,7 +16,6 @@ import ( ) func TestBGPRouteMoasWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestBGPRouteMoasWithOptionalParams(t *testing.T) { } func TestBGPRoutePfx2asWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -75,7 +73,6 @@ func TestBGPRoutePfx2asWithOptionalParams(t *testing.T) { } func TestBGPRouteStatsWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -103,7 +100,6 @@ func TestBGPRouteStatsWithOptionalParams(t *testing.T) { } func TestBGPRouteTimeseriesWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/bgptop_test.go b/radar/bgptop_test.go index 0c8569d86cf..cd787055c82 100644 --- a/radar/bgptop_test.go +++ b/radar/bgptop_test.go @@ -16,7 +16,6 @@ import ( ) func TestBGPTopPrefixesWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/bgptopase_test.go b/radar/bgptopase_test.go index f810340c0df..1bcb8166a0c 100644 --- a/radar/bgptopase_test.go +++ b/radar/bgptopase_test.go @@ -16,7 +16,6 @@ import ( ) func TestBGPTopAseGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -50,7 +49,6 @@ func TestBGPTopAseGetWithOptionalParams(t *testing.T) { } func TestBGPTopAsePrefixesWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/connectiontampering_test.go b/radar/connectiontampering_test.go index c600683cb7a..911f2ae18db 100644 --- a/radar/connectiontampering_test.go +++ b/radar/connectiontampering_test.go @@ -16,7 +16,6 @@ import ( ) func TestConnectionTamperingSummaryWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,7 +48,6 @@ func TestConnectionTamperingSummaryWithOptionalParams(t *testing.T) { } func TestConnectionTamperingTimeseriesGroupsWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/dataset_test.go b/radar/dataset_test.go index 4d5c8375976..06d80cb332a 100644 --- a/radar/dataset_test.go +++ b/radar/dataset_test.go @@ -15,7 +15,6 @@ import ( ) func TestDatasetListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,7 +43,6 @@ func TestDatasetListWithOptionalParams(t *testing.T) { } func TestDatasetDownloadWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -71,7 +69,6 @@ func TestDatasetDownloadWithOptionalParams(t *testing.T) { } func TestDatasetGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/dnstop_test.go b/radar/dnstop_test.go index c1a9be99889..2653b068103 100644 --- a/radar/dnstop_test.go +++ b/radar/dnstop_test.go @@ -16,7 +16,6 @@ import ( ) func TestDNSTopAsesWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -51,7 +50,6 @@ func TestDNSTopAsesWithOptionalParams(t *testing.T) { } func TestDNSTopLocationsWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/emailroutingsummary_test.go b/radar/emailroutingsummary_test.go index 55c84484455..bd89f46be86 100644 --- a/radar/emailroutingsummary_test.go +++ b/radar/emailroutingsummary_test.go @@ -16,7 +16,6 @@ import ( ) func TestEmailRoutingSummaryARCWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -51,7 +50,6 @@ func TestEmailRoutingSummaryARCWithOptionalParams(t *testing.T) { } func TestEmailRoutingSummaryDKIMWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -86,7 +84,6 @@ func TestEmailRoutingSummaryDKIMWithOptionalParams(t *testing.T) { } func TestEmailRoutingSummaryDMARCWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -121,7 +118,6 @@ func TestEmailRoutingSummaryDMARCWithOptionalParams(t *testing.T) { } func TestEmailRoutingSummaryEncryptedWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -156,7 +152,6 @@ func TestEmailRoutingSummaryEncryptedWithOptionalParams(t *testing.T) { } func TestEmailRoutingSummaryIPVersionWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -191,7 +186,6 @@ func TestEmailRoutingSummaryIPVersionWithOptionalParams(t *testing.T) { } func TestEmailRoutingSummarySPFWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/emailroutingtimeseriesgroup_test.go b/radar/emailroutingtimeseriesgroup_test.go index 029e959e83c..a9e7cd6a95f 100644 --- a/radar/emailroutingtimeseriesgroup_test.go +++ b/radar/emailroutingtimeseriesgroup_test.go @@ -16,7 +16,6 @@ import ( ) func TestEmailRoutingTimeseriesGroupARCWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -52,7 +51,6 @@ func TestEmailRoutingTimeseriesGroupARCWithOptionalParams(t *testing.T) { } func TestEmailRoutingTimeseriesGroupDKIMWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -88,7 +86,6 @@ func TestEmailRoutingTimeseriesGroupDKIMWithOptionalParams(t *testing.T) { } func TestEmailRoutingTimeseriesGroupDMARCWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -124,7 +121,6 @@ func TestEmailRoutingTimeseriesGroupDMARCWithOptionalParams(t *testing.T) { } func TestEmailRoutingTimeseriesGroupEncryptedWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -160,7 +156,6 @@ func TestEmailRoutingTimeseriesGroupEncryptedWithOptionalParams(t *testing.T) { } func TestEmailRoutingTimeseriesGroupIPVersionWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -196,7 +191,6 @@ func TestEmailRoutingTimeseriesGroupIPVersionWithOptionalParams(t *testing.T) { } func TestEmailRoutingTimeseriesGroupSPFWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/emailsecuritysummary_test.go b/radar/emailsecuritysummary_test.go index e0c51af3e60..3737b331fe4 100644 --- a/radar/emailsecuritysummary_test.go +++ b/radar/emailsecuritysummary_test.go @@ -16,7 +16,6 @@ import ( ) func TestEmailSecuritySummaryARCWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -50,7 +49,6 @@ func TestEmailSecuritySummaryARCWithOptionalParams(t *testing.T) { } func TestEmailSecuritySummaryDKIMWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -84,7 +82,6 @@ func TestEmailSecuritySummaryDKIMWithOptionalParams(t *testing.T) { } func TestEmailSecuritySummaryDMARCWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -118,7 +115,6 @@ func TestEmailSecuritySummaryDMARCWithOptionalParams(t *testing.T) { } func TestEmailSecuritySummaryMaliciousWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -153,7 +149,6 @@ func TestEmailSecuritySummaryMaliciousWithOptionalParams(t *testing.T) { } func TestEmailSecuritySummarySpamWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -188,7 +183,6 @@ func TestEmailSecuritySummarySpamWithOptionalParams(t *testing.T) { } func TestEmailSecuritySummarySPFWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -222,7 +216,6 @@ func TestEmailSecuritySummarySPFWithOptionalParams(t *testing.T) { } func TestEmailSecuritySummarySpoofWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -257,7 +250,6 @@ func TestEmailSecuritySummarySpoofWithOptionalParams(t *testing.T) { } func TestEmailSecuritySummaryThreatCategoryWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -292,7 +284,6 @@ func TestEmailSecuritySummaryThreatCategoryWithOptionalParams(t *testing.T) { } func TestEmailSecuritySummaryTLSVersionWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/emailsecuritytimeseriesgroup_test.go b/radar/emailsecuritytimeseriesgroup_test.go index d480fd9987e..c93fe209ee3 100644 --- a/radar/emailsecuritytimeseriesgroup_test.go +++ b/radar/emailsecuritytimeseriesgroup_test.go @@ -16,7 +16,6 @@ import ( ) func TestEmailSecurityTimeseriesGroupARCWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -51,7 +50,6 @@ func TestEmailSecurityTimeseriesGroupARCWithOptionalParams(t *testing.T) { } func TestEmailSecurityTimeseriesGroupDKIMWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -86,7 +84,6 @@ func TestEmailSecurityTimeseriesGroupDKIMWithOptionalParams(t *testing.T) { } func TestEmailSecurityTimeseriesGroupDMARCWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -121,7 +118,6 @@ func TestEmailSecurityTimeseriesGroupDMARCWithOptionalParams(t *testing.T) { } func TestEmailSecurityTimeseriesGroupMaliciousWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -157,7 +153,6 @@ func TestEmailSecurityTimeseriesGroupMaliciousWithOptionalParams(t *testing.T) { } func TestEmailSecurityTimeseriesGroupSpamWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -193,7 +188,6 @@ func TestEmailSecurityTimeseriesGroupSpamWithOptionalParams(t *testing.T) { } func TestEmailSecurityTimeseriesGroupSPFWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -228,7 +222,6 @@ func TestEmailSecurityTimeseriesGroupSPFWithOptionalParams(t *testing.T) { } func TestEmailSecurityTimeseriesGroupSpoofWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -264,7 +257,6 @@ func TestEmailSecurityTimeseriesGroupSpoofWithOptionalParams(t *testing.T) { } func TestEmailSecurityTimeseriesGroupThreatCategoryWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -300,7 +292,6 @@ func TestEmailSecurityTimeseriesGroupThreatCategoryWithOptionalParams(t *testing } func TestEmailSecurityTimeseriesGroupTLSVersionWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/emailsecuritytoptld_test.go b/radar/emailsecuritytoptld_test.go index 6460369f714..d6198370e0e 100644 --- a/radar/emailsecuritytoptld_test.go +++ b/radar/emailsecuritytoptld_test.go @@ -16,7 +16,6 @@ import ( ) func TestEmailSecurityTopTldGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/emailsecuritytoptldmalicious_test.go b/radar/emailsecuritytoptldmalicious_test.go index 3c65f75d1d2..f16eca0c2a3 100644 --- a/radar/emailsecuritytoptldmalicious_test.go +++ b/radar/emailsecuritytoptldmalicious_test.go @@ -16,7 +16,6 @@ import ( ) func TestEmailSecurityTopTldMaliciousGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/emailsecuritytoptldspam_test.go b/radar/emailsecuritytoptldspam_test.go index 410fcee85bf..115307839a4 100644 --- a/radar/emailsecuritytoptldspam_test.go +++ b/radar/emailsecuritytoptldspam_test.go @@ -16,7 +16,6 @@ import ( ) func TestEmailSecurityTopTldSpamGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/emailsecuritytoptldspoof_test.go b/radar/emailsecuritytoptldspoof_test.go index 6f42b6b9bdb..f0325a24658 100644 --- a/radar/emailsecuritytoptldspoof_test.go +++ b/radar/emailsecuritytoptldspoof_test.go @@ -16,7 +16,6 @@ import ( ) func TestEmailSecurityTopTldSpoofGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/entity_test.go b/radar/entity_test.go index 44a99cf761e..6913fbbb044 100644 --- a/radar/entity_test.go +++ b/radar/entity_test.go @@ -15,7 +15,6 @@ import ( ) func TestEntityGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/entityasn_test.go b/radar/entityasn_test.go index 8c76e55fed6..40dce71396f 100644 --- a/radar/entityasn_test.go +++ b/radar/entityasn_test.go @@ -15,7 +15,6 @@ import ( ) func TestEntityASNListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,7 +45,6 @@ func TestEntityASNListWithOptionalParams(t *testing.T) { } func TestEntityASNGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -76,7 +74,6 @@ func TestEntityASNGetWithOptionalParams(t *testing.T) { } func TestEntityASNIPWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -103,7 +100,6 @@ func TestEntityASNIPWithOptionalParams(t *testing.T) { } func TestEntityASNRelWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/entitylocation_test.go b/radar/entitylocation_test.go index 0c8b423f9c3..eba2b9fd5c1 100644 --- a/radar/entitylocation_test.go +++ b/radar/entitylocation_test.go @@ -15,7 +15,6 @@ import ( ) func TestEntityLocationListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,7 +43,6 @@ func TestEntityLocationListWithOptionalParams(t *testing.T) { } func TestEntityLocationGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httpase_test.go b/radar/httpase_test.go index 111cb9ea077..212e8c0da10 100644 --- a/radar/httpase_test.go +++ b/radar/httpase_test.go @@ -16,7 +16,6 @@ import ( ) func TestHTTPAseGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httpasebotclass_test.go b/radar/httpasebotclass_test.go index 85bbd64c8b7..62b49d18b2f 100644 --- a/radar/httpasebotclass_test.go +++ b/radar/httpasebotclass_test.go @@ -16,7 +16,6 @@ import ( ) func TestHTTPAseBotClassGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httpasedevicetype_test.go b/radar/httpasedevicetype_test.go index eb53f13da7e..63dda3d970b 100644 --- a/radar/httpasedevicetype_test.go +++ b/radar/httpasedevicetype_test.go @@ -16,7 +16,6 @@ import ( ) func TestHTTPAseDeviceTypeGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httpasehttpmethod_test.go b/radar/httpasehttpmethod_test.go index db5329cd658..8ae152bd2bf 100644 --- a/radar/httpasehttpmethod_test.go +++ b/radar/httpasehttpmethod_test.go @@ -16,7 +16,6 @@ import ( ) func TestHTTPAseHTTPMethodGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httpasehttpprotocol_test.go b/radar/httpasehttpprotocol_test.go index 6bd5d992c5f..8e6b627defb 100644 --- a/radar/httpasehttpprotocol_test.go +++ b/radar/httpasehttpprotocol_test.go @@ -16,7 +16,6 @@ import ( ) func TestHTTPAseHTTPProtocolGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httpaseipversion_test.go b/radar/httpaseipversion_test.go index 271260c9196..692d0276957 100644 --- a/radar/httpaseipversion_test.go +++ b/radar/httpaseipversion_test.go @@ -16,7 +16,6 @@ import ( ) func TestHTTPAseIPVersionGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httpaseos_test.go b/radar/httpaseos_test.go index e560fa37bf6..4f8614b9094 100644 --- a/radar/httpaseos_test.go +++ b/radar/httpaseos_test.go @@ -16,7 +16,6 @@ import ( ) func TestHTTPAseOSGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httpasetlsversion_test.go b/radar/httpasetlsversion_test.go index 1386874dd50..372d6b02ec4 100644 --- a/radar/httpasetlsversion_test.go +++ b/radar/httpasetlsversion_test.go @@ -16,7 +16,6 @@ import ( ) func TestHTTPAseTLSVersionGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httplocation_test.go b/radar/httplocation_test.go index 8741eccd851..65907120030 100644 --- a/radar/httplocation_test.go +++ b/radar/httplocation_test.go @@ -16,7 +16,6 @@ import ( ) func TestHTTPLocationGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httplocationbotclass_test.go b/radar/httplocationbotclass_test.go index a2c97477ea8..5c5c1c058d4 100644 --- a/radar/httplocationbotclass_test.go +++ b/radar/httplocationbotclass_test.go @@ -16,7 +16,6 @@ import ( ) func TestHTTPLocationBotClassGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httplocationdevicetype_test.go b/radar/httplocationdevicetype_test.go index 995c9eba4b2..1824cf65fdf 100644 --- a/radar/httplocationdevicetype_test.go +++ b/radar/httplocationdevicetype_test.go @@ -16,7 +16,6 @@ import ( ) func TestHTTPLocationDeviceTypeGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httplocationhttpmethod_test.go b/radar/httplocationhttpmethod_test.go index d285cbd49ca..4ecff553ede 100644 --- a/radar/httplocationhttpmethod_test.go +++ b/radar/httplocationhttpmethod_test.go @@ -16,7 +16,6 @@ import ( ) func TestHTTPLocationHTTPMethodGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httplocationhttpprotocol_test.go b/radar/httplocationhttpprotocol_test.go index cbbbc683cee..b8a210df83e 100644 --- a/radar/httplocationhttpprotocol_test.go +++ b/radar/httplocationhttpprotocol_test.go @@ -16,7 +16,6 @@ import ( ) func TestHTTPLocationHTTPProtocolGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httplocationipversion_test.go b/radar/httplocationipversion_test.go index 580d5b65bc8..ba3048348a9 100644 --- a/radar/httplocationipversion_test.go +++ b/radar/httplocationipversion_test.go @@ -16,7 +16,6 @@ import ( ) func TestHTTPLocationIPVersionGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httplocationos_test.go b/radar/httplocationos_test.go index 090abe760f8..a335f2504f9 100644 --- a/radar/httplocationos_test.go +++ b/radar/httplocationos_test.go @@ -16,7 +16,6 @@ import ( ) func TestHTTPLocationOSGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httplocationtlsversion_test.go b/radar/httplocationtlsversion_test.go index 5e2cc04a630..46e9d5595d2 100644 --- a/radar/httplocationtlsversion_test.go +++ b/radar/httplocationtlsversion_test.go @@ -16,7 +16,6 @@ import ( ) func TestHTTPLocationTLSVersionGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httpsummary_test.go b/radar/httpsummary_test.go index f22e1178fdf..3faad2768d9 100644 --- a/radar/httpsummary_test.go +++ b/radar/httpsummary_test.go @@ -16,7 +16,6 @@ import ( ) func TestHTTPSummaryBotClassWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -55,7 +54,6 @@ func TestHTTPSummaryBotClassWithOptionalParams(t *testing.T) { } func TestHTTPSummaryDeviceTypeWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -94,7 +92,6 @@ func TestHTTPSummaryDeviceTypeWithOptionalParams(t *testing.T) { } func TestHTTPSummaryHTTPProtocolWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -133,7 +130,6 @@ func TestHTTPSummaryHTTPProtocolWithOptionalParams(t *testing.T) { } func TestHTTPSummaryHTTPVersionWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -172,7 +168,6 @@ func TestHTTPSummaryHTTPVersionWithOptionalParams(t *testing.T) { } func TestHTTPSummaryIPVersionWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -211,7 +206,6 @@ func TestHTTPSummaryIPVersionWithOptionalParams(t *testing.T) { } func TestHTTPSummaryOSWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -250,7 +244,6 @@ func TestHTTPSummaryOSWithOptionalParams(t *testing.T) { } func TestHTTPSummaryTLSVersionWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httptimeseriesgroup_test.go b/radar/httptimeseriesgroup_test.go index f2e9dcbb90e..f7fd68ef1b7 100644 --- a/radar/httptimeseriesgroup_test.go +++ b/radar/httptimeseriesgroup_test.go @@ -16,7 +16,6 @@ import ( ) func TestHTTPTimeseriesGroupBotClassWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -56,7 +55,6 @@ func TestHTTPTimeseriesGroupBotClassWithOptionalParams(t *testing.T) { } func TestHTTPTimeseriesGroupBrowserWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -98,7 +96,6 @@ func TestHTTPTimeseriesGroupBrowserWithOptionalParams(t *testing.T) { } func TestHTTPTimeseriesGroupBrowserFamilyWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -139,7 +136,6 @@ func TestHTTPTimeseriesGroupBrowserFamilyWithOptionalParams(t *testing.T) { } func TestHTTPTimeseriesGroupDeviceTypeWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -179,7 +175,6 @@ func TestHTTPTimeseriesGroupDeviceTypeWithOptionalParams(t *testing.T) { } func TestHTTPTimeseriesGroupHTTPProtocolWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -219,7 +214,6 @@ func TestHTTPTimeseriesGroupHTTPProtocolWithOptionalParams(t *testing.T) { } func TestHTTPTimeseriesGroupHTTPVersionWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -259,7 +253,6 @@ func TestHTTPTimeseriesGroupHTTPVersionWithOptionalParams(t *testing.T) { } func TestHTTPTimeseriesGroupIPVersionWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -299,7 +292,6 @@ func TestHTTPTimeseriesGroupIPVersionWithOptionalParams(t *testing.T) { } func TestHTTPTimeseriesGroupOSWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -339,7 +331,6 @@ func TestHTTPTimeseriesGroupOSWithOptionalParams(t *testing.T) { } func TestHTTPTimeseriesGroupTLSVersionWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httptop_test.go b/radar/httptop_test.go index 083ad639862..a34eddfb219 100644 --- a/radar/httptop_test.go +++ b/radar/httptop_test.go @@ -16,7 +16,6 @@ import ( ) func TestHTTPTopBrowserFamiliesWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -57,7 +56,6 @@ func TestHTTPTopBrowserFamiliesWithOptionalParams(t *testing.T) { } func TestHTTPTopBrowsersWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/netflow_test.go b/radar/netflow_test.go index 0a7dc12d7ca..aa0d2896e3a 100644 --- a/radar/netflow_test.go +++ b/radar/netflow_test.go @@ -16,7 +16,6 @@ import ( ) func TestNetflowTimeseriesWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/netflowtop_test.go b/radar/netflowtop_test.go index 14d65c915c7..d64037cfb5f 100644 --- a/radar/netflowtop_test.go +++ b/radar/netflowtop_test.go @@ -16,7 +16,6 @@ import ( ) func TestNetflowTopAsesWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -50,7 +49,6 @@ func TestNetflowTopAsesWithOptionalParams(t *testing.T) { } func TestNetflowTopLocationsWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/qualityiqi_test.go b/radar/qualityiqi_test.go index e290873c35a..2eff53238f5 100644 --- a/radar/qualityiqi_test.go +++ b/radar/qualityiqi_test.go @@ -16,7 +16,6 @@ import ( ) func TestQualityIQISummaryWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -50,7 +49,6 @@ func TestQualityIQISummaryWithOptionalParams(t *testing.T) { } func TestQualityIQITimeseriesGroupsWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/qualityspeed_test.go b/radar/qualityspeed_test.go index efd12d5b350..277ec65f99c 100644 --- a/radar/qualityspeed_test.go +++ b/radar/qualityspeed_test.go @@ -16,7 +16,6 @@ import ( ) func TestQualitySpeedHistogramWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,7 +48,6 @@ func TestQualitySpeedHistogramWithOptionalParams(t *testing.T) { } func TestQualitySpeedSummaryWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/qualityspeedtop_test.go b/radar/qualityspeedtop_test.go index bc9c2df2aac..4649c1d6e08 100644 --- a/radar/qualityspeedtop_test.go +++ b/radar/qualityspeedtop_test.go @@ -16,7 +16,6 @@ import ( ) func TestQualitySpeedTopAsesWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -50,7 +49,6 @@ func TestQualitySpeedTopAsesWithOptionalParams(t *testing.T) { } func TestQualitySpeedTopLocationsWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/ranking_test.go b/radar/ranking_test.go index 59310bcbc2b..16b1a0eafca 100644 --- a/radar/ranking_test.go +++ b/radar/ranking_test.go @@ -16,7 +16,6 @@ import ( ) func TestRankingTimeseriesGroupsWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -50,7 +49,6 @@ func TestRankingTimeseriesGroupsWithOptionalParams(t *testing.T) { } func TestRankingTopWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/rankingdomain_test.go b/radar/rankingdomain_test.go index 9b9c614428e..3127a1daa4f 100644 --- a/radar/rankingdomain_test.go +++ b/radar/rankingdomain_test.go @@ -15,7 +15,6 @@ import ( ) func TestRankingDomainGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/search_test.go b/radar/search_test.go index e6207ebc61e..0e558c9d8b9 100644 --- a/radar/search_test.go +++ b/radar/search_test.go @@ -15,7 +15,6 @@ import ( ) func TestSearchGlobalWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/trafficanomaly_test.go b/radar/trafficanomaly_test.go index a253eab6642..564e52a4333 100644 --- a/radar/trafficanomaly_test.go +++ b/radar/trafficanomaly_test.go @@ -16,7 +16,6 @@ import ( ) func TestTrafficAnomalyGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/trafficanomalylocation_test.go b/radar/trafficanomalylocation_test.go index a9da4e69f17..22996497a25 100644 --- a/radar/trafficanomalylocation_test.go +++ b/radar/trafficanomalylocation_test.go @@ -16,7 +16,6 @@ import ( ) func TestTrafficAnomalyLocationGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/verifiedbottop_test.go b/radar/verifiedbottop_test.go index 6b488e10e87..500107d64a7 100644 --- a/radar/verifiedbottop_test.go +++ b/radar/verifiedbottop_test.go @@ -16,7 +16,6 @@ import ( ) func TestVerifiedBotTopBotsWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -50,7 +49,6 @@ func TestVerifiedBotTopBotsWithOptionalParams(t *testing.T) { } func TestVerifiedBotTopCategoriesWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rate_limits/ratelimit_test.go b/rate_limits/ratelimit_test.go index 596ab863a01..22a53da552b 100644 --- a/rate_limits/ratelimit_test.go +++ b/rate_limits/ratelimit_test.go @@ -15,7 +15,6 @@ import ( ) func TestRateLimitNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestRateLimitNew(t *testing.T) { } func TestRateLimitListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -76,7 +74,6 @@ func TestRateLimitListWithOptionalParams(t *testing.T) { } func TestRateLimitDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -107,7 +104,6 @@ func TestRateLimitDelete(t *testing.T) { } func TestRateLimitEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -138,7 +134,6 @@ func TestRateLimitEdit(t *testing.T) { } func TestRateLimitGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rate_plans/rateplan_test.go b/rate_plans/rateplan_test.go index fb0e730d465..4dc67ab96b5 100644 --- a/rate_plans/rateplan_test.go +++ b/rate_plans/rateplan_test.go @@ -14,7 +14,6 @@ import ( ) func TestRatePlanGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/registrar/domain_test.go b/registrar/domain_test.go index b1576ded046..538249c6729 100644 --- a/registrar/domain_test.go +++ b/registrar/domain_test.go @@ -15,7 +15,6 @@ import ( ) func TestDomainUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -48,7 +47,6 @@ func TestDomainUpdateWithOptionalParams(t *testing.T) { } func TestDomainList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -74,7 +72,6 @@ func TestDomainList(t *testing.T) { } func TestDomainGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/request_tracers/trace_test.go b/request_tracers/trace_test.go index 26fccf31813..d982759fb6e 100644 --- a/request_tracers/trace_test.go +++ b/request_tracers/trace_test.go @@ -15,7 +15,6 @@ import ( ) func TestTraceNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rules/list_test.go b/rules/list_test.go index 9273ae14fba..c3c440f8a46 100644 --- a/rules/list_test.go +++ b/rules/list_test.go @@ -15,7 +15,6 @@ import ( ) func TestListNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,7 +43,6 @@ func TestListNewWithOptionalParams(t *testing.T) { } func TestListUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -75,7 +73,6 @@ func TestListUpdateWithOptionalParams(t *testing.T) { } func TestListList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -101,7 +98,6 @@ func TestListList(t *testing.T) { } func TestListDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -132,7 +128,6 @@ func TestListDelete(t *testing.T) { } func TestListGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rules/listbulkoperation_test.go b/rules/listbulkoperation_test.go index 2eb7c8be3c1..1fce56f617e 100644 --- a/rules/listbulkoperation_test.go +++ b/rules/listbulkoperation_test.go @@ -14,7 +14,6 @@ import ( ) func TestListBulkOperationGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rules/listitem_test.go b/rules/listitem_test.go index f7e0ccdb4d4..f9ab4a28f12 100644 --- a/rules/listitem_test.go +++ b/rules/listitem_test.go @@ -15,7 +15,6 @@ import ( ) func TestListItemNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -94,7 +93,6 @@ func TestListItemNew(t *testing.T) { } func TestListItemUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -173,7 +171,6 @@ func TestListItemUpdate(t *testing.T) { } func TestListItemListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -206,7 +203,6 @@ func TestListItemListWithOptionalParams(t *testing.T) { } func TestListItemDeleteWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -239,7 +235,6 @@ func TestListItemDeleteWithOptionalParams(t *testing.T) { } func TestListItemGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rulesets/phase_test.go b/rulesets/phase_test.go index 8a722986c54..077c5c6c3f1 100644 --- a/rulesets/phase_test.go +++ b/rulesets/phase_test.go @@ -15,7 +15,6 @@ import ( ) func TestPhaseUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -102,7 +101,6 @@ func TestPhaseUpdateWithOptionalParams(t *testing.T) { } func TestPhaseGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rulesets/phaseversion_test.go b/rulesets/phaseversion_test.go index 256ef12bfd7..9ba9f0ca022 100644 --- a/rulesets/phaseversion_test.go +++ b/rulesets/phaseversion_test.go @@ -15,7 +15,6 @@ import ( ) func TestPhaseVersionListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,7 +45,6 @@ func TestPhaseVersionListWithOptionalParams(t *testing.T) { } func TestPhaseVersionGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rulesets/rule_test.go b/rulesets/rule_test.go index d50048511c2..6dbb10a4c75 100644 --- a/rulesets/rule_test.go +++ b/rulesets/rule_test.go @@ -15,7 +15,6 @@ import ( ) func TestRuleNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,7 +48,6 @@ func TestRuleNewWithOptionalParams(t *testing.T) { } func TestRuleDeleteWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -81,7 +79,6 @@ func TestRuleDeleteWithOptionalParams(t *testing.T) { } func TestRuleEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rulesets/ruleset_test.go b/rulesets/ruleset_test.go index 56bc36baf44..906df7d0cba 100644 --- a/rulesets/ruleset_test.go +++ b/rulesets/ruleset_test.go @@ -15,7 +15,6 @@ import ( ) func TestRulesetNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -98,7 +97,6 @@ func TestRulesetNewWithOptionalParams(t *testing.T) { } func TestRulesetUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -185,7 +183,6 @@ func TestRulesetUpdateWithOptionalParams(t *testing.T) { } func TestRulesetListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -212,7 +209,6 @@ func TestRulesetListWithOptionalParams(t *testing.T) { } func TestRulesetDeleteWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -243,7 +239,6 @@ func TestRulesetDeleteWithOptionalParams(t *testing.T) { } func TestRulesetGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rulesets/version_test.go b/rulesets/version_test.go index d8104913890..2d2a352588f 100644 --- a/rulesets/version_test.go +++ b/rulesets/version_test.go @@ -15,7 +15,6 @@ import ( ) func TestVersionListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,7 +45,6 @@ func TestVersionListWithOptionalParams(t *testing.T) { } func TestVersionDeleteWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -78,7 +76,6 @@ func TestVersionDeleteWithOptionalParams(t *testing.T) { } func TestVersionGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rulesets/versionbytag_test.go b/rulesets/versionbytag_test.go index 6b3ef6aa726..29a8a6ee7be 100644 --- a/rulesets/versionbytag_test.go +++ b/rulesets/versionbytag_test.go @@ -15,7 +15,6 @@ import ( ) func TestVersionByTagGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rum/rule_test.go b/rum/rule_test.go index 7c0d7e27457..eefb48565f1 100644 --- a/rum/rule_test.go +++ b/rum/rule_test.go @@ -15,7 +15,6 @@ import ( ) func TestRuleNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,7 +48,6 @@ func TestRuleNewWithOptionalParams(t *testing.T) { } func TestRuleUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -84,7 +82,6 @@ func TestRuleUpdateWithOptionalParams(t *testing.T) { } func TestRuleList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -114,7 +111,6 @@ func TestRuleList(t *testing.T) { } func TestRuleDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rum/siteinfo_test.go b/rum/siteinfo_test.go index 08f01cc11bd..fe85401bffd 100644 --- a/rum/siteinfo_test.go +++ b/rum/siteinfo_test.go @@ -15,7 +15,6 @@ import ( ) func TestSiteInfoNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,7 +43,6 @@ func TestSiteInfoNewWithOptionalParams(t *testing.T) { } func TestSiteInfoUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -77,7 +75,6 @@ func TestSiteInfoUpdateWithOptionalParams(t *testing.T) { } func TestSiteInfoListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -106,7 +103,6 @@ func TestSiteInfoListWithOptionalParams(t *testing.T) { } func TestSiteInfoDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -136,7 +132,6 @@ func TestSiteInfoDelete(t *testing.T) { } func TestSiteInfoGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/secondary_dns/acl_test.go b/secondary_dns/acl_test.go index c63989f7f30..d24f5693dfd 100644 --- a/secondary_dns/acl_test.go +++ b/secondary_dns/acl_test.go @@ -15,7 +15,6 @@ import ( ) func TestACLNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestACLNew(t *testing.T) { } func TestACLUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -76,7 +74,6 @@ func TestACLUpdate(t *testing.T) { } func TestACLList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -102,7 +99,6 @@ func TestACLList(t *testing.T) { } func TestACLDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -133,7 +129,6 @@ func TestACLDelete(t *testing.T) { } func TestACLGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/secondary_dns/forceaxfr_test.go b/secondary_dns/forceaxfr_test.go index ca75a7e43bc..1321d44aebe 100644 --- a/secondary_dns/forceaxfr_test.go +++ b/secondary_dns/forceaxfr_test.go @@ -15,7 +15,6 @@ import ( ) func TestForceAXFRNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/secondary_dns/incoming_test.go b/secondary_dns/incoming_test.go index 14759a57c91..8342d2e22ce 100644 --- a/secondary_dns/incoming_test.go +++ b/secondary_dns/incoming_test.go @@ -15,7 +15,6 @@ import ( ) func TestIncomingNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,7 +43,6 @@ func TestIncomingNew(t *testing.T) { } func TestIncomingUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -73,7 +71,6 @@ func TestIncomingUpdate(t *testing.T) { } func TestIncomingDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -100,7 +97,6 @@ func TestIncomingDelete(t *testing.T) { } func TestIncomingGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/secondary_dns/outgoing_test.go b/secondary_dns/outgoing_test.go index b8354c90450..8b7bc9ecb1a 100644 --- a/secondary_dns/outgoing_test.go +++ b/secondary_dns/outgoing_test.go @@ -15,7 +15,6 @@ import ( ) func TestOutgoingNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,7 +42,6 @@ func TestOutgoingNew(t *testing.T) { } func TestOutgoingUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -71,7 +69,6 @@ func TestOutgoingUpdate(t *testing.T) { } func TestOutgoingDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -98,7 +95,6 @@ func TestOutgoingDelete(t *testing.T) { } func TestOutgoingDisable(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -125,7 +121,6 @@ func TestOutgoingDisable(t *testing.T) { } func TestOutgoingEnable(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -152,7 +147,6 @@ func TestOutgoingEnable(t *testing.T) { } func TestOutgoingForceNotify(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -179,7 +173,6 @@ func TestOutgoingForceNotify(t *testing.T) { } func TestOutgoingGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/secondary_dns/outgoingstatus_test.go b/secondary_dns/outgoingstatus_test.go index 006c0576ee6..88359633d7c 100644 --- a/secondary_dns/outgoingstatus_test.go +++ b/secondary_dns/outgoingstatus_test.go @@ -15,7 +15,6 @@ import ( ) func TestOutgoingStatusGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/secondary_dns/peer_test.go b/secondary_dns/peer_test.go index 0142a0d7aef..d4349804f58 100644 --- a/secondary_dns/peer_test.go +++ b/secondary_dns/peer_test.go @@ -15,7 +15,6 @@ import ( ) func TestPeerNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestPeerNew(t *testing.T) { } func TestPeerUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -79,7 +77,6 @@ func TestPeerUpdateWithOptionalParams(t *testing.T) { } func TestPeerList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -105,7 +102,6 @@ func TestPeerList(t *testing.T) { } func TestPeerDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -136,7 +132,6 @@ func TestPeerDelete(t *testing.T) { } func TestPeerGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/secondary_dns/tsig_test.go b/secondary_dns/tsig_test.go index a3777afb610..10f1ad7d39c 100644 --- a/secondary_dns/tsig_test.go +++ b/secondary_dns/tsig_test.go @@ -15,7 +15,6 @@ import ( ) func TestTSIGNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,7 +45,6 @@ func TestTSIGNew(t *testing.T) { } func TestTSIGUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -81,7 +79,6 @@ func TestTSIGUpdate(t *testing.T) { } func TestTSIGList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -107,7 +104,6 @@ func TestTSIGList(t *testing.T) { } func TestTSIGDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -138,7 +134,6 @@ func TestTSIGDelete(t *testing.T) { } func TestTSIGGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/snippets/content_test.go b/snippets/content_test.go index b62bfc933b7..bb680a0e53f 100644 --- a/snippets/content_test.go +++ b/snippets/content_test.go @@ -16,7 +16,6 @@ import ( ) func TestContentGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(200) w.Write([]byte("abc")) diff --git a/snippets/rule_test.go b/snippets/rule_test.go index 297ff781718..1614f38e0f0 100644 --- a/snippets/rule_test.go +++ b/snippets/rule_test.go @@ -15,7 +15,6 @@ import ( ) func TestRuleUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -60,7 +59,6 @@ func TestRuleUpdateWithOptionalParams(t *testing.T) { } func TestRuleList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/snippets/snippet_test.go b/snippets/snippet_test.go index a549e952c05..34d64acedac 100644 --- a/snippets/snippet_test.go +++ b/snippets/snippet_test.go @@ -15,7 +15,6 @@ import ( ) func TestSnippetUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,7 +48,6 @@ func TestSnippetUpdateWithOptionalParams(t *testing.T) { } func TestSnippetList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -73,7 +71,6 @@ func TestSnippetList(t *testing.T) { } func TestSnippetDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -101,7 +98,6 @@ func TestSnippetDelete(t *testing.T) { } func TestSnippetGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/spectrum/analyticsaggregatecurrent_test.go b/spectrum/analyticsaggregatecurrent_test.go index 4fa0010f455..eee8693ddcf 100644 --- a/spectrum/analyticsaggregatecurrent_test.go +++ b/spectrum/analyticsaggregatecurrent_test.go @@ -15,7 +15,6 @@ import ( ) func TestAnalyticsAggregateCurrentGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/spectrum/analyticseventbytime_test.go b/spectrum/analyticseventbytime_test.go index e6071b1d045..554424a723d 100644 --- a/spectrum/analyticseventbytime_test.go +++ b/spectrum/analyticseventbytime_test.go @@ -16,7 +16,6 @@ import ( ) func TestAnalyticsEventBytimeGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/spectrum/analyticseventsummary_test.go b/spectrum/analyticseventsummary_test.go index 9cdd3838c86..4fe9a0a956e 100644 --- a/spectrum/analyticseventsummary_test.go +++ b/spectrum/analyticseventsummary_test.go @@ -16,7 +16,6 @@ import ( ) func TestAnalyticsEventSummaryGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/spectrum/app_test.go b/spectrum/app_test.go index ed334b07c38..dce6fc043f2 100644 --- a/spectrum/app_test.go +++ b/spectrum/app_test.go @@ -16,7 +16,6 @@ import ( ) func TestAppNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -65,7 +64,6 @@ func TestAppNewWithOptionalParams(t *testing.T) { } func TestAppUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -115,7 +113,6 @@ func TestAppUpdateWithOptionalParams(t *testing.T) { } func TestAppListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -148,7 +145,6 @@ func TestAppListWithOptionalParams(t *testing.T) { } func TestAppDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -179,7 +175,6 @@ func TestAppDelete(t *testing.T) { } func TestAppGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/speed/availability_test.go b/speed/availability_test.go index c64095714e7..bf55df75073 100644 --- a/speed/availability_test.go +++ b/speed/availability_test.go @@ -15,7 +15,6 @@ import ( ) func TestAvailabilityList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/speed/page_test.go b/speed/page_test.go index a3fe62157b0..9a91a8ff916 100644 --- a/speed/page_test.go +++ b/speed/page_test.go @@ -15,7 +15,6 @@ import ( ) func TestPageList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/speed/schedule_test.go b/speed/schedule_test.go index 21684911025..63ad41de94e 100644 --- a/speed/schedule_test.go +++ b/speed/schedule_test.go @@ -15,7 +15,6 @@ import ( ) func TestScheduleNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/speed/speed_test.go b/speed/speed_test.go index 4aed55eef8a..75563765590 100644 --- a/speed/speed_test.go +++ b/speed/speed_test.go @@ -16,7 +16,6 @@ import ( ) func TestSpeedDeleteWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -47,7 +46,6 @@ func TestSpeedDeleteWithOptionalParams(t *testing.T) { } func TestSpeedScheduleGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -78,7 +76,6 @@ func TestSpeedScheduleGetWithOptionalParams(t *testing.T) { } func TestSpeedTrendsListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/speed/test_test.go b/speed/test_test.go index 417968e3fae..0518443bbdf 100644 --- a/speed/test_test.go +++ b/speed/test_test.go @@ -15,7 +15,6 @@ import ( ) func TestTestNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,7 +45,6 @@ func TestTestNewWithOptionalParams(t *testing.T) { } func TestTestListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -79,7 +77,6 @@ func TestTestListWithOptionalParams(t *testing.T) { } func TestTestDeleteWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -110,7 +107,6 @@ func TestTestDeleteWithOptionalParams(t *testing.T) { } func TestTestGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/ssl/analyze_test.go b/ssl/analyze_test.go index 85029b4549b..a2a9cc5f4de 100644 --- a/ssl/analyze_test.go +++ b/ssl/analyze_test.go @@ -16,7 +16,6 @@ import ( ) func TestAnalyzeNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/ssl/certificatepack_test.go b/ssl/certificatepack_test.go index b4b22045431..bb490fc511f 100644 --- a/ssl/certificatepack_test.go +++ b/ssl/certificatepack_test.go @@ -15,7 +15,6 @@ import ( ) func TestCertificatePackListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestCertificatePackListWithOptionalParams(t *testing.T) { } func TestCertificatePackDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -73,7 +71,6 @@ func TestCertificatePackDelete(t *testing.T) { } func TestCertificatePackEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -104,7 +101,6 @@ func TestCertificatePackEdit(t *testing.T) { } func TestCertificatePackGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/ssl/certificatepackorder_test.go b/ssl/certificatepackorder_test.go index 65ac40c08d3..99721abd8c1 100644 --- a/ssl/certificatepackorder_test.go +++ b/ssl/certificatepackorder_test.go @@ -15,7 +15,6 @@ import ( ) func TestCertificatePackOrderNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/ssl/certificatepackquota_test.go b/ssl/certificatepackquota_test.go index 194fe681b44..85b513c562c 100644 --- a/ssl/certificatepackquota_test.go +++ b/ssl/certificatepackquota_test.go @@ -15,7 +15,6 @@ import ( ) func TestCertificatePackQuotaGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/ssl/recommendation_test.go b/ssl/recommendation_test.go index 24872615c9c..9b15183cae9 100644 --- a/ssl/recommendation_test.go +++ b/ssl/recommendation_test.go @@ -14,7 +14,6 @@ import ( ) func TestRecommendationGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/ssl/universalsetting_test.go b/ssl/universalsetting_test.go index 75145922e9d..16fd5ba2454 100644 --- a/ssl/universalsetting_test.go +++ b/ssl/universalsetting_test.go @@ -15,7 +15,6 @@ import ( ) func TestUniversalSettingEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,7 +43,6 @@ func TestUniversalSettingEditWithOptionalParams(t *testing.T) { } func TestUniversalSettingGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/ssl/verification_test.go b/ssl/verification_test.go index 584a415c91d..a53c9a7a6b3 100644 --- a/ssl/verification_test.go +++ b/ssl/verification_test.go @@ -15,7 +15,6 @@ import ( ) func TestVerificationEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,7 +45,6 @@ func TestVerificationEdit(t *testing.T) { } func TestVerificationGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/storage/analytics_test.go b/storage/analytics_test.go index f08803a1be2..1d8b1bf1a29 100644 --- a/storage/analytics_test.go +++ b/storage/analytics_test.go @@ -16,7 +16,6 @@ import ( ) func TestAnalyticsListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -51,7 +50,6 @@ func TestAnalyticsListWithOptionalParams(t *testing.T) { } func TestAnalyticsStoredWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/audiotrack_test.go b/stream/audiotrack_test.go index 36eaad6f237..a1d9d1aee24 100644 --- a/stream/audiotrack_test.go +++ b/stream/audiotrack_test.go @@ -15,7 +15,6 @@ import ( ) func TestAudioTrackDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,7 +45,6 @@ func TestAudioTrackDelete(t *testing.T) { } func TestAudioTrackCopyWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -78,7 +76,6 @@ func TestAudioTrackCopyWithOptionalParams(t *testing.T) { } func TestAudioTrackEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -111,7 +108,6 @@ func TestAudioTrackEditWithOptionalParams(t *testing.T) { } func TestAudioTrackGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/caption_test.go b/stream/caption_test.go index e5d30189325..be4c348c9ed 100644 --- a/stream/caption_test.go +++ b/stream/caption_test.go @@ -15,7 +15,6 @@ import ( ) func TestCaptionGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/captionlanguage_test.go b/stream/captionlanguage_test.go index 6ee9346253e..2be695ca901 100644 --- a/stream/captionlanguage_test.go +++ b/stream/captionlanguage_test.go @@ -15,7 +15,6 @@ import ( ) func TestCaptionLanguageUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -47,7 +46,6 @@ func TestCaptionLanguageUpdate(t *testing.T) { } func TestCaptionLanguageDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -79,7 +77,6 @@ func TestCaptionLanguageDelete(t *testing.T) { } func TestCaptionLanguageGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/captionlanguagevtt_test.go b/stream/captionlanguagevtt_test.go index 0f097a57544..e4c13001dce 100644 --- a/stream/captionlanguagevtt_test.go +++ b/stream/captionlanguagevtt_test.go @@ -15,7 +15,6 @@ import ( ) func TestCaptionLanguageVttGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/clip_test.go b/stream/clip_test.go index 496ca22b274..7ef21ccba40 100644 --- a/stream/clip_test.go +++ b/stream/clip_test.go @@ -15,7 +15,6 @@ import ( ) func TestClipNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/copy_test.go b/stream/copy_test.go index f2a3a2718c4..309b3e909e1 100644 --- a/stream/copy_test.go +++ b/stream/copy_test.go @@ -16,7 +16,6 @@ import ( ) func TestCopyNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/directupload_test.go b/stream/directupload_test.go index 3fc1770ce75..4082e2d74fc 100644 --- a/stream/directupload_test.go +++ b/stream/directupload_test.go @@ -16,7 +16,6 @@ import ( ) func TestDirectUploadNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/download_test.go b/stream/download_test.go index 692636defb4..fa2660ef411 100644 --- a/stream/download_test.go +++ b/stream/download_test.go @@ -15,7 +15,6 @@ import ( ) func TestDownloadNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,7 +45,6 @@ func TestDownloadNew(t *testing.T) { } func TestDownloadDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -76,7 +74,6 @@ func TestDownloadDelete(t *testing.T) { } func TestDownloadGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/embed_test.go b/stream/embed_test.go index f27f672c2fd..2fc8ef79f8b 100644 --- a/stream/embed_test.go +++ b/stream/embed_test.go @@ -15,7 +15,6 @@ import ( ) func TestEmbedGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/key_test.go b/stream/key_test.go index b644d70ddf7..6b9d3f95ce5 100644 --- a/stream/key_test.go +++ b/stream/key_test.go @@ -15,7 +15,6 @@ import ( ) func TestKeyNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestKeyNew(t *testing.T) { } func TestKeyDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -73,7 +71,6 @@ func TestKeyDelete(t *testing.T) { } func TestKeyGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/liveinput_test.go b/stream/liveinput_test.go index 60c0c11215a..2027648a1cf 100644 --- a/stream/liveinput_test.go +++ b/stream/liveinput_test.go @@ -15,7 +15,6 @@ import ( ) func TestLiveInputNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -52,7 +51,6 @@ func TestLiveInputNewWithOptionalParams(t *testing.T) { } func TestLiveInputUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -93,7 +91,6 @@ func TestLiveInputUpdateWithOptionalParams(t *testing.T) { } func TestLiveInputListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -120,7 +117,6 @@ func TestLiveInputListWithOptionalParams(t *testing.T) { } func TestLiveInputDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -151,7 +147,6 @@ func TestLiveInputDelete(t *testing.T) { } func TestLiveInputGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/liveinputoutput_test.go b/stream/liveinputoutput_test.go index 91f851fb5ee..ac3544624fe 100644 --- a/stream/liveinputoutput_test.go +++ b/stream/liveinputoutput_test.go @@ -15,7 +15,6 @@ import ( ) func TestLiveInputOutputNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -48,7 +47,6 @@ func TestLiveInputOutputNewWithOptionalParams(t *testing.T) { } func TestLiveInputOutputUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -80,7 +78,6 @@ func TestLiveInputOutputUpdate(t *testing.T) { } func TestLiveInputOutputList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -110,7 +107,6 @@ func TestLiveInputOutputList(t *testing.T) { } func TestLiveInputOutputDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/stream_test.go b/stream/stream_test.go index 5cffd011340..0d9d9186229 100644 --- a/stream/stream_test.go +++ b/stream/stream_test.go @@ -16,7 +16,6 @@ import ( ) func TestStreamNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -47,7 +46,6 @@ func TestStreamNewWithOptionalParams(t *testing.T) { } func TestStreamListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -81,7 +79,6 @@ func TestStreamListWithOptionalParams(t *testing.T) { } func TestStreamDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -112,7 +109,6 @@ func TestStreamDelete(t *testing.T) { } func TestStreamGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/token_test.go b/stream/token_test.go index cf721675f5b..a8920078985 100644 --- a/stream/token_test.go +++ b/stream/token_test.go @@ -15,7 +15,6 @@ import ( ) func TestTokenNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/video_test.go b/stream/video_test.go index f96088bb0d3..a2826e95af7 100644 --- a/stream/video_test.go +++ b/stream/video_test.go @@ -15,7 +15,6 @@ import ( ) func TestVideoStorageUsageWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/watermark_test.go b/stream/watermark_test.go index 325aa80c310..5b9b5e3fa0c 100644 --- a/stream/watermark_test.go +++ b/stream/watermark_test.go @@ -15,7 +15,6 @@ import ( ) func TestWatermarkNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -47,7 +46,6 @@ func TestWatermarkNewWithOptionalParams(t *testing.T) { } func TestWatermarkList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -73,7 +71,6 @@ func TestWatermarkList(t *testing.T) { } func TestWatermarkDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -104,7 +101,6 @@ func TestWatermarkDelete(t *testing.T) { } func TestWatermarkGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/webhook_test.go b/stream/webhook_test.go index 2f7d92d5bd1..67b83569f07 100644 --- a/stream/webhook_test.go +++ b/stream/webhook_test.go @@ -15,7 +15,6 @@ import ( ) func TestWebhookUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestWebhookUpdate(t *testing.T) { } func TestWebhookDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -69,7 +67,6 @@ func TestWebhookDelete(t *testing.T) { } func TestWebhookGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/subscriptions/subscription_test.go b/subscriptions/subscription_test.go index 13885f10cb1..8283a9387e9 100644 --- a/subscriptions/subscription_test.go +++ b/subscriptions/subscription_test.go @@ -16,7 +16,6 @@ import ( ) func TestSubscriptionNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -77,7 +76,6 @@ func TestSubscriptionNewWithOptionalParams(t *testing.T) { } func TestSubscriptionUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -139,7 +137,6 @@ func TestSubscriptionUpdateWithOptionalParams(t *testing.T) { } func TestSubscriptionList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -163,7 +160,6 @@ func TestSubscriptionList(t *testing.T) { } func TestSubscriptionDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -194,7 +190,6 @@ func TestSubscriptionDelete(t *testing.T) { } func TestSubscriptionGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/url_normalization/urlnormalization_test.go b/url_normalization/urlnormalization_test.go index d5d4671fd72..33841b09b2d 100644 --- a/url_normalization/urlnormalization_test.go +++ b/url_normalization/urlnormalization_test.go @@ -15,7 +15,6 @@ import ( ) func TestURLNormalizationUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,7 +42,6 @@ func TestURLNormalizationUpdateWithOptionalParams(t *testing.T) { } func TestURLNormalizationGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/url_scanner/scan_test.go b/url_scanner/scan_test.go index ae419688339..13e9f07c903 100644 --- a/url_scanner/scan_test.go +++ b/url_scanner/scan_test.go @@ -19,7 +19,6 @@ import ( ) func TestScanNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -54,7 +53,6 @@ func TestScanNewWithOptionalParams(t *testing.T) { } func TestScanGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -82,7 +80,6 @@ func TestScanGet(t *testing.T) { } func TestScanHar(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -110,7 +107,6 @@ func TestScanHar(t *testing.T) { } func TestScanScreenshotWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(200) w.Write([]byte("abc")) diff --git a/url_scanner/urlscanner_test.go b/url_scanner/urlscanner_test.go index 189738e72d2..70a76681821 100644 --- a/url_scanner/urlscanner_test.go +++ b/url_scanner/urlscanner_test.go @@ -16,7 +16,6 @@ import ( ) func TestURLScannerScanWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/user/auditlog_test.go b/user/auditlog_test.go index a5029711dc8..ac03c101542 100644 --- a/user/auditlog_test.go +++ b/user/auditlog_test.go @@ -16,7 +16,6 @@ import ( ) func TestAuditLogListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/user/billinghistory_test.go b/user/billinghistory_test.go index bdd4b1dd3fd..94fd9df0099 100644 --- a/user/billinghistory_test.go +++ b/user/billinghistory_test.go @@ -16,7 +16,6 @@ import ( ) func TestBillingHistoryListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/user/billingprofile_test.go b/user/billingprofile_test.go index a7d857c0a46..dc35b2248f0 100644 --- a/user/billingprofile_test.go +++ b/user/billingprofile_test.go @@ -14,7 +14,6 @@ import ( ) func TestBillingProfileGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/user/invite_test.go b/user/invite_test.go index 82feca650a9..608d63d04d5 100644 --- a/user/invite_test.go +++ b/user/invite_test.go @@ -15,7 +15,6 @@ import ( ) func TestInviteList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -39,7 +38,6 @@ func TestInviteList(t *testing.T) { } func TestInviteEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -69,7 +67,6 @@ func TestInviteEdit(t *testing.T) { } func TestInviteGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/user/organization_test.go b/user/organization_test.go index bb3adc45ea2..738c2d9165d 100644 --- a/user/organization_test.go +++ b/user/organization_test.go @@ -15,7 +15,6 @@ import ( ) func TestOrganizationListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -47,7 +46,6 @@ func TestOrganizationListWithOptionalParams(t *testing.T) { } func TestOrganizationDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -77,7 +75,6 @@ func TestOrganizationDelete(t *testing.T) { } func TestOrganizationGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/user/subscription_test.go b/user/subscription_test.go index d4462742dd0..d79b8d26ce2 100644 --- a/user/subscription_test.go +++ b/user/subscription_test.go @@ -15,7 +15,6 @@ import ( ) func TestSubscriptionUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -76,7 +75,6 @@ func TestSubscriptionUpdateWithOptionalParams(t *testing.T) { } func TestSubscriptionDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -106,7 +104,6 @@ func TestSubscriptionDelete(t *testing.T) { } func TestSubscriptionEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -167,7 +164,6 @@ func TestSubscriptionEditWithOptionalParams(t *testing.T) { } func TestSubscriptionGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/user/token_test.go b/user/token_test.go index 39570f78386..ca73a4cfe12 100644 --- a/user/token_test.go +++ b/user/token_test.go @@ -16,7 +16,6 @@ import ( ) func TestTokenNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -72,7 +71,6 @@ func TestTokenNewWithOptionalParams(t *testing.T) { } func TestTokenUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -135,7 +133,6 @@ func TestTokenUpdateWithOptionalParams(t *testing.T) { } func TestTokenListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -163,7 +160,6 @@ func TestTokenListWithOptionalParams(t *testing.T) { } func TestTokenDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -193,7 +189,6 @@ func TestTokenDelete(t *testing.T) { } func TestTokenGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -217,7 +212,6 @@ func TestTokenGet(t *testing.T) { } func TestTokenVerify(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/user/tokenpermissiongroup_test.go b/user/tokenpermissiongroup_test.go index 60b89fe21e7..324dde10dfc 100644 --- a/user/tokenpermissiongroup_test.go +++ b/user/tokenpermissiongroup_test.go @@ -14,7 +14,6 @@ import ( ) func TestTokenPermissionGroupList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/user/tokenvalue_test.go b/user/tokenvalue_test.go index 1aa17c69a0d..cd3e11b6d93 100644 --- a/user/tokenvalue_test.go +++ b/user/tokenvalue_test.go @@ -15,7 +15,6 @@ import ( ) func TestTokenValueUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/user/user_test.go b/user/user_test.go index 007212bcd66..17646f777e1 100644 --- a/user/user_test.go +++ b/user/user_test.go @@ -15,7 +15,6 @@ import ( ) func TestUserEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestUserEditWithOptionalParams(t *testing.T) { } func TestUserGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/vectorize/index_test.go b/vectorize/index_test.go index 8b2b7e37c98..f718b4cc714 100644 --- a/vectorize/index_test.go +++ b/vectorize/index_test.go @@ -15,7 +15,6 @@ import ( ) func TestIndexNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -47,7 +46,6 @@ func TestIndexNewWithOptionalParams(t *testing.T) { } func TestIndexUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -78,7 +76,6 @@ func TestIndexUpdate(t *testing.T) { } func TestIndexList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -104,7 +101,6 @@ func TestIndexList(t *testing.T) { } func TestIndexDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -134,7 +130,6 @@ func TestIndexDelete(t *testing.T) { } func TestIndexDeleteByIDsWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -165,7 +160,6 @@ func TestIndexDeleteByIDsWithOptionalParams(t *testing.T) { } func TestIndexGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -195,7 +189,6 @@ func TestIndexGet(t *testing.T) { } func TestIndexGetByIDsWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -226,7 +219,6 @@ func TestIndexGetByIDsWithOptionalParams(t *testing.T) { } func TestIndexInsert(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -257,7 +249,6 @@ func TestIndexInsert(t *testing.T) { } func TestIndexQueryWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -297,7 +288,6 @@ func TestIndexQueryWithOptionalParams(t *testing.T) { } func TestIndexUpsert(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/waiting_rooms/event_test.go b/waiting_rooms/event_test.go index df298de4efb..ceed7f6b453 100644 --- a/waiting_rooms/event_test.go +++ b/waiting_rooms/event_test.go @@ -15,7 +15,6 @@ import ( ) func TestEventNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -60,7 +59,6 @@ func TestEventNewWithOptionalParams(t *testing.T) { } func TestEventUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -106,7 +104,6 @@ func TestEventUpdateWithOptionalParams(t *testing.T) { } func TestEventListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -138,7 +135,6 @@ func TestEventListWithOptionalParams(t *testing.T) { } func TestEventDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -170,7 +166,6 @@ func TestEventDelete(t *testing.T) { } func TestEventEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -216,7 +211,6 @@ func TestEventEditWithOptionalParams(t *testing.T) { } func TestEventGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/waiting_rooms/eventdetail_test.go b/waiting_rooms/eventdetail_test.go index 47c7788fa2f..80d97938e97 100644 --- a/waiting_rooms/eventdetail_test.go +++ b/waiting_rooms/eventdetail_test.go @@ -15,7 +15,6 @@ import ( ) func TestEventDetailGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/waiting_rooms/page_test.go b/waiting_rooms/page_test.go index abb0703abbf..7fd6c9964fd 100644 --- a/waiting_rooms/page_test.go +++ b/waiting_rooms/page_test.go @@ -15,7 +15,6 @@ import ( ) func TestPagePreview(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/waiting_rooms/rule_test.go b/waiting_rooms/rule_test.go index 5535ce64dfd..40bce53be0a 100644 --- a/waiting_rooms/rule_test.go +++ b/waiting_rooms/rule_test.go @@ -15,7 +15,6 @@ import ( ) func TestRuleNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,7 +48,6 @@ func TestRuleNewWithOptionalParams(t *testing.T) { } func TestRuleUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -95,7 +93,6 @@ func TestRuleUpdate(t *testing.T) { } func TestRuleList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -125,7 +122,6 @@ func TestRuleList(t *testing.T) { } func TestRuleDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -157,7 +153,6 @@ func TestRuleDelete(t *testing.T) { } func TestRuleEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/waiting_rooms/setting_test.go b/waiting_rooms/setting_test.go index 08788935bdb..a22ea935567 100644 --- a/waiting_rooms/setting_test.go +++ b/waiting_rooms/setting_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingUpdateWithOptionalParams(t *testing.T) { } func TestSettingEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -69,7 +67,6 @@ func TestSettingEditWithOptionalParams(t *testing.T) { } func TestSettingGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/waiting_rooms/status_test.go b/waiting_rooms/status_test.go index 5bb98a83189..5afd0499c08 100644 --- a/waiting_rooms/status_test.go +++ b/waiting_rooms/status_test.go @@ -15,7 +15,6 @@ import ( ) func TestStatusGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/waiting_rooms/waitingroom_test.go b/waiting_rooms/waitingroom_test.go index c67d532b914..fe5ef5210cb 100644 --- a/waiting_rooms/waitingroom_test.go +++ b/waiting_rooms/waitingroom_test.go @@ -15,7 +15,6 @@ import ( ) func TestWaitingRoomNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -73,7 +72,6 @@ func TestWaitingRoomNewWithOptionalParams(t *testing.T) { } func TestWaitingRoomUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -135,7 +133,6 @@ func TestWaitingRoomUpdateWithOptionalParams(t *testing.T) { } func TestWaitingRoomListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -163,7 +160,6 @@ func TestWaitingRoomListWithOptionalParams(t *testing.T) { } func TestWaitingRoomDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -194,7 +190,6 @@ func TestWaitingRoomDelete(t *testing.T) { } func TestWaitingRoomEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -256,7 +251,6 @@ func TestWaitingRoomEditWithOptionalParams(t *testing.T) { } func TestWaitingRoomGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/warp_connector/warpconnector_test.go b/warp_connector/warpconnector_test.go index 4a52ce9e494..e89de9c4b8c 100644 --- a/warp_connector/warpconnector_test.go +++ b/warp_connector/warpconnector_test.go @@ -16,7 +16,6 @@ import ( ) func TestWARPConnectorNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,7 +42,6 @@ func TestWARPConnectorNew(t *testing.T) { } func TestWARPConnectorListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -79,7 +77,6 @@ func TestWARPConnectorListWithOptionalParams(t *testing.T) { } func TestWARPConnectorDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -110,7 +107,6 @@ func TestWARPConnectorDelete(t *testing.T) { } func TestWARPConnectorEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -142,7 +138,6 @@ func TestWARPConnectorEditWithOptionalParams(t *testing.T) { } func TestWARPConnectorGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -172,7 +167,6 @@ func TestWARPConnectorGet(t *testing.T) { } func TestWARPConnectorToken(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/web3/hostname_test.go b/web3/hostname_test.go index f8881dd8584..c4c8a66a09c 100644 --- a/web3/hostname_test.go +++ b/web3/hostname_test.go @@ -15,7 +15,6 @@ import ( ) func TestHostnameNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -47,7 +46,6 @@ func TestHostnameNewWithOptionalParams(t *testing.T) { } func TestHostnameList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -71,7 +69,6 @@ func TestHostnameList(t *testing.T) { } func TestHostnameDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -102,7 +99,6 @@ func TestHostnameDelete(t *testing.T) { } func TestHostnameEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -134,7 +130,6 @@ func TestHostnameEditWithOptionalParams(t *testing.T) { } func TestHostnameGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/web3/hostnameipfsuniversalpathcontentlist_test.go b/web3/hostnameipfsuniversalpathcontentlist_test.go index f04882f17d1..662ce5b4254 100644 --- a/web3/hostnameipfsuniversalpathcontentlist_test.go +++ b/web3/hostnameipfsuniversalpathcontentlist_test.go @@ -15,7 +15,6 @@ import ( ) func TestHostnameIPFSUniversalPathContentListUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -59,7 +58,6 @@ func TestHostnameIPFSUniversalPathContentListUpdate(t *testing.T) { } func TestHostnameIPFSUniversalPathContentListGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/web3/hostnameipfsuniversalpathcontentlistentry_test.go b/web3/hostnameipfsuniversalpathcontentlistentry_test.go index be6989fa6d6..98ecd644123 100644 --- a/web3/hostnameipfsuniversalpathcontentlistentry_test.go +++ b/web3/hostnameipfsuniversalpathcontentlistentry_test.go @@ -15,7 +15,6 @@ import ( ) func TestHostnameIPFSUniversalPathContentListEntryNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -48,7 +47,6 @@ func TestHostnameIPFSUniversalPathContentListEntryNewWithOptionalParams(t *testi } func TestHostnameIPFSUniversalPathContentListEntryUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -82,7 +80,6 @@ func TestHostnameIPFSUniversalPathContentListEntryUpdateWithOptionalParams(t *te } func TestHostnameIPFSUniversalPathContentListEntryList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -110,7 +107,6 @@ func TestHostnameIPFSUniversalPathContentListEntryList(t *testing.T) { } func TestHostnameIPFSUniversalPathContentListEntryDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -142,7 +138,6 @@ func TestHostnameIPFSUniversalPathContentListEntryDelete(t *testing.T) { } func TestHostnameIPFSUniversalPathContentListEntryGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers/accountsetting_test.go b/workers/accountsetting_test.go index 08d436c142a..edb57590c74 100644 --- a/workers/accountsetting_test.go +++ b/workers/accountsetting_test.go @@ -15,7 +15,6 @@ import ( ) func TestAccountSettingUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestAccountSettingUpdate(t *testing.T) { } func TestAccountSettingGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers/ai_test.go b/workers/ai_test.go index ece41338400..cac661162d0 100644 --- a/workers/ai_test.go +++ b/workers/ai_test.go @@ -15,7 +15,6 @@ import ( ) func TestAIRunWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers/domain_test.go b/workers/domain_test.go index a2a6e5ba3c8..5deccb0c97e 100644 --- a/workers/domain_test.go +++ b/workers/domain_test.go @@ -15,7 +15,6 @@ import ( ) func TestDomainUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestDomainUpdate(t *testing.T) { } func TestDomainListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -76,7 +74,6 @@ func TestDomainListWithOptionalParams(t *testing.T) { } func TestDomainDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -107,7 +104,6 @@ func TestDomainDelete(t *testing.T) { } func TestDomainGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers/script_test.go b/workers/script_test.go index 95c8c9fd2d6..1e7db1a1608 100644 --- a/workers/script_test.go +++ b/workers/script_test.go @@ -19,7 +19,6 @@ import ( ) func TestScriptUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -114,7 +113,6 @@ func TestScriptUpdateWithOptionalParams(t *testing.T) { } func TestScriptList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -140,7 +138,6 @@ func TestScriptList(t *testing.T) { } func TestScriptDeleteWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -172,7 +169,6 @@ func TestScriptDeleteWithOptionalParams(t *testing.T) { } func TestScriptGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(200) w.Write([]byte("abc")) diff --git a/workers/scriptcontent_test.go b/workers/scriptcontent_test.go index ec7fd6f6802..cc29ba549b4 100644 --- a/workers/scriptcontent_test.go +++ b/workers/scriptcontent_test.go @@ -19,7 +19,6 @@ import ( ) func TestScriptContentUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -56,7 +55,6 @@ func TestScriptContentUpdateWithOptionalParams(t *testing.T) { } func TestScriptContentGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(200) w.Write([]byte("abc")) diff --git a/workers/scriptdeployment_test.go b/workers/scriptdeployment_test.go index bd146259bbf..79e670d8a32 100644 --- a/workers/scriptdeployment_test.go +++ b/workers/scriptdeployment_test.go @@ -15,7 +15,6 @@ import ( ) func TestScriptDeploymentNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,7 +48,6 @@ func TestScriptDeploymentNewWithOptionalParams(t *testing.T) { } func TestScriptDeploymentGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers/scriptschedule_test.go b/workers/scriptschedule_test.go index a14d50ae951..4e30f52b161 100644 --- a/workers/scriptschedule_test.go +++ b/workers/scriptschedule_test.go @@ -15,7 +15,6 @@ import ( ) func TestScriptScheduleUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,7 +45,6 @@ func TestScriptScheduleUpdate(t *testing.T) { } func TestScriptScheduleGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers/scriptsetting_test.go b/workers/scriptsetting_test.go index 939837760f9..2e5e93dc96d 100644 --- a/workers/scriptsetting_test.go +++ b/workers/scriptsetting_test.go @@ -15,7 +15,6 @@ import ( ) func TestScriptSettingEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -61,7 +60,6 @@ func TestScriptSettingEditWithOptionalParams(t *testing.T) { } func TestScriptSettingGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers/scripttail_test.go b/workers/scripttail_test.go index 42b6671626b..5d3c9c05664 100644 --- a/workers/scripttail_test.go +++ b/workers/scripttail_test.go @@ -15,7 +15,6 @@ import ( ) func TestScriptTailNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,7 +45,6 @@ func TestScriptTailNew(t *testing.T) { } func TestScriptTailDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -78,7 +76,6 @@ func TestScriptTailDelete(t *testing.T) { } func TestScriptTailGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers/scriptversion_test.go b/workers/scriptversion_test.go index 1e3f64d3e07..40df1231327 100644 --- a/workers/scriptversion_test.go +++ b/workers/scriptversion_test.go @@ -17,7 +17,6 @@ import ( ) func TestScriptVersionNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -64,7 +63,6 @@ func TestScriptVersionNewWithOptionalParams(t *testing.T) { } func TestScriptVersionList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -94,7 +92,6 @@ func TestScriptVersionList(t *testing.T) { } func TestScriptVersionGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers/subdomain_test.go b/workers/subdomain_test.go index f659c744ed5..6c37c39c513 100644 --- a/workers/subdomain_test.go +++ b/workers/subdomain_test.go @@ -15,7 +15,6 @@ import ( ) func TestSubdomainUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSubdomainUpdate(t *testing.T) { } func TestSubdomainGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers_for_platforms/dispatchnamespace_test.go b/workers_for_platforms/dispatchnamespace_test.go index 4e9df31db91..d84e2f962c5 100644 --- a/workers_for_platforms/dispatchnamespace_test.go +++ b/workers_for_platforms/dispatchnamespace_test.go @@ -15,7 +15,6 @@ import ( ) func TestDispatchNamespaceNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestDispatchNamespaceNewWithOptionalParams(t *testing.T) { } func TestDispatchNamespaceList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -68,7 +66,6 @@ func TestDispatchNamespaceList(t *testing.T) { } func TestDispatchNamespaceDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -98,7 +95,6 @@ func TestDispatchNamespaceDelete(t *testing.T) { } func TestDispatchNamespaceGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers_for_platforms/dispatchnamespacescript_test.go b/workers_for_platforms/dispatchnamespacescript_test.go index 5d77cc1d499..5b679f26437 100644 --- a/workers_for_platforms/dispatchnamespacescript_test.go +++ b/workers_for_platforms/dispatchnamespacescript_test.go @@ -18,7 +18,6 @@ import ( ) func TestDispatchNamespaceScriptUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -113,7 +112,6 @@ func TestDispatchNamespaceScriptUpdateWithOptionalParams(t *testing.T) { } func TestDispatchNamespaceScriptDeleteWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -146,7 +144,6 @@ func TestDispatchNamespaceScriptDeleteWithOptionalParams(t *testing.T) { } func TestDispatchNamespaceScriptGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers_for_platforms/dispatchnamespacescriptbinding_test.go b/workers_for_platforms/dispatchnamespacescriptbinding_test.go index c521d44974c..54d0a749bcd 100644 --- a/workers_for_platforms/dispatchnamespacescriptbinding_test.go +++ b/workers_for_platforms/dispatchnamespacescriptbinding_test.go @@ -15,7 +15,6 @@ import ( ) func TestDispatchNamespaceScriptBindingGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers_for_platforms/dispatchnamespacescriptcontent_test.go b/workers_for_platforms/dispatchnamespacescriptcontent_test.go index 3393d0a1e6e..8096ff736b1 100644 --- a/workers_for_platforms/dispatchnamespacescriptcontent_test.go +++ b/workers_for_platforms/dispatchnamespacescriptcontent_test.go @@ -20,7 +20,6 @@ import ( ) func TestDispatchNamespaceScriptContentUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -58,7 +57,6 @@ func TestDispatchNamespaceScriptContentUpdateWithOptionalParams(t *testing.T) { } func TestDispatchNamespaceScriptContentGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(200) w.Write([]byte("abc")) diff --git a/workers_for_platforms/dispatchnamespacescriptsecret_test.go b/workers_for_platforms/dispatchnamespacescriptsecret_test.go index 2ee9139e1c1..9cd822e8a58 100644 --- a/workers_for_platforms/dispatchnamespacescriptsecret_test.go +++ b/workers_for_platforms/dispatchnamespacescriptsecret_test.go @@ -15,7 +15,6 @@ import ( ) func TestDispatchNamespaceScriptSecretUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,7 +48,6 @@ func TestDispatchNamespaceScriptSecretUpdateWithOptionalParams(t *testing.T) { } func TestDispatchNamespaceScriptSecretList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers_for_platforms/dispatchnamespacescriptsetting_test.go b/workers_for_platforms/dispatchnamespacescriptsetting_test.go index d77c9b9088e..e283b437373 100644 --- a/workers_for_platforms/dispatchnamespacescriptsetting_test.go +++ b/workers_for_platforms/dispatchnamespacescriptsetting_test.go @@ -16,7 +16,6 @@ import ( ) func TestDispatchNamespaceScriptSettingEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -109,7 +108,6 @@ func TestDispatchNamespaceScriptSettingEditWithOptionalParams(t *testing.T) { } func TestDispatchNamespaceScriptSettingGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers_for_platforms/dispatchnamespacescripttag_test.go b/workers_for_platforms/dispatchnamespacescripttag_test.go index 8e608129604..98a6a08a9fc 100644 --- a/workers_for_platforms/dispatchnamespacescripttag_test.go +++ b/workers_for_platforms/dispatchnamespacescripttag_test.go @@ -15,7 +15,6 @@ import ( ) func TestDispatchNamespaceScriptTagUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -47,7 +46,6 @@ func TestDispatchNamespaceScriptTagUpdate(t *testing.T) { } func TestDispatchNamespaceScriptTagList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -78,7 +76,6 @@ func TestDispatchNamespaceScriptTagList(t *testing.T) { } func TestDispatchNamespaceScriptTagDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accessapplication_test.go b/zero_trust/accessapplication_test.go index 81fd1ab91cc..a5691f7f575 100644 --- a/zero_trust/accessapplication_test.go +++ b/zero_trust/accessapplication_test.go @@ -16,7 +16,6 @@ import ( ) func TestAccessApplicationNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -77,7 +76,6 @@ func TestAccessApplicationNewWithOptionalParams(t *testing.T) { } func TestAccessApplicationUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -142,7 +140,6 @@ func TestAccessApplicationUpdateWithOptionalParams(t *testing.T) { } func TestAccessApplicationListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -169,7 +166,6 @@ func TestAccessApplicationListWithOptionalParams(t *testing.T) { } func TestAccessApplicationDeleteWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -200,7 +196,6 @@ func TestAccessApplicationDeleteWithOptionalParams(t *testing.T) { } func TestAccessApplicationGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -231,7 +226,6 @@ func TestAccessApplicationGetWithOptionalParams(t *testing.T) { } func TestAccessApplicationRevokeTokensWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accessapplicationca_test.go b/zero_trust/accessapplicationca_test.go index bdb5c36fd73..f7b150c3e9f 100644 --- a/zero_trust/accessapplicationca_test.go +++ b/zero_trust/accessapplicationca_test.go @@ -15,7 +15,6 @@ import ( ) func TestAccessApplicationCANewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,7 +45,6 @@ func TestAccessApplicationCANewWithOptionalParams(t *testing.T) { } func TestAccessApplicationCAListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -73,7 +71,6 @@ func TestAccessApplicationCAListWithOptionalParams(t *testing.T) { } func TestAccessApplicationCADeleteWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -104,7 +101,6 @@ func TestAccessApplicationCADeleteWithOptionalParams(t *testing.T) { } func TestAccessApplicationCAGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accessapplicationpolicy_test.go b/zero_trust/accessapplicationpolicy_test.go index cae43abecca..c5602163084 100644 --- a/zero_trust/accessapplicationpolicy_test.go +++ b/zero_trust/accessapplicationpolicy_test.go @@ -15,7 +15,6 @@ import ( ) func TestAccessApplicationPolicyNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -102,7 +101,6 @@ func TestAccessApplicationPolicyNewWithOptionalParams(t *testing.T) { } func TestAccessApplicationPolicyUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -190,7 +188,6 @@ func TestAccessApplicationPolicyUpdateWithOptionalParams(t *testing.T) { } func TestAccessApplicationPolicyListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -221,7 +218,6 @@ func TestAccessApplicationPolicyListWithOptionalParams(t *testing.T) { } func TestAccessApplicationPolicyDeleteWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -253,7 +249,6 @@ func TestAccessApplicationPolicyDeleteWithOptionalParams(t *testing.T) { } func TestAccessApplicationPolicyGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accessapplicationuserpolicycheck_test.go b/zero_trust/accessapplicationuserpolicycheck_test.go index 0e5c9ae469a..0aea05d4d2e 100644 --- a/zero_trust/accessapplicationuserpolicycheck_test.go +++ b/zero_trust/accessapplicationuserpolicycheck_test.go @@ -16,7 +16,6 @@ import ( ) func TestAccessApplicationUserPolicyCheckListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accessbookmark_test.go b/zero_trust/accessbookmark_test.go index 98f7e866fe1..fdc21fe9ad4 100644 --- a/zero_trust/accessbookmark_test.go +++ b/zero_trust/accessbookmark_test.go @@ -15,7 +15,6 @@ import ( ) func TestAccessBookmarkNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,7 +45,6 @@ func TestAccessBookmarkNew(t *testing.T) { } func TestAccessBookmarkUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -77,7 +75,6 @@ func TestAccessBookmarkUpdate(t *testing.T) { } func TestAccessBookmarkList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -101,7 +98,6 @@ func TestAccessBookmarkList(t *testing.T) { } func TestAccessBookmarkDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -132,7 +128,6 @@ func TestAccessBookmarkDelete(t *testing.T) { } func TestAccessBookmarkGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accesscertificate_test.go b/zero_trust/accesscertificate_test.go index fcdca9c7659..03012700702 100644 --- a/zero_trust/accesscertificate_test.go +++ b/zero_trust/accesscertificate_test.go @@ -15,7 +15,6 @@ import ( ) func TestAccessCertificateNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestAccessCertificateNewWithOptionalParams(t *testing.T) { } func TestAccessCertificateUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -78,7 +76,6 @@ func TestAccessCertificateUpdateWithOptionalParams(t *testing.T) { } func TestAccessCertificateListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -105,7 +102,6 @@ func TestAccessCertificateListWithOptionalParams(t *testing.T) { } func TestAccessCertificateDeleteWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -136,7 +132,6 @@ func TestAccessCertificateDeleteWithOptionalParams(t *testing.T) { } func TestAccessCertificateGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accesscertificatesetting_test.go b/zero_trust/accesscertificatesetting_test.go index 3d5510ccf27..48b577ebb93 100644 --- a/zero_trust/accesscertificatesetting_test.go +++ b/zero_trust/accesscertificatesetting_test.go @@ -15,7 +15,6 @@ import ( ) func TestAccessCertificateSettingUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -55,7 +54,6 @@ func TestAccessCertificateSettingUpdateWithOptionalParams(t *testing.T) { } func TestAccessCertificateSettingGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accesscustompage_test.go b/zero_trust/accesscustompage_test.go index 59147eca3f1..235c2c84263 100644 --- a/zero_trust/accesscustompage_test.go +++ b/zero_trust/accesscustompage_test.go @@ -15,7 +15,6 @@ import ( ) func TestAccessCustomPageNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -50,7 +49,6 @@ func TestAccessCustomPageNewWithOptionalParams(t *testing.T) { } func TestAccessCustomPageUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -86,7 +84,6 @@ func TestAccessCustomPageUpdateWithOptionalParams(t *testing.T) { } func TestAccessCustomPageList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -110,7 +107,6 @@ func TestAccessCustomPageList(t *testing.T) { } func TestAccessCustomPageDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -138,7 +134,6 @@ func TestAccessCustomPageDelete(t *testing.T) { } func TestAccessCustomPageGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accessgroup_test.go b/zero_trust/accessgroup_test.go index 82ae5698f67..ab1a0545f7b 100644 --- a/zero_trust/accessgroup_test.go +++ b/zero_trust/accessgroup_test.go @@ -15,7 +15,6 @@ import ( ) func TestAccessGroupNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -83,7 +82,6 @@ func TestAccessGroupNewWithOptionalParams(t *testing.T) { } func TestAccessGroupUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -155,7 +153,6 @@ func TestAccessGroupUpdateWithOptionalParams(t *testing.T) { } func TestAccessGroupListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -182,7 +179,6 @@ func TestAccessGroupListWithOptionalParams(t *testing.T) { } func TestAccessGroupDeleteWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -213,7 +209,6 @@ func TestAccessGroupDeleteWithOptionalParams(t *testing.T) { } func TestAccessGroupGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accesskey_test.go b/zero_trust/accesskey_test.go index ab5adb30187..6447d783096 100644 --- a/zero_trust/accesskey_test.go +++ b/zero_trust/accesskey_test.go @@ -15,7 +15,6 @@ import ( ) func TestAccessKeyUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestAccessKeyUpdate(t *testing.T) { } func TestAccessKeyGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -69,7 +67,6 @@ func TestAccessKeyGet(t *testing.T) { } func TestAccessKeyRotate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accesslogaccessrequest_test.go b/zero_trust/accesslogaccessrequest_test.go index 4f4c600d60d..2483dbf0ce2 100644 --- a/zero_trust/accesslogaccessrequest_test.go +++ b/zero_trust/accesslogaccessrequest_test.go @@ -14,7 +14,6 @@ import ( ) func TestAccessLogAccessRequestList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accessservicetoken_test.go b/zero_trust/accessservicetoken_test.go index 897fbe14580..c865dd9ff00 100644 --- a/zero_trust/accessservicetoken_test.go +++ b/zero_trust/accessservicetoken_test.go @@ -15,7 +15,6 @@ import ( ) func TestAccessServiceTokenNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,7 +43,6 @@ func TestAccessServiceTokenNewWithOptionalParams(t *testing.T) { } func TestAccessServiceTokenUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -77,7 +75,6 @@ func TestAccessServiceTokenUpdateWithOptionalParams(t *testing.T) { } func TestAccessServiceTokenListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -104,7 +101,6 @@ func TestAccessServiceTokenListWithOptionalParams(t *testing.T) { } func TestAccessServiceTokenDeleteWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -135,7 +131,6 @@ func TestAccessServiceTokenDeleteWithOptionalParams(t *testing.T) { } func TestAccessServiceTokenRefresh(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -163,7 +158,6 @@ func TestAccessServiceTokenRefresh(t *testing.T) { } func TestAccessServiceTokenRotate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accesstag_test.go b/zero_trust/accesstag_test.go index 71a178be65f..272c6d5710e 100644 --- a/zero_trust/accesstag_test.go +++ b/zero_trust/accesstag_test.go @@ -15,7 +15,6 @@ import ( ) func TestAccessTagNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestAccessTagNew(t *testing.T) { } func TestAccessTagUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -76,7 +74,6 @@ func TestAccessTagUpdate(t *testing.T) { } func TestAccessTagList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -100,7 +97,6 @@ func TestAccessTagList(t *testing.T) { } func TestAccessTagDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -128,7 +124,6 @@ func TestAccessTagDelete(t *testing.T) { } func TestAccessTagGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accessuser_test.go b/zero_trust/accessuser_test.go index 7bb2850f1b5..e008030ac78 100644 --- a/zero_trust/accessuser_test.go +++ b/zero_trust/accessuser_test.go @@ -14,7 +14,6 @@ import ( ) func TestAccessUserList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accessuseractivesession_test.go b/zero_trust/accessuseractivesession_test.go index b3f5a777fca..a401c896faa 100644 --- a/zero_trust/accessuseractivesession_test.go +++ b/zero_trust/accessuseractivesession_test.go @@ -14,7 +14,6 @@ import ( ) func TestAccessUserActiveSessionList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestAccessUserActiveSessionList(t *testing.T) { } func TestAccessUserActiveSessionGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accessuserfailedlogin_test.go b/zero_trust/accessuserfailedlogin_test.go index a179bd4644e..7f59fb2a1f2 100644 --- a/zero_trust/accessuserfailedlogin_test.go +++ b/zero_trust/accessuserfailedlogin_test.go @@ -14,7 +14,6 @@ import ( ) func TestAccessUserFailedLoginList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accessuserlastseenidentity_test.go b/zero_trust/accessuserlastseenidentity_test.go index b241a3fdb8e..a8c9b8a072d 100644 --- a/zero_trust/accessuserlastseenidentity_test.go +++ b/zero_trust/accessuserlastseenidentity_test.go @@ -14,7 +14,6 @@ import ( ) func TestAccessUserLastSeenIdentityGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/connectivitysetting_test.go b/zero_trust/connectivitysetting_test.go index 382a70e6850..2ff1d38c4c0 100644 --- a/zero_trust/connectivitysetting_test.go +++ b/zero_trust/connectivitysetting_test.go @@ -15,7 +15,6 @@ import ( ) func TestConnectivitySettingEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,7 +42,6 @@ func TestConnectivitySettingEditWithOptionalParams(t *testing.T) { } func TestConnectivitySettingGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/device_test.go b/zero_trust/device_test.go index 88dac0a3774..876e02d59a6 100644 --- a/zero_trust/device_test.go +++ b/zero_trust/device_test.go @@ -15,7 +15,6 @@ import ( ) func TestDeviceList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,7 +40,6 @@ func TestDeviceList(t *testing.T) { } func TestDeviceGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/devicedextest_test.go b/zero_trust/devicedextest_test.go index dac8acee177..1b691572526 100644 --- a/zero_trust/devicedextest_test.go +++ b/zero_trust/devicedextest_test.go @@ -15,7 +15,6 @@ import ( ) func TestDeviceDEXTestNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -66,7 +65,6 @@ func TestDeviceDEXTestNewWithOptionalParams(t *testing.T) { } func TestDeviceDEXTestUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -121,7 +119,6 @@ func TestDeviceDEXTestUpdateWithOptionalParams(t *testing.T) { } func TestDeviceDEXTestList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -147,7 +144,6 @@ func TestDeviceDEXTestList(t *testing.T) { } func TestDeviceDEXTestDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -177,7 +173,6 @@ func TestDeviceDEXTestDelete(t *testing.T) { } func TestDeviceDEXTestGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/devicenetwork_test.go b/zero_trust/devicenetwork_test.go index f897bd17f7b..3edd816e83b 100644 --- a/zero_trust/devicenetwork_test.go +++ b/zero_trust/devicenetwork_test.go @@ -15,7 +15,6 @@ import ( ) func TestDeviceNetworkNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -47,7 +46,6 @@ func TestDeviceNetworkNewWithOptionalParams(t *testing.T) { } func TestDeviceNetworkUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -83,7 +81,6 @@ func TestDeviceNetworkUpdateWithOptionalParams(t *testing.T) { } func TestDeviceNetworkList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -109,7 +106,6 @@ func TestDeviceNetworkList(t *testing.T) { } func TestDeviceNetworkDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -140,7 +136,6 @@ func TestDeviceNetworkDelete(t *testing.T) { } func TestDeviceNetworkGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/deviceoverridecode_test.go b/zero_trust/deviceoverridecode_test.go index 0c188750026..6e8651ad974 100644 --- a/zero_trust/deviceoverridecode_test.go +++ b/zero_trust/deviceoverridecode_test.go @@ -15,7 +15,6 @@ import ( ) func TestDeviceOverrideCodeList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/devicepolicy_test.go b/zero_trust/devicepolicy_test.go index bf407178c6d..669e7dd917f 100644 --- a/zero_trust/devicepolicy_test.go +++ b/zero_trust/devicepolicy_test.go @@ -15,7 +15,6 @@ import ( ) func TestDevicePolicyNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -61,7 +60,6 @@ func TestDevicePolicyNewWithOptionalParams(t *testing.T) { } func TestDevicePolicyList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -87,7 +85,6 @@ func TestDevicePolicyList(t *testing.T) { } func TestDevicePolicyDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -118,7 +115,6 @@ func TestDevicePolicyDelete(t *testing.T) { } func TestDevicePolicyEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -166,7 +162,6 @@ func TestDevicePolicyEditWithOptionalParams(t *testing.T) { } func TestDevicePolicyGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/devicepolicydefaultpolicy_test.go b/zero_trust/devicepolicydefaultpolicy_test.go index e2164d411a8..f126c61f7c3 100644 --- a/zero_trust/devicepolicydefaultpolicy_test.go +++ b/zero_trust/devicepolicydefaultpolicy_test.go @@ -15,7 +15,6 @@ import ( ) func TestDevicePolicyDefaultPolicyGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/devicepolicyexclude_test.go b/zero_trust/devicepolicyexclude_test.go index 3c60baff497..e12eaa07fdf 100644 --- a/zero_trust/devicepolicyexclude_test.go +++ b/zero_trust/devicepolicyexclude_test.go @@ -15,7 +15,6 @@ import ( ) func TestDevicePolicyExcludeUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -54,7 +53,6 @@ func TestDevicePolicyExcludeUpdate(t *testing.T) { } func TestDevicePolicyExcludeList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -80,7 +78,6 @@ func TestDevicePolicyExcludeList(t *testing.T) { } func TestDevicePolicyExcludeGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/devicepolicyfallbackdomain_test.go b/zero_trust/devicepolicyfallbackdomain_test.go index caf5294f085..9ce3e568d1e 100644 --- a/zero_trust/devicepolicyfallbackdomain_test.go +++ b/zero_trust/devicepolicyfallbackdomain_test.go @@ -15,7 +15,6 @@ import ( ) func TestDevicePolicyFallbackDomainUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -58,7 +57,6 @@ func TestDevicePolicyFallbackDomainUpdate(t *testing.T) { } func TestDevicePolicyFallbackDomainList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -84,7 +82,6 @@ func TestDevicePolicyFallbackDomainList(t *testing.T) { } func TestDevicePolicyFallbackDomainGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/devicepolicyinclude_test.go b/zero_trust/devicepolicyinclude_test.go index 73855c68548..8df8f8fb087 100644 --- a/zero_trust/devicepolicyinclude_test.go +++ b/zero_trust/devicepolicyinclude_test.go @@ -15,7 +15,6 @@ import ( ) func TestDevicePolicyIncludeUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -54,7 +53,6 @@ func TestDevicePolicyIncludeUpdate(t *testing.T) { } func TestDevicePolicyIncludeList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -80,7 +78,6 @@ func TestDevicePolicyIncludeList(t *testing.T) { } func TestDevicePolicyIncludeGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/deviceposture_test.go b/zero_trust/deviceposture_test.go index 09ef0eda59d..b412bb13d86 100644 --- a/zero_trust/deviceposture_test.go +++ b/zero_trust/deviceposture_test.go @@ -15,7 +15,6 @@ import ( ) func TestDevicePostureNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -60,7 +59,6 @@ func TestDevicePostureNewWithOptionalParams(t *testing.T) { } func TestDevicePostureUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -109,7 +107,6 @@ func TestDevicePostureUpdateWithOptionalParams(t *testing.T) { } func TestDevicePostureList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -135,7 +132,6 @@ func TestDevicePostureList(t *testing.T) { } func TestDevicePostureDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -166,7 +162,6 @@ func TestDevicePostureDelete(t *testing.T) { } func TestDevicePostureGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/devicepostureintegration_test.go b/zero_trust/devicepostureintegration_test.go index dcb58a0734e..54e681200e5 100644 --- a/zero_trust/devicepostureintegration_test.go +++ b/zero_trust/devicepostureintegration_test.go @@ -15,7 +15,6 @@ import ( ) func TestDevicePostureIntegrationNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -50,7 +49,6 @@ func TestDevicePostureIntegrationNewWithOptionalParams(t *testing.T) { } func TestDevicePostureIntegrationList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -76,7 +74,6 @@ func TestDevicePostureIntegrationList(t *testing.T) { } func TestDevicePostureIntegrationDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -107,7 +104,6 @@ func TestDevicePostureIntegrationDelete(t *testing.T) { } func TestDevicePostureIntegrationEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -146,7 +142,6 @@ func TestDevicePostureIntegrationEditWithOptionalParams(t *testing.T) { } func TestDevicePostureIntegrationGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/devicerevoke_test.go b/zero_trust/devicerevoke_test.go index 91b21b1a4ca..3b169ae63a8 100644 --- a/zero_trust/devicerevoke_test.go +++ b/zero_trust/devicerevoke_test.go @@ -15,7 +15,6 @@ import ( ) func TestDeviceRevokeNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/devicesetting_test.go b/zero_trust/devicesetting_test.go index 3ccd554d41c..a9dd4830b7b 100644 --- a/zero_trust/devicesetting_test.go +++ b/zero_trust/devicesetting_test.go @@ -15,7 +15,6 @@ import ( ) func TestDeviceSettingUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -47,7 +46,6 @@ func TestDeviceSettingUpdateWithOptionalParams(t *testing.T) { } func TestDeviceSettingList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/deviceunrevoke_test.go b/zero_trust/deviceunrevoke_test.go index 5c0c8cf4822..15ec1203448 100644 --- a/zero_trust/deviceunrevoke_test.go +++ b/zero_trust/deviceunrevoke_test.go @@ -15,7 +15,6 @@ import ( ) func TestDeviceUnrevokeNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dexcolo_test.go b/zero_trust/dexcolo_test.go index 7bb8e90a249..8a756b64f8a 100644 --- a/zero_trust/dexcolo_test.go +++ b/zero_trust/dexcolo_test.go @@ -15,7 +15,6 @@ import ( ) func TestDEXColoListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dexfleetstatus_test.go b/zero_trust/dexfleetstatus_test.go index 971d4893db7..f3d811b340a 100644 --- a/zero_trust/dexfleetstatus_test.go +++ b/zero_trust/dexfleetstatus_test.go @@ -15,7 +15,6 @@ import ( ) func TestDEXFleetStatusLive(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestDEXFleetStatusLive(t *testing.T) { } func TestDEXFleetStatusOverTimeWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dexfleetstatusdevice_test.go b/zero_trust/dexfleetstatusdevice_test.go index 44af9640b11..c3749bb8464 100644 --- a/zero_trust/dexfleetstatusdevice_test.go +++ b/zero_trust/dexfleetstatusdevice_test.go @@ -15,7 +15,6 @@ import ( ) func TestDEXFleetStatusDeviceListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dexhttptest_test.go b/zero_trust/dexhttptest_test.go index 3af4078a3bd..b918aecb7e1 100644 --- a/zero_trust/dexhttptest_test.go +++ b/zero_trust/dexhttptest_test.go @@ -15,7 +15,6 @@ import ( ) func TestDEXHTTPTestGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dexhttptestpercentile_test.go b/zero_trust/dexhttptestpercentile_test.go index 63846d98f2d..9232aa8561f 100644 --- a/zero_trust/dexhttptestpercentile_test.go +++ b/zero_trust/dexhttptestpercentile_test.go @@ -15,7 +15,6 @@ import ( ) func TestDEXHTTPTestPercentileGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dextest_test.go b/zero_trust/dextest_test.go index 1267b48f9a3..3f7f8f4ca08 100644 --- a/zero_trust/dextest_test.go +++ b/zero_trust/dextest_test.go @@ -15,7 +15,6 @@ import ( ) func TestDEXTestListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dextestuniquedevice_test.go b/zero_trust/dextestuniquedevice_test.go index 41aab678341..06169b3eb57 100644 --- a/zero_trust/dextestuniquedevice_test.go +++ b/zero_trust/dextestuniquedevice_test.go @@ -15,7 +15,6 @@ import ( ) func TestDEXTestUniqueDeviceListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dextraceroutetest_test.go b/zero_trust/dextraceroutetest_test.go index 937aabd6cfb..e3eefd95dea 100644 --- a/zero_trust/dextraceroutetest_test.go +++ b/zero_trust/dextraceroutetest_test.go @@ -15,7 +15,6 @@ import ( ) func TestDEXTracerouteTestGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -50,7 +49,6 @@ func TestDEXTracerouteTestGetWithOptionalParams(t *testing.T) { } func TestDEXTracerouteTestNetworkPath(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -84,7 +82,6 @@ func TestDEXTracerouteTestNetworkPath(t *testing.T) { } func TestDEXTracerouteTestPercentilesWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dextraceroutetestresultnetworkpath_test.go b/zero_trust/dextraceroutetestresultnetworkpath_test.go index 3f3fe83f7cc..99e60ab2b6d 100644 --- a/zero_trust/dextraceroutetestresultnetworkpath_test.go +++ b/zero_trust/dextraceroutetestresultnetworkpath_test.go @@ -15,7 +15,6 @@ import ( ) func TestDEXTracerouteTestResultNetworkPathGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dlpdataset_test.go b/zero_trust/dlpdataset_test.go index 3c11b89e5d7..df9fdde498b 100644 --- a/zero_trust/dlpdataset_test.go +++ b/zero_trust/dlpdataset_test.go @@ -15,7 +15,6 @@ import ( ) func TestDLPDatasetNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,7 +43,6 @@ func TestDLPDatasetNewWithOptionalParams(t *testing.T) { } func TestDLPDatasetUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -76,7 +74,6 @@ func TestDLPDatasetUpdateWithOptionalParams(t *testing.T) { } func TestDLPDatasetList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -102,7 +99,6 @@ func TestDLPDatasetList(t *testing.T) { } func TestDLPDatasetDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -132,7 +128,6 @@ func TestDLPDatasetDelete(t *testing.T) { } func TestDLPDatasetGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dlpdatasetupload_test.go b/zero_trust/dlpdatasetupload_test.go index 194c2632519..9237bba6d75 100644 --- a/zero_trust/dlpdatasetupload_test.go +++ b/zero_trust/dlpdatasetupload_test.go @@ -15,7 +15,6 @@ import ( ) func TestDLPDatasetUploadNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestDLPDatasetUploadNew(t *testing.T) { } func TestDLPDatasetUploadEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dlppattern_test.go b/zero_trust/dlppattern_test.go index 7ee523029b2..8ff48a94fd1 100644 --- a/zero_trust/dlppattern_test.go +++ b/zero_trust/dlppattern_test.go @@ -15,7 +15,6 @@ import ( ) func TestDLPPatternValidate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dlppayloadlog_test.go b/zero_trust/dlppayloadlog_test.go index ba059c4d124..3b978a40aa3 100644 --- a/zero_trust/dlppayloadlog_test.go +++ b/zero_trust/dlppayloadlog_test.go @@ -15,7 +15,6 @@ import ( ) func TestDLPPayloadLogUpdate(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestDLPPayloadLogUpdate(t *testing.T) { } func TestDLPPayloadLogGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dlpprofile_test.go b/zero_trust/dlpprofile_test.go index d19eea0a3e6..ab6d605bdee 100644 --- a/zero_trust/dlpprofile_test.go +++ b/zero_trust/dlpprofile_test.go @@ -15,7 +15,6 @@ import ( ) func TestDLPProfileList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,7 +40,6 @@ func TestDLPProfileList(t *testing.T) { } func TestDLPProfileGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dlpprofilecustom_test.go b/zero_trust/dlpprofilecustom_test.go index 64cea9e783f..42b64a34b89 100644 --- a/zero_trust/dlpprofilecustom_test.go +++ b/zero_trust/dlpprofilecustom_test.go @@ -15,7 +15,6 @@ import ( ) func TestDLPProfileCustomNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -141,7 +140,6 @@ func TestDLPProfileCustomNew(t *testing.T) { } func TestDLPProfileCustomUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -213,7 +211,6 @@ func TestDLPProfileCustomUpdateWithOptionalParams(t *testing.T) { } func TestDLPProfileCustomDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -244,7 +241,6 @@ func TestDLPProfileCustomDelete(t *testing.T) { } func TestDLPProfileCustomGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dlpprofilepredefined_test.go b/zero_trust/dlpprofilepredefined_test.go index e2c30a930b9..0078dc43d8f 100644 --- a/zero_trust/dlpprofilepredefined_test.go +++ b/zero_trust/dlpprofilepredefined_test.go @@ -15,7 +15,6 @@ import ( ) func TestDLPProfilePredefinedUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -60,7 +59,6 @@ func TestDLPProfilePredefinedUpdateWithOptionalParams(t *testing.T) { } func TestDLPProfilePredefinedGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/gateway_test.go b/zero_trust/gateway_test.go index ca2f5479242..0df5a93c43c 100644 --- a/zero_trust/gateway_test.go +++ b/zero_trust/gateway_test.go @@ -15,7 +15,6 @@ import ( ) func TestGatewayNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,7 +40,6 @@ func TestGatewayNew(t *testing.T) { } func TestGatewayList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/gatewayapptype_test.go b/zero_trust/gatewayapptype_test.go index 739427698e5..7d400cc4ba6 100644 --- a/zero_trust/gatewayapptype_test.go +++ b/zero_trust/gatewayapptype_test.go @@ -15,7 +15,6 @@ import ( ) func TestGatewayAppTypeList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/gatewayauditsshsetting_test.go b/zero_trust/gatewayauditsshsetting_test.go index ba7fc64520d..61dfcc3b884 100644 --- a/zero_trust/gatewayauditsshsetting_test.go +++ b/zero_trust/gatewayauditsshsetting_test.go @@ -15,7 +15,6 @@ import ( ) func TestGatewayAuditSSHSettingUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,7 +42,6 @@ func TestGatewayAuditSSHSettingUpdateWithOptionalParams(t *testing.T) { } func TestGatewayAuditSSHSettingGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/gatewaycategory_test.go b/zero_trust/gatewaycategory_test.go index dffbc158d88..f8e7706d8aa 100644 --- a/zero_trust/gatewaycategory_test.go +++ b/zero_trust/gatewaycategory_test.go @@ -15,7 +15,6 @@ import ( ) func TestGatewayCategoryList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/gatewayconfiguration_test.go b/zero_trust/gatewayconfiguration_test.go index 0d4e17341fc..619467c27db 100644 --- a/zero_trust/gatewayconfiguration_test.go +++ b/zero_trust/gatewayconfiguration_test.go @@ -15,7 +15,6 @@ import ( ) func TestGatewayConfigurationUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -90,7 +89,6 @@ func TestGatewayConfigurationUpdateWithOptionalParams(t *testing.T) { } func TestGatewayConfigurationEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -165,7 +163,6 @@ func TestGatewayConfigurationEditWithOptionalParams(t *testing.T) { } func TestGatewayConfigurationGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/gatewaylist_test.go b/zero_trust/gatewaylist_test.go index 3dc8766ef9d..cf578a44f2f 100644 --- a/zero_trust/gatewaylist_test.go +++ b/zero_trust/gatewaylist_test.go @@ -15,7 +15,6 @@ import ( ) func TestGatewayListNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -51,7 +50,6 @@ func TestGatewayListNewWithOptionalParams(t *testing.T) { } func TestGatewayListUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -83,7 +81,6 @@ func TestGatewayListUpdateWithOptionalParams(t *testing.T) { } func TestGatewayListList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -109,7 +106,6 @@ func TestGatewayListList(t *testing.T) { } func TestGatewayListDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -140,7 +136,6 @@ func TestGatewayListDelete(t *testing.T) { } func TestGatewayListEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -178,7 +173,6 @@ func TestGatewayListEditWithOptionalParams(t *testing.T) { } func TestGatewayListGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/gatewaylistitem_test.go b/zero_trust/gatewaylistitem_test.go index 603526ab09b..d3f3f3084d5 100644 --- a/zero_trust/gatewaylistitem_test.go +++ b/zero_trust/gatewaylistitem_test.go @@ -15,7 +15,6 @@ import ( ) func TestGatewayListItemList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/gatewaylocation_test.go b/zero_trust/gatewaylocation_test.go index e0b1ef6b2da..aacfbfef208 100644 --- a/zero_trust/gatewaylocation_test.go +++ b/zero_trust/gatewaylocation_test.go @@ -15,7 +15,6 @@ import ( ) func TestGatewayLocationNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -51,7 +50,6 @@ func TestGatewayLocationNewWithOptionalParams(t *testing.T) { } func TestGatewayLocationUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -91,7 +89,6 @@ func TestGatewayLocationUpdateWithOptionalParams(t *testing.T) { } func TestGatewayLocationList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -117,7 +114,6 @@ func TestGatewayLocationList(t *testing.T) { } func TestGatewayLocationDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -148,7 +144,6 @@ func TestGatewayLocationDelete(t *testing.T) { } func TestGatewayLocationGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/gatewaylogging_test.go b/zero_trust/gatewaylogging_test.go index f22907d333a..8684a34ad39 100644 --- a/zero_trust/gatewaylogging_test.go +++ b/zero_trust/gatewaylogging_test.go @@ -15,7 +15,6 @@ import ( ) func TestGatewayLoggingUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,7 +48,6 @@ func TestGatewayLoggingUpdateWithOptionalParams(t *testing.T) { } func TestGatewayLoggingGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/gatewayproxyendpoint_test.go b/zero_trust/gatewayproxyendpoint_test.go index f522e8ef5a5..1d1b85a2336 100644 --- a/zero_trust/gatewayproxyendpoint_test.go +++ b/zero_trust/gatewayproxyendpoint_test.go @@ -15,7 +15,6 @@ import ( ) func TestGatewayProxyEndpointNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,7 +42,6 @@ func TestGatewayProxyEndpointNew(t *testing.T) { } func TestGatewayProxyEndpointList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -69,7 +67,6 @@ func TestGatewayProxyEndpointList(t *testing.T) { } func TestGatewayProxyEndpointDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -100,7 +97,6 @@ func TestGatewayProxyEndpointDelete(t *testing.T) { } func TestGatewayProxyEndpointEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -132,7 +128,6 @@ func TestGatewayProxyEndpointEditWithOptionalParams(t *testing.T) { } func TestGatewayProxyEndpointGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/gatewayrule_test.go b/zero_trust/gatewayrule_test.go index 1b39f4bbb96..7bd8f5af041 100644 --- a/zero_trust/gatewayrule_test.go +++ b/zero_trust/gatewayrule_test.go @@ -15,7 +15,6 @@ import ( ) func TestGatewayRuleNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -149,7 +148,6 @@ func TestGatewayRuleNewWithOptionalParams(t *testing.T) { } func TestGatewayRuleUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -287,7 +285,6 @@ func TestGatewayRuleUpdateWithOptionalParams(t *testing.T) { } func TestGatewayRuleList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -313,7 +310,6 @@ func TestGatewayRuleList(t *testing.T) { } func TestGatewayRuleDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -344,7 +340,6 @@ func TestGatewayRuleDelete(t *testing.T) { } func TestGatewayRuleGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/identityprovider_test.go b/zero_trust/identityprovider_test.go index 9cc3f88cbc1..617dfaa57fa 100644 --- a/zero_trust/identityprovider_test.go +++ b/zero_trust/identityprovider_test.go @@ -15,7 +15,6 @@ import ( ) func TestIdentityProviderNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -63,7 +62,6 @@ func TestIdentityProviderNewWithOptionalParams(t *testing.T) { } func TestIdentityProviderUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -115,7 +113,6 @@ func TestIdentityProviderUpdateWithOptionalParams(t *testing.T) { } func TestIdentityProviderListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -142,7 +139,6 @@ func TestIdentityProviderListWithOptionalParams(t *testing.T) { } func TestIdentityProviderDeleteWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -173,7 +169,6 @@ func TestIdentityProviderDeleteWithOptionalParams(t *testing.T) { } func TestIdentityProviderGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/networkroute_test.go b/zero_trust/networkroute_test.go index 3c04502ea7f..83d10501af0 100644 --- a/zero_trust/networkroute_test.go +++ b/zero_trust/networkroute_test.go @@ -15,7 +15,6 @@ import ( ) func TestNetworkRouteNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,7 +43,6 @@ func TestNetworkRouteNewWithOptionalParams(t *testing.T) { } func TestNetworkRouteListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -81,7 +79,6 @@ func TestNetworkRouteListWithOptionalParams(t *testing.T) { } func TestNetworkRouteDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -111,7 +108,6 @@ func TestNetworkRouteDelete(t *testing.T) { } func TestNetworkRouteEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/networkrouteip_test.go b/zero_trust/networkrouteip_test.go index cb4e5b16c12..69b840c5fb0 100644 --- a/zero_trust/networkrouteip_test.go +++ b/zero_trust/networkrouteip_test.go @@ -15,7 +15,6 @@ import ( ) func TestNetworkRouteIPGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/networkroutenetwork_test.go b/zero_trust/networkroutenetwork_test.go index ef2a28f80bb..9d58e0b914b 100644 --- a/zero_trust/networkroutenetwork_test.go +++ b/zero_trust/networkroutenetwork_test.go @@ -15,7 +15,6 @@ import ( ) func TestNetworkRouteNetworkNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -47,7 +46,6 @@ func TestNetworkRouteNetworkNewWithOptionalParams(t *testing.T) { } func TestNetworkRouteNetworkDeleteWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -80,7 +78,6 @@ func TestNetworkRouteNetworkDeleteWithOptionalParams(t *testing.T) { } func TestNetworkRouteNetworkEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/networkvirtualnetwork_test.go b/zero_trust/networkvirtualnetwork_test.go index 66f6131296e..793bae1beca 100644 --- a/zero_trust/networkvirtualnetwork_test.go +++ b/zero_trust/networkvirtualnetwork_test.go @@ -15,7 +15,6 @@ import ( ) func TestNetworkVirtualNetworkNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,7 +43,6 @@ func TestNetworkVirtualNetworkNewWithOptionalParams(t *testing.T) { } func TestNetworkVirtualNetworkListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -75,7 +73,6 @@ func TestNetworkVirtualNetworkListWithOptionalParams(t *testing.T) { } func TestNetworkVirtualNetworkDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -106,7 +103,6 @@ func TestNetworkVirtualNetworkDelete(t *testing.T) { } func TestNetworkVirtualNetworkEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/organization_test.go b/zero_trust/organization_test.go index e2a06440960..5048d86110e 100644 --- a/zero_trust/organization_test.go +++ b/zero_trust/organization_test.go @@ -15,7 +15,6 @@ import ( ) func TestOrganizationNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -58,7 +57,6 @@ func TestOrganizationNewWithOptionalParams(t *testing.T) { } func TestOrganizationUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -105,7 +103,6 @@ func TestOrganizationUpdateWithOptionalParams(t *testing.T) { } func TestOrganizationListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -132,7 +129,6 @@ func TestOrganizationListWithOptionalParams(t *testing.T) { } func TestOrganizationRevokeUsersWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/riskscoring_test.go b/zero_trust/riskscoring_test.go index 75642159c99..6cfd078b719 100644 --- a/zero_trust/riskscoring_test.go +++ b/zero_trust/riskscoring_test.go @@ -15,7 +15,6 @@ import ( ) func TestRiskScoringGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,7 +48,6 @@ func TestRiskScoringGetWithOptionalParams(t *testing.T) { } func TestRiskScoringReset(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/riskscoringbehaviour_test.go b/zero_trust/riskscoringbehaviour_test.go index cc3b5e43056..3e6c2e0c742 100644 --- a/zero_trust/riskscoringbehaviour_test.go +++ b/zero_trust/riskscoringbehaviour_test.go @@ -15,7 +15,6 @@ import ( ) func TestRiskScoringBehaviourUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -50,7 +49,6 @@ func TestRiskScoringBehaviourUpdateWithOptionalParams(t *testing.T) { } func TestRiskScoringBehaviourGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/riskscoringsummary_test.go b/zero_trust/riskscoringsummary_test.go index 45e9f61c126..7e11ba16c6f 100644 --- a/zero_trust/riskscoringsummary_test.go +++ b/zero_trust/riskscoringsummary_test.go @@ -15,7 +15,6 @@ import ( ) func TestRiskScoringSummaryGetWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/seat_test.go b/zero_trust/seat_test.go index b5ff38ff749..6ecb48dff0c 100644 --- a/zero_trust/seat_test.go +++ b/zero_trust/seat_test.go @@ -15,7 +15,6 @@ import ( ) func TestSeatEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/tunnel_test.go b/zero_trust/tunnel_test.go index 83ca927fc19..23dd55e74e2 100644 --- a/zero_trust/tunnel_test.go +++ b/zero_trust/tunnel_test.go @@ -16,7 +16,6 @@ import ( ) func TestTunnelNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,7 +43,6 @@ func TestTunnelNew(t *testing.T) { } func TestTunnelListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -81,7 +79,6 @@ func TestTunnelListWithOptionalParams(t *testing.T) { } func TestTunnelDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -112,7 +109,6 @@ func TestTunnelDelete(t *testing.T) { } func TestTunnelEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -144,7 +140,6 @@ func TestTunnelEditWithOptionalParams(t *testing.T) { } func TestTunnelGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/tunnelconfiguration_test.go b/zero_trust/tunnelconfiguration_test.go index a1b917a0ff2..ea7640bfbe1 100644 --- a/zero_trust/tunnelconfiguration_test.go +++ b/zero_trust/tunnelconfiguration_test.go @@ -15,7 +15,6 @@ import ( ) func TestTunnelConfigurationUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -143,7 +142,6 @@ func TestTunnelConfigurationUpdateWithOptionalParams(t *testing.T) { } func TestTunnelConfigurationGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/tunnelconnection_test.go b/zero_trust/tunnelconnection_test.go index bbb7625efa7..808aed07684 100644 --- a/zero_trust/tunnelconnection_test.go +++ b/zero_trust/tunnelconnection_test.go @@ -15,7 +15,6 @@ import ( ) func TestTunnelConnectionDelete(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,7 +45,6 @@ func TestTunnelConnectionDelete(t *testing.T) { } func TestTunnelConnectionGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/tunnelconnector_test.go b/zero_trust/tunnelconnector_test.go index bd83783d553..2f0043daf22 100644 --- a/zero_trust/tunnelconnector_test.go +++ b/zero_trust/tunnelconnector_test.go @@ -15,7 +15,6 @@ import ( ) func TestTunnelConnectorGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/tunnelmanagement_test.go b/zero_trust/tunnelmanagement_test.go index 02d7d3e8192..50e7fee993a 100644 --- a/zero_trust/tunnelmanagement_test.go +++ b/zero_trust/tunnelmanagement_test.go @@ -15,7 +15,6 @@ import ( ) func TestTunnelManagementNew(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/tunneltoken_test.go b/zero_trust/tunneltoken_test.go index a9d51f44a6c..b59b8f924c8 100644 --- a/zero_trust/tunneltoken_test.go +++ b/zero_trust/tunneltoken_test.go @@ -15,7 +15,6 @@ import ( ) func TestTunnelTokenGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/activationcheck_test.go b/zones/activationcheck_test.go index 36eca7b1ec1..a5f3a38061a 100644 --- a/zones/activationcheck_test.go +++ b/zones/activationcheck_test.go @@ -15,7 +15,6 @@ import ( ) func TestActivationCheckTrigger(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/customnameserver_test.go b/zones/customnameserver_test.go index 92b61ad5a92..8b91f2a1134 100644 --- a/zones/customnameserver_test.go +++ b/zones/customnameserver_test.go @@ -15,7 +15,6 @@ import ( ) func TestCustomNameserverUpdateWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,7 +42,6 @@ func TestCustomNameserverUpdateWithOptionalParams(t *testing.T) { } func TestCustomNameserverGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/dnssetting_test.go b/zones/dnssetting_test.go index a74202a89cf..6a46603a93c 100644 --- a/zones/dnssetting_test.go +++ b/zones/dnssetting_test.go @@ -15,7 +15,6 @@ import ( ) func TestDNSSettingEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,7 +48,6 @@ func TestDNSSettingEditWithOptionalParams(t *testing.T) { } func TestDNSSettingGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/hold_test.go b/zones/hold_test.go index bebfc691287..12ed5c1378d 100644 --- a/zones/hold_test.go +++ b/zones/hold_test.go @@ -15,7 +15,6 @@ import ( ) func TestHoldNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestHoldNewWithOptionalParams(t *testing.T) { } func TestHoldDeleteWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -69,7 +67,6 @@ func TestHoldDeleteWithOptionalParams(t *testing.T) { } func TestHoldGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingadvancedddos_test.go b/zones/settingadvancedddos_test.go index 7c7345d695a..98bdc6ec032 100644 --- a/zones/settingadvancedddos_test.go +++ b/zones/settingadvancedddos_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingAdvancedDDoSGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingalwaysonline_test.go b/zones/settingalwaysonline_test.go index 8f96509684c..329a3c8b5b2 100644 --- a/zones/settingalwaysonline_test.go +++ b/zones/settingalwaysonline_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingAlwaysOnlineEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingAlwaysOnlineEdit(t *testing.T) { } func TestSettingAlwaysOnlineGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingalwaysusehttps_test.go b/zones/settingalwaysusehttps_test.go index 5988bcf3864..59a4e649d8b 100644 --- a/zones/settingalwaysusehttps_test.go +++ b/zones/settingalwaysusehttps_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingAlwaysUseHTTPSEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingAlwaysUseHTTPSEdit(t *testing.T) { } func TestSettingAlwaysUseHTTPSGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingautomatichttpsrewrite_test.go b/zones/settingautomatichttpsrewrite_test.go index 7f0cf0b4304..3ba2c533c7c 100644 --- a/zones/settingautomatichttpsrewrite_test.go +++ b/zones/settingautomatichttpsrewrite_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingAutomaticHTTPSRewriteEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingAutomaticHTTPSRewriteEdit(t *testing.T) { } func TestSettingAutomaticHTTPSRewriteGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingautomaticplatformoptimization_test.go b/zones/settingautomaticplatformoptimization_test.go index 5613e836463..d8b78efedf2 100644 --- a/zones/settingautomaticplatformoptimization_test.go +++ b/zones/settingautomaticplatformoptimization_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingAutomaticPlatformOptimizationEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,7 +48,6 @@ func TestSettingAutomaticPlatformOptimizationEdit(t *testing.T) { } func TestSettingAutomaticPlatformOptimizationGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingbrotli_test.go b/zones/settingbrotli_test.go index 82758f31ddf..fa5a4036979 100644 --- a/zones/settingbrotli_test.go +++ b/zones/settingbrotli_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingBrotliEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingBrotliEdit(t *testing.T) { } func TestSettingBrotliGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingbrowsercachettl_test.go b/zones/settingbrowsercachettl_test.go index c55138b3b88..aaf48e569cb 100644 --- a/zones/settingbrowsercachettl_test.go +++ b/zones/settingbrowsercachettl_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingBrowserCacheTTLEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingBrowserCacheTTLEdit(t *testing.T) { } func TestSettingBrowserCacheTTLGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingbrowsercheck_test.go b/zones/settingbrowsercheck_test.go index 4c1dfaec1b4..ccfdd0d8489 100644 --- a/zones/settingbrowsercheck_test.go +++ b/zones/settingbrowsercheck_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingBrowserCheckEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingBrowserCheckEdit(t *testing.T) { } func TestSettingBrowserCheckGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingcachelevel_test.go b/zones/settingcachelevel_test.go index d68ac540476..97c7271fb3c 100644 --- a/zones/settingcachelevel_test.go +++ b/zones/settingcachelevel_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingCacheLevelEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingCacheLevelEdit(t *testing.T) { } func TestSettingCacheLevelGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingchallengettl_test.go b/zones/settingchallengettl_test.go index 6cac4f215ec..d73491fd6df 100644 --- a/zones/settingchallengettl_test.go +++ b/zones/settingchallengettl_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingChallengeTTLEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingChallengeTTLEdit(t *testing.T) { } func TestSettingChallengeTTLGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingcipher_test.go b/zones/settingcipher_test.go index 13610188c13..c04cd5bdab0 100644 --- a/zones/settingcipher_test.go +++ b/zones/settingcipher_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingCipherEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingCipherEdit(t *testing.T) { } func TestSettingCipherGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingdevelopmentmode_test.go b/zones/settingdevelopmentmode_test.go index 181bb064811..c20f24f3867 100644 --- a/zones/settingdevelopmentmode_test.go +++ b/zones/settingdevelopmentmode_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingDevelopmentModeEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingDevelopmentModeEdit(t *testing.T) { } func TestSettingDevelopmentModeGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingearlyhint_test.go b/zones/settingearlyhint_test.go index 7c557048192..fe9f33b15c9 100644 --- a/zones/settingearlyhint_test.go +++ b/zones/settingearlyhint_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingEarlyHintEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingEarlyHintEdit(t *testing.T) { } func TestSettingEarlyHintGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingemailobfuscation_test.go b/zones/settingemailobfuscation_test.go index df2b4fd6797..9d322301c8e 100644 --- a/zones/settingemailobfuscation_test.go +++ b/zones/settingemailobfuscation_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingEmailObfuscationEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingEmailObfuscationEdit(t *testing.T) { } func TestSettingEmailObfuscationGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingfontsetting_test.go b/zones/settingfontsetting_test.go index 9d2b7d986e2..50415fcc9e5 100644 --- a/zones/settingfontsetting_test.go +++ b/zones/settingfontsetting_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingFontSettingEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingFontSettingEdit(t *testing.T) { } func TestSettingFontSettingGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingh2prioritization_test.go b/zones/settingh2prioritization_test.go index 4f31fcf190c..78f58ed01a9 100644 --- a/zones/settingh2prioritization_test.go +++ b/zones/settingh2prioritization_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingH2PrioritizationEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestSettingH2PrioritizationEditWithOptionalParams(t *testing.T) { } func TestSettingH2PrioritizationGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settinghotlinkprotection_test.go b/zones/settinghotlinkprotection_test.go index 3462d4a6610..6c0b23e1ac5 100644 --- a/zones/settinghotlinkprotection_test.go +++ b/zones/settinghotlinkprotection_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingHotlinkProtectionEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingHotlinkProtectionEdit(t *testing.T) { } func TestSettingHotlinkProtectionGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settinghttp2_test.go b/zones/settinghttp2_test.go index 175b717cd5b..c2a7b286600 100644 --- a/zones/settinghttp2_test.go +++ b/zones/settinghttp2_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingHTTP2Edit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingHTTP2Edit(t *testing.T) { } func TestSettingHTTP2Get(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settinghttp3_test.go b/zones/settinghttp3_test.go index baa4ce3bcdb..c22904b30ed 100644 --- a/zones/settinghttp3_test.go +++ b/zones/settinghttp3_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingHTTP3Edit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingHTTP3Edit(t *testing.T) { } func TestSettingHTTP3Get(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingimageresizing_test.go b/zones/settingimageresizing_test.go index d3a8470bb9d..26b8f11ad7d 100644 --- a/zones/settingimageresizing_test.go +++ b/zones/settingimageresizing_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingImageResizingEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestSettingImageResizingEditWithOptionalParams(t *testing.T) { } func TestSettingImageResizingGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingipgeolocation_test.go b/zones/settingipgeolocation_test.go index 9590c95c797..de34426c82e 100644 --- a/zones/settingipgeolocation_test.go +++ b/zones/settingipgeolocation_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingIPGeolocationEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingIPGeolocationEdit(t *testing.T) { } func TestSettingIPGeolocationGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingipv6_test.go b/zones/settingipv6_test.go index a415a57355a..0c4676f47db 100644 --- a/zones/settingipv6_test.go +++ b/zones/settingipv6_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingIPV6Edit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingIPV6Edit(t *testing.T) { } func TestSettingIPV6Get(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingminify_test.go b/zones/settingminify_test.go index 5443ea161d7..31d38a35d6d 100644 --- a/zones/settingminify_test.go +++ b/zones/settingminify_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingMinifyEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,7 +45,6 @@ func TestSettingMinifyEditWithOptionalParams(t *testing.T) { } func TestSettingMinifyGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingmintlsversion_test.go b/zones/settingmintlsversion_test.go index a54dbfadb9f..49628aea26a 100644 --- a/zones/settingmintlsversion_test.go +++ b/zones/settingmintlsversion_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingMinTLSVersionEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingMinTLSVersionEdit(t *testing.T) { } func TestSettingMinTLSVersionGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingmirage_test.go b/zones/settingmirage_test.go index 472a748bc1e..52b29b901e5 100644 --- a/zones/settingmirage_test.go +++ b/zones/settingmirage_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingMirageEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingMirageEdit(t *testing.T) { } func TestSettingMirageGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingmobileredirect_test.go b/zones/settingmobileredirect_test.go index 74473fc0648..5b76c1be3e6 100644 --- a/zones/settingmobileredirect_test.go +++ b/zones/settingmobileredirect_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingMobileRedirectEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,7 +45,6 @@ func TestSettingMobileRedirectEditWithOptionalParams(t *testing.T) { } func TestSettingMobileRedirectGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingnel_test.go b/zones/settingnel_test.go index e3187fd522a..9608e401d66 100644 --- a/zones/settingnel_test.go +++ b/zones/settingnel_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingNELEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -47,7 +46,6 @@ func TestSettingNELEditWithOptionalParams(t *testing.T) { } func TestSettingNELGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingopportunisticencryption_test.go b/zones/settingopportunisticencryption_test.go index ed76578f739..9b07abd94ed 100644 --- a/zones/settingopportunisticencryption_test.go +++ b/zones/settingopportunisticencryption_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingOpportunisticEncryptionEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingOpportunisticEncryptionEdit(t *testing.T) { } func TestSettingOpportunisticEncryptionGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingopportunisticonion_test.go b/zones/settingopportunisticonion_test.go index 7cedd455c2a..1227c220b15 100644 --- a/zones/settingopportunisticonion_test.go +++ b/zones/settingopportunisticonion_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingOpportunisticOnionEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingOpportunisticOnionEdit(t *testing.T) { } func TestSettingOpportunisticOnionGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingorangetoorange_test.go b/zones/settingorangetoorange_test.go index dfed5834f13..9f9685aacc0 100644 --- a/zones/settingorangetoorange_test.go +++ b/zones/settingorangetoorange_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingOrangeToOrangeEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestSettingOrangeToOrangeEditWithOptionalParams(t *testing.T) { } func TestSettingOrangeToOrangeGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingoriginerrorpagepassthru_test.go b/zones/settingoriginerrorpagepassthru_test.go index e99a2fa494d..e3291bbbf10 100644 --- a/zones/settingoriginerrorpagepassthru_test.go +++ b/zones/settingoriginerrorpagepassthru_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingOriginErrorPagePassThruEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingOriginErrorPagePassThruEdit(t *testing.T) { } func TestSettingOriginErrorPagePassThruGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingoriginmaxhttpversion_test.go b/zones/settingoriginmaxhttpversion_test.go index 97775b7e58d..13e585135fd 100644 --- a/zones/settingoriginmaxhttpversion_test.go +++ b/zones/settingoriginmaxhttpversion_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingOriginMaxHTTPVersionEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingOriginMaxHTTPVersionEdit(t *testing.T) { } func TestSettingOriginMaxHTTPVersionGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingpolish_test.go b/zones/settingpolish_test.go index a43ad239246..f63ac3ac705 100644 --- a/zones/settingpolish_test.go +++ b/zones/settingpolish_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingPolishEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestSettingPolishEditWithOptionalParams(t *testing.T) { } func TestSettingPolishGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingprefetchpreload_test.go b/zones/settingprefetchpreload_test.go index 2b4c1ed412a..2cbb4555c02 100644 --- a/zones/settingprefetchpreload_test.go +++ b/zones/settingprefetchpreload_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingPrefetchPreloadEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingPrefetchPreloadEdit(t *testing.T) { } func TestSettingPrefetchPreloadGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingproxyreadtimeout_test.go b/zones/settingproxyreadtimeout_test.go index aaf8688af73..f6d8c3cdd96 100644 --- a/zones/settingproxyreadtimeout_test.go +++ b/zones/settingproxyreadtimeout_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingProxyReadTimeoutEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestSettingProxyReadTimeoutEditWithOptionalParams(t *testing.T) { } func TestSettingProxyReadTimeoutGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingpseudoipv4_test.go b/zones/settingpseudoipv4_test.go index abff46bbbdb..a7364e5993f 100644 --- a/zones/settingpseudoipv4_test.go +++ b/zones/settingpseudoipv4_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingPseudoIPV4Edit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingPseudoIPV4Edit(t *testing.T) { } func TestSettingPseudoIPV4Get(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingresponsebuffering_test.go b/zones/settingresponsebuffering_test.go index c655f89535c..0c86fd37336 100644 --- a/zones/settingresponsebuffering_test.go +++ b/zones/settingresponsebuffering_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingResponseBufferingEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingResponseBufferingEdit(t *testing.T) { } func TestSettingResponseBufferingGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingrocketloader_test.go b/zones/settingrocketloader_test.go index 80aa014fa02..9d98f0033c7 100644 --- a/zones/settingrocketloader_test.go +++ b/zones/settingrocketloader_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingRocketLoaderEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestSettingRocketLoaderEditWithOptionalParams(t *testing.T) { } func TestSettingRocketLoaderGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingsecurityheader_test.go b/zones/settingsecurityheader_test.go index 2d5ff83cdc6..ffb43b33e04 100644 --- a/zones/settingsecurityheader_test.go +++ b/zones/settingsecurityheader_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingSecurityHeaderEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,7 +48,6 @@ func TestSettingSecurityHeaderEditWithOptionalParams(t *testing.T) { } func TestSettingSecurityHeaderGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingsecuritylevel_test.go b/zones/settingsecuritylevel_test.go index a1d85924e5c..f23fd5fb356 100644 --- a/zones/settingsecuritylevel_test.go +++ b/zones/settingsecuritylevel_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingSecurityLevelEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingSecurityLevelEdit(t *testing.T) { } func TestSettingSecurityLevelGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingserversideexclude_test.go b/zones/settingserversideexclude_test.go index 44ff638ded4..fee585a6e77 100644 --- a/zones/settingserversideexclude_test.go +++ b/zones/settingserversideexclude_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingServerSideExcludeEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingServerSideExcludeEdit(t *testing.T) { } func TestSettingServerSideExcludeGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingsortquerystringforcache_test.go b/zones/settingsortquerystringforcache_test.go index f2d31f7ac84..b3dd9d8a958 100644 --- a/zones/settingsortquerystringforcache_test.go +++ b/zones/settingsortquerystringforcache_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingSortQueryStringForCacheEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingSortQueryStringForCacheEdit(t *testing.T) { } func TestSettingSortQueryStringForCacheGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingssl_test.go b/zones/settingssl_test.go index 69309ab14d4..ba1f25ff77c 100644 --- a/zones/settingssl_test.go +++ b/zones/settingssl_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingSSLEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingSSLEdit(t *testing.T) { } func TestSettingSSLGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingsslrecommender_test.go b/zones/settingsslrecommender_test.go index e4ecc3a40ae..888e7f831d6 100644 --- a/zones/settingsslrecommender_test.go +++ b/zones/settingsslrecommender_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingSSLRecommenderEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestSettingSSLRecommenderEditWithOptionalParams(t *testing.T) { } func TestSettingSSLRecommenderGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingtls13_test.go b/zones/settingtls13_test.go index 1ccad879a2c..f523aadafee 100644 --- a/zones/settingtls13_test.go +++ b/zones/settingtls13_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingTLS1_3Edit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingTLS1_3Edit(t *testing.T) { } func TestSettingTLS1_3Get(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingtlsclientauth_test.go b/zones/settingtlsclientauth_test.go index 0aa368b613c..fa6580e10db 100644 --- a/zones/settingtlsclientauth_test.go +++ b/zones/settingtlsclientauth_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingTLSClientAuthEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingTLSClientAuthEdit(t *testing.T) { } func TestSettingTLSClientAuthGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingtrueclientipheader_test.go b/zones/settingtrueclientipheader_test.go index 02135c9ca88..6a41c3d631e 100644 --- a/zones/settingtrueclientipheader_test.go +++ b/zones/settingtrueclientipheader_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingTrueClientIPHeaderEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingTrueClientIPHeaderEdit(t *testing.T) { } func TestSettingTrueClientIPHeaderGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingwaf_test.go b/zones/settingwaf_test.go index a0d703798f9..22bbdaf70c9 100644 --- a/zones/settingwaf_test.go +++ b/zones/settingwaf_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingWAFEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingWAFEdit(t *testing.T) { } func TestSettingWAFGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingwebp_test.go b/zones/settingwebp_test.go index e7991c284be..76f6773bb9c 100644 --- a/zones/settingwebp_test.go +++ b/zones/settingwebp_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingWebPEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingWebPEdit(t *testing.T) { } func TestSettingWebPGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingwebsocket_test.go b/zones/settingwebsocket_test.go index b7366f67e3f..fc1810779cb 100644 --- a/zones/settingwebsocket_test.go +++ b/zones/settingwebsocket_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingWebsocketEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingWebsocketEdit(t *testing.T) { } func TestSettingWebsocketGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingzerortt_test.go b/zones/settingzerortt_test.go index 16cd8ce94cb..1355544f33b 100644 --- a/zones/settingzerortt_test.go +++ b/zones/settingzerortt_test.go @@ -15,7 +15,6 @@ import ( ) func TestSettingZeroRTTEdit(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,7 +41,6 @@ func TestSettingZeroRTTEdit(t *testing.T) { } func TestSettingZeroRTTGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/subscription_test.go b/zones/subscription_test.go index 36e8c6cc36c..95fb8e05282 100644 --- a/zones/subscription_test.go +++ b/zones/subscription_test.go @@ -16,7 +16,6 @@ import ( ) func TestSubscriptionNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -77,7 +76,6 @@ func TestSubscriptionNewWithOptionalParams(t *testing.T) { } func TestSubscriptionList(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -101,7 +99,6 @@ func TestSubscriptionList(t *testing.T) { } func TestSubscriptionGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/zone_test.go b/zones/zone_test.go index b88e6d11777..ce74a70244c 100644 --- a/zones/zone_test.go +++ b/zones/zone_test.go @@ -15,7 +15,6 @@ import ( ) func TestZoneNewWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,7 +44,6 @@ func TestZoneNewWithOptionalParams(t *testing.T) { } func TestZoneListWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -107,7 +105,6 @@ func TestZoneDelete(t *testing.T) { } func TestZoneEditWithOptionalParams(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -138,7 +135,6 @@ func TestZoneEditWithOptionalParams(t *testing.T) { } func TestZoneGet(t *testing.T) { - t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL From bbc396f48e0c9084fd5a2ef8b8b44436c740a41f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 19 Apr 2024 05:14:23 +0000 Subject: [PATCH 40/52] feat(api): update via SDK Studio (#1824) --- accounts/account_test.go | 3 +++ accounts/member_test.go | 5 +++++ accounts/role_test.go | 2 ++ acm/totaltls_test.go | 2 ++ addressing/addressmap_test.go | 5 +++++ addressing/addressmapaccount_test.go | 2 ++ addressing/addressmapip_test.go | 2 ++ addressing/addressmapzone_test.go | 2 ++ addressing/loadocument_test.go | 1 + addressing/loadocumentdownload_test.go | 1 + addressing/prefix_test.go | 5 +++++ addressing/prefixbgpbinding_test.go | 4 ++++ addressing/prefixbgpprefix_test.go | 3 +++ addressing/prefixbgpstatus_test.go | 2 ++ addressing/prefixdelegation_test.go | 3 +++ addressing/service_test.go | 1 + alerting/availablealert_test.go | 1 + alerting/destinationeligible_test.go | 1 + alerting/destinationpagerduty_test.go | 4 ++++ alerting/destinationwebhook_test.go | 5 +++++ alerting/history_test.go | 1 + alerting/policy_test.go | 5 +++++ argo/smartrouting_test.go | 2 ++ argo/tieredcaching_test.go | 2 ++ audit_logs/auditlog_test.go | 1 + billing/profile_test.go | 1 + bot_management/botmanagement_test.go | 2 ++ brand_protection/brandprotection_test.go | 2 ++ cache/cache_test.go | 1 + cache/cachereserve_test.go | 4 ++++ cache/regionaltieredcache_test.go | 2 ++ cache/smarttieredcache_test.go | 3 +++ cache/variant_test.go | 3 +++ calls/call_test.go | 5 +++++ certificate_authorities/hostnameassociation_test.go | 2 ++ challenges/widget_test.go | 6 ++++++ client_certificates/clientcertificate_test.go | 5 +++++ cloudforce_one/request_test.go | 8 ++++++++ cloudforce_one/requestmessage_test.go | 4 ++++ cloudforce_one/requestpriority_test.go | 5 +++++ custom_certificates/customcertificate_test.go | 5 +++++ custom_certificates/prioritize_test.go | 1 + custom_hostnames/customhostname_test.go | 5 +++++ custom_hostnames/fallbackorigin_test.go | 3 +++ custom_nameservers/customnameserver_test.go | 5 +++++ d1/database_test.go | 5 +++++ dcv_delegation/uuid_test.go | 1 + diagnostics/traceroute_test.go | 1 + dns/analyticsreport_test.go | 1 + dns/analyticsreportbytime_test.go | 1 + dns/firewall_test.go | 5 +++++ dns/firewallanalyticsreport_test.go | 1 + dns/firewallanalyticsreportbytime_test.go | 1 + dns/record_test.go | 9 +++++++++ dnssec/dnssec_test.go | 3 +++ durable_objects/namespace_test.go | 1 + durable_objects/namespaceobject_test.go | 1 + email_routing/address_test.go | 4 ++++ email_routing/dns_test.go | 1 + email_routing/emailrouting_test.go | 3 +++ email_routing/rule_test.go | 5 +++++ email_routing/rulecatchall_test.go | 2 ++ event_notifications/r2configuration_test.go | 1 + event_notifications/r2configurationqueue_test.go | 2 ++ filters/filter_test.go | 5 +++++ firewall/accessrule_test.go | 5 +++++ firewall/lockdown_test.go | 5 +++++ firewall/rule_test.go | 6 ++++++ firewall/uarule_test.go | 5 +++++ firewall/wafoverride_test.go | 5 +++++ firewall/wafpackage_test.go | 2 ++ firewall/wafpackagegroup_test.go | 3 +++ firewall/wafpackagerule_test.go | 3 +++ healthchecks/healthcheck_test.go | 6 ++++++ healthchecks/preview_test.go | 3 +++ hostnames/settingtls_test.go | 3 +++ hyperdrive/config_test.go | 6 ++++++ images/v1_test.go | 5 +++++ images/v1blob_test.go | 1 + images/v1key_test.go | 3 +++ images/v1stat_test.go | 1 + images/v1variant_test.go | 5 +++++ images/v2_test.go | 1 + images/v2directupload_test.go | 1 + intel/asn_test.go | 1 + intel/asnsubnet_test.go | 1 + intel/attacksurfacereportissue_test.go | 5 +++++ intel/attacksurfacereportissuetype_test.go | 1 + intel/dns_test.go | 1 + intel/domain_test.go | 1 + intel/domainbulk_test.go | 1 + intel/domainhistory_test.go | 1 + intel/indicatorfeed_test.go | 5 +++++ intel/indicatorfeedpermission_test.go | 3 +++ intel/ip_test.go | 1 + intel/iplist_test.go | 1 + intel/miscategorization_test.go | 1 + intel/sinkhole_test.go | 1 + intel/whois_test.go | 1 + ips/ip_test.go | 1 + keyless_certificates/keylesscertificate_test.go | 5 +++++ kv/namespace_test.go | 4 ++++ kv/namespacebulk_test.go | 2 ++ kv/namespacekey_test.go | 1 + kv/namespacemetadata_test.go | 1 + kv/namespacevalue_test.go | 3 +++ load_balancers/loadbalancer_test.go | 6 ++++++ load_balancers/monitor_test.go | 6 ++++++ load_balancers/monitorpreview_test.go | 1 + load_balancers/monitorreference_test.go | 1 + load_balancers/pool_test.go | 6 ++++++ load_balancers/poolhealth_test.go | 2 ++ load_balancers/poolreference_test.go | 1 + load_balancers/preview_test.go | 1 + load_balancers/region_test.go | 2 ++ load_balancers/search_test.go | 1 + logpush/datasetfield_test.go | 1 + logpush/datasetjob_test.go | 1 + logpush/edge_test.go | 2 ++ logpush/job_test.go | 5 +++++ logpush/ownership_test.go | 2 ++ logpush/validate_test.go | 2 ++ logs/controlcmbconfig_test.go | 3 +++ logs/controlretentionflag_test.go | 2 ++ logs/rayid_test.go | 1 + logs/received_test.go | 1 + logs/receivedfield_test.go | 1 + magic_network_monitoring/config_test.go | 5 +++++ magic_network_monitoring/configfull_test.go | 1 + magic_network_monitoring/rule_test.go | 6 ++++++ magic_network_monitoring/ruleadvertisement_test.go | 1 + magic_transit/cfinterconnect_test.go | 3 +++ magic_transit/gretunnel_test.go | 5 +++++ magic_transit/ipsectunnel_test.go | 6 ++++++ magic_transit/route_test.go | 6 ++++++ magic_transit/site_test.go | 5 +++++ magic_transit/siteacl_test.go | 5 +++++ magic_transit/sitelan_test.go | 5 +++++ magic_transit/sitewan_test.go | 5 +++++ managed_headers/managedheader_test.go | 2 ++ memberships/membership_test.go | 4 ++++ mtls_certificates/association_test.go | 1 + mtls_certificates/mtlscertificate_test.go | 4 ++++ origin_ca_certificates/origincacertificate_test.go | 4 ++++ .../originpostquantumencryption_test.go | 2 ++ origin_tls_client_auth/hostname_test.go | 2 ++ origin_tls_client_auth/hostnamecertificate_test.go | 4 ++++ origin_tls_client_auth/origintlsclientauth_test.go | 4 ++++ origin_tls_client_auth/setting_test.go | 2 ++ page_shield/connection_test.go | 2 ++ page_shield/pageshield_test.go | 2 ++ page_shield/policy_test.go | 5 +++++ page_shield/script_test.go | 2 ++ pagerules/pagerule_test.go | 6 ++++++ pagerules/setting_test.go | 1 + pages/project_test.go | 6 ++++++ pages/projectdeployment_test.go | 6 ++++++ pages/projectdeploymenthistorylog_test.go | 1 + pages/projectdomain_test.go | 5 +++++ pcaps/download_test.go | 1 + pcaps/ownership_test.go | 4 ++++ pcaps/pcap_test.go | 3 +++ plans/plan_test.go | 2 ++ queues/consumer_test.go | 4 ++++ queues/message_test.go | 2 ++ queues/queue_test.go | 5 +++++ r2/bucket_test.go | 4 ++++ r2/sippy_test.go | 3 +++ radar/annotationoutage_test.go | 2 ++ radar/as112_test.go | 1 + radar/as112summary_test.go | 6 ++++++ radar/as112timeseriesgroup_test.go | 6 ++++++ radar/as112top_test.go | 4 ++++ radar/attacklayer3_test.go | 1 + radar/attacklayer3summary_test.go | 6 ++++++ radar/attacklayer3timeseriesgroup_test.go | 8 ++++++++ radar/attacklayer3top_test.go | 3 +++ radar/attacklayer3toplocation_test.go | 2 ++ radar/attacklayer7_test.go | 1 + radar/attacklayer7summary_test.go | 6 ++++++ radar/attacklayer7timeseriesgroup_test.go | 8 ++++++++ radar/attacklayer7top_test.go | 3 +++ radar/attacklayer7topase_test.go | 1 + radar/attacklayer7toplocation_test.go | 2 ++ radar/bgp_test.go | 1 + radar/bgphijackevent_test.go | 1 + radar/bgpleakevent_test.go | 1 + radar/bgproute_test.go | 4 ++++ radar/bgptop_test.go | 1 + radar/bgptopase_test.go | 2 ++ radar/connectiontampering_test.go | 2 ++ radar/dataset_test.go | 3 +++ radar/dnstop_test.go | 2 ++ radar/emailroutingsummary_test.go | 6 ++++++ radar/emailroutingtimeseriesgroup_test.go | 6 ++++++ radar/emailsecuritysummary_test.go | 9 +++++++++ radar/emailsecuritytimeseriesgroup_test.go | 9 +++++++++ radar/emailsecuritytoptld_test.go | 1 + radar/emailsecuritytoptldmalicious_test.go | 1 + radar/emailsecuritytoptldspam_test.go | 1 + radar/emailsecuritytoptldspoof_test.go | 1 + radar/entity_test.go | 1 + radar/entityasn_test.go | 4 ++++ radar/entitylocation_test.go | 2 ++ radar/httpase_test.go | 1 + radar/httpasebotclass_test.go | 1 + radar/httpasedevicetype_test.go | 1 + radar/httpasehttpmethod_test.go | 1 + radar/httpasehttpprotocol_test.go | 1 + radar/httpaseipversion_test.go | 1 + radar/httpaseos_test.go | 1 + radar/httpasetlsversion_test.go | 1 + radar/httplocation_test.go | 1 + radar/httplocationbotclass_test.go | 1 + radar/httplocationdevicetype_test.go | 1 + radar/httplocationhttpmethod_test.go | 1 + radar/httplocationhttpprotocol_test.go | 1 + radar/httplocationipversion_test.go | 1 + radar/httplocationos_test.go | 1 + radar/httplocationtlsversion_test.go | 1 + radar/httpsummary_test.go | 7 +++++++ radar/httptimeseriesgroup_test.go | 9 +++++++++ radar/httptop_test.go | 2 ++ radar/netflow_test.go | 1 + radar/netflowtop_test.go | 2 ++ radar/qualityiqi_test.go | 2 ++ radar/qualityspeed_test.go | 2 ++ radar/qualityspeedtop_test.go | 2 ++ radar/ranking_test.go | 2 ++ radar/rankingdomain_test.go | 1 + radar/search_test.go | 1 + radar/trafficanomaly_test.go | 1 + radar/trafficanomalylocation_test.go | 1 + radar/verifiedbottop_test.go | 2 ++ rate_limits/ratelimit_test.go | 5 +++++ rate_plans/rateplan_test.go | 1 + registrar/domain_test.go | 3 +++ request_tracers/trace_test.go | 1 + rules/list_test.go | 5 +++++ rules/listbulkoperation_test.go | 1 + rules/listitem_test.go | 5 +++++ rulesets/phase_test.go | 2 ++ rulesets/phaseversion_test.go | 2 ++ rulesets/rule_test.go | 3 +++ rulesets/ruleset_test.go | 5 +++++ rulesets/version_test.go | 3 +++ rulesets/versionbytag_test.go | 1 + rum/rule_test.go | 4 ++++ rum/siteinfo_test.go | 5 +++++ secondary_dns/acl_test.go | 5 +++++ secondary_dns/forceaxfr_test.go | 1 + secondary_dns/incoming_test.go | 4 ++++ secondary_dns/outgoing_test.go | 7 +++++++ secondary_dns/outgoingstatus_test.go | 1 + secondary_dns/peer_test.go | 5 +++++ secondary_dns/tsig_test.go | 5 +++++ snippets/content_test.go | 1 + snippets/rule_test.go | 2 ++ snippets/snippet_test.go | 4 ++++ spectrum/analyticsaggregatecurrent_test.go | 1 + spectrum/analyticseventbytime_test.go | 1 + spectrum/analyticseventsummary_test.go | 1 + spectrum/app_test.go | 5 +++++ speed/availability_test.go | 1 + speed/page_test.go | 1 + speed/schedule_test.go | 1 + speed/speed_test.go | 3 +++ speed/test_test.go | 4 ++++ ssl/analyze_test.go | 1 + ssl/certificatepack_test.go | 4 ++++ ssl/certificatepackorder_test.go | 1 + ssl/certificatepackquota_test.go | 1 + ssl/recommendation_test.go | 1 + ssl/universalsetting_test.go | 2 ++ ssl/verification_test.go | 2 ++ storage/analytics_test.go | 2 ++ stream/audiotrack_test.go | 4 ++++ stream/caption_test.go | 1 + stream/captionlanguage_test.go | 3 +++ stream/captionlanguagevtt_test.go | 1 + stream/clip_test.go | 1 + stream/copy_test.go | 1 + stream/directupload_test.go | 1 + stream/download_test.go | 3 +++ stream/embed_test.go | 1 + stream/key_test.go | 3 +++ stream/liveinput_test.go | 5 +++++ stream/liveinputoutput_test.go | 4 ++++ stream/stream_test.go | 4 ++++ stream/token_test.go | 1 + stream/video_test.go | 1 + stream/watermark_test.go | 4 ++++ stream/webhook_test.go | 3 +++ subscriptions/subscription_test.go | 5 +++++ url_normalization/urlnormalization_test.go | 2 ++ url_scanner/scan_test.go | 4 ++++ url_scanner/urlscanner_test.go | 1 + user/auditlog_test.go | 1 + user/billinghistory_test.go | 1 + user/billingprofile_test.go | 1 + user/invite_test.go | 3 +++ user/organization_test.go | 3 +++ user/subscription_test.go | 4 ++++ user/token_test.go | 6 ++++++ user/tokenpermissiongroup_test.go | 1 + user/tokenvalue_test.go | 1 + user/user_test.go | 2 ++ vectorize/index_test.go | 10 ++++++++++ waiting_rooms/event_test.go | 6 ++++++ waiting_rooms/eventdetail_test.go | 1 + waiting_rooms/page_test.go | 1 + waiting_rooms/rule_test.go | 5 +++++ waiting_rooms/setting_test.go | 3 +++ waiting_rooms/status_test.go | 1 + waiting_rooms/waitingroom_test.go | 6 ++++++ warp_connector/warpconnector_test.go | 6 ++++++ web3/hostname_test.go | 5 +++++ web3/hostnameipfsuniversalpathcontentlist_test.go | 2 ++ web3/hostnameipfsuniversalpathcontentlistentry_test.go | 5 +++++ workers/accountsetting_test.go | 2 ++ workers/ai_test.go | 1 + workers/domain_test.go | 4 ++++ workers/script_test.go | 4 ++++ workers/scriptcontent_test.go | 2 ++ workers/scriptdeployment_test.go | 2 ++ workers/scriptschedule_test.go | 2 ++ workers/scriptsetting_test.go | 2 ++ workers/scripttail_test.go | 3 +++ workers/scriptversion_test.go | 3 +++ workers/subdomain_test.go | 2 ++ workers_for_platforms/dispatchnamespace_test.go | 4 ++++ workers_for_platforms/dispatchnamespacescript_test.go | 3 +++ .../dispatchnamespacescriptbinding_test.go | 1 + .../dispatchnamespacescriptcontent_test.go | 2 ++ .../dispatchnamespacescriptsecret_test.go | 2 ++ .../dispatchnamespacescriptsetting_test.go | 2 ++ .../dispatchnamespacescripttag_test.go | 3 +++ zero_trust/accessapplication_test.go | 6 ++++++ zero_trust/accessapplicationca_test.go | 4 ++++ zero_trust/accessapplicationpolicy_test.go | 5 +++++ zero_trust/accessapplicationuserpolicycheck_test.go | 1 + zero_trust/accessbookmark_test.go | 5 +++++ zero_trust/accesscertificate_test.go | 5 +++++ zero_trust/accesscertificatesetting_test.go | 2 ++ zero_trust/accesscustompage_test.go | 5 +++++ zero_trust/accessgroup_test.go | 5 +++++ zero_trust/accesskey_test.go | 3 +++ zero_trust/accesslogaccessrequest_test.go | 1 + zero_trust/accessservicetoken_test.go | 6 ++++++ zero_trust/accesstag_test.go | 5 +++++ zero_trust/accessuser_test.go | 1 + zero_trust/accessuseractivesession_test.go | 2 ++ zero_trust/accessuserfailedlogin_test.go | 1 + zero_trust/accessuserlastseenidentity_test.go | 1 + zero_trust/connectivitysetting_test.go | 2 ++ zero_trust/device_test.go | 2 ++ zero_trust/devicedextest_test.go | 5 +++++ zero_trust/devicenetwork_test.go | 5 +++++ zero_trust/deviceoverridecode_test.go | 1 + zero_trust/devicepolicy_test.go | 5 +++++ zero_trust/devicepolicydefaultpolicy_test.go | 1 + zero_trust/devicepolicyexclude_test.go | 3 +++ zero_trust/devicepolicyfallbackdomain_test.go | 3 +++ zero_trust/devicepolicyinclude_test.go | 3 +++ zero_trust/deviceposture_test.go | 5 +++++ zero_trust/devicepostureintegration_test.go | 5 +++++ zero_trust/devicerevoke_test.go | 1 + zero_trust/devicesetting_test.go | 2 ++ zero_trust/deviceunrevoke_test.go | 1 + zero_trust/dexcolo_test.go | 1 + zero_trust/dexfleetstatus_test.go | 2 ++ zero_trust/dexfleetstatusdevice_test.go | 1 + zero_trust/dexhttptest_test.go | 1 + zero_trust/dexhttptestpercentile_test.go | 1 + zero_trust/dextest_test.go | 1 + zero_trust/dextestuniquedevice_test.go | 1 + zero_trust/dextraceroutetest_test.go | 3 +++ zero_trust/dextraceroutetestresultnetworkpath_test.go | 1 + zero_trust/dlpdataset_test.go | 5 +++++ zero_trust/dlpdatasetupload_test.go | 2 ++ zero_trust/dlppattern_test.go | 1 + zero_trust/dlppayloadlog_test.go | 2 ++ zero_trust/dlpprofile_test.go | 2 ++ zero_trust/dlpprofilecustom_test.go | 4 ++++ zero_trust/dlpprofilepredefined_test.go | 2 ++ zero_trust/gateway_test.go | 2 ++ zero_trust/gatewayapptype_test.go | 1 + zero_trust/gatewayauditsshsetting_test.go | 2 ++ zero_trust/gatewaycategory_test.go | 1 + zero_trust/gatewayconfiguration_test.go | 3 +++ zero_trust/gatewaylist_test.go | 6 ++++++ zero_trust/gatewaylistitem_test.go | 1 + zero_trust/gatewaylocation_test.go | 5 +++++ zero_trust/gatewaylogging_test.go | 2 ++ zero_trust/gatewayproxyendpoint_test.go | 5 +++++ zero_trust/gatewayrule_test.go | 5 +++++ zero_trust/identityprovider_test.go | 5 +++++ zero_trust/networkroute_test.go | 4 ++++ zero_trust/networkrouteip_test.go | 1 + zero_trust/networkroutenetwork_test.go | 3 +++ zero_trust/networkvirtualnetwork_test.go | 4 ++++ zero_trust/organization_test.go | 4 ++++ zero_trust/riskscoring_test.go | 2 ++ zero_trust/riskscoringbehaviour_test.go | 2 ++ zero_trust/riskscoringsummary_test.go | 1 + zero_trust/seat_test.go | 1 + zero_trust/tunnel_test.go | 5 +++++ zero_trust/tunnelconfiguration_test.go | 2 ++ zero_trust/tunnelconnection_test.go | 2 ++ zero_trust/tunnelconnector_test.go | 1 + zero_trust/tunnelmanagement_test.go | 1 + zero_trust/tunneltoken_test.go | 1 + zones/activationcheck_test.go | 1 + zones/customnameserver_test.go | 2 ++ zones/dnssetting_test.go | 2 ++ zones/hold_test.go | 3 +++ zones/settingadvancedddos_test.go | 1 + zones/settingalwaysonline_test.go | 2 ++ zones/settingalwaysusehttps_test.go | 2 ++ zones/settingautomatichttpsrewrite_test.go | 2 ++ zones/settingautomaticplatformoptimization_test.go | 2 ++ zones/settingbrotli_test.go | 2 ++ zones/settingbrowsercachettl_test.go | 2 ++ zones/settingbrowsercheck_test.go | 2 ++ zones/settingcachelevel_test.go | 2 ++ zones/settingchallengettl_test.go | 2 ++ zones/settingcipher_test.go | 2 ++ zones/settingdevelopmentmode_test.go | 2 ++ zones/settingearlyhint_test.go | 2 ++ zones/settingemailobfuscation_test.go | 2 ++ zones/settingfontsetting_test.go | 2 ++ zones/settingh2prioritization_test.go | 2 ++ zones/settinghotlinkprotection_test.go | 2 ++ zones/settinghttp2_test.go | 2 ++ zones/settinghttp3_test.go | 2 ++ zones/settingimageresizing_test.go | 2 ++ zones/settingipgeolocation_test.go | 2 ++ zones/settingipv6_test.go | 2 ++ zones/settingminify_test.go | 2 ++ zones/settingmintlsversion_test.go | 2 ++ zones/settingmirage_test.go | 2 ++ zones/settingmobileredirect_test.go | 2 ++ zones/settingnel_test.go | 2 ++ zones/settingopportunisticencryption_test.go | 2 ++ zones/settingopportunisticonion_test.go | 2 ++ zones/settingorangetoorange_test.go | 2 ++ zones/settingoriginerrorpagepassthru_test.go | 2 ++ zones/settingoriginmaxhttpversion_test.go | 2 ++ zones/settingpolish_test.go | 2 ++ zones/settingprefetchpreload_test.go | 2 ++ zones/settingproxyreadtimeout_test.go | 2 ++ zones/settingpseudoipv4_test.go | 2 ++ zones/settingresponsebuffering_test.go | 2 ++ zones/settingrocketloader_test.go | 2 ++ zones/settingsecurityheader_test.go | 2 ++ zones/settingsecuritylevel_test.go | 2 ++ zones/settingserversideexclude_test.go | 2 ++ zones/settingsortquerystringforcache_test.go | 2 ++ zones/settingssl_test.go | 2 ++ zones/settingsslrecommender_test.go | 2 ++ zones/settingtls13_test.go | 2 ++ zones/settingtlsclientauth_test.go | 2 ++ zones/settingtrueclientipheader_test.go | 2 ++ zones/settingwaf_test.go | 2 ++ zones/settingwebp_test.go | 2 ++ zones/settingwebsocket_test.go | 2 ++ zones/settingzerortt_test.go | 2 ++ zones/subscription_test.go | 3 +++ zones/zone_test.go | 4 ++++ 469 files changed, 1268 insertions(+) diff --git a/accounts/account_test.go b/accounts/account_test.go index dd676ac759c..498f9e3410f 100644 --- a/accounts/account_test.go +++ b/accounts/account_test.go @@ -15,6 +15,7 @@ import ( ) func TestAccountUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -48,6 +49,7 @@ func TestAccountUpdateWithOptionalParams(t *testing.T) { } func TestAccountListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -76,6 +78,7 @@ func TestAccountListWithOptionalParams(t *testing.T) { } func TestAccountGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/accounts/member_test.go b/accounts/member_test.go index b4781e84be3..f5ddc86ec77 100644 --- a/accounts/member_test.go +++ b/accounts/member_test.go @@ -16,6 +16,7 @@ import ( ) func TestMemberNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestMemberNewWithOptionalParams(t *testing.T) { } func TestMemberUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -82,6 +84,7 @@ func TestMemberUpdate(t *testing.T) { } func TestMemberListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -112,6 +115,7 @@ func TestMemberListWithOptionalParams(t *testing.T) { } func TestMemberDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -142,6 +146,7 @@ func TestMemberDelete(t *testing.T) { } func TestMemberGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/accounts/role_test.go b/accounts/role_test.go index eaa277fcf50..27a107f5a39 100644 --- a/accounts/role_test.go +++ b/accounts/role_test.go @@ -15,6 +15,7 @@ import ( ) func TestRoleList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -40,6 +41,7 @@ func TestRoleList(t *testing.T) { } func TestRoleGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/acm/totaltls_test.go b/acm/totaltls_test.go index 87496fef010..cd4e02e4d13 100644 --- a/acm/totaltls_test.go +++ b/acm/totaltls_test.go @@ -15,6 +15,7 @@ import ( ) func TestTotalTLSNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,6 +43,7 @@ func TestTotalTLSNewWithOptionalParams(t *testing.T) { } func TestTotalTLSGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/addressing/addressmap_test.go b/addressing/addressmap_test.go index f8ed3d43385..301c5faef90 100644 --- a/addressing/addressmap_test.go +++ b/addressing/addressmap_test.go @@ -15,6 +15,7 @@ import ( ) func TestAddressMapNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,6 +43,7 @@ func TestAddressMapNewWithOptionalParams(t *testing.T) { } func TestAddressMapList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -67,6 +69,7 @@ func TestAddressMapList(t *testing.T) { } func TestAddressMapDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -97,6 +100,7 @@ func TestAddressMapDelete(t *testing.T) { } func TestAddressMapEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -129,6 +133,7 @@ func TestAddressMapEditWithOptionalParams(t *testing.T) { } func TestAddressMapGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/addressing/addressmapaccount_test.go b/addressing/addressmapaccount_test.go index cc9b51e1c73..697d6f70988 100644 --- a/addressing/addressmapaccount_test.go +++ b/addressing/addressmapaccount_test.go @@ -15,6 +15,7 @@ import ( ) func TestAddressMapAccountUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,6 +46,7 @@ func TestAddressMapAccountUpdate(t *testing.T) { } func TestAddressMapAccountDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/addressing/addressmapip_test.go b/addressing/addressmapip_test.go index a4acdc25d5b..4f0c3ebe7d3 100644 --- a/addressing/addressmapip_test.go +++ b/addressing/addressmapip_test.go @@ -15,6 +15,7 @@ import ( ) func TestAddressMapIPUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,6 +47,7 @@ func TestAddressMapIPUpdate(t *testing.T) { } func TestAddressMapIPDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/addressing/addressmapzone_test.go b/addressing/addressmapzone_test.go index 13d53fb5697..4268fa43c9d 100644 --- a/addressing/addressmapzone_test.go +++ b/addressing/addressmapzone_test.go @@ -15,6 +15,7 @@ import ( ) func TestAddressMapZoneUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,6 +47,7 @@ func TestAddressMapZoneUpdate(t *testing.T) { } func TestAddressMapZoneDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/addressing/loadocument_test.go b/addressing/loadocument_test.go index 976176b857c..efe065c41fa 100644 --- a/addressing/loadocument_test.go +++ b/addressing/loadocument_test.go @@ -15,6 +15,7 @@ import ( ) func TestLOADocumentNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/addressing/loadocumentdownload_test.go b/addressing/loadocumentdownload_test.go index 3f20aacbdba..478f5fa5b2b 100644 --- a/addressing/loadocumentdownload_test.go +++ b/addressing/loadocumentdownload_test.go @@ -15,6 +15,7 @@ import ( ) func TestLOADocumentDownloadGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/addressing/prefix_test.go b/addressing/prefix_test.go index 70bae4a24f8..7cee67a6a5d 100644 --- a/addressing/prefix_test.go +++ b/addressing/prefix_test.go @@ -15,6 +15,7 @@ import ( ) func TestPrefixNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,6 +44,7 @@ func TestPrefixNew(t *testing.T) { } func TestPrefixList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -68,6 +70,7 @@ func TestPrefixList(t *testing.T) { } func TestPrefixDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -98,6 +101,7 @@ func TestPrefixDelete(t *testing.T) { } func TestPrefixEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -128,6 +132,7 @@ func TestPrefixEdit(t *testing.T) { } func TestPrefixGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/addressing/prefixbgpbinding_test.go b/addressing/prefixbgpbinding_test.go index eedb9e668b8..fad3e9995e6 100644 --- a/addressing/prefixbgpbinding_test.go +++ b/addressing/prefixbgpbinding_test.go @@ -15,6 +15,7 @@ import ( ) func TestPrefixBGPBindingNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,6 +47,7 @@ func TestPrefixBGPBindingNewWithOptionalParams(t *testing.T) { } func TestPrefixBGPBindingList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -75,6 +77,7 @@ func TestPrefixBGPBindingList(t *testing.T) { } func TestPrefixBGPBindingDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -105,6 +108,7 @@ func TestPrefixBGPBindingDelete(t *testing.T) { } func TestPrefixBGPBindingGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/addressing/prefixbgpprefix_test.go b/addressing/prefixbgpprefix_test.go index 239aa144238..7ff53960935 100644 --- a/addressing/prefixbgpprefix_test.go +++ b/addressing/prefixbgpprefix_test.go @@ -15,6 +15,7 @@ import ( ) func TestPrefixBGPPrefixList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestPrefixBGPPrefixList(t *testing.T) { } func TestPrefixBGPPrefixEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -77,6 +79,7 @@ func TestPrefixBGPPrefixEditWithOptionalParams(t *testing.T) { } func TestPrefixBGPPrefixGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/addressing/prefixbgpstatus_test.go b/addressing/prefixbgpstatus_test.go index 9071cb5db57..cf9b5f4fc9b 100644 --- a/addressing/prefixbgpstatus_test.go +++ b/addressing/prefixbgpstatus_test.go @@ -15,6 +15,7 @@ import ( ) func TestPrefixBGPStatusEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,6 +46,7 @@ func TestPrefixBGPStatusEdit(t *testing.T) { } func TestPrefixBGPStatusGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/addressing/prefixdelegation_test.go b/addressing/prefixdelegation_test.go index 9db6246091a..670d919c955 100644 --- a/addressing/prefixdelegation_test.go +++ b/addressing/prefixdelegation_test.go @@ -15,6 +15,7 @@ import ( ) func TestPrefixDelegationNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,6 +47,7 @@ func TestPrefixDelegationNew(t *testing.T) { } func TestPrefixDelegationList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -75,6 +77,7 @@ func TestPrefixDelegationList(t *testing.T) { } func TestPrefixDelegationDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/addressing/service_test.go b/addressing/service_test.go index d4ed51063bb..bc4ff9ba62c 100644 --- a/addressing/service_test.go +++ b/addressing/service_test.go @@ -15,6 +15,7 @@ import ( ) func TestServiceList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/alerting/availablealert_test.go b/alerting/availablealert_test.go index 6805acf5c62..236231c2070 100644 --- a/alerting/availablealert_test.go +++ b/alerting/availablealert_test.go @@ -15,6 +15,7 @@ import ( ) func TestAvailableAlertList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/alerting/destinationeligible_test.go b/alerting/destinationeligible_test.go index 7d9afb69025..b17253b6861 100644 --- a/alerting/destinationeligible_test.go +++ b/alerting/destinationeligible_test.go @@ -15,6 +15,7 @@ import ( ) func TestDestinationEligibleGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/alerting/destinationpagerduty_test.go b/alerting/destinationpagerduty_test.go index 63f12175b25..a11b279f02d 100644 --- a/alerting/destinationpagerduty_test.go +++ b/alerting/destinationpagerduty_test.go @@ -15,6 +15,7 @@ import ( ) func TestDestinationPagerdutyNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -40,6 +41,7 @@ func TestDestinationPagerdutyNew(t *testing.T) { } func TestDestinationPagerdutyDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -65,6 +67,7 @@ func TestDestinationPagerdutyDelete(t *testing.T) { } func TestDestinationPagerdutyGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -90,6 +93,7 @@ func TestDestinationPagerdutyGet(t *testing.T) { } func TestDestinationPagerdutyLink(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/alerting/destinationwebhook_test.go b/alerting/destinationwebhook_test.go index df44b9de16a..e4cad3a9718 100644 --- a/alerting/destinationwebhook_test.go +++ b/alerting/destinationwebhook_test.go @@ -15,6 +15,7 @@ import ( ) func TestDestinationWebhookNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,6 +44,7 @@ func TestDestinationWebhookNewWithOptionalParams(t *testing.T) { } func TestDestinationWebhookUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -75,6 +77,7 @@ func TestDestinationWebhookUpdateWithOptionalParams(t *testing.T) { } func TestDestinationWebhookList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -100,6 +103,7 @@ func TestDestinationWebhookList(t *testing.T) { } func TestDestinationWebhookDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -129,6 +133,7 @@ func TestDestinationWebhookDelete(t *testing.T) { } func TestDestinationWebhookGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/alerting/history_test.go b/alerting/history_test.go index 5a24b9606db..e1b46503f98 100644 --- a/alerting/history_test.go +++ b/alerting/history_test.go @@ -16,6 +16,7 @@ import ( ) func TestHistoryListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/alerting/policy_test.go b/alerting/policy_test.go index 09063d2d13a..e42ad6ac6a8 100644 --- a/alerting/policy_test.go +++ b/alerting/policy_test.go @@ -16,6 +16,7 @@ import ( ) func TestPolicyNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -98,6 +99,7 @@ func TestPolicyNewWithOptionalParams(t *testing.T) { } func TestPolicyUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -184,6 +186,7 @@ func TestPolicyUpdateWithOptionalParams(t *testing.T) { } func TestPolicyList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -209,6 +212,7 @@ func TestPolicyList(t *testing.T) { } func TestPolicyDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -238,6 +242,7 @@ func TestPolicyDelete(t *testing.T) { } func TestPolicyGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/argo/smartrouting_test.go b/argo/smartrouting_test.go index 437e11c1641..128ab4279c7 100644 --- a/argo/smartrouting_test.go +++ b/argo/smartrouting_test.go @@ -15,6 +15,7 @@ import ( ) func TestSmartRoutingEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSmartRoutingEdit(t *testing.T) { } func TestSmartRoutingGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/argo/tieredcaching_test.go b/argo/tieredcaching_test.go index a016e4d3cec..1912a7806d3 100644 --- a/argo/tieredcaching_test.go +++ b/argo/tieredcaching_test.go @@ -15,6 +15,7 @@ import ( ) func TestTieredCachingEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestTieredCachingEdit(t *testing.T) { } func TestTieredCachingGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/audit_logs/auditlog_test.go b/audit_logs/auditlog_test.go index 37216ea8dd6..ee7487991f8 100644 --- a/audit_logs/auditlog_test.go +++ b/audit_logs/auditlog_test.go @@ -16,6 +16,7 @@ import ( ) func TestAuditLogListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/billing/profile_test.go b/billing/profile_test.go index 50709fd1bae..d938c8f3151 100644 --- a/billing/profile_test.go +++ b/billing/profile_test.go @@ -14,6 +14,7 @@ import ( ) func TestProfileGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/bot_management/botmanagement_test.go b/bot_management/botmanagement_test.go index b840013dd4c..c8b5b09395f 100644 --- a/bot_management/botmanagement_test.go +++ b/bot_management/botmanagement_test.go @@ -15,6 +15,7 @@ import ( ) func TestBotManagementUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestBotManagementUpdateWithOptionalParams(t *testing.T) { } func TestBotManagementGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/brand_protection/brandprotection_test.go b/brand_protection/brandprotection_test.go index 422d0e4631b..757be0c5613 100644 --- a/brand_protection/brandprotection_test.go +++ b/brand_protection/brandprotection_test.go @@ -15,6 +15,7 @@ import ( ) func TestBrandProtectionSubmitWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestBrandProtectionSubmitWithOptionalParams(t *testing.T) { } func TestBrandProtectionURLInfoWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/cache/cache_test.go b/cache/cache_test.go index 2de0944910c..d452bb279fd 100644 --- a/cache/cache_test.go +++ b/cache/cache_test.go @@ -15,6 +15,7 @@ import ( ) func TestCachePurgeWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/cache/cachereserve_test.go b/cache/cachereserve_test.go index 5ba08282af6..af51eb1a1a0 100644 --- a/cache/cachereserve_test.go +++ b/cache/cachereserve_test.go @@ -15,6 +15,7 @@ import ( ) func TestCacheReserveClear(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestCacheReserveClear(t *testing.T) { } func TestCacheReserveEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -67,6 +69,7 @@ func TestCacheReserveEdit(t *testing.T) { } func TestCacheReserveGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -92,6 +95,7 @@ func TestCacheReserveGet(t *testing.T) { } func TestCacheReserveStatus(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/cache/regionaltieredcache_test.go b/cache/regionaltieredcache_test.go index 103ff446cbf..e8973cca30f 100644 --- a/cache/regionaltieredcache_test.go +++ b/cache/regionaltieredcache_test.go @@ -15,6 +15,7 @@ import ( ) func TestRegionalTieredCacheEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestRegionalTieredCacheEdit(t *testing.T) { } func TestRegionalTieredCacheGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/cache/smarttieredcache_test.go b/cache/smarttieredcache_test.go index 678c812de9f..661bf82872f 100644 --- a/cache/smarttieredcache_test.go +++ b/cache/smarttieredcache_test.go @@ -15,6 +15,7 @@ import ( ) func TestSmartTieredCacheDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSmartTieredCacheDelete(t *testing.T) { } func TestSmartTieredCacheEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -67,6 +69,7 @@ func TestSmartTieredCacheEdit(t *testing.T) { } func TestSmartTieredCacheGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/cache/variant_test.go b/cache/variant_test.go index 803fb70a172..cfa9a34ae5f 100644 --- a/cache/variant_test.go +++ b/cache/variant_test.go @@ -15,6 +15,7 @@ import ( ) func TestVariantDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestVariantDelete(t *testing.T) { } func TestVariantEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -79,6 +81,7 @@ func TestVariantEditWithOptionalParams(t *testing.T) { } func TestVariantGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/calls/call_test.go b/calls/call_test.go index c2b5a8e9e5a..34930f089bd 100644 --- a/calls/call_test.go +++ b/calls/call_test.go @@ -15,6 +15,7 @@ import ( ) func TestCallNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestCallNewWithOptionalParams(t *testing.T) { } func TestCallUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -71,6 +73,7 @@ func TestCallUpdateWithOptionalParams(t *testing.T) { } func TestCallList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -96,6 +99,7 @@ func TestCallList(t *testing.T) { } func TestCallDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -125,6 +129,7 @@ func TestCallDelete(t *testing.T) { } func TestCallGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/certificate_authorities/hostnameassociation_test.go b/certificate_authorities/hostnameassociation_test.go index 073bf735d29..fb40cc9e557 100644 --- a/certificate_authorities/hostnameassociation_test.go +++ b/certificate_authorities/hostnameassociation_test.go @@ -15,6 +15,7 @@ import ( ) func TestHostnameAssociationUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestHostnameAssociationUpdateWithOptionalParams(t *testing.T) { } func TestHostnameAssociationGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/challenges/widget_test.go b/challenges/widget_test.go index d9756330ddb..489014e7763 100644 --- a/challenges/widget_test.go +++ b/challenges/widget_test.go @@ -15,6 +15,7 @@ import ( ) func TestWidgetNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -51,6 +52,7 @@ func TestWidgetNewWithOptionalParams(t *testing.T) { } func TestWidgetUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -86,6 +88,7 @@ func TestWidgetUpdateWithOptionalParams(t *testing.T) { } func TestWidgetListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -115,6 +118,7 @@ func TestWidgetListWithOptionalParams(t *testing.T) { } func TestWidgetDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -144,6 +148,7 @@ func TestWidgetDelete(t *testing.T) { } func TestWidgetGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -173,6 +178,7 @@ func TestWidgetGet(t *testing.T) { } func TestWidgetRotateSecretWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/client_certificates/clientcertificate_test.go b/client_certificates/clientcertificate_test.go index 81fc7287f67..47d6119b603 100644 --- a/client_certificates/clientcertificate_test.go +++ b/client_certificates/clientcertificate_test.go @@ -15,6 +15,7 @@ import ( ) func TestClientCertificateNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,6 +43,7 @@ func TestClientCertificateNew(t *testing.T) { } func TestClientCertificateListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -72,6 +74,7 @@ func TestClientCertificateListWithOptionalParams(t *testing.T) { } func TestClientCertificateDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -101,6 +104,7 @@ func TestClientCertificateDelete(t *testing.T) { } func TestClientCertificateEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -130,6 +134,7 @@ func TestClientCertificateEdit(t *testing.T) { } func TestClientCertificateGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/cloudforce_one/request_test.go b/cloudforce_one/request_test.go index a1204865a68..356bca2ef57 100644 --- a/cloudforce_one/request_test.go +++ b/cloudforce_one/request_test.go @@ -16,6 +16,7 @@ import ( ) func TestRequestNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,6 +50,7 @@ func TestRequestNewWithOptionalParams(t *testing.T) { } func TestRequestUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -83,6 +85,7 @@ func TestRequestUpdateWithOptionalParams(t *testing.T) { } func TestRequestListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -121,6 +124,7 @@ func TestRequestListWithOptionalParams(t *testing.T) { } func TestRequestDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -148,6 +152,7 @@ func TestRequestDelete(t *testing.T) { } func TestRequestConstants(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -171,6 +176,7 @@ func TestRequestConstants(t *testing.T) { } func TestRequestGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -198,6 +204,7 @@ func TestRequestGet(t *testing.T) { } func TestRequestQuota(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -221,6 +228,7 @@ func TestRequestQuota(t *testing.T) { } func TestRequestTypes(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/cloudforce_one/requestmessage_test.go b/cloudforce_one/requestmessage_test.go index 4cf854f8dc3..1204633b33c 100644 --- a/cloudforce_one/requestmessage_test.go +++ b/cloudforce_one/requestmessage_test.go @@ -16,6 +16,7 @@ import ( ) func TestRequestMessageNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,6 +47,7 @@ func TestRequestMessageNewWithOptionalParams(t *testing.T) { } func TestRequestMessageUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -81,6 +83,7 @@ func TestRequestMessageUpdateWithOptionalParams(t *testing.T) { } func TestRequestMessageDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -109,6 +112,7 @@ func TestRequestMessageDelete(t *testing.T) { } func TestRequestMessageGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/cloudforce_one/requestpriority_test.go b/cloudforce_one/requestpriority_test.go index 7e8cbe9551e..4888c2d1deb 100644 --- a/cloudforce_one/requestpriority_test.go +++ b/cloudforce_one/requestpriority_test.go @@ -15,6 +15,7 @@ import ( ) func TestRequestPriorityNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,6 +50,7 @@ func TestRequestPriorityNew(t *testing.T) { } func TestRequestPriorityUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -84,6 +86,7 @@ func TestRequestPriorityUpdate(t *testing.T) { } func TestRequestPriorityDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -111,6 +114,7 @@ func TestRequestPriorityDelete(t *testing.T) { } func TestRequestPriorityGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -138,6 +142,7 @@ func TestRequestPriorityGet(t *testing.T) { } func TestRequestPriorityQuota(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/custom_certificates/customcertificate_test.go b/custom_certificates/customcertificate_test.go index 39ff5dfd06e..ba46385c715 100644 --- a/custom_certificates/customcertificate_test.go +++ b/custom_certificates/customcertificate_test.go @@ -16,6 +16,7 @@ import ( ) func TestCustomCertificateNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,6 +50,7 @@ func TestCustomCertificateNewWithOptionalParams(t *testing.T) { } func TestCustomCertificateListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -78,6 +80,7 @@ func TestCustomCertificateListWithOptionalParams(t *testing.T) { } func TestCustomCertificateDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -108,6 +111,7 @@ func TestCustomCertificateDelete(t *testing.T) { } func TestCustomCertificateEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -144,6 +148,7 @@ func TestCustomCertificateEditWithOptionalParams(t *testing.T) { } func TestCustomCertificateGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/custom_certificates/prioritize_test.go b/custom_certificates/prioritize_test.go index 1064f392ac0..c953a49eb84 100644 --- a/custom_certificates/prioritize_test.go +++ b/custom_certificates/prioritize_test.go @@ -15,6 +15,7 @@ import ( ) func TestPrioritizeUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/custom_hostnames/customhostname_test.go b/custom_hostnames/customhostname_test.go index 85ad87469fa..6ae3aeefb07 100644 --- a/custom_hostnames/customhostname_test.go +++ b/custom_hostnames/customhostname_test.go @@ -15,6 +15,7 @@ import ( ) func TestCustomHostnameNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -60,6 +61,7 @@ func TestCustomHostnameNewWithOptionalParams(t *testing.T) { } func TestCustomHostnameListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -92,6 +94,7 @@ func TestCustomHostnameListWithOptionalParams(t *testing.T) { } func TestCustomHostnameDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -122,6 +125,7 @@ func TestCustomHostnameDelete(t *testing.T) { } func TestCustomHostnameEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -172,6 +176,7 @@ func TestCustomHostnameEditWithOptionalParams(t *testing.T) { } func TestCustomHostnameGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/custom_hostnames/fallbackorigin_test.go b/custom_hostnames/fallbackorigin_test.go index 88ecac7459e..988da10cf65 100644 --- a/custom_hostnames/fallbackorigin_test.go +++ b/custom_hostnames/fallbackorigin_test.go @@ -15,6 +15,7 @@ import ( ) func TestFallbackOriginUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestFallbackOriginUpdate(t *testing.T) { } func TestFallbackOriginDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -67,6 +69,7 @@ func TestFallbackOriginDelete(t *testing.T) { } func TestFallbackOriginGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/custom_nameservers/customnameserver_test.go b/custom_nameservers/customnameserver_test.go index b3df9cb10c8..7d9df3e08e4 100644 --- a/custom_nameservers/customnameserver_test.go +++ b/custom_nameservers/customnameserver_test.go @@ -15,6 +15,7 @@ import ( ) func TestCustomNameserverNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,6 +43,7 @@ func TestCustomNameserverNewWithOptionalParams(t *testing.T) { } func TestCustomNameserverDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -72,6 +74,7 @@ func TestCustomNameserverDelete(t *testing.T) { } func TestCustomNameserverAvailabilty(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -97,6 +100,7 @@ func TestCustomNameserverAvailabilty(t *testing.T) { } func TestCustomNameserverGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -122,6 +126,7 @@ func TestCustomNameserverGet(t *testing.T) { } func TestCustomNameserverVerify(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/d1/database_test.go b/d1/database_test.go index b9fa9320cf4..a130eef651f 100644 --- a/d1/database_test.go +++ b/d1/database_test.go @@ -15,6 +15,7 @@ import ( ) func TestDatabaseNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestDatabaseNew(t *testing.T) { } func TestDatabaseListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -69,6 +71,7 @@ func TestDatabaseListWithOptionalParams(t *testing.T) { } func TestDatabaseDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -96,6 +99,7 @@ func TestDatabaseDelete(t *testing.T) { } func TestDatabaseGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -123,6 +127,7 @@ func TestDatabaseGet(t *testing.T) { } func TestDatabaseQueryWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/dcv_delegation/uuid_test.go b/dcv_delegation/uuid_test.go index d5ba65f3eed..39b99f5b560 100644 --- a/dcv_delegation/uuid_test.go +++ b/dcv_delegation/uuid_test.go @@ -15,6 +15,7 @@ import ( ) func TestUUIDGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/diagnostics/traceroute_test.go b/diagnostics/traceroute_test.go index d09d777390f..e7dd38398fb 100644 --- a/diagnostics/traceroute_test.go +++ b/diagnostics/traceroute_test.go @@ -15,6 +15,7 @@ import ( ) func TestTracerouteNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/dns/analyticsreport_test.go b/dns/analyticsreport_test.go index 17f32a2d394..16993e5c056 100644 --- a/dns/analyticsreport_test.go +++ b/dns/analyticsreport_test.go @@ -16,6 +16,7 @@ import ( ) func TestAnalyticsReportGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/dns/analyticsreportbytime_test.go b/dns/analyticsreportbytime_test.go index 5894bf3dfad..21ea18b2a67 100644 --- a/dns/analyticsreportbytime_test.go +++ b/dns/analyticsreportbytime_test.go @@ -16,6 +16,7 @@ import ( ) func TestAnalyticsReportBytimeGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/dns/firewall_test.go b/dns/firewall_test.go index afa29248e47..624ae1b64ec 100644 --- a/dns/firewall_test.go +++ b/dns/firewall_test.go @@ -16,6 +16,7 @@ import ( ) func TestFirewallNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -54,6 +55,7 @@ func TestFirewallNewWithOptionalParams(t *testing.T) { } func TestFirewallListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -81,6 +83,7 @@ func TestFirewallListWithOptionalParams(t *testing.T) { } func TestFirewallDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -111,6 +114,7 @@ func TestFirewallDelete(t *testing.T) { } func TestFirewallEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -156,6 +160,7 @@ func TestFirewallEditWithOptionalParams(t *testing.T) { } func TestFirewallGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/dns/firewallanalyticsreport_test.go b/dns/firewallanalyticsreport_test.go index 73b49c91c24..3ba63eacc61 100644 --- a/dns/firewallanalyticsreport_test.go +++ b/dns/firewallanalyticsreport_test.go @@ -16,6 +16,7 @@ import ( ) func TestFirewallAnalyticsReportGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/dns/firewallanalyticsreportbytime_test.go b/dns/firewallanalyticsreportbytime_test.go index 9b0cc654e35..66f749cac80 100644 --- a/dns/firewallanalyticsreportbytime_test.go +++ b/dns/firewallanalyticsreportbytime_test.go @@ -16,6 +16,7 @@ import ( ) func TestFirewallAnalyticsReportBytimeGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/dns/record_test.go b/dns/record_test.go index 13b93b5a4c8..267e28141f4 100644 --- a/dns/record_test.go +++ b/dns/record_test.go @@ -16,6 +16,7 @@ import ( ) func TestRecordNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -50,6 +51,7 @@ func TestRecordNewWithOptionalParams(t *testing.T) { } func TestRecordUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -88,6 +90,7 @@ func TestRecordUpdateWithOptionalParams(t *testing.T) { } func TestRecordListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -140,6 +143,7 @@ func TestRecordListWithOptionalParams(t *testing.T) { } func TestRecordDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -170,6 +174,7 @@ func TestRecordDelete(t *testing.T) { } func TestRecordEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -208,6 +213,7 @@ func TestRecordEditWithOptionalParams(t *testing.T) { } func TestRecordExport(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -233,6 +239,7 @@ func TestRecordExport(t *testing.T) { } func TestRecordGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -262,6 +269,7 @@ func TestRecordGet(t *testing.T) { } func TestRecordImportWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -289,6 +297,7 @@ func TestRecordImportWithOptionalParams(t *testing.T) { } func TestRecordScan(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/dnssec/dnssec_test.go b/dnssec/dnssec_test.go index 4bb5b10291d..2e87d475d14 100644 --- a/dnssec/dnssec_test.go +++ b/dnssec/dnssec_test.go @@ -15,6 +15,7 @@ import ( ) func TestDNSSECDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestDNSSECDelete(t *testing.T) { } func TestDNSSECEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -69,6 +71,7 @@ func TestDNSSECEditWithOptionalParams(t *testing.T) { } func TestDNSSECGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/durable_objects/namespace_test.go b/durable_objects/namespace_test.go index f2726ce1c30..5703c74b69b 100644 --- a/durable_objects/namespace_test.go +++ b/durable_objects/namespace_test.go @@ -15,6 +15,7 @@ import ( ) func TestNamespaceList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/durable_objects/namespaceobject_test.go b/durable_objects/namespaceobject_test.go index aba9d77d806..23f3deef1ec 100644 --- a/durable_objects/namespaceobject_test.go +++ b/durable_objects/namespaceobject_test.go @@ -15,6 +15,7 @@ import ( ) func TestNamespaceObjectListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/email_routing/address_test.go b/email_routing/address_test.go index 9ce0600551b..5b1ddf6f232 100644 --- a/email_routing/address_test.go +++ b/email_routing/address_test.go @@ -15,6 +15,7 @@ import ( ) func TestAddressNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestAddressNew(t *testing.T) { } func TestAddressListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -76,6 +78,7 @@ func TestAddressListWithOptionalParams(t *testing.T) { } func TestAddressDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -103,6 +106,7 @@ func TestAddressDelete(t *testing.T) { } func TestAddressGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/email_routing/dns_test.go b/email_routing/dns_test.go index 8a629dc5a36..50e7fa5772b 100644 --- a/email_routing/dns_test.go +++ b/email_routing/dns_test.go @@ -14,6 +14,7 @@ import ( ) func TestDNSGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/email_routing/emailrouting_test.go b/email_routing/emailrouting_test.go index 0e45ffcc969..6bcafdd26b9 100644 --- a/email_routing/emailrouting_test.go +++ b/email_routing/emailrouting_test.go @@ -15,6 +15,7 @@ import ( ) func TestEmailRoutingDisable(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestEmailRoutingDisable(t *testing.T) { } func TestEmailRoutingEnable(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -73,6 +75,7 @@ func TestEmailRoutingEnable(t *testing.T) { } func TestEmailRoutingGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/email_routing/rule_test.go b/email_routing/rule_test.go index 6e1965bd899..ec41c0dbb95 100644 --- a/email_routing/rule_test.go +++ b/email_routing/rule_test.go @@ -15,6 +15,7 @@ import ( ) func TestRuleNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -69,6 +70,7 @@ func TestRuleNewWithOptionalParams(t *testing.T) { } func TestRuleUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -124,6 +126,7 @@ func TestRuleUpdateWithOptionalParams(t *testing.T) { } func TestRuleListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -155,6 +158,7 @@ func TestRuleListWithOptionalParams(t *testing.T) { } func TestRuleDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -182,6 +186,7 @@ func TestRuleDelete(t *testing.T) { } func TestRuleGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/email_routing/rulecatchall_test.go b/email_routing/rulecatchall_test.go index 22b490f9a5e..fc47c1c6205 100644 --- a/email_routing/rulecatchall_test.go +++ b/email_routing/rulecatchall_test.go @@ -15,6 +15,7 @@ import ( ) func TestRuleCatchAllUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -62,6 +63,7 @@ func TestRuleCatchAllUpdateWithOptionalParams(t *testing.T) { } func TestRuleCatchAllGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/event_notifications/r2configuration_test.go b/event_notifications/r2configuration_test.go index 0bd0542286a..b8893110b45 100644 --- a/event_notifications/r2configuration_test.go +++ b/event_notifications/r2configuration_test.go @@ -15,6 +15,7 @@ import ( ) func TestR2ConfigurationGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/event_notifications/r2configurationqueue_test.go b/event_notifications/r2configurationqueue_test.go index 8994ac66cd4..5186b21985c 100644 --- a/event_notifications/r2configurationqueue_test.go +++ b/event_notifications/r2configurationqueue_test.go @@ -15,6 +15,7 @@ import ( ) func TestR2ConfigurationQueueUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -58,6 +59,7 @@ func TestR2ConfigurationQueueUpdateWithOptionalParams(t *testing.T) { } func TestR2ConfigurationQueueDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/filters/filter_test.go b/filters/filter_test.go index e517d067e17..f39799c8455 100644 --- a/filters/filter_test.go +++ b/filters/filter_test.go @@ -15,6 +15,7 @@ import ( ) func TestFilterNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestFilterNew(t *testing.T) { } func TestFilterUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -74,6 +76,7 @@ func TestFilterUpdate(t *testing.T) { } func TestFilterListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -109,6 +112,7 @@ func TestFilterListWithOptionalParams(t *testing.T) { } func TestFilterDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -139,6 +143,7 @@ func TestFilterDelete(t *testing.T) { } func TestFilterGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/firewall/accessrule_test.go b/firewall/accessrule_test.go index 80cb97f1be4..102a172c4c0 100644 --- a/firewall/accessrule_test.go +++ b/firewall/accessrule_test.go @@ -15,6 +15,7 @@ import ( ) func TestAccessRuleNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -47,6 +48,7 @@ func TestAccessRuleNewWithOptionalParams(t *testing.T) { } func TestAccessRuleListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -90,6 +92,7 @@ func TestAccessRuleListWithOptionalParams(t *testing.T) { } func TestAccessRuleDeleteWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -121,6 +124,7 @@ func TestAccessRuleDeleteWithOptionalParams(t *testing.T) { } func TestAccessRuleEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -157,6 +161,7 @@ func TestAccessRuleEditWithOptionalParams(t *testing.T) { } func TestAccessRuleGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/firewall/lockdown_test.go b/firewall/lockdown_test.go index edb59458687..37c38596048 100644 --- a/firewall/lockdown_test.go +++ b/firewall/lockdown_test.go @@ -16,6 +16,7 @@ import ( ) func TestLockdownNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,6 +46,7 @@ func TestLockdownNew(t *testing.T) { } func TestLockdownUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -75,6 +77,7 @@ func TestLockdownUpdate(t *testing.T) { } func TestLockdownListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -114,6 +117,7 @@ func TestLockdownListWithOptionalParams(t *testing.T) { } func TestLockdownDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -144,6 +148,7 @@ func TestLockdownDelete(t *testing.T) { } func TestLockdownGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/firewall/rule_test.go b/firewall/rule_test.go index bb27b80a088..2d99b0534db 100644 --- a/firewall/rule_test.go +++ b/firewall/rule_test.go @@ -15,6 +15,7 @@ import ( ) func TestRuleNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestRuleNew(t *testing.T) { } func TestRuleUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -74,6 +76,7 @@ func TestRuleUpdate(t *testing.T) { } func TestRuleListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -108,6 +111,7 @@ func TestRuleListWithOptionalParams(t *testing.T) { } func TestRuleDeleteWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -138,6 +142,7 @@ func TestRuleDeleteWithOptionalParams(t *testing.T) { } func TestRuleEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -168,6 +173,7 @@ func TestRuleEdit(t *testing.T) { } func TestRuleGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/firewall/uarule_test.go b/firewall/uarule_test.go index 0d7184ba435..909e141d2fc 100644 --- a/firewall/uarule_test.go +++ b/firewall/uarule_test.go @@ -15,6 +15,7 @@ import ( ) func TestUARuleNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestUARuleNew(t *testing.T) { } func TestUARuleUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -74,6 +76,7 @@ func TestUARuleUpdate(t *testing.T) { } func TestUARuleListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -107,6 +110,7 @@ func TestUARuleListWithOptionalParams(t *testing.T) { } func TestUARuleDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -137,6 +141,7 @@ func TestUARuleDelete(t *testing.T) { } func TestUARuleGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/firewall/wafoverride_test.go b/firewall/wafoverride_test.go index e52fd30c622..1a187260cdf 100644 --- a/firewall/wafoverride_test.go +++ b/firewall/wafoverride_test.go @@ -15,6 +15,7 @@ import ( ) func TestWAFOverrideNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestWAFOverrideNew(t *testing.T) { } func TestWAFOverrideUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -74,6 +76,7 @@ func TestWAFOverrideUpdate(t *testing.T) { } func TestWAFOverrideListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -104,6 +107,7 @@ func TestWAFOverrideListWithOptionalParams(t *testing.T) { } func TestWAFOverrideDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -134,6 +138,7 @@ func TestWAFOverrideDelete(t *testing.T) { } func TestWAFOverrideGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/firewall/wafpackage_test.go b/firewall/wafpackage_test.go index 3463986e220..6abf2e73bfa 100644 --- a/firewall/wafpackage_test.go +++ b/firewall/wafpackage_test.go @@ -15,6 +15,7 @@ import ( ) func TestWAFPackageListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,6 +50,7 @@ func TestWAFPackageListWithOptionalParams(t *testing.T) { } func TestWAFPackageGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/firewall/wafpackagegroup_test.go b/firewall/wafpackagegroup_test.go index 86eb054d647..61a96ef341c 100644 --- a/firewall/wafpackagegroup_test.go +++ b/firewall/wafpackagegroup_test.go @@ -15,6 +15,7 @@ import ( ) func TestWAFPackageGroupListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -52,6 +53,7 @@ func TestWAFPackageGroupListWithOptionalParams(t *testing.T) { } func TestWAFPackageGroupEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -83,6 +85,7 @@ func TestWAFPackageGroupEditWithOptionalParams(t *testing.T) { } func TestWAFPackageGroupGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/firewall/wafpackagerule_test.go b/firewall/wafpackagerule_test.go index 19412d32d27..1cdf79b6960 100644 --- a/firewall/wafpackagerule_test.go +++ b/firewall/wafpackagerule_test.go @@ -15,6 +15,7 @@ import ( ) func TestWAFPackageRuleListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -53,6 +54,7 @@ func TestWAFPackageRuleListWithOptionalParams(t *testing.T) { } func TestWAFPackageRuleEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -84,6 +86,7 @@ func TestWAFPackageRuleEditWithOptionalParams(t *testing.T) { } func TestWAFPackageRuleGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/healthchecks/healthcheck_test.go b/healthchecks/healthcheck_test.go index da0d0128e73..3edde20e3d2 100644 --- a/healthchecks/healthcheck_test.go +++ b/healthchecks/healthcheck_test.go @@ -15,6 +15,7 @@ import ( ) func TestHealthcheckNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -74,6 +75,7 @@ func TestHealthcheckNewWithOptionalParams(t *testing.T) { } func TestHealthcheckUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -137,6 +139,7 @@ func TestHealthcheckUpdateWithOptionalParams(t *testing.T) { } func TestHealthcheckListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -164,6 +167,7 @@ func TestHealthcheckListWithOptionalParams(t *testing.T) { } func TestHealthcheckDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -194,6 +198,7 @@ func TestHealthcheckDelete(t *testing.T) { } func TestHealthcheckEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -257,6 +262,7 @@ func TestHealthcheckEditWithOptionalParams(t *testing.T) { } func TestHealthcheckGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/healthchecks/preview_test.go b/healthchecks/preview_test.go index 37173c751f4..47267ef08f0 100644 --- a/healthchecks/preview_test.go +++ b/healthchecks/preview_test.go @@ -15,6 +15,7 @@ import ( ) func TestPreviewNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -74,6 +75,7 @@ func TestPreviewNewWithOptionalParams(t *testing.T) { } func TestPreviewDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -104,6 +106,7 @@ func TestPreviewDelete(t *testing.T) { } func TestPreviewGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/hostnames/settingtls_test.go b/hostnames/settingtls_test.go index 85f977be599..dfb2056f914 100644 --- a/hostnames/settingtls_test.go +++ b/hostnames/settingtls_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingTLSUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,6 +47,7 @@ func TestSettingTLSUpdate(t *testing.T) { } func TestSettingTLSDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -76,6 +78,7 @@ func TestSettingTLSDelete(t *testing.T) { } func TestSettingTLSGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/hyperdrive/config_test.go b/hyperdrive/config_test.go index fdfcfc247b5..19dfd6b1936 100644 --- a/hyperdrive/config_test.go +++ b/hyperdrive/config_test.go @@ -15,6 +15,7 @@ import ( ) func TestConfigNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -55,6 +56,7 @@ func TestConfigNewWithOptionalParams(t *testing.T) { } func TestConfigUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -99,6 +101,7 @@ func TestConfigUpdateWithOptionalParams(t *testing.T) { } func TestConfigList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -124,6 +127,7 @@ func TestConfigList(t *testing.T) { } func TestConfigDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -153,6 +157,7 @@ func TestConfigDelete(t *testing.T) { } func TestConfigEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -197,6 +202,7 @@ func TestConfigEditWithOptionalParams(t *testing.T) { } func TestConfigGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/images/v1_test.go b/images/v1_test.go index a2294c625cb..3971ac966bf 100644 --- a/images/v1_test.go +++ b/images/v1_test.go @@ -15,6 +15,7 @@ import ( ) func TestV1NewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestV1NewWithOptionalParams(t *testing.T) { } func TestV1ListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -71,6 +73,7 @@ func TestV1ListWithOptionalParams(t *testing.T) { } func TestV1Delete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -101,6 +104,7 @@ func TestV1Delete(t *testing.T) { } func TestV1EditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -132,6 +136,7 @@ func TestV1EditWithOptionalParams(t *testing.T) { } func TestV1Get(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/images/v1blob_test.go b/images/v1blob_test.go index 5670f99fda2..2526efe0181 100644 --- a/images/v1blob_test.go +++ b/images/v1blob_test.go @@ -17,6 +17,7 @@ import ( ) func TestV1BlobGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(200) w.Write([]byte("abc")) diff --git a/images/v1key_test.go b/images/v1key_test.go index 2364962a5b7..670ae3783c8 100644 --- a/images/v1key_test.go +++ b/images/v1key_test.go @@ -15,6 +15,7 @@ import ( ) func TestV1KeyUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestV1KeyUpdate(t *testing.T) { } func TestV1KeyList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -69,6 +71,7 @@ func TestV1KeyList(t *testing.T) { } func TestV1KeyDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/images/v1stat_test.go b/images/v1stat_test.go index 8add044cd63..0e7079513ff 100644 --- a/images/v1stat_test.go +++ b/images/v1stat_test.go @@ -15,6 +15,7 @@ import ( ) func TestV1StatGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/images/v1variant_test.go b/images/v1variant_test.go index 66bcd4463aa..75b21ec3790 100644 --- a/images/v1variant_test.go +++ b/images/v1variant_test.go @@ -15,6 +15,7 @@ import ( ) func TestV1VariantNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -48,6 +49,7 @@ func TestV1VariantNewWithOptionalParams(t *testing.T) { } func TestV1VariantList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -73,6 +75,7 @@ func TestV1VariantList(t *testing.T) { } func TestV1VariantDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -103,6 +106,7 @@ func TestV1VariantDelete(t *testing.T) { } func TestV1VariantEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -139,6 +143,7 @@ func TestV1VariantEditWithOptionalParams(t *testing.T) { } func TestV1VariantGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/images/v2_test.go b/images/v2_test.go index 9640ba02824..3c0155f5dfe 100644 --- a/images/v2_test.go +++ b/images/v2_test.go @@ -15,6 +15,7 @@ import ( ) func TestV2ListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/images/v2directupload_test.go b/images/v2directupload_test.go index 6f9963b0900..70bcaee3491 100644 --- a/images/v2directupload_test.go +++ b/images/v2directupload_test.go @@ -16,6 +16,7 @@ import ( ) func TestV2DirectUploadNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/asn_test.go b/intel/asn_test.go index 37efdae2f48..5e348aebd99 100644 --- a/intel/asn_test.go +++ b/intel/asn_test.go @@ -15,6 +15,7 @@ import ( ) func TestASNGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/asnsubnet_test.go b/intel/asnsubnet_test.go index 92692f20501..bc3a7fcdacd 100644 --- a/intel/asnsubnet_test.go +++ b/intel/asnsubnet_test.go @@ -15,6 +15,7 @@ import ( ) func TestASNSubnetGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/attacksurfacereportissue_test.go b/intel/attacksurfacereportissue_test.go index d130c6c15bc..0384573822e 100644 --- a/intel/attacksurfacereportissue_test.go +++ b/intel/attacksurfacereportissue_test.go @@ -15,6 +15,7 @@ import ( ) func TestAttackSurfaceReportIssueListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -53,6 +54,7 @@ func TestAttackSurfaceReportIssueListWithOptionalParams(t *testing.T) { } func TestAttackSurfaceReportIssueClassWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -89,6 +91,7 @@ func TestAttackSurfaceReportIssueClassWithOptionalParams(t *testing.T) { } func TestAttackSurfaceReportIssueDismissWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -119,6 +122,7 @@ func TestAttackSurfaceReportIssueDismissWithOptionalParams(t *testing.T) { } func TestAttackSurfaceReportIssueSeverityWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -155,6 +159,7 @@ func TestAttackSurfaceReportIssueSeverityWithOptionalParams(t *testing.T) { } func TestAttackSurfaceReportIssueTypeWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/attacksurfacereportissuetype_test.go b/intel/attacksurfacereportissuetype_test.go index 86cc9f95cae..c10067441aa 100644 --- a/intel/attacksurfacereportissuetype_test.go +++ b/intel/attacksurfacereportissuetype_test.go @@ -15,6 +15,7 @@ import ( ) func TestAttackSurfaceReportIssueTypeGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/dns_test.go b/intel/dns_test.go index a1e5b3aab4c..fb1700345f1 100644 --- a/intel/dns_test.go +++ b/intel/dns_test.go @@ -16,6 +16,7 @@ import ( ) func TestDNSListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/domain_test.go b/intel/domain_test.go index 35377c4df83..fc74babe65a 100644 --- a/intel/domain_test.go +++ b/intel/domain_test.go @@ -15,6 +15,7 @@ import ( ) func TestDomainGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/domainbulk_test.go b/intel/domainbulk_test.go index c1f8d21d276..e42b9bb2082 100644 --- a/intel/domainbulk_test.go +++ b/intel/domainbulk_test.go @@ -15,6 +15,7 @@ import ( ) func TestDomainBulkGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/domainhistory_test.go b/intel/domainhistory_test.go index 65f81860948..8de27a27703 100644 --- a/intel/domainhistory_test.go +++ b/intel/domainhistory_test.go @@ -15,6 +15,7 @@ import ( ) func TestDomainHistoryGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/indicatorfeed_test.go b/intel/indicatorfeed_test.go index 14a1c957ec9..60ea6840b57 100644 --- a/intel/indicatorfeed_test.go +++ b/intel/indicatorfeed_test.go @@ -15,6 +15,7 @@ import ( ) func TestIndicatorFeedNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,6 +43,7 @@ func TestIndicatorFeedNewWithOptionalParams(t *testing.T) { } func TestIndicatorFeedUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -72,6 +74,7 @@ func TestIndicatorFeedUpdateWithOptionalParams(t *testing.T) { } func TestIndicatorFeedList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -97,6 +100,7 @@ func TestIndicatorFeedList(t *testing.T) { } func TestIndicatorFeedData(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -126,6 +130,7 @@ func TestIndicatorFeedData(t *testing.T) { } func TestIndicatorFeedGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/indicatorfeedpermission_test.go b/intel/indicatorfeedpermission_test.go index 5467a49a029..d03140692aa 100644 --- a/intel/indicatorfeedpermission_test.go +++ b/intel/indicatorfeedpermission_test.go @@ -15,6 +15,7 @@ import ( ) func TestIndicatorFeedPermissionNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,6 +43,7 @@ func TestIndicatorFeedPermissionNewWithOptionalParams(t *testing.T) { } func TestIndicatorFeedPermissionList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -67,6 +69,7 @@ func TestIndicatorFeedPermissionList(t *testing.T) { } func TestIndicatorFeedPermissionDeleteWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/ip_test.go b/intel/ip_test.go index 20387116c3a..efa167b8f6c 100644 --- a/intel/ip_test.go +++ b/intel/ip_test.go @@ -15,6 +15,7 @@ import ( ) func TestIPGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/iplist_test.go b/intel/iplist_test.go index 6885ac2cf10..cb817df57fd 100644 --- a/intel/iplist_test.go +++ b/intel/iplist_test.go @@ -15,6 +15,7 @@ import ( ) func TestIPListGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/miscategorization_test.go b/intel/miscategorization_test.go index a4f0d3a774b..11936e603a2 100644 --- a/intel/miscategorization_test.go +++ b/intel/miscategorization_test.go @@ -15,6 +15,7 @@ import ( ) func TestMiscategorizationNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/sinkhole_test.go b/intel/sinkhole_test.go index 450d992ac53..a3f131f8609 100644 --- a/intel/sinkhole_test.go +++ b/intel/sinkhole_test.go @@ -15,6 +15,7 @@ import ( ) func TestSinkholeList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/intel/whois_test.go b/intel/whois_test.go index 85465963b5e..688920c8be6 100644 --- a/intel/whois_test.go +++ b/intel/whois_test.go @@ -15,6 +15,7 @@ import ( ) func TestWhoisGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/ips/ip_test.go b/ips/ip_test.go index 17dc2984606..cf31c45a8bd 100644 --- a/ips/ip_test.go +++ b/ips/ip_test.go @@ -15,6 +15,7 @@ import ( ) func TestIPListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/keyless_certificates/keylesscertificate_test.go b/keyless_certificates/keylesscertificate_test.go index d59ad72328a..bef4462bd5f 100644 --- a/keyless_certificates/keylesscertificate_test.go +++ b/keyless_certificates/keylesscertificate_test.go @@ -16,6 +16,7 @@ import ( ) func TestKeylessCertificateNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -50,6 +51,7 @@ func TestKeylessCertificateNewWithOptionalParams(t *testing.T) { } func TestKeylessCertificateList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -75,6 +77,7 @@ func TestKeylessCertificateList(t *testing.T) { } func TestKeylessCertificateDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -105,6 +108,7 @@ func TestKeylessCertificateDelete(t *testing.T) { } func TestKeylessCertificateEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -142,6 +146,7 @@ func TestKeylessCertificateEditWithOptionalParams(t *testing.T) { } func TestKeylessCertificateGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/kv/namespace_test.go b/kv/namespace_test.go index 4925f9a3ae5..3d4bbb4e88f 100644 --- a/kv/namespace_test.go +++ b/kv/namespace_test.go @@ -15,6 +15,7 @@ import ( ) func TestNamespaceNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestNamespaceNew(t *testing.T) { } func TestNamespaceUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -71,6 +73,7 @@ func TestNamespaceUpdate(t *testing.T) { } func TestNamespaceListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -100,6 +103,7 @@ func TestNamespaceListWithOptionalParams(t *testing.T) { } func TestNamespaceDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/kv/namespacebulk_test.go b/kv/namespacebulk_test.go index 2766f4ae902..b8ab731e9f1 100644 --- a/kv/namespacebulk_test.go +++ b/kv/namespacebulk_test.go @@ -15,6 +15,7 @@ import ( ) func TestNamespaceBulkUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -72,6 +73,7 @@ func TestNamespaceBulkUpdate(t *testing.T) { } func TestNamespaceBulkDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/kv/namespacekey_test.go b/kv/namespacekey_test.go index 1062c719671..af5a9080736 100644 --- a/kv/namespacekey_test.go +++ b/kv/namespacekey_test.go @@ -15,6 +15,7 @@ import ( ) func TestNamespaceKeyListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/kv/namespacemetadata_test.go b/kv/namespacemetadata_test.go index b06656431d7..f629189be62 100644 --- a/kv/namespacemetadata_test.go +++ b/kv/namespacemetadata_test.go @@ -15,6 +15,7 @@ import ( ) func TestNamespaceMetadataGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/kv/namespacevalue_test.go b/kv/namespacevalue_test.go index cd05ddb0e04..175a684b6fd 100644 --- a/kv/namespacevalue_test.go +++ b/kv/namespacevalue_test.go @@ -15,6 +15,7 @@ import ( ) func TestNamespaceValueUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -47,6 +48,7 @@ func TestNamespaceValueUpdate(t *testing.T) { } func TestNamespaceValueDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -78,6 +80,7 @@ func TestNamespaceValueDelete(t *testing.T) { } func TestNamespaceValueGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/load_balancers/loadbalancer_test.go b/load_balancers/loadbalancer_test.go index 0cbea77b9df..ce92749b2f3 100644 --- a/load_balancers/loadbalancer_test.go +++ b/load_balancers/loadbalancer_test.go @@ -15,6 +15,7 @@ import ( ) func TestLoadBalancerNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -322,6 +323,7 @@ func TestLoadBalancerNewWithOptionalParams(t *testing.T) { } func TestLoadBalancerUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -634,6 +636,7 @@ func TestLoadBalancerUpdateWithOptionalParams(t *testing.T) { } func TestLoadBalancerList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -659,6 +662,7 @@ func TestLoadBalancerList(t *testing.T) { } func TestLoadBalancerDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -689,6 +693,7 @@ func TestLoadBalancerDelete(t *testing.T) { } func TestLoadBalancerEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -1001,6 +1006,7 @@ func TestLoadBalancerEditWithOptionalParams(t *testing.T) { } func TestLoadBalancerGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/load_balancers/monitor_test.go b/load_balancers/monitor_test.go index a9c892a413e..60066c91079 100644 --- a/load_balancers/monitor_test.go +++ b/load_balancers/monitor_test.go @@ -15,6 +15,7 @@ import ( ) func TestMonitorNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -63,6 +64,7 @@ func TestMonitorNewWithOptionalParams(t *testing.T) { } func TestMonitorUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -115,6 +117,7 @@ func TestMonitorUpdateWithOptionalParams(t *testing.T) { } func TestMonitorList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -140,6 +143,7 @@ func TestMonitorList(t *testing.T) { } func TestMonitorDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -170,6 +174,7 @@ func TestMonitorDelete(t *testing.T) { } func TestMonitorEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -222,6 +227,7 @@ func TestMonitorEditWithOptionalParams(t *testing.T) { } func TestMonitorGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/load_balancers/monitorpreview_test.go b/load_balancers/monitorpreview_test.go index aca2d025f05..3f9fb4d500a 100644 --- a/load_balancers/monitorpreview_test.go +++ b/load_balancers/monitorpreview_test.go @@ -15,6 +15,7 @@ import ( ) func TestMonitorPreviewNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/load_balancers/monitorreference_test.go b/load_balancers/monitorreference_test.go index 507c3ffde5d..0edf026f95f 100644 --- a/load_balancers/monitorreference_test.go +++ b/load_balancers/monitorreference_test.go @@ -15,6 +15,7 @@ import ( ) func TestMonitorReferenceGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/load_balancers/pool_test.go b/load_balancers/pool_test.go index 8a1c24b5ca6..2d164435952 100644 --- a/load_balancers/pool_test.go +++ b/load_balancers/pool_test.go @@ -15,6 +15,7 @@ import ( ) func TestPoolNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -95,6 +96,7 @@ func TestPoolNewWithOptionalParams(t *testing.T) { } func TestPoolUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -180,6 +182,7 @@ func TestPoolUpdateWithOptionalParams(t *testing.T) { } func TestPoolListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -206,6 +209,7 @@ func TestPoolListWithOptionalParams(t *testing.T) { } func TestPoolDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -236,6 +240,7 @@ func TestPoolDelete(t *testing.T) { } func TestPoolEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -321,6 +326,7 @@ func TestPoolEditWithOptionalParams(t *testing.T) { } func TestPoolGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/load_balancers/poolhealth_test.go b/load_balancers/poolhealth_test.go index f982613ecb1..3bbc54b2b00 100644 --- a/load_balancers/poolhealth_test.go +++ b/load_balancers/poolhealth_test.go @@ -15,6 +15,7 @@ import ( ) func TestPoolHealthNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -67,6 +68,7 @@ func TestPoolHealthNewWithOptionalParams(t *testing.T) { } func TestPoolHealthGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/load_balancers/poolreference_test.go b/load_balancers/poolreference_test.go index 8020f111d75..a610ff9174d 100644 --- a/load_balancers/poolreference_test.go +++ b/load_balancers/poolreference_test.go @@ -15,6 +15,7 @@ import ( ) func TestPoolReferenceGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/load_balancers/preview_test.go b/load_balancers/preview_test.go index 89b98b8721d..073d3fa640d 100644 --- a/load_balancers/preview_test.go +++ b/load_balancers/preview_test.go @@ -15,6 +15,7 @@ import ( ) func TestPreviewGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/load_balancers/region_test.go b/load_balancers/region_test.go index 5807a5e9230..335b0bb9f0d 100644 --- a/load_balancers/region_test.go +++ b/load_balancers/region_test.go @@ -15,6 +15,7 @@ import ( ) func TestRegionListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,6 +44,7 @@ func TestRegionListWithOptionalParams(t *testing.T) { } func TestRegionGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/load_balancers/search_test.go b/load_balancers/search_test.go index 230ce5e9caf..b0c1eaa3256 100644 --- a/load_balancers/search_test.go +++ b/load_balancers/search_test.go @@ -15,6 +15,7 @@ import ( ) func TestSearchGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/logpush/datasetfield_test.go b/logpush/datasetfield_test.go index 3306bc8b2a1..c161ff6f8be 100644 --- a/logpush/datasetfield_test.go +++ b/logpush/datasetfield_test.go @@ -15,6 +15,7 @@ import ( ) func TestDatasetFieldGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/logpush/datasetjob_test.go b/logpush/datasetjob_test.go index 30121bd1ff9..f2016d43a13 100644 --- a/logpush/datasetjob_test.go +++ b/logpush/datasetjob_test.go @@ -15,6 +15,7 @@ import ( ) func TestDatasetJobGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/logpush/edge_test.go b/logpush/edge_test.go index 8d729783183..679fa60a4ff 100644 --- a/logpush/edge_test.go +++ b/logpush/edge_test.go @@ -15,6 +15,7 @@ import ( ) func TestEdgeNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,6 +44,7 @@ func TestEdgeNewWithOptionalParams(t *testing.T) { } func TestEdgeGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/logpush/job_test.go b/logpush/job_test.go index 1d0aae59010..b1793153a73 100644 --- a/logpush/job_test.go +++ b/logpush/job_test.go @@ -15,6 +15,7 @@ import ( ) func TestJobNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -62,6 +63,7 @@ func TestJobNewWithOptionalParams(t *testing.T) { } func TestJobUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -111,6 +113,7 @@ func TestJobUpdateWithOptionalParams(t *testing.T) { } func TestJobListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -137,6 +140,7 @@ func TestJobListWithOptionalParams(t *testing.T) { } func TestJobDeleteWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -168,6 +172,7 @@ func TestJobDeleteWithOptionalParams(t *testing.T) { } func TestJobGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/logpush/ownership_test.go b/logpush/ownership_test.go index 8208b82247d..a6aec09c0ec 100644 --- a/logpush/ownership_test.go +++ b/logpush/ownership_test.go @@ -15,6 +15,7 @@ import ( ) func TestOwnershipNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,6 +43,7 @@ func TestOwnershipNewWithOptionalParams(t *testing.T) { } func TestOwnershipValidateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/logpush/validate_test.go b/logpush/validate_test.go index 82b3a3dd2de..3c60fe8ec14 100644 --- a/logpush/validate_test.go +++ b/logpush/validate_test.go @@ -15,6 +15,7 @@ import ( ) func TestValidateDestinationWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,6 +43,7 @@ func TestValidateDestinationWithOptionalParams(t *testing.T) { } func TestValidateOriginWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/logs/controlcmbconfig_test.go b/logs/controlcmbconfig_test.go index c3a4ce4cbd0..adad27d9232 100644 --- a/logs/controlcmbconfig_test.go +++ b/logs/controlcmbconfig_test.go @@ -15,6 +15,7 @@ import ( ) func TestControlCmbConfigNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,6 +44,7 @@ func TestControlCmbConfigNewWithOptionalParams(t *testing.T) { } func TestControlCmbConfigDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -69,6 +71,7 @@ func TestControlCmbConfigDelete(t *testing.T) { } func TestControlCmbConfigGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/logs/controlretentionflag_test.go b/logs/controlretentionflag_test.go index dccea36fa41..ff637d7121d 100644 --- a/logs/controlretentionflag_test.go +++ b/logs/controlretentionflag_test.go @@ -15,6 +15,7 @@ import ( ) func TestControlRetentionFlagNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestControlRetentionFlagNew(t *testing.T) { } func TestControlRetentionFlagGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/logs/rayid_test.go b/logs/rayid_test.go index de2e088e389..15fb0010fc1 100644 --- a/logs/rayid_test.go +++ b/logs/rayid_test.go @@ -15,6 +15,7 @@ import ( ) func TestRayIDGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/logs/received_test.go b/logs/received_test.go index 8cf87cb8228..9f22f9694fa 100644 --- a/logs/received_test.go +++ b/logs/received_test.go @@ -16,6 +16,7 @@ import ( ) func TestReceivedGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/logs/receivedfield_test.go b/logs/receivedfield_test.go index bf5fe40d2e0..84aabd88a9b 100644 --- a/logs/receivedfield_test.go +++ b/logs/receivedfield_test.go @@ -14,6 +14,7 @@ import ( ) func TestReceivedFieldGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/magic_network_monitoring/config_test.go b/magic_network_monitoring/config_test.go index 35796b758b7..7cc445edfb9 100644 --- a/magic_network_monitoring/config_test.go +++ b/magic_network_monitoring/config_test.go @@ -15,6 +15,7 @@ import ( ) func TestConfigNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestConfigNew(t *testing.T) { } func TestConfigUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -67,6 +69,7 @@ func TestConfigUpdate(t *testing.T) { } func TestConfigDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -93,6 +96,7 @@ func TestConfigDelete(t *testing.T) { } func TestConfigEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -119,6 +123,7 @@ func TestConfigEdit(t *testing.T) { } func TestConfigGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/magic_network_monitoring/configfull_test.go b/magic_network_monitoring/configfull_test.go index 3fbcb1e2fcb..f0b25963496 100644 --- a/magic_network_monitoring/configfull_test.go +++ b/magic_network_monitoring/configfull_test.go @@ -15,6 +15,7 @@ import ( ) func TestConfigFullGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/magic_network_monitoring/rule_test.go b/magic_network_monitoring/rule_test.go index 207efcfe7ec..711b273f820 100644 --- a/magic_network_monitoring/rule_test.go +++ b/magic_network_monitoring/rule_test.go @@ -15,6 +15,7 @@ import ( ) func TestRuleNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestRuleNew(t *testing.T) { } func TestRuleUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -67,6 +69,7 @@ func TestRuleUpdate(t *testing.T) { } func TestRuleList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -92,6 +95,7 @@ func TestRuleList(t *testing.T) { } func TestRuleDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -122,6 +126,7 @@ func TestRuleDelete(t *testing.T) { } func TestRuleEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -152,6 +157,7 @@ func TestRuleEdit(t *testing.T) { } func TestRuleGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/magic_network_monitoring/ruleadvertisement_test.go b/magic_network_monitoring/ruleadvertisement_test.go index bffae3c1fa0..dfe6f09bd81 100644 --- a/magic_network_monitoring/ruleadvertisement_test.go +++ b/magic_network_monitoring/ruleadvertisement_test.go @@ -15,6 +15,7 @@ import ( ) func TestRuleAdvertisementEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/magic_transit/cfinterconnect_test.go b/magic_transit/cfinterconnect_test.go index 3379bd0da1d..49df094f77f 100644 --- a/magic_transit/cfinterconnect_test.go +++ b/magic_transit/cfinterconnect_test.go @@ -15,6 +15,7 @@ import ( ) func TestCfInterconnectUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -56,6 +57,7 @@ func TestCfInterconnectUpdateWithOptionalParams(t *testing.T) { } func TestCfInterconnectList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -81,6 +83,7 @@ func TestCfInterconnectList(t *testing.T) { } func TestCfInterconnectGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/magic_transit/gretunnel_test.go b/magic_transit/gretunnel_test.go index 7dc76b6c829..585c40d1c39 100644 --- a/magic_transit/gretunnel_test.go +++ b/magic_transit/gretunnel_test.go @@ -15,6 +15,7 @@ import ( ) func TestGRETunnelNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestGRETunnelNew(t *testing.T) { } func TestGRETunnelUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -84,6 +86,7 @@ func TestGRETunnelUpdateWithOptionalParams(t *testing.T) { } func TestGRETunnelList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -109,6 +112,7 @@ func TestGRETunnelList(t *testing.T) { } func TestGRETunnelDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -139,6 +143,7 @@ func TestGRETunnelDelete(t *testing.T) { } func TestGRETunnelGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/magic_transit/ipsectunnel_test.go b/magic_transit/ipsectunnel_test.go index 4544feed0c6..535200851f8 100644 --- a/magic_transit/ipsectunnel_test.go +++ b/magic_transit/ipsectunnel_test.go @@ -15,6 +15,7 @@ import ( ) func TestIPSECTunnelNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -54,6 +55,7 @@ func TestIPSECTunnelNewWithOptionalParams(t *testing.T) { } func TestIPSECTunnelUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -97,6 +99,7 @@ func TestIPSECTunnelUpdateWithOptionalParams(t *testing.T) { } func TestIPSECTunnelList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -122,6 +125,7 @@ func TestIPSECTunnelList(t *testing.T) { } func TestIPSECTunnelDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -152,6 +156,7 @@ func TestIPSECTunnelDelete(t *testing.T) { } func TestIPSECTunnelGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -181,6 +186,7 @@ func TestIPSECTunnelGet(t *testing.T) { } func TestIPSECTunnelPSKGenerate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/magic_transit/route_test.go b/magic_transit/route_test.go index b123e5e25a3..bf86a596a0b 100644 --- a/magic_transit/route_test.go +++ b/magic_transit/route_test.go @@ -15,6 +15,7 @@ import ( ) func TestRouteNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestRouteNew(t *testing.T) { } func TestRouteUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -79,6 +81,7 @@ func TestRouteUpdateWithOptionalParams(t *testing.T) { } func TestRouteList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -104,6 +107,7 @@ func TestRouteList(t *testing.T) { } func TestRouteDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -134,6 +138,7 @@ func TestRouteDelete(t *testing.T) { } func TestRouteEmpty(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -160,6 +165,7 @@ func TestRouteEmpty(t *testing.T) { } func TestRouteGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/magic_transit/site_test.go b/magic_transit/site_test.go index 5d0e330eef1..6de303b55db 100644 --- a/magic_transit/site_test.go +++ b/magic_transit/site_test.go @@ -15,6 +15,7 @@ import ( ) func TestSiteNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -51,6 +52,7 @@ func TestSiteNewWithOptionalParams(t *testing.T) { } func TestSiteUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -90,6 +92,7 @@ func TestSiteUpdateWithOptionalParams(t *testing.T) { } func TestSiteListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -116,6 +119,7 @@ func TestSiteListWithOptionalParams(t *testing.T) { } func TestSiteDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -146,6 +150,7 @@ func TestSiteDelete(t *testing.T) { } func TestSiteGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/magic_transit/siteacl_test.go b/magic_transit/siteacl_test.go index 3899ad8ac0e..168684be874 100644 --- a/magic_transit/siteacl_test.go +++ b/magic_transit/siteacl_test.go @@ -16,6 +16,7 @@ import ( ) func TestSiteACLNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -63,6 +64,7 @@ func TestSiteACLNewWithOptionalParams(t *testing.T) { } func TestSiteACLUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -111,6 +113,7 @@ func TestSiteACLUpdateWithOptionalParams(t *testing.T) { } func TestSiteACLList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -140,6 +143,7 @@ func TestSiteACLList(t *testing.T) { } func TestSiteACLDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -171,6 +175,7 @@ func TestSiteACLDelete(t *testing.T) { } func TestSiteACLGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/magic_transit/sitelan_test.go b/magic_transit/sitelan_test.go index 0bf2e4ee4bd..da69bd311e6 100644 --- a/magic_transit/sitelan_test.go +++ b/magic_transit/sitelan_test.go @@ -15,6 +15,7 @@ import ( ) func TestSiteLANNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -89,6 +90,7 @@ func TestSiteLANNewWithOptionalParams(t *testing.T) { } func TestSiteLANUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -163,6 +165,7 @@ func TestSiteLANUpdateWithOptionalParams(t *testing.T) { } func TestSiteLANList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -192,6 +195,7 @@ func TestSiteLANList(t *testing.T) { } func TestSiteLANDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -223,6 +227,7 @@ func TestSiteLANDelete(t *testing.T) { } func TestSiteLANGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/magic_transit/sitewan_test.go b/magic_transit/sitewan_test.go index fa051192cc2..2f34eff3512 100644 --- a/magic_transit/sitewan_test.go +++ b/magic_transit/sitewan_test.go @@ -15,6 +15,7 @@ import ( ) func TestSiteWANNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -55,6 +56,7 @@ func TestSiteWANNewWithOptionalParams(t *testing.T) { } func TestSiteWANUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -96,6 +98,7 @@ func TestSiteWANUpdateWithOptionalParams(t *testing.T) { } func TestSiteWANList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -125,6 +128,7 @@ func TestSiteWANList(t *testing.T) { } func TestSiteWANDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -156,6 +160,7 @@ func TestSiteWANDelete(t *testing.T) { } func TestSiteWANGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/managed_headers/managedheader_test.go b/managed_headers/managedheader_test.go index 733083926ee..e0c671db033 100644 --- a/managed_headers/managedheader_test.go +++ b/managed_headers/managedheader_test.go @@ -15,6 +15,7 @@ import ( ) func TestManagedHeaderList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -40,6 +41,7 @@ func TestManagedHeaderList(t *testing.T) { } func TestManagedHeaderEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/memberships/membership_test.go b/memberships/membership_test.go index 34507c60f63..cd5c30699ea 100644 --- a/memberships/membership_test.go +++ b/memberships/membership_test.go @@ -15,6 +15,7 @@ import ( ) func TestMembershipUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestMembershipUpdate(t *testing.T) { } func TestMembershipListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -77,6 +79,7 @@ func TestMembershipListWithOptionalParams(t *testing.T) { } func TestMembershipDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -106,6 +109,7 @@ func TestMembershipDelete(t *testing.T) { } func TestMembershipGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/mtls_certificates/association_test.go b/mtls_certificates/association_test.go index f1a32192605..ef82e6bf761 100644 --- a/mtls_certificates/association_test.go +++ b/mtls_certificates/association_test.go @@ -15,6 +15,7 @@ import ( ) func TestAssociationGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/mtls_certificates/mtlscertificate_test.go b/mtls_certificates/mtlscertificate_test.go index 02a7b7c6d7e..339b113e186 100644 --- a/mtls_certificates/mtlscertificate_test.go +++ b/mtls_certificates/mtlscertificate_test.go @@ -15,6 +15,7 @@ import ( ) func TestMTLSCertificateNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestMTLSCertificateNewWithOptionalParams(t *testing.T) { } func TestMTLSCertificateList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -69,6 +71,7 @@ func TestMTLSCertificateList(t *testing.T) { } func TestMTLSCertificateDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -99,6 +102,7 @@ func TestMTLSCertificateDelete(t *testing.T) { } func TestMTLSCertificateGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/origin_ca_certificates/origincacertificate_test.go b/origin_ca_certificates/origincacertificate_test.go index 0b38be188bf..d9697157fb1 100644 --- a/origin_ca_certificates/origincacertificate_test.go +++ b/origin_ca_certificates/origincacertificate_test.go @@ -15,6 +15,7 @@ import ( ) func TestOriginCACertificateNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,6 +44,7 @@ func TestOriginCACertificateNewWithOptionalParams(t *testing.T) { } func TestOriginCACertificateListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -68,6 +70,7 @@ func TestOriginCACertificateListWithOptionalParams(t *testing.T) { } func TestOriginCACertificateDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -97,6 +100,7 @@ func TestOriginCACertificateDelete(t *testing.T) { } func TestOriginCACertificateGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/origin_post_quantum_encryption/originpostquantumencryption_test.go b/origin_post_quantum_encryption/originpostquantumencryption_test.go index ab76a76eaba..382c39f7504 100644 --- a/origin_post_quantum_encryption/originpostquantumencryption_test.go +++ b/origin_post_quantum_encryption/originpostquantumencryption_test.go @@ -15,6 +15,7 @@ import ( ) func TestOriginPostQuantumEncryptionUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestOriginPostQuantumEncryptionUpdate(t *testing.T) { } func TestOriginPostQuantumEncryptionGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/origin_tls_client_auth/hostname_test.go b/origin_tls_client_auth/hostname_test.go index a6f8292492b..4836ae647da 100644 --- a/origin_tls_client_auth/hostname_test.go +++ b/origin_tls_client_auth/hostname_test.go @@ -15,6 +15,7 @@ import ( ) func TestHostnameUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -53,6 +54,7 @@ func TestHostnameUpdate(t *testing.T) { } func TestHostnameGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/origin_tls_client_auth/hostnamecertificate_test.go b/origin_tls_client_auth/hostnamecertificate_test.go index 1b8e702ccdd..28868c3714f 100644 --- a/origin_tls_client_auth/hostnamecertificate_test.go +++ b/origin_tls_client_auth/hostnamecertificate_test.go @@ -15,6 +15,7 @@ import ( ) func TestHostnameCertificateNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,6 +43,7 @@ func TestHostnameCertificateNew(t *testing.T) { } func TestHostnameCertificateList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -67,6 +69,7 @@ func TestHostnameCertificateList(t *testing.T) { } func TestHostnameCertificateDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -97,6 +100,7 @@ func TestHostnameCertificateDelete(t *testing.T) { } func TestHostnameCertificateGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/origin_tls_client_auth/origintlsclientauth_test.go b/origin_tls_client_auth/origintlsclientauth_test.go index 5dd7444546a..a35d31223c1 100644 --- a/origin_tls_client_auth/origintlsclientauth_test.go +++ b/origin_tls_client_auth/origintlsclientauth_test.go @@ -15,6 +15,7 @@ import ( ) func TestOriginTLSClientAuthNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,6 +43,7 @@ func TestOriginTLSClientAuthNew(t *testing.T) { } func TestOriginTLSClientAuthList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -67,6 +69,7 @@ func TestOriginTLSClientAuthList(t *testing.T) { } func TestOriginTLSClientAuthDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -97,6 +100,7 @@ func TestOriginTLSClientAuthDelete(t *testing.T) { } func TestOriginTLSClientAuthGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/origin_tls_client_auth/setting_test.go b/origin_tls_client_auth/setting_test.go index 7d70daae3c8..e5a70e3a48b 100644 --- a/origin_tls_client_auth/setting_test.go +++ b/origin_tls_client_auth/setting_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingUpdate(t *testing.T) { } func TestSettingGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/page_shield/connection_test.go b/page_shield/connection_test.go index d93e9d4d4dd..5fab545513f 100644 --- a/page_shield/connection_test.go +++ b/page_shield/connection_test.go @@ -15,6 +15,7 @@ import ( ) func TestConnectionListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -52,6 +53,7 @@ func TestConnectionListWithOptionalParams(t *testing.T) { } func TestConnectionGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/page_shield/pageshield_test.go b/page_shield/pageshield_test.go index bca1f914bdf..968d323a4e4 100644 --- a/page_shield/pageshield_test.go +++ b/page_shield/pageshield_test.go @@ -15,6 +15,7 @@ import ( ) func TestPageShieldUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,6 +44,7 @@ func TestPageShieldUpdateWithOptionalParams(t *testing.T) { } func TestPageShieldGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/page_shield/policy_test.go b/page_shield/policy_test.go index 9b078e19f42..0183e953564 100644 --- a/page_shield/policy_test.go +++ b/page_shield/policy_test.go @@ -15,6 +15,7 @@ import ( ) func TestPolicyNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,6 +46,7 @@ func TestPolicyNewWithOptionalParams(t *testing.T) { } func TestPolicyUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -79,6 +81,7 @@ func TestPolicyUpdateWithOptionalParams(t *testing.T) { } func TestPolicyList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -104,6 +107,7 @@ func TestPolicyList(t *testing.T) { } func TestPolicyDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -133,6 +137,7 @@ func TestPolicyDelete(t *testing.T) { } func TestPolicyGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/page_shield/script_test.go b/page_shield/script_test.go index ca19699ebf9..17dcf95d886 100644 --- a/page_shield/script_test.go +++ b/page_shield/script_test.go @@ -15,6 +15,7 @@ import ( ) func TestScriptListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -53,6 +54,7 @@ func TestScriptListWithOptionalParams(t *testing.T) { } func TestScriptGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/pagerules/pagerule_test.go b/pagerules/pagerule_test.go index 14d24a0ce3a..6901225ca61 100644 --- a/pagerules/pagerule_test.go +++ b/pagerules/pagerule_test.go @@ -15,6 +15,7 @@ import ( ) func TestPageruleNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -56,6 +57,7 @@ func TestPageruleNewWithOptionalParams(t *testing.T) { } func TestPageruleUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -101,6 +103,7 @@ func TestPageruleUpdateWithOptionalParams(t *testing.T) { } func TestPageruleListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -130,6 +133,7 @@ func TestPageruleListWithOptionalParams(t *testing.T) { } func TestPageruleDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -160,6 +164,7 @@ func TestPageruleDelete(t *testing.T) { } func TestPageruleEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -205,6 +210,7 @@ func TestPageruleEditWithOptionalParams(t *testing.T) { } func TestPageruleGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/pagerules/setting_test.go b/pagerules/setting_test.go index 0910e68a798..8d66dfd03df 100644 --- a/pagerules/setting_test.go +++ b/pagerules/setting_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/pages/project_test.go b/pages/project_test.go index e223d150861..5b8aab66c82 100644 --- a/pages/project_test.go +++ b/pages/project_test.go @@ -15,6 +15,7 @@ import ( ) func TestProjectNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -202,6 +203,7 @@ func TestProjectNewWithOptionalParams(t *testing.T) { } func TestProjectList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -227,6 +229,7 @@ func TestProjectList(t *testing.T) { } func TestProjectDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -257,6 +260,7 @@ func TestProjectDelete(t *testing.T) { } func TestProjectEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -306,6 +310,7 @@ func TestProjectEdit(t *testing.T) { } func TestProjectGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -335,6 +340,7 @@ func TestProjectGet(t *testing.T) { } func TestProjectPurgeBuildCache(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/pages/projectdeployment_test.go b/pages/projectdeployment_test.go index 14ebca1dfde..cd560bf2796 100644 --- a/pages/projectdeployment_test.go +++ b/pages/projectdeployment_test.go @@ -15,6 +15,7 @@ import ( ) func TestProjectDeploymentNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,6 +46,7 @@ func TestProjectDeploymentNewWithOptionalParams(t *testing.T) { } func TestProjectDeploymentListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -75,6 +77,7 @@ func TestProjectDeploymentListWithOptionalParams(t *testing.T) { } func TestProjectDeploymentDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -106,6 +109,7 @@ func TestProjectDeploymentDelete(t *testing.T) { } func TestProjectDeploymentGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -136,6 +140,7 @@ func TestProjectDeploymentGet(t *testing.T) { } func TestProjectDeploymentRetry(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -167,6 +172,7 @@ func TestProjectDeploymentRetry(t *testing.T) { } func TestProjectDeploymentRollback(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/pages/projectdeploymenthistorylog_test.go b/pages/projectdeploymenthistorylog_test.go index 16ea453d671..14e6c374f6f 100644 --- a/pages/projectdeploymenthistorylog_test.go +++ b/pages/projectdeploymenthistorylog_test.go @@ -15,6 +15,7 @@ import ( ) func TestProjectDeploymentHistoryLogGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/pages/projectdomain_test.go b/pages/projectdomain_test.go index 48a8b432715..6e54698b562 100644 --- a/pages/projectdomain_test.go +++ b/pages/projectdomain_test.go @@ -15,6 +15,7 @@ import ( ) func TestProjectDomainNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -47,6 +48,7 @@ func TestProjectDomainNew(t *testing.T) { } func TestProjectDomainList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -76,6 +78,7 @@ func TestProjectDomainList(t *testing.T) { } func TestProjectDomainDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -107,6 +110,7 @@ func TestProjectDomainDelete(t *testing.T) { } func TestProjectDomainEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -138,6 +142,7 @@ func TestProjectDomainEdit(t *testing.T) { } func TestProjectDomainGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/pcaps/download_test.go b/pcaps/download_test.go index deffd349a34..b8b39208bc0 100644 --- a/pcaps/download_test.go +++ b/pcaps/download_test.go @@ -17,6 +17,7 @@ import ( ) func TestDownloadGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(200) w.Write([]byte("abc")) diff --git a/pcaps/ownership_test.go b/pcaps/ownership_test.go index 80ed081c411..2724e3c429b 100644 --- a/pcaps/ownership_test.go +++ b/pcaps/ownership_test.go @@ -15,6 +15,7 @@ import ( ) func TestOwnershipNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestOwnershipNew(t *testing.T) { } func TestOwnershipDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -70,6 +72,7 @@ func TestOwnershipDelete(t *testing.T) { } func TestOwnershipGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -95,6 +98,7 @@ func TestOwnershipGet(t *testing.T) { } func TestOwnershipValidate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/pcaps/pcap_test.go b/pcaps/pcap_test.go index 3541fdc1a27..d67b4f2e140 100644 --- a/pcaps/pcap_test.go +++ b/pcaps/pcap_test.go @@ -15,6 +15,7 @@ import ( ) func TestPCAPNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -53,6 +54,7 @@ func TestPCAPNewWithOptionalParams(t *testing.T) { } func TestPCAPList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -78,6 +80,7 @@ func TestPCAPList(t *testing.T) { } func TestPCAPGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/plans/plan_test.go b/plans/plan_test.go index 7f9158a410e..122d9cac3cd 100644 --- a/plans/plan_test.go +++ b/plans/plan_test.go @@ -14,6 +14,7 @@ import ( ) func TestPlanList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -37,6 +38,7 @@ func TestPlanList(t *testing.T) { } func TestPlanGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/queues/consumer_test.go b/queues/consumer_test.go index 5b2e202e30b..f53c3fca042 100644 --- a/queues/consumer_test.go +++ b/queues/consumer_test.go @@ -15,6 +15,7 @@ import ( ) func TestConsumerNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -54,6 +55,7 @@ func TestConsumerNew(t *testing.T) { } func TestConsumerUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -92,6 +94,7 @@ func TestConsumerUpdate(t *testing.T) { } func TestConsumerDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -123,6 +126,7 @@ func TestConsumerDelete(t *testing.T) { } func TestConsumerGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/queues/message_test.go b/queues/message_test.go index e17d8312298..6836144d12b 100644 --- a/queues/message_test.go +++ b/queues/message_test.go @@ -15,6 +15,7 @@ import ( ) func TestMessageAckWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -61,6 +62,7 @@ func TestMessageAckWithOptionalParams(t *testing.T) { } func TestMessagePullWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/queues/queue_test.go b/queues/queue_test.go index 71e7e75d32e..3cf77ee8818 100644 --- a/queues/queue_test.go +++ b/queues/queue_test.go @@ -15,6 +15,7 @@ import ( ) func TestQueueNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,6 +44,7 @@ func TestQueueNew(t *testing.T) { } func TestQueueUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -75,6 +77,7 @@ func TestQueueUpdate(t *testing.T) { } func TestQueueList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -100,6 +103,7 @@ func TestQueueList(t *testing.T) { } func TestQueueDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -130,6 +134,7 @@ func TestQueueDelete(t *testing.T) { } func TestQueueGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/r2/bucket_test.go b/r2/bucket_test.go index 6109ef77c3b..624e783ccd5 100644 --- a/r2/bucket_test.go +++ b/r2/bucket_test.go @@ -15,6 +15,7 @@ import ( ) func TestBucketNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,6 +43,7 @@ func TestBucketNewWithOptionalParams(t *testing.T) { } func TestBucketListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -73,6 +75,7 @@ func TestBucketListWithOptionalParams(t *testing.T) { } func TestBucketDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -102,6 +105,7 @@ func TestBucketDelete(t *testing.T) { } func TestBucketGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/r2/sippy_test.go b/r2/sippy_test.go index ab8653a4715..b6b699e22e9 100644 --- a/r2/sippy_test.go +++ b/r2/sippy_test.go @@ -15,6 +15,7 @@ import ( ) func TestSippyUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -58,6 +59,7 @@ func TestSippyUpdateWithOptionalParams(t *testing.T) { } func TestSippyDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -87,6 +89,7 @@ func TestSippyDelete(t *testing.T) { } func TestSippyGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/annotationoutage_test.go b/radar/annotationoutage_test.go index eeda9f7541e..50606c824e5 100644 --- a/radar/annotationoutage_test.go +++ b/radar/annotationoutage_test.go @@ -16,6 +16,7 @@ import ( ) func TestAnnotationOutageGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -48,6 +49,7 @@ func TestAnnotationOutageGetWithOptionalParams(t *testing.T) { } func TestAnnotationOutageLocationsWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/as112_test.go b/radar/as112_test.go index 4fa0a53d71e..43db28bb625 100644 --- a/radar/as112_test.go +++ b/radar/as112_test.go @@ -16,6 +16,7 @@ import ( ) func TestAS112TimeseriesWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/as112summary_test.go b/radar/as112summary_test.go index 5f6c47b79a0..768baf515eb 100644 --- a/radar/as112summary_test.go +++ b/radar/as112summary_test.go @@ -16,6 +16,7 @@ import ( ) func TestAS112SummaryDNSSECWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -48,6 +49,7 @@ func TestAS112SummaryDNSSECWithOptionalParams(t *testing.T) { } func TestAS112SummaryEdnsWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -80,6 +82,7 @@ func TestAS112SummaryEdnsWithOptionalParams(t *testing.T) { } func TestAS112SummaryIPVersionWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -112,6 +115,7 @@ func TestAS112SummaryIPVersionWithOptionalParams(t *testing.T) { } func TestAS112SummaryProtocolWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -144,6 +148,7 @@ func TestAS112SummaryProtocolWithOptionalParams(t *testing.T) { } func TestAS112SummaryQueryTypeWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -176,6 +181,7 @@ func TestAS112SummaryQueryTypeWithOptionalParams(t *testing.T) { } func TestAS112SummaryResponseCodesWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/as112timeseriesgroup_test.go b/radar/as112timeseriesgroup_test.go index 54e4e94cb10..020483321a7 100644 --- a/radar/as112timeseriesgroup_test.go +++ b/radar/as112timeseriesgroup_test.go @@ -16,6 +16,7 @@ import ( ) func TestAS112TimeseriesGroupDNSSECWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,6 +50,7 @@ func TestAS112TimeseriesGroupDNSSECWithOptionalParams(t *testing.T) { } func TestAS112TimeseriesGroupEdnsWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -82,6 +84,7 @@ func TestAS112TimeseriesGroupEdnsWithOptionalParams(t *testing.T) { } func TestAS112TimeseriesGroupIPVersionWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -115,6 +118,7 @@ func TestAS112TimeseriesGroupIPVersionWithOptionalParams(t *testing.T) { } func TestAS112TimeseriesGroupProtocolWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -148,6 +152,7 @@ func TestAS112TimeseriesGroupProtocolWithOptionalParams(t *testing.T) { } func TestAS112TimeseriesGroupQueryTypeWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -181,6 +186,7 @@ func TestAS112TimeseriesGroupQueryTypeWithOptionalParams(t *testing.T) { } func TestAS112TimeseriesGroupResponseCodesWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/as112top_test.go b/radar/as112top_test.go index 0d66fbce009..e54bcdb3d56 100644 --- a/radar/as112top_test.go +++ b/radar/as112top_test.go @@ -16,6 +16,7 @@ import ( ) func TestAS112TopDNSSECWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -53,6 +54,7 @@ func TestAS112TopDNSSECWithOptionalParams(t *testing.T) { } func TestAS112TopEdnsWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -90,6 +92,7 @@ func TestAS112TopEdnsWithOptionalParams(t *testing.T) { } func TestAS112TopIPVersionWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -127,6 +130,7 @@ func TestAS112TopIPVersionWithOptionalParams(t *testing.T) { } func TestAS112TopLocationsWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/attacklayer3_test.go b/radar/attacklayer3_test.go index 230309eee21..448a71e9a59 100644 --- a/radar/attacklayer3_test.go +++ b/radar/attacklayer3_test.go @@ -16,6 +16,7 @@ import ( ) func TestAttackLayer3TimeseriesWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/attacklayer3summary_test.go b/radar/attacklayer3summary_test.go index c847ce6e466..409533aa769 100644 --- a/radar/attacklayer3summary_test.go +++ b/radar/attacklayer3summary_test.go @@ -16,6 +16,7 @@ import ( ) func TestAttackLayer3SummaryBitrateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -50,6 +51,7 @@ func TestAttackLayer3SummaryBitrateWithOptionalParams(t *testing.T) { } func TestAttackLayer3SummaryDurationWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -84,6 +86,7 @@ func TestAttackLayer3SummaryDurationWithOptionalParams(t *testing.T) { } func TestAttackLayer3SummaryGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -116,6 +119,7 @@ func TestAttackLayer3SummaryGetWithOptionalParams(t *testing.T) { } func TestAttackLayer3SummaryIPVersionWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -149,6 +153,7 @@ func TestAttackLayer3SummaryIPVersionWithOptionalParams(t *testing.T) { } func TestAttackLayer3SummaryProtocolWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -182,6 +187,7 @@ func TestAttackLayer3SummaryProtocolWithOptionalParams(t *testing.T) { } func TestAttackLayer3SummaryVectorWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/attacklayer3timeseriesgroup_test.go b/radar/attacklayer3timeseriesgroup_test.go index ced4274e509..12865a68a3b 100644 --- a/radar/attacklayer3timeseriesgroup_test.go +++ b/radar/attacklayer3timeseriesgroup_test.go @@ -16,6 +16,7 @@ import ( ) func TestAttackLayer3TimeseriesGroupBitrateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -52,6 +53,7 @@ func TestAttackLayer3TimeseriesGroupBitrateWithOptionalParams(t *testing.T) { } func TestAttackLayer3TimeseriesGroupDurationWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -88,6 +90,7 @@ func TestAttackLayer3TimeseriesGroupDurationWithOptionalParams(t *testing.T) { } func TestAttackLayer3TimeseriesGroupGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -121,6 +124,7 @@ func TestAttackLayer3TimeseriesGroupGetWithOptionalParams(t *testing.T) { } func TestAttackLayer3TimeseriesGroupIndustryWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -157,6 +161,7 @@ func TestAttackLayer3TimeseriesGroupIndustryWithOptionalParams(t *testing.T) { } func TestAttackLayer3TimeseriesGroupIPVersionWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -192,6 +197,7 @@ func TestAttackLayer3TimeseriesGroupIPVersionWithOptionalParams(t *testing.T) { } func TestAttackLayer3TimeseriesGroupProtocolWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -227,6 +233,7 @@ func TestAttackLayer3TimeseriesGroupProtocolWithOptionalParams(t *testing.T) { } func TestAttackLayer3TimeseriesGroupVectorWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -264,6 +271,7 @@ func TestAttackLayer3TimeseriesGroupVectorWithOptionalParams(t *testing.T) { } func TestAttackLayer3TimeseriesGroupVerticalWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/attacklayer3top_test.go b/radar/attacklayer3top_test.go index 23a2a8e4cec..c27f5a0365c 100644 --- a/radar/attacklayer3top_test.go +++ b/radar/attacklayer3top_test.go @@ -16,6 +16,7 @@ import ( ) func TestAttackLayer3TopAttacksWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -52,6 +53,7 @@ func TestAttackLayer3TopAttacksWithOptionalParams(t *testing.T) { } func TestAttackLayer3TopIndustryWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -86,6 +88,7 @@ func TestAttackLayer3TopIndustryWithOptionalParams(t *testing.T) { } func TestAttackLayer3TopVerticalWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/attacklayer3toplocation_test.go b/radar/attacklayer3toplocation_test.go index d33d9abded0..3d13f00b268 100644 --- a/radar/attacklayer3toplocation_test.go +++ b/radar/attacklayer3toplocation_test.go @@ -16,6 +16,7 @@ import ( ) func TestAttackLayer3TopLocationOriginWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -50,6 +51,7 @@ func TestAttackLayer3TopLocationOriginWithOptionalParams(t *testing.T) { } func TestAttackLayer3TopLocationTargetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/attacklayer7_test.go b/radar/attacklayer7_test.go index 546c13423c9..e9185184a65 100644 --- a/radar/attacklayer7_test.go +++ b/radar/attacklayer7_test.go @@ -16,6 +16,7 @@ import ( ) func TestAttackLayer7TimeseriesWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/attacklayer7summary_test.go b/radar/attacklayer7summary_test.go index 609911d1702..4d52fad6d8b 100644 --- a/radar/attacklayer7summary_test.go +++ b/radar/attacklayer7summary_test.go @@ -16,6 +16,7 @@ import ( ) func TestAttackLayer7SummaryGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -48,6 +49,7 @@ func TestAttackLayer7SummaryGetWithOptionalParams(t *testing.T) { } func TestAttackLayer7SummaryHTTPMethodWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -83,6 +85,7 @@ func TestAttackLayer7SummaryHTTPMethodWithOptionalParams(t *testing.T) { } func TestAttackLayer7SummaryHTTPVersionWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -118,6 +121,7 @@ func TestAttackLayer7SummaryHTTPVersionWithOptionalParams(t *testing.T) { } func TestAttackLayer7SummaryIPVersionWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -153,6 +157,7 @@ func TestAttackLayer7SummaryIPVersionWithOptionalParams(t *testing.T) { } func TestAttackLayer7SummaryManagedRulesWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -189,6 +194,7 @@ func TestAttackLayer7SummaryManagedRulesWithOptionalParams(t *testing.T) { } func TestAttackLayer7SummaryMitigationProductWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/attacklayer7timeseriesgroup_test.go b/radar/attacklayer7timeseriesgroup_test.go index fc4edfbf42e..688542200d6 100644 --- a/radar/attacklayer7timeseriesgroup_test.go +++ b/radar/attacklayer7timeseriesgroup_test.go @@ -16,6 +16,7 @@ import ( ) func TestAttackLayer7TimeseriesGroupGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,6 +50,7 @@ func TestAttackLayer7TimeseriesGroupGetWithOptionalParams(t *testing.T) { } func TestAttackLayer7TimeseriesGroupHTTPMethodWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -86,6 +88,7 @@ func TestAttackLayer7TimeseriesGroupHTTPMethodWithOptionalParams(t *testing.T) { } func TestAttackLayer7TimeseriesGroupHTTPVersionWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -123,6 +126,7 @@ func TestAttackLayer7TimeseriesGroupHTTPVersionWithOptionalParams(t *testing.T) } func TestAttackLayer7TimeseriesGroupIndustryWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -162,6 +166,7 @@ func TestAttackLayer7TimeseriesGroupIndustryWithOptionalParams(t *testing.T) { } func TestAttackLayer7TimeseriesGroupIPVersionWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -199,6 +204,7 @@ func TestAttackLayer7TimeseriesGroupIPVersionWithOptionalParams(t *testing.T) { } func TestAttackLayer7TimeseriesGroupManagedRulesWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -237,6 +243,7 @@ func TestAttackLayer7TimeseriesGroupManagedRulesWithOptionalParams(t *testing.T) } func TestAttackLayer7TimeseriesGroupMitigationProductWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -274,6 +281,7 @@ func TestAttackLayer7TimeseriesGroupMitigationProductWithOptionalParams(t *testi } func TestAttackLayer7TimeseriesGroupVerticalWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/attacklayer7top_test.go b/radar/attacklayer7top_test.go index e7e4d38f7c4..628cc58bc48 100644 --- a/radar/attacklayer7top_test.go +++ b/radar/attacklayer7top_test.go @@ -16,6 +16,7 @@ import ( ) func TestAttackLayer7TopAttacksWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -52,6 +53,7 @@ func TestAttackLayer7TopAttacksWithOptionalParams(t *testing.T) { } func TestAttackLayer7TopIndustryWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -85,6 +87,7 @@ func TestAttackLayer7TopIndustryWithOptionalParams(t *testing.T) { } func TestAttackLayer7TopVerticalWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/attacklayer7topase_test.go b/radar/attacklayer7topase_test.go index 399b257044c..e70550c2d54 100644 --- a/radar/attacklayer7topase_test.go +++ b/radar/attacklayer7topase_test.go @@ -16,6 +16,7 @@ import ( ) func TestAttackLayer7TopAseOriginWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/attacklayer7toplocation_test.go b/radar/attacklayer7toplocation_test.go index 78a9556c3bb..3eab517f3a2 100644 --- a/radar/attacklayer7toplocation_test.go +++ b/radar/attacklayer7toplocation_test.go @@ -16,6 +16,7 @@ import ( ) func TestAttackLayer7TopLocationOriginWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -48,6 +49,7 @@ func TestAttackLayer7TopLocationOriginWithOptionalParams(t *testing.T) { } func TestAttackLayer7TopLocationTargetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/bgp_test.go b/radar/bgp_test.go index f16397aa995..697640b698f 100644 --- a/radar/bgp_test.go +++ b/radar/bgp_test.go @@ -16,6 +16,7 @@ import ( ) func TestBGPTimeseriesWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/bgphijackevent_test.go b/radar/bgphijackevent_test.go index 61551b21288..ad36d1ce826 100644 --- a/radar/bgphijackevent_test.go +++ b/radar/bgphijackevent_test.go @@ -16,6 +16,7 @@ import ( ) func TestBGPHijackEventListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/bgpleakevent_test.go b/radar/bgpleakevent_test.go index b9f66befcf2..7c44f8c02cd 100644 --- a/radar/bgpleakevent_test.go +++ b/radar/bgpleakevent_test.go @@ -16,6 +16,7 @@ import ( ) func TestBGPLeakEventListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/bgproute_test.go b/radar/bgproute_test.go index d46865eea65..b6da03886e5 100644 --- a/radar/bgproute_test.go +++ b/radar/bgproute_test.go @@ -16,6 +16,7 @@ import ( ) func TestBGPRouteMoasWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestBGPRouteMoasWithOptionalParams(t *testing.T) { } func TestBGPRoutePfx2asWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -73,6 +75,7 @@ func TestBGPRoutePfx2asWithOptionalParams(t *testing.T) { } func TestBGPRouteStatsWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -100,6 +103,7 @@ func TestBGPRouteStatsWithOptionalParams(t *testing.T) { } func TestBGPRouteTimeseriesWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/bgptop_test.go b/radar/bgptop_test.go index cd787055c82..0c8569d86cf 100644 --- a/radar/bgptop_test.go +++ b/radar/bgptop_test.go @@ -16,6 +16,7 @@ import ( ) func TestBGPTopPrefixesWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/bgptopase_test.go b/radar/bgptopase_test.go index 1bcb8166a0c..f810340c0df 100644 --- a/radar/bgptopase_test.go +++ b/radar/bgptopase_test.go @@ -16,6 +16,7 @@ import ( ) func TestBGPTopAseGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,6 +50,7 @@ func TestBGPTopAseGetWithOptionalParams(t *testing.T) { } func TestBGPTopAsePrefixesWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/connectiontampering_test.go b/radar/connectiontampering_test.go index 911f2ae18db..c600683cb7a 100644 --- a/radar/connectiontampering_test.go +++ b/radar/connectiontampering_test.go @@ -16,6 +16,7 @@ import ( ) func TestConnectionTamperingSummaryWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -48,6 +49,7 @@ func TestConnectionTamperingSummaryWithOptionalParams(t *testing.T) { } func TestConnectionTamperingTimeseriesGroupsWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/dataset_test.go b/radar/dataset_test.go index 06d80cb332a..4d5c8375976 100644 --- a/radar/dataset_test.go +++ b/radar/dataset_test.go @@ -15,6 +15,7 @@ import ( ) func TestDatasetListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,6 +44,7 @@ func TestDatasetListWithOptionalParams(t *testing.T) { } func TestDatasetDownloadWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -69,6 +71,7 @@ func TestDatasetDownloadWithOptionalParams(t *testing.T) { } func TestDatasetGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/dnstop_test.go b/radar/dnstop_test.go index 2653b068103..c1a9be99889 100644 --- a/radar/dnstop_test.go +++ b/radar/dnstop_test.go @@ -16,6 +16,7 @@ import ( ) func TestDNSTopAsesWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -50,6 +51,7 @@ func TestDNSTopAsesWithOptionalParams(t *testing.T) { } func TestDNSTopLocationsWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/emailroutingsummary_test.go b/radar/emailroutingsummary_test.go index bd89f46be86..55c84484455 100644 --- a/radar/emailroutingsummary_test.go +++ b/radar/emailroutingsummary_test.go @@ -16,6 +16,7 @@ import ( ) func TestEmailRoutingSummaryARCWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -50,6 +51,7 @@ func TestEmailRoutingSummaryARCWithOptionalParams(t *testing.T) { } func TestEmailRoutingSummaryDKIMWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -84,6 +86,7 @@ func TestEmailRoutingSummaryDKIMWithOptionalParams(t *testing.T) { } func TestEmailRoutingSummaryDMARCWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -118,6 +121,7 @@ func TestEmailRoutingSummaryDMARCWithOptionalParams(t *testing.T) { } func TestEmailRoutingSummaryEncryptedWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -152,6 +156,7 @@ func TestEmailRoutingSummaryEncryptedWithOptionalParams(t *testing.T) { } func TestEmailRoutingSummaryIPVersionWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -186,6 +191,7 @@ func TestEmailRoutingSummaryIPVersionWithOptionalParams(t *testing.T) { } func TestEmailRoutingSummarySPFWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/emailroutingtimeseriesgroup_test.go b/radar/emailroutingtimeseriesgroup_test.go index a9e7cd6a95f..029e959e83c 100644 --- a/radar/emailroutingtimeseriesgroup_test.go +++ b/radar/emailroutingtimeseriesgroup_test.go @@ -16,6 +16,7 @@ import ( ) func TestEmailRoutingTimeseriesGroupARCWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -51,6 +52,7 @@ func TestEmailRoutingTimeseriesGroupARCWithOptionalParams(t *testing.T) { } func TestEmailRoutingTimeseriesGroupDKIMWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -86,6 +88,7 @@ func TestEmailRoutingTimeseriesGroupDKIMWithOptionalParams(t *testing.T) { } func TestEmailRoutingTimeseriesGroupDMARCWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -121,6 +124,7 @@ func TestEmailRoutingTimeseriesGroupDMARCWithOptionalParams(t *testing.T) { } func TestEmailRoutingTimeseriesGroupEncryptedWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -156,6 +160,7 @@ func TestEmailRoutingTimeseriesGroupEncryptedWithOptionalParams(t *testing.T) { } func TestEmailRoutingTimeseriesGroupIPVersionWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -191,6 +196,7 @@ func TestEmailRoutingTimeseriesGroupIPVersionWithOptionalParams(t *testing.T) { } func TestEmailRoutingTimeseriesGroupSPFWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/emailsecuritysummary_test.go b/radar/emailsecuritysummary_test.go index 3737b331fe4..e0c51af3e60 100644 --- a/radar/emailsecuritysummary_test.go +++ b/radar/emailsecuritysummary_test.go @@ -16,6 +16,7 @@ import ( ) func TestEmailSecuritySummaryARCWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,6 +50,7 @@ func TestEmailSecuritySummaryARCWithOptionalParams(t *testing.T) { } func TestEmailSecuritySummaryDKIMWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -82,6 +84,7 @@ func TestEmailSecuritySummaryDKIMWithOptionalParams(t *testing.T) { } func TestEmailSecuritySummaryDMARCWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -115,6 +118,7 @@ func TestEmailSecuritySummaryDMARCWithOptionalParams(t *testing.T) { } func TestEmailSecuritySummaryMaliciousWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -149,6 +153,7 @@ func TestEmailSecuritySummaryMaliciousWithOptionalParams(t *testing.T) { } func TestEmailSecuritySummarySpamWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -183,6 +188,7 @@ func TestEmailSecuritySummarySpamWithOptionalParams(t *testing.T) { } func TestEmailSecuritySummarySPFWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -216,6 +222,7 @@ func TestEmailSecuritySummarySPFWithOptionalParams(t *testing.T) { } func TestEmailSecuritySummarySpoofWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -250,6 +257,7 @@ func TestEmailSecuritySummarySpoofWithOptionalParams(t *testing.T) { } func TestEmailSecuritySummaryThreatCategoryWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -284,6 +292,7 @@ func TestEmailSecuritySummaryThreatCategoryWithOptionalParams(t *testing.T) { } func TestEmailSecuritySummaryTLSVersionWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/emailsecuritytimeseriesgroup_test.go b/radar/emailsecuritytimeseriesgroup_test.go index c93fe209ee3..d480fd9987e 100644 --- a/radar/emailsecuritytimeseriesgroup_test.go +++ b/radar/emailsecuritytimeseriesgroup_test.go @@ -16,6 +16,7 @@ import ( ) func TestEmailSecurityTimeseriesGroupARCWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -50,6 +51,7 @@ func TestEmailSecurityTimeseriesGroupARCWithOptionalParams(t *testing.T) { } func TestEmailSecurityTimeseriesGroupDKIMWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -84,6 +86,7 @@ func TestEmailSecurityTimeseriesGroupDKIMWithOptionalParams(t *testing.T) { } func TestEmailSecurityTimeseriesGroupDMARCWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -118,6 +121,7 @@ func TestEmailSecurityTimeseriesGroupDMARCWithOptionalParams(t *testing.T) { } func TestEmailSecurityTimeseriesGroupMaliciousWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -153,6 +157,7 @@ func TestEmailSecurityTimeseriesGroupMaliciousWithOptionalParams(t *testing.T) { } func TestEmailSecurityTimeseriesGroupSpamWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -188,6 +193,7 @@ func TestEmailSecurityTimeseriesGroupSpamWithOptionalParams(t *testing.T) { } func TestEmailSecurityTimeseriesGroupSPFWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -222,6 +228,7 @@ func TestEmailSecurityTimeseriesGroupSPFWithOptionalParams(t *testing.T) { } func TestEmailSecurityTimeseriesGroupSpoofWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -257,6 +264,7 @@ func TestEmailSecurityTimeseriesGroupSpoofWithOptionalParams(t *testing.T) { } func TestEmailSecurityTimeseriesGroupThreatCategoryWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -292,6 +300,7 @@ func TestEmailSecurityTimeseriesGroupThreatCategoryWithOptionalParams(t *testing } func TestEmailSecurityTimeseriesGroupTLSVersionWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/emailsecuritytoptld_test.go b/radar/emailsecuritytoptld_test.go index d6198370e0e..6460369f714 100644 --- a/radar/emailsecuritytoptld_test.go +++ b/radar/emailsecuritytoptld_test.go @@ -16,6 +16,7 @@ import ( ) func TestEmailSecurityTopTldGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/emailsecuritytoptldmalicious_test.go b/radar/emailsecuritytoptldmalicious_test.go index f16eca0c2a3..3c65f75d1d2 100644 --- a/radar/emailsecuritytoptldmalicious_test.go +++ b/radar/emailsecuritytoptldmalicious_test.go @@ -16,6 +16,7 @@ import ( ) func TestEmailSecurityTopTldMaliciousGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/emailsecuritytoptldspam_test.go b/radar/emailsecuritytoptldspam_test.go index 115307839a4..410fcee85bf 100644 --- a/radar/emailsecuritytoptldspam_test.go +++ b/radar/emailsecuritytoptldspam_test.go @@ -16,6 +16,7 @@ import ( ) func TestEmailSecurityTopTldSpamGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/emailsecuritytoptldspoof_test.go b/radar/emailsecuritytoptldspoof_test.go index f0325a24658..6f42b6b9bdb 100644 --- a/radar/emailsecuritytoptldspoof_test.go +++ b/radar/emailsecuritytoptldspoof_test.go @@ -16,6 +16,7 @@ import ( ) func TestEmailSecurityTopTldSpoofGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/entity_test.go b/radar/entity_test.go index 6913fbbb044..44a99cf761e 100644 --- a/radar/entity_test.go +++ b/radar/entity_test.go @@ -15,6 +15,7 @@ import ( ) func TestEntityGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/entityasn_test.go b/radar/entityasn_test.go index 40dce71396f..8c76e55fed6 100644 --- a/radar/entityasn_test.go +++ b/radar/entityasn_test.go @@ -15,6 +15,7 @@ import ( ) func TestEntityASNListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,6 +46,7 @@ func TestEntityASNListWithOptionalParams(t *testing.T) { } func TestEntityASNGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -74,6 +76,7 @@ func TestEntityASNGetWithOptionalParams(t *testing.T) { } func TestEntityASNIPWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -100,6 +103,7 @@ func TestEntityASNIPWithOptionalParams(t *testing.T) { } func TestEntityASNRelWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/entitylocation_test.go b/radar/entitylocation_test.go index eba2b9fd5c1..0c8b423f9c3 100644 --- a/radar/entitylocation_test.go +++ b/radar/entitylocation_test.go @@ -15,6 +15,7 @@ import ( ) func TestEntityLocationListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,6 +44,7 @@ func TestEntityLocationListWithOptionalParams(t *testing.T) { } func TestEntityLocationGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httpase_test.go b/radar/httpase_test.go index 212e8c0da10..111cb9ea077 100644 --- a/radar/httpase_test.go +++ b/radar/httpase_test.go @@ -16,6 +16,7 @@ import ( ) func TestHTTPAseGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httpasebotclass_test.go b/radar/httpasebotclass_test.go index 62b49d18b2f..85bbd64c8b7 100644 --- a/radar/httpasebotclass_test.go +++ b/radar/httpasebotclass_test.go @@ -16,6 +16,7 @@ import ( ) func TestHTTPAseBotClassGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httpasedevicetype_test.go b/radar/httpasedevicetype_test.go index 63dda3d970b..eb53f13da7e 100644 --- a/radar/httpasedevicetype_test.go +++ b/radar/httpasedevicetype_test.go @@ -16,6 +16,7 @@ import ( ) func TestHTTPAseDeviceTypeGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httpasehttpmethod_test.go b/radar/httpasehttpmethod_test.go index 8ae152bd2bf..db5329cd658 100644 --- a/radar/httpasehttpmethod_test.go +++ b/radar/httpasehttpmethod_test.go @@ -16,6 +16,7 @@ import ( ) func TestHTTPAseHTTPMethodGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httpasehttpprotocol_test.go b/radar/httpasehttpprotocol_test.go index 8e6b627defb..6bd5d992c5f 100644 --- a/radar/httpasehttpprotocol_test.go +++ b/radar/httpasehttpprotocol_test.go @@ -16,6 +16,7 @@ import ( ) func TestHTTPAseHTTPProtocolGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httpaseipversion_test.go b/radar/httpaseipversion_test.go index 692d0276957..271260c9196 100644 --- a/radar/httpaseipversion_test.go +++ b/radar/httpaseipversion_test.go @@ -16,6 +16,7 @@ import ( ) func TestHTTPAseIPVersionGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httpaseos_test.go b/radar/httpaseos_test.go index 4f8614b9094..e560fa37bf6 100644 --- a/radar/httpaseos_test.go +++ b/radar/httpaseos_test.go @@ -16,6 +16,7 @@ import ( ) func TestHTTPAseOSGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httpasetlsversion_test.go b/radar/httpasetlsversion_test.go index 372d6b02ec4..1386874dd50 100644 --- a/radar/httpasetlsversion_test.go +++ b/radar/httpasetlsversion_test.go @@ -16,6 +16,7 @@ import ( ) func TestHTTPAseTLSVersionGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httplocation_test.go b/radar/httplocation_test.go index 65907120030..8741eccd851 100644 --- a/radar/httplocation_test.go +++ b/radar/httplocation_test.go @@ -16,6 +16,7 @@ import ( ) func TestHTTPLocationGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httplocationbotclass_test.go b/radar/httplocationbotclass_test.go index 5c5c1c058d4..a2c97477ea8 100644 --- a/radar/httplocationbotclass_test.go +++ b/radar/httplocationbotclass_test.go @@ -16,6 +16,7 @@ import ( ) func TestHTTPLocationBotClassGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httplocationdevicetype_test.go b/radar/httplocationdevicetype_test.go index 1824cf65fdf..995c9eba4b2 100644 --- a/radar/httplocationdevicetype_test.go +++ b/radar/httplocationdevicetype_test.go @@ -16,6 +16,7 @@ import ( ) func TestHTTPLocationDeviceTypeGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httplocationhttpmethod_test.go b/radar/httplocationhttpmethod_test.go index 4ecff553ede..d285cbd49ca 100644 --- a/radar/httplocationhttpmethod_test.go +++ b/radar/httplocationhttpmethod_test.go @@ -16,6 +16,7 @@ import ( ) func TestHTTPLocationHTTPMethodGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httplocationhttpprotocol_test.go b/radar/httplocationhttpprotocol_test.go index b8a210df83e..cbbbc683cee 100644 --- a/radar/httplocationhttpprotocol_test.go +++ b/radar/httplocationhttpprotocol_test.go @@ -16,6 +16,7 @@ import ( ) func TestHTTPLocationHTTPProtocolGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httplocationipversion_test.go b/radar/httplocationipversion_test.go index ba3048348a9..580d5b65bc8 100644 --- a/radar/httplocationipversion_test.go +++ b/radar/httplocationipversion_test.go @@ -16,6 +16,7 @@ import ( ) func TestHTTPLocationIPVersionGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httplocationos_test.go b/radar/httplocationos_test.go index a335f2504f9..090abe760f8 100644 --- a/radar/httplocationos_test.go +++ b/radar/httplocationos_test.go @@ -16,6 +16,7 @@ import ( ) func TestHTTPLocationOSGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httplocationtlsversion_test.go b/radar/httplocationtlsversion_test.go index 46e9d5595d2..5e2cc04a630 100644 --- a/radar/httplocationtlsversion_test.go +++ b/radar/httplocationtlsversion_test.go @@ -16,6 +16,7 @@ import ( ) func TestHTTPLocationTLSVersionGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httpsummary_test.go b/radar/httpsummary_test.go index 3faad2768d9..f22e1178fdf 100644 --- a/radar/httpsummary_test.go +++ b/radar/httpsummary_test.go @@ -16,6 +16,7 @@ import ( ) func TestHTTPSummaryBotClassWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -54,6 +55,7 @@ func TestHTTPSummaryBotClassWithOptionalParams(t *testing.T) { } func TestHTTPSummaryDeviceTypeWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -92,6 +94,7 @@ func TestHTTPSummaryDeviceTypeWithOptionalParams(t *testing.T) { } func TestHTTPSummaryHTTPProtocolWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -130,6 +133,7 @@ func TestHTTPSummaryHTTPProtocolWithOptionalParams(t *testing.T) { } func TestHTTPSummaryHTTPVersionWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -168,6 +172,7 @@ func TestHTTPSummaryHTTPVersionWithOptionalParams(t *testing.T) { } func TestHTTPSummaryIPVersionWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -206,6 +211,7 @@ func TestHTTPSummaryIPVersionWithOptionalParams(t *testing.T) { } func TestHTTPSummaryOSWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -244,6 +250,7 @@ func TestHTTPSummaryOSWithOptionalParams(t *testing.T) { } func TestHTTPSummaryTLSVersionWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httptimeseriesgroup_test.go b/radar/httptimeseriesgroup_test.go index f7fd68ef1b7..f2e9dcbb90e 100644 --- a/radar/httptimeseriesgroup_test.go +++ b/radar/httptimeseriesgroup_test.go @@ -16,6 +16,7 @@ import ( ) func TestHTTPTimeseriesGroupBotClassWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -55,6 +56,7 @@ func TestHTTPTimeseriesGroupBotClassWithOptionalParams(t *testing.T) { } func TestHTTPTimeseriesGroupBrowserWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -96,6 +98,7 @@ func TestHTTPTimeseriesGroupBrowserWithOptionalParams(t *testing.T) { } func TestHTTPTimeseriesGroupBrowserFamilyWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -136,6 +139,7 @@ func TestHTTPTimeseriesGroupBrowserFamilyWithOptionalParams(t *testing.T) { } func TestHTTPTimeseriesGroupDeviceTypeWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -175,6 +179,7 @@ func TestHTTPTimeseriesGroupDeviceTypeWithOptionalParams(t *testing.T) { } func TestHTTPTimeseriesGroupHTTPProtocolWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -214,6 +219,7 @@ func TestHTTPTimeseriesGroupHTTPProtocolWithOptionalParams(t *testing.T) { } func TestHTTPTimeseriesGroupHTTPVersionWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -253,6 +259,7 @@ func TestHTTPTimeseriesGroupHTTPVersionWithOptionalParams(t *testing.T) { } func TestHTTPTimeseriesGroupIPVersionWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -292,6 +299,7 @@ func TestHTTPTimeseriesGroupIPVersionWithOptionalParams(t *testing.T) { } func TestHTTPTimeseriesGroupOSWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -331,6 +339,7 @@ func TestHTTPTimeseriesGroupOSWithOptionalParams(t *testing.T) { } func TestHTTPTimeseriesGroupTLSVersionWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/httptop_test.go b/radar/httptop_test.go index a34eddfb219..083ad639862 100644 --- a/radar/httptop_test.go +++ b/radar/httptop_test.go @@ -16,6 +16,7 @@ import ( ) func TestHTTPTopBrowserFamiliesWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -56,6 +57,7 @@ func TestHTTPTopBrowserFamiliesWithOptionalParams(t *testing.T) { } func TestHTTPTopBrowsersWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/netflow_test.go b/radar/netflow_test.go index aa0d2896e3a..0a7dc12d7ca 100644 --- a/radar/netflow_test.go +++ b/radar/netflow_test.go @@ -16,6 +16,7 @@ import ( ) func TestNetflowTimeseriesWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/netflowtop_test.go b/radar/netflowtop_test.go index d64037cfb5f..14d65c915c7 100644 --- a/radar/netflowtop_test.go +++ b/radar/netflowtop_test.go @@ -16,6 +16,7 @@ import ( ) func TestNetflowTopAsesWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,6 +50,7 @@ func TestNetflowTopAsesWithOptionalParams(t *testing.T) { } func TestNetflowTopLocationsWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/qualityiqi_test.go b/radar/qualityiqi_test.go index 2eff53238f5..e290873c35a 100644 --- a/radar/qualityiqi_test.go +++ b/radar/qualityiqi_test.go @@ -16,6 +16,7 @@ import ( ) func TestQualityIQISummaryWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,6 +50,7 @@ func TestQualityIQISummaryWithOptionalParams(t *testing.T) { } func TestQualityIQITimeseriesGroupsWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/qualityspeed_test.go b/radar/qualityspeed_test.go index 277ec65f99c..efd12d5b350 100644 --- a/radar/qualityspeed_test.go +++ b/radar/qualityspeed_test.go @@ -16,6 +16,7 @@ import ( ) func TestQualitySpeedHistogramWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -48,6 +49,7 @@ func TestQualitySpeedHistogramWithOptionalParams(t *testing.T) { } func TestQualitySpeedSummaryWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/qualityspeedtop_test.go b/radar/qualityspeedtop_test.go index 4649c1d6e08..bc9c2df2aac 100644 --- a/radar/qualityspeedtop_test.go +++ b/radar/qualityspeedtop_test.go @@ -16,6 +16,7 @@ import ( ) func TestQualitySpeedTopAsesWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,6 +50,7 @@ func TestQualitySpeedTopAsesWithOptionalParams(t *testing.T) { } func TestQualitySpeedTopLocationsWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/ranking_test.go b/radar/ranking_test.go index 16b1a0eafca..59310bcbc2b 100644 --- a/radar/ranking_test.go +++ b/radar/ranking_test.go @@ -16,6 +16,7 @@ import ( ) func TestRankingTimeseriesGroupsWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,6 +50,7 @@ func TestRankingTimeseriesGroupsWithOptionalParams(t *testing.T) { } func TestRankingTopWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/rankingdomain_test.go b/radar/rankingdomain_test.go index 3127a1daa4f..9b9c614428e 100644 --- a/radar/rankingdomain_test.go +++ b/radar/rankingdomain_test.go @@ -15,6 +15,7 @@ import ( ) func TestRankingDomainGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/search_test.go b/radar/search_test.go index 0e558c9d8b9..e6207ebc61e 100644 --- a/radar/search_test.go +++ b/radar/search_test.go @@ -15,6 +15,7 @@ import ( ) func TestSearchGlobalWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/trafficanomaly_test.go b/radar/trafficanomaly_test.go index 564e52a4333..a253eab6642 100644 --- a/radar/trafficanomaly_test.go +++ b/radar/trafficanomaly_test.go @@ -16,6 +16,7 @@ import ( ) func TestTrafficAnomalyGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/trafficanomalylocation_test.go b/radar/trafficanomalylocation_test.go index 22996497a25..a9da4e69f17 100644 --- a/radar/trafficanomalylocation_test.go +++ b/radar/trafficanomalylocation_test.go @@ -16,6 +16,7 @@ import ( ) func TestTrafficAnomalyLocationGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/radar/verifiedbottop_test.go b/radar/verifiedbottop_test.go index 500107d64a7..6b488e10e87 100644 --- a/radar/verifiedbottop_test.go +++ b/radar/verifiedbottop_test.go @@ -16,6 +16,7 @@ import ( ) func TestVerifiedBotTopBotsWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,6 +50,7 @@ func TestVerifiedBotTopBotsWithOptionalParams(t *testing.T) { } func TestVerifiedBotTopCategoriesWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rate_limits/ratelimit_test.go b/rate_limits/ratelimit_test.go index 22a53da552b..596ab863a01 100644 --- a/rate_limits/ratelimit_test.go +++ b/rate_limits/ratelimit_test.go @@ -15,6 +15,7 @@ import ( ) func TestRateLimitNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestRateLimitNew(t *testing.T) { } func TestRateLimitListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -74,6 +76,7 @@ func TestRateLimitListWithOptionalParams(t *testing.T) { } func TestRateLimitDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -104,6 +107,7 @@ func TestRateLimitDelete(t *testing.T) { } func TestRateLimitEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -134,6 +138,7 @@ func TestRateLimitEdit(t *testing.T) { } func TestRateLimitGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rate_plans/rateplan_test.go b/rate_plans/rateplan_test.go index 4dc67ab96b5..fb0e730d465 100644 --- a/rate_plans/rateplan_test.go +++ b/rate_plans/rateplan_test.go @@ -14,6 +14,7 @@ import ( ) func TestRatePlanGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/registrar/domain_test.go b/registrar/domain_test.go index 538249c6729..b1576ded046 100644 --- a/registrar/domain_test.go +++ b/registrar/domain_test.go @@ -15,6 +15,7 @@ import ( ) func TestDomainUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -47,6 +48,7 @@ func TestDomainUpdateWithOptionalParams(t *testing.T) { } func TestDomainList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -72,6 +74,7 @@ func TestDomainList(t *testing.T) { } func TestDomainGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/request_tracers/trace_test.go b/request_tracers/trace_test.go index d982759fb6e..26fccf31813 100644 --- a/request_tracers/trace_test.go +++ b/request_tracers/trace_test.go @@ -15,6 +15,7 @@ import ( ) func TestTraceNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rules/list_test.go b/rules/list_test.go index c3c440f8a46..9273ae14fba 100644 --- a/rules/list_test.go +++ b/rules/list_test.go @@ -15,6 +15,7 @@ import ( ) func TestListNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,6 +44,7 @@ func TestListNewWithOptionalParams(t *testing.T) { } func TestListUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -73,6 +75,7 @@ func TestListUpdateWithOptionalParams(t *testing.T) { } func TestListList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -98,6 +101,7 @@ func TestListList(t *testing.T) { } func TestListDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -128,6 +132,7 @@ func TestListDelete(t *testing.T) { } func TestListGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rules/listbulkoperation_test.go b/rules/listbulkoperation_test.go index 1fce56f617e..2eb7c8be3c1 100644 --- a/rules/listbulkoperation_test.go +++ b/rules/listbulkoperation_test.go @@ -14,6 +14,7 @@ import ( ) func TestListBulkOperationGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rules/listitem_test.go b/rules/listitem_test.go index f9ab4a28f12..f7e0ccdb4d4 100644 --- a/rules/listitem_test.go +++ b/rules/listitem_test.go @@ -15,6 +15,7 @@ import ( ) func TestListItemNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -93,6 +94,7 @@ func TestListItemNew(t *testing.T) { } func TestListItemUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -171,6 +173,7 @@ func TestListItemUpdate(t *testing.T) { } func TestListItemListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -203,6 +206,7 @@ func TestListItemListWithOptionalParams(t *testing.T) { } func TestListItemDeleteWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -235,6 +239,7 @@ func TestListItemDeleteWithOptionalParams(t *testing.T) { } func TestListItemGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rulesets/phase_test.go b/rulesets/phase_test.go index 077c5c6c3f1..8a722986c54 100644 --- a/rulesets/phase_test.go +++ b/rulesets/phase_test.go @@ -15,6 +15,7 @@ import ( ) func TestPhaseUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -101,6 +102,7 @@ func TestPhaseUpdateWithOptionalParams(t *testing.T) { } func TestPhaseGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rulesets/phaseversion_test.go b/rulesets/phaseversion_test.go index 9ba9f0ca022..256ef12bfd7 100644 --- a/rulesets/phaseversion_test.go +++ b/rulesets/phaseversion_test.go @@ -15,6 +15,7 @@ import ( ) func TestPhaseVersionListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,6 +46,7 @@ func TestPhaseVersionListWithOptionalParams(t *testing.T) { } func TestPhaseVersionGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rulesets/rule_test.go b/rulesets/rule_test.go index 6dbb10a4c75..d50048511c2 100644 --- a/rulesets/rule_test.go +++ b/rulesets/rule_test.go @@ -15,6 +15,7 @@ import ( ) func TestRuleNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -48,6 +49,7 @@ func TestRuleNewWithOptionalParams(t *testing.T) { } func TestRuleDeleteWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -79,6 +81,7 @@ func TestRuleDeleteWithOptionalParams(t *testing.T) { } func TestRuleEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rulesets/ruleset_test.go b/rulesets/ruleset_test.go index 906df7d0cba..56bc36baf44 100644 --- a/rulesets/ruleset_test.go +++ b/rulesets/ruleset_test.go @@ -15,6 +15,7 @@ import ( ) func TestRulesetNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -97,6 +98,7 @@ func TestRulesetNewWithOptionalParams(t *testing.T) { } func TestRulesetUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -183,6 +185,7 @@ func TestRulesetUpdateWithOptionalParams(t *testing.T) { } func TestRulesetListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -209,6 +212,7 @@ func TestRulesetListWithOptionalParams(t *testing.T) { } func TestRulesetDeleteWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -239,6 +243,7 @@ func TestRulesetDeleteWithOptionalParams(t *testing.T) { } func TestRulesetGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rulesets/version_test.go b/rulesets/version_test.go index 2d2a352588f..d8104913890 100644 --- a/rulesets/version_test.go +++ b/rulesets/version_test.go @@ -15,6 +15,7 @@ import ( ) func TestVersionListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,6 +46,7 @@ func TestVersionListWithOptionalParams(t *testing.T) { } func TestVersionDeleteWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -76,6 +78,7 @@ func TestVersionDeleteWithOptionalParams(t *testing.T) { } func TestVersionGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rulesets/versionbytag_test.go b/rulesets/versionbytag_test.go index 29a8a6ee7be..6b3ef6aa726 100644 --- a/rulesets/versionbytag_test.go +++ b/rulesets/versionbytag_test.go @@ -15,6 +15,7 @@ import ( ) func TestVersionByTagGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rum/rule_test.go b/rum/rule_test.go index eefb48565f1..7c0d7e27457 100644 --- a/rum/rule_test.go +++ b/rum/rule_test.go @@ -15,6 +15,7 @@ import ( ) func TestRuleNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -48,6 +49,7 @@ func TestRuleNewWithOptionalParams(t *testing.T) { } func TestRuleUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -82,6 +84,7 @@ func TestRuleUpdateWithOptionalParams(t *testing.T) { } func TestRuleList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -111,6 +114,7 @@ func TestRuleList(t *testing.T) { } func TestRuleDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rum/siteinfo_test.go b/rum/siteinfo_test.go index fe85401bffd..08f01cc11bd 100644 --- a/rum/siteinfo_test.go +++ b/rum/siteinfo_test.go @@ -15,6 +15,7 @@ import ( ) func TestSiteInfoNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,6 +44,7 @@ func TestSiteInfoNewWithOptionalParams(t *testing.T) { } func TestSiteInfoUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -75,6 +77,7 @@ func TestSiteInfoUpdateWithOptionalParams(t *testing.T) { } func TestSiteInfoListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -103,6 +106,7 @@ func TestSiteInfoListWithOptionalParams(t *testing.T) { } func TestSiteInfoDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -132,6 +136,7 @@ func TestSiteInfoDelete(t *testing.T) { } func TestSiteInfoGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/secondary_dns/acl_test.go b/secondary_dns/acl_test.go index d24f5693dfd..c63989f7f30 100644 --- a/secondary_dns/acl_test.go +++ b/secondary_dns/acl_test.go @@ -15,6 +15,7 @@ import ( ) func TestACLNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestACLNew(t *testing.T) { } func TestACLUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -74,6 +76,7 @@ func TestACLUpdate(t *testing.T) { } func TestACLList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -99,6 +102,7 @@ func TestACLList(t *testing.T) { } func TestACLDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -129,6 +133,7 @@ func TestACLDelete(t *testing.T) { } func TestACLGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/secondary_dns/forceaxfr_test.go b/secondary_dns/forceaxfr_test.go index 1321d44aebe..ca75a7e43bc 100644 --- a/secondary_dns/forceaxfr_test.go +++ b/secondary_dns/forceaxfr_test.go @@ -15,6 +15,7 @@ import ( ) func TestForceAXFRNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/secondary_dns/incoming_test.go b/secondary_dns/incoming_test.go index 8342d2e22ce..14759a57c91 100644 --- a/secondary_dns/incoming_test.go +++ b/secondary_dns/incoming_test.go @@ -15,6 +15,7 @@ import ( ) func TestIncomingNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,6 +44,7 @@ func TestIncomingNew(t *testing.T) { } func TestIncomingUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -71,6 +73,7 @@ func TestIncomingUpdate(t *testing.T) { } func TestIncomingDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -97,6 +100,7 @@ func TestIncomingDelete(t *testing.T) { } func TestIncomingGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/secondary_dns/outgoing_test.go b/secondary_dns/outgoing_test.go index 8b7bc9ecb1a..b8354c90450 100644 --- a/secondary_dns/outgoing_test.go +++ b/secondary_dns/outgoing_test.go @@ -15,6 +15,7 @@ import ( ) func TestOutgoingNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,6 +43,7 @@ func TestOutgoingNew(t *testing.T) { } func TestOutgoingUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -69,6 +71,7 @@ func TestOutgoingUpdate(t *testing.T) { } func TestOutgoingDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -95,6 +98,7 @@ func TestOutgoingDelete(t *testing.T) { } func TestOutgoingDisable(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -121,6 +125,7 @@ func TestOutgoingDisable(t *testing.T) { } func TestOutgoingEnable(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -147,6 +152,7 @@ func TestOutgoingEnable(t *testing.T) { } func TestOutgoingForceNotify(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -173,6 +179,7 @@ func TestOutgoingForceNotify(t *testing.T) { } func TestOutgoingGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/secondary_dns/outgoingstatus_test.go b/secondary_dns/outgoingstatus_test.go index 88359633d7c..006c0576ee6 100644 --- a/secondary_dns/outgoingstatus_test.go +++ b/secondary_dns/outgoingstatus_test.go @@ -15,6 +15,7 @@ import ( ) func TestOutgoingStatusGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/secondary_dns/peer_test.go b/secondary_dns/peer_test.go index d4349804f58..0142a0d7aef 100644 --- a/secondary_dns/peer_test.go +++ b/secondary_dns/peer_test.go @@ -15,6 +15,7 @@ import ( ) func TestPeerNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestPeerNew(t *testing.T) { } func TestPeerUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -77,6 +79,7 @@ func TestPeerUpdateWithOptionalParams(t *testing.T) { } func TestPeerList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -102,6 +105,7 @@ func TestPeerList(t *testing.T) { } func TestPeerDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -132,6 +136,7 @@ func TestPeerDelete(t *testing.T) { } func TestPeerGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/secondary_dns/tsig_test.go b/secondary_dns/tsig_test.go index 10f1ad7d39c..a3777afb610 100644 --- a/secondary_dns/tsig_test.go +++ b/secondary_dns/tsig_test.go @@ -15,6 +15,7 @@ import ( ) func TestTSIGNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,6 +46,7 @@ func TestTSIGNew(t *testing.T) { } func TestTSIGUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -79,6 +81,7 @@ func TestTSIGUpdate(t *testing.T) { } func TestTSIGList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -104,6 +107,7 @@ func TestTSIGList(t *testing.T) { } func TestTSIGDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -134,6 +138,7 @@ func TestTSIGDelete(t *testing.T) { } func TestTSIGGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/snippets/content_test.go b/snippets/content_test.go index bb680a0e53f..b62bfc933b7 100644 --- a/snippets/content_test.go +++ b/snippets/content_test.go @@ -16,6 +16,7 @@ import ( ) func TestContentGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(200) w.Write([]byte("abc")) diff --git a/snippets/rule_test.go b/snippets/rule_test.go index 1614f38e0f0..297ff781718 100644 --- a/snippets/rule_test.go +++ b/snippets/rule_test.go @@ -15,6 +15,7 @@ import ( ) func TestRuleUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -59,6 +60,7 @@ func TestRuleUpdateWithOptionalParams(t *testing.T) { } func TestRuleList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/snippets/snippet_test.go b/snippets/snippet_test.go index 34d64acedac..a549e952c05 100644 --- a/snippets/snippet_test.go +++ b/snippets/snippet_test.go @@ -15,6 +15,7 @@ import ( ) func TestSnippetUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -48,6 +49,7 @@ func TestSnippetUpdateWithOptionalParams(t *testing.T) { } func TestSnippetList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -71,6 +73,7 @@ func TestSnippetList(t *testing.T) { } func TestSnippetDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -98,6 +101,7 @@ func TestSnippetDelete(t *testing.T) { } func TestSnippetGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/spectrum/analyticsaggregatecurrent_test.go b/spectrum/analyticsaggregatecurrent_test.go index eee8693ddcf..4fa0010f455 100644 --- a/spectrum/analyticsaggregatecurrent_test.go +++ b/spectrum/analyticsaggregatecurrent_test.go @@ -15,6 +15,7 @@ import ( ) func TestAnalyticsAggregateCurrentGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/spectrum/analyticseventbytime_test.go b/spectrum/analyticseventbytime_test.go index 554424a723d..e6071b1d045 100644 --- a/spectrum/analyticseventbytime_test.go +++ b/spectrum/analyticseventbytime_test.go @@ -16,6 +16,7 @@ import ( ) func TestAnalyticsEventBytimeGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/spectrum/analyticseventsummary_test.go b/spectrum/analyticseventsummary_test.go index 4fe9a0a956e..9cdd3838c86 100644 --- a/spectrum/analyticseventsummary_test.go +++ b/spectrum/analyticseventsummary_test.go @@ -16,6 +16,7 @@ import ( ) func TestAnalyticsEventSummaryGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/spectrum/app_test.go b/spectrum/app_test.go index dce6fc043f2..ed334b07c38 100644 --- a/spectrum/app_test.go +++ b/spectrum/app_test.go @@ -16,6 +16,7 @@ import ( ) func TestAppNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -64,6 +65,7 @@ func TestAppNewWithOptionalParams(t *testing.T) { } func TestAppUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -113,6 +115,7 @@ func TestAppUpdateWithOptionalParams(t *testing.T) { } func TestAppListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -145,6 +148,7 @@ func TestAppListWithOptionalParams(t *testing.T) { } func TestAppDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -175,6 +179,7 @@ func TestAppDelete(t *testing.T) { } func TestAppGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/speed/availability_test.go b/speed/availability_test.go index bf55df75073..c64095714e7 100644 --- a/speed/availability_test.go +++ b/speed/availability_test.go @@ -15,6 +15,7 @@ import ( ) func TestAvailabilityList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/speed/page_test.go b/speed/page_test.go index 9a91a8ff916..a3fe62157b0 100644 --- a/speed/page_test.go +++ b/speed/page_test.go @@ -15,6 +15,7 @@ import ( ) func TestPageList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/speed/schedule_test.go b/speed/schedule_test.go index 63ad41de94e..21684911025 100644 --- a/speed/schedule_test.go +++ b/speed/schedule_test.go @@ -15,6 +15,7 @@ import ( ) func TestScheduleNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/speed/speed_test.go b/speed/speed_test.go index 75563765590..4aed55eef8a 100644 --- a/speed/speed_test.go +++ b/speed/speed_test.go @@ -16,6 +16,7 @@ import ( ) func TestSpeedDeleteWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,6 +47,7 @@ func TestSpeedDeleteWithOptionalParams(t *testing.T) { } func TestSpeedScheduleGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -76,6 +78,7 @@ func TestSpeedScheduleGetWithOptionalParams(t *testing.T) { } func TestSpeedTrendsListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/speed/test_test.go b/speed/test_test.go index 0518443bbdf..417968e3fae 100644 --- a/speed/test_test.go +++ b/speed/test_test.go @@ -15,6 +15,7 @@ import ( ) func TestTestNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,6 +46,7 @@ func TestTestNewWithOptionalParams(t *testing.T) { } func TestTestListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -77,6 +79,7 @@ func TestTestListWithOptionalParams(t *testing.T) { } func TestTestDeleteWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -107,6 +110,7 @@ func TestTestDeleteWithOptionalParams(t *testing.T) { } func TestTestGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/ssl/analyze_test.go b/ssl/analyze_test.go index a2a9cc5f4de..85029b4549b 100644 --- a/ssl/analyze_test.go +++ b/ssl/analyze_test.go @@ -16,6 +16,7 @@ import ( ) func TestAnalyzeNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/ssl/certificatepack_test.go b/ssl/certificatepack_test.go index bb490fc511f..b4b22045431 100644 --- a/ssl/certificatepack_test.go +++ b/ssl/certificatepack_test.go @@ -15,6 +15,7 @@ import ( ) func TestCertificatePackListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestCertificatePackListWithOptionalParams(t *testing.T) { } func TestCertificatePackDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -71,6 +73,7 @@ func TestCertificatePackDelete(t *testing.T) { } func TestCertificatePackEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -101,6 +104,7 @@ func TestCertificatePackEdit(t *testing.T) { } func TestCertificatePackGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/ssl/certificatepackorder_test.go b/ssl/certificatepackorder_test.go index 99721abd8c1..65ac40c08d3 100644 --- a/ssl/certificatepackorder_test.go +++ b/ssl/certificatepackorder_test.go @@ -15,6 +15,7 @@ import ( ) func TestCertificatePackOrderNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/ssl/certificatepackquota_test.go b/ssl/certificatepackquota_test.go index 85b513c562c..194fe681b44 100644 --- a/ssl/certificatepackquota_test.go +++ b/ssl/certificatepackquota_test.go @@ -15,6 +15,7 @@ import ( ) func TestCertificatePackQuotaGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/ssl/recommendation_test.go b/ssl/recommendation_test.go index 9b15183cae9..24872615c9c 100644 --- a/ssl/recommendation_test.go +++ b/ssl/recommendation_test.go @@ -14,6 +14,7 @@ import ( ) func TestRecommendationGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/ssl/universalsetting_test.go b/ssl/universalsetting_test.go index 16fd5ba2454..75145922e9d 100644 --- a/ssl/universalsetting_test.go +++ b/ssl/universalsetting_test.go @@ -15,6 +15,7 @@ import ( ) func TestUniversalSettingEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,6 +44,7 @@ func TestUniversalSettingEditWithOptionalParams(t *testing.T) { } func TestUniversalSettingGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/ssl/verification_test.go b/ssl/verification_test.go index a53c9a7a6b3..584a415c91d 100644 --- a/ssl/verification_test.go +++ b/ssl/verification_test.go @@ -15,6 +15,7 @@ import ( ) func TestVerificationEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,6 +46,7 @@ func TestVerificationEdit(t *testing.T) { } func TestVerificationGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/storage/analytics_test.go b/storage/analytics_test.go index 1d8b1bf1a29..f08803a1be2 100644 --- a/storage/analytics_test.go +++ b/storage/analytics_test.go @@ -16,6 +16,7 @@ import ( ) func TestAnalyticsListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -50,6 +51,7 @@ func TestAnalyticsListWithOptionalParams(t *testing.T) { } func TestAnalyticsStoredWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/audiotrack_test.go b/stream/audiotrack_test.go index a1d9d1aee24..36eaad6f237 100644 --- a/stream/audiotrack_test.go +++ b/stream/audiotrack_test.go @@ -15,6 +15,7 @@ import ( ) func TestAudioTrackDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,6 +46,7 @@ func TestAudioTrackDelete(t *testing.T) { } func TestAudioTrackCopyWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -76,6 +78,7 @@ func TestAudioTrackCopyWithOptionalParams(t *testing.T) { } func TestAudioTrackEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -108,6 +111,7 @@ func TestAudioTrackEditWithOptionalParams(t *testing.T) { } func TestAudioTrackGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/caption_test.go b/stream/caption_test.go index be4c348c9ed..e5d30189325 100644 --- a/stream/caption_test.go +++ b/stream/caption_test.go @@ -15,6 +15,7 @@ import ( ) func TestCaptionGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/captionlanguage_test.go b/stream/captionlanguage_test.go index 2be695ca901..6ee9346253e 100644 --- a/stream/captionlanguage_test.go +++ b/stream/captionlanguage_test.go @@ -15,6 +15,7 @@ import ( ) func TestCaptionLanguageUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,6 +47,7 @@ func TestCaptionLanguageUpdate(t *testing.T) { } func TestCaptionLanguageDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -77,6 +79,7 @@ func TestCaptionLanguageDelete(t *testing.T) { } func TestCaptionLanguageGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/captionlanguagevtt_test.go b/stream/captionlanguagevtt_test.go index e4c13001dce..0f097a57544 100644 --- a/stream/captionlanguagevtt_test.go +++ b/stream/captionlanguagevtt_test.go @@ -15,6 +15,7 @@ import ( ) func TestCaptionLanguageVttGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/clip_test.go b/stream/clip_test.go index 7ef21ccba40..496ca22b274 100644 --- a/stream/clip_test.go +++ b/stream/clip_test.go @@ -15,6 +15,7 @@ import ( ) func TestClipNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/copy_test.go b/stream/copy_test.go index 309b3e909e1..f2a3a2718c4 100644 --- a/stream/copy_test.go +++ b/stream/copy_test.go @@ -16,6 +16,7 @@ import ( ) func TestCopyNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/directupload_test.go b/stream/directupload_test.go index 4082e2d74fc..3fc1770ce75 100644 --- a/stream/directupload_test.go +++ b/stream/directupload_test.go @@ -16,6 +16,7 @@ import ( ) func TestDirectUploadNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/download_test.go b/stream/download_test.go index fa2660ef411..692636defb4 100644 --- a/stream/download_test.go +++ b/stream/download_test.go @@ -15,6 +15,7 @@ import ( ) func TestDownloadNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,6 +46,7 @@ func TestDownloadNew(t *testing.T) { } func TestDownloadDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -74,6 +76,7 @@ func TestDownloadDelete(t *testing.T) { } func TestDownloadGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/embed_test.go b/stream/embed_test.go index 2fc8ef79f8b..f27f672c2fd 100644 --- a/stream/embed_test.go +++ b/stream/embed_test.go @@ -15,6 +15,7 @@ import ( ) func TestEmbedGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/key_test.go b/stream/key_test.go index 6b9d3f95ce5..b644d70ddf7 100644 --- a/stream/key_test.go +++ b/stream/key_test.go @@ -15,6 +15,7 @@ import ( ) func TestKeyNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestKeyNew(t *testing.T) { } func TestKeyDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -71,6 +73,7 @@ func TestKeyDelete(t *testing.T) { } func TestKeyGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/liveinput_test.go b/stream/liveinput_test.go index 2027648a1cf..60c0c11215a 100644 --- a/stream/liveinput_test.go +++ b/stream/liveinput_test.go @@ -15,6 +15,7 @@ import ( ) func TestLiveInputNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -51,6 +52,7 @@ func TestLiveInputNewWithOptionalParams(t *testing.T) { } func TestLiveInputUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -91,6 +93,7 @@ func TestLiveInputUpdateWithOptionalParams(t *testing.T) { } func TestLiveInputListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -117,6 +120,7 @@ func TestLiveInputListWithOptionalParams(t *testing.T) { } func TestLiveInputDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -147,6 +151,7 @@ func TestLiveInputDelete(t *testing.T) { } func TestLiveInputGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/liveinputoutput_test.go b/stream/liveinputoutput_test.go index ac3544624fe..91f851fb5ee 100644 --- a/stream/liveinputoutput_test.go +++ b/stream/liveinputoutput_test.go @@ -15,6 +15,7 @@ import ( ) func TestLiveInputOutputNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -47,6 +48,7 @@ func TestLiveInputOutputNewWithOptionalParams(t *testing.T) { } func TestLiveInputOutputUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -78,6 +80,7 @@ func TestLiveInputOutputUpdate(t *testing.T) { } func TestLiveInputOutputList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -107,6 +110,7 @@ func TestLiveInputOutputList(t *testing.T) { } func TestLiveInputOutputDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/stream_test.go b/stream/stream_test.go index 0d9d9186229..5cffd011340 100644 --- a/stream/stream_test.go +++ b/stream/stream_test.go @@ -16,6 +16,7 @@ import ( ) func TestStreamNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,6 +47,7 @@ func TestStreamNewWithOptionalParams(t *testing.T) { } func TestStreamListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -79,6 +81,7 @@ func TestStreamListWithOptionalParams(t *testing.T) { } func TestStreamDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -109,6 +112,7 @@ func TestStreamDelete(t *testing.T) { } func TestStreamGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/token_test.go b/stream/token_test.go index a8920078985..cf721675f5b 100644 --- a/stream/token_test.go +++ b/stream/token_test.go @@ -15,6 +15,7 @@ import ( ) func TestTokenNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/video_test.go b/stream/video_test.go index a2826e95af7..f96088bb0d3 100644 --- a/stream/video_test.go +++ b/stream/video_test.go @@ -15,6 +15,7 @@ import ( ) func TestVideoStorageUsageWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/watermark_test.go b/stream/watermark_test.go index 5b9b5e3fa0c..325aa80c310 100644 --- a/stream/watermark_test.go +++ b/stream/watermark_test.go @@ -15,6 +15,7 @@ import ( ) func TestWatermarkNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,6 +47,7 @@ func TestWatermarkNewWithOptionalParams(t *testing.T) { } func TestWatermarkList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -71,6 +73,7 @@ func TestWatermarkList(t *testing.T) { } func TestWatermarkDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -101,6 +104,7 @@ func TestWatermarkDelete(t *testing.T) { } func TestWatermarkGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/stream/webhook_test.go b/stream/webhook_test.go index 67b83569f07..2f7d92d5bd1 100644 --- a/stream/webhook_test.go +++ b/stream/webhook_test.go @@ -15,6 +15,7 @@ import ( ) func TestWebhookUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestWebhookUpdate(t *testing.T) { } func TestWebhookDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -67,6 +69,7 @@ func TestWebhookDelete(t *testing.T) { } func TestWebhookGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/subscriptions/subscription_test.go b/subscriptions/subscription_test.go index 8283a9387e9..13885f10cb1 100644 --- a/subscriptions/subscription_test.go +++ b/subscriptions/subscription_test.go @@ -16,6 +16,7 @@ import ( ) func TestSubscriptionNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -76,6 +77,7 @@ func TestSubscriptionNewWithOptionalParams(t *testing.T) { } func TestSubscriptionUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -137,6 +139,7 @@ func TestSubscriptionUpdateWithOptionalParams(t *testing.T) { } func TestSubscriptionList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -160,6 +163,7 @@ func TestSubscriptionList(t *testing.T) { } func TestSubscriptionDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -190,6 +194,7 @@ func TestSubscriptionDelete(t *testing.T) { } func TestSubscriptionGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/url_normalization/urlnormalization_test.go b/url_normalization/urlnormalization_test.go index 33841b09b2d..d5d4671fd72 100644 --- a/url_normalization/urlnormalization_test.go +++ b/url_normalization/urlnormalization_test.go @@ -15,6 +15,7 @@ import ( ) func TestURLNormalizationUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,6 +43,7 @@ func TestURLNormalizationUpdateWithOptionalParams(t *testing.T) { } func TestURLNormalizationGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/url_scanner/scan_test.go b/url_scanner/scan_test.go index 13e9f07c903..ae419688339 100644 --- a/url_scanner/scan_test.go +++ b/url_scanner/scan_test.go @@ -19,6 +19,7 @@ import ( ) func TestScanNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -53,6 +54,7 @@ func TestScanNewWithOptionalParams(t *testing.T) { } func TestScanGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -80,6 +82,7 @@ func TestScanGet(t *testing.T) { } func TestScanHar(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -107,6 +110,7 @@ func TestScanHar(t *testing.T) { } func TestScanScreenshotWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(200) w.Write([]byte("abc")) diff --git a/url_scanner/urlscanner_test.go b/url_scanner/urlscanner_test.go index 70a76681821..189738e72d2 100644 --- a/url_scanner/urlscanner_test.go +++ b/url_scanner/urlscanner_test.go @@ -16,6 +16,7 @@ import ( ) func TestURLScannerScanWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/user/auditlog_test.go b/user/auditlog_test.go index ac03c101542..a5029711dc8 100644 --- a/user/auditlog_test.go +++ b/user/auditlog_test.go @@ -16,6 +16,7 @@ import ( ) func TestAuditLogListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/user/billinghistory_test.go b/user/billinghistory_test.go index 94fd9df0099..bdd4b1dd3fd 100644 --- a/user/billinghistory_test.go +++ b/user/billinghistory_test.go @@ -16,6 +16,7 @@ import ( ) func TestBillingHistoryListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/user/billingprofile_test.go b/user/billingprofile_test.go index dc35b2248f0..a7d857c0a46 100644 --- a/user/billingprofile_test.go +++ b/user/billingprofile_test.go @@ -14,6 +14,7 @@ import ( ) func TestBillingProfileGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/user/invite_test.go b/user/invite_test.go index 608d63d04d5..82feca650a9 100644 --- a/user/invite_test.go +++ b/user/invite_test.go @@ -15,6 +15,7 @@ import ( ) func TestInviteList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -38,6 +39,7 @@ func TestInviteList(t *testing.T) { } func TestInviteEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -67,6 +69,7 @@ func TestInviteEdit(t *testing.T) { } func TestInviteGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/user/organization_test.go b/user/organization_test.go index 738c2d9165d..bb3adc45ea2 100644 --- a/user/organization_test.go +++ b/user/organization_test.go @@ -15,6 +15,7 @@ import ( ) func TestOrganizationListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,6 +47,7 @@ func TestOrganizationListWithOptionalParams(t *testing.T) { } func TestOrganizationDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -75,6 +77,7 @@ func TestOrganizationDelete(t *testing.T) { } func TestOrganizationGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/user/subscription_test.go b/user/subscription_test.go index d79b8d26ce2..d4462742dd0 100644 --- a/user/subscription_test.go +++ b/user/subscription_test.go @@ -15,6 +15,7 @@ import ( ) func TestSubscriptionUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -75,6 +76,7 @@ func TestSubscriptionUpdateWithOptionalParams(t *testing.T) { } func TestSubscriptionDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -104,6 +106,7 @@ func TestSubscriptionDelete(t *testing.T) { } func TestSubscriptionEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -164,6 +167,7 @@ func TestSubscriptionEditWithOptionalParams(t *testing.T) { } func TestSubscriptionGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/user/token_test.go b/user/token_test.go index ca73a4cfe12..39570f78386 100644 --- a/user/token_test.go +++ b/user/token_test.go @@ -16,6 +16,7 @@ import ( ) func TestTokenNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -71,6 +72,7 @@ func TestTokenNewWithOptionalParams(t *testing.T) { } func TestTokenUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -133,6 +135,7 @@ func TestTokenUpdateWithOptionalParams(t *testing.T) { } func TestTokenListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -160,6 +163,7 @@ func TestTokenListWithOptionalParams(t *testing.T) { } func TestTokenDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -189,6 +193,7 @@ func TestTokenDelete(t *testing.T) { } func TestTokenGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -212,6 +217,7 @@ func TestTokenGet(t *testing.T) { } func TestTokenVerify(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/user/tokenpermissiongroup_test.go b/user/tokenpermissiongroup_test.go index 324dde10dfc..60b89fe21e7 100644 --- a/user/tokenpermissiongroup_test.go +++ b/user/tokenpermissiongroup_test.go @@ -14,6 +14,7 @@ import ( ) func TestTokenPermissionGroupList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/user/tokenvalue_test.go b/user/tokenvalue_test.go index cd3e11b6d93..1aa17c69a0d 100644 --- a/user/tokenvalue_test.go +++ b/user/tokenvalue_test.go @@ -15,6 +15,7 @@ import ( ) func TestTokenValueUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/user/user_test.go b/user/user_test.go index 17646f777e1..007212bcd66 100644 --- a/user/user_test.go +++ b/user/user_test.go @@ -15,6 +15,7 @@ import ( ) func TestUserEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestUserEditWithOptionalParams(t *testing.T) { } func TestUserGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/vectorize/index_test.go b/vectorize/index_test.go index f718b4cc714..8b2b7e37c98 100644 --- a/vectorize/index_test.go +++ b/vectorize/index_test.go @@ -15,6 +15,7 @@ import ( ) func TestIndexNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,6 +47,7 @@ func TestIndexNewWithOptionalParams(t *testing.T) { } func TestIndexUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -76,6 +78,7 @@ func TestIndexUpdate(t *testing.T) { } func TestIndexList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -101,6 +104,7 @@ func TestIndexList(t *testing.T) { } func TestIndexDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -130,6 +134,7 @@ func TestIndexDelete(t *testing.T) { } func TestIndexDeleteByIDsWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -160,6 +165,7 @@ func TestIndexDeleteByIDsWithOptionalParams(t *testing.T) { } func TestIndexGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -189,6 +195,7 @@ func TestIndexGet(t *testing.T) { } func TestIndexGetByIDsWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -219,6 +226,7 @@ func TestIndexGetByIDsWithOptionalParams(t *testing.T) { } func TestIndexInsert(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -249,6 +257,7 @@ func TestIndexInsert(t *testing.T) { } func TestIndexQueryWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -288,6 +297,7 @@ func TestIndexQueryWithOptionalParams(t *testing.T) { } func TestIndexUpsert(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/waiting_rooms/event_test.go b/waiting_rooms/event_test.go index ceed7f6b453..df298de4efb 100644 --- a/waiting_rooms/event_test.go +++ b/waiting_rooms/event_test.go @@ -15,6 +15,7 @@ import ( ) func TestEventNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -59,6 +60,7 @@ func TestEventNewWithOptionalParams(t *testing.T) { } func TestEventUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -104,6 +106,7 @@ func TestEventUpdateWithOptionalParams(t *testing.T) { } func TestEventListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -135,6 +138,7 @@ func TestEventListWithOptionalParams(t *testing.T) { } func TestEventDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -166,6 +170,7 @@ func TestEventDelete(t *testing.T) { } func TestEventEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -211,6 +216,7 @@ func TestEventEditWithOptionalParams(t *testing.T) { } func TestEventGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/waiting_rooms/eventdetail_test.go b/waiting_rooms/eventdetail_test.go index 80d97938e97..47c7788fa2f 100644 --- a/waiting_rooms/eventdetail_test.go +++ b/waiting_rooms/eventdetail_test.go @@ -15,6 +15,7 @@ import ( ) func TestEventDetailGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/waiting_rooms/page_test.go b/waiting_rooms/page_test.go index 7fd6c9964fd..abb0703abbf 100644 --- a/waiting_rooms/page_test.go +++ b/waiting_rooms/page_test.go @@ -15,6 +15,7 @@ import ( ) func TestPagePreview(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/waiting_rooms/rule_test.go b/waiting_rooms/rule_test.go index 40bce53be0a..5535ce64dfd 100644 --- a/waiting_rooms/rule_test.go +++ b/waiting_rooms/rule_test.go @@ -15,6 +15,7 @@ import ( ) func TestRuleNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -48,6 +49,7 @@ func TestRuleNewWithOptionalParams(t *testing.T) { } func TestRuleUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -93,6 +95,7 @@ func TestRuleUpdate(t *testing.T) { } func TestRuleList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -122,6 +125,7 @@ func TestRuleList(t *testing.T) { } func TestRuleDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -153,6 +157,7 @@ func TestRuleDelete(t *testing.T) { } func TestRuleEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/waiting_rooms/setting_test.go b/waiting_rooms/setting_test.go index a22ea935567..08788935bdb 100644 --- a/waiting_rooms/setting_test.go +++ b/waiting_rooms/setting_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingUpdateWithOptionalParams(t *testing.T) { } func TestSettingEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -67,6 +69,7 @@ func TestSettingEditWithOptionalParams(t *testing.T) { } func TestSettingGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/waiting_rooms/status_test.go b/waiting_rooms/status_test.go index 5afd0499c08..5bb98a83189 100644 --- a/waiting_rooms/status_test.go +++ b/waiting_rooms/status_test.go @@ -15,6 +15,7 @@ import ( ) func TestStatusGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/waiting_rooms/waitingroom_test.go b/waiting_rooms/waitingroom_test.go index fe5ef5210cb..c67d532b914 100644 --- a/waiting_rooms/waitingroom_test.go +++ b/waiting_rooms/waitingroom_test.go @@ -15,6 +15,7 @@ import ( ) func TestWaitingRoomNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -72,6 +73,7 @@ func TestWaitingRoomNewWithOptionalParams(t *testing.T) { } func TestWaitingRoomUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -133,6 +135,7 @@ func TestWaitingRoomUpdateWithOptionalParams(t *testing.T) { } func TestWaitingRoomListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -160,6 +163,7 @@ func TestWaitingRoomListWithOptionalParams(t *testing.T) { } func TestWaitingRoomDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -190,6 +194,7 @@ func TestWaitingRoomDelete(t *testing.T) { } func TestWaitingRoomEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -251,6 +256,7 @@ func TestWaitingRoomEditWithOptionalParams(t *testing.T) { } func TestWaitingRoomGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/warp_connector/warpconnector_test.go b/warp_connector/warpconnector_test.go index e89de9c4b8c..4a52ce9e494 100644 --- a/warp_connector/warpconnector_test.go +++ b/warp_connector/warpconnector_test.go @@ -16,6 +16,7 @@ import ( ) func TestWARPConnectorNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,6 +43,7 @@ func TestWARPConnectorNew(t *testing.T) { } func TestWARPConnectorListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -77,6 +79,7 @@ func TestWARPConnectorListWithOptionalParams(t *testing.T) { } func TestWARPConnectorDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -107,6 +110,7 @@ func TestWARPConnectorDelete(t *testing.T) { } func TestWARPConnectorEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -138,6 +142,7 @@ func TestWARPConnectorEditWithOptionalParams(t *testing.T) { } func TestWARPConnectorGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -167,6 +172,7 @@ func TestWARPConnectorGet(t *testing.T) { } func TestWARPConnectorToken(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/web3/hostname_test.go b/web3/hostname_test.go index c4c8a66a09c..f8881dd8584 100644 --- a/web3/hostname_test.go +++ b/web3/hostname_test.go @@ -15,6 +15,7 @@ import ( ) func TestHostnameNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,6 +47,7 @@ func TestHostnameNewWithOptionalParams(t *testing.T) { } func TestHostnameList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -69,6 +71,7 @@ func TestHostnameList(t *testing.T) { } func TestHostnameDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -99,6 +102,7 @@ func TestHostnameDelete(t *testing.T) { } func TestHostnameEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -130,6 +134,7 @@ func TestHostnameEditWithOptionalParams(t *testing.T) { } func TestHostnameGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/web3/hostnameipfsuniversalpathcontentlist_test.go b/web3/hostnameipfsuniversalpathcontentlist_test.go index 662ce5b4254..f04882f17d1 100644 --- a/web3/hostnameipfsuniversalpathcontentlist_test.go +++ b/web3/hostnameipfsuniversalpathcontentlist_test.go @@ -15,6 +15,7 @@ import ( ) func TestHostnameIPFSUniversalPathContentListUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -58,6 +59,7 @@ func TestHostnameIPFSUniversalPathContentListUpdate(t *testing.T) { } func TestHostnameIPFSUniversalPathContentListGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/web3/hostnameipfsuniversalpathcontentlistentry_test.go b/web3/hostnameipfsuniversalpathcontentlistentry_test.go index 98ecd644123..be6989fa6d6 100644 --- a/web3/hostnameipfsuniversalpathcontentlistentry_test.go +++ b/web3/hostnameipfsuniversalpathcontentlistentry_test.go @@ -15,6 +15,7 @@ import ( ) func TestHostnameIPFSUniversalPathContentListEntryNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -47,6 +48,7 @@ func TestHostnameIPFSUniversalPathContentListEntryNewWithOptionalParams(t *testi } func TestHostnameIPFSUniversalPathContentListEntryUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -80,6 +82,7 @@ func TestHostnameIPFSUniversalPathContentListEntryUpdateWithOptionalParams(t *te } func TestHostnameIPFSUniversalPathContentListEntryList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -107,6 +110,7 @@ func TestHostnameIPFSUniversalPathContentListEntryList(t *testing.T) { } func TestHostnameIPFSUniversalPathContentListEntryDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -138,6 +142,7 @@ func TestHostnameIPFSUniversalPathContentListEntryDelete(t *testing.T) { } func TestHostnameIPFSUniversalPathContentListEntryGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers/accountsetting_test.go b/workers/accountsetting_test.go index edb57590c74..08d436c142a 100644 --- a/workers/accountsetting_test.go +++ b/workers/accountsetting_test.go @@ -15,6 +15,7 @@ import ( ) func TestAccountSettingUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestAccountSettingUpdate(t *testing.T) { } func TestAccountSettingGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers/ai_test.go b/workers/ai_test.go index cac661162d0..ece41338400 100644 --- a/workers/ai_test.go +++ b/workers/ai_test.go @@ -15,6 +15,7 @@ import ( ) func TestAIRunWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers/domain_test.go b/workers/domain_test.go index 5deccb0c97e..a2a6e5ba3c8 100644 --- a/workers/domain_test.go +++ b/workers/domain_test.go @@ -15,6 +15,7 @@ import ( ) func TestDomainUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestDomainUpdate(t *testing.T) { } func TestDomainListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -74,6 +76,7 @@ func TestDomainListWithOptionalParams(t *testing.T) { } func TestDomainDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -104,6 +107,7 @@ func TestDomainDelete(t *testing.T) { } func TestDomainGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers/script_test.go b/workers/script_test.go index 1e7db1a1608..95c8c9fd2d6 100644 --- a/workers/script_test.go +++ b/workers/script_test.go @@ -19,6 +19,7 @@ import ( ) func TestScriptUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -113,6 +114,7 @@ func TestScriptUpdateWithOptionalParams(t *testing.T) { } func TestScriptList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -138,6 +140,7 @@ func TestScriptList(t *testing.T) { } func TestScriptDeleteWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -169,6 +172,7 @@ func TestScriptDeleteWithOptionalParams(t *testing.T) { } func TestScriptGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(200) w.Write([]byte("abc")) diff --git a/workers/scriptcontent_test.go b/workers/scriptcontent_test.go index cc29ba549b4..ec7fd6f6802 100644 --- a/workers/scriptcontent_test.go +++ b/workers/scriptcontent_test.go @@ -19,6 +19,7 @@ import ( ) func TestScriptContentUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -55,6 +56,7 @@ func TestScriptContentUpdateWithOptionalParams(t *testing.T) { } func TestScriptContentGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(200) w.Write([]byte("abc")) diff --git a/workers/scriptdeployment_test.go b/workers/scriptdeployment_test.go index 79e670d8a32..bd146259bbf 100644 --- a/workers/scriptdeployment_test.go +++ b/workers/scriptdeployment_test.go @@ -15,6 +15,7 @@ import ( ) func TestScriptDeploymentNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -48,6 +49,7 @@ func TestScriptDeploymentNewWithOptionalParams(t *testing.T) { } func TestScriptDeploymentGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers/scriptschedule_test.go b/workers/scriptschedule_test.go index 4e30f52b161..a14d50ae951 100644 --- a/workers/scriptschedule_test.go +++ b/workers/scriptschedule_test.go @@ -15,6 +15,7 @@ import ( ) func TestScriptScheduleUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,6 +46,7 @@ func TestScriptScheduleUpdate(t *testing.T) { } func TestScriptScheduleGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers/scriptsetting_test.go b/workers/scriptsetting_test.go index 2e5e93dc96d..939837760f9 100644 --- a/workers/scriptsetting_test.go +++ b/workers/scriptsetting_test.go @@ -15,6 +15,7 @@ import ( ) func TestScriptSettingEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -60,6 +61,7 @@ func TestScriptSettingEditWithOptionalParams(t *testing.T) { } func TestScriptSettingGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers/scripttail_test.go b/workers/scripttail_test.go index 5d3c9c05664..42b6671626b 100644 --- a/workers/scripttail_test.go +++ b/workers/scripttail_test.go @@ -15,6 +15,7 @@ import ( ) func TestScriptTailNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,6 +46,7 @@ func TestScriptTailNew(t *testing.T) { } func TestScriptTailDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -76,6 +78,7 @@ func TestScriptTailDelete(t *testing.T) { } func TestScriptTailGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers/scriptversion_test.go b/workers/scriptversion_test.go index 40df1231327..1e3f64d3e07 100644 --- a/workers/scriptversion_test.go +++ b/workers/scriptversion_test.go @@ -17,6 +17,7 @@ import ( ) func TestScriptVersionNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -63,6 +64,7 @@ func TestScriptVersionNewWithOptionalParams(t *testing.T) { } func TestScriptVersionList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -92,6 +94,7 @@ func TestScriptVersionList(t *testing.T) { } func TestScriptVersionGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers/subdomain_test.go b/workers/subdomain_test.go index 6c37c39c513..f659c744ed5 100644 --- a/workers/subdomain_test.go +++ b/workers/subdomain_test.go @@ -15,6 +15,7 @@ import ( ) func TestSubdomainUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSubdomainUpdate(t *testing.T) { } func TestSubdomainGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers_for_platforms/dispatchnamespace_test.go b/workers_for_platforms/dispatchnamespace_test.go index d84e2f962c5..4e9df31db91 100644 --- a/workers_for_platforms/dispatchnamespace_test.go +++ b/workers_for_platforms/dispatchnamespace_test.go @@ -15,6 +15,7 @@ import ( ) func TestDispatchNamespaceNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestDispatchNamespaceNewWithOptionalParams(t *testing.T) { } func TestDispatchNamespaceList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -66,6 +68,7 @@ func TestDispatchNamespaceList(t *testing.T) { } func TestDispatchNamespaceDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -95,6 +98,7 @@ func TestDispatchNamespaceDelete(t *testing.T) { } func TestDispatchNamespaceGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers_for_platforms/dispatchnamespacescript_test.go b/workers_for_platforms/dispatchnamespacescript_test.go index 5b679f26437..5d77cc1d499 100644 --- a/workers_for_platforms/dispatchnamespacescript_test.go +++ b/workers_for_platforms/dispatchnamespacescript_test.go @@ -18,6 +18,7 @@ import ( ) func TestDispatchNamespaceScriptUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -112,6 +113,7 @@ func TestDispatchNamespaceScriptUpdateWithOptionalParams(t *testing.T) { } func TestDispatchNamespaceScriptDeleteWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -144,6 +146,7 @@ func TestDispatchNamespaceScriptDeleteWithOptionalParams(t *testing.T) { } func TestDispatchNamespaceScriptGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers_for_platforms/dispatchnamespacescriptbinding_test.go b/workers_for_platforms/dispatchnamespacescriptbinding_test.go index 54d0a749bcd..c521d44974c 100644 --- a/workers_for_platforms/dispatchnamespacescriptbinding_test.go +++ b/workers_for_platforms/dispatchnamespacescriptbinding_test.go @@ -15,6 +15,7 @@ import ( ) func TestDispatchNamespaceScriptBindingGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers_for_platforms/dispatchnamespacescriptcontent_test.go b/workers_for_platforms/dispatchnamespacescriptcontent_test.go index 8096ff736b1..3393d0a1e6e 100644 --- a/workers_for_platforms/dispatchnamespacescriptcontent_test.go +++ b/workers_for_platforms/dispatchnamespacescriptcontent_test.go @@ -20,6 +20,7 @@ import ( ) func TestDispatchNamespaceScriptContentUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -57,6 +58,7 @@ func TestDispatchNamespaceScriptContentUpdateWithOptionalParams(t *testing.T) { } func TestDispatchNamespaceScriptContentGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(200) w.Write([]byte("abc")) diff --git a/workers_for_platforms/dispatchnamespacescriptsecret_test.go b/workers_for_platforms/dispatchnamespacescriptsecret_test.go index 9cd822e8a58..2ee9139e1c1 100644 --- a/workers_for_platforms/dispatchnamespacescriptsecret_test.go +++ b/workers_for_platforms/dispatchnamespacescriptsecret_test.go @@ -15,6 +15,7 @@ import ( ) func TestDispatchNamespaceScriptSecretUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -48,6 +49,7 @@ func TestDispatchNamespaceScriptSecretUpdateWithOptionalParams(t *testing.T) { } func TestDispatchNamespaceScriptSecretList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers_for_platforms/dispatchnamespacescriptsetting_test.go b/workers_for_platforms/dispatchnamespacescriptsetting_test.go index e283b437373..d77c9b9088e 100644 --- a/workers_for_platforms/dispatchnamespacescriptsetting_test.go +++ b/workers_for_platforms/dispatchnamespacescriptsetting_test.go @@ -16,6 +16,7 @@ import ( ) func TestDispatchNamespaceScriptSettingEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -108,6 +109,7 @@ func TestDispatchNamespaceScriptSettingEditWithOptionalParams(t *testing.T) { } func TestDispatchNamespaceScriptSettingGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/workers_for_platforms/dispatchnamespacescripttag_test.go b/workers_for_platforms/dispatchnamespacescripttag_test.go index 98a6a08a9fc..8e608129604 100644 --- a/workers_for_platforms/dispatchnamespacescripttag_test.go +++ b/workers_for_platforms/dispatchnamespacescripttag_test.go @@ -15,6 +15,7 @@ import ( ) func TestDispatchNamespaceScriptTagUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,6 +47,7 @@ func TestDispatchNamespaceScriptTagUpdate(t *testing.T) { } func TestDispatchNamespaceScriptTagList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -76,6 +78,7 @@ func TestDispatchNamespaceScriptTagList(t *testing.T) { } func TestDispatchNamespaceScriptTagDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accessapplication_test.go b/zero_trust/accessapplication_test.go index a5691f7f575..81fd1ab91cc 100644 --- a/zero_trust/accessapplication_test.go +++ b/zero_trust/accessapplication_test.go @@ -16,6 +16,7 @@ import ( ) func TestAccessApplicationNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -76,6 +77,7 @@ func TestAccessApplicationNewWithOptionalParams(t *testing.T) { } func TestAccessApplicationUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -140,6 +142,7 @@ func TestAccessApplicationUpdateWithOptionalParams(t *testing.T) { } func TestAccessApplicationListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -166,6 +169,7 @@ func TestAccessApplicationListWithOptionalParams(t *testing.T) { } func TestAccessApplicationDeleteWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -196,6 +200,7 @@ func TestAccessApplicationDeleteWithOptionalParams(t *testing.T) { } func TestAccessApplicationGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -226,6 +231,7 @@ func TestAccessApplicationGetWithOptionalParams(t *testing.T) { } func TestAccessApplicationRevokeTokensWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accessapplicationca_test.go b/zero_trust/accessapplicationca_test.go index f7b150c3e9f..bdb5c36fd73 100644 --- a/zero_trust/accessapplicationca_test.go +++ b/zero_trust/accessapplicationca_test.go @@ -15,6 +15,7 @@ import ( ) func TestAccessApplicationCANewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,6 +46,7 @@ func TestAccessApplicationCANewWithOptionalParams(t *testing.T) { } func TestAccessApplicationCAListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -71,6 +73,7 @@ func TestAccessApplicationCAListWithOptionalParams(t *testing.T) { } func TestAccessApplicationCADeleteWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -101,6 +104,7 @@ func TestAccessApplicationCADeleteWithOptionalParams(t *testing.T) { } func TestAccessApplicationCAGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accessapplicationpolicy_test.go b/zero_trust/accessapplicationpolicy_test.go index c5602163084..cae43abecca 100644 --- a/zero_trust/accessapplicationpolicy_test.go +++ b/zero_trust/accessapplicationpolicy_test.go @@ -15,6 +15,7 @@ import ( ) func TestAccessApplicationPolicyNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -101,6 +102,7 @@ func TestAccessApplicationPolicyNewWithOptionalParams(t *testing.T) { } func TestAccessApplicationPolicyUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -188,6 +190,7 @@ func TestAccessApplicationPolicyUpdateWithOptionalParams(t *testing.T) { } func TestAccessApplicationPolicyListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -218,6 +221,7 @@ func TestAccessApplicationPolicyListWithOptionalParams(t *testing.T) { } func TestAccessApplicationPolicyDeleteWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -249,6 +253,7 @@ func TestAccessApplicationPolicyDeleteWithOptionalParams(t *testing.T) { } func TestAccessApplicationPolicyGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accessapplicationuserpolicycheck_test.go b/zero_trust/accessapplicationuserpolicycheck_test.go index 0aea05d4d2e..0e5c9ae469a 100644 --- a/zero_trust/accessapplicationuserpolicycheck_test.go +++ b/zero_trust/accessapplicationuserpolicycheck_test.go @@ -16,6 +16,7 @@ import ( ) func TestAccessApplicationUserPolicyCheckListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accessbookmark_test.go b/zero_trust/accessbookmark_test.go index fdc21fe9ad4..98f7e866fe1 100644 --- a/zero_trust/accessbookmark_test.go +++ b/zero_trust/accessbookmark_test.go @@ -15,6 +15,7 @@ import ( ) func TestAccessBookmarkNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,6 +46,7 @@ func TestAccessBookmarkNew(t *testing.T) { } func TestAccessBookmarkUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -75,6 +77,7 @@ func TestAccessBookmarkUpdate(t *testing.T) { } func TestAccessBookmarkList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -98,6 +101,7 @@ func TestAccessBookmarkList(t *testing.T) { } func TestAccessBookmarkDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -128,6 +132,7 @@ func TestAccessBookmarkDelete(t *testing.T) { } func TestAccessBookmarkGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accesscertificate_test.go b/zero_trust/accesscertificate_test.go index 03012700702..fcdca9c7659 100644 --- a/zero_trust/accesscertificate_test.go +++ b/zero_trust/accesscertificate_test.go @@ -15,6 +15,7 @@ import ( ) func TestAccessCertificateNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestAccessCertificateNewWithOptionalParams(t *testing.T) { } func TestAccessCertificateUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -76,6 +78,7 @@ func TestAccessCertificateUpdateWithOptionalParams(t *testing.T) { } func TestAccessCertificateListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -102,6 +105,7 @@ func TestAccessCertificateListWithOptionalParams(t *testing.T) { } func TestAccessCertificateDeleteWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -132,6 +136,7 @@ func TestAccessCertificateDeleteWithOptionalParams(t *testing.T) { } func TestAccessCertificateGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accesscertificatesetting_test.go b/zero_trust/accesscertificatesetting_test.go index 48b577ebb93..3d5510ccf27 100644 --- a/zero_trust/accesscertificatesetting_test.go +++ b/zero_trust/accesscertificatesetting_test.go @@ -15,6 +15,7 @@ import ( ) func TestAccessCertificateSettingUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -54,6 +55,7 @@ func TestAccessCertificateSettingUpdateWithOptionalParams(t *testing.T) { } func TestAccessCertificateSettingGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accesscustompage_test.go b/zero_trust/accesscustompage_test.go index 235c2c84263..59147eca3f1 100644 --- a/zero_trust/accesscustompage_test.go +++ b/zero_trust/accesscustompage_test.go @@ -15,6 +15,7 @@ import ( ) func TestAccessCustomPageNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,6 +50,7 @@ func TestAccessCustomPageNewWithOptionalParams(t *testing.T) { } func TestAccessCustomPageUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -84,6 +86,7 @@ func TestAccessCustomPageUpdateWithOptionalParams(t *testing.T) { } func TestAccessCustomPageList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -107,6 +110,7 @@ func TestAccessCustomPageList(t *testing.T) { } func TestAccessCustomPageDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -134,6 +138,7 @@ func TestAccessCustomPageDelete(t *testing.T) { } func TestAccessCustomPageGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accessgroup_test.go b/zero_trust/accessgroup_test.go index ab1a0545f7b..82ae5698f67 100644 --- a/zero_trust/accessgroup_test.go +++ b/zero_trust/accessgroup_test.go @@ -15,6 +15,7 @@ import ( ) func TestAccessGroupNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -82,6 +83,7 @@ func TestAccessGroupNewWithOptionalParams(t *testing.T) { } func TestAccessGroupUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -153,6 +155,7 @@ func TestAccessGroupUpdateWithOptionalParams(t *testing.T) { } func TestAccessGroupListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -179,6 +182,7 @@ func TestAccessGroupListWithOptionalParams(t *testing.T) { } func TestAccessGroupDeleteWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -209,6 +213,7 @@ func TestAccessGroupDeleteWithOptionalParams(t *testing.T) { } func TestAccessGroupGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accesskey_test.go b/zero_trust/accesskey_test.go index 6447d783096..ab5adb30187 100644 --- a/zero_trust/accesskey_test.go +++ b/zero_trust/accesskey_test.go @@ -15,6 +15,7 @@ import ( ) func TestAccessKeyUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestAccessKeyUpdate(t *testing.T) { } func TestAccessKeyGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -67,6 +69,7 @@ func TestAccessKeyGet(t *testing.T) { } func TestAccessKeyRotate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accesslogaccessrequest_test.go b/zero_trust/accesslogaccessrequest_test.go index 2483dbf0ce2..4f4c600d60d 100644 --- a/zero_trust/accesslogaccessrequest_test.go +++ b/zero_trust/accesslogaccessrequest_test.go @@ -14,6 +14,7 @@ import ( ) func TestAccessLogAccessRequestList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accessservicetoken_test.go b/zero_trust/accessservicetoken_test.go index c865dd9ff00..897fbe14580 100644 --- a/zero_trust/accessservicetoken_test.go +++ b/zero_trust/accessservicetoken_test.go @@ -15,6 +15,7 @@ import ( ) func TestAccessServiceTokenNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,6 +44,7 @@ func TestAccessServiceTokenNewWithOptionalParams(t *testing.T) { } func TestAccessServiceTokenUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -75,6 +77,7 @@ func TestAccessServiceTokenUpdateWithOptionalParams(t *testing.T) { } func TestAccessServiceTokenListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -101,6 +104,7 @@ func TestAccessServiceTokenListWithOptionalParams(t *testing.T) { } func TestAccessServiceTokenDeleteWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -131,6 +135,7 @@ func TestAccessServiceTokenDeleteWithOptionalParams(t *testing.T) { } func TestAccessServiceTokenRefresh(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -158,6 +163,7 @@ func TestAccessServiceTokenRefresh(t *testing.T) { } func TestAccessServiceTokenRotate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accesstag_test.go b/zero_trust/accesstag_test.go index 272c6d5710e..71a178be65f 100644 --- a/zero_trust/accesstag_test.go +++ b/zero_trust/accesstag_test.go @@ -15,6 +15,7 @@ import ( ) func TestAccessTagNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestAccessTagNew(t *testing.T) { } func TestAccessTagUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -74,6 +76,7 @@ func TestAccessTagUpdate(t *testing.T) { } func TestAccessTagList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -97,6 +100,7 @@ func TestAccessTagList(t *testing.T) { } func TestAccessTagDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -124,6 +128,7 @@ func TestAccessTagDelete(t *testing.T) { } func TestAccessTagGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accessuser_test.go b/zero_trust/accessuser_test.go index e008030ac78..7bb2850f1b5 100644 --- a/zero_trust/accessuser_test.go +++ b/zero_trust/accessuser_test.go @@ -14,6 +14,7 @@ import ( ) func TestAccessUserList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accessuseractivesession_test.go b/zero_trust/accessuseractivesession_test.go index a401c896faa..b3f5a777fca 100644 --- a/zero_trust/accessuseractivesession_test.go +++ b/zero_trust/accessuseractivesession_test.go @@ -14,6 +14,7 @@ import ( ) func TestAccessUserActiveSessionList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestAccessUserActiveSessionList(t *testing.T) { } func TestAccessUserActiveSessionGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accessuserfailedlogin_test.go b/zero_trust/accessuserfailedlogin_test.go index 7f59fb2a1f2..a179bd4644e 100644 --- a/zero_trust/accessuserfailedlogin_test.go +++ b/zero_trust/accessuserfailedlogin_test.go @@ -14,6 +14,7 @@ import ( ) func TestAccessUserFailedLoginList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/accessuserlastseenidentity_test.go b/zero_trust/accessuserlastseenidentity_test.go index a8c9b8a072d..b241a3fdb8e 100644 --- a/zero_trust/accessuserlastseenidentity_test.go +++ b/zero_trust/accessuserlastseenidentity_test.go @@ -14,6 +14,7 @@ import ( ) func TestAccessUserLastSeenIdentityGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/connectivitysetting_test.go b/zero_trust/connectivitysetting_test.go index 2ff1d38c4c0..382a70e6850 100644 --- a/zero_trust/connectivitysetting_test.go +++ b/zero_trust/connectivitysetting_test.go @@ -15,6 +15,7 @@ import ( ) func TestConnectivitySettingEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,6 +43,7 @@ func TestConnectivitySettingEditWithOptionalParams(t *testing.T) { } func TestConnectivitySettingGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/device_test.go b/zero_trust/device_test.go index 876e02d59a6..88dac0a3774 100644 --- a/zero_trust/device_test.go +++ b/zero_trust/device_test.go @@ -15,6 +15,7 @@ import ( ) func TestDeviceList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -40,6 +41,7 @@ func TestDeviceList(t *testing.T) { } func TestDeviceGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/devicedextest_test.go b/zero_trust/devicedextest_test.go index 1b691572526..dac8acee177 100644 --- a/zero_trust/devicedextest_test.go +++ b/zero_trust/devicedextest_test.go @@ -15,6 +15,7 @@ import ( ) func TestDeviceDEXTestNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -65,6 +66,7 @@ func TestDeviceDEXTestNewWithOptionalParams(t *testing.T) { } func TestDeviceDEXTestUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -119,6 +121,7 @@ func TestDeviceDEXTestUpdateWithOptionalParams(t *testing.T) { } func TestDeviceDEXTestList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -144,6 +147,7 @@ func TestDeviceDEXTestList(t *testing.T) { } func TestDeviceDEXTestDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -173,6 +177,7 @@ func TestDeviceDEXTestDelete(t *testing.T) { } func TestDeviceDEXTestGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/devicenetwork_test.go b/zero_trust/devicenetwork_test.go index 3edd816e83b..f897bd17f7b 100644 --- a/zero_trust/devicenetwork_test.go +++ b/zero_trust/devicenetwork_test.go @@ -15,6 +15,7 @@ import ( ) func TestDeviceNetworkNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,6 +47,7 @@ func TestDeviceNetworkNewWithOptionalParams(t *testing.T) { } func TestDeviceNetworkUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -81,6 +83,7 @@ func TestDeviceNetworkUpdateWithOptionalParams(t *testing.T) { } func TestDeviceNetworkList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -106,6 +109,7 @@ func TestDeviceNetworkList(t *testing.T) { } func TestDeviceNetworkDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -136,6 +140,7 @@ func TestDeviceNetworkDelete(t *testing.T) { } func TestDeviceNetworkGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/deviceoverridecode_test.go b/zero_trust/deviceoverridecode_test.go index 6e8651ad974..0c188750026 100644 --- a/zero_trust/deviceoverridecode_test.go +++ b/zero_trust/deviceoverridecode_test.go @@ -15,6 +15,7 @@ import ( ) func TestDeviceOverrideCodeList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/devicepolicy_test.go b/zero_trust/devicepolicy_test.go index 669e7dd917f..bf407178c6d 100644 --- a/zero_trust/devicepolicy_test.go +++ b/zero_trust/devicepolicy_test.go @@ -15,6 +15,7 @@ import ( ) func TestDevicePolicyNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -60,6 +61,7 @@ func TestDevicePolicyNewWithOptionalParams(t *testing.T) { } func TestDevicePolicyList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -85,6 +87,7 @@ func TestDevicePolicyList(t *testing.T) { } func TestDevicePolicyDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -115,6 +118,7 @@ func TestDevicePolicyDelete(t *testing.T) { } func TestDevicePolicyEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -162,6 +166,7 @@ func TestDevicePolicyEditWithOptionalParams(t *testing.T) { } func TestDevicePolicyGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/devicepolicydefaultpolicy_test.go b/zero_trust/devicepolicydefaultpolicy_test.go index f126c61f7c3..e2164d411a8 100644 --- a/zero_trust/devicepolicydefaultpolicy_test.go +++ b/zero_trust/devicepolicydefaultpolicy_test.go @@ -15,6 +15,7 @@ import ( ) func TestDevicePolicyDefaultPolicyGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/devicepolicyexclude_test.go b/zero_trust/devicepolicyexclude_test.go index e12eaa07fdf..3c60baff497 100644 --- a/zero_trust/devicepolicyexclude_test.go +++ b/zero_trust/devicepolicyexclude_test.go @@ -15,6 +15,7 @@ import ( ) func TestDevicePolicyExcludeUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -53,6 +54,7 @@ func TestDevicePolicyExcludeUpdate(t *testing.T) { } func TestDevicePolicyExcludeList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -78,6 +80,7 @@ func TestDevicePolicyExcludeList(t *testing.T) { } func TestDevicePolicyExcludeGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/devicepolicyfallbackdomain_test.go b/zero_trust/devicepolicyfallbackdomain_test.go index 9ce3e568d1e..caf5294f085 100644 --- a/zero_trust/devicepolicyfallbackdomain_test.go +++ b/zero_trust/devicepolicyfallbackdomain_test.go @@ -15,6 +15,7 @@ import ( ) func TestDevicePolicyFallbackDomainUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -57,6 +58,7 @@ func TestDevicePolicyFallbackDomainUpdate(t *testing.T) { } func TestDevicePolicyFallbackDomainList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -82,6 +84,7 @@ func TestDevicePolicyFallbackDomainList(t *testing.T) { } func TestDevicePolicyFallbackDomainGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/devicepolicyinclude_test.go b/zero_trust/devicepolicyinclude_test.go index 8df8f8fb087..73855c68548 100644 --- a/zero_trust/devicepolicyinclude_test.go +++ b/zero_trust/devicepolicyinclude_test.go @@ -15,6 +15,7 @@ import ( ) func TestDevicePolicyIncludeUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -53,6 +54,7 @@ func TestDevicePolicyIncludeUpdate(t *testing.T) { } func TestDevicePolicyIncludeList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -78,6 +80,7 @@ func TestDevicePolicyIncludeList(t *testing.T) { } func TestDevicePolicyIncludeGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/deviceposture_test.go b/zero_trust/deviceposture_test.go index b412bb13d86..09ef0eda59d 100644 --- a/zero_trust/deviceposture_test.go +++ b/zero_trust/deviceposture_test.go @@ -15,6 +15,7 @@ import ( ) func TestDevicePostureNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -59,6 +60,7 @@ func TestDevicePostureNewWithOptionalParams(t *testing.T) { } func TestDevicePostureUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -107,6 +109,7 @@ func TestDevicePostureUpdateWithOptionalParams(t *testing.T) { } func TestDevicePostureList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -132,6 +135,7 @@ func TestDevicePostureList(t *testing.T) { } func TestDevicePostureDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -162,6 +166,7 @@ func TestDevicePostureDelete(t *testing.T) { } func TestDevicePostureGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/devicepostureintegration_test.go b/zero_trust/devicepostureintegration_test.go index 54e681200e5..dcb58a0734e 100644 --- a/zero_trust/devicepostureintegration_test.go +++ b/zero_trust/devicepostureintegration_test.go @@ -15,6 +15,7 @@ import ( ) func TestDevicePostureIntegrationNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,6 +50,7 @@ func TestDevicePostureIntegrationNewWithOptionalParams(t *testing.T) { } func TestDevicePostureIntegrationList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -74,6 +76,7 @@ func TestDevicePostureIntegrationList(t *testing.T) { } func TestDevicePostureIntegrationDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -104,6 +107,7 @@ func TestDevicePostureIntegrationDelete(t *testing.T) { } func TestDevicePostureIntegrationEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -142,6 +146,7 @@ func TestDevicePostureIntegrationEditWithOptionalParams(t *testing.T) { } func TestDevicePostureIntegrationGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/devicerevoke_test.go b/zero_trust/devicerevoke_test.go index 3b169ae63a8..91b21b1a4ca 100644 --- a/zero_trust/devicerevoke_test.go +++ b/zero_trust/devicerevoke_test.go @@ -15,6 +15,7 @@ import ( ) func TestDeviceRevokeNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/devicesetting_test.go b/zero_trust/devicesetting_test.go index a9dd4830b7b..3ccd554d41c 100644 --- a/zero_trust/devicesetting_test.go +++ b/zero_trust/devicesetting_test.go @@ -15,6 +15,7 @@ import ( ) func TestDeviceSettingUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,6 +47,7 @@ func TestDeviceSettingUpdateWithOptionalParams(t *testing.T) { } func TestDeviceSettingList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/deviceunrevoke_test.go b/zero_trust/deviceunrevoke_test.go index 15ec1203448..5c0c8cf4822 100644 --- a/zero_trust/deviceunrevoke_test.go +++ b/zero_trust/deviceunrevoke_test.go @@ -15,6 +15,7 @@ import ( ) func TestDeviceUnrevokeNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dexcolo_test.go b/zero_trust/dexcolo_test.go index 8a756b64f8a..7bb8e90a249 100644 --- a/zero_trust/dexcolo_test.go +++ b/zero_trust/dexcolo_test.go @@ -15,6 +15,7 @@ import ( ) func TestDEXColoListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dexfleetstatus_test.go b/zero_trust/dexfleetstatus_test.go index f3d811b340a..971d4893db7 100644 --- a/zero_trust/dexfleetstatus_test.go +++ b/zero_trust/dexfleetstatus_test.go @@ -15,6 +15,7 @@ import ( ) func TestDEXFleetStatusLive(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestDEXFleetStatusLive(t *testing.T) { } func TestDEXFleetStatusOverTimeWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dexfleetstatusdevice_test.go b/zero_trust/dexfleetstatusdevice_test.go index c3749bb8464..44af9640b11 100644 --- a/zero_trust/dexfleetstatusdevice_test.go +++ b/zero_trust/dexfleetstatusdevice_test.go @@ -15,6 +15,7 @@ import ( ) func TestDEXFleetStatusDeviceListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dexhttptest_test.go b/zero_trust/dexhttptest_test.go index b918aecb7e1..3af4078a3bd 100644 --- a/zero_trust/dexhttptest_test.go +++ b/zero_trust/dexhttptest_test.go @@ -15,6 +15,7 @@ import ( ) func TestDEXHTTPTestGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dexhttptestpercentile_test.go b/zero_trust/dexhttptestpercentile_test.go index 9232aa8561f..63846d98f2d 100644 --- a/zero_trust/dexhttptestpercentile_test.go +++ b/zero_trust/dexhttptestpercentile_test.go @@ -15,6 +15,7 @@ import ( ) func TestDEXHTTPTestPercentileGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dextest_test.go b/zero_trust/dextest_test.go index 3f7f8f4ca08..1267b48f9a3 100644 --- a/zero_trust/dextest_test.go +++ b/zero_trust/dextest_test.go @@ -15,6 +15,7 @@ import ( ) func TestDEXTestListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dextestuniquedevice_test.go b/zero_trust/dextestuniquedevice_test.go index 06169b3eb57..41aab678341 100644 --- a/zero_trust/dextestuniquedevice_test.go +++ b/zero_trust/dextestuniquedevice_test.go @@ -15,6 +15,7 @@ import ( ) func TestDEXTestUniqueDeviceListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dextraceroutetest_test.go b/zero_trust/dextraceroutetest_test.go index e3eefd95dea..937aabd6cfb 100644 --- a/zero_trust/dextraceroutetest_test.go +++ b/zero_trust/dextraceroutetest_test.go @@ -15,6 +15,7 @@ import ( ) func TestDEXTracerouteTestGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,6 +50,7 @@ func TestDEXTracerouteTestGetWithOptionalParams(t *testing.T) { } func TestDEXTracerouteTestNetworkPath(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -82,6 +84,7 @@ func TestDEXTracerouteTestNetworkPath(t *testing.T) { } func TestDEXTracerouteTestPercentilesWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dextraceroutetestresultnetworkpath_test.go b/zero_trust/dextraceroutetestresultnetworkpath_test.go index 99e60ab2b6d..3f3fe83f7cc 100644 --- a/zero_trust/dextraceroutetestresultnetworkpath_test.go +++ b/zero_trust/dextraceroutetestresultnetworkpath_test.go @@ -15,6 +15,7 @@ import ( ) func TestDEXTracerouteTestResultNetworkPathGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dlpdataset_test.go b/zero_trust/dlpdataset_test.go index df9fdde498b..3c11b89e5d7 100644 --- a/zero_trust/dlpdataset_test.go +++ b/zero_trust/dlpdataset_test.go @@ -15,6 +15,7 @@ import ( ) func TestDLPDatasetNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,6 +44,7 @@ func TestDLPDatasetNewWithOptionalParams(t *testing.T) { } func TestDLPDatasetUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -74,6 +76,7 @@ func TestDLPDatasetUpdateWithOptionalParams(t *testing.T) { } func TestDLPDatasetList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -99,6 +102,7 @@ func TestDLPDatasetList(t *testing.T) { } func TestDLPDatasetDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -128,6 +132,7 @@ func TestDLPDatasetDelete(t *testing.T) { } func TestDLPDatasetGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dlpdatasetupload_test.go b/zero_trust/dlpdatasetupload_test.go index 9237bba6d75..194c2632519 100644 --- a/zero_trust/dlpdatasetupload_test.go +++ b/zero_trust/dlpdatasetupload_test.go @@ -15,6 +15,7 @@ import ( ) func TestDLPDatasetUploadNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestDLPDatasetUploadNew(t *testing.T) { } func TestDLPDatasetUploadEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dlppattern_test.go b/zero_trust/dlppattern_test.go index 8ff48a94fd1..7ee523029b2 100644 --- a/zero_trust/dlppattern_test.go +++ b/zero_trust/dlppattern_test.go @@ -15,6 +15,7 @@ import ( ) func TestDLPPatternValidate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dlppayloadlog_test.go b/zero_trust/dlppayloadlog_test.go index 3b978a40aa3..ba059c4d124 100644 --- a/zero_trust/dlppayloadlog_test.go +++ b/zero_trust/dlppayloadlog_test.go @@ -15,6 +15,7 @@ import ( ) func TestDLPPayloadLogUpdate(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestDLPPayloadLogUpdate(t *testing.T) { } func TestDLPPayloadLogGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dlpprofile_test.go b/zero_trust/dlpprofile_test.go index ab6d605bdee..d19eea0a3e6 100644 --- a/zero_trust/dlpprofile_test.go +++ b/zero_trust/dlpprofile_test.go @@ -15,6 +15,7 @@ import ( ) func TestDLPProfileList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -40,6 +41,7 @@ func TestDLPProfileList(t *testing.T) { } func TestDLPProfileGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dlpprofilecustom_test.go b/zero_trust/dlpprofilecustom_test.go index 42b64a34b89..64cea9e783f 100644 --- a/zero_trust/dlpprofilecustom_test.go +++ b/zero_trust/dlpprofilecustom_test.go @@ -15,6 +15,7 @@ import ( ) func TestDLPProfileCustomNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -140,6 +141,7 @@ func TestDLPProfileCustomNew(t *testing.T) { } func TestDLPProfileCustomUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -211,6 +213,7 @@ func TestDLPProfileCustomUpdateWithOptionalParams(t *testing.T) { } func TestDLPProfileCustomDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -241,6 +244,7 @@ func TestDLPProfileCustomDelete(t *testing.T) { } func TestDLPProfileCustomGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/dlpprofilepredefined_test.go b/zero_trust/dlpprofilepredefined_test.go index 0078dc43d8f..e2c30a930b9 100644 --- a/zero_trust/dlpprofilepredefined_test.go +++ b/zero_trust/dlpprofilepredefined_test.go @@ -15,6 +15,7 @@ import ( ) func TestDLPProfilePredefinedUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -59,6 +60,7 @@ func TestDLPProfilePredefinedUpdateWithOptionalParams(t *testing.T) { } func TestDLPProfilePredefinedGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/gateway_test.go b/zero_trust/gateway_test.go index 0df5a93c43c..ca2f5479242 100644 --- a/zero_trust/gateway_test.go +++ b/zero_trust/gateway_test.go @@ -15,6 +15,7 @@ import ( ) func TestGatewayNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -40,6 +41,7 @@ func TestGatewayNew(t *testing.T) { } func TestGatewayList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/gatewayapptype_test.go b/zero_trust/gatewayapptype_test.go index 7d400cc4ba6..739427698e5 100644 --- a/zero_trust/gatewayapptype_test.go +++ b/zero_trust/gatewayapptype_test.go @@ -15,6 +15,7 @@ import ( ) func TestGatewayAppTypeList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/gatewayauditsshsetting_test.go b/zero_trust/gatewayauditsshsetting_test.go index 61dfcc3b884..ba7fc64520d 100644 --- a/zero_trust/gatewayauditsshsetting_test.go +++ b/zero_trust/gatewayauditsshsetting_test.go @@ -15,6 +15,7 @@ import ( ) func TestGatewayAuditSSHSettingUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,6 +43,7 @@ func TestGatewayAuditSSHSettingUpdateWithOptionalParams(t *testing.T) { } func TestGatewayAuditSSHSettingGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/gatewaycategory_test.go b/zero_trust/gatewaycategory_test.go index f8e7706d8aa..dffbc158d88 100644 --- a/zero_trust/gatewaycategory_test.go +++ b/zero_trust/gatewaycategory_test.go @@ -15,6 +15,7 @@ import ( ) func TestGatewayCategoryList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/gatewayconfiguration_test.go b/zero_trust/gatewayconfiguration_test.go index 619467c27db..0d4e17341fc 100644 --- a/zero_trust/gatewayconfiguration_test.go +++ b/zero_trust/gatewayconfiguration_test.go @@ -15,6 +15,7 @@ import ( ) func TestGatewayConfigurationUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -89,6 +90,7 @@ func TestGatewayConfigurationUpdateWithOptionalParams(t *testing.T) { } func TestGatewayConfigurationEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -163,6 +165,7 @@ func TestGatewayConfigurationEditWithOptionalParams(t *testing.T) { } func TestGatewayConfigurationGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/gatewaylist_test.go b/zero_trust/gatewaylist_test.go index cf578a44f2f..3dc8766ef9d 100644 --- a/zero_trust/gatewaylist_test.go +++ b/zero_trust/gatewaylist_test.go @@ -15,6 +15,7 @@ import ( ) func TestGatewayListNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -50,6 +51,7 @@ func TestGatewayListNewWithOptionalParams(t *testing.T) { } func TestGatewayListUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -81,6 +83,7 @@ func TestGatewayListUpdateWithOptionalParams(t *testing.T) { } func TestGatewayListList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -106,6 +109,7 @@ func TestGatewayListList(t *testing.T) { } func TestGatewayListDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -136,6 +140,7 @@ func TestGatewayListDelete(t *testing.T) { } func TestGatewayListEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -173,6 +178,7 @@ func TestGatewayListEditWithOptionalParams(t *testing.T) { } func TestGatewayListGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/gatewaylistitem_test.go b/zero_trust/gatewaylistitem_test.go index d3f3f3084d5..603526ab09b 100644 --- a/zero_trust/gatewaylistitem_test.go +++ b/zero_trust/gatewaylistitem_test.go @@ -15,6 +15,7 @@ import ( ) func TestGatewayListItemList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/gatewaylocation_test.go b/zero_trust/gatewaylocation_test.go index aacfbfef208..e0b1ef6b2da 100644 --- a/zero_trust/gatewaylocation_test.go +++ b/zero_trust/gatewaylocation_test.go @@ -15,6 +15,7 @@ import ( ) func TestGatewayLocationNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -50,6 +51,7 @@ func TestGatewayLocationNewWithOptionalParams(t *testing.T) { } func TestGatewayLocationUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -89,6 +91,7 @@ func TestGatewayLocationUpdateWithOptionalParams(t *testing.T) { } func TestGatewayLocationList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -114,6 +117,7 @@ func TestGatewayLocationList(t *testing.T) { } func TestGatewayLocationDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -144,6 +148,7 @@ func TestGatewayLocationDelete(t *testing.T) { } func TestGatewayLocationGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/gatewaylogging_test.go b/zero_trust/gatewaylogging_test.go index 8684a34ad39..f22907d333a 100644 --- a/zero_trust/gatewaylogging_test.go +++ b/zero_trust/gatewaylogging_test.go @@ -15,6 +15,7 @@ import ( ) func TestGatewayLoggingUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -48,6 +49,7 @@ func TestGatewayLoggingUpdateWithOptionalParams(t *testing.T) { } func TestGatewayLoggingGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/gatewayproxyendpoint_test.go b/zero_trust/gatewayproxyendpoint_test.go index 1d1b85a2336..f522e8ef5a5 100644 --- a/zero_trust/gatewayproxyendpoint_test.go +++ b/zero_trust/gatewayproxyendpoint_test.go @@ -15,6 +15,7 @@ import ( ) func TestGatewayProxyEndpointNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,6 +43,7 @@ func TestGatewayProxyEndpointNew(t *testing.T) { } func TestGatewayProxyEndpointList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -67,6 +69,7 @@ func TestGatewayProxyEndpointList(t *testing.T) { } func TestGatewayProxyEndpointDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -97,6 +100,7 @@ func TestGatewayProxyEndpointDelete(t *testing.T) { } func TestGatewayProxyEndpointEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -128,6 +132,7 @@ func TestGatewayProxyEndpointEditWithOptionalParams(t *testing.T) { } func TestGatewayProxyEndpointGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/gatewayrule_test.go b/zero_trust/gatewayrule_test.go index 7bd8f5af041..1b39f4bbb96 100644 --- a/zero_trust/gatewayrule_test.go +++ b/zero_trust/gatewayrule_test.go @@ -15,6 +15,7 @@ import ( ) func TestGatewayRuleNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -148,6 +149,7 @@ func TestGatewayRuleNewWithOptionalParams(t *testing.T) { } func TestGatewayRuleUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -285,6 +287,7 @@ func TestGatewayRuleUpdateWithOptionalParams(t *testing.T) { } func TestGatewayRuleList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -310,6 +313,7 @@ func TestGatewayRuleList(t *testing.T) { } func TestGatewayRuleDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -340,6 +344,7 @@ func TestGatewayRuleDelete(t *testing.T) { } func TestGatewayRuleGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/identityprovider_test.go b/zero_trust/identityprovider_test.go index 617dfaa57fa..9cc3f88cbc1 100644 --- a/zero_trust/identityprovider_test.go +++ b/zero_trust/identityprovider_test.go @@ -15,6 +15,7 @@ import ( ) func TestIdentityProviderNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -62,6 +63,7 @@ func TestIdentityProviderNewWithOptionalParams(t *testing.T) { } func TestIdentityProviderUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -113,6 +115,7 @@ func TestIdentityProviderUpdateWithOptionalParams(t *testing.T) { } func TestIdentityProviderListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -139,6 +142,7 @@ func TestIdentityProviderListWithOptionalParams(t *testing.T) { } func TestIdentityProviderDeleteWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -169,6 +173,7 @@ func TestIdentityProviderDeleteWithOptionalParams(t *testing.T) { } func TestIdentityProviderGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/networkroute_test.go b/zero_trust/networkroute_test.go index 83d10501af0..3c04502ea7f 100644 --- a/zero_trust/networkroute_test.go +++ b/zero_trust/networkroute_test.go @@ -15,6 +15,7 @@ import ( ) func TestNetworkRouteNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,6 +44,7 @@ func TestNetworkRouteNewWithOptionalParams(t *testing.T) { } func TestNetworkRouteListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -79,6 +81,7 @@ func TestNetworkRouteListWithOptionalParams(t *testing.T) { } func TestNetworkRouteDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -108,6 +111,7 @@ func TestNetworkRouteDelete(t *testing.T) { } func TestNetworkRouteEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/networkrouteip_test.go b/zero_trust/networkrouteip_test.go index 69b840c5fb0..cb4e5b16c12 100644 --- a/zero_trust/networkrouteip_test.go +++ b/zero_trust/networkrouteip_test.go @@ -15,6 +15,7 @@ import ( ) func TestNetworkRouteIPGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/networkroutenetwork_test.go b/zero_trust/networkroutenetwork_test.go index 9d58e0b914b..ef2a28f80bb 100644 --- a/zero_trust/networkroutenetwork_test.go +++ b/zero_trust/networkroutenetwork_test.go @@ -15,6 +15,7 @@ import ( ) func TestNetworkRouteNetworkNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,6 +47,7 @@ func TestNetworkRouteNetworkNewWithOptionalParams(t *testing.T) { } func TestNetworkRouteNetworkDeleteWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -78,6 +80,7 @@ func TestNetworkRouteNetworkDeleteWithOptionalParams(t *testing.T) { } func TestNetworkRouteNetworkEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/networkvirtualnetwork_test.go b/zero_trust/networkvirtualnetwork_test.go index 793bae1beca..66f6131296e 100644 --- a/zero_trust/networkvirtualnetwork_test.go +++ b/zero_trust/networkvirtualnetwork_test.go @@ -15,6 +15,7 @@ import ( ) func TestNetworkVirtualNetworkNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,6 +44,7 @@ func TestNetworkVirtualNetworkNewWithOptionalParams(t *testing.T) { } func TestNetworkVirtualNetworkListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -73,6 +75,7 @@ func TestNetworkVirtualNetworkListWithOptionalParams(t *testing.T) { } func TestNetworkVirtualNetworkDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -103,6 +106,7 @@ func TestNetworkVirtualNetworkDelete(t *testing.T) { } func TestNetworkVirtualNetworkEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/organization_test.go b/zero_trust/organization_test.go index 5048d86110e..e2a06440960 100644 --- a/zero_trust/organization_test.go +++ b/zero_trust/organization_test.go @@ -15,6 +15,7 @@ import ( ) func TestOrganizationNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -57,6 +58,7 @@ func TestOrganizationNewWithOptionalParams(t *testing.T) { } func TestOrganizationUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -103,6 +105,7 @@ func TestOrganizationUpdateWithOptionalParams(t *testing.T) { } func TestOrganizationListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -129,6 +132,7 @@ func TestOrganizationListWithOptionalParams(t *testing.T) { } func TestOrganizationRevokeUsersWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/riskscoring_test.go b/zero_trust/riskscoring_test.go index 6cfd078b719..75642159c99 100644 --- a/zero_trust/riskscoring_test.go +++ b/zero_trust/riskscoring_test.go @@ -15,6 +15,7 @@ import ( ) func TestRiskScoringGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -48,6 +49,7 @@ func TestRiskScoringGetWithOptionalParams(t *testing.T) { } func TestRiskScoringReset(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/riskscoringbehaviour_test.go b/zero_trust/riskscoringbehaviour_test.go index 3e6c2e0c742..cc3b5e43056 100644 --- a/zero_trust/riskscoringbehaviour_test.go +++ b/zero_trust/riskscoringbehaviour_test.go @@ -15,6 +15,7 @@ import ( ) func TestRiskScoringBehaviourUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -49,6 +50,7 @@ func TestRiskScoringBehaviourUpdateWithOptionalParams(t *testing.T) { } func TestRiskScoringBehaviourGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/riskscoringsummary_test.go b/zero_trust/riskscoringsummary_test.go index 7e11ba16c6f..45e9f61c126 100644 --- a/zero_trust/riskscoringsummary_test.go +++ b/zero_trust/riskscoringsummary_test.go @@ -15,6 +15,7 @@ import ( ) func TestRiskScoringSummaryGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/seat_test.go b/zero_trust/seat_test.go index 6ecb48dff0c..b5ff38ff749 100644 --- a/zero_trust/seat_test.go +++ b/zero_trust/seat_test.go @@ -15,6 +15,7 @@ import ( ) func TestSeatEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/tunnel_test.go b/zero_trust/tunnel_test.go index 23dd55e74e2..83ca927fc19 100644 --- a/zero_trust/tunnel_test.go +++ b/zero_trust/tunnel_test.go @@ -16,6 +16,7 @@ import ( ) func TestTunnelNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -43,6 +44,7 @@ func TestTunnelNew(t *testing.T) { } func TestTunnelListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -79,6 +81,7 @@ func TestTunnelListWithOptionalParams(t *testing.T) { } func TestTunnelDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -109,6 +112,7 @@ func TestTunnelDelete(t *testing.T) { } func TestTunnelEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -140,6 +144,7 @@ func TestTunnelEditWithOptionalParams(t *testing.T) { } func TestTunnelGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/tunnelconfiguration_test.go b/zero_trust/tunnelconfiguration_test.go index ea7640bfbe1..a1b917a0ff2 100644 --- a/zero_trust/tunnelconfiguration_test.go +++ b/zero_trust/tunnelconfiguration_test.go @@ -15,6 +15,7 @@ import ( ) func TestTunnelConfigurationUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -142,6 +143,7 @@ func TestTunnelConfigurationUpdateWithOptionalParams(t *testing.T) { } func TestTunnelConfigurationGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/tunnelconnection_test.go b/zero_trust/tunnelconnection_test.go index 808aed07684..bbb7625efa7 100644 --- a/zero_trust/tunnelconnection_test.go +++ b/zero_trust/tunnelconnection_test.go @@ -15,6 +15,7 @@ import ( ) func TestTunnelConnectionDelete(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,6 +46,7 @@ func TestTunnelConnectionDelete(t *testing.T) { } func TestTunnelConnectionGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/tunnelconnector_test.go b/zero_trust/tunnelconnector_test.go index 2f0043daf22..bd83783d553 100644 --- a/zero_trust/tunnelconnector_test.go +++ b/zero_trust/tunnelconnector_test.go @@ -15,6 +15,7 @@ import ( ) func TestTunnelConnectorGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/tunnelmanagement_test.go b/zero_trust/tunnelmanagement_test.go index 50e7fee993a..02d7d3e8192 100644 --- a/zero_trust/tunnelmanagement_test.go +++ b/zero_trust/tunnelmanagement_test.go @@ -15,6 +15,7 @@ import ( ) func TestTunnelManagementNew(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zero_trust/tunneltoken_test.go b/zero_trust/tunneltoken_test.go index b59b8f924c8..a9d51f44a6c 100644 --- a/zero_trust/tunneltoken_test.go +++ b/zero_trust/tunneltoken_test.go @@ -15,6 +15,7 @@ import ( ) func TestTunnelTokenGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/activationcheck_test.go b/zones/activationcheck_test.go index a5f3a38061a..36eca7b1ec1 100644 --- a/zones/activationcheck_test.go +++ b/zones/activationcheck_test.go @@ -15,6 +15,7 @@ import ( ) func TestActivationCheckTrigger(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/customnameserver_test.go b/zones/customnameserver_test.go index 8b91f2a1134..92b61ad5a92 100644 --- a/zones/customnameserver_test.go +++ b/zones/customnameserver_test.go @@ -15,6 +15,7 @@ import ( ) func TestCustomNameserverUpdateWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -42,6 +43,7 @@ func TestCustomNameserverUpdateWithOptionalParams(t *testing.T) { } func TestCustomNameserverGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/dnssetting_test.go b/zones/dnssetting_test.go index 6a46603a93c..a74202a89cf 100644 --- a/zones/dnssetting_test.go +++ b/zones/dnssetting_test.go @@ -15,6 +15,7 @@ import ( ) func TestDNSSettingEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -48,6 +49,7 @@ func TestDNSSettingEditWithOptionalParams(t *testing.T) { } func TestDNSSettingGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/hold_test.go b/zones/hold_test.go index 12ed5c1378d..bebfc691287 100644 --- a/zones/hold_test.go +++ b/zones/hold_test.go @@ -15,6 +15,7 @@ import ( ) func TestHoldNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestHoldNewWithOptionalParams(t *testing.T) { } func TestHoldDeleteWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -67,6 +69,7 @@ func TestHoldDeleteWithOptionalParams(t *testing.T) { } func TestHoldGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingadvancedddos_test.go b/zones/settingadvancedddos_test.go index 98bdc6ec032..7c7345d695a 100644 --- a/zones/settingadvancedddos_test.go +++ b/zones/settingadvancedddos_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingAdvancedDDoSGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingalwaysonline_test.go b/zones/settingalwaysonline_test.go index 329a3c8b5b2..8f96509684c 100644 --- a/zones/settingalwaysonline_test.go +++ b/zones/settingalwaysonline_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingAlwaysOnlineEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingAlwaysOnlineEdit(t *testing.T) { } func TestSettingAlwaysOnlineGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingalwaysusehttps_test.go b/zones/settingalwaysusehttps_test.go index 59a4e649d8b..5988bcf3864 100644 --- a/zones/settingalwaysusehttps_test.go +++ b/zones/settingalwaysusehttps_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingAlwaysUseHTTPSEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingAlwaysUseHTTPSEdit(t *testing.T) { } func TestSettingAlwaysUseHTTPSGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingautomatichttpsrewrite_test.go b/zones/settingautomatichttpsrewrite_test.go index 3ba2c533c7c..7f0cf0b4304 100644 --- a/zones/settingautomatichttpsrewrite_test.go +++ b/zones/settingautomatichttpsrewrite_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingAutomaticHTTPSRewriteEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingAutomaticHTTPSRewriteEdit(t *testing.T) { } func TestSettingAutomaticHTTPSRewriteGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingautomaticplatformoptimization_test.go b/zones/settingautomaticplatformoptimization_test.go index d8b78efedf2..5613e836463 100644 --- a/zones/settingautomaticplatformoptimization_test.go +++ b/zones/settingautomaticplatformoptimization_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingAutomaticPlatformOptimizationEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -48,6 +49,7 @@ func TestSettingAutomaticPlatformOptimizationEdit(t *testing.T) { } func TestSettingAutomaticPlatformOptimizationGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingbrotli_test.go b/zones/settingbrotli_test.go index fa5a4036979..82758f31ddf 100644 --- a/zones/settingbrotli_test.go +++ b/zones/settingbrotli_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingBrotliEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingBrotliEdit(t *testing.T) { } func TestSettingBrotliGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingbrowsercachettl_test.go b/zones/settingbrowsercachettl_test.go index aaf48e569cb..c55138b3b88 100644 --- a/zones/settingbrowsercachettl_test.go +++ b/zones/settingbrowsercachettl_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingBrowserCacheTTLEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingBrowserCacheTTLEdit(t *testing.T) { } func TestSettingBrowserCacheTTLGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingbrowsercheck_test.go b/zones/settingbrowsercheck_test.go index ccfdd0d8489..4c1dfaec1b4 100644 --- a/zones/settingbrowsercheck_test.go +++ b/zones/settingbrowsercheck_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingBrowserCheckEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingBrowserCheckEdit(t *testing.T) { } func TestSettingBrowserCheckGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingcachelevel_test.go b/zones/settingcachelevel_test.go index 97c7271fb3c..d68ac540476 100644 --- a/zones/settingcachelevel_test.go +++ b/zones/settingcachelevel_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingCacheLevelEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingCacheLevelEdit(t *testing.T) { } func TestSettingCacheLevelGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingchallengettl_test.go b/zones/settingchallengettl_test.go index d73491fd6df..6cac4f215ec 100644 --- a/zones/settingchallengettl_test.go +++ b/zones/settingchallengettl_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingChallengeTTLEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingChallengeTTLEdit(t *testing.T) { } func TestSettingChallengeTTLGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingcipher_test.go b/zones/settingcipher_test.go index c04cd5bdab0..13610188c13 100644 --- a/zones/settingcipher_test.go +++ b/zones/settingcipher_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingCipherEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingCipherEdit(t *testing.T) { } func TestSettingCipherGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingdevelopmentmode_test.go b/zones/settingdevelopmentmode_test.go index c20f24f3867..181bb064811 100644 --- a/zones/settingdevelopmentmode_test.go +++ b/zones/settingdevelopmentmode_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingDevelopmentModeEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingDevelopmentModeEdit(t *testing.T) { } func TestSettingDevelopmentModeGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingearlyhint_test.go b/zones/settingearlyhint_test.go index fe9f33b15c9..7c557048192 100644 --- a/zones/settingearlyhint_test.go +++ b/zones/settingearlyhint_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingEarlyHintEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingEarlyHintEdit(t *testing.T) { } func TestSettingEarlyHintGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingemailobfuscation_test.go b/zones/settingemailobfuscation_test.go index 9d322301c8e..df2b4fd6797 100644 --- a/zones/settingemailobfuscation_test.go +++ b/zones/settingemailobfuscation_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingEmailObfuscationEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingEmailObfuscationEdit(t *testing.T) { } func TestSettingEmailObfuscationGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingfontsetting_test.go b/zones/settingfontsetting_test.go index 50415fcc9e5..9d2b7d986e2 100644 --- a/zones/settingfontsetting_test.go +++ b/zones/settingfontsetting_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingFontSettingEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingFontSettingEdit(t *testing.T) { } func TestSettingFontSettingGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingh2prioritization_test.go b/zones/settingh2prioritization_test.go index 78f58ed01a9..4f31fcf190c 100644 --- a/zones/settingh2prioritization_test.go +++ b/zones/settingh2prioritization_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingH2PrioritizationEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestSettingH2PrioritizationEditWithOptionalParams(t *testing.T) { } func TestSettingH2PrioritizationGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settinghotlinkprotection_test.go b/zones/settinghotlinkprotection_test.go index 6c0b23e1ac5..3462d4a6610 100644 --- a/zones/settinghotlinkprotection_test.go +++ b/zones/settinghotlinkprotection_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingHotlinkProtectionEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingHotlinkProtectionEdit(t *testing.T) { } func TestSettingHotlinkProtectionGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settinghttp2_test.go b/zones/settinghttp2_test.go index c2a7b286600..175b717cd5b 100644 --- a/zones/settinghttp2_test.go +++ b/zones/settinghttp2_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingHTTP2Edit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingHTTP2Edit(t *testing.T) { } func TestSettingHTTP2Get(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settinghttp3_test.go b/zones/settinghttp3_test.go index c22904b30ed..baa4ce3bcdb 100644 --- a/zones/settinghttp3_test.go +++ b/zones/settinghttp3_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingHTTP3Edit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingHTTP3Edit(t *testing.T) { } func TestSettingHTTP3Get(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingimageresizing_test.go b/zones/settingimageresizing_test.go index 26b8f11ad7d..d3a8470bb9d 100644 --- a/zones/settingimageresizing_test.go +++ b/zones/settingimageresizing_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingImageResizingEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestSettingImageResizingEditWithOptionalParams(t *testing.T) { } func TestSettingImageResizingGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingipgeolocation_test.go b/zones/settingipgeolocation_test.go index de34426c82e..9590c95c797 100644 --- a/zones/settingipgeolocation_test.go +++ b/zones/settingipgeolocation_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingIPGeolocationEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingIPGeolocationEdit(t *testing.T) { } func TestSettingIPGeolocationGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingipv6_test.go b/zones/settingipv6_test.go index 0c4676f47db..a415a57355a 100644 --- a/zones/settingipv6_test.go +++ b/zones/settingipv6_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingIPV6Edit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingIPV6Edit(t *testing.T) { } func TestSettingIPV6Get(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingminify_test.go b/zones/settingminify_test.go index 31d38a35d6d..5443ea161d7 100644 --- a/zones/settingminify_test.go +++ b/zones/settingminify_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingMinifyEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,6 +46,7 @@ func TestSettingMinifyEditWithOptionalParams(t *testing.T) { } func TestSettingMinifyGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingmintlsversion_test.go b/zones/settingmintlsversion_test.go index 49628aea26a..a54dbfadb9f 100644 --- a/zones/settingmintlsversion_test.go +++ b/zones/settingmintlsversion_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingMinTLSVersionEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingMinTLSVersionEdit(t *testing.T) { } func TestSettingMinTLSVersionGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingmirage_test.go b/zones/settingmirage_test.go index 52b29b901e5..472a748bc1e 100644 --- a/zones/settingmirage_test.go +++ b/zones/settingmirage_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingMirageEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingMirageEdit(t *testing.T) { } func TestSettingMirageGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingmobileredirect_test.go b/zones/settingmobileredirect_test.go index 5b76c1be3e6..74473fc0648 100644 --- a/zones/settingmobileredirect_test.go +++ b/zones/settingmobileredirect_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingMobileRedirectEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -45,6 +46,7 @@ func TestSettingMobileRedirectEditWithOptionalParams(t *testing.T) { } func TestSettingMobileRedirectGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingnel_test.go b/zones/settingnel_test.go index 9608e401d66..e3187fd522a 100644 --- a/zones/settingnel_test.go +++ b/zones/settingnel_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingNELEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -46,6 +47,7 @@ func TestSettingNELEditWithOptionalParams(t *testing.T) { } func TestSettingNELGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingopportunisticencryption_test.go b/zones/settingopportunisticencryption_test.go index 9b07abd94ed..ed76578f739 100644 --- a/zones/settingopportunisticencryption_test.go +++ b/zones/settingopportunisticencryption_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingOpportunisticEncryptionEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingOpportunisticEncryptionEdit(t *testing.T) { } func TestSettingOpportunisticEncryptionGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingopportunisticonion_test.go b/zones/settingopportunisticonion_test.go index 1227c220b15..7cedd455c2a 100644 --- a/zones/settingopportunisticonion_test.go +++ b/zones/settingopportunisticonion_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingOpportunisticOnionEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingOpportunisticOnionEdit(t *testing.T) { } func TestSettingOpportunisticOnionGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingorangetoorange_test.go b/zones/settingorangetoorange_test.go index 9f9685aacc0..dfed5834f13 100644 --- a/zones/settingorangetoorange_test.go +++ b/zones/settingorangetoorange_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingOrangeToOrangeEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestSettingOrangeToOrangeEditWithOptionalParams(t *testing.T) { } func TestSettingOrangeToOrangeGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingoriginerrorpagepassthru_test.go b/zones/settingoriginerrorpagepassthru_test.go index e3291bbbf10..e99a2fa494d 100644 --- a/zones/settingoriginerrorpagepassthru_test.go +++ b/zones/settingoriginerrorpagepassthru_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingOriginErrorPagePassThruEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingOriginErrorPagePassThruEdit(t *testing.T) { } func TestSettingOriginErrorPagePassThruGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingoriginmaxhttpversion_test.go b/zones/settingoriginmaxhttpversion_test.go index 13e585135fd..97775b7e58d 100644 --- a/zones/settingoriginmaxhttpversion_test.go +++ b/zones/settingoriginmaxhttpversion_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingOriginMaxHTTPVersionEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingOriginMaxHTTPVersionEdit(t *testing.T) { } func TestSettingOriginMaxHTTPVersionGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingpolish_test.go b/zones/settingpolish_test.go index f63ac3ac705..a43ad239246 100644 --- a/zones/settingpolish_test.go +++ b/zones/settingpolish_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingPolishEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestSettingPolishEditWithOptionalParams(t *testing.T) { } func TestSettingPolishGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingprefetchpreload_test.go b/zones/settingprefetchpreload_test.go index 2cbb4555c02..2b4c1ed412a 100644 --- a/zones/settingprefetchpreload_test.go +++ b/zones/settingprefetchpreload_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingPrefetchPreloadEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingPrefetchPreloadEdit(t *testing.T) { } func TestSettingPrefetchPreloadGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingproxyreadtimeout_test.go b/zones/settingproxyreadtimeout_test.go index f6d8c3cdd96..aaf8688af73 100644 --- a/zones/settingproxyreadtimeout_test.go +++ b/zones/settingproxyreadtimeout_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingProxyReadTimeoutEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestSettingProxyReadTimeoutEditWithOptionalParams(t *testing.T) { } func TestSettingProxyReadTimeoutGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingpseudoipv4_test.go b/zones/settingpseudoipv4_test.go index a7364e5993f..abff46bbbdb 100644 --- a/zones/settingpseudoipv4_test.go +++ b/zones/settingpseudoipv4_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingPseudoIPV4Edit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingPseudoIPV4Edit(t *testing.T) { } func TestSettingPseudoIPV4Get(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingresponsebuffering_test.go b/zones/settingresponsebuffering_test.go index 0c86fd37336..c655f89535c 100644 --- a/zones/settingresponsebuffering_test.go +++ b/zones/settingresponsebuffering_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingResponseBufferingEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingResponseBufferingEdit(t *testing.T) { } func TestSettingResponseBufferingGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingrocketloader_test.go b/zones/settingrocketloader_test.go index 9d98f0033c7..80aa014fa02 100644 --- a/zones/settingrocketloader_test.go +++ b/zones/settingrocketloader_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingRocketLoaderEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestSettingRocketLoaderEditWithOptionalParams(t *testing.T) { } func TestSettingRocketLoaderGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingsecurityheader_test.go b/zones/settingsecurityheader_test.go index ffb43b33e04..2d5ff83cdc6 100644 --- a/zones/settingsecurityheader_test.go +++ b/zones/settingsecurityheader_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingSecurityHeaderEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -48,6 +49,7 @@ func TestSettingSecurityHeaderEditWithOptionalParams(t *testing.T) { } func TestSettingSecurityHeaderGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingsecuritylevel_test.go b/zones/settingsecuritylevel_test.go index f23fd5fb356..a1d85924e5c 100644 --- a/zones/settingsecuritylevel_test.go +++ b/zones/settingsecuritylevel_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingSecurityLevelEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingSecurityLevelEdit(t *testing.T) { } func TestSettingSecurityLevelGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingserversideexclude_test.go b/zones/settingserversideexclude_test.go index fee585a6e77..44ff638ded4 100644 --- a/zones/settingserversideexclude_test.go +++ b/zones/settingserversideexclude_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingServerSideExcludeEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingServerSideExcludeEdit(t *testing.T) { } func TestSettingServerSideExcludeGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingsortquerystringforcache_test.go b/zones/settingsortquerystringforcache_test.go index b3dd9d8a958..f2d31f7ac84 100644 --- a/zones/settingsortquerystringforcache_test.go +++ b/zones/settingsortquerystringforcache_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingSortQueryStringForCacheEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingSortQueryStringForCacheEdit(t *testing.T) { } func TestSettingSortQueryStringForCacheGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingssl_test.go b/zones/settingssl_test.go index ba1f25ff77c..69309ab14d4 100644 --- a/zones/settingssl_test.go +++ b/zones/settingssl_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingSSLEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingSSLEdit(t *testing.T) { } func TestSettingSSLGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingsslrecommender_test.go b/zones/settingsslrecommender_test.go index 888e7f831d6..e4ecc3a40ae 100644 --- a/zones/settingsslrecommender_test.go +++ b/zones/settingsslrecommender_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingSSLRecommenderEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestSettingSSLRecommenderEditWithOptionalParams(t *testing.T) { } func TestSettingSSLRecommenderGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingtls13_test.go b/zones/settingtls13_test.go index f523aadafee..1ccad879a2c 100644 --- a/zones/settingtls13_test.go +++ b/zones/settingtls13_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingTLS1_3Edit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingTLS1_3Edit(t *testing.T) { } func TestSettingTLS1_3Get(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingtlsclientauth_test.go b/zones/settingtlsclientauth_test.go index fa6580e10db..0aa368b613c 100644 --- a/zones/settingtlsclientauth_test.go +++ b/zones/settingtlsclientauth_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingTLSClientAuthEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingTLSClientAuthEdit(t *testing.T) { } func TestSettingTLSClientAuthGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingtrueclientipheader_test.go b/zones/settingtrueclientipheader_test.go index 6a41c3d631e..02135c9ca88 100644 --- a/zones/settingtrueclientipheader_test.go +++ b/zones/settingtrueclientipheader_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingTrueClientIPHeaderEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingTrueClientIPHeaderEdit(t *testing.T) { } func TestSettingTrueClientIPHeaderGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingwaf_test.go b/zones/settingwaf_test.go index 22bbdaf70c9..a0d703798f9 100644 --- a/zones/settingwaf_test.go +++ b/zones/settingwaf_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingWAFEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingWAFEdit(t *testing.T) { } func TestSettingWAFGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingwebp_test.go b/zones/settingwebp_test.go index 76f6773bb9c..e7991c284be 100644 --- a/zones/settingwebp_test.go +++ b/zones/settingwebp_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingWebPEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingWebPEdit(t *testing.T) { } func TestSettingWebPGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingwebsocket_test.go b/zones/settingwebsocket_test.go index fc1810779cb..b7366f67e3f 100644 --- a/zones/settingwebsocket_test.go +++ b/zones/settingwebsocket_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingWebsocketEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingWebsocketEdit(t *testing.T) { } func TestSettingWebsocketGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/settingzerortt_test.go b/zones/settingzerortt_test.go index 1355544f33b..16cd8ce94cb 100644 --- a/zones/settingzerortt_test.go +++ b/zones/settingzerortt_test.go @@ -15,6 +15,7 @@ import ( ) func TestSettingZeroRTTEdit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -41,6 +42,7 @@ func TestSettingZeroRTTEdit(t *testing.T) { } func TestSettingZeroRTTGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/subscription_test.go b/zones/subscription_test.go index 95fb8e05282..36e8c6cc36c 100644 --- a/zones/subscription_test.go +++ b/zones/subscription_test.go @@ -16,6 +16,7 @@ import ( ) func TestSubscriptionNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -76,6 +77,7 @@ func TestSubscriptionNewWithOptionalParams(t *testing.T) { } func TestSubscriptionList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -99,6 +101,7 @@ func TestSubscriptionList(t *testing.T) { } func TestSubscriptionGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/zones/zone_test.go b/zones/zone_test.go index ce74a70244c..b88e6d11777 100644 --- a/zones/zone_test.go +++ b/zones/zone_test.go @@ -15,6 +15,7 @@ import ( ) func TestZoneNewWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -44,6 +45,7 @@ func TestZoneNewWithOptionalParams(t *testing.T) { } func TestZoneListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -105,6 +107,7 @@ func TestZoneDelete(t *testing.T) { } func TestZoneEditWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -135,6 +138,7 @@ func TestZoneEditWithOptionalParams(t *testing.T) { } func TestZoneGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL From f427ad23d0f827bb114c1c767417a6c84a563c58 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 22 Apr 2024 04:40:46 +0000 Subject: [PATCH 41/52] feat(api): update via SDK Studio (#1827) --- api.md | 10 +++++----- intel/asn.go | 8 ++++---- intel/asnsubnet.go | 4 ++-- stream/captionlanguagevtt.go | 10 ++-------- stream/captionlanguagevtt_test.go | 1 - 5 files changed, 13 insertions(+), 20 deletions(-) diff --git a/api.md b/api.md index c934f9e24f8..884df196d69 100644 --- a/api.md +++ b/api.md @@ -3285,15 +3285,15 @@ Methods: Params Types: -- intel.ASNParam +- intel.IntelASNParam Response Types: -- intel.ASN +- intel.IntelASN Methods: -- client.Intel.ASN.Get(ctx context.Context, asn intel.ASNParam, query intel.ASNGetParams) (intel.ASN, error) +- client.Intel.ASN.Get(ctx context.Context, asn intel.IntelASNParam, query intel.ASNGetParams) (intel.IntelASN, error) ### Subnets @@ -3303,7 +3303,7 @@ Response Types: Methods: -- client.Intel.ASN.Subnets.Get(ctx context.Context, asn intel.ASNParam, query intel.ASNSubnetGetParams) (intel.ASNSubnetGetResponse, error) +- client.Intel.ASN.Subnets.Get(ctx context.Context, asn intel.IntelASNParam, query intel.ASNSubnetGetParams) (intel.ASNSubnetGetResponse, error) ## DNS @@ -4119,7 +4119,7 @@ Methods: Methods: -- client.Stream.Captions.Language.Vtt.Get(ctx context.Context, identifier string, language string, params stream.CaptionLanguageVttGetParams) (string, error) +- client.Stream.Captions.Language.Vtt.Get(ctx context.Context, identifier string, language string, query stream.CaptionLanguageVttGetParams) (string, error) ## Downloads diff --git a/intel/asn.go b/intel/asn.go index 02a117330f2..bd0dcf98614 100644 --- a/intel/asn.go +++ b/intel/asn.go @@ -34,7 +34,7 @@ func NewASNService(opts ...option.RequestOption) (r *ASNService) { } // Get ASN Overview -func (r *ASNService) Get(ctx context.Context, asn ASNParam, query ASNGetParams, opts ...option.RequestOption) (res *ASN, err error) { +func (r *ASNService) Get(ctx context.Context, asn IntelASNParam, query ASNGetParams, opts ...option.RequestOption) (res *IntelASN, err error) { opts = append(r.Options[:], opts...) var env ASNGetResponseEnvelope path := fmt.Sprintf("accounts/%s/intel/asn/%v", query.AccountID, asn) @@ -46,9 +46,9 @@ func (r *ASNService) Get(ctx context.Context, asn ASNParam, query ASNGetParams, return } -type ASN = int64 +type IntelASN = int64 -type ASNParam = int64 +type IntelASNParam = int64 type ASNGetParams struct { // Identifier @@ -58,7 +58,7 @@ type ASNGetParams struct { type ASNGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result ASN `json:"result,required"` + Result IntelASN `json:"result,required"` // Whether the API call was successful Success ASNGetResponseEnvelopeSuccess `json:"success,required"` JSON asnGetResponseEnvelopeJSON `json:"-"` diff --git a/intel/asnsubnet.go b/intel/asnsubnet.go index d99695a68e8..182fe00f1fd 100644 --- a/intel/asnsubnet.go +++ b/intel/asnsubnet.go @@ -31,7 +31,7 @@ func NewASNSubnetService(opts ...option.RequestOption) (r *ASNSubnetService) { } // Get ASN Subnets -func (r *ASNSubnetService) Get(ctx context.Context, asn ASNParam, query ASNSubnetGetParams, opts ...option.RequestOption) (res *ASNSubnetGetResponse, err error) { +func (r *ASNSubnetService) Get(ctx context.Context, asn IntelASNParam, query ASNSubnetGetParams, opts ...option.RequestOption) (res *ASNSubnetGetResponse, err error) { opts = append(r.Options[:], opts...) path := fmt.Sprintf("accounts/%s/intel/asn/%v/subnets", query.AccountID, asn) err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &res, opts...) @@ -39,7 +39,7 @@ func (r *ASNSubnetService) Get(ctx context.Context, asn ASNParam, query ASNSubne } type ASNSubnetGetResponse struct { - ASN ASN `json:"asn"` + ASN IntelASN `json:"asn"` // Total results returned based on your search parameters. Count float64 `json:"count"` IPCountTotal int64 `json:"ip_count_total"` diff --git a/stream/captionlanguagevtt.go b/stream/captionlanguagevtt.go index 7d15f6b2ab1..b0a61ab174f 100644 --- a/stream/captionlanguagevtt.go +++ b/stream/captionlanguagevtt.go @@ -7,7 +7,6 @@ import ( "fmt" "net/http" - "github.com/cloudflare/cloudflare-go/v2/internal/apijson" "github.com/cloudflare/cloudflare-go/v2/internal/param" "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" "github.com/cloudflare/cloudflare-go/v2/option" @@ -32,10 +31,10 @@ func NewCaptionLanguageVttService(opts ...option.RequestOption) (r *CaptionLangu } // Return WebVTT captions for a provided language. -func (r *CaptionLanguageVttService) Get(ctx context.Context, identifier string, language string, params CaptionLanguageVttGetParams, opts ...option.RequestOption) (res *string, err error) { +func (r *CaptionLanguageVttService) Get(ctx context.Context, identifier string, language string, query CaptionLanguageVttGetParams, opts ...option.RequestOption) (res *string, err error) { opts = append(r.Options[:], opts...) opts = append([]option.RequestOption{option.WithHeader("Accept", "text/vtt")}, opts...) - path := fmt.Sprintf("accounts/%s/stream/%s/captions/%s/vtt", params.AccountID, identifier, language) + path := fmt.Sprintf("accounts/%s/stream/%s/captions/%s/vtt", query.AccountID, identifier, language) err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &res, opts...) return } @@ -43,9 +42,4 @@ func (r *CaptionLanguageVttService) Get(ctx context.Context, identifier string, type CaptionLanguageVttGetParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` - Body interface{} `json:"body,required"` -} - -func (r CaptionLanguageVttGetParams) MarshalJSON() (data []byte, err error) { - return apijson.MarshalRoot(r.Body) } diff --git a/stream/captionlanguagevtt_test.go b/stream/captionlanguagevtt_test.go index 0f097a57544..1430896fada 100644 --- a/stream/captionlanguagevtt_test.go +++ b/stream/captionlanguagevtt_test.go @@ -34,7 +34,6 @@ func TestCaptionLanguageVttGet(t *testing.T) { "tr", stream.CaptionLanguageVttGetParams{ AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), - Body: map[string]interface{}{}, }, ) if err != nil { From 3b38a2d27b24c481b69e630f9490046da8d29797 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 22 Apr 2024 05:05:30 +0000 Subject: [PATCH 42/52] feat(api): update via SDK Studio (#1828) --- accounts/aliases.go | 6 ++++++ acm/aliases.go | 6 ++++++ addressing/aliases.go | 6 ++++++ alerting/aliases.go | 6 ++++++ aliases.go | 6 ++++++ api.md | 14 ++++---------- argo/aliases.go | 6 ++++++ audit_logs/aliases.go | 6 ++++++ billing/aliases.go | 6 ++++++ bot_management/aliases.go | 6 ++++++ brand_protection/aliases.go | 6 ++++++ cache/aliases.go | 6 ++++++ calls/aliases.go | 6 ++++++ certificate_authorities/aliases.go | 6 ++++++ challenges/aliases.go | 6 ++++++ client_certificates/aliases.go | 6 ++++++ cloudforce_one/aliases.go | 6 ++++++ custom_certificates/aliases.go | 6 ++++++ custom_hostnames/aliases.go | 6 ++++++ custom_nameservers/aliases.go | 6 ++++++ d1/aliases.go | 6 ++++++ dcv_delegation/aliases.go | 6 ++++++ diagnostics/aliases.go | 6 ++++++ dns/aliases.go | 6 ++++++ dnssec/aliases.go | 6 ++++++ durable_objects/aliases.go | 6 ++++++ email_routing/aliases.go | 6 ++++++ event_notifications/aliases.go | 6 ++++++ filters/aliases.go | 6 ++++++ firewall/aliases.go | 6 ++++++ healthchecks/aliases.go | 6 ++++++ hostnames/aliases.go | 6 ++++++ hyperdrive/aliases.go | 6 ++++++ images/aliases.go | 6 ++++++ intel/aliases.go | 6 ++++++ intel/asn.go | 8 ++------ intel/asnsubnet.go | 5 +++-- internal/shared/shared.go | 4 ++++ ips/aliases.go | 6 ++++++ keyless_certificates/aliases.go | 6 ++++++ kv/aliases.go | 6 ++++++ load_balancers/aliases.go | 6 ++++++ logpush/aliases.go | 6 ++++++ logs/aliases.go | 6 ++++++ magic_network_monitoring/aliases.go | 6 ++++++ magic_transit/aliases.go | 6 ++++++ managed_headers/aliases.go | 6 ++++++ memberships/aliases.go | 6 ++++++ mtls_certificates/aliases.go | 6 ++++++ origin_ca_certificates/aliases.go | 6 ++++++ origin_post_quantum_encryption/aliases.go | 6 ++++++ origin_tls_client_auth/aliases.go | 6 ++++++ page_shield/aliases.go | 6 ++++++ pagerules/aliases.go | 6 ++++++ pages/aliases.go | 6 ++++++ pcaps/aliases.go | 6 ++++++ plans/aliases.go | 6 ++++++ queues/aliases.go | 6 ++++++ r2/aliases.go | 6 ++++++ radar/aliases.go | 6 ++++++ rate_limits/aliases.go | 6 ++++++ rate_plans/aliases.go | 6 ++++++ registrar/aliases.go | 6 ++++++ request_tracers/aliases.go | 6 ++++++ rules/aliases.go | 6 ++++++ rulesets/aliases.go | 6 ++++++ rum/aliases.go | 6 ++++++ secondary_dns/aliases.go | 6 ++++++ snippets/aliases.go | 6 ++++++ spectrum/aliases.go | 6 ++++++ speed/aliases.go | 6 ++++++ ssl/aliases.go | 6 ++++++ storage/aliases.go | 6 ++++++ stream/aliases.go | 6 ++++++ subscriptions/aliases.go | 6 ++++++ url_normalization/aliases.go | 6 ++++++ url_scanner/aliases.go | 6 ++++++ user/aliases.go | 6 ++++++ vectorize/aliases.go | 6 ++++++ waiting_rooms/aliases.go | 6 ++++++ warp_connector/aliases.go | 6 ++++++ web3/aliases.go | 6 ++++++ workers/aliases.go | 6 ++++++ workers_for_platforms/aliases.go | 6 ++++++ zero_trust/aliases.go | 6 ++++++ zones/aliases.go | 6 ++++++ 86 files changed, 505 insertions(+), 18 deletions(-) diff --git a/accounts/aliases.go b/accounts/aliases.go index b98d3d2ee7f..a4796e48384 100644 --- a/accounts/aliases.go +++ b/accounts/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/acm/aliases.go b/acm/aliases.go index 1884a8d91fa..7276335dd9e 100644 --- a/acm/aliases.go +++ b/acm/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/addressing/aliases.go b/addressing/aliases.go index a81845762c5..89ec357fd18 100644 --- a/addressing/aliases.go +++ b/addressing/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/alerting/aliases.go b/alerting/aliases.go index dc9beae42fd..c6270ab5d1d 100644 --- a/alerting/aliases.go +++ b/alerting/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/aliases.go b/aliases.go index f11b1bbad61..51c3d9713bc 100644 --- a/aliases.go +++ b/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/api.md b/api.md index 884df196d69..8c69999e0bc 100644 --- a/api.md +++ b/api.md @@ -1,10 +1,12 @@ # Shared Params Types +- shared.ASNParam - shared.MemberParam - shared.PermissionGrantParam # Shared Response Types +- shared.ASN - shared.AuditLog - shared.CloudflareTunnel - shared.ErrorData @@ -3283,17 +3285,9 @@ Methods: ## ASN -Params Types: - -- intel.IntelASNParam - -Response Types: - -- intel.IntelASN - Methods: -- client.Intel.ASN.Get(ctx context.Context, asn intel.IntelASNParam, query intel.ASNGetParams) (intel.IntelASN, error) +- client.Intel.ASN.Get(ctx context.Context, asn shared.ASNParam, query intel.ASNGetParams) (shared.ASN, error) ### Subnets @@ -3303,7 +3297,7 @@ Response Types: Methods: -- client.Intel.ASN.Subnets.Get(ctx context.Context, asn intel.IntelASNParam, query intel.ASNSubnetGetParams) (intel.ASNSubnetGetResponse, error) +- client.Intel.ASN.Subnets.Get(ctx context.Context, asn shared.ASNParam, query intel.ASNSubnetGetParams) (intel.ASNSubnetGetResponse, error) ## DNS diff --git a/argo/aliases.go b/argo/aliases.go index 41983208868..d2d5ea03ec5 100644 --- a/argo/aliases.go +++ b/argo/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/audit_logs/aliases.go b/audit_logs/aliases.go index 8111740ecb0..d995027d8cb 100644 --- a/audit_logs/aliases.go +++ b/audit_logs/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/billing/aliases.go b/billing/aliases.go index 1d227b6a9ab..8fccb49406b 100644 --- a/billing/aliases.go +++ b/billing/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/bot_management/aliases.go b/bot_management/aliases.go index c5254882829..56cf5711b19 100644 --- a/bot_management/aliases.go +++ b/bot_management/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/brand_protection/aliases.go b/brand_protection/aliases.go index 348e7a47830..cdf7261418f 100644 --- a/brand_protection/aliases.go +++ b/brand_protection/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/cache/aliases.go b/cache/aliases.go index 094ae6796a3..8827f486a68 100644 --- a/cache/aliases.go +++ b/cache/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/calls/aliases.go b/calls/aliases.go index 4c236649b25..6264bd17aae 100644 --- a/calls/aliases.go +++ b/calls/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/certificate_authorities/aliases.go b/certificate_authorities/aliases.go index 7f44d71ac85..328c01a55d3 100644 --- a/certificate_authorities/aliases.go +++ b/certificate_authorities/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/challenges/aliases.go b/challenges/aliases.go index 809e3d7b8b2..a7b3b45cf0c 100644 --- a/challenges/aliases.go +++ b/challenges/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/client_certificates/aliases.go b/client_certificates/aliases.go index 009c486ddbd..43adaaea18c 100644 --- a/client_certificates/aliases.go +++ b/client_certificates/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/cloudforce_one/aliases.go b/cloudforce_one/aliases.go index 287a0ee2533..49542c81985 100644 --- a/cloudforce_one/aliases.go +++ b/cloudforce_one/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/custom_certificates/aliases.go b/custom_certificates/aliases.go index a1979b26e56..08bf4fd221d 100644 --- a/custom_certificates/aliases.go +++ b/custom_certificates/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/custom_hostnames/aliases.go b/custom_hostnames/aliases.go index 4fc4abebebd..dde8525828d 100644 --- a/custom_hostnames/aliases.go +++ b/custom_hostnames/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/custom_nameservers/aliases.go b/custom_nameservers/aliases.go index 646f50eaf3c..8bb76f07834 100644 --- a/custom_nameservers/aliases.go +++ b/custom_nameservers/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/d1/aliases.go b/d1/aliases.go index b4725749757..7f8f3a3deec 100644 --- a/d1/aliases.go +++ b/d1/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/dcv_delegation/aliases.go b/dcv_delegation/aliases.go index 4af94328206..14f905e7e23 100644 --- a/dcv_delegation/aliases.go +++ b/dcv_delegation/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/diagnostics/aliases.go b/diagnostics/aliases.go index 5babceb36e9..6aef22300e4 100644 --- a/diagnostics/aliases.go +++ b/diagnostics/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/dns/aliases.go b/dns/aliases.go index 33a8714ccac..6dacb5bd012 100644 --- a/dns/aliases.go +++ b/dns/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/dnssec/aliases.go b/dnssec/aliases.go index 5944537de76..ed730a13824 100644 --- a/dnssec/aliases.go +++ b/dnssec/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/durable_objects/aliases.go b/durable_objects/aliases.go index 4088767274f..41c3b68a484 100644 --- a/durable_objects/aliases.go +++ b/durable_objects/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/email_routing/aliases.go b/email_routing/aliases.go index f456615039e..8674f4034a0 100644 --- a/email_routing/aliases.go +++ b/email_routing/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/event_notifications/aliases.go b/event_notifications/aliases.go index 79bb19200b8..21ddf22f76c 100644 --- a/event_notifications/aliases.go +++ b/event_notifications/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/filters/aliases.go b/filters/aliases.go index 8f8be75135b..93c946ad4c1 100644 --- a/filters/aliases.go +++ b/filters/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/firewall/aliases.go b/firewall/aliases.go index 7994f37f18e..942b054ca96 100644 --- a/firewall/aliases.go +++ b/firewall/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/healthchecks/aliases.go b/healthchecks/aliases.go index 656e1c3b97c..9884095cb89 100644 --- a/healthchecks/aliases.go +++ b/healthchecks/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/hostnames/aliases.go b/hostnames/aliases.go index d9265c90cd1..33c2b4381fa 100644 --- a/hostnames/aliases.go +++ b/hostnames/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/hyperdrive/aliases.go b/hyperdrive/aliases.go index 28ed7f2fa6d..69c8bf6b025 100644 --- a/hyperdrive/aliases.go +++ b/hyperdrive/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/images/aliases.go b/images/aliases.go index 63dbfe88de9..9a9ac5f5afe 100644 --- a/images/aliases.go +++ b/images/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/intel/aliases.go b/intel/aliases.go index 3cf8b2d96ec..3e135f84773 100644 --- a/intel/aliases.go +++ b/intel/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/intel/asn.go b/intel/asn.go index bd0dcf98614..dd2e71d4630 100644 --- a/intel/asn.go +++ b/intel/asn.go @@ -34,7 +34,7 @@ func NewASNService(opts ...option.RequestOption) (r *ASNService) { } // Get ASN Overview -func (r *ASNService) Get(ctx context.Context, asn IntelASNParam, query ASNGetParams, opts ...option.RequestOption) (res *IntelASN, err error) { +func (r *ASNService) Get(ctx context.Context, asn shared.ASNParam, query ASNGetParams, opts ...option.RequestOption) (res *shared.ASN, err error) { opts = append(r.Options[:], opts...) var env ASNGetResponseEnvelope path := fmt.Sprintf("accounts/%s/intel/asn/%v", query.AccountID, asn) @@ -46,10 +46,6 @@ func (r *ASNService) Get(ctx context.Context, asn IntelASNParam, query ASNGetPar return } -type IntelASN = int64 - -type IntelASNParam = int64 - type ASNGetParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` @@ -58,7 +54,7 @@ type ASNGetParams struct { type ASNGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result IntelASN `json:"result,required"` + Result shared.ASN `json:"result,required"` // Whether the API call was successful Success ASNGetResponseEnvelopeSuccess `json:"success,required"` JSON asnGetResponseEnvelopeJSON `json:"-"` diff --git a/intel/asnsubnet.go b/intel/asnsubnet.go index 182fe00f1fd..5132a2f398a 100644 --- a/intel/asnsubnet.go +++ b/intel/asnsubnet.go @@ -10,6 +10,7 @@ import ( "github.com/cloudflare/cloudflare-go/v2/internal/apijson" "github.com/cloudflare/cloudflare-go/v2/internal/param" "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" + "github.com/cloudflare/cloudflare-go/v2/internal/shared" "github.com/cloudflare/cloudflare-go/v2/option" ) @@ -31,7 +32,7 @@ func NewASNSubnetService(opts ...option.RequestOption) (r *ASNSubnetService) { } // Get ASN Subnets -func (r *ASNSubnetService) Get(ctx context.Context, asn IntelASNParam, query ASNSubnetGetParams, opts ...option.RequestOption) (res *ASNSubnetGetResponse, err error) { +func (r *ASNSubnetService) Get(ctx context.Context, asn shared.ASNParam, query ASNSubnetGetParams, opts ...option.RequestOption) (res *ASNSubnetGetResponse, err error) { opts = append(r.Options[:], opts...) path := fmt.Sprintf("accounts/%s/intel/asn/%v/subnets", query.AccountID, asn) err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &res, opts...) @@ -39,7 +40,7 @@ func (r *ASNSubnetService) Get(ctx context.Context, asn IntelASNParam, query ASN } type ASNSubnetGetResponse struct { - ASN IntelASN `json:"asn"` + ASN shared.ASN `json:"asn"` // Total results returned based on your search parameters. Count float64 `json:"count"` IPCountTotal int64 `json:"ip_count_total"` diff --git a/internal/shared/shared.go b/internal/shared/shared.go index 2616041bb7e..3d1014944c3 100644 --- a/internal/shared/shared.go +++ b/internal/shared/shared.go @@ -9,6 +9,10 @@ import ( "github.com/cloudflare/cloudflare-go/v2/internal/param" ) +type ASN = int64 + +type ASNParam = int64 + type AuditLog struct { // A string that uniquely identifies the audit log. ID string `json:"id"` diff --git a/ips/aliases.go b/ips/aliases.go index e7a8f7530b3..aa9a5b80cc0 100644 --- a/ips/aliases.go +++ b/ips/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/keyless_certificates/aliases.go b/keyless_certificates/aliases.go index a004ad34d7c..376e523b597 100644 --- a/keyless_certificates/aliases.go +++ b/keyless_certificates/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/kv/aliases.go b/kv/aliases.go index 593ab0f9c73..31cccb83439 100644 --- a/kv/aliases.go +++ b/kv/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/load_balancers/aliases.go b/load_balancers/aliases.go index eafc1f81e8d..bc826c228a7 100644 --- a/load_balancers/aliases.go +++ b/load_balancers/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/logpush/aliases.go b/logpush/aliases.go index c3f95f8a374..b4daa4f02c5 100644 --- a/logpush/aliases.go +++ b/logpush/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/logs/aliases.go b/logs/aliases.go index 63b6d79cf77..20a6801c2bd 100644 --- a/logs/aliases.go +++ b/logs/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/magic_network_monitoring/aliases.go b/magic_network_monitoring/aliases.go index 49070bed46d..488c89b0acd 100644 --- a/magic_network_monitoring/aliases.go +++ b/magic_network_monitoring/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/magic_transit/aliases.go b/magic_transit/aliases.go index 59fc9b29cca..598d4371f10 100644 --- a/magic_transit/aliases.go +++ b/magic_transit/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/managed_headers/aliases.go b/managed_headers/aliases.go index 310fae8dd96..cc969d89580 100644 --- a/managed_headers/aliases.go +++ b/managed_headers/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/memberships/aliases.go b/memberships/aliases.go index 21db87d94d9..0a6a12ddde5 100644 --- a/memberships/aliases.go +++ b/memberships/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/mtls_certificates/aliases.go b/mtls_certificates/aliases.go index a5182e005b3..7cb164be62a 100644 --- a/mtls_certificates/aliases.go +++ b/mtls_certificates/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/origin_ca_certificates/aliases.go b/origin_ca_certificates/aliases.go index 49dc27332a0..b508bda940a 100644 --- a/origin_ca_certificates/aliases.go +++ b/origin_ca_certificates/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/origin_post_quantum_encryption/aliases.go b/origin_post_quantum_encryption/aliases.go index 9688e7e0f77..f4243425a8e 100644 --- a/origin_post_quantum_encryption/aliases.go +++ b/origin_post_quantum_encryption/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/origin_tls_client_auth/aliases.go b/origin_tls_client_auth/aliases.go index 0356a803c54..1aa003da3af 100644 --- a/origin_tls_client_auth/aliases.go +++ b/origin_tls_client_auth/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/page_shield/aliases.go b/page_shield/aliases.go index c11d4906d88..38acbe41045 100644 --- a/page_shield/aliases.go +++ b/page_shield/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/pagerules/aliases.go b/pagerules/aliases.go index 8fe42926f85..0c103619f8d 100644 --- a/pagerules/aliases.go +++ b/pagerules/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/pages/aliases.go b/pages/aliases.go index 1f4383fcf65..b75f140bf4a 100644 --- a/pages/aliases.go +++ b/pages/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/pcaps/aliases.go b/pcaps/aliases.go index d1dbbfdbb83..b09195da288 100644 --- a/pcaps/aliases.go +++ b/pcaps/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/plans/aliases.go b/plans/aliases.go index 0d25cb0b82d..7ece9023360 100644 --- a/plans/aliases.go +++ b/plans/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/queues/aliases.go b/queues/aliases.go index cd17b84a92a..8494dfdff8b 100644 --- a/queues/aliases.go +++ b/queues/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/r2/aliases.go b/r2/aliases.go index 3c25ed71131..57bf17772d0 100644 --- a/r2/aliases.go +++ b/r2/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/radar/aliases.go b/radar/aliases.go index a3c4f2b71e2..66c90b1450e 100644 --- a/radar/aliases.go +++ b/radar/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/rate_limits/aliases.go b/rate_limits/aliases.go index 87e39ece659..11982770e43 100644 --- a/rate_limits/aliases.go +++ b/rate_limits/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/rate_plans/aliases.go b/rate_plans/aliases.go index 4ec997b6c77..f4d52d12f0f 100644 --- a/rate_plans/aliases.go +++ b/rate_plans/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/registrar/aliases.go b/registrar/aliases.go index 8aa4f8ca0b3..a79a9f2a4fb 100644 --- a/registrar/aliases.go +++ b/registrar/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/request_tracers/aliases.go b/request_tracers/aliases.go index ead9bf507c5..a0a5811075c 100644 --- a/request_tracers/aliases.go +++ b/request_tracers/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/rules/aliases.go b/rules/aliases.go index 29ce22e9265..70443fcf6e6 100644 --- a/rules/aliases.go +++ b/rules/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/rulesets/aliases.go b/rulesets/aliases.go index dc77a323c1b..c382a432bab 100644 --- a/rulesets/aliases.go +++ b/rulesets/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/rum/aliases.go b/rum/aliases.go index dac20cb0b3c..4449cec432c 100644 --- a/rum/aliases.go +++ b/rum/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/secondary_dns/aliases.go b/secondary_dns/aliases.go index 2de5b18f06c..badae850257 100644 --- a/secondary_dns/aliases.go +++ b/secondary_dns/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/snippets/aliases.go b/snippets/aliases.go index b17827c9e51..8434e360880 100644 --- a/snippets/aliases.go +++ b/snippets/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/spectrum/aliases.go b/spectrum/aliases.go index 694bfdfb0e2..1f52ccd3de1 100644 --- a/spectrum/aliases.go +++ b/spectrum/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/speed/aliases.go b/speed/aliases.go index a9fa6cbb216..14e2012f251 100644 --- a/speed/aliases.go +++ b/speed/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/ssl/aliases.go b/ssl/aliases.go index 85f949d06bc..d522763bc4f 100644 --- a/ssl/aliases.go +++ b/ssl/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/storage/aliases.go b/storage/aliases.go index 8eff45c3182..8c1547d8d7a 100644 --- a/storage/aliases.go +++ b/storage/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/stream/aliases.go b/stream/aliases.go index 9b020646b66..3fb40fe13ba 100644 --- a/stream/aliases.go +++ b/stream/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/subscriptions/aliases.go b/subscriptions/aliases.go index d84af686f00..9fd719e4e5b 100644 --- a/subscriptions/aliases.go +++ b/subscriptions/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/url_normalization/aliases.go b/url_normalization/aliases.go index 793a3bc6514..9cde81ec891 100644 --- a/url_normalization/aliases.go +++ b/url_normalization/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/url_scanner/aliases.go b/url_scanner/aliases.go index cc874147d53..d795833420d 100644 --- a/url_scanner/aliases.go +++ b/url_scanner/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/user/aliases.go b/user/aliases.go index a86f7ef729d..c41ea934533 100644 --- a/user/aliases.go +++ b/user/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/vectorize/aliases.go b/vectorize/aliases.go index dd3fdbb11d2..0ac5d9b3519 100644 --- a/vectorize/aliases.go +++ b/vectorize/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/waiting_rooms/aliases.go b/waiting_rooms/aliases.go index 705c2e078fb..45113caf6f6 100644 --- a/waiting_rooms/aliases.go +++ b/waiting_rooms/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/warp_connector/aliases.go b/warp_connector/aliases.go index 9bd75d69e7e..4789a8ca552 100644 --- a/warp_connector/aliases.go +++ b/warp_connector/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/web3/aliases.go b/web3/aliases.go index dadc111b6bb..1a275d05078 100644 --- a/web3/aliases.go +++ b/web3/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/workers/aliases.go b/workers/aliases.go index ffc80b750e2..1e8b8a2cc10 100644 --- a/workers/aliases.go +++ b/workers/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/workers_for_platforms/aliases.go b/workers_for_platforms/aliases.go index 5d2f2d97b9c..2d1d83f4339 100644 --- a/workers_for_platforms/aliases.go +++ b/workers_for_platforms/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/zero_trust/aliases.go b/zero_trust/aliases.go index 4483a406629..0789d130ce4 100644 --- a/zero_trust/aliases.go +++ b/zero_trust/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog diff --git a/zones/aliases.go b/zones/aliases.go index fa4254a6c84..30743453dd3 100644 --- a/zones/aliases.go +++ b/zones/aliases.go @@ -9,6 +9,12 @@ import ( type Error = apierror.Error +// This is an alias to an internal type. +type ASN = shared.ASN + +// This is an alias to an internal type. +type ASNParam = shared.ASNParam + // This is an alias to an internal type. type AuditLog = shared.AuditLog From 22a0cf255057c7a47244d2a035b0d7e30395d762 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 22 Apr 2024 15:01:46 +0000 Subject: [PATCH 43/52] feat(api): OpenAPI spec update via Stainless API (#1829) --- zero_trust/accessapplication.go | 151 ++++++++++++++++++++++++++++---- 1 file changed, 136 insertions(+), 15 deletions(-) diff --git a/zero_trust/accessapplication.go b/zero_trust/accessapplication.go index 882e10dc7f3..17cd78a46c3 100644 --- a/zero_trust/accessapplication.go +++ b/zero_trust/accessapplication.go @@ -610,6 +610,7 @@ type ApplicationSaaSApplicationSaasApp struct { ClientID string `json:"client_id"` // The application client secret, only returned on POST request. ClientSecret string `json:"client_secret"` + CustomClaims interface{} `json:"custom_claims,required"` GrantTypes interface{} `json:"grant_types,required"` // A regex to filter Cloudflare groups returned in ID token and userinfo endpoint GroupFilterRegex string `json:"group_filter_regex"` @@ -638,6 +639,7 @@ type applicationSaaSApplicationSaasAppJSON struct { AppLauncherURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field + CustomClaims apijson.Field GrantTypes apijson.Field GroupFilterRegex apijson.Field RedirectURIs apijson.Field @@ -692,8 +694,9 @@ type ApplicationSaaSApplicationSaasAppAccessOIDCSaasApp struct { // The application client id ClientID string `json:"client_id"` // The application client secret, only returned on POST request. - ClientSecret string `json:"client_secret"` - CreatedAt time.Time `json:"created_at" format:"date-time"` + ClientSecret string `json:"client_secret"` + CreatedAt time.Time `json:"created_at" format:"date-time"` + CustomClaims ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaims `json:"custom_claims"` // The OIDC flows supported by this application GrantTypes []ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppGrantType `json:"grant_types"` // A regex to filter Cloudflare groups returned in ID token and userinfo endpoint @@ -717,6 +720,7 @@ type applicationSaaSApplicationSaasAppAccessOIDCSaasAppJSON struct { ClientID apijson.Field ClientSecret apijson.Field CreatedAt apijson.Field + CustomClaims apijson.Field GrantTypes apijson.Field GroupFilterRegex apijson.Field PublicKey apijson.Field @@ -755,6 +759,81 @@ func (r ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppAuthType) IsKnown() bo return false } +type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaims struct { + // The name of the claim. + Name string `json:"name"` + // A mapping from IdP ID to claim name. + NameByIDP map[string]string `json:"name_by_idp"` + // If the claim is required when building an OIDC token. + Required bool `json:"required"` + // The scope of the claim. + Scope ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScope `json:"scope"` + Source ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSource `json:"source"` + JSON applicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsJSON `json:"-"` +} + +// applicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsJSON contains the +// JSON metadata for the struct +// [ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaims] +type applicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsJSON struct { + Name apijson.Field + NameByIDP apijson.Field + Required apijson.Field + Scope apijson.Field + Source apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaims) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r applicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsJSON) RawJSON() string { + return r.raw +} + +// The scope of the claim. +type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScope string + +const ( + ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScopeGroups ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScope = "groups" + ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScopeProfile ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScope = "profile" + ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScopeEmail ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScope = "email" + ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScopeOpenid ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScope = "openid" +) + +func (r ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScope) IsKnown() bool { + switch r { + case ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScopeGroups, ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScopeProfile, ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScopeEmail, ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScopeOpenid: + return true + } + return false +} + +type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSource struct { + // The name of the IdP claim. + Name string `json:"name"` + JSON applicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSourceJSON `json:"-"` +} + +// applicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSourceJSON +// contains the JSON metadata for the struct +// [ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSource] +type applicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSourceJSON struct { + Name apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSource) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r applicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSourceJSON) RawJSON() string { + return r.raw +} + type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppGrantType string const ( @@ -1533,6 +1612,7 @@ type ApplicationSaaSApplicationSaasAppParam struct { ClientID param.Field[string] `json:"client_id"` // The application client secret, only returned on POST request. ClientSecret param.Field[string] `json:"client_secret"` + CustomClaims param.Field[interface{}] `json:"custom_claims,required"` GrantTypes param.Field[interface{}] `json:"grant_types,required"` // A regex to filter Cloudflare groups returned in ID token and userinfo endpoint GroupFilterRegex param.Field[string] `json:"group_filter_regex"` @@ -1563,7 +1643,8 @@ type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppParam struct { // The application client id ClientID param.Field[string] `json:"client_id"` // The application client secret, only returned on POST request. - ClientSecret param.Field[string] `json:"client_secret"` + ClientSecret param.Field[string] `json:"client_secret"` + CustomClaims param.Field[ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsParam] `json:"custom_claims"` // The OIDC flows supported by this application GrantTypes param.Field[[]ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppGrantType] `json:"grant_types"` // A regex to filter Cloudflare groups returned in ID token and userinfo endpoint @@ -1584,6 +1665,31 @@ func (r ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppParam) MarshalJSON() ( func (r ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppParam) implementsZeroTrustApplicationSaaSApplicationSaasAppUnionParam() { } +type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsParam struct { + // The name of the claim. + Name param.Field[string] `json:"name"` + // A mapping from IdP ID to claim name. + NameByIDP param.Field[map[string]string] `json:"name_by_idp"` + // If the claim is required when building an OIDC token. + Required param.Field[bool] `json:"required"` + // The scope of the claim. + Scope param.Field[ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScope] `json:"scope"` + Source param.Field[ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSourceParam] `json:"source"` +} + +func (r ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsParam) MarshalJSON() (data []byte, err error) { + return apijson.MarshalRoot(r) +} + +type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSourceParam struct { + // The name of the IdP claim. + Name param.Field[string] `json:"name"` +} + +func (r ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSourceParam) MarshalJSON() (data []byte, err error) { + return apijson.MarshalRoot(r) +} + type ApplicationBrowserSSHApplicationParam struct { // The primary hostname and path that Access will secure. If the app is visible in // the App Launcher dashboard, this is the domain that will be displayed. @@ -1919,13 +2025,16 @@ func (r SaasAppNameIDFormat) IsKnown() bool { type SaasAppSource struct { // The name of the IdP attribute. - Name string `json:"name"` - JSON saasAppSourceJSON `json:"-"` + Name string `json:"name"` + // A mapping from IdP ID to attribute name. + NameByIDP map[string]string `json:"name_by_idp"` + JSON saasAppSourceJSON `json:"-"` } // saasAppSourceJSON contains the JSON metadata for the struct [SaasAppSource] type saasAppSourceJSON struct { Name apijson.Field + NameByIDP apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -1941,6 +2050,8 @@ func (r saasAppSourceJSON) RawJSON() string { type SaasAppSourceParam struct { // The name of the IdP attribute. Name param.Field[string] `json:"name"` + // A mapping from IdP ID to attribute name. + NameByIDP param.Field[map[string]string] `json:"name_by_idp"` } func (r SaasAppSourceParam) MarshalJSON() (data []byte, err error) { @@ -2031,22 +2142,28 @@ func (r SAMLSaasAppAuthType) IsKnown() bool { } type SAMLSaasAppCustomAttributes struct { + // The SAML FriendlyName of the attribute. + FriendlyName string `json:"friendly_name"` // The name of the attribute. Name string `json:"name"` // A globally unique name for an identity or service provider. - NameFormat SaasAppNameFormat `json:"name_format"` - Source SaasAppSource `json:"source"` - JSON samlSaasAppCustomAttributesJSON `json:"-"` + NameFormat SaasAppNameFormat `json:"name_format"` + // If the attribute is required when building a SAML assertion. + Required bool `json:"required"` + Source SaasAppSource `json:"source"` + JSON samlSaasAppCustomAttributesJSON `json:"-"` } // samlSaasAppCustomAttributesJSON contains the JSON metadata for the struct // [SAMLSaasAppCustomAttributes] type samlSaasAppCustomAttributesJSON struct { - Name apijson.Field - NameFormat apijson.Field - Source apijson.Field - raw string - ExtraFields map[string]apijson.Field + FriendlyName apijson.Field + Name apijson.Field + NameFormat apijson.Field + Required apijson.Field + Source apijson.Field + raw string + ExtraFields map[string]apijson.Field } func (r *SAMLSaasAppCustomAttributes) UnmarshalJSON(data []byte) (err error) { @@ -2098,11 +2215,15 @@ func (r SAMLSaasAppParam) MarshalJSON() (data []byte, err error) { func (r SAMLSaasAppParam) implementsZeroTrustApplicationSaaSApplicationSaasAppUnionParam() {} type SAMLSaasAppCustomAttributesParam struct { + // The SAML FriendlyName of the attribute. + FriendlyName param.Field[string] `json:"friendly_name"` // The name of the attribute. Name param.Field[string] `json:"name"` // A globally unique name for an identity or service provider. - NameFormat param.Field[SaasAppNameFormat] `json:"name_format"` - Source param.Field[SaasAppSourceParam] `json:"source"` + NameFormat param.Field[SaasAppNameFormat] `json:"name_format"` + // If the attribute is required when building a SAML assertion. + Required param.Field[bool] `json:"required"` + Source param.Field[SaasAppSourceParam] `json:"source"` } func (r SAMLSaasAppCustomAttributesParam) MarshalJSON() (data []byte, err error) { From 3c07f23f2f57324dbe384564acc042239ce0b608 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 22 Apr 2024 16:23:33 +0000 Subject: [PATCH 44/52] feat(api): OpenAPI spec update via Stainless API (#1830) --- dnssec/dnssec.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/dnssec/dnssec.go b/dnssec/dnssec.go index 0cbbb31b673..2236c973e56 100644 --- a/dnssec/dnssec.go +++ b/dnssec/dnssec.go @@ -189,11 +189,11 @@ func (r DNSSECDeleteParams) MarshalJSON() (data []byte, err error) { } type DNSSECDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result DNSSECDeleteResponseUnion `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DNSSECDeleteResponseEnvelopeSuccess `json:"success,required"` + Result DNSSECDeleteResponseUnion `json:"result"` JSON dnssecDeleteResponseEnvelopeJSON `json:"-"` } @@ -202,8 +202,8 @@ type DNSSECDeleteResponseEnvelope struct { type dnssecDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -278,9 +278,9 @@ func (r DNSSECEditParamsStatus) IsKnown() bool { type DNSSECEditResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result DNSSEC `json:"result,required"` // Whether the API call was successful Success DNSSECEditResponseEnvelopeSuccess `json:"success,required"` + Result DNSSEC `json:"result"` JSON dnssecEditResponseEnvelopeJSON `json:"-"` } @@ -289,8 +289,8 @@ type DNSSECEditResponseEnvelope struct { type dnssecEditResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -326,9 +326,9 @@ type DNSSECGetParams struct { type DNSSECGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result DNSSEC `json:"result,required"` // Whether the API call was successful Success DNSSECGetResponseEnvelopeSuccess `json:"success,required"` + Result DNSSEC `json:"result"` JSON dnssecGetResponseEnvelopeJSON `json:"-"` } @@ -337,8 +337,8 @@ type DNSSECGetResponseEnvelope struct { type dnssecGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } From 66a8c6acae1d37d8826bccef21b3a80c71a94b03 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 22 Apr 2024 18:03:08 +0000 Subject: [PATCH 45/52] feat(api): OpenAPI spec update via Stainless API (#1831) --- queues/consumer_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/queues/consumer_test.go b/queues/consumer_test.go index f53c3fca042..3abbbcf1c4d 100644 --- a/queues/consumer_test.go +++ b/queues/consumer_test.go @@ -42,6 +42,7 @@ func TestConsumerNew(t *testing.T) { "max_retries": int64(3), "max_wait_time_ms": int64(5000), }, + "type": "worker", }, }, ) From fd4815c3c97b37291363299dbb7f4d3ceff08ca2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 23 Apr 2024 02:20:20 +0000 Subject: [PATCH 46/52] feat(api): update via SDK Studio (#1833) --- zero_trust/accessapplication.go | 72 ++++++++++++------------ zero_trust/accessapplication_test.go | 4 +- zero_trust/accessuseractivesession.go | 18 +++--- zero_trust/accessuserlastseenidentity.go | 16 +++--- zero_trust/identityprovider.go | 10 ++-- 5 files changed, 60 insertions(+), 60 deletions(-) diff --git a/zero_trust/accessapplication.go b/zero_trust/accessapplication.go index 17cd78a46c3..0651e342bd5 100644 --- a/zero_trust/accessapplication.go +++ b/zero_trust/accessapplication.go @@ -237,7 +237,7 @@ type Application struct { // authentication. This setting always overrides the organization setting for WARP // authentication. AllowAuthenticateViaWARP bool `json:"allow_authenticate_via_warp"` - AllowedIDPs interface{} `json:"allowed_idps,required"` + AllowedIdps interface{} `json:"allowed_idps,required"` // Displays the application in the App Launcher. AppLauncherVisible bool `json:"app_launcher_visible"` // When set to `true`, users skip the identity provider selection step during @@ -300,7 +300,7 @@ type applicationJSON struct { ID apijson.Field UpdatedAt apijson.Field AllowAuthenticateViaWARP apijson.Field - AllowedIDPs apijson.Field + AllowedIdps apijson.Field AppLauncherVisible apijson.Field AutoRedirectToIdentity apijson.Field CorsHeaders apijson.Field @@ -409,7 +409,7 @@ type ApplicationSelfHostedApplication struct { AllowAuthenticateViaWARP bool `json:"allow_authenticate_via_warp"` // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. - AllowedIDPs []AllowedIdpsh `json:"allowed_idps"` + AllowedIdps []AllowedIdpsh `json:"allowed_idps"` // Displays the application in the App Launcher. AppLauncherVisible bool `json:"app_launcher_visible"` // Audience tag. @@ -473,7 +473,7 @@ type applicationSelfHostedApplicationJSON struct { Type apijson.Field ID apijson.Field AllowAuthenticateViaWARP apijson.Field - AllowedIDPs apijson.Field + AllowedIdps apijson.Field AppLauncherVisible apijson.Field Aud apijson.Field AutoRedirectToIdentity apijson.Field @@ -515,7 +515,7 @@ type ApplicationSaaSApplication struct { ID string `json:"id"` // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. - AllowedIDPs []AllowedIdpsh `json:"allowed_idps"` + AllowedIdps []AllowedIdpsh `json:"allowed_idps"` // Displays the application in the App Launcher. AppLauncherVisible bool `json:"app_launcher_visible"` // Audience tag. @@ -544,7 +544,7 @@ type ApplicationSaaSApplication struct { // [ApplicationSaaSApplication] type applicationSaaSApplicationJSON struct { ID apijson.Field - AllowedIDPs apijson.Field + AllowedIdps apijson.Field AppLauncherVisible apijson.Field Aud apijson.Field AutoRedirectToIdentity apijson.Field @@ -583,7 +583,7 @@ type ApplicationSaaSApplicationSaasApp struct { // initiated logins. DefaultRelayState string `json:"default_relay_state"` // The unique identifier for your SaaS application. - IDPEntityID string `json:"idp_entity_id"` + IdPEntityID string `json:"idp_entity_id"` // The format of the name identifier sent to the SaaS application. NameIDFormat SaasAppNameIDFormat `json:"name_id_format"` // A [JSONata](https://jsonata.org/) expression that transforms an application's @@ -628,7 +628,7 @@ type applicationSaaSApplicationSaasAppJSON struct { CreatedAt apijson.Field CustomAttributes apijson.Field DefaultRelayState apijson.Field - IDPEntityID apijson.Field + IdPEntityID apijson.Field NameIDFormat apijson.Field NameIDTransformJsonata apijson.Field PublicKey apijson.Field @@ -763,7 +763,7 @@ type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaims struct { // The name of the claim. Name string `json:"name"` // A mapping from IdP ID to claim name. - NameByIDP map[string]string `json:"name_by_idp"` + NameByIdP map[string]string `json:"name_by_idp"` // If the claim is required when building an OIDC token. Required bool `json:"required"` // The scope of the claim. @@ -777,7 +777,7 @@ type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaims struct { // [ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaims] type applicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsJSON struct { Name apijson.Field - NameByIDP apijson.Field + NameByIdP apijson.Field Required apijson.Field Scope apijson.Field Source apijson.Field @@ -898,7 +898,7 @@ type ApplicationBrowserSSHApplication struct { AllowAuthenticateViaWARP bool `json:"allow_authenticate_via_warp"` // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. - AllowedIDPs []AllowedIdpsh `json:"allowed_idps"` + AllowedIdps []AllowedIdpsh `json:"allowed_idps"` // Displays the application in the App Launcher. AppLauncherVisible bool `json:"app_launcher_visible"` // Audience tag. @@ -962,7 +962,7 @@ type applicationBrowserSSHApplicationJSON struct { Type apijson.Field ID apijson.Field AllowAuthenticateViaWARP apijson.Field - AllowedIDPs apijson.Field + AllowedIdps apijson.Field AppLauncherVisible apijson.Field Aud apijson.Field AutoRedirectToIdentity apijson.Field @@ -1014,7 +1014,7 @@ type ApplicationBrowserVncApplication struct { AllowAuthenticateViaWARP bool `json:"allow_authenticate_via_warp"` // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. - AllowedIDPs []AllowedIdpsh `json:"allowed_idps"` + AllowedIdps []AllowedIdpsh `json:"allowed_idps"` // Displays the application in the App Launcher. AppLauncherVisible bool `json:"app_launcher_visible"` // Audience tag. @@ -1078,7 +1078,7 @@ type applicationBrowserVncApplicationJSON struct { Type apijson.Field ID apijson.Field AllowAuthenticateViaWARP apijson.Field - AllowedIDPs apijson.Field + AllowedIdps apijson.Field AppLauncherVisible apijson.Field Aud apijson.Field AutoRedirectToIdentity apijson.Field @@ -1122,7 +1122,7 @@ type ApplicationAppLauncherApplication struct { ID string `json:"id"` // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. - AllowedIDPs []AllowedIdpsh `json:"allowed_idps"` + AllowedIdps []AllowedIdpsh `json:"allowed_idps"` // Audience tag. Aud string `json:"aud"` // When set to `true`, users skip the identity provider selection step during @@ -1147,7 +1147,7 @@ type ApplicationAppLauncherApplication struct { type applicationAppLauncherApplicationJSON struct { Type apijson.Field ID apijson.Field - AllowedIDPs apijson.Field + AllowedIdps apijson.Field Aud apijson.Field AutoRedirectToIdentity apijson.Field CreatedAt apijson.Field @@ -1199,7 +1199,7 @@ type ApplicationDeviceEnrollmentPermissionsApplication struct { ID string `json:"id"` // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. - AllowedIDPs []AllowedIdpsh `json:"allowed_idps"` + AllowedIdps []AllowedIdpsh `json:"allowed_idps"` // Audience tag. Aud string `json:"aud"` // When set to `true`, users skip the identity provider selection step during @@ -1224,7 +1224,7 @@ type ApplicationDeviceEnrollmentPermissionsApplication struct { type applicationDeviceEnrollmentPermissionsApplicationJSON struct { Type apijson.Field ID apijson.Field - AllowedIDPs apijson.Field + AllowedIdps apijson.Field Aud apijson.Field AutoRedirectToIdentity apijson.Field CreatedAt apijson.Field @@ -1276,7 +1276,7 @@ type ApplicationBrowserIsolationPermissionsApplication struct { ID string `json:"id"` // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. - AllowedIDPs []AllowedIdpsh `json:"allowed_idps"` + AllowedIdps []AllowedIdpsh `json:"allowed_idps"` // Audience tag. Aud string `json:"aud"` // When set to `true`, users skip the identity provider selection step during @@ -1301,7 +1301,7 @@ type ApplicationBrowserIsolationPermissionsApplication struct { type applicationBrowserIsolationPermissionsApplicationJSON struct { Type apijson.Field ID apijson.Field - AllowedIDPs apijson.Field + AllowedIdps apijson.Field Aud apijson.Field AutoRedirectToIdentity apijson.Field CreatedAt apijson.Field @@ -1402,7 +1402,7 @@ type ApplicationParam struct { // authentication. This setting always overrides the organization setting for WARP // authentication. AllowAuthenticateViaWARP param.Field[bool] `json:"allow_authenticate_via_warp"` - AllowedIDPs param.Field[interface{}] `json:"allowed_idps,required"` + AllowedIdps param.Field[interface{}] `json:"allowed_idps,required"` // Displays the application in the App Launcher. AppLauncherVisible param.Field[bool] `json:"app_launcher_visible"` // When set to `true`, users skip the identity provider selection step during @@ -1487,7 +1487,7 @@ type ApplicationSelfHostedApplicationParam struct { AllowAuthenticateViaWARP param.Field[bool] `json:"allow_authenticate_via_warp"` // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. - AllowedIDPs param.Field[[]AllowedIdpshParam] `json:"allowed_idps"` + AllowedIdps param.Field[[]AllowedIdpshParam] `json:"allowed_idps"` // Displays the application in the App Launcher. AppLauncherVisible param.Field[bool] `json:"app_launcher_visible"` // When set to `true`, users skip the identity provider selection step during @@ -1548,7 +1548,7 @@ func (r ApplicationSelfHostedApplicationParam) implementsZeroTrustApplicationUni type ApplicationSaaSApplicationParam struct { // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. - AllowedIDPs param.Field[[]AllowedIdpshParam] `json:"allowed_idps"` + AllowedIdps param.Field[[]AllowedIdpshParam] `json:"allowed_idps"` // Displays the application in the App Launcher. AppLauncherVisible param.Field[bool] `json:"app_launcher_visible"` // When set to `true`, users skip the identity provider selection step during @@ -1586,7 +1586,7 @@ type ApplicationSaaSApplicationSaasAppParam struct { // initiated logins. DefaultRelayState param.Field[string] `json:"default_relay_state"` // The unique identifier for your SaaS application. - IDPEntityID param.Field[string] `json:"idp_entity_id"` + IdPEntityID param.Field[string] `json:"idp_entity_id"` // The format of the name identifier sent to the SaaS application. NameIDFormat param.Field[SaasAppNameIDFormat] `json:"name_id_format"` // A [JSONata](https://jsonata.org/) expression that transforms an application's @@ -1669,7 +1669,7 @@ type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsParam struct // The name of the claim. Name param.Field[string] `json:"name"` // A mapping from IdP ID to claim name. - NameByIDP param.Field[map[string]string] `json:"name_by_idp"` + NameByIdP param.Field[map[string]string] `json:"name_by_idp"` // If the claim is required when building an OIDC token. Required param.Field[bool] `json:"required"` // The scope of the claim. @@ -1703,7 +1703,7 @@ type ApplicationBrowserSSHApplicationParam struct { AllowAuthenticateViaWARP param.Field[bool] `json:"allow_authenticate_via_warp"` // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. - AllowedIDPs param.Field[[]AllowedIdpshParam] `json:"allowed_idps"` + AllowedIdps param.Field[[]AllowedIdpshParam] `json:"allowed_idps"` // Displays the application in the App Launcher. AppLauncherVisible param.Field[bool] `json:"app_launcher_visible"` // When set to `true`, users skip the identity provider selection step during @@ -1774,7 +1774,7 @@ type ApplicationBrowserVncApplicationParam struct { AllowAuthenticateViaWARP param.Field[bool] `json:"allow_authenticate_via_warp"` // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. - AllowedIDPs param.Field[[]AllowedIdpshParam] `json:"allowed_idps"` + AllowedIdps param.Field[[]AllowedIdpshParam] `json:"allowed_idps"` // Displays the application in the App Launcher. AppLauncherVisible param.Field[bool] `json:"app_launcher_visible"` // When set to `true`, users skip the identity provider selection step during @@ -1837,7 +1837,7 @@ type ApplicationAppLauncherApplicationParam struct { Type param.Field[ApplicationAppLauncherApplicationType] `json:"type,required"` // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. - AllowedIDPs param.Field[[]AllowedIdpshParam] `json:"allowed_idps"` + AllowedIdps param.Field[[]AllowedIdpshParam] `json:"allowed_idps"` // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity param.Field[bool] `json:"auto_redirect_to_identity"` @@ -1858,7 +1858,7 @@ type ApplicationDeviceEnrollmentPermissionsApplicationParam struct { Type param.Field[ApplicationDeviceEnrollmentPermissionsApplicationType] `json:"type,required"` // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. - AllowedIDPs param.Field[[]AllowedIdpshParam] `json:"allowed_idps"` + AllowedIdps param.Field[[]AllowedIdpshParam] `json:"allowed_idps"` // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity param.Field[bool] `json:"auto_redirect_to_identity"` @@ -1880,7 +1880,7 @@ type ApplicationBrowserIsolationPermissionsApplicationParam struct { Type param.Field[ApplicationBrowserIsolationPermissionsApplicationType] `json:"type,required"` // The identity providers your users can select when connecting to this // application. Defaults to all IdPs configured in your account. - AllowedIDPs param.Field[[]AllowedIdpshParam] `json:"allowed_idps"` + AllowedIdps param.Field[[]AllowedIdpshParam] `json:"allowed_idps"` // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity param.Field[bool] `json:"auto_redirect_to_identity"` @@ -2027,14 +2027,14 @@ type SaasAppSource struct { // The name of the IdP attribute. Name string `json:"name"` // A mapping from IdP ID to attribute name. - NameByIDP map[string]string `json:"name_by_idp"` + NameByIdP map[string]string `json:"name_by_idp"` JSON saasAppSourceJSON `json:"-"` } // saasAppSourceJSON contains the JSON metadata for the struct [SaasAppSource] type saasAppSourceJSON struct { Name apijson.Field - NameByIDP apijson.Field + NameByIdP apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -2051,7 +2051,7 @@ type SaasAppSourceParam struct { // The name of the IdP attribute. Name param.Field[string] `json:"name"` // A mapping from IdP ID to attribute name. - NameByIDP param.Field[map[string]string] `json:"name_by_idp"` + NameByIdP param.Field[map[string]string] `json:"name_by_idp"` } func (r SaasAppSourceParam) MarshalJSON() (data []byte, err error) { @@ -2071,7 +2071,7 @@ type SAMLSaasApp struct { // initiated logins. DefaultRelayState string `json:"default_relay_state"` // The unique identifier for your SaaS application. - IDPEntityID string `json:"idp_entity_id"` + IdPEntityID string `json:"idp_entity_id"` // The format of the name identifier sent to the SaaS application. NameIDFormat SaasAppNameIDFormat `json:"name_id_format"` // A [JSONata](https://jsonata.org/) expression that transforms an application's @@ -2102,7 +2102,7 @@ type samlSaasAppJSON struct { CreatedAt apijson.Field CustomAttributes apijson.Field DefaultRelayState apijson.Field - IDPEntityID apijson.Field + IdPEntityID apijson.Field NameIDFormat apijson.Field NameIDTransformJsonata apijson.Field PublicKey apijson.Field @@ -2186,7 +2186,7 @@ type SAMLSaasAppParam struct { // initiated logins. DefaultRelayState param.Field[string] `json:"default_relay_state"` // The unique identifier for your SaaS application. - IDPEntityID param.Field[string] `json:"idp_entity_id"` + IdPEntityID param.Field[string] `json:"idp_entity_id"` // The format of the name identifier sent to the SaaS application. NameIDFormat param.Field[SaasAppNameIDFormat] `json:"name_id_format"` // A [JSONata](https://jsonata.org/) expression that transforms an application's diff --git a/zero_trust/accessapplication_test.go b/zero_trust/accessapplication_test.go index 81fd1ab91cc..e9c9e9c894a 100644 --- a/zero_trust/accessapplication_test.go +++ b/zero_trust/accessapplication_test.go @@ -32,7 +32,7 @@ func TestAccessApplicationNewWithOptionalParams(t *testing.T) { _, err := client.ZeroTrust.Access.Applications.New(context.TODO(), zero_trust.AccessApplicationNewParams{ Application: zero_trust.ApplicationSelfHostedApplicationParam{ AllowAuthenticateViaWARP: cloudflare.F(true), - AllowedIDPs: cloudflare.F([]zero_trust.AllowedIdpshParam{"699d98642c564d2e855e9661899b7252", "699d98642c564d2e855e9661899b7252", "699d98642c564d2e855e9661899b7252"}), + AllowedIdps: cloudflare.F([]zero_trust.AllowedIdpshParam{"699d98642c564d2e855e9661899b7252", "699d98642c564d2e855e9661899b7252", "699d98642c564d2e855e9661899b7252"}), AppLauncherVisible: cloudflare.F(true), AutoRedirectToIdentity: cloudflare.F(true), CorsHeaders: cloudflare.F(zero_trust.CorsHeadersParam{ @@ -96,7 +96,7 @@ func TestAccessApplicationUpdateWithOptionalParams(t *testing.T) { zero_trust.AccessApplicationUpdateParams{ Application: zero_trust.ApplicationSelfHostedApplicationParam{ AllowAuthenticateViaWARP: cloudflare.F(true), - AllowedIDPs: cloudflare.F([]zero_trust.AllowedIdpshParam{"699d98642c564d2e855e9661899b7252", "699d98642c564d2e855e9661899b7252", "699d98642c564d2e855e9661899b7252"}), + AllowedIdps: cloudflare.F([]zero_trust.AllowedIdpshParam{"699d98642c564d2e855e9661899b7252", "699d98642c564d2e855e9661899b7252", "699d98642c564d2e855e9661899b7252"}), AppLauncherVisible: cloudflare.F(true), AutoRedirectToIdentity: cloudflare.F(true), CorsHeaders: cloudflare.F(zero_trust.CorsHeadersParam{ diff --git a/zero_trust/accessuseractivesession.go b/zero_trust/accessuseractivesession.go index a6c2d6176c2..8d76cae67ac 100644 --- a/zero_trust/accessuseractivesession.go +++ b/zero_trust/accessuseractivesession.go @@ -159,7 +159,7 @@ type AccessUserActiveSessionGetResponse struct { Email string `json:"email"` Geo UserPolicyCheckGeo `json:"geo"` Iat float64 `json:"iat"` - IDP AccessUserActiveSessionGetResponseIDP `json:"idp"` + IdP AccessUserActiveSessionGetResponseIdP `json:"idp"` IP string `json:"ip"` IsGateway bool `json:"is_gateway"` IsWARP bool `json:"is_warp"` @@ -184,7 +184,7 @@ type accessUserActiveSessionGetResponseJSON struct { Email apijson.Field Geo apijson.Field Iat apijson.Field - IDP apijson.Field + IdP apijson.Field IP apijson.Field IsGateway apijson.Field IsWARP apijson.Field @@ -287,26 +287,26 @@ func (r accessUserActiveSessionGetResponseDevicePostureCheckJSON) RawJSON() stri return r.raw } -type AccessUserActiveSessionGetResponseIDP struct { +type AccessUserActiveSessionGetResponseIdP struct { ID string `json:"id"` Type string `json:"type"` - JSON accessUserActiveSessionGetResponseIDPJSON `json:"-"` + JSON accessUserActiveSessionGetResponseIdPJSON `json:"-"` } -// accessUserActiveSessionGetResponseIDPJSON contains the JSON metadata for the -// struct [AccessUserActiveSessionGetResponseIDP] -type accessUserActiveSessionGetResponseIDPJSON struct { +// accessUserActiveSessionGetResponseIdPJSON contains the JSON metadata for the +// struct [AccessUserActiveSessionGetResponseIdP] +type accessUserActiveSessionGetResponseIdPJSON struct { ID apijson.Field Type apijson.Field raw string ExtraFields map[string]apijson.Field } -func (r *AccessUserActiveSessionGetResponseIDP) UnmarshalJSON(data []byte) (err error) { +func (r *AccessUserActiveSessionGetResponseIdP) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r accessUserActiveSessionGetResponseIDPJSON) RawJSON() string { +func (r accessUserActiveSessionGetResponseIdPJSON) RawJSON() string { return r.raw } diff --git a/zero_trust/accessuserlastseenidentity.go b/zero_trust/accessuserlastseenidentity.go index 8bc754baff2..33cfce3f715 100644 --- a/zero_trust/accessuserlastseenidentity.go +++ b/zero_trust/accessuserlastseenidentity.go @@ -54,7 +54,7 @@ type Identity struct { Email string `json:"email"` Geo UserPolicyCheckGeo `json:"geo"` Iat float64 `json:"iat"` - IDP IdentityIDP `json:"idp"` + IdP IdentityIdP `json:"idp"` IP string `json:"ip"` IsGateway bool `json:"is_gateway"` IsWARP bool `json:"is_warp"` @@ -77,7 +77,7 @@ type identityJSON struct { Email apijson.Field Geo apijson.Field Iat apijson.Field - IDP apijson.Field + IdP apijson.Field IP apijson.Field IsGateway apijson.Field IsWARP apijson.Field @@ -179,25 +179,25 @@ func (r identityDevicePostureCheckJSON) RawJSON() string { return r.raw } -type IdentityIDP struct { +type IdentityIdP struct { ID string `json:"id"` Type string `json:"type"` - JSON identityIDPJSON `json:"-"` + JSON identityIdPJSON `json:"-"` } -// identityIDPJSON contains the JSON metadata for the struct [IdentityIDP] -type identityIDPJSON struct { +// identityIdPJSON contains the JSON metadata for the struct [IdentityIdP] +type identityIdPJSON struct { ID apijson.Field Type apijson.Field raw string ExtraFields map[string]apijson.Field } -func (r *IdentityIDP) UnmarshalJSON(data []byte) (err error) { +func (r *IdentityIdP) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r identityIDPJSON) RawJSON() string { +func (r identityIdPJSON) RawJSON() string { return r.raw } diff --git a/zero_trust/identityprovider.go b/zero_trust/identityprovider.go index 840377a9890..1a751fe3c2f 100644 --- a/zero_trust/identityprovider.go +++ b/zero_trust/identityprovider.go @@ -1225,7 +1225,7 @@ type IdentityProviderAccessSAMLConfig struct { // the Access callback. HeaderAttributes []IdentityProviderAccessSAMLConfigHeaderAttribute `json:"header_attributes"` // X509 certificate to verify the signature in the SAML authentication response - IDPPublicCERTs []string `json:"idp_public_certs"` + IdPPublicCERTs []string `json:"idp_public_certs"` // IdP Entity ID or Issuer URL IssuerURL string `json:"issuer_url"` // Sign the SAML authentication request with Access credentials. To verify the @@ -1242,7 +1242,7 @@ type identityProviderAccessSAMLConfigJSON struct { Attributes apijson.Field EmailAttributeName apijson.Field HeaderAttributes apijson.Field - IDPPublicCERTs apijson.Field + IdPPublicCERTs apijson.Field IssuerURL apijson.Field SignRequest apijson.Field SSOTargetURL apijson.Field @@ -1805,7 +1805,7 @@ type IdentityProviderAccessSAMLConfigParam struct { // the Access callback. HeaderAttributes param.Field[[]IdentityProviderAccessSAMLConfigHeaderAttributeParam] `json:"header_attributes"` // X509 certificate to verify the signature in the SAML authentication response - IDPPublicCERTs param.Field[[]string] `json:"idp_public_certs"` + IdPPublicCERTs param.Field[[]string] `json:"idp_public_certs"` // IdP Entity ID or Issuer URL IssuerURL param.Field[string] `json:"issuer_url"` // Sign the SAML authentication request with Access credentials. To verify the @@ -2834,7 +2834,7 @@ type IdentityProviderListResponseAccessSAMLConfig struct { // the Access callback. HeaderAttributes []IdentityProviderListResponseAccessSAMLConfigHeaderAttribute `json:"header_attributes"` // X509 certificate to verify the signature in the SAML authentication response - IDPPublicCERTs []string `json:"idp_public_certs"` + IdPPublicCERTs []string `json:"idp_public_certs"` // IdP Entity ID or Issuer URL IssuerURL string `json:"issuer_url"` // Sign the SAML authentication request with Access credentials. To verify the @@ -2851,7 +2851,7 @@ type identityProviderListResponseAccessSAMLConfigJSON struct { Attributes apijson.Field EmailAttributeName apijson.Field HeaderAttributes apijson.Field - IDPPublicCERTs apijson.Field + IdPPublicCERTs apijson.Field IssuerURL apijson.Field SignRequest apijson.Field SSOTargetURL apijson.Field From 10bae7e8cbbf67ec925004af272b5a453495d069 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 23 Apr 2024 02:32:00 +0000 Subject: [PATCH 47/52] feat(api): update via SDK Studio (#1834) --- api.md | 20 +- zero_trust/accessapplication.go | 408 +++++++++--------- zero_trust/accessapplication_test.go | 4 +- zero_trust/accessapplicationca.go | 4 +- .../accessapplicationuserpolicycheck.go | 4 +- zero_trust/tunnelconfiguration.go | 4 +- zero_trust/tunnelconfiguration_test.go | 8 +- 7 files changed, 226 insertions(+), 226 deletions(-) diff --git a/api.md b/api.md index 8c69999e0bc..0d716ce7bf7 100644 --- a/api.md +++ b/api.md @@ -4745,12 +4745,12 @@ Params Types: - zero_trust.AllowedOriginshParam - zero_trust.AppIDUnionParam - zero_trust.ApplicationUnionParam -- zero_trust.CorsHeadersParam +- zero_trust.CORSHeadersParam - zero_trust.CustomPageshParam -- zero_trust.SaasAppNameFormat -- zero_trust.SaasAppNameIDFormat -- zero_trust.SaasAppSourceParam -- zero_trust.SAMLSaasAppParam +- zero_trust.SaaSAppNameFormat +- zero_trust.SaaSAppNameIDFormat +- zero_trust.SaaSAppSourceParam +- zero_trust.SAMLSaaSAppParam - zero_trust.SelfHostedDomainshParam Response Types: @@ -4760,12 +4760,12 @@ Response Types: - zero_trust.AllowedMethodsh - zero_trust.AllowedOriginsh - zero_trust.Application -- zero_trust.CorsHeaders +- zero_trust.CORSHeaders - zero_trust.CustomPagesh -- zero_trust.SaasAppNameFormat -- zero_trust.SaasAppNameIDFormat -- zero_trust.SaasAppSource -- zero_trust.SAMLSaasApp +- zero_trust.SaaSAppNameFormat +- zero_trust.SaaSAppNameIDFormat +- zero_trust.SaaSAppSource +- zero_trust.SAMLSaaSApp - zero_trust.SelfHostedDomainsh - zero_trust.AccessApplicationDeleteResponse - zero_trust.AccessApplicationRevokeTokensResponse diff --git a/zero_trust/accessapplication.go b/zero_trust/accessapplication.go index 0651e342bd5..22e54143dae 100644 --- a/zero_trust/accessapplication.go +++ b/zero_trust/accessapplication.go @@ -227,7 +227,7 @@ type AppIDUnionParam interface { type Application struct { // Audience tag. - Aud string `json:"aud"` + AUD string `json:"aud"` CreatedAt time.Time `json:"created_at" format:"date-time"` // UUID ID string `json:"id"` @@ -243,7 +243,7 @@ type Application struct { // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity bool `json:"auto_redirect_to_identity"` - CorsHeaders CorsHeaders `json:"cors_headers"` + CORSHeaders CORSHeaders `json:"cors_headers"` // The custom error message shown to a user when they are denied access to the // application. CustomDenyMessage string `json:"custom_deny_message"` @@ -288,14 +288,14 @@ type Application struct { Tags interface{} `json:"tags,required"` // The application type. Type string `json:"type"` - SaasApp interface{} `json:"saas_app,required"` + SaaSApp interface{} `json:"saas_app,required"` JSON applicationJSON `json:"-"` union ApplicationUnion } // applicationJSON contains the JSON metadata for the struct [Application] type applicationJSON struct { - Aud apijson.Field + AUD apijson.Field CreatedAt apijson.Field ID apijson.Field UpdatedAt apijson.Field @@ -303,7 +303,7 @@ type applicationJSON struct { AllowedIdps apijson.Field AppLauncherVisible apijson.Field AutoRedirectToIdentity apijson.Field - CorsHeaders apijson.Field + CORSHeaders apijson.Field CustomDenyMessage apijson.Field CustomDenyURL apijson.Field CustomNonIdentityDenyURL apijson.Field @@ -322,7 +322,7 @@ type applicationJSON struct { SkipInterstitial apijson.Field Tags apijson.Field Type apijson.Field - SaasApp apijson.Field + SaaSApp apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -413,11 +413,11 @@ type ApplicationSelfHostedApplication struct { // Displays the application in the App Launcher. AppLauncherVisible bool `json:"app_launcher_visible"` // Audience tag. - Aud string `json:"aud"` + AUD string `json:"aud"` // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity bool `json:"auto_redirect_to_identity"` - CorsHeaders CorsHeaders `json:"cors_headers"` + CORSHeaders CORSHeaders `json:"cors_headers"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The custom error message shown to a user when they are denied access to the // application. @@ -475,9 +475,9 @@ type applicationSelfHostedApplicationJSON struct { AllowAuthenticateViaWARP apijson.Field AllowedIdps apijson.Field AppLauncherVisible apijson.Field - Aud apijson.Field + AUD apijson.Field AutoRedirectToIdentity apijson.Field - CorsHeaders apijson.Field + CORSHeaders apijson.Field CreatedAt apijson.Field CustomDenyMessage apijson.Field CustomDenyURL apijson.Field @@ -519,7 +519,7 @@ type ApplicationSaaSApplication struct { // Displays the application in the App Launcher. AppLauncherVisible bool `json:"app_launcher_visible"` // Audience tag. - Aud string `json:"aud"` + AUD string `json:"aud"` // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity bool `json:"auto_redirect_to_identity"` @@ -530,7 +530,7 @@ type ApplicationSaaSApplication struct { LogoURL string `json:"logo_url"` // The name of the application. Name string `json:"name"` - SaasApp ApplicationSaaSApplicationSaasApp `json:"saas_app"` + SaaSApp ApplicationSaaSApplicationSaaSApp `json:"saas_app"` // The tags you want assigned to an application. Tags are used to filter // applications in the App Launcher dashboard. Tags []string `json:"tags"` @@ -546,13 +546,13 @@ type applicationSaaSApplicationJSON struct { ID apijson.Field AllowedIdps apijson.Field AppLauncherVisible apijson.Field - Aud apijson.Field + AUD apijson.Field AutoRedirectToIdentity apijson.Field CreatedAt apijson.Field CustomPages apijson.Field LogoURL apijson.Field Name apijson.Field - SaasApp apijson.Field + SaaSApp apijson.Field Tags apijson.Field Type apijson.Field UpdatedAt apijson.Field @@ -570,10 +570,10 @@ func (r applicationSaaSApplicationJSON) RawJSON() string { func (r ApplicationSaaSApplication) implementsZeroTrustApplication() {} -type ApplicationSaaSApplicationSaasApp struct { +type ApplicationSaaSApplicationSaaSApp struct { // Optional identifier indicating the authentication protocol used for the saas // app. Required for OIDC. Default if unset is "saml" - AuthType ApplicationSaaSApplicationSaasAppAuthType `json:"auth_type"` + AuthType ApplicationSaaSApplicationSaaSAppAuthType `json:"auth_type"` // The service provider's endpoint that is responsible for receiving and parsing a // SAML assertion. ConsumerServiceURL string `json:"consumer_service_url"` @@ -585,7 +585,7 @@ type ApplicationSaaSApplicationSaasApp struct { // The unique identifier for your SaaS application. IdPEntityID string `json:"idp_entity_id"` // The format of the name identifier sent to the SaaS application. - NameIDFormat SaasAppNameIDFormat `json:"name_id_format"` + NameIDFormat SaaSAppNameIDFormat `json:"name_id_format"` // A [JSONata](https://jsonata.org/) expression that transforms an application's // user identities into a NameID value for its SAML assertion. This expression // should evaluate to a singular string. The output of this expression can override @@ -600,7 +600,7 @@ type ApplicationSaaSApplicationSaasApp struct { // authenticate. The output of this expression must be a JSON object. SAMLAttributeTransformJsonata string `json:"saml_attribute_transform_jsonata"` // A globally unique name for an identity or service provider. - SpEntityID string `json:"sp_entity_id"` + SPEntityID string `json:"sp_entity_id"` // The endpoint where your SaaS application will send login requests. SSOEndpoint string `json:"sso_endpoint"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` @@ -616,13 +616,13 @@ type ApplicationSaaSApplicationSaasApp struct { GroupFilterRegex string `json:"group_filter_regex"` RedirectURIs interface{} `json:"redirect_uris,required"` Scopes interface{} `json:"scopes,required"` - JSON applicationSaaSApplicationSaasAppJSON `json:"-"` - union ApplicationSaaSApplicationSaasAppUnion + JSON applicationSaaSApplicationSaaSAppJSON `json:"-"` + union ApplicationSaaSApplicationSaaSAppUnion } -// applicationSaaSApplicationSaasAppJSON contains the JSON metadata for the struct -// [ApplicationSaaSApplicationSaasApp] -type applicationSaaSApplicationSaasAppJSON struct { +// applicationSaaSApplicationSaaSAppJSON contains the JSON metadata for the struct +// [ApplicationSaaSApplicationSaaSApp] +type applicationSaaSApplicationSaaSAppJSON struct { AuthType apijson.Field ConsumerServiceURL apijson.Field CreatedAt apijson.Field @@ -633,7 +633,7 @@ type applicationSaaSApplicationSaasAppJSON struct { NameIDTransformJsonata apijson.Field PublicKey apijson.Field SAMLAttributeTransformJsonata apijson.Field - SpEntityID apijson.Field + SPEntityID apijson.Field SSOEndpoint apijson.Field UpdatedAt apijson.Field AppLauncherURL apijson.Field @@ -648,11 +648,11 @@ type applicationSaaSApplicationSaasAppJSON struct { ExtraFields map[string]apijson.Field } -func (r applicationSaaSApplicationSaasAppJSON) RawJSON() string { +func (r applicationSaaSApplicationSaaSAppJSON) RawJSON() string { return r.raw } -func (r *ApplicationSaaSApplicationSaasApp) UnmarshalJSON(data []byte) (err error) { +func (r *ApplicationSaaSApplicationSaaSApp) UnmarshalJSON(data []byte) (err error) { err = apijson.UnmarshalRoot(data, &r.union) if err != nil { return err @@ -660,45 +660,45 @@ func (r *ApplicationSaaSApplicationSaasApp) UnmarshalJSON(data []byte) (err erro return apijson.Port(r.union, &r) } -func (r ApplicationSaaSApplicationSaasApp) AsUnion() ApplicationSaaSApplicationSaasAppUnion { +func (r ApplicationSaaSApplicationSaaSApp) AsUnion() ApplicationSaaSApplicationSaaSAppUnion { return r.union } -// Union satisfied by [zero_trust.SAMLSaasApp] or -// [zero_trust.ApplicationSaaSApplicationSaasAppAccessOIDCSaasApp]. -type ApplicationSaaSApplicationSaasAppUnion interface { - implementsZeroTrustApplicationSaaSApplicationSaasApp() +// Union satisfied by [zero_trust.SAMLSaaSApp] or +// [zero_trust.ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSApp]. +type ApplicationSaaSApplicationSaaSAppUnion interface { + implementsZeroTrustApplicationSaaSApplicationSaaSApp() } func init() { apijson.RegisterUnion( - reflect.TypeOf((*ApplicationSaaSApplicationSaasAppUnion)(nil)).Elem(), + reflect.TypeOf((*ApplicationSaaSApplicationSaaSAppUnion)(nil)).Elem(), "", apijson.UnionVariant{ TypeFilter: gjson.JSON, - Type: reflect.TypeOf(SAMLSaasApp{}), + Type: reflect.TypeOf(SAMLSaaSApp{}), }, apijson.UnionVariant{ TypeFilter: gjson.JSON, - Type: reflect.TypeOf(ApplicationSaaSApplicationSaasAppAccessOIDCSaasApp{}), + Type: reflect.TypeOf(ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSApp{}), }, ) } -type ApplicationSaaSApplicationSaasAppAccessOIDCSaasApp struct { +type ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSApp struct { // The URL where this applications tile redirects users AppLauncherURL string `json:"app_launcher_url"` // Identifier of the authentication protocol used for the saas app. Required for // OIDC. - AuthType ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppAuthType `json:"auth_type"` + AuthType ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppAuthType `json:"auth_type"` // The application client id ClientID string `json:"client_id"` // The application client secret, only returned on POST request. ClientSecret string `json:"client_secret"` CreatedAt time.Time `json:"created_at" format:"date-time"` - CustomClaims ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaims `json:"custom_claims"` + CustomClaims ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaims `json:"custom_claims"` // The OIDC flows supported by this application - GrantTypes []ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppGrantType `json:"grant_types"` + GrantTypes []ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppGrantType `json:"grant_types"` // A regex to filter Cloudflare groups returned in ID token and userinfo endpoint GroupFilterRegex string `json:"group_filter_regex"` // The Access public certificate that will be used to verify your identity. @@ -707,14 +707,14 @@ type ApplicationSaaSApplicationSaasAppAccessOIDCSaasApp struct { // tokens RedirectURIs []string `json:"redirect_uris"` // Define the user information shared with access - Scopes []ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScope `json:"scopes"` + Scopes []ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppScope `json:"scopes"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` - JSON applicationSaaSApplicationSaasAppAccessOIDCSaasAppJSON `json:"-"` + JSON applicationSaaSApplicationSaaSAppAccessOIDCSaaSAppJSON `json:"-"` } -// applicationSaaSApplicationSaasAppAccessOIDCSaasAppJSON contains the JSON -// metadata for the struct [ApplicationSaaSApplicationSaasAppAccessOIDCSaasApp] -type applicationSaaSApplicationSaasAppAccessOIDCSaasAppJSON struct { +// applicationSaaSApplicationSaaSAppAccessOIDCSaaSAppJSON contains the JSON +// metadata for the struct [ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSApp] +type applicationSaaSApplicationSaaSAppAccessOIDCSaaSAppJSON struct { AppLauncherURL apijson.Field AuthType apijson.Field ClientID apijson.Field @@ -731,35 +731,35 @@ type applicationSaaSApplicationSaasAppAccessOIDCSaasAppJSON struct { ExtraFields map[string]apijson.Field } -func (r *ApplicationSaaSApplicationSaasAppAccessOIDCSaasApp) UnmarshalJSON(data []byte) (err error) { +func (r *ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSApp) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r applicationSaaSApplicationSaasAppAccessOIDCSaasAppJSON) RawJSON() string { +func (r applicationSaaSApplicationSaaSAppAccessOIDCSaaSAppJSON) RawJSON() string { return r.raw } -func (r ApplicationSaaSApplicationSaasAppAccessOIDCSaasApp) implementsZeroTrustApplicationSaaSApplicationSaasApp() { +func (r ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSApp) implementsZeroTrustApplicationSaaSApplicationSaaSApp() { } // Identifier of the authentication protocol used for the saas app. Required for // OIDC. -type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppAuthType string +type ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppAuthType string const ( - ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppAuthTypeSAML ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppAuthType = "saml" - ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppAuthTypeOIDC ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppAuthType = "oidc" + ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppAuthTypeSAML ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppAuthType = "saml" + ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppAuthTypeOIDC ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppAuthType = "oidc" ) -func (r ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppAuthType) IsKnown() bool { +func (r ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppAuthType) IsKnown() bool { switch r { - case ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppAuthTypeSAML, ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppAuthTypeOIDC: + case ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppAuthTypeSAML, ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppAuthTypeOIDC: return true } return false } -type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaims struct { +type ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaims struct { // The name of the claim. Name string `json:"name"` // A mapping from IdP ID to claim name. @@ -767,15 +767,15 @@ type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaims struct { // If the claim is required when building an OIDC token. Required bool `json:"required"` // The scope of the claim. - Scope ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScope `json:"scope"` - Source ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSource `json:"source"` - JSON applicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsJSON `json:"-"` + Scope ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsScope `json:"scope"` + Source ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsSource `json:"source"` + JSON applicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsJSON `json:"-"` } -// applicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsJSON contains the +// applicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsJSON contains the // JSON metadata for the struct -// [ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaims] -type applicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsJSON struct { +// [ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaims] +type applicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsJSON struct { Name apijson.Field NameByIdP apijson.Field Required apijson.Field @@ -785,82 +785,82 @@ type applicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsJSON struct { ExtraFields map[string]apijson.Field } -func (r *ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaims) UnmarshalJSON(data []byte) (err error) { +func (r *ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaims) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r applicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsJSON) RawJSON() string { +func (r applicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsJSON) RawJSON() string { return r.raw } // The scope of the claim. -type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScope string +type ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsScope string const ( - ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScopeGroups ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScope = "groups" - ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScopeProfile ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScope = "profile" - ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScopeEmail ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScope = "email" - ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScopeOpenid ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScope = "openid" + ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsScopeGroups ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsScope = "groups" + ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsScopeProfile ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsScope = "profile" + ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsScopeEmail ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsScope = "email" + ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsScopeOpenid ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsScope = "openid" ) -func (r ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScope) IsKnown() bool { +func (r ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsScope) IsKnown() bool { switch r { - case ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScopeGroups, ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScopeProfile, ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScopeEmail, ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScopeOpenid: + case ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsScopeGroups, ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsScopeProfile, ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsScopeEmail, ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsScopeOpenid: return true } return false } -type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSource struct { +type ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsSource struct { // The name of the IdP claim. Name string `json:"name"` - JSON applicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSourceJSON `json:"-"` + JSON applicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsSourceJSON `json:"-"` } -// applicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSourceJSON +// applicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsSourceJSON // contains the JSON metadata for the struct -// [ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSource] -type applicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSourceJSON struct { +// [ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsSource] +type applicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsSourceJSON struct { Name apijson.Field raw string ExtraFields map[string]apijson.Field } -func (r *ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSource) UnmarshalJSON(data []byte) (err error) { +func (r *ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsSource) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r applicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSourceJSON) RawJSON() string { +func (r applicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsSourceJSON) RawJSON() string { return r.raw } -type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppGrantType string +type ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppGrantType string const ( - ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppGrantTypeAuthorizationCode ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppGrantType = "authorization_code" - ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppGrantTypeAuthorizationCodeWithPkce ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppGrantType = "authorization_code_with_pkce" + ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppGrantTypeAuthorizationCode ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppGrantType = "authorization_code" + ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppGrantTypeAuthorizationCodeWithPkce ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppGrantType = "authorization_code_with_pkce" ) -func (r ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppGrantType) IsKnown() bool { +func (r ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppGrantType) IsKnown() bool { switch r { - case ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppGrantTypeAuthorizationCode, ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppGrantTypeAuthorizationCodeWithPkce: + case ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppGrantTypeAuthorizationCode, ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppGrantTypeAuthorizationCodeWithPkce: return true } return false } -type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScope string +type ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppScope string const ( - ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScopeOpenid ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScope = "openid" - ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScopeGroups ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScope = "groups" - ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScopeEmail ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScope = "email" - ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScopeProfile ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScope = "profile" + ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppScopeOpenid ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppScope = "openid" + ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppScopeGroups ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppScope = "groups" + ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppScopeEmail ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppScope = "email" + ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppScopeProfile ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppScope = "profile" ) -func (r ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScope) IsKnown() bool { +func (r ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppScope) IsKnown() bool { switch r { - case ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScopeOpenid, ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScopeGroups, ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScopeEmail, ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScopeProfile: + case ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppScopeOpenid, ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppScopeGroups, ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppScopeEmail, ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppScopeProfile: return true } return false @@ -868,16 +868,16 @@ func (r ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScope) IsKnown() bool // Optional identifier indicating the authentication protocol used for the saas // app. Required for OIDC. Default if unset is "saml" -type ApplicationSaaSApplicationSaasAppAuthType string +type ApplicationSaaSApplicationSaaSAppAuthType string const ( - ApplicationSaaSApplicationSaasAppAuthTypeSAML ApplicationSaaSApplicationSaasAppAuthType = "saml" - ApplicationSaaSApplicationSaasAppAuthTypeOIDC ApplicationSaaSApplicationSaasAppAuthType = "oidc" + ApplicationSaaSApplicationSaaSAppAuthTypeSAML ApplicationSaaSApplicationSaaSAppAuthType = "saml" + ApplicationSaaSApplicationSaaSAppAuthTypeOIDC ApplicationSaaSApplicationSaaSAppAuthType = "oidc" ) -func (r ApplicationSaaSApplicationSaasAppAuthType) IsKnown() bool { +func (r ApplicationSaaSApplicationSaaSAppAuthType) IsKnown() bool { switch r { - case ApplicationSaaSApplicationSaasAppAuthTypeSAML, ApplicationSaaSApplicationSaasAppAuthTypeOIDC: + case ApplicationSaaSApplicationSaaSAppAuthTypeSAML, ApplicationSaaSApplicationSaaSAppAuthTypeOIDC: return true } return false @@ -902,11 +902,11 @@ type ApplicationBrowserSSHApplication struct { // Displays the application in the App Launcher. AppLauncherVisible bool `json:"app_launcher_visible"` // Audience tag. - Aud string `json:"aud"` + AUD string `json:"aud"` // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity bool `json:"auto_redirect_to_identity"` - CorsHeaders CorsHeaders `json:"cors_headers"` + CORSHeaders CORSHeaders `json:"cors_headers"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The custom error message shown to a user when they are denied access to the // application. @@ -964,9 +964,9 @@ type applicationBrowserSSHApplicationJSON struct { AllowAuthenticateViaWARP apijson.Field AllowedIdps apijson.Field AppLauncherVisible apijson.Field - Aud apijson.Field + AUD apijson.Field AutoRedirectToIdentity apijson.Field - CorsHeaders apijson.Field + CORSHeaders apijson.Field CreatedAt apijson.Field CustomDenyMessage apijson.Field CustomDenyURL apijson.Field @@ -1018,11 +1018,11 @@ type ApplicationBrowserVncApplication struct { // Displays the application in the App Launcher. AppLauncherVisible bool `json:"app_launcher_visible"` // Audience tag. - Aud string `json:"aud"` + AUD string `json:"aud"` // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity bool `json:"auto_redirect_to_identity"` - CorsHeaders CorsHeaders `json:"cors_headers"` + CORSHeaders CORSHeaders `json:"cors_headers"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The custom error message shown to a user when they are denied access to the // application. @@ -1080,9 +1080,9 @@ type applicationBrowserVncApplicationJSON struct { AllowAuthenticateViaWARP apijson.Field AllowedIdps apijson.Field AppLauncherVisible apijson.Field - Aud apijson.Field + AUD apijson.Field AutoRedirectToIdentity apijson.Field - CorsHeaders apijson.Field + CORSHeaders apijson.Field CreatedAt apijson.Field CustomDenyMessage apijson.Field CustomDenyURL apijson.Field @@ -1124,7 +1124,7 @@ type ApplicationAppLauncherApplication struct { // application. Defaults to all IdPs configured in your account. AllowedIdps []AllowedIdpsh `json:"allowed_idps"` // Audience tag. - Aud string `json:"aud"` + AUD string `json:"aud"` // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity bool `json:"auto_redirect_to_identity"` @@ -1148,7 +1148,7 @@ type applicationAppLauncherApplicationJSON struct { Type apijson.Field ID apijson.Field AllowedIdps apijson.Field - Aud apijson.Field + AUD apijson.Field AutoRedirectToIdentity apijson.Field CreatedAt apijson.Field Domain apijson.Field @@ -1174,7 +1174,7 @@ type ApplicationAppLauncherApplicationType string const ( ApplicationAppLauncherApplicationTypeSelfHosted ApplicationAppLauncherApplicationType = "self_hosted" - ApplicationAppLauncherApplicationTypeSaas ApplicationAppLauncherApplicationType = "saas" + ApplicationAppLauncherApplicationTypeSaaS ApplicationAppLauncherApplicationType = "saas" ApplicationAppLauncherApplicationTypeSSH ApplicationAppLauncherApplicationType = "ssh" ApplicationAppLauncherApplicationTypeVnc ApplicationAppLauncherApplicationType = "vnc" ApplicationAppLauncherApplicationTypeAppLauncher ApplicationAppLauncherApplicationType = "app_launcher" @@ -1186,7 +1186,7 @@ const ( func (r ApplicationAppLauncherApplicationType) IsKnown() bool { switch r { - case ApplicationAppLauncherApplicationTypeSelfHosted, ApplicationAppLauncherApplicationTypeSaas, ApplicationAppLauncherApplicationTypeSSH, ApplicationAppLauncherApplicationTypeVnc, ApplicationAppLauncherApplicationTypeAppLauncher, ApplicationAppLauncherApplicationTypeWARP, ApplicationAppLauncherApplicationTypeBiso, ApplicationAppLauncherApplicationTypeBookmark, ApplicationAppLauncherApplicationTypeDashSSO: + case ApplicationAppLauncherApplicationTypeSelfHosted, ApplicationAppLauncherApplicationTypeSaaS, ApplicationAppLauncherApplicationTypeSSH, ApplicationAppLauncherApplicationTypeVnc, ApplicationAppLauncherApplicationTypeAppLauncher, ApplicationAppLauncherApplicationTypeWARP, ApplicationAppLauncherApplicationTypeBiso, ApplicationAppLauncherApplicationTypeBookmark, ApplicationAppLauncherApplicationTypeDashSSO: return true } return false @@ -1201,7 +1201,7 @@ type ApplicationDeviceEnrollmentPermissionsApplication struct { // application. Defaults to all IdPs configured in your account. AllowedIdps []AllowedIdpsh `json:"allowed_idps"` // Audience tag. - Aud string `json:"aud"` + AUD string `json:"aud"` // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity bool `json:"auto_redirect_to_identity"` @@ -1225,7 +1225,7 @@ type applicationDeviceEnrollmentPermissionsApplicationJSON struct { Type apijson.Field ID apijson.Field AllowedIdps apijson.Field - Aud apijson.Field + AUD apijson.Field AutoRedirectToIdentity apijson.Field CreatedAt apijson.Field Domain apijson.Field @@ -1251,7 +1251,7 @@ type ApplicationDeviceEnrollmentPermissionsApplicationType string const ( ApplicationDeviceEnrollmentPermissionsApplicationTypeSelfHosted ApplicationDeviceEnrollmentPermissionsApplicationType = "self_hosted" - ApplicationDeviceEnrollmentPermissionsApplicationTypeSaas ApplicationDeviceEnrollmentPermissionsApplicationType = "saas" + ApplicationDeviceEnrollmentPermissionsApplicationTypeSaaS ApplicationDeviceEnrollmentPermissionsApplicationType = "saas" ApplicationDeviceEnrollmentPermissionsApplicationTypeSSH ApplicationDeviceEnrollmentPermissionsApplicationType = "ssh" ApplicationDeviceEnrollmentPermissionsApplicationTypeVnc ApplicationDeviceEnrollmentPermissionsApplicationType = "vnc" ApplicationDeviceEnrollmentPermissionsApplicationTypeAppLauncher ApplicationDeviceEnrollmentPermissionsApplicationType = "app_launcher" @@ -1263,7 +1263,7 @@ const ( func (r ApplicationDeviceEnrollmentPermissionsApplicationType) IsKnown() bool { switch r { - case ApplicationDeviceEnrollmentPermissionsApplicationTypeSelfHosted, ApplicationDeviceEnrollmentPermissionsApplicationTypeSaas, ApplicationDeviceEnrollmentPermissionsApplicationTypeSSH, ApplicationDeviceEnrollmentPermissionsApplicationTypeVnc, ApplicationDeviceEnrollmentPermissionsApplicationTypeAppLauncher, ApplicationDeviceEnrollmentPermissionsApplicationTypeWARP, ApplicationDeviceEnrollmentPermissionsApplicationTypeBiso, ApplicationDeviceEnrollmentPermissionsApplicationTypeBookmark, ApplicationDeviceEnrollmentPermissionsApplicationTypeDashSSO: + case ApplicationDeviceEnrollmentPermissionsApplicationTypeSelfHosted, ApplicationDeviceEnrollmentPermissionsApplicationTypeSaaS, ApplicationDeviceEnrollmentPermissionsApplicationTypeSSH, ApplicationDeviceEnrollmentPermissionsApplicationTypeVnc, ApplicationDeviceEnrollmentPermissionsApplicationTypeAppLauncher, ApplicationDeviceEnrollmentPermissionsApplicationTypeWARP, ApplicationDeviceEnrollmentPermissionsApplicationTypeBiso, ApplicationDeviceEnrollmentPermissionsApplicationTypeBookmark, ApplicationDeviceEnrollmentPermissionsApplicationTypeDashSSO: return true } return false @@ -1278,7 +1278,7 @@ type ApplicationBrowserIsolationPermissionsApplication struct { // application. Defaults to all IdPs configured in your account. AllowedIdps []AllowedIdpsh `json:"allowed_idps"` // Audience tag. - Aud string `json:"aud"` + AUD string `json:"aud"` // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity bool `json:"auto_redirect_to_identity"` @@ -1302,7 +1302,7 @@ type applicationBrowserIsolationPermissionsApplicationJSON struct { Type apijson.Field ID apijson.Field AllowedIdps apijson.Field - Aud apijson.Field + AUD apijson.Field AutoRedirectToIdentity apijson.Field CreatedAt apijson.Field Domain apijson.Field @@ -1328,7 +1328,7 @@ type ApplicationBrowserIsolationPermissionsApplicationType string const ( ApplicationBrowserIsolationPermissionsApplicationTypeSelfHosted ApplicationBrowserIsolationPermissionsApplicationType = "self_hosted" - ApplicationBrowserIsolationPermissionsApplicationTypeSaas ApplicationBrowserIsolationPermissionsApplicationType = "saas" + ApplicationBrowserIsolationPermissionsApplicationTypeSaaS ApplicationBrowserIsolationPermissionsApplicationType = "saas" ApplicationBrowserIsolationPermissionsApplicationTypeSSH ApplicationBrowserIsolationPermissionsApplicationType = "ssh" ApplicationBrowserIsolationPermissionsApplicationTypeVnc ApplicationBrowserIsolationPermissionsApplicationType = "vnc" ApplicationBrowserIsolationPermissionsApplicationTypeAppLauncher ApplicationBrowserIsolationPermissionsApplicationType = "app_launcher" @@ -1340,7 +1340,7 @@ const ( func (r ApplicationBrowserIsolationPermissionsApplicationType) IsKnown() bool { switch r { - case ApplicationBrowserIsolationPermissionsApplicationTypeSelfHosted, ApplicationBrowserIsolationPermissionsApplicationTypeSaas, ApplicationBrowserIsolationPermissionsApplicationTypeSSH, ApplicationBrowserIsolationPermissionsApplicationTypeVnc, ApplicationBrowserIsolationPermissionsApplicationTypeAppLauncher, ApplicationBrowserIsolationPermissionsApplicationTypeWARP, ApplicationBrowserIsolationPermissionsApplicationTypeBiso, ApplicationBrowserIsolationPermissionsApplicationTypeBookmark, ApplicationBrowserIsolationPermissionsApplicationTypeDashSSO: + case ApplicationBrowserIsolationPermissionsApplicationTypeSelfHosted, ApplicationBrowserIsolationPermissionsApplicationTypeSaaS, ApplicationBrowserIsolationPermissionsApplicationTypeSSH, ApplicationBrowserIsolationPermissionsApplicationTypeVnc, ApplicationBrowserIsolationPermissionsApplicationTypeAppLauncher, ApplicationBrowserIsolationPermissionsApplicationTypeWARP, ApplicationBrowserIsolationPermissionsApplicationTypeBiso, ApplicationBrowserIsolationPermissionsApplicationTypeBookmark, ApplicationBrowserIsolationPermissionsApplicationTypeDashSSO: return true } return false @@ -1352,7 +1352,7 @@ type ApplicationBookmarkApplication struct { // Displays the application in the App Launcher. AppLauncherVisible bool `json:"app_launcher_visible"` // Audience tag. - Aud string `json:"aud"` + AUD string `json:"aud"` CreatedAt time.Time `json:"created_at" format:"date-time"` // The URL or domain of the bookmark. Domain string `json:"domain"` @@ -1374,7 +1374,7 @@ type ApplicationBookmarkApplication struct { type applicationBookmarkApplicationJSON struct { ID apijson.Field AppLauncherVisible apijson.Field - Aud apijson.Field + AUD apijson.Field CreatedAt apijson.Field Domain apijson.Field LogoURL apijson.Field @@ -1408,7 +1408,7 @@ type ApplicationParam struct { // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity param.Field[bool] `json:"auto_redirect_to_identity"` - CorsHeaders param.Field[CorsHeadersParam] `json:"cors_headers"` + CORSHeaders param.Field[CORSHeadersParam] `json:"cors_headers"` // The custom error message shown to a user when they are denied access to the // application. CustomDenyMessage param.Field[string] `json:"custom_deny_message"` @@ -1453,7 +1453,7 @@ type ApplicationParam struct { Tags param.Field[interface{}] `json:"tags,required"` // The application type. Type param.Field[string] `json:"type"` - SaasApp param.Field[interface{}] `json:"saas_app,required"` + SaaSApp param.Field[interface{}] `json:"saas_app,required"` } func (r ApplicationParam) MarshalJSON() (data []byte, err error) { @@ -1493,7 +1493,7 @@ type ApplicationSelfHostedApplicationParam struct { // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity param.Field[bool] `json:"auto_redirect_to_identity"` - CorsHeaders param.Field[CorsHeadersParam] `json:"cors_headers"` + CORSHeaders param.Field[CORSHeadersParam] `json:"cors_headers"` // The custom error message shown to a user when they are denied access to the // application. CustomDenyMessage param.Field[string] `json:"custom_deny_message"` @@ -1560,7 +1560,7 @@ type ApplicationSaaSApplicationParam struct { LogoURL param.Field[string] `json:"logo_url"` // The name of the application. Name param.Field[string] `json:"name"` - SaasApp param.Field[ApplicationSaaSApplicationSaasAppUnionParam] `json:"saas_app"` + SaaSApp param.Field[ApplicationSaaSApplicationSaaSAppUnionParam] `json:"saas_app"` // The tags you want assigned to an application. Tags are used to filter // applications in the App Launcher dashboard. Tags param.Field[[]string] `json:"tags"` @@ -1574,10 +1574,10 @@ func (r ApplicationSaaSApplicationParam) MarshalJSON() (data []byte, err error) func (r ApplicationSaaSApplicationParam) implementsZeroTrustApplicationUnionParam() {} -type ApplicationSaaSApplicationSaasAppParam struct { +type ApplicationSaaSApplicationSaaSAppParam struct { // Optional identifier indicating the authentication protocol used for the saas // app. Required for OIDC. Default if unset is "saml" - AuthType param.Field[ApplicationSaaSApplicationSaasAppAuthType] `json:"auth_type"` + AuthType param.Field[ApplicationSaaSApplicationSaaSAppAuthType] `json:"auth_type"` // The service provider's endpoint that is responsible for receiving and parsing a // SAML assertion. ConsumerServiceURL param.Field[string] `json:"consumer_service_url"` @@ -1588,7 +1588,7 @@ type ApplicationSaaSApplicationSaasAppParam struct { // The unique identifier for your SaaS application. IdPEntityID param.Field[string] `json:"idp_entity_id"` // The format of the name identifier sent to the SaaS application. - NameIDFormat param.Field[SaasAppNameIDFormat] `json:"name_id_format"` + NameIDFormat param.Field[SaaSAppNameIDFormat] `json:"name_id_format"` // A [JSONata](https://jsonata.org/) expression that transforms an application's // user identities into a NameID value for its SAML assertion. This expression // should evaluate to a singular string. The output of this expression can override @@ -1603,7 +1603,7 @@ type ApplicationSaaSApplicationSaasAppParam struct { // authenticate. The output of this expression must be a JSON object. SAMLAttributeTransformJsonata param.Field[string] `json:"saml_attribute_transform_jsonata"` // A globally unique name for an identity or service provider. - SpEntityID param.Field[string] `json:"sp_entity_id"` + SPEntityID param.Field[string] `json:"sp_entity_id"` // The endpoint where your SaaS application will send login requests. SSOEndpoint param.Field[string] `json:"sso_endpoint"` // The URL where this applications tile redirects users @@ -1620,33 +1620,33 @@ type ApplicationSaaSApplicationSaasAppParam struct { Scopes param.Field[interface{}] `json:"scopes,required"` } -func (r ApplicationSaaSApplicationSaasAppParam) MarshalJSON() (data []byte, err error) { +func (r ApplicationSaaSApplicationSaaSAppParam) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -func (r ApplicationSaaSApplicationSaasAppParam) implementsZeroTrustApplicationSaaSApplicationSaasAppUnionParam() { +func (r ApplicationSaaSApplicationSaaSAppParam) implementsZeroTrustApplicationSaaSApplicationSaaSAppUnionParam() { } -// Satisfied by [zero_trust.SAMLSaasAppParam], -// [zero_trust.ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppParam], -// [ApplicationSaaSApplicationSaasAppParam]. -type ApplicationSaaSApplicationSaasAppUnionParam interface { - implementsZeroTrustApplicationSaaSApplicationSaasAppUnionParam() +// Satisfied by [zero_trust.SAMLSaaSAppParam], +// [zero_trust.ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppParam], +// [ApplicationSaaSApplicationSaaSAppParam]. +type ApplicationSaaSApplicationSaaSAppUnionParam interface { + implementsZeroTrustApplicationSaaSApplicationSaaSAppUnionParam() } -type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppParam struct { +type ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppParam struct { // The URL where this applications tile redirects users AppLauncherURL param.Field[string] `json:"app_launcher_url"` // Identifier of the authentication protocol used for the saas app. Required for // OIDC. - AuthType param.Field[ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppAuthType] `json:"auth_type"` + AuthType param.Field[ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppAuthType] `json:"auth_type"` // The application client id ClientID param.Field[string] `json:"client_id"` // The application client secret, only returned on POST request. ClientSecret param.Field[string] `json:"client_secret"` - CustomClaims param.Field[ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsParam] `json:"custom_claims"` + CustomClaims param.Field[ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsParam] `json:"custom_claims"` // The OIDC flows supported by this application - GrantTypes param.Field[[]ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppGrantType] `json:"grant_types"` + GrantTypes param.Field[[]ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppGrantType] `json:"grant_types"` // A regex to filter Cloudflare groups returned in ID token and userinfo endpoint GroupFilterRegex param.Field[string] `json:"group_filter_regex"` // The Access public certificate that will be used to verify your identity. @@ -1655,17 +1655,17 @@ type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppParam struct { // tokens RedirectURIs param.Field[[]string] `json:"redirect_uris"` // Define the user information shared with access - Scopes param.Field[[]ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppScope] `json:"scopes"` + Scopes param.Field[[]ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppScope] `json:"scopes"` } -func (r ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppParam) MarshalJSON() (data []byte, err error) { +func (r ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppParam) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -func (r ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppParam) implementsZeroTrustApplicationSaaSApplicationSaasAppUnionParam() { +func (r ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppParam) implementsZeroTrustApplicationSaaSApplicationSaaSAppUnionParam() { } -type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsParam struct { +type ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsParam struct { // The name of the claim. Name param.Field[string] `json:"name"` // A mapping from IdP ID to claim name. @@ -1673,20 +1673,20 @@ type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsParam struct // If the claim is required when building an OIDC token. Required param.Field[bool] `json:"required"` // The scope of the claim. - Scope param.Field[ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsScope] `json:"scope"` - Source param.Field[ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSourceParam] `json:"source"` + Scope param.Field[ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsScope] `json:"scope"` + Source param.Field[ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsSourceParam] `json:"source"` } -func (r ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsParam) MarshalJSON() (data []byte, err error) { +func (r ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsParam) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -type ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSourceParam struct { +type ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsSourceParam struct { // The name of the IdP claim. Name param.Field[string] `json:"name"` } -func (r ApplicationSaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSourceParam) MarshalJSON() (data []byte, err error) { +func (r ApplicationSaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsSourceParam) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } @@ -1709,7 +1709,7 @@ type ApplicationBrowserSSHApplicationParam struct { // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity param.Field[bool] `json:"auto_redirect_to_identity"` - CorsHeaders param.Field[CorsHeadersParam] `json:"cors_headers"` + CORSHeaders param.Field[CORSHeadersParam] `json:"cors_headers"` // The custom error message shown to a user when they are denied access to the // application. CustomDenyMessage param.Field[string] `json:"custom_deny_message"` @@ -1780,7 +1780,7 @@ type ApplicationBrowserVncApplicationParam struct { // When set to `true`, users skip the identity provider selection step during // login. You must specify only one identity provider in allowed_idps. AutoRedirectToIdentity param.Field[bool] `json:"auto_redirect_to_identity"` - CorsHeaders param.Field[CorsHeadersParam] `json:"cors_headers"` + CORSHeaders param.Field[CORSHeadersParam] `json:"cors_headers"` // The custom error message shown to a user when they are denied access to the // application. CustomDenyMessage param.Field[string] `json:"custom_deny_message"` @@ -1919,7 +1919,7 @@ func (r ApplicationBookmarkApplicationParam) MarshalJSON() (data []byte, err err func (r ApplicationBookmarkApplicationParam) implementsZeroTrustApplicationUnionParam() {} -type CorsHeaders struct { +type CORSHeaders struct { // Allows all HTTP request headers. AllowAllHeaders bool `json:"allow_all_headers"` // Allows all HTTP request methods. @@ -1940,7 +1940,7 @@ type CorsHeaders struct { JSON corsHeadersJSON `json:"-"` } -// corsHeadersJSON contains the JSON metadata for the struct [CorsHeaders] +// corsHeadersJSON contains the JSON metadata for the struct [CORSHeaders] type corsHeadersJSON struct { AllowAllHeaders apijson.Field AllowAllMethods apijson.Field @@ -1954,7 +1954,7 @@ type corsHeadersJSON struct { ExtraFields map[string]apijson.Field } -func (r *CorsHeaders) UnmarshalJSON(data []byte) (err error) { +func (r *CORSHeaders) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } @@ -1962,7 +1962,7 @@ func (r corsHeadersJSON) RawJSON() string { return r.raw } -type CorsHeadersParam struct { +type CORSHeadersParam struct { // Allows all HTTP request headers. AllowAllHeaders param.Field[bool] `json:"allow_all_headers"` // Allows all HTTP request methods. @@ -1982,7 +1982,7 @@ type CorsHeadersParam struct { MaxAge param.Field[float64] `json:"max_age"` } -func (r CorsHeadersParam) MarshalJSON() (data []byte, err error) { +func (r CORSHeadersParam) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } @@ -1991,89 +1991,89 @@ type CustomPagesh = string type CustomPageshParam = string // A globally unique name for an identity or service provider. -type SaasAppNameFormat string +type SaaSAppNameFormat string const ( - SaasAppNameFormatUrnOasisNamesTcSAML2_0AttrnameFormatUnspecified SaasAppNameFormat = "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified" - SaasAppNameFormatUrnOasisNamesTcSAML2_0AttrnameFormatBasic SaasAppNameFormat = "urn:oasis:names:tc:SAML:2.0:attrname-format:basic" - SaasAppNameFormatUrnOasisNamesTcSAML2_0AttrnameFormatURI SaasAppNameFormat = "urn:oasis:names:tc:SAML:2.0:attrname-format:uri" + SaaSAppNameFormatUrnOasisNamesTcSAML2_0AttrnameFormatUnspecified SaaSAppNameFormat = "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified" + SaaSAppNameFormatUrnOasisNamesTcSAML2_0AttrnameFormatBasic SaaSAppNameFormat = "urn:oasis:names:tc:SAML:2.0:attrname-format:basic" + SaaSAppNameFormatUrnOasisNamesTcSAML2_0AttrnameFormatURI SaaSAppNameFormat = "urn:oasis:names:tc:SAML:2.0:attrname-format:uri" ) -func (r SaasAppNameFormat) IsKnown() bool { +func (r SaaSAppNameFormat) IsKnown() bool { switch r { - case SaasAppNameFormatUrnOasisNamesTcSAML2_0AttrnameFormatUnspecified, SaasAppNameFormatUrnOasisNamesTcSAML2_0AttrnameFormatBasic, SaasAppNameFormatUrnOasisNamesTcSAML2_0AttrnameFormatURI: + case SaaSAppNameFormatUrnOasisNamesTcSAML2_0AttrnameFormatUnspecified, SaaSAppNameFormatUrnOasisNamesTcSAML2_0AttrnameFormatBasic, SaaSAppNameFormatUrnOasisNamesTcSAML2_0AttrnameFormatURI: return true } return false } // The format of the name identifier sent to the SaaS application. -type SaasAppNameIDFormat string +type SaaSAppNameIDFormat string const ( - SaasAppNameIDFormatID SaasAppNameIDFormat = "id" - SaasAppNameIDFormatEmail SaasAppNameIDFormat = "email" + SaaSAppNameIDFormatID SaaSAppNameIDFormat = "id" + SaaSAppNameIDFormatEmail SaaSAppNameIDFormat = "email" ) -func (r SaasAppNameIDFormat) IsKnown() bool { +func (r SaaSAppNameIDFormat) IsKnown() bool { switch r { - case SaasAppNameIDFormatID, SaasAppNameIDFormatEmail: + case SaaSAppNameIDFormatID, SaaSAppNameIDFormatEmail: return true } return false } -type SaasAppSource struct { +type SaaSAppSource struct { // The name of the IdP attribute. Name string `json:"name"` // A mapping from IdP ID to attribute name. NameByIdP map[string]string `json:"name_by_idp"` - JSON saasAppSourceJSON `json:"-"` + JSON SaaSAppSourceJSON `json:"-"` } -// saasAppSourceJSON contains the JSON metadata for the struct [SaasAppSource] -type saasAppSourceJSON struct { +// SaaSAppSourceJSON contains the JSON metadata for the struct [SaaSAppSource] +type SaaSAppSourceJSON struct { Name apijson.Field NameByIdP apijson.Field raw string ExtraFields map[string]apijson.Field } -func (r *SaasAppSource) UnmarshalJSON(data []byte) (err error) { +func (r *SaaSAppSource) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r saasAppSourceJSON) RawJSON() string { +func (r SaaSAppSourceJSON) RawJSON() string { return r.raw } -type SaasAppSourceParam struct { +type SaaSAppSourceParam struct { // The name of the IdP attribute. Name param.Field[string] `json:"name"` // A mapping from IdP ID to attribute name. NameByIdP param.Field[map[string]string] `json:"name_by_idp"` } -func (r SaasAppSourceParam) MarshalJSON() (data []byte, err error) { +func (r SaaSAppSourceParam) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -type SAMLSaasApp struct { +type SAMLSaaSApp struct { // Optional identifier indicating the authentication protocol used for the saas // app. Required for OIDC. Default if unset is "saml" - AuthType SAMLSaasAppAuthType `json:"auth_type"` + AuthType SAMLSaaSAppAuthType `json:"auth_type"` // The service provider's endpoint that is responsible for receiving and parsing a // SAML assertion. ConsumerServiceURL string `json:"consumer_service_url"` CreatedAt time.Time `json:"created_at" format:"date-time"` - CustomAttributes SAMLSaasAppCustomAttributes `json:"custom_attributes"` + CustomAttributes SAMLSaaSAppCustomAttributes `json:"custom_attributes"` // The URL that the user will be redirected to after a successful login for IDP // initiated logins. DefaultRelayState string `json:"default_relay_state"` // The unique identifier for your SaaS application. IdPEntityID string `json:"idp_entity_id"` // The format of the name identifier sent to the SaaS application. - NameIDFormat SaasAppNameIDFormat `json:"name_id_format"` + NameIDFormat SaaSAppNameIDFormat `json:"name_id_format"` // A [JSONata](https://jsonata.org/) expression that transforms an application's // user identities into a NameID value for its SAML assertion. This expression // should evaluate to a singular string. The output of this expression can override @@ -2088,15 +2088,15 @@ type SAMLSaasApp struct { // authenticate. The output of this expression must be a JSON object. SAMLAttributeTransformJsonata string `json:"saml_attribute_transform_jsonata"` // A globally unique name for an identity or service provider. - SpEntityID string `json:"sp_entity_id"` + SPEntityID string `json:"sp_entity_id"` // The endpoint where your SaaS application will send login requests. SSOEndpoint string `json:"sso_endpoint"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` - JSON samlSaasAppJSON `json:"-"` + JSON samlSaaSAppJSON `json:"-"` } -// samlSaasAppJSON contains the JSON metadata for the struct [SAMLSaasApp] -type samlSaasAppJSON struct { +// samlSaaSAppJSON contains the JSON metadata for the struct [SAMLSaaSApp] +type samlSaaSAppJSON struct { AuthType apijson.Field ConsumerServiceURL apijson.Field CreatedAt apijson.Field @@ -2107,56 +2107,56 @@ type samlSaasAppJSON struct { NameIDTransformJsonata apijson.Field PublicKey apijson.Field SAMLAttributeTransformJsonata apijson.Field - SpEntityID apijson.Field + SPEntityID apijson.Field SSOEndpoint apijson.Field UpdatedAt apijson.Field raw string ExtraFields map[string]apijson.Field } -func (r *SAMLSaasApp) UnmarshalJSON(data []byte) (err error) { +func (r *SAMLSaaSApp) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r samlSaasAppJSON) RawJSON() string { +func (r samlSaaSAppJSON) RawJSON() string { return r.raw } -func (r SAMLSaasApp) implementsZeroTrustApplicationSaaSApplicationSaasApp() {} +func (r SAMLSaaSApp) implementsZeroTrustApplicationSaaSApplicationSaaSApp() {} // Optional identifier indicating the authentication protocol used for the saas // app. Required for OIDC. Default if unset is "saml" -type SAMLSaasAppAuthType string +type SAMLSaaSAppAuthType string const ( - SAMLSaasAppAuthTypeSAML SAMLSaasAppAuthType = "saml" - SAMLSaasAppAuthTypeOIDC SAMLSaasAppAuthType = "oidc" + SAMLSaaSAppAuthTypeSAML SAMLSaaSAppAuthType = "saml" + SAMLSaaSAppAuthTypeOIDC SAMLSaaSAppAuthType = "oidc" ) -func (r SAMLSaasAppAuthType) IsKnown() bool { +func (r SAMLSaaSAppAuthType) IsKnown() bool { switch r { - case SAMLSaasAppAuthTypeSAML, SAMLSaasAppAuthTypeOIDC: + case SAMLSaaSAppAuthTypeSAML, SAMLSaaSAppAuthTypeOIDC: return true } return false } -type SAMLSaasAppCustomAttributes struct { +type SAMLSaaSAppCustomAttributes struct { // The SAML FriendlyName of the attribute. FriendlyName string `json:"friendly_name"` // The name of the attribute. Name string `json:"name"` // A globally unique name for an identity or service provider. - NameFormat SaasAppNameFormat `json:"name_format"` + NameFormat SaaSAppNameFormat `json:"name_format"` // If the attribute is required when building a SAML assertion. Required bool `json:"required"` - Source SaasAppSource `json:"source"` - JSON samlSaasAppCustomAttributesJSON `json:"-"` + Source SaaSAppSource `json:"source"` + JSON samlSaaSAppCustomAttributesJSON `json:"-"` } -// samlSaasAppCustomAttributesJSON contains the JSON metadata for the struct -// [SAMLSaasAppCustomAttributes] -type samlSaasAppCustomAttributesJSON struct { +// samlSaaSAppCustomAttributesJSON contains the JSON metadata for the struct +// [SAMLSaaSAppCustomAttributes] +type samlSaaSAppCustomAttributesJSON struct { FriendlyName apijson.Field Name apijson.Field NameFormat apijson.Field @@ -2166,29 +2166,29 @@ type samlSaasAppCustomAttributesJSON struct { ExtraFields map[string]apijson.Field } -func (r *SAMLSaasAppCustomAttributes) UnmarshalJSON(data []byte) (err error) { +func (r *SAMLSaaSAppCustomAttributes) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r samlSaasAppCustomAttributesJSON) RawJSON() string { +func (r samlSaaSAppCustomAttributesJSON) RawJSON() string { return r.raw } -type SAMLSaasAppParam struct { +type SAMLSaaSAppParam struct { // Optional identifier indicating the authentication protocol used for the saas // app. Required for OIDC. Default if unset is "saml" - AuthType param.Field[SAMLSaasAppAuthType] `json:"auth_type"` + AuthType param.Field[SAMLSaaSAppAuthType] `json:"auth_type"` // The service provider's endpoint that is responsible for receiving and parsing a // SAML assertion. ConsumerServiceURL param.Field[string] `json:"consumer_service_url"` - CustomAttributes param.Field[SAMLSaasAppCustomAttributesParam] `json:"custom_attributes"` + CustomAttributes param.Field[SAMLSaaSAppCustomAttributesParam] `json:"custom_attributes"` // The URL that the user will be redirected to after a successful login for IDP // initiated logins. DefaultRelayState param.Field[string] `json:"default_relay_state"` // The unique identifier for your SaaS application. IdPEntityID param.Field[string] `json:"idp_entity_id"` // The format of the name identifier sent to the SaaS application. - NameIDFormat param.Field[SaasAppNameIDFormat] `json:"name_id_format"` + NameIDFormat param.Field[SaaSAppNameIDFormat] `json:"name_id_format"` // A [JSONata](https://jsonata.org/) expression that transforms an application's // user identities into a NameID value for its SAML assertion. This expression // should evaluate to a singular string. The output of this expression can override @@ -2203,30 +2203,30 @@ type SAMLSaasAppParam struct { // authenticate. The output of this expression must be a JSON object. SAMLAttributeTransformJsonata param.Field[string] `json:"saml_attribute_transform_jsonata"` // A globally unique name for an identity or service provider. - SpEntityID param.Field[string] `json:"sp_entity_id"` + SPEntityID param.Field[string] `json:"sp_entity_id"` // The endpoint where your SaaS application will send login requests. SSOEndpoint param.Field[string] `json:"sso_endpoint"` } -func (r SAMLSaasAppParam) MarshalJSON() (data []byte, err error) { +func (r SAMLSaaSAppParam) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -func (r SAMLSaasAppParam) implementsZeroTrustApplicationSaaSApplicationSaasAppUnionParam() {} +func (r SAMLSaaSAppParam) implementsZeroTrustApplicationSaaSApplicationSaaSAppUnionParam() {} -type SAMLSaasAppCustomAttributesParam struct { +type SAMLSaaSAppCustomAttributesParam struct { // The SAML FriendlyName of the attribute. FriendlyName param.Field[string] `json:"friendly_name"` // The name of the attribute. Name param.Field[string] `json:"name"` // A globally unique name for an identity or service provider. - NameFormat param.Field[SaasAppNameFormat] `json:"name_format"` + NameFormat param.Field[SaaSAppNameFormat] `json:"name_format"` // If the attribute is required when building a SAML assertion. Required param.Field[bool] `json:"required"` - Source param.Field[SaasAppSourceParam] `json:"source"` + Source param.Field[SaaSAppSourceParam] `json:"source"` } -func (r SAMLSaasAppCustomAttributesParam) MarshalJSON() (data []byte, err error) { +func (r SAMLSaaSAppCustomAttributesParam) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } diff --git a/zero_trust/accessapplication_test.go b/zero_trust/accessapplication_test.go index e9c9e9c894a..b4e37664705 100644 --- a/zero_trust/accessapplication_test.go +++ b/zero_trust/accessapplication_test.go @@ -35,7 +35,7 @@ func TestAccessApplicationNewWithOptionalParams(t *testing.T) { AllowedIdps: cloudflare.F([]zero_trust.AllowedIdpshParam{"699d98642c564d2e855e9661899b7252", "699d98642c564d2e855e9661899b7252", "699d98642c564d2e855e9661899b7252"}), AppLauncherVisible: cloudflare.F(true), AutoRedirectToIdentity: cloudflare.F(true), - CorsHeaders: cloudflare.F(zero_trust.CorsHeadersParam{ + CORSHeaders: cloudflare.F(zero_trust.CORSHeadersParam{ AllowAllHeaders: cloudflare.F(true), AllowAllMethods: cloudflare.F(true), AllowAllOrigins: cloudflare.F(true), @@ -99,7 +99,7 @@ func TestAccessApplicationUpdateWithOptionalParams(t *testing.T) { AllowedIdps: cloudflare.F([]zero_trust.AllowedIdpshParam{"699d98642c564d2e855e9661899b7252", "699d98642c564d2e855e9661899b7252", "699d98642c564d2e855e9661899b7252"}), AppLauncherVisible: cloudflare.F(true), AutoRedirectToIdentity: cloudflare.F(true), - CorsHeaders: cloudflare.F(zero_trust.CorsHeadersParam{ + CORSHeaders: cloudflare.F(zero_trust.CORSHeadersParam{ AllowAllHeaders: cloudflare.F(true), AllowAllMethods: cloudflare.F(true), AllowAllOrigins: cloudflare.F(true), diff --git a/zero_trust/accessapplicationca.go b/zero_trust/accessapplicationca.go index a983297e0ea..c5f7a8ea586 100644 --- a/zero_trust/accessapplicationca.go +++ b/zero_trust/accessapplicationca.go @@ -138,7 +138,7 @@ type CA struct { ID string `json:"id"` // The Application Audience (AUD) tag. Identifies the application associated with // the CA. - Aud string `json:"aud"` + AUD string `json:"aud"` // The public key to add to your SSH server configuration. PublicKey string `json:"public_key"` JSON caJSON `json:"-"` @@ -147,7 +147,7 @@ type CA struct { // caJSON contains the JSON metadata for the struct [CA] type caJSON struct { ID apijson.Field - Aud apijson.Field + AUD apijson.Field PublicKey apijson.Field raw string ExtraFields map[string]apijson.Field diff --git a/zero_trust/accessapplicationuserpolicycheck.go b/zero_trust/accessapplicationuserpolicycheck.go index d2345882539..b87554c7cbe 100644 --- a/zero_trust/accessapplicationuserpolicycheck.go +++ b/zero_trust/accessapplicationuserpolicycheck.go @@ -101,7 +101,7 @@ func (r accessApplicationUserPolicyCheckListResponseJSON) RawJSON() string { type AccessApplicationUserPolicyCheckListResponseAppState struct { // UUID AppUID string `json:"app_uid"` - Aud string `json:"aud"` + AUD string `json:"aud"` Hostname string `json:"hostname"` Name string `json:"name"` Policies []interface{} `json:"policies"` @@ -113,7 +113,7 @@ type AccessApplicationUserPolicyCheckListResponseAppState struct { // metadata for the struct [AccessApplicationUserPolicyCheckListResponseAppState] type accessApplicationUserPolicyCheckListResponseAppStateJSON struct { AppUID apijson.Field - Aud apijson.Field + AUD apijson.Field Hostname apijson.Field Name apijson.Field Policies apijson.Field diff --git a/zero_trust/tunnelconfiguration.go b/zero_trust/tunnelconfiguration.go index 87207fa1bb4..a0ca03c2f46 100644 --- a/zero_trust/tunnelconfiguration.go +++ b/zero_trust/tunnelconfiguration.go @@ -208,7 +208,7 @@ type TunnelConfigurationUpdateParamsConfigIngressOriginRequestAccess struct { // Access applications that are allowed to reach this hostname for this Tunnel. // Audience tags can be identified in the dashboard or via the List Access policies // API. - AudTag param.Field[[]string] `json:"audTag,required"` + AUDTag param.Field[[]string] `json:"audTag,required"` TeamName param.Field[string] `json:"teamName,required"` // Deny traffic that has not fulfilled Access authorization. Required param.Field[bool] `json:"required"` @@ -271,7 +271,7 @@ type TunnelConfigurationUpdateParamsConfigOriginRequestAccess struct { // Access applications that are allowed to reach this hostname for this Tunnel. // Audience tags can be identified in the dashboard or via the List Access policies // API. - AudTag param.Field[[]string] `json:"audTag,required"` + AUDTag param.Field[[]string] `json:"audTag,required"` TeamName param.Field[string] `json:"teamName,required"` // Deny traffic that has not fulfilled Access authorization. Required param.Field[bool] `json:"required"` diff --git a/zero_trust/tunnelconfiguration_test.go b/zero_trust/tunnelconfiguration_test.go index a1b917a0ff2..7c4412867a6 100644 --- a/zero_trust/tunnelconfiguration_test.go +++ b/zero_trust/tunnelconfiguration_test.go @@ -38,7 +38,7 @@ func TestTunnelConfigurationUpdateWithOptionalParams(t *testing.T) { Hostname: cloudflare.F("tunnel.example.com"), OriginRequest: cloudflare.F(zero_trust.TunnelConfigurationUpdateParamsConfigIngressOriginRequest{ Access: cloudflare.F(zero_trust.TunnelConfigurationUpdateParamsConfigIngressOriginRequestAccess{ - AudTag: cloudflare.F([]string{"string", "string", "string"}), + AUDTag: cloudflare.F([]string{"string", "string", "string"}), Required: cloudflare.F(true), TeamName: cloudflare.F("string"), }), @@ -62,7 +62,7 @@ func TestTunnelConfigurationUpdateWithOptionalParams(t *testing.T) { Hostname: cloudflare.F("tunnel.example.com"), OriginRequest: cloudflare.F(zero_trust.TunnelConfigurationUpdateParamsConfigIngressOriginRequest{ Access: cloudflare.F(zero_trust.TunnelConfigurationUpdateParamsConfigIngressOriginRequestAccess{ - AudTag: cloudflare.F([]string{"string", "string", "string"}), + AUDTag: cloudflare.F([]string{"string", "string", "string"}), Required: cloudflare.F(true), TeamName: cloudflare.F("string"), }), @@ -86,7 +86,7 @@ func TestTunnelConfigurationUpdateWithOptionalParams(t *testing.T) { Hostname: cloudflare.F("tunnel.example.com"), OriginRequest: cloudflare.F(zero_trust.TunnelConfigurationUpdateParamsConfigIngressOriginRequest{ Access: cloudflare.F(zero_trust.TunnelConfigurationUpdateParamsConfigIngressOriginRequestAccess{ - AudTag: cloudflare.F([]string{"string", "string", "string"}), + AUDTag: cloudflare.F([]string{"string", "string", "string"}), Required: cloudflare.F(true), TeamName: cloudflare.F("string"), }), @@ -109,7 +109,7 @@ func TestTunnelConfigurationUpdateWithOptionalParams(t *testing.T) { }}), OriginRequest: cloudflare.F(zero_trust.TunnelConfigurationUpdateParamsConfigOriginRequest{ Access: cloudflare.F(zero_trust.TunnelConfigurationUpdateParamsConfigOriginRequestAccess{ - AudTag: cloudflare.F([]string{"string", "string", "string"}), + AUDTag: cloudflare.F([]string{"string", "string", "string"}), Required: cloudflare.F(true), TeamName: cloudflare.F("string"), }), From b496234a872bc74a8363fcc6de8d4986121b7551 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 23 Apr 2024 08:46:59 +0000 Subject: [PATCH 48/52] feat(api): OpenAPI spec update via Stainless API (#1835) --- zones/activationcheck.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zones/activationcheck.go b/zones/activationcheck.go index 8384a08422e..99a82e212f8 100644 --- a/zones/activationcheck.go +++ b/zones/activationcheck.go @@ -74,11 +74,11 @@ type ActivationCheckTriggerParams struct { } type ActivationCheckTriggerResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result ActivationCheckTriggerResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success ActivationCheckTriggerResponseEnvelopeSuccess `json:"success,required"` + Result ActivationCheckTriggerResponse `json:"result"` JSON activationCheckTriggerResponseEnvelopeJSON `json:"-"` } @@ -87,8 +87,8 @@ type ActivationCheckTriggerResponseEnvelope struct { type activationCheckTriggerResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } From 9299404ea18f6b3faf59a2e87091141e4e55ecf3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 23 Apr 2024 18:47:25 +0000 Subject: [PATCH 49/52] feat(api): update via SDK Studio (#1836) --- addressing/addressmap.go | 49 +--- addressing/addressmapaccount.go | 74 +----- addressing/addressmapip.go | 72 +----- addressing/addressmapzone.go | 72 +----- addressing/loadocument.go | 8 +- addressing/prefix.go | 49 +--- addressing/prefixbgpbinding.go | 115 +++------ addressing/prefixbgpprefix.go | 8 +- addressing/prefixbgpstatus.go | 16 +- addressing/prefixdelegation.go | 12 +- api.md | 98 +++---- internal/shared/shared.go | 22 +- internal/shared/union.go | 9 - ips/ip.go | 4 +- magic_transit/site.go | 215 +++------------ magic_transit/site_test.go | 38 ++- magic_transit/siteacl.go | 316 +++++++---------------- magic_transit/siteacl_test.go | 66 +++-- magic_transit/sitelan.go | 229 +++------------- magic_transit/sitelan_test.go | 150 ++++++----- magic_transit/sitewan.go | 237 +++-------------- magic_transit/sitewan_test.go | 36 ++- warp_connector/warpconnector.go | 186 ++++++------- zero_trust/networkroute.go | 116 +++------ zero_trust/networkroute_test.go | 21 +- zero_trust/networkrouteip.go | 6 +- zero_trust/networkrouteip_test.go | 2 +- zero_trust/networkroutenetwork.go | 10 +- zero_trust/networkroutenetwork_test.go | 2 +- zero_trust/networkvirtualnetwork.go | 23 +- zero_trust/networkvirtualnetwork_test.go | 7 +- zero_trust/tunnel.go | 116 ++++----- zero_trust/tunnel_test.go | 2 +- zero_trust/tunnelconfiguration.go | 16 +- zero_trust/tunnelconfiguration_test.go | 4 +- zero_trust/tunnelconnection.go | 10 +- 36 files changed, 761 insertions(+), 1655 deletions(-) diff --git a/addressing/addressmap.go b/addressing/addressmap.go index 83e28d9eea9..3655b59b763 100644 --- a/addressing/addressmap.go +++ b/addressing/addressmap.go @@ -6,7 +6,6 @@ import ( "context" "fmt" "net/http" - "reflect" "time" "github.com/cloudflare/cloudflare-go/v2/internal/apijson" @@ -15,7 +14,6 @@ import ( "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" "github.com/cloudflare/cloudflare-go/v2/internal/shared" "github.com/cloudflare/cloudflare-go/v2/option" - "github.com/tidwall/gjson" ) // AddressMapService contains methods and other services that help with interacting @@ -79,7 +77,7 @@ func (r *AddressMapService) ListAutoPaging(ctx context.Context, query AddressMap // Delete a particular address map owned by the account. An Address Map must be // disabled before it can be deleted. -func (r *AddressMapService) Delete(ctx context.Context, addressMapID string, params AddressMapDeleteParams, opts ...option.RequestOption) (res *AddressMapDeleteResponseUnion, err error) { +func (r *AddressMapService) Delete(ctx context.Context, addressMapID string, params AddressMapDeleteParams, opts ...option.RequestOption) (res *[]AddressMapDeleteResponse, err error) { opts = append(r.Options[:], opts...) var env AddressMapDeleteResponseEnvelope path := fmt.Sprintf("accounts/%s/addressing/address_maps/%s", params.AccountID, addressMapID) @@ -291,30 +289,7 @@ func (r AddressMapNewResponseMembershipsKind) IsKnown() bool { return false } -// Union satisfied by [addressing.AddressMapDeleteResponseUnknown], -// [addressing.AddressMapDeleteResponseArray] or [shared.UnionString]. -type AddressMapDeleteResponseUnion interface { - ImplementsAddressingAddressMapDeleteResponseUnion() -} - -func init() { - apijson.RegisterUnion( - reflect.TypeOf((*AddressMapDeleteResponseUnion)(nil)).Elem(), - "", - apijson.UnionVariant{ - TypeFilter: gjson.JSON, - Type: reflect.TypeOf(AddressMapDeleteResponseArray{}), - }, - apijson.UnionVariant{ - TypeFilter: gjson.String, - Type: reflect.TypeOf(shared.UnionString("")), - }, - ) -} - -type AddressMapDeleteResponseArray []interface{} - -func (r AddressMapDeleteResponseArray) ImplementsAddressingAddressMapDeleteResponseUnion() {} +type AddressMapDeleteResponse = interface{} type AddressMapGetResponse struct { // Identifier @@ -460,9 +435,9 @@ func (r AddressMapNewParams) MarshalJSON() (data []byte, err error) { type AddressMapNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result AddressMapNewResponse `json:"result,required"` // Whether the API call was successful Success AddressMapNewResponseEnvelopeSuccess `json:"success,required"` + Result AddressMapNewResponse `json:"result"` JSON addressMapNewResponseEnvelopeJSON `json:"-"` } @@ -471,8 +446,8 @@ type AddressMapNewResponseEnvelope struct { type addressMapNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -516,11 +491,11 @@ func (r AddressMapDeleteParams) MarshalJSON() (data []byte, err error) { } type AddressMapDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result AddressMapDeleteResponseUnion `json:"result,required,nullable"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success AddressMapDeleteResponseEnvelopeSuccess `json:"success,required"` + Result []AddressMapDeleteResponse `json:"result,nullable"` ResultInfo AddressMapDeleteResponseEnvelopeResultInfo `json:"result_info"` JSON addressMapDeleteResponseEnvelopeJSON `json:"-"` } @@ -530,8 +505,8 @@ type AddressMapDeleteResponseEnvelope struct { type addressMapDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field ResultInfo apijson.Field raw string ExtraFields map[string]apijson.Field @@ -615,9 +590,9 @@ func (r AddressMapEditParams) MarshalJSON() (data []byte, err error) { type AddressMapEditResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result AddressMap `json:"result,required"` // Whether the API call was successful Success AddressMapEditResponseEnvelopeSuccess `json:"success,required"` + Result AddressMap `json:"result"` JSON addressMapEditResponseEnvelopeJSON `json:"-"` } @@ -626,8 +601,8 @@ type AddressMapEditResponseEnvelope struct { type addressMapEditResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -663,9 +638,9 @@ type AddressMapGetParams struct { type AddressMapGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result AddressMapGetResponse `json:"result,required"` // Whether the API call was successful Success AddressMapGetResponseEnvelopeSuccess `json:"success,required"` + Result AddressMapGetResponse `json:"result"` JSON addressMapGetResponseEnvelopeJSON `json:"-"` } @@ -674,8 +649,8 @@ type AddressMapGetResponseEnvelope struct { type addressMapGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/addressing/addressmapaccount.go b/addressing/addressmapaccount.go index 1559ef6fe0c..2ab86460176 100644 --- a/addressing/addressmapaccount.go +++ b/addressing/addressmapaccount.go @@ -6,14 +6,12 @@ import ( "context" "fmt" "net/http" - "reflect" "github.com/cloudflare/cloudflare-go/v2/internal/apijson" "github.com/cloudflare/cloudflare-go/v2/internal/param" "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" "github.com/cloudflare/cloudflare-go/v2/internal/shared" "github.com/cloudflare/cloudflare-go/v2/option" - "github.com/tidwall/gjson" ) // AddressMapAccountService contains methods and other services that help with @@ -35,7 +33,7 @@ func NewAddressMapAccountService(opts ...option.RequestOption) (r *AddressMapAcc } // Add an account as a member of a particular address map. -func (r *AddressMapAccountService) Update(ctx context.Context, addressMapID string, params AddressMapAccountUpdateParams, opts ...option.RequestOption) (res *AddressMapAccountUpdateResponseUnion, err error) { +func (r *AddressMapAccountService) Update(ctx context.Context, addressMapID string, params AddressMapAccountUpdateParams, opts ...option.RequestOption) (res *[]AddressMapAccountUpdateResponse, err error) { opts = append(r.Options[:], opts...) var env AddressMapAccountUpdateResponseEnvelope path := fmt.Sprintf("accounts/%s/addressing/address_maps/%s/accounts/%s", params.AccountID, addressMapID, params.AccountID) @@ -48,7 +46,7 @@ func (r *AddressMapAccountService) Update(ctx context.Context, addressMapID stri } // Remove an account as a member of a particular address map. -func (r *AddressMapAccountService) Delete(ctx context.Context, addressMapID string, params AddressMapAccountDeleteParams, opts ...option.RequestOption) (res *AddressMapAccountDeleteResponseUnion, err error) { +func (r *AddressMapAccountService) Delete(ctx context.Context, addressMapID string, params AddressMapAccountDeleteParams, opts ...option.RequestOption) (res *[]AddressMapAccountDeleteResponse, err error) { opts = append(r.Options[:], opts...) var env AddressMapAccountDeleteResponseEnvelope path := fmt.Sprintf("accounts/%s/addressing/address_maps/%s/accounts/%s", params.AccountID, addressMapID, params.AccountID) @@ -60,57 +58,9 @@ func (r *AddressMapAccountService) Delete(ctx context.Context, addressMapID stri return } -// Union satisfied by [addressing.AddressMapAccountUpdateResponseUnknown], -// [addressing.AddressMapAccountUpdateResponseArray] or [shared.UnionString]. -type AddressMapAccountUpdateResponseUnion interface { - ImplementsAddressingAddressMapAccountUpdateResponseUnion() -} - -func init() { - apijson.RegisterUnion( - reflect.TypeOf((*AddressMapAccountUpdateResponseUnion)(nil)).Elem(), - "", - apijson.UnionVariant{ - TypeFilter: gjson.JSON, - Type: reflect.TypeOf(AddressMapAccountUpdateResponseArray{}), - }, - apijson.UnionVariant{ - TypeFilter: gjson.String, - Type: reflect.TypeOf(shared.UnionString("")), - }, - ) -} - -type AddressMapAccountUpdateResponseArray []interface{} - -func (r AddressMapAccountUpdateResponseArray) ImplementsAddressingAddressMapAccountUpdateResponseUnion() { -} - -// Union satisfied by [addressing.AddressMapAccountDeleteResponseUnknown], -// [addressing.AddressMapAccountDeleteResponseArray] or [shared.UnionString]. -type AddressMapAccountDeleteResponseUnion interface { - ImplementsAddressingAddressMapAccountDeleteResponseUnion() -} +type AddressMapAccountUpdateResponse = interface{} -func init() { - apijson.RegisterUnion( - reflect.TypeOf((*AddressMapAccountDeleteResponseUnion)(nil)).Elem(), - "", - apijson.UnionVariant{ - TypeFilter: gjson.JSON, - Type: reflect.TypeOf(AddressMapAccountDeleteResponseArray{}), - }, - apijson.UnionVariant{ - TypeFilter: gjson.String, - Type: reflect.TypeOf(shared.UnionString("")), - }, - ) -} - -type AddressMapAccountDeleteResponseArray []interface{} - -func (r AddressMapAccountDeleteResponseArray) ImplementsAddressingAddressMapAccountDeleteResponseUnion() { -} +type AddressMapAccountDeleteResponse = interface{} type AddressMapAccountUpdateParams struct { // Identifier @@ -123,11 +73,11 @@ func (r AddressMapAccountUpdateParams) MarshalJSON() (data []byte, err error) { } type AddressMapAccountUpdateResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result AddressMapAccountUpdateResponseUnion `json:"result,required,nullable"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success AddressMapAccountUpdateResponseEnvelopeSuccess `json:"success,required"` + Result []AddressMapAccountUpdateResponse `json:"result,nullable"` ResultInfo AddressMapAccountUpdateResponseEnvelopeResultInfo `json:"result_info"` JSON addressMapAccountUpdateResponseEnvelopeJSON `json:"-"` } @@ -137,8 +87,8 @@ type AddressMapAccountUpdateResponseEnvelope struct { type addressMapAccountUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field ResultInfo apijson.Field raw string ExtraFields map[string]apijson.Field @@ -209,11 +159,11 @@ func (r AddressMapAccountDeleteParams) MarshalJSON() (data []byte, err error) { } type AddressMapAccountDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result AddressMapAccountDeleteResponseUnion `json:"result,required,nullable"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success AddressMapAccountDeleteResponseEnvelopeSuccess `json:"success,required"` + Result []AddressMapAccountDeleteResponse `json:"result,nullable"` ResultInfo AddressMapAccountDeleteResponseEnvelopeResultInfo `json:"result_info"` JSON addressMapAccountDeleteResponseEnvelopeJSON `json:"-"` } @@ -223,8 +173,8 @@ type AddressMapAccountDeleteResponseEnvelope struct { type addressMapAccountDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field ResultInfo apijson.Field raw string ExtraFields map[string]apijson.Field diff --git a/addressing/addressmapip.go b/addressing/addressmapip.go index 8fb1b5cf7b1..b9ac5a9d040 100644 --- a/addressing/addressmapip.go +++ b/addressing/addressmapip.go @@ -6,14 +6,12 @@ import ( "context" "fmt" "net/http" - "reflect" "github.com/cloudflare/cloudflare-go/v2/internal/apijson" "github.com/cloudflare/cloudflare-go/v2/internal/param" "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" "github.com/cloudflare/cloudflare-go/v2/internal/shared" "github.com/cloudflare/cloudflare-go/v2/option" - "github.com/tidwall/gjson" ) // AddressMapIPService contains methods and other services that help with @@ -35,7 +33,7 @@ func NewAddressMapIPService(opts ...option.RequestOption) (r *AddressMapIPServic } // Add an IP from a prefix owned by the account to a particular address map. -func (r *AddressMapIPService) Update(ctx context.Context, addressMapID string, ipAddress string, params AddressMapIPUpdateParams, opts ...option.RequestOption) (res *AddressMapIPUpdateResponseUnion, err error) { +func (r *AddressMapIPService) Update(ctx context.Context, addressMapID string, ipAddress string, params AddressMapIPUpdateParams, opts ...option.RequestOption) (res *[]AddressMapIPUpdateResponse, err error) { opts = append(r.Options[:], opts...) var env AddressMapIPUpdateResponseEnvelope path := fmt.Sprintf("accounts/%s/addressing/address_maps/%s/ips/%s", params.AccountID, addressMapID, ipAddress) @@ -48,7 +46,7 @@ func (r *AddressMapIPService) Update(ctx context.Context, addressMapID string, i } // Remove an IP from a particular address map. -func (r *AddressMapIPService) Delete(ctx context.Context, addressMapID string, ipAddress string, params AddressMapIPDeleteParams, opts ...option.RequestOption) (res *AddressMapIPDeleteResponseUnion, err error) { +func (r *AddressMapIPService) Delete(ctx context.Context, addressMapID string, ipAddress string, params AddressMapIPDeleteParams, opts ...option.RequestOption) (res *[]AddressMapIPDeleteResponse, err error) { opts = append(r.Options[:], opts...) var env AddressMapIPDeleteResponseEnvelope path := fmt.Sprintf("accounts/%s/addressing/address_maps/%s/ips/%s", params.AccountID, addressMapID, ipAddress) @@ -60,55 +58,9 @@ func (r *AddressMapIPService) Delete(ctx context.Context, addressMapID string, i return } -// Union satisfied by [addressing.AddressMapIPUpdateResponseUnknown], -// [addressing.AddressMapIPUpdateResponseArray] or [shared.UnionString]. -type AddressMapIPUpdateResponseUnion interface { - ImplementsAddressingAddressMapIPUpdateResponseUnion() -} - -func init() { - apijson.RegisterUnion( - reflect.TypeOf((*AddressMapIPUpdateResponseUnion)(nil)).Elem(), - "", - apijson.UnionVariant{ - TypeFilter: gjson.JSON, - Type: reflect.TypeOf(AddressMapIPUpdateResponseArray{}), - }, - apijson.UnionVariant{ - TypeFilter: gjson.String, - Type: reflect.TypeOf(shared.UnionString("")), - }, - ) -} - -type AddressMapIPUpdateResponseArray []interface{} - -func (r AddressMapIPUpdateResponseArray) ImplementsAddressingAddressMapIPUpdateResponseUnion() {} - -// Union satisfied by [addressing.AddressMapIPDeleteResponseUnknown], -// [addressing.AddressMapIPDeleteResponseArray] or [shared.UnionString]. -type AddressMapIPDeleteResponseUnion interface { - ImplementsAddressingAddressMapIPDeleteResponseUnion() -} +type AddressMapIPUpdateResponse = interface{} -func init() { - apijson.RegisterUnion( - reflect.TypeOf((*AddressMapIPDeleteResponseUnion)(nil)).Elem(), - "", - apijson.UnionVariant{ - TypeFilter: gjson.JSON, - Type: reflect.TypeOf(AddressMapIPDeleteResponseArray{}), - }, - apijson.UnionVariant{ - TypeFilter: gjson.String, - Type: reflect.TypeOf(shared.UnionString("")), - }, - ) -} - -type AddressMapIPDeleteResponseArray []interface{} - -func (r AddressMapIPDeleteResponseArray) ImplementsAddressingAddressMapIPDeleteResponseUnion() {} +type AddressMapIPDeleteResponse = interface{} type AddressMapIPUpdateParams struct { // Identifier @@ -121,11 +73,11 @@ func (r AddressMapIPUpdateParams) MarshalJSON() (data []byte, err error) { } type AddressMapIPUpdateResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result AddressMapIPUpdateResponseUnion `json:"result,required,nullable"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success AddressMapIPUpdateResponseEnvelopeSuccess `json:"success,required"` + Result []AddressMapIPUpdateResponse `json:"result,nullable"` ResultInfo AddressMapIPUpdateResponseEnvelopeResultInfo `json:"result_info"` JSON addressMapIPUpdateResponseEnvelopeJSON `json:"-"` } @@ -135,8 +87,8 @@ type AddressMapIPUpdateResponseEnvelope struct { type addressMapIPUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field ResultInfo apijson.Field raw string ExtraFields map[string]apijson.Field @@ -207,11 +159,11 @@ func (r AddressMapIPDeleteParams) MarshalJSON() (data []byte, err error) { } type AddressMapIPDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result AddressMapIPDeleteResponseUnion `json:"result,required,nullable"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success AddressMapIPDeleteResponseEnvelopeSuccess `json:"success,required"` + Result []AddressMapIPDeleteResponse `json:"result,nullable"` ResultInfo AddressMapIPDeleteResponseEnvelopeResultInfo `json:"result_info"` JSON addressMapIPDeleteResponseEnvelopeJSON `json:"-"` } @@ -221,8 +173,8 @@ type AddressMapIPDeleteResponseEnvelope struct { type addressMapIPDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field ResultInfo apijson.Field raw string ExtraFields map[string]apijson.Field diff --git a/addressing/addressmapzone.go b/addressing/addressmapzone.go index 399d72e74fe..ab7b8f9cfbd 100644 --- a/addressing/addressmapzone.go +++ b/addressing/addressmapzone.go @@ -6,14 +6,12 @@ import ( "context" "fmt" "net/http" - "reflect" "github.com/cloudflare/cloudflare-go/v2/internal/apijson" "github.com/cloudflare/cloudflare-go/v2/internal/param" "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" "github.com/cloudflare/cloudflare-go/v2/internal/shared" "github.com/cloudflare/cloudflare-go/v2/option" - "github.com/tidwall/gjson" ) // AddressMapZoneService contains methods and other services that help with @@ -35,7 +33,7 @@ func NewAddressMapZoneService(opts ...option.RequestOption) (r *AddressMapZoneSe } // Add a zone as a member of a particular address map. -func (r *AddressMapZoneService) Update(ctx context.Context, addressMapID string, params AddressMapZoneUpdateParams, opts ...option.RequestOption) (res *AddressMapZoneUpdateResponseUnion, err error) { +func (r *AddressMapZoneService) Update(ctx context.Context, addressMapID string, params AddressMapZoneUpdateParams, opts ...option.RequestOption) (res *[]AddressMapZoneUpdateResponse, err error) { opts = append(r.Options[:], opts...) var env AddressMapZoneUpdateResponseEnvelope path := fmt.Sprintf("accounts/%s/addressing/address_maps/%s/zones/%s", params.AccountID, addressMapID, params.ZoneID) @@ -48,7 +46,7 @@ func (r *AddressMapZoneService) Update(ctx context.Context, addressMapID string, } // Remove a zone as a member of a particular address map. -func (r *AddressMapZoneService) Delete(ctx context.Context, addressMapID string, params AddressMapZoneDeleteParams, opts ...option.RequestOption) (res *AddressMapZoneDeleteResponseUnion, err error) { +func (r *AddressMapZoneService) Delete(ctx context.Context, addressMapID string, params AddressMapZoneDeleteParams, opts ...option.RequestOption) (res *[]AddressMapZoneDeleteResponse, err error) { opts = append(r.Options[:], opts...) var env AddressMapZoneDeleteResponseEnvelope path := fmt.Sprintf("accounts/%s/addressing/address_maps/%s/zones/%s", params.AccountID, addressMapID, params.ZoneID) @@ -60,55 +58,9 @@ func (r *AddressMapZoneService) Delete(ctx context.Context, addressMapID string, return } -// Union satisfied by [addressing.AddressMapZoneUpdateResponseUnknown], -// [addressing.AddressMapZoneUpdateResponseArray] or [shared.UnionString]. -type AddressMapZoneUpdateResponseUnion interface { - ImplementsAddressingAddressMapZoneUpdateResponseUnion() -} - -func init() { - apijson.RegisterUnion( - reflect.TypeOf((*AddressMapZoneUpdateResponseUnion)(nil)).Elem(), - "", - apijson.UnionVariant{ - TypeFilter: gjson.JSON, - Type: reflect.TypeOf(AddressMapZoneUpdateResponseArray{}), - }, - apijson.UnionVariant{ - TypeFilter: gjson.String, - Type: reflect.TypeOf(shared.UnionString("")), - }, - ) -} - -type AddressMapZoneUpdateResponseArray []interface{} - -func (r AddressMapZoneUpdateResponseArray) ImplementsAddressingAddressMapZoneUpdateResponseUnion() {} - -// Union satisfied by [addressing.AddressMapZoneDeleteResponseUnknown], -// [addressing.AddressMapZoneDeleteResponseArray] or [shared.UnionString]. -type AddressMapZoneDeleteResponseUnion interface { - ImplementsAddressingAddressMapZoneDeleteResponseUnion() -} +type AddressMapZoneUpdateResponse = interface{} -func init() { - apijson.RegisterUnion( - reflect.TypeOf((*AddressMapZoneDeleteResponseUnion)(nil)).Elem(), - "", - apijson.UnionVariant{ - TypeFilter: gjson.JSON, - Type: reflect.TypeOf(AddressMapZoneDeleteResponseArray{}), - }, - apijson.UnionVariant{ - TypeFilter: gjson.String, - Type: reflect.TypeOf(shared.UnionString("")), - }, - ) -} - -type AddressMapZoneDeleteResponseArray []interface{} - -func (r AddressMapZoneDeleteResponseArray) ImplementsAddressingAddressMapZoneDeleteResponseUnion() {} +type AddressMapZoneDeleteResponse = interface{} type AddressMapZoneUpdateParams struct { // Identifier @@ -123,11 +75,11 @@ func (r AddressMapZoneUpdateParams) MarshalJSON() (data []byte, err error) { } type AddressMapZoneUpdateResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result AddressMapZoneUpdateResponseUnion `json:"result,required,nullable"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success AddressMapZoneUpdateResponseEnvelopeSuccess `json:"success,required"` + Result []AddressMapZoneUpdateResponse `json:"result,nullable"` ResultInfo AddressMapZoneUpdateResponseEnvelopeResultInfo `json:"result_info"` JSON addressMapZoneUpdateResponseEnvelopeJSON `json:"-"` } @@ -137,8 +89,8 @@ type AddressMapZoneUpdateResponseEnvelope struct { type addressMapZoneUpdateResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field ResultInfo apijson.Field raw string ExtraFields map[string]apijson.Field @@ -211,11 +163,11 @@ func (r AddressMapZoneDeleteParams) MarshalJSON() (data []byte, err error) { } type AddressMapZoneDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result AddressMapZoneDeleteResponseUnion `json:"result,required,nullable"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success AddressMapZoneDeleteResponseEnvelopeSuccess `json:"success,required"` + Result []AddressMapZoneDeleteResponse `json:"result,nullable"` ResultInfo AddressMapZoneDeleteResponseEnvelopeResultInfo `json:"result_info"` JSON addressMapZoneDeleteResponseEnvelopeJSON `json:"-"` } @@ -225,8 +177,8 @@ type AddressMapZoneDeleteResponseEnvelope struct { type addressMapZoneDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field ResultInfo apijson.Field raw string ExtraFields map[string]apijson.Field diff --git a/addressing/loadocument.go b/addressing/loadocument.go index 56287c2941b..85aac0bcbcb 100644 --- a/addressing/loadocument.go +++ b/addressing/loadocument.go @@ -81,11 +81,11 @@ func (r LOADocumentNewParams) MarshalJSON() (data []byte, err error) { } type LOADocumentNewResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result LOADocumentNewResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success LOADocumentNewResponseEnvelopeSuccess `json:"success,required"` + Result LOADocumentNewResponse `json:"result"` JSON loaDocumentNewResponseEnvelopeJSON `json:"-"` } @@ -94,8 +94,8 @@ type LOADocumentNewResponseEnvelope struct { type loaDocumentNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/addressing/prefix.go b/addressing/prefix.go index 8de13ef17d9..4977ca211ca 100644 --- a/addressing/prefix.go +++ b/addressing/prefix.go @@ -6,7 +6,6 @@ import ( "context" "fmt" "net/http" - "reflect" "time" "github.com/cloudflare/cloudflare-go/v2/internal/apijson" @@ -15,7 +14,6 @@ import ( "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" "github.com/cloudflare/cloudflare-go/v2/internal/shared" "github.com/cloudflare/cloudflare-go/v2/option" - "github.com/tidwall/gjson" ) // PrefixService contains methods and other services that help with interacting @@ -76,7 +74,7 @@ func (r *PrefixService) ListAutoPaging(ctx context.Context, query PrefixListPara } // Delete an unapproved prefix owned by the account. -func (r *PrefixService) Delete(ctx context.Context, prefixID string, params PrefixDeleteParams, opts ...option.RequestOption) (res *PrefixDeleteResponseUnion, err error) { +func (r *PrefixService) Delete(ctx context.Context, prefixID string, params PrefixDeleteParams, opts ...option.RequestOption) (res *[]PrefixDeleteResponse, err error) { opts = append(r.Options[:], opts...) var env PrefixDeleteResponseEnvelope path := fmt.Sprintf("accounts/%s/addressing/prefixes/%s", params.AccountID, prefixID) @@ -173,30 +171,7 @@ func (r prefixJSON) RawJSON() string { return r.raw } -// Union satisfied by [addressing.PrefixDeleteResponseUnknown], -// [addressing.PrefixDeleteResponseArray] or [shared.UnionString]. -type PrefixDeleteResponseUnion interface { - ImplementsAddressingPrefixDeleteResponseUnion() -} - -func init() { - apijson.RegisterUnion( - reflect.TypeOf((*PrefixDeleteResponseUnion)(nil)).Elem(), - "", - apijson.UnionVariant{ - TypeFilter: gjson.JSON, - Type: reflect.TypeOf(PrefixDeleteResponseArray{}), - }, - apijson.UnionVariant{ - TypeFilter: gjson.String, - Type: reflect.TypeOf(shared.UnionString("")), - }, - ) -} - -type PrefixDeleteResponseArray []interface{} - -func (r PrefixDeleteResponseArray) ImplementsAddressingPrefixDeleteResponseUnion() {} +type PrefixDeleteResponse = interface{} type PrefixNewParams struct { // Identifier @@ -216,9 +191,9 @@ func (r PrefixNewParams) MarshalJSON() (data []byte, err error) { type PrefixNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Prefix `json:"result,required"` // Whether the API call was successful Success PrefixNewResponseEnvelopeSuccess `json:"success,required"` + Result Prefix `json:"result"` JSON prefixNewResponseEnvelopeJSON `json:"-"` } @@ -227,8 +202,8 @@ type PrefixNewResponseEnvelope struct { type prefixNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -272,11 +247,11 @@ func (r PrefixDeleteParams) MarshalJSON() (data []byte, err error) { } type PrefixDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result PrefixDeleteResponseUnion `json:"result,required,nullable"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success PrefixDeleteResponseEnvelopeSuccess `json:"success,required"` + Result []PrefixDeleteResponse `json:"result,nullable"` ResultInfo PrefixDeleteResponseEnvelopeResultInfo `json:"result_info"` JSON prefixDeleteResponseEnvelopeJSON `json:"-"` } @@ -286,8 +261,8 @@ type PrefixDeleteResponseEnvelope struct { type prefixDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field ResultInfo apijson.Field raw string ExtraFields map[string]apijson.Field @@ -361,9 +336,9 @@ func (r PrefixEditParams) MarshalJSON() (data []byte, err error) { type PrefixEditResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Prefix `json:"result,required"` // Whether the API call was successful Success PrefixEditResponseEnvelopeSuccess `json:"success,required"` + Result Prefix `json:"result"` JSON prefixEditResponseEnvelopeJSON `json:"-"` } @@ -372,8 +347,8 @@ type PrefixEditResponseEnvelope struct { type prefixEditResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -409,9 +384,9 @@ type PrefixGetParams struct { type PrefixGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Prefix `json:"result,required"` // Whether the API call was successful Success PrefixGetResponseEnvelopeSuccess `json:"success,required"` + Result Prefix `json:"result"` JSON prefixGetResponseEnvelopeJSON `json:"-"` } @@ -420,8 +395,8 @@ type PrefixGetResponseEnvelope struct { type prefixGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/addressing/prefixbgpbinding.go b/addressing/prefixbgpbinding.go index 9a682e84f4c..1004efd6e03 100644 --- a/addressing/prefixbgpbinding.go +++ b/addressing/prefixbgpbinding.go @@ -6,7 +6,6 @@ import ( "context" "fmt" "net/http" - "reflect" "github.com/cloudflare/cloudflare-go/v2/internal/apijson" "github.com/cloudflare/cloudflare-go/v2/internal/pagination" @@ -14,7 +13,6 @@ import ( "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" "github.com/cloudflare/cloudflare-go/v2/internal/shared" "github.com/cloudflare/cloudflare-go/v2/option" - "github.com/tidwall/gjson" ) // PrefixBGPBindingService contains methods and other services that help with @@ -85,15 +83,10 @@ func (r *PrefixBGPBindingService) ListAutoPaging(ctx context.Context, prefixID s } // Delete a Service Binding -func (r *PrefixBGPBindingService) Delete(ctx context.Context, prefixID string, bindingID string, body PrefixBGPBindingDeleteParams, opts ...option.RequestOption) (res *PrefixBGPBindingDeleteResponseUnion, err error) { +func (r *PrefixBGPBindingService) Delete(ctx context.Context, prefixID string, bindingID string, body PrefixBGPBindingDeleteParams, opts ...option.RequestOption) (res *PrefixBGPBindingDeleteResponse, err error) { opts = append(r.Options[:], opts...) - var env PrefixBGPBindingDeleteResponseEnvelope path := fmt.Sprintf("accounts/%s/addressing/prefixes/%s/bindings/%s", body.AccountID, prefixID, bindingID) - err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, nil, &env, opts...) - if err != nil { - return - } - res = &env.Result + err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, nil, &res, opts...) return } @@ -214,30 +207,45 @@ func (r ServiceBindingProvisioningParam) MarshalJSON() (data []byte, err error) return apijson.MarshalRoot(r) } -// Union satisfied by [addressing.PrefixBGPBindingDeleteResponseUnknown], -// [addressing.PrefixBGPBindingDeleteResponseArray] or [shared.UnionString]. -type PrefixBGPBindingDeleteResponseUnion interface { - ImplementsAddressingPrefixBGPBindingDeleteResponseUnion() +type PrefixBGPBindingDeleteResponse struct { + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` + // Whether the API call was successful + Success PrefixBGPBindingDeleteResponseSuccess `json:"success,required"` + JSON prefixBGPBindingDeleteResponseJSON `json:"-"` } -func init() { - apijson.RegisterUnion( - reflect.TypeOf((*PrefixBGPBindingDeleteResponseUnion)(nil)).Elem(), - "", - apijson.UnionVariant{ - TypeFilter: gjson.JSON, - Type: reflect.TypeOf(PrefixBGPBindingDeleteResponseArray{}), - }, - apijson.UnionVariant{ - TypeFilter: gjson.String, - Type: reflect.TypeOf(shared.UnionString("")), - }, - ) +// prefixBGPBindingDeleteResponseJSON contains the JSON metadata for the struct +// [PrefixBGPBindingDeleteResponse] +type prefixBGPBindingDeleteResponseJSON struct { + Errors apijson.Field + Messages apijson.Field + Success apijson.Field + raw string + ExtraFields map[string]apijson.Field } -type PrefixBGPBindingDeleteResponseArray []interface{} +func (r *PrefixBGPBindingDeleteResponse) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} -func (r PrefixBGPBindingDeleteResponseArray) ImplementsAddressingPrefixBGPBindingDeleteResponseUnion() { +func (r prefixBGPBindingDeleteResponseJSON) RawJSON() string { + return r.raw +} + +// Whether the API call was successful +type PrefixBGPBindingDeleteResponseSuccess bool + +const ( + PrefixBGPBindingDeleteResponseSuccessTrue PrefixBGPBindingDeleteResponseSuccess = true +) + +func (r PrefixBGPBindingDeleteResponseSuccess) IsKnown() bool { + switch r { + case PrefixBGPBindingDeleteResponseSuccessTrue: + return true + } + return false } type PrefixBGPBindingNewParams struct { @@ -256,9 +264,9 @@ func (r PrefixBGPBindingNewParams) MarshalJSON() (data []byte, err error) { type PrefixBGPBindingNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result ServiceBinding `json:"result,required"` // Whether the API call was successful Success PrefixBGPBindingNewResponseEnvelopeSuccess `json:"success,required"` + Result ServiceBinding `json:"result"` JSON prefixBGPBindingNewResponseEnvelopeJSON `json:"-"` } @@ -267,8 +275,8 @@ type PrefixBGPBindingNewResponseEnvelope struct { type prefixBGPBindingNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -306,49 +314,6 @@ type PrefixBGPBindingDeleteParams struct { AccountID param.Field[string] `path:"account_id,required"` } -type PrefixBGPBindingDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result PrefixBGPBindingDeleteResponseUnion `json:"result,required"` - // Whether the API call was successful - Success PrefixBGPBindingDeleteResponseEnvelopeSuccess `json:"success,required"` - JSON prefixBGPBindingDeleteResponseEnvelopeJSON `json:"-"` -} - -// prefixBGPBindingDeleteResponseEnvelopeJSON contains the JSON metadata for the -// struct [PrefixBGPBindingDeleteResponseEnvelope] -type prefixBGPBindingDeleteResponseEnvelopeJSON struct { - Errors apijson.Field - Messages apijson.Field - Result apijson.Field - Success apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *PrefixBGPBindingDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r prefixBGPBindingDeleteResponseEnvelopeJSON) RawJSON() string { - return r.raw -} - -// Whether the API call was successful -type PrefixBGPBindingDeleteResponseEnvelopeSuccess bool - -const ( - PrefixBGPBindingDeleteResponseEnvelopeSuccessTrue PrefixBGPBindingDeleteResponseEnvelopeSuccess = true -) - -func (r PrefixBGPBindingDeleteResponseEnvelopeSuccess) IsKnown() bool { - switch r { - case PrefixBGPBindingDeleteResponseEnvelopeSuccessTrue: - return true - } - return false -} - type PrefixBGPBindingGetParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` @@ -357,9 +322,9 @@ type PrefixBGPBindingGetParams struct { type PrefixBGPBindingGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result ServiceBinding `json:"result,required"` // Whether the API call was successful Success PrefixBGPBindingGetResponseEnvelopeSuccess `json:"success,required"` + Result ServiceBinding `json:"result"` JSON prefixBGPBindingGetResponseEnvelopeJSON `json:"-"` } @@ -368,8 +333,8 @@ type PrefixBGPBindingGetResponseEnvelope struct { type prefixBGPBindingGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/addressing/prefixbgpprefix.go b/addressing/prefixbgpprefix.go index 211a9c9a42e..69a3dad3509 100644 --- a/addressing/prefixbgpprefix.go +++ b/addressing/prefixbgpprefix.go @@ -213,9 +213,9 @@ func (r PrefixBGPPrefixEditParamsOnDemand) MarshalJSON() (data []byte, err error type PrefixBGPPrefixEditResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result BGPPrefix `json:"result,required"` // Whether the API call was successful Success PrefixBGPPrefixEditResponseEnvelopeSuccess `json:"success,required"` + Result BGPPrefix `json:"result"` JSON prefixBGPPrefixEditResponseEnvelopeJSON `json:"-"` } @@ -224,8 +224,8 @@ type PrefixBGPPrefixEditResponseEnvelope struct { type prefixBGPPrefixEditResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -261,9 +261,9 @@ type PrefixBGPPrefixGetParams struct { type PrefixBGPPrefixGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result BGPPrefix `json:"result,required"` // Whether the API call was successful Success PrefixBGPPrefixGetResponseEnvelopeSuccess `json:"success,required"` + Result BGPPrefix `json:"result"` JSON prefixBGPPrefixGetResponseEnvelopeJSON `json:"-"` } @@ -272,8 +272,8 @@ type PrefixBGPPrefixGetResponseEnvelope struct { type prefixBGPPrefixGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/addressing/prefixbgpstatus.go b/addressing/prefixbgpstatus.go index 787c7c00020..0a68c435f37 100644 --- a/addressing/prefixbgpstatus.go +++ b/addressing/prefixbgpstatus.go @@ -123,11 +123,11 @@ func (r PrefixBGPStatusEditParams) MarshalJSON() (data []byte, err error) { } type PrefixBGPStatusEditResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result PrefixBGPStatusEditResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success PrefixBGPStatusEditResponseEnvelopeSuccess `json:"success,required"` + Result PrefixBGPStatusEditResponse `json:"result"` JSON prefixBGPStatusEditResponseEnvelopeJSON `json:"-"` } @@ -136,8 +136,8 @@ type PrefixBGPStatusEditResponseEnvelope struct { type prefixBGPStatusEditResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -171,11 +171,11 @@ type PrefixBGPStatusGetParams struct { } type PrefixBGPStatusGetResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result PrefixBGPStatusGetResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success PrefixBGPStatusGetResponseEnvelopeSuccess `json:"success,required"` + Result PrefixBGPStatusGetResponse `json:"result"` JSON prefixBGPStatusGetResponseEnvelopeJSON `json:"-"` } @@ -184,8 +184,8 @@ type PrefixBGPStatusGetResponseEnvelope struct { type prefixBGPStatusGetResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/addressing/prefixdelegation.go b/addressing/prefixdelegation.go index 79d1f536dc0..cfed1b68bd9 100644 --- a/addressing/prefixdelegation.go +++ b/addressing/prefixdelegation.go @@ -155,9 +155,9 @@ func (r PrefixDelegationNewParams) MarshalJSON() (data []byte, err error) { type PrefixDelegationNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result Delegations `json:"result,required"` // Whether the API call was successful Success PrefixDelegationNewResponseEnvelopeSuccess `json:"success,required"` + Result Delegations `json:"result"` JSON prefixDelegationNewResponseEnvelopeJSON `json:"-"` } @@ -166,8 +166,8 @@ type PrefixDelegationNewResponseEnvelope struct { type prefixDelegationNewResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -211,11 +211,11 @@ func (r PrefixDelegationDeleteParams) MarshalJSON() (data []byte, err error) { } type PrefixDelegationDeleteResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result PrefixDelegationDeleteResponse `json:"result,required"` + Errors []shared.ResponseInfo `json:"errors,required"` + Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success PrefixDelegationDeleteResponseEnvelopeSuccess `json:"success,required"` + Result PrefixDelegationDeleteResponse `json:"result"` JSON prefixDelegationDeleteResponseEnvelopeJSON `json:"-"` } @@ -224,8 +224,8 @@ type PrefixDelegationDeleteResponseEnvelope struct { type prefixDelegationDeleteResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/api.md b/api.md index 0d716ce7bf7..a007d721e62 100644 --- a/api.md +++ b/api.md @@ -3010,14 +3010,14 @@ Response Types: - addressing.AddressMap - addressing.AddressMapNewResponse -- addressing.AddressMapDeleteResponseUnion +- addressing.AddressMapDeleteResponse - addressing.AddressMapGetResponse Methods: - client.Addressing.AddressMaps.New(ctx context.Context, params addressing.AddressMapNewParams) (addressing.AddressMapNewResponse, error) - client.Addressing.AddressMaps.List(ctx context.Context, query addressing.AddressMapListParams) (pagination.SinglePage[addressing.AddressMap], error) -- client.Addressing.AddressMaps.Delete(ctx context.Context, addressMapID string, params addressing.AddressMapDeleteParams) (addressing.AddressMapDeleteResponseUnion, error) +- client.Addressing.AddressMaps.Delete(ctx context.Context, addressMapID string, params addressing.AddressMapDeleteParams) ([]addressing.AddressMapDeleteResponse, error) - client.Addressing.AddressMaps.Edit(ctx context.Context, addressMapID string, params addressing.AddressMapEditParams) (addressing.AddressMap, error) - client.Addressing.AddressMaps.Get(ctx context.Context, addressMapID string, query addressing.AddressMapGetParams) (addressing.AddressMapGetResponse, error) @@ -3025,37 +3025,37 @@ Methods: Response Types: -- addressing.AddressMapAccountUpdateResponseUnion -- addressing.AddressMapAccountDeleteResponseUnion +- addressing.AddressMapAccountUpdateResponse +- addressing.AddressMapAccountDeleteResponse Methods: -- client.Addressing.AddressMaps.Accounts.Update(ctx context.Context, addressMapID string, params addressing.AddressMapAccountUpdateParams) (addressing.AddressMapAccountUpdateResponseUnion, error) -- client.Addressing.AddressMaps.Accounts.Delete(ctx context.Context, addressMapID string, params addressing.AddressMapAccountDeleteParams) (addressing.AddressMapAccountDeleteResponseUnion, error) +- client.Addressing.AddressMaps.Accounts.Update(ctx context.Context, addressMapID string, params addressing.AddressMapAccountUpdateParams) ([]addressing.AddressMapAccountUpdateResponse, error) +- client.Addressing.AddressMaps.Accounts.Delete(ctx context.Context, addressMapID string, params addressing.AddressMapAccountDeleteParams) ([]addressing.AddressMapAccountDeleteResponse, error) ### IPs Response Types: -- addressing.AddressMapIPUpdateResponseUnion -- addressing.AddressMapIPDeleteResponseUnion +- addressing.AddressMapIPUpdateResponse +- addressing.AddressMapIPDeleteResponse Methods: -- client.Addressing.AddressMaps.IPs.Update(ctx context.Context, addressMapID string, ipAddress string, params addressing.AddressMapIPUpdateParams) (addressing.AddressMapIPUpdateResponseUnion, error) -- client.Addressing.AddressMaps.IPs.Delete(ctx context.Context, addressMapID string, ipAddress string, params addressing.AddressMapIPDeleteParams) (addressing.AddressMapIPDeleteResponseUnion, error) +- client.Addressing.AddressMaps.IPs.Update(ctx context.Context, addressMapID string, ipAddress string, params addressing.AddressMapIPUpdateParams) ([]addressing.AddressMapIPUpdateResponse, error) +- client.Addressing.AddressMaps.IPs.Delete(ctx context.Context, addressMapID string, ipAddress string, params addressing.AddressMapIPDeleteParams) ([]addressing.AddressMapIPDeleteResponse, error) ### Zones Response Types: -- addressing.AddressMapZoneUpdateResponseUnion -- addressing.AddressMapZoneDeleteResponseUnion +- addressing.AddressMapZoneUpdateResponse +- addressing.AddressMapZoneDeleteResponse Methods: -- client.Addressing.AddressMaps.Zones.Update(ctx context.Context, addressMapID string, params addressing.AddressMapZoneUpdateParams) (addressing.AddressMapZoneUpdateResponseUnion, error) -- client.Addressing.AddressMaps.Zones.Delete(ctx context.Context, addressMapID string, params addressing.AddressMapZoneDeleteParams) (addressing.AddressMapZoneDeleteResponseUnion, error) +- client.Addressing.AddressMaps.Zones.Update(ctx context.Context, addressMapID string, params addressing.AddressMapZoneUpdateParams) ([]addressing.AddressMapZoneUpdateResponse, error) +- client.Addressing.AddressMaps.Zones.Delete(ctx context.Context, addressMapID string, params addressing.AddressMapZoneDeleteParams) ([]addressing.AddressMapZoneDeleteResponse, error) ## LOADocuments @@ -3082,13 +3082,13 @@ Methods: Response Types: - addressing.Prefix -- addressing.PrefixDeleteResponseUnion +- addressing.PrefixDeleteResponse Methods: - client.Addressing.Prefixes.New(ctx context.Context, params addressing.PrefixNewParams) (addressing.Prefix, error) - client.Addressing.Prefixes.List(ctx context.Context, query addressing.PrefixListParams) (pagination.SinglePage[addressing.Prefix], error) -- client.Addressing.Prefixes.Delete(ctx context.Context, prefixID string, params addressing.PrefixDeleteParams) (addressing.PrefixDeleteResponseUnion, error) +- client.Addressing.Prefixes.Delete(ctx context.Context, prefixID string, params addressing.PrefixDeleteParams) ([]addressing.PrefixDeleteResponse, error) - client.Addressing.Prefixes.Edit(ctx context.Context, prefixID string, params addressing.PrefixEditParams) (addressing.Prefix, error) - client.Addressing.Prefixes.Get(ctx context.Context, prefixID string, query addressing.PrefixGetParams) (addressing.Prefix, error) @@ -3103,13 +3103,13 @@ Params Types: Response Types: - addressing.ServiceBinding -- addressing.PrefixBGPBindingDeleteResponseUnion +- addressing.PrefixBGPBindingDeleteResponse Methods: - client.Addressing.Prefixes.BGP.Bindings.New(ctx context.Context, prefixID string, params addressing.PrefixBGPBindingNewParams) (addressing.ServiceBinding, error) - client.Addressing.Prefixes.BGP.Bindings.List(ctx context.Context, prefixID string, query addressing.PrefixBGPBindingListParams) (pagination.SinglePage[addressing.ServiceBinding], error) -- client.Addressing.Prefixes.BGP.Bindings.Delete(ctx context.Context, prefixID string, bindingID string, body addressing.PrefixBGPBindingDeleteParams) (addressing.PrefixBGPBindingDeleteResponseUnion, error) +- client.Addressing.Prefixes.BGP.Bindings.Delete(ctx context.Context, prefixID string, bindingID string, body addressing.PrefixBGPBindingDeleteParams) (addressing.PrefixBGPBindingDeleteResponse, error) - client.Addressing.Prefixes.BGP.Bindings.Get(ctx context.Context, prefixID string, bindingID string, query addressing.PrefixBGPBindingGetParams) (addressing.ServiceBinding, error) #### Prefixes @@ -3565,19 +3565,14 @@ Response Types: - magic_transit.Site - magic_transit.SiteLocation -- magic_transit.SiteNewResponse -- magic_transit.SiteUpdateResponse -- magic_transit.SiteListResponse -- magic_transit.SiteDeleteResponse -- magic_transit.SiteGetResponse Methods: -- client.MagicTransit.Sites.New(ctx context.Context, params magic_transit.SiteNewParams) (magic_transit.SiteNewResponse, error) -- client.MagicTransit.Sites.Update(ctx context.Context, siteID string, params magic_transit.SiteUpdateParams) (magic_transit.SiteUpdateResponse, error) -- client.MagicTransit.Sites.List(ctx context.Context, params magic_transit.SiteListParams) (magic_transit.SiteListResponse, error) -- client.MagicTransit.Sites.Delete(ctx context.Context, siteID string, params magic_transit.SiteDeleteParams) (magic_transit.SiteDeleteResponse, error) -- client.MagicTransit.Sites.Get(ctx context.Context, siteID string, query magic_transit.SiteGetParams) (magic_transit.SiteGetResponse, error) +- client.MagicTransit.Sites.New(ctx context.Context, params magic_transit.SiteNewParams) (magic_transit.Site, error) +- client.MagicTransit.Sites.Update(ctx context.Context, siteID string, params magic_transit.SiteUpdateParams) (magic_transit.Site, error) +- client.MagicTransit.Sites.List(ctx context.Context, params magic_transit.SiteListParams) (pagination.SinglePage[magic_transit.Site], error) +- client.MagicTransit.Sites.Delete(ctx context.Context, siteID string, params magic_transit.SiteDeleteParams) (magic_transit.Site, error) +- client.MagicTransit.Sites.Get(ctx context.Context, siteID string, query magic_transit.SiteGetParams) (magic_transit.Site, error) ### ACLs @@ -3585,28 +3580,21 @@ Params Types: - magic_transit.ACLParam - magic_transit.ACLConfigurationParam -- magic_transit.AllowedProtocol - magic_transit.SubnetUnionParam Response Types: - magic_transit.ACL - magic_transit.ACLConfiguration -- magic_transit.AllowedProtocol - magic_transit.SubnetUnion -- magic_transit.SiteACLNewResponse -- magic_transit.SiteACLUpdateResponse -- magic_transit.SiteACLListResponse -- magic_transit.SiteACLDeleteResponse -- magic_transit.SiteACLGetResponse Methods: -- client.MagicTransit.Sites.ACLs.New(ctx context.Context, siteID string, params magic_transit.SiteACLNewParams) (magic_transit.SiteACLNewResponse, error) -- client.MagicTransit.Sites.ACLs.Update(ctx context.Context, siteID string, aclIdentifier string, params magic_transit.SiteACLUpdateParams) (magic_transit.SiteACLUpdateResponse, error) -- client.MagicTransit.Sites.ACLs.List(ctx context.Context, siteID string, query magic_transit.SiteACLListParams) (magic_transit.SiteACLListResponse, error) -- client.MagicTransit.Sites.ACLs.Delete(ctx context.Context, siteID string, aclIdentifier string, params magic_transit.SiteACLDeleteParams) (magic_transit.SiteACLDeleteResponse, error) -- client.MagicTransit.Sites.ACLs.Get(ctx context.Context, siteID string, aclIdentifier string, query magic_transit.SiteACLGetParams) (magic_transit.SiteACLGetResponse, error) +- client.MagicTransit.Sites.ACLs.New(ctx context.Context, siteID string, params magic_transit.SiteACLNewParams) (magic_transit.ACL, error) +- client.MagicTransit.Sites.ACLs.Update(ctx context.Context, siteID string, aclIdentifier string, params magic_transit.SiteACLUpdateParams) (magic_transit.ACL, error) +- client.MagicTransit.Sites.ACLs.List(ctx context.Context, siteID string, query magic_transit.SiteACLListParams) (pagination.SinglePage[magic_transit.ACL], error) +- client.MagicTransit.Sites.ACLs.Delete(ctx context.Context, siteID string, aclIdentifier string, params magic_transit.SiteACLDeleteParams) (magic_transit.ACL, error) +- client.MagicTransit.Sites.ACLs.Get(ctx context.Context, siteID string, aclIdentifier string, query magic_transit.SiteACLGetParams) (magic_transit.ACL, error) ### LANs @@ -3626,19 +3614,14 @@ Response Types: - magic_transit.LANStaticAddressing - magic_transit.Nat - magic_transit.RoutedSubnet -- magic_transit.SiteLANNewResponse -- magic_transit.SiteLANUpdateResponse -- magic_transit.SiteLANListResponse -- magic_transit.SiteLANDeleteResponse -- magic_transit.SiteLANGetResponse Methods: -- client.MagicTransit.Sites.LANs.New(ctx context.Context, siteID string, params magic_transit.SiteLANNewParams) (magic_transit.SiteLANNewResponse, error) -- client.MagicTransit.Sites.LANs.Update(ctx context.Context, siteID string, lanID string, params magic_transit.SiteLANUpdateParams) (magic_transit.SiteLANUpdateResponse, error) -- client.MagicTransit.Sites.LANs.List(ctx context.Context, siteID string, query magic_transit.SiteLANListParams) (magic_transit.SiteLANListResponse, error) -- client.MagicTransit.Sites.LANs.Delete(ctx context.Context, siteID string, lanID string, params magic_transit.SiteLANDeleteParams) (magic_transit.SiteLANDeleteResponse, error) -- client.MagicTransit.Sites.LANs.Get(ctx context.Context, siteID string, lanID string, query magic_transit.SiteLANGetParams) (magic_transit.SiteLANGetResponse, error) +- client.MagicTransit.Sites.LANs.New(ctx context.Context, siteID string, params magic_transit.SiteLANNewParams) ([]magic_transit.LAN, error) +- client.MagicTransit.Sites.LANs.Update(ctx context.Context, siteID string, lanID string, params magic_transit.SiteLANUpdateParams) (magic_transit.LAN, error) +- client.MagicTransit.Sites.LANs.List(ctx context.Context, siteID string, query magic_transit.SiteLANListParams) (pagination.SinglePage[magic_transit.LAN], error) +- client.MagicTransit.Sites.LANs.Delete(ctx context.Context, siteID string, lanID string, params magic_transit.SiteLANDeleteParams) (magic_transit.LAN, error) +- client.MagicTransit.Sites.LANs.Get(ctx context.Context, siteID string, lanID string, query magic_transit.SiteLANGetParams) (magic_transit.LAN, error) ### WANs @@ -3650,19 +3633,14 @@ Response Types: - magic_transit.WAN - magic_transit.WANStaticAddressing -- magic_transit.SiteWANNewResponse -- magic_transit.SiteWANUpdateResponse -- magic_transit.SiteWANListResponse -- magic_transit.SiteWANDeleteResponse -- magic_transit.SiteWANGetResponse Methods: -- client.MagicTransit.Sites.WANs.New(ctx context.Context, siteID string, params magic_transit.SiteWANNewParams) (magic_transit.SiteWANNewResponse, error) -- client.MagicTransit.Sites.WANs.Update(ctx context.Context, siteID string, wanID string, params magic_transit.SiteWANUpdateParams) (magic_transit.SiteWANUpdateResponse, error) -- client.MagicTransit.Sites.WANs.List(ctx context.Context, siteID string, query magic_transit.SiteWANListParams) (magic_transit.SiteWANListResponse, error) -- client.MagicTransit.Sites.WANs.Delete(ctx context.Context, siteID string, wanID string, params magic_transit.SiteWANDeleteParams) (magic_transit.SiteWANDeleteResponse, error) -- client.MagicTransit.Sites.WANs.Get(ctx context.Context, siteID string, wanID string, query magic_transit.SiteWANGetParams) (magic_transit.SiteWANGetResponse, error) +- client.MagicTransit.Sites.WANs.New(ctx context.Context, siteID string, params magic_transit.SiteWANNewParams) ([]magic_transit.WAN, error) +- client.MagicTransit.Sites.WANs.Update(ctx context.Context, siteID string, wanID string, params magic_transit.SiteWANUpdateParams) (magic_transit.WAN, error) +- client.MagicTransit.Sites.WANs.List(ctx context.Context, siteID string, query magic_transit.SiteWANListParams) (pagination.SinglePage[magic_transit.WAN], error) +- client.MagicTransit.Sites.WANs.Delete(ctx context.Context, siteID string, wanID string, params magic_transit.SiteWANDeleteParams) (magic_transit.WAN, error) +- client.MagicTransit.Sites.WANs.Get(ctx context.Context, siteID string, wanID string, query magic_transit.SiteWANGetParams) (magic_transit.WAN, error) # MagicNetworkMonitoring diff --git a/internal/shared/shared.go b/internal/shared/shared.go index 3d1014944c3..cba6e01452e 100644 --- a/internal/shared/shared.go +++ b/internal/shared/shared.go @@ -179,25 +179,25 @@ func (r auditLogResourceJSON) RawJSON() string { // A Cloudflare Tunnel that connects your origin to Cloudflare's edge. type CloudflareTunnel struct { // UUID of the tunnel. - ID string `json:"id"` + ID string `json:"id" format:"uuid"` // Cloudflare account ID AccountTag string `json:"account_tag"` // The Cloudflare Tunnel connections between your origin and Cloudflare's edge. Connections []CloudflareTunnelConnection `json:"connections"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. - ConnsActiveAt time.Time `json:"conns_active_at,nullable" format:"date-time"` + ConnsActiveAt time.Time `json:"conns_active_at" format:"date-time"` // Timestamp of when the tunnel became inactive (no connections to Cloudflare's // edge). If `null`, the tunnel is active. - ConnsInactiveAt time.Time `json:"conns_inactive_at,nullable" format:"date-time"` - // Timestamp of when the tunnel was created. + ConnsInactiveAt time.Time `json:"conns_inactive_at" format:"date-time"` + // Timestamp of when the resource was created. CreatedAt time.Time `json:"created_at" format:"date-time"` - // Timestamp of when the tunnel was deleted. If `null`, the tunnel has not been + // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. - DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` + DeletedAt time.Time `json:"deleted_at" format:"date-time"` // Metadata associated with the tunnel. Metadata interface{} `json:"metadata"` - // A user-friendly name for the tunnel. + // A user-friendly name for a tunnel. Name string `json:"name"` // If `true`, the tunnel can be configured remotely from the Zero Trust dashboard. // If `false`, the tunnel must be configured locally on the origin machine. @@ -255,9 +255,9 @@ func (r CloudflareTunnel) ImplementsZeroTrustTunnelEditResponse() {} type CloudflareTunnelConnection struct { // UUID of the Cloudflare Tunnel connection. - ID string `json:"id"` - // UUID of the cloudflared instance. - ClientID interface{} `json:"client_id"` + ID string `json:"id" format:"uuid"` + // UUID of the Cloudflare Tunnel connector. + ClientID string `json:"client_id" format:"uuid"` // The cloudflared version used to establish this connection. ClientVersion string `json:"client_version"` // The Cloudflare data center used for this connection. @@ -272,7 +272,7 @@ type CloudflareTunnelConnection struct { // The public IP address of the host running cloudflared. OriginIP string `json:"origin_ip"` // UUID of the Cloudflare Tunnel connection. - UUID string `json:"uuid"` + UUID string `json:"uuid" format:"uuid"` JSON cloudflareTunnelConnectionJSON `json:"-"` } diff --git a/internal/shared/union.go b/internal/shared/union.go index d4cf1476d75..ce0501634e7 100644 --- a/internal/shared/union.go +++ b/internal/shared/union.go @@ -95,15 +95,6 @@ func (UnionString) ImplementsSpectrumOriginPortUnion() func (UnionString) ImplementsSpectrumAnalyticsEventBytimeGetResponseUnion() {} func (UnionString) ImplementsSpectrumAnalyticsEventSummaryGetResponseUnion() {} func (UnionString) ImplementsSpectrumAppGetResponseUnion() {} -func (UnionString) ImplementsAddressingAddressMapDeleteResponseUnion() {} -func (UnionString) ImplementsAddressingAddressMapAccountUpdateResponseUnion() {} -func (UnionString) ImplementsAddressingAddressMapAccountDeleteResponseUnion() {} -func (UnionString) ImplementsAddressingAddressMapIPUpdateResponseUnion() {} -func (UnionString) ImplementsAddressingAddressMapIPDeleteResponseUnion() {} -func (UnionString) ImplementsAddressingAddressMapZoneUpdateResponseUnion() {} -func (UnionString) ImplementsAddressingAddressMapZoneDeleteResponseUnion() {} -func (UnionString) ImplementsAddressingPrefixDeleteResponseUnion() {} -func (UnionString) ImplementsAddressingPrefixBGPBindingDeleteResponseUnion() {} func (UnionString) ImplementsAuditLogsAuditLogListResponse() {} func (UnionString) ImplementsBillingProfileGetResponseUnion() {} func (UnionString) ImplementsImagesImageVariantsUnion() {} diff --git a/ips/ip.go b/ips/ip.go index 8c7f3331430..06513d4043b 100644 --- a/ips/ip.go +++ b/ips/ip.go @@ -183,9 +183,9 @@ func (r IPListParams) URLQuery() (v url.Values) { type IPListResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result IPListResponse `json:"result,required"` // Whether the API call was successful Success IPListResponseEnvelopeSuccess `json:"success,required"` + Result IPListResponse `json:"result"` JSON ipListResponseEnvelopeJSON `json:"-"` } @@ -194,8 +194,8 @@ type IPListResponseEnvelope struct { type ipListResponseEnvelopeJSON struct { Errors apijson.Field Messages apijson.Field - Result apijson.Field Success apijson.Field + Result apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/magic_transit/site.go b/magic_transit/site.go index 9afad017e40..e5f320a267b 100644 --- a/magic_transit/site.go +++ b/magic_transit/site.go @@ -10,6 +10,7 @@ import ( "github.com/cloudflare/cloudflare-go/v2/internal/apijson" "github.com/cloudflare/cloudflare-go/v2/internal/apiquery" + "github.com/cloudflare/cloudflare-go/v2/internal/pagination" "github.com/cloudflare/cloudflare-go/v2/internal/param" "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" "github.com/cloudflare/cloudflare-go/v2/internal/shared" @@ -40,7 +41,7 @@ func NewSiteService(opts ...option.RequestOption) (r *SiteService) { } // Creates a new Site -func (r *SiteService) New(ctx context.Context, params SiteNewParams, opts ...option.RequestOption) (res *SiteNewResponse, err error) { +func (r *SiteService) New(ctx context.Context, params SiteNewParams, opts ...option.RequestOption) (res *Site, err error) { opts = append(r.Options[:], opts...) var env SiteNewResponseEnvelope path := fmt.Sprintf("accounts/%s/magic/sites", params.AccountID) @@ -53,7 +54,7 @@ func (r *SiteService) New(ctx context.Context, params SiteNewParams, opts ...opt } // Update a specific Site. -func (r *SiteService) Update(ctx context.Context, siteID string, params SiteUpdateParams, opts ...option.RequestOption) (res *SiteUpdateResponse, err error) { +func (r *SiteService) Update(ctx context.Context, siteID string, params SiteUpdateParams, opts ...option.RequestOption) (res *Site, err error) { opts = append(r.Options[:], opts...) var env SiteUpdateResponseEnvelope path := fmt.Sprintf("accounts/%s/magic/sites/%s", params.AccountID, siteID) @@ -68,20 +69,32 @@ func (r *SiteService) Update(ctx context.Context, siteID string, params SiteUpda // Lists Sites associated with an account. Use connector_identifier query param to // return sites where connector_identifier matches either site.ConnectorID or // site.SecondaryConnectorID. -func (r *SiteService) List(ctx context.Context, params SiteListParams, opts ...option.RequestOption) (res *SiteListResponse, err error) { - opts = append(r.Options[:], opts...) - var env SiteListResponseEnvelope +func (r *SiteService) List(ctx context.Context, params SiteListParams, opts ...option.RequestOption) (res *pagination.SinglePage[Site], err error) { + var raw *http.Response + opts = append(r.Options, opts...) + opts = append([]option.RequestOption{option.WithResponseInto(&raw)}, opts...) path := fmt.Sprintf("accounts/%s/magic/sites", params.AccountID) - err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, params, &env, opts...) + cfg, err := requestconfig.NewRequestConfig(ctx, http.MethodGet, path, params, &res, opts...) if err != nil { - return + return nil, err } - res = &env.Result - return + err = cfg.Execute() + if err != nil { + return nil, err + } + res.SetPageConfig(cfg, raw) + return res, nil +} + +// Lists Sites associated with an account. Use connector_identifier query param to +// return sites where connector_identifier matches either site.ConnectorID or +// site.SecondaryConnectorID. +func (r *SiteService) ListAutoPaging(ctx context.Context, params SiteListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[Site] { + return pagination.NewSinglePageAutoPager(r.List(ctx, params, opts...)) } // Remove a specific Site. -func (r *SiteService) Delete(ctx context.Context, siteID string, params SiteDeleteParams, opts ...option.RequestOption) (res *SiteDeleteResponse, err error) { +func (r *SiteService) Delete(ctx context.Context, siteID string, params SiteDeleteParams, opts ...option.RequestOption) (res *Site, err error) { opts = append(r.Options[:], opts...) var env SiteDeleteResponseEnvelope path := fmt.Sprintf("accounts/%s/magic/sites/%s", params.AccountID, siteID) @@ -94,7 +107,7 @@ func (r *SiteService) Delete(ctx context.Context, siteID string, params SiteDele } // Get a specific Site. -func (r *SiteService) Get(ctx context.Context, siteID string, query SiteGetParams, opts ...option.RequestOption) (res *SiteGetResponse, err error) { +func (r *SiteService) Get(ctx context.Context, siteID string, query SiteGetParams, opts ...option.RequestOption) (res *Site, err error) { opts = append(r.Options[:], opts...) var env SiteGetResponseEnvelope path := fmt.Sprintf("accounts/%s/magic/sites/%s", query.AccountID, siteID) @@ -182,122 +195,9 @@ func (r SiteLocationParam) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -type SiteNewResponse struct { - Site Site `json:"site"` - JSON siteNewResponseJSON `json:"-"` -} - -// siteNewResponseJSON contains the JSON metadata for the struct [SiteNewResponse] -type siteNewResponseJSON struct { - Site apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *SiteNewResponse) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r siteNewResponseJSON) RawJSON() string { - return r.raw -} - -type SiteUpdateResponse struct { - Site Site `json:"site"` - JSON siteUpdateResponseJSON `json:"-"` -} - -// siteUpdateResponseJSON contains the JSON metadata for the struct -// [SiteUpdateResponse] -type siteUpdateResponseJSON struct { - Site apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *SiteUpdateResponse) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r siteUpdateResponseJSON) RawJSON() string { - return r.raw -} - -type SiteListResponse struct { - Sites []Site `json:"sites"` - JSON siteListResponseJSON `json:"-"` -} - -// siteListResponseJSON contains the JSON metadata for the struct -// [SiteListResponse] -type siteListResponseJSON struct { - Sites apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *SiteListResponse) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r siteListResponseJSON) RawJSON() string { - return r.raw -} - -type SiteDeleteResponse struct { - Deleted bool `json:"deleted"` - DeletedSite Site `json:"deleted_site"` - JSON siteDeleteResponseJSON `json:"-"` -} - -// siteDeleteResponseJSON contains the JSON metadata for the struct -// [SiteDeleteResponse] -type siteDeleteResponseJSON struct { - Deleted apijson.Field - DeletedSite apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *SiteDeleteResponse) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r siteDeleteResponseJSON) RawJSON() string { - return r.raw -} - -type SiteGetResponse struct { - Site Site `json:"site"` - JSON siteGetResponseJSON `json:"-"` -} - -// siteGetResponseJSON contains the JSON metadata for the struct [SiteGetResponse] -type siteGetResponseJSON struct { - Site apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *SiteGetResponse) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r siteGetResponseJSON) RawJSON() string { - return r.raw -} - type SiteNewParams struct { // Identifier - AccountID param.Field[string] `path:"account_id,required"` - Site param.Field[SiteNewParamsSite] `json:"site"` -} - -func (r SiteNewParams) MarshalJSON() (data []byte, err error) { - return apijson.MarshalRoot(r) -} - -type SiteNewParamsSite struct { + AccountID param.Field[string] `path:"account_id,required"` // The name of the site. Name param.Field[string] `json:"name,required"` // Magic WAN Connector identifier tag. @@ -312,14 +212,14 @@ type SiteNewParamsSite struct { SecondaryConnectorID param.Field[string] `json:"secondary_connector_id"` } -func (r SiteNewParamsSite) MarshalJSON() (data []byte, err error) { +func (r SiteNewParams) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } type SiteNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result SiteNewResponse `json:"result,required"` + Result Site `json:"result,required"` // Whether the API call was successful Success SiteNewResponseEnvelopeSuccess `json:"success,required"` JSON siteNewResponseEnvelopeJSON `json:"-"` @@ -361,15 +261,7 @@ func (r SiteNewResponseEnvelopeSuccess) IsKnown() bool { type SiteUpdateParams struct { // Identifier - AccountID param.Field[string] `path:"account_id,required"` - Site param.Field[SiteUpdateParamsSite] `json:"site"` -} - -func (r SiteUpdateParams) MarshalJSON() (data []byte, err error) { - return apijson.MarshalRoot(r) -} - -type SiteUpdateParamsSite struct { + AccountID param.Field[string] `path:"account_id,required"` // Magic WAN Connector identifier tag. ConnectorID param.Field[string] `json:"connector_id"` Description param.Field[string] `json:"description"` @@ -381,14 +273,14 @@ type SiteUpdateParamsSite struct { SecondaryConnectorID param.Field[string] `json:"secondary_connector_id"` } -func (r SiteUpdateParamsSite) MarshalJSON() (data []byte, err error) { +func (r SiteUpdateParams) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } type SiteUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result SiteUpdateResponse `json:"result,required"` + Result Site `json:"result,required"` // Whether the API call was successful Success SiteUpdateResponseEnvelopeSuccess `json:"success,required"` JSON siteUpdateResponseEnvelopeJSON `json:"-"` @@ -443,49 +335,6 @@ func (r SiteListParams) URLQuery() (v url.Values) { }) } -type SiteListResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result SiteListResponse `json:"result,required"` - // Whether the API call was successful - Success SiteListResponseEnvelopeSuccess `json:"success,required"` - JSON siteListResponseEnvelopeJSON `json:"-"` -} - -// siteListResponseEnvelopeJSON contains the JSON metadata for the struct -// [SiteListResponseEnvelope] -type siteListResponseEnvelopeJSON struct { - Errors apijson.Field - Messages apijson.Field - Result apijson.Field - Success apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *SiteListResponseEnvelope) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r siteListResponseEnvelopeJSON) RawJSON() string { - return r.raw -} - -// Whether the API call was successful -type SiteListResponseEnvelopeSuccess bool - -const ( - SiteListResponseEnvelopeSuccessTrue SiteListResponseEnvelopeSuccess = true -) - -func (r SiteListResponseEnvelopeSuccess) IsKnown() bool { - switch r { - case SiteListResponseEnvelopeSuccessTrue: - return true - } - return false -} - type SiteDeleteParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` @@ -499,7 +348,7 @@ func (r SiteDeleteParams) MarshalJSON() (data []byte, err error) { type SiteDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result SiteDeleteResponse `json:"result,required"` + Result Site `json:"result,required"` // Whether the API call was successful Success SiteDeleteResponseEnvelopeSuccess `json:"success,required"` JSON siteDeleteResponseEnvelopeJSON `json:"-"` @@ -547,7 +396,7 @@ type SiteGetParams struct { type SiteGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result SiteGetResponse `json:"result,required"` + Result Site `json:"result,required"` // Whether the API call was successful Success SiteGetResponseEnvelopeSuccess `json:"success,required"` JSON siteGetResponseEnvelopeJSON `json:"-"` diff --git a/magic_transit/site_test.go b/magic_transit/site_test.go index 6de303b55db..eac5b8ab0b2 100644 --- a/magic_transit/site_test.go +++ b/magic_transit/site_test.go @@ -29,18 +29,16 @@ func TestSiteNewWithOptionalParams(t *testing.T) { option.WithAPIEmail("user@example.com"), ) _, err := client.MagicTransit.Sites.New(context.TODO(), magic_transit.SiteNewParams{ - AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), - Site: cloudflare.F(magic_transit.SiteNewParamsSite{ - ConnectorID: cloudflare.F("ac60d3d0435248289d446cedd870bcf4"), - Description: cloudflare.F("string"), - HaMode: cloudflare.F(true), - Location: cloudflare.F(magic_transit.SiteLocationParam{ - Lat: cloudflare.F("string"), - Lon: cloudflare.F("string"), - }), - Name: cloudflare.F("site_1"), - SecondaryConnectorID: cloudflare.F("8d67040d3835dbcf46ce29da440dc482"), + AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), + Name: cloudflare.F("site_1"), + ConnectorID: cloudflare.F("ac60d3d0435248289d446cedd870bcf4"), + Description: cloudflare.F("string"), + HaMode: cloudflare.F(true), + Location: cloudflare.F(magic_transit.SiteLocationParam{ + Lat: cloudflare.F("string"), + Lon: cloudflare.F("string"), }), + SecondaryConnectorID: cloudflare.F("8d67040d3835dbcf46ce29da440dc482"), }) if err != nil { var apierr *cloudflare.Error @@ -69,17 +67,15 @@ func TestSiteUpdateWithOptionalParams(t *testing.T) { context.TODO(), "023e105f4ecef8ad9ca31a8372d0c353", magic_transit.SiteUpdateParams{ - AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), - Site: cloudflare.F(magic_transit.SiteUpdateParamsSite{ - ConnectorID: cloudflare.F("ac60d3d0435248289d446cedd870bcf4"), - Description: cloudflare.F("string"), - Location: cloudflare.F(magic_transit.SiteLocationParam{ - Lat: cloudflare.F("string"), - Lon: cloudflare.F("string"), - }), - Name: cloudflare.F("site_1"), - SecondaryConnectorID: cloudflare.F("8d67040d3835dbcf46ce29da440dc482"), + AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), + ConnectorID: cloudflare.F("ac60d3d0435248289d446cedd870bcf4"), + Description: cloudflare.F("string"), + Location: cloudflare.F(magic_transit.SiteLocationParam{ + Lat: cloudflare.F("string"), + Lon: cloudflare.F("string"), }), + Name: cloudflare.F("site_1"), + SecondaryConnectorID: cloudflare.F("8d67040d3835dbcf46ce29da440dc482"), }, ) if err != nil { diff --git a/magic_transit/siteacl.go b/magic_transit/siteacl.go index 6eb71dc3a10..cc0016fc65c 100644 --- a/magic_transit/siteacl.go +++ b/magic_transit/siteacl.go @@ -9,6 +9,7 @@ import ( "reflect" "github.com/cloudflare/cloudflare-go/v2/internal/apijson" + "github.com/cloudflare/cloudflare-go/v2/internal/pagination" "github.com/cloudflare/cloudflare-go/v2/internal/param" "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" "github.com/cloudflare/cloudflare-go/v2/internal/shared" @@ -34,7 +35,7 @@ func NewSiteACLService(opts ...option.RequestOption) (r *SiteACLService) { } // Creates a new Site ACL. -func (r *SiteACLService) New(ctx context.Context, siteID string, params SiteACLNewParams, opts ...option.RequestOption) (res *SiteACLNewResponse, err error) { +func (r *SiteACLService) New(ctx context.Context, siteID string, params SiteACLNewParams, opts ...option.RequestOption) (res *ACL, err error) { opts = append(r.Options[:], opts...) var env SiteACLNewResponseEnvelope path := fmt.Sprintf("accounts/%s/magic/sites/%s/acls", params.AccountID, siteID) @@ -47,7 +48,7 @@ func (r *SiteACLService) New(ctx context.Context, siteID string, params SiteACLN } // Update a specific Site ACL. -func (r *SiteACLService) Update(ctx context.Context, siteID string, aclIdentifier string, params SiteACLUpdateParams, opts ...option.RequestOption) (res *SiteACLUpdateResponse, err error) { +func (r *SiteACLService) Update(ctx context.Context, siteID string, aclIdentifier string, params SiteACLUpdateParams, opts ...option.RequestOption) (res *ACL, err error) { opts = append(r.Options[:], opts...) var env SiteACLUpdateResponseEnvelope path := fmt.Sprintf("accounts/%s/magic/sites/%s/acls/%s", params.AccountID, siteID, aclIdentifier) @@ -60,20 +61,30 @@ func (r *SiteACLService) Update(ctx context.Context, siteID string, aclIdentifie } // Lists Site ACLs associated with an account. -func (r *SiteACLService) List(ctx context.Context, siteID string, query SiteACLListParams, opts ...option.RequestOption) (res *SiteACLListResponse, err error) { - opts = append(r.Options[:], opts...) - var env SiteACLListResponseEnvelope +func (r *SiteACLService) List(ctx context.Context, siteID string, query SiteACLListParams, opts ...option.RequestOption) (res *pagination.SinglePage[ACL], err error) { + var raw *http.Response + opts = append(r.Options, opts...) + opts = append([]option.RequestOption{option.WithResponseInto(&raw)}, opts...) path := fmt.Sprintf("accounts/%s/magic/sites/%s/acls", query.AccountID, siteID) - err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...) + cfg, err := requestconfig.NewRequestConfig(ctx, http.MethodGet, path, query, &res, opts...) if err != nil { - return + return nil, err } - res = &env.Result - return + err = cfg.Execute() + if err != nil { + return nil, err + } + res.SetPageConfig(cfg, raw) + return res, nil +} + +// Lists Site ACLs associated with an account. +func (r *SiteACLService) ListAutoPaging(ctx context.Context, siteID string, query SiteACLListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[ACL] { + return pagination.NewSinglePageAutoPager(r.List(ctx, siteID, query, opts...)) } // Remove a specific Site ACL. -func (r *SiteACLService) Delete(ctx context.Context, siteID string, aclIdentifier string, params SiteACLDeleteParams, opts ...option.RequestOption) (res *SiteACLDeleteResponse, err error) { +func (r *SiteACLService) Delete(ctx context.Context, siteID string, aclIdentifier string, params SiteACLDeleteParams, opts ...option.RequestOption) (res *ACL, err error) { opts = append(r.Options[:], opts...) var env SiteACLDeleteResponseEnvelope path := fmt.Sprintf("accounts/%s/magic/sites/%s/acls/%s", params.AccountID, siteID, aclIdentifier) @@ -86,7 +97,7 @@ func (r *SiteACLService) Delete(ctx context.Context, siteID string, aclIdentifie } // Get a specific Site ACL. -func (r *SiteACLService) Get(ctx context.Context, siteID string, aclIdentifier string, query SiteACLGetParams, opts ...option.RequestOption) (res *SiteACLGetResponse, err error) { +func (r *SiteACLService) Get(ctx context.Context, siteID string, aclIdentifier string, query SiteACLGetParams, opts ...option.RequestOption) (res *ACL, err error) { opts = append(r.Options[:], opts...) var env SiteACLGetResponseEnvelope path := fmt.Sprintf("accounts/%s/magic/sites/%s/acls/%s", query.AccountID, siteID, aclIdentifier) @@ -112,9 +123,9 @@ type ACL struct { LAN1 ACLConfiguration `json:"lan_1"` LAN2 ACLConfiguration `json:"lan_2"` // The name of the ACL. - Name string `json:"name"` - Protocols []AllowedProtocol `json:"protocols"` - JSON aclJSON `json:"-"` + Name string `json:"name"` + Protocols []ACLProtocol `json:"protocols"` + JSON aclJSON `json:"-"` } // aclJSON contains the JSON metadata for the struct [ACL] @@ -138,6 +149,24 @@ func (r aclJSON) RawJSON() string { return r.raw } +// Array of allowed communication protocols between configured LANs. If no +// protocols are provided, all protocols are allowed. +type ACLProtocol string + +const ( + ACLProtocolTCP ACLProtocol = "tcp" + ACLProtocolUdp ACLProtocol = "udp" + ACLProtocolIcmp ACLProtocol = "icmp" +) + +func (r ACLProtocol) IsKnown() bool { + switch r { + case ACLProtocolTCP, ACLProtocolUdp, ACLProtocolIcmp: + return true + } + return false +} + // Bidirectional ACL policy for network traffic within a site. type ACLParam struct { // Description for the ACL. @@ -150,8 +179,8 @@ type ACLParam struct { LAN1 param.Field[ACLConfigurationParam] `json:"lan_1"` LAN2 param.Field[ACLConfigurationParam] `json:"lan_2"` // The name of the ACL. - Name param.Field[string] `json:"name"` - Protocols param.Field[[]AllowedProtocol] `json:"protocols"` + Name param.Field[string] `json:"name"` + Protocols param.Field[[]ACLProtocol] `json:"protocols"` } func (r ACLParam) MarshalJSON() (data []byte, err error) { @@ -208,24 +237,6 @@ func (r ACLConfigurationParam) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -// Array of allowed communication protocols between configured LANs. If no -// protocols are provided, all protocols are allowed. -type AllowedProtocol string - -const ( - AllowedProtocolTCP AllowedProtocol = "tcp" - AllowedProtocolUdp AllowedProtocol = "udp" - AllowedProtocolIcmp AllowedProtocol = "icmp" -) - -func (r AllowedProtocol) IsKnown() bool { - switch r { - case AllowedProtocolTCP, AllowedProtocolUdp, AllowedProtocolIcmp: - return true - } - return false -} - // A valid IPv4 address. // // Union satisfied by [shared.UnionString] or [shared.UnionString]. @@ -255,129 +266,11 @@ type SubnetUnionParam interface { ImplementsMagicTransitSubnetUnionParam() } -type SiteACLNewResponse struct { - ACLs []ACL `json:"acls"` - JSON siteACLNewResponseJSON `json:"-"` -} - -// siteACLNewResponseJSON contains the JSON metadata for the struct -// [SiteACLNewResponse] -type siteACLNewResponseJSON struct { - ACLs apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *SiteACLNewResponse) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r siteACLNewResponseJSON) RawJSON() string { - return r.raw -} - -type SiteACLUpdateResponse struct { - // Bidirectional ACL policy for network traffic within a site. - ACL ACL `json:"acl"` - JSON siteACLUpdateResponseJSON `json:"-"` -} - -// siteACLUpdateResponseJSON contains the JSON metadata for the struct -// [SiteACLUpdateResponse] -type siteACLUpdateResponseJSON struct { - ACL apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *SiteACLUpdateResponse) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r siteACLUpdateResponseJSON) RawJSON() string { - return r.raw -} - -type SiteACLListResponse struct { - ACLs []ACL `json:"acls"` - JSON siteACLListResponseJSON `json:"-"` -} - -// siteACLListResponseJSON contains the JSON metadata for the struct -// [SiteACLListResponse] -type siteACLListResponseJSON struct { - ACLs apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *SiteACLListResponse) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r siteACLListResponseJSON) RawJSON() string { - return r.raw -} - -type SiteACLDeleteResponse struct { - Deleted bool `json:"deleted"` - // Bidirectional ACL policy for network traffic within a site. - DeletedACL ACL `json:"deleted_acl"` - JSON siteACLDeleteResponseJSON `json:"-"` -} - -// siteACLDeleteResponseJSON contains the JSON metadata for the struct -// [SiteACLDeleteResponse] -type siteACLDeleteResponseJSON struct { - Deleted apijson.Field - DeletedACL apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *SiteACLDeleteResponse) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r siteACLDeleteResponseJSON) RawJSON() string { - return r.raw -} - -type SiteACLGetResponse struct { - // Bidirectional ACL policy for network traffic within a site. - ACL ACL `json:"acl"` - JSON siteACLGetResponseJSON `json:"-"` -} - -// siteACLGetResponseJSON contains the JSON metadata for the struct -// [SiteACLGetResponse] -type siteACLGetResponseJSON struct { - ACL apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *SiteACLGetResponse) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r siteACLGetResponseJSON) RawJSON() string { - return r.raw -} - type SiteACLNewParams struct { // Identifier - AccountID param.Field[string] `path:"account_id,required"` - ACL param.Field[SiteACLNewParamsACL] `json:"acl"` -} - -func (r SiteACLNewParams) MarshalJSON() (data []byte, err error) { - return apijson.MarshalRoot(r) -} - -type SiteACLNewParamsACL struct { - LAN1 param.Field[ACLConfigurationParam] `json:"lan_1,required"` - LAN2 param.Field[ACLConfigurationParam] `json:"lan_2,required"` + AccountID param.Field[string] `path:"account_id,required"` + LAN1 param.Field[ACLConfigurationParam] `json:"lan_1,required"` + LAN2 param.Field[ACLConfigurationParam] `json:"lan_2,required"` // The name of the ACL. Name param.Field[string] `json:"name,required"` // Description for the ACL. @@ -386,18 +279,37 @@ type SiteACLNewParamsACL struct { // will forward traffic to Cloudflare. If set to "true", the policy will forward // traffic locally on the Magic WAN Connector. If not included in request, will // default to false. - ForwardLocally param.Field[bool] `json:"forward_locally"` - Protocols param.Field[[]AllowedProtocol] `json:"protocols"` + ForwardLocally param.Field[bool] `json:"forward_locally"` + Protocols param.Field[[]SiteACLNewParamsProtocol] `json:"protocols"` } -func (r SiteACLNewParamsACL) MarshalJSON() (data []byte, err error) { +func (r SiteACLNewParams) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } +// Array of allowed communication protocols between configured LANs. If no +// protocols are provided, all protocols are allowed. +type SiteACLNewParamsProtocol string + +const ( + SiteACLNewParamsProtocolTCP SiteACLNewParamsProtocol = "tcp" + SiteACLNewParamsProtocolUdp SiteACLNewParamsProtocol = "udp" + SiteACLNewParamsProtocolIcmp SiteACLNewParamsProtocol = "icmp" +) + +func (r SiteACLNewParamsProtocol) IsKnown() bool { + switch r { + case SiteACLNewParamsProtocolTCP, SiteACLNewParamsProtocolUdp, SiteACLNewParamsProtocolIcmp: + return true + } + return false +} + type SiteACLNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result SiteACLNewResponse `json:"result,required"` + // Bidirectional ACL policy for network traffic within a site. + Result ACL `json:"result,required"` // Whether the API call was successful Success SiteACLNewResponseEnvelopeSuccess `json:"success,required"` JSON siteACLNewResponseEnvelopeJSON `json:"-"` @@ -439,15 +351,7 @@ func (r SiteACLNewResponseEnvelopeSuccess) IsKnown() bool { type SiteACLUpdateParams struct { // Identifier - AccountID param.Field[string] `path:"account_id,required"` - ACL param.Field[SiteACLUpdateParamsACL] `json:"acl"` -} - -func (r SiteACLUpdateParams) MarshalJSON() (data []byte, err error) { - return apijson.MarshalRoot(r) -} - -type SiteACLUpdateParamsACL struct { + AccountID param.Field[string] `path:"account_id,required"` // Description for the ACL. Description param.Field[string] `json:"description"` // The desired forwarding action for this ACL policy. If set to "false", the policy @@ -458,18 +362,37 @@ type SiteACLUpdateParamsACL struct { LAN1 param.Field[ACLConfigurationParam] `json:"lan_1"` LAN2 param.Field[ACLConfigurationParam] `json:"lan_2"` // The name of the ACL. - Name param.Field[string] `json:"name"` - Protocols param.Field[[]AllowedProtocol] `json:"protocols"` + Name param.Field[string] `json:"name"` + Protocols param.Field[[]SiteACLUpdateParamsProtocol] `json:"protocols"` } -func (r SiteACLUpdateParamsACL) MarshalJSON() (data []byte, err error) { +func (r SiteACLUpdateParams) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } +// Array of allowed communication protocols between configured LANs. If no +// protocols are provided, all protocols are allowed. +type SiteACLUpdateParamsProtocol string + +const ( + SiteACLUpdateParamsProtocolTCP SiteACLUpdateParamsProtocol = "tcp" + SiteACLUpdateParamsProtocolUdp SiteACLUpdateParamsProtocol = "udp" + SiteACLUpdateParamsProtocolIcmp SiteACLUpdateParamsProtocol = "icmp" +) + +func (r SiteACLUpdateParamsProtocol) IsKnown() bool { + switch r { + case SiteACLUpdateParamsProtocolTCP, SiteACLUpdateParamsProtocolUdp, SiteACLUpdateParamsProtocolIcmp: + return true + } + return false +} + type SiteACLUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result SiteACLUpdateResponse `json:"result,required"` + // Bidirectional ACL policy for network traffic within a site. + Result ACL `json:"result,required"` // Whether the API call was successful Success SiteACLUpdateResponseEnvelopeSuccess `json:"success,required"` JSON siteACLUpdateResponseEnvelopeJSON `json:"-"` @@ -514,49 +437,6 @@ type SiteACLListParams struct { AccountID param.Field[string] `path:"account_id,required"` } -type SiteACLListResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result SiteACLListResponse `json:"result,required"` - // Whether the API call was successful - Success SiteACLListResponseEnvelopeSuccess `json:"success,required"` - JSON siteACLListResponseEnvelopeJSON `json:"-"` -} - -// siteACLListResponseEnvelopeJSON contains the JSON metadata for the struct -// [SiteACLListResponseEnvelope] -type siteACLListResponseEnvelopeJSON struct { - Errors apijson.Field - Messages apijson.Field - Result apijson.Field - Success apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *SiteACLListResponseEnvelope) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r siteACLListResponseEnvelopeJSON) RawJSON() string { - return r.raw -} - -// Whether the API call was successful -type SiteACLListResponseEnvelopeSuccess bool - -const ( - SiteACLListResponseEnvelopeSuccessTrue SiteACLListResponseEnvelopeSuccess = true -) - -func (r SiteACLListResponseEnvelopeSuccess) IsKnown() bool { - switch r { - case SiteACLListResponseEnvelopeSuccessTrue: - return true - } - return false -} - type SiteACLDeleteParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` @@ -570,7 +450,8 @@ func (r SiteACLDeleteParams) MarshalJSON() (data []byte, err error) { type SiteACLDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result SiteACLDeleteResponse `json:"result,required"` + // Bidirectional ACL policy for network traffic within a site. + Result ACL `json:"result,required"` // Whether the API call was successful Success SiteACLDeleteResponseEnvelopeSuccess `json:"success,required"` JSON siteACLDeleteResponseEnvelopeJSON `json:"-"` @@ -618,7 +499,8 @@ type SiteACLGetParams struct { type SiteACLGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result SiteACLGetResponse `json:"result,required"` + // Bidirectional ACL policy for network traffic within a site. + Result ACL `json:"result,required"` // Whether the API call was successful Success SiteACLGetResponseEnvelopeSuccess `json:"success,required"` JSON siteACLGetResponseEnvelopeJSON `json:"-"` diff --git a/magic_transit/siteacl_test.go b/magic_transit/siteacl_test.go index 168684be874..3903343bc9b 100644 --- a/magic_transit/siteacl_test.go +++ b/magic_transit/siteacl_test.go @@ -34,24 +34,22 @@ func TestSiteACLNewWithOptionalParams(t *testing.T) { "023e105f4ecef8ad9ca31a8372d0c353", magic_transit.SiteACLNewParams{ AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), - ACL: cloudflare.F(magic_transit.SiteACLNewParamsACL{ - Description: cloudflare.F("Allows local traffic between PIN pads and cash register."), - ForwardLocally: cloudflare.F(true), - LAN1: cloudflare.F(magic_transit.ACLConfigurationParam{ - LANID: cloudflare.F("string"), - LANName: cloudflare.F("string"), - Ports: cloudflare.F([]int64{int64(1), int64(1), int64(1)}), - Subnets: cloudflare.F([]magic_transit.SubnetUnionParam{shared.UnionString("192.0.2.1"), shared.UnionString("192.0.2.1"), shared.UnionString("192.0.2.1")}), - }), - LAN2: cloudflare.F(magic_transit.ACLConfigurationParam{ - LANID: cloudflare.F("string"), - LANName: cloudflare.F("string"), - Ports: cloudflare.F([]int64{int64(1), int64(1), int64(1)}), - Subnets: cloudflare.F([]magic_transit.SubnetUnionParam{shared.UnionString("192.0.2.1"), shared.UnionString("192.0.2.1"), shared.UnionString("192.0.2.1")}), - }), - Name: cloudflare.F("PIN Pad - Cash Register"), - Protocols: cloudflare.F([]magic_transit.AllowedProtocol{magic_transit.AllowedProtocolTCP, magic_transit.AllowedProtocolUdp, magic_transit.AllowedProtocolIcmp}), + LAN1: cloudflare.F(magic_transit.ACLConfigurationParam{ + LANID: cloudflare.F("string"), + LANName: cloudflare.F("string"), + Ports: cloudflare.F([]int64{int64(1), int64(1), int64(1)}), + Subnets: cloudflare.F([]magic_transit.SubnetUnionParam{shared.UnionString("192.0.2.1"), shared.UnionString("192.0.2.1"), shared.UnionString("192.0.2.1")}), }), + LAN2: cloudflare.F(magic_transit.ACLConfigurationParam{ + LANID: cloudflare.F("string"), + LANName: cloudflare.F("string"), + Ports: cloudflare.F([]int64{int64(1), int64(1), int64(1)}), + Subnets: cloudflare.F([]magic_transit.SubnetUnionParam{shared.UnionString("192.0.2.1"), shared.UnionString("192.0.2.1"), shared.UnionString("192.0.2.1")}), + }), + Name: cloudflare.F("PIN Pad - Cash Register"), + Description: cloudflare.F("Allows local traffic between PIN pads and cash register."), + ForwardLocally: cloudflare.F(true), + Protocols: cloudflare.F([]magic_transit.SiteACLNewParamsProtocol{magic_transit.SiteACLNewParamsProtocolTCP, magic_transit.SiteACLNewParamsProtocolUdp, magic_transit.SiteACLNewParamsProtocolIcmp}), }, ) if err != nil { @@ -82,25 +80,23 @@ func TestSiteACLUpdateWithOptionalParams(t *testing.T) { "023e105f4ecef8ad9ca31a8372d0c353", "023e105f4ecef8ad9ca31a8372d0c353", magic_transit.SiteACLUpdateParams{ - AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), - ACL: cloudflare.F(magic_transit.SiteACLUpdateParamsACL{ - Description: cloudflare.F("Allows local traffic between PIN pads and cash register."), - ForwardLocally: cloudflare.F(true), - LAN1: cloudflare.F(magic_transit.ACLConfigurationParam{ - LANID: cloudflare.F("string"), - LANName: cloudflare.F("string"), - Ports: cloudflare.F([]int64{int64(1), int64(1), int64(1)}), - Subnets: cloudflare.F([]magic_transit.SubnetUnionParam{shared.UnionString("192.0.2.1"), shared.UnionString("192.0.2.1"), shared.UnionString("192.0.2.1")}), - }), - LAN2: cloudflare.F(magic_transit.ACLConfigurationParam{ - LANID: cloudflare.F("string"), - LANName: cloudflare.F("string"), - Ports: cloudflare.F([]int64{int64(1), int64(1), int64(1)}), - Subnets: cloudflare.F([]magic_transit.SubnetUnionParam{shared.UnionString("192.0.2.1"), shared.UnionString("192.0.2.1"), shared.UnionString("192.0.2.1")}), - }), - Name: cloudflare.F("PIN Pad - Cash Register"), - Protocols: cloudflare.F([]magic_transit.AllowedProtocol{magic_transit.AllowedProtocolTCP, magic_transit.AllowedProtocolUdp, magic_transit.AllowedProtocolIcmp}), + AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), + Description: cloudflare.F("Allows local traffic between PIN pads and cash register."), + ForwardLocally: cloudflare.F(true), + LAN1: cloudflare.F(magic_transit.ACLConfigurationParam{ + LANID: cloudflare.F("string"), + LANName: cloudflare.F("string"), + Ports: cloudflare.F([]int64{int64(1), int64(1), int64(1)}), + Subnets: cloudflare.F([]magic_transit.SubnetUnionParam{shared.UnionString("192.0.2.1"), shared.UnionString("192.0.2.1"), shared.UnionString("192.0.2.1")}), + }), + LAN2: cloudflare.F(magic_transit.ACLConfigurationParam{ + LANID: cloudflare.F("string"), + LANName: cloudflare.F("string"), + Ports: cloudflare.F([]int64{int64(1), int64(1), int64(1)}), + Subnets: cloudflare.F([]magic_transit.SubnetUnionParam{shared.UnionString("192.0.2.1"), shared.UnionString("192.0.2.1"), shared.UnionString("192.0.2.1")}), }), + Name: cloudflare.F("PIN Pad - Cash Register"), + Protocols: cloudflare.F([]magic_transit.SiteACLUpdateParamsProtocol{magic_transit.SiteACLUpdateParamsProtocolTCP, magic_transit.SiteACLUpdateParamsProtocolUdp, magic_transit.SiteACLUpdateParamsProtocolIcmp}), }, ) if err != nil { diff --git a/magic_transit/sitelan.go b/magic_transit/sitelan.go index 219802b42ee..171caa1bf40 100644 --- a/magic_transit/sitelan.go +++ b/magic_transit/sitelan.go @@ -8,6 +8,7 @@ import ( "net/http" "github.com/cloudflare/cloudflare-go/v2/internal/apijson" + "github.com/cloudflare/cloudflare-go/v2/internal/pagination" "github.com/cloudflare/cloudflare-go/v2/internal/param" "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" "github.com/cloudflare/cloudflare-go/v2/internal/shared" @@ -33,7 +34,7 @@ func NewSiteLANService(opts ...option.RequestOption) (r *SiteLANService) { // Creates a new LAN. If the site is in high availability mode, static_addressing // is required along with secondary and virtual address. -func (r *SiteLANService) New(ctx context.Context, siteID string, params SiteLANNewParams, opts ...option.RequestOption) (res *SiteLANNewResponse, err error) { +func (r *SiteLANService) New(ctx context.Context, siteID string, params SiteLANNewParams, opts ...option.RequestOption) (res *[]LAN, err error) { opts = append(r.Options[:], opts...) var env SiteLANNewResponseEnvelope path := fmt.Sprintf("accounts/%s/magic/sites/%s/lans", params.AccountID, siteID) @@ -46,7 +47,7 @@ func (r *SiteLANService) New(ctx context.Context, siteID string, params SiteLANN } // Update a specific LAN. -func (r *SiteLANService) Update(ctx context.Context, siteID string, lanID string, params SiteLANUpdateParams, opts ...option.RequestOption) (res *SiteLANUpdateResponse, err error) { +func (r *SiteLANService) Update(ctx context.Context, siteID string, lanID string, params SiteLANUpdateParams, opts ...option.RequestOption) (res *LAN, err error) { opts = append(r.Options[:], opts...) var env SiteLANUpdateResponseEnvelope path := fmt.Sprintf("accounts/%s/magic/sites/%s/lans/%s", params.AccountID, siteID, lanID) @@ -59,20 +60,30 @@ func (r *SiteLANService) Update(ctx context.Context, siteID string, lanID string } // Lists LANs associated with an account and site. -func (r *SiteLANService) List(ctx context.Context, siteID string, query SiteLANListParams, opts ...option.RequestOption) (res *SiteLANListResponse, err error) { - opts = append(r.Options[:], opts...) - var env SiteLANListResponseEnvelope +func (r *SiteLANService) List(ctx context.Context, siteID string, query SiteLANListParams, opts ...option.RequestOption) (res *pagination.SinglePage[LAN], err error) { + var raw *http.Response + opts = append(r.Options, opts...) + opts = append([]option.RequestOption{option.WithResponseInto(&raw)}, opts...) path := fmt.Sprintf("accounts/%s/magic/sites/%s/lans", query.AccountID, siteID) - err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...) + cfg, err := requestconfig.NewRequestConfig(ctx, http.MethodGet, path, query, &res, opts...) if err != nil { - return + return nil, err } - res = &env.Result - return + err = cfg.Execute() + if err != nil { + return nil, err + } + res.SetPageConfig(cfg, raw) + return res, nil +} + +// Lists LANs associated with an account and site. +func (r *SiteLANService) ListAutoPaging(ctx context.Context, siteID string, query SiteLANListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[LAN] { + return pagination.NewSinglePageAutoPager(r.List(ctx, siteID, query, opts...)) } // Remove a specific LAN. -func (r *SiteLANService) Delete(ctx context.Context, siteID string, lanID string, params SiteLANDeleteParams, opts ...option.RequestOption) (res *SiteLANDeleteResponse, err error) { +func (r *SiteLANService) Delete(ctx context.Context, siteID string, lanID string, params SiteLANDeleteParams, opts ...option.RequestOption) (res *LAN, err error) { opts = append(r.Options[:], opts...) var env SiteLANDeleteResponseEnvelope path := fmt.Sprintf("accounts/%s/magic/sites/%s/lans/%s", params.AccountID, siteID, lanID) @@ -85,7 +96,7 @@ func (r *SiteLANService) Delete(ctx context.Context, siteID string, lanID string } // Get a specific LAN. -func (r *SiteLANService) Get(ctx context.Context, siteID string, lanID string, query SiteLANGetParams, opts ...option.RequestOption) (res *SiteLANGetResponse, err error) { +func (r *SiteLANService) Get(ctx context.Context, siteID string, lanID string, query SiteLANGetParams, opts ...option.RequestOption) (res *LAN, err error) { opts = append(r.Options[:], opts...) var env SiteLANGetResponseEnvelope path := fmt.Sprintf("accounts/%s/magic/sites/%s/lans/%s", query.AccountID, siteID, lanID) @@ -174,11 +185,11 @@ func (r DHCPServerParam) MarshalJSON() (data []byte, err error) { type LAN struct { // Identifier - ID string `json:"id"` - Description string `json:"description"` + ID string `json:"id"` // mark true to use this LAN for HA probing. only works for site with HA turned on. // only one LAN can be set as the ha_link. HaLink bool `json:"ha_link"` + Name string `json:"name"` Nat Nat `json:"nat"` Physport int64 `json:"physport"` RoutedSubnets []RoutedSubnet `json:"routed_subnets"` @@ -196,8 +207,8 @@ type LAN struct { // lanJSON contains the JSON metadata for the struct [LAN] type lanJSON struct { ID apijson.Field - Description apijson.Field HaLink apijson.Field + Name apijson.Field Nat apijson.Field Physport apijson.Field RoutedSubnets apijson.Field @@ -337,131 +348,16 @@ func (r RoutedSubnetParam) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -type SiteLANNewResponse struct { - LANs []LAN `json:"lans"` - JSON siteLANNewResponseJSON `json:"-"` -} - -// siteLANNewResponseJSON contains the JSON metadata for the struct -// [SiteLANNewResponse] -type siteLANNewResponseJSON struct { - LANs apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *SiteLANNewResponse) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r siteLANNewResponseJSON) RawJSON() string { - return r.raw -} - -type SiteLANUpdateResponse struct { - LAN LAN `json:"lan"` - JSON siteLANUpdateResponseJSON `json:"-"` -} - -// siteLANUpdateResponseJSON contains the JSON metadata for the struct -// [SiteLANUpdateResponse] -type siteLANUpdateResponseJSON struct { - LAN apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *SiteLANUpdateResponse) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r siteLANUpdateResponseJSON) RawJSON() string { - return r.raw -} - -type SiteLANListResponse struct { - LANs []LAN `json:"lans"` - JSON siteLANListResponseJSON `json:"-"` -} - -// siteLANListResponseJSON contains the JSON metadata for the struct -// [SiteLANListResponse] -type siteLANListResponseJSON struct { - LANs apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *SiteLANListResponse) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r siteLANListResponseJSON) RawJSON() string { - return r.raw -} - -type SiteLANDeleteResponse struct { - Deleted bool `json:"deleted"` - DeletedLAN LAN `json:"deleted_lan"` - JSON siteLANDeleteResponseJSON `json:"-"` -} - -// siteLANDeleteResponseJSON contains the JSON metadata for the struct -// [SiteLANDeleteResponse] -type siteLANDeleteResponseJSON struct { - Deleted apijson.Field - DeletedLAN apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *SiteLANDeleteResponse) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r siteLANDeleteResponseJSON) RawJSON() string { - return r.raw -} - -type SiteLANGetResponse struct { - LAN LAN `json:"lan"` - JSON siteLANGetResponseJSON `json:"-"` -} - -// siteLANGetResponseJSON contains the JSON metadata for the struct -// [SiteLANGetResponse] -type siteLANGetResponseJSON struct { - LAN apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *SiteLANGetResponse) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r siteLANGetResponseJSON) RawJSON() string { - return r.raw -} - type SiteLANNewParams struct { // Identifier - AccountID param.Field[string] `path:"account_id,required"` - LAN param.Field[SiteLANNewParamsLAN] `json:"lan"` -} - -func (r SiteLANNewParams) MarshalJSON() (data []byte, err error) { - return apijson.MarshalRoot(r) -} - -type SiteLANNewParamsLAN struct { - Physport param.Field[int64] `json:"physport,required"` + AccountID param.Field[string] `path:"account_id,required"` + Physport param.Field[int64] `json:"physport,required"` // VLAN port number. - VlanTag param.Field[int64] `json:"vlan_tag,required"` - Description param.Field[string] `json:"description"` + VlanTag param.Field[int64] `json:"vlan_tag,required"` // mark true to use this LAN for HA probing. only works for site with HA turned on. // only one LAN can be set as the ha_link. HaLink param.Field[bool] `json:"ha_link"` + Name param.Field[string] `json:"name"` Nat param.Field[NatParam] `json:"nat"` RoutedSubnets param.Field[[]RoutedSubnetParam] `json:"routed_subnets"` // If the site is not configured in high availability mode, this configuration is @@ -470,14 +366,14 @@ type SiteLANNewParamsLAN struct { StaticAddressing param.Field[LANStaticAddressingParam] `json:"static_addressing"` } -func (r SiteLANNewParamsLAN) MarshalJSON() (data []byte, err error) { +func (r SiteLANNewParams) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } type SiteLANNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result SiteLANNewResponse `json:"result,required"` + Result []LAN `json:"result,required"` // Whether the API call was successful Success SiteLANNewResponseEnvelopeSuccess `json:"success,required"` JSON siteLANNewResponseEnvelopeJSON `json:"-"` @@ -519,16 +415,8 @@ func (r SiteLANNewResponseEnvelopeSuccess) IsKnown() bool { type SiteLANUpdateParams struct { // Identifier - AccountID param.Field[string] `path:"account_id,required"` - LAN param.Field[SiteLANUpdateParamsLAN] `json:"lan"` -} - -func (r SiteLANUpdateParams) MarshalJSON() (data []byte, err error) { - return apijson.MarshalRoot(r) -} - -type SiteLANUpdateParamsLAN struct { - Description param.Field[string] `json:"description"` + AccountID param.Field[string] `path:"account_id,required"` + Name param.Field[string] `json:"name"` Nat param.Field[NatParam] `json:"nat"` Physport param.Field[int64] `json:"physport"` RoutedSubnets param.Field[[]RoutedSubnetParam] `json:"routed_subnets"` @@ -540,14 +428,14 @@ type SiteLANUpdateParamsLAN struct { VlanTag param.Field[int64] `json:"vlan_tag"` } -func (r SiteLANUpdateParamsLAN) MarshalJSON() (data []byte, err error) { +func (r SiteLANUpdateParams) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } type SiteLANUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result SiteLANUpdateResponse `json:"result,required"` + Result LAN `json:"result,required"` // Whether the API call was successful Success SiteLANUpdateResponseEnvelopeSuccess `json:"success,required"` JSON siteLANUpdateResponseEnvelopeJSON `json:"-"` @@ -592,49 +480,6 @@ type SiteLANListParams struct { AccountID param.Field[string] `path:"account_id,required"` } -type SiteLANListResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result SiteLANListResponse `json:"result,required"` - // Whether the API call was successful - Success SiteLANListResponseEnvelopeSuccess `json:"success,required"` - JSON siteLANListResponseEnvelopeJSON `json:"-"` -} - -// siteLANListResponseEnvelopeJSON contains the JSON metadata for the struct -// [SiteLANListResponseEnvelope] -type siteLANListResponseEnvelopeJSON struct { - Errors apijson.Field - Messages apijson.Field - Result apijson.Field - Success apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *SiteLANListResponseEnvelope) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r siteLANListResponseEnvelopeJSON) RawJSON() string { - return r.raw -} - -// Whether the API call was successful -type SiteLANListResponseEnvelopeSuccess bool - -const ( - SiteLANListResponseEnvelopeSuccessTrue SiteLANListResponseEnvelopeSuccess = true -) - -func (r SiteLANListResponseEnvelopeSuccess) IsKnown() bool { - switch r { - case SiteLANListResponseEnvelopeSuccessTrue: - return true - } - return false -} - type SiteLANDeleteParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` @@ -648,7 +493,7 @@ func (r SiteLANDeleteParams) MarshalJSON() (data []byte, err error) { type SiteLANDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result SiteLANDeleteResponse `json:"result,required"` + Result LAN `json:"result,required"` // Whether the API call was successful Success SiteLANDeleteResponseEnvelopeSuccess `json:"success,required"` JSON siteLANDeleteResponseEnvelopeJSON `json:"-"` @@ -696,7 +541,7 @@ type SiteLANGetParams struct { type SiteLANGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result SiteLANGetResponse `json:"result,required"` + Result LAN `json:"result,required"` // Whether the API call was successful Success SiteLANGetResponseEnvelopeSuccess `json:"success,required"` JSON siteLANGetResponseEnvelopeJSON `json:"-"` diff --git a/magic_transit/sitelan_test.go b/magic_transit/sitelan_test.go index da69bd311e6..8ea86cbfc60 100644 --- a/magic_transit/sitelan_test.go +++ b/magic_transit/sitelan_test.go @@ -33,50 +33,48 @@ func TestSiteLANNewWithOptionalParams(t *testing.T) { "023e105f4ecef8ad9ca31a8372d0c353", magic_transit.SiteLANNewParams{ AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), - LAN: cloudflare.F(magic_transit.SiteLANNewParamsLAN{ - Description: cloudflare.F("string"), - HaLink: cloudflare.F(true), + Physport: cloudflare.F(int64(1)), + VlanTag: cloudflare.F(int64(0)), + HaLink: cloudflare.F(true), + Name: cloudflare.F("string"), + Nat: cloudflare.F(magic_transit.NatParam{ + StaticPrefix: cloudflare.F("192.0.2.0/24"), + }), + RoutedSubnets: cloudflare.F([]magic_transit.RoutedSubnetParam{{ Nat: cloudflare.F(magic_transit.NatParam{ StaticPrefix: cloudflare.F("192.0.2.0/24"), }), - Physport: cloudflare.F(int64(1)), - RoutedSubnets: cloudflare.F([]magic_transit.RoutedSubnetParam{{ - Nat: cloudflare.F(magic_transit.NatParam{ - StaticPrefix: cloudflare.F("192.0.2.0/24"), - }), - NextHop: cloudflare.F("192.0.2.1"), - Prefix: cloudflare.F("192.0.2.0/24"), - }, { - Nat: cloudflare.F(magic_transit.NatParam{ - StaticPrefix: cloudflare.F("192.0.2.0/24"), - }), - NextHop: cloudflare.F("192.0.2.1"), - Prefix: cloudflare.F("192.0.2.0/24"), - }, { - Nat: cloudflare.F(magic_transit.NatParam{ - StaticPrefix: cloudflare.F("192.0.2.0/24"), - }), - NextHop: cloudflare.F("192.0.2.1"), - Prefix: cloudflare.F("192.0.2.0/24"), - }}), - StaticAddressing: cloudflare.F(magic_transit.LANStaticAddressingParam{ - Address: cloudflare.F("192.0.2.0/24"), - DHCPRelay: cloudflare.F(magic_transit.DHCPRelayParam{ - ServerAddresses: cloudflare.F([]string{"192.0.2.1", "192.0.2.1", "192.0.2.1"}), - }), - DHCPServer: cloudflare.F(magic_transit.DHCPServerParam{ - DHCPPoolEnd: cloudflare.F("192.0.2.1"), - DHCPPoolStart: cloudflare.F("192.0.2.1"), - DNSServer: cloudflare.F("192.0.2.1"), - Reservations: cloudflare.F(map[string]string{ - "00:11:22:33:44:55": "192.0.2.100", - "AA:BB:CC:DD:EE:FF": "192.168.1.101", - }), + NextHop: cloudflare.F("192.0.2.1"), + Prefix: cloudflare.F("192.0.2.0/24"), + }, { + Nat: cloudflare.F(magic_transit.NatParam{ + StaticPrefix: cloudflare.F("192.0.2.0/24"), + }), + NextHop: cloudflare.F("192.0.2.1"), + Prefix: cloudflare.F("192.0.2.0/24"), + }, { + Nat: cloudflare.F(magic_transit.NatParam{ + StaticPrefix: cloudflare.F("192.0.2.0/24"), + }), + NextHop: cloudflare.F("192.0.2.1"), + Prefix: cloudflare.F("192.0.2.0/24"), + }}), + StaticAddressing: cloudflare.F(magic_transit.LANStaticAddressingParam{ + Address: cloudflare.F("192.0.2.0/24"), + DHCPRelay: cloudflare.F(magic_transit.DHCPRelayParam{ + ServerAddresses: cloudflare.F([]string{"192.0.2.1", "192.0.2.1", "192.0.2.1"}), + }), + DHCPServer: cloudflare.F(magic_transit.DHCPServerParam{ + DHCPPoolEnd: cloudflare.F("192.0.2.1"), + DHCPPoolStart: cloudflare.F("192.0.2.1"), + DNSServer: cloudflare.F("192.0.2.1"), + Reservations: cloudflare.F(map[string]string{ + "00:11:22:33:44:55": "192.0.2.100", + "AA:BB:CC:DD:EE:FF": "192.168.1.101", }), - SecondaryAddress: cloudflare.F("192.0.2.0/24"), - VirtualAddress: cloudflare.F("192.0.2.0/24"), }), - VlanTag: cloudflare.F(int64(0)), + SecondaryAddress: cloudflare.F("192.0.2.0/24"), + VirtualAddress: cloudflare.F("192.0.2.0/24"), }), }, ) @@ -109,50 +107,48 @@ func TestSiteLANUpdateWithOptionalParams(t *testing.T) { "023e105f4ecef8ad9ca31a8372d0c353", magic_transit.SiteLANUpdateParams{ AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), - LAN: cloudflare.F(magic_transit.SiteLANUpdateParamsLAN{ - Description: cloudflare.F("string"), + Name: cloudflare.F("string"), + Nat: cloudflare.F(magic_transit.NatParam{ + StaticPrefix: cloudflare.F("192.0.2.0/24"), + }), + Physport: cloudflare.F(int64(1)), + RoutedSubnets: cloudflare.F([]magic_transit.RoutedSubnetParam{{ Nat: cloudflare.F(magic_transit.NatParam{ StaticPrefix: cloudflare.F("192.0.2.0/24"), }), - Physport: cloudflare.F(int64(1)), - RoutedSubnets: cloudflare.F([]magic_transit.RoutedSubnetParam{{ - Nat: cloudflare.F(magic_transit.NatParam{ - StaticPrefix: cloudflare.F("192.0.2.0/24"), - }), - NextHop: cloudflare.F("192.0.2.1"), - Prefix: cloudflare.F("192.0.2.0/24"), - }, { - Nat: cloudflare.F(magic_transit.NatParam{ - StaticPrefix: cloudflare.F("192.0.2.0/24"), - }), - NextHop: cloudflare.F("192.0.2.1"), - Prefix: cloudflare.F("192.0.2.0/24"), - }, { - Nat: cloudflare.F(magic_transit.NatParam{ - StaticPrefix: cloudflare.F("192.0.2.0/24"), - }), - NextHop: cloudflare.F("192.0.2.1"), - Prefix: cloudflare.F("192.0.2.0/24"), - }}), - StaticAddressing: cloudflare.F(magic_transit.LANStaticAddressingParam{ - Address: cloudflare.F("192.0.2.0/24"), - DHCPRelay: cloudflare.F(magic_transit.DHCPRelayParam{ - ServerAddresses: cloudflare.F([]string{"192.0.2.1", "192.0.2.1", "192.0.2.1"}), - }), - DHCPServer: cloudflare.F(magic_transit.DHCPServerParam{ - DHCPPoolEnd: cloudflare.F("192.0.2.1"), - DHCPPoolStart: cloudflare.F("192.0.2.1"), - DNSServer: cloudflare.F("192.0.2.1"), - Reservations: cloudflare.F(map[string]string{ - "00:11:22:33:44:55": "192.0.2.100", - "AA:BB:CC:DD:EE:FF": "192.168.1.101", - }), + NextHop: cloudflare.F("192.0.2.1"), + Prefix: cloudflare.F("192.0.2.0/24"), + }, { + Nat: cloudflare.F(magic_transit.NatParam{ + StaticPrefix: cloudflare.F("192.0.2.0/24"), + }), + NextHop: cloudflare.F("192.0.2.1"), + Prefix: cloudflare.F("192.0.2.0/24"), + }, { + Nat: cloudflare.F(magic_transit.NatParam{ + StaticPrefix: cloudflare.F("192.0.2.0/24"), + }), + NextHop: cloudflare.F("192.0.2.1"), + Prefix: cloudflare.F("192.0.2.0/24"), + }}), + StaticAddressing: cloudflare.F(magic_transit.LANStaticAddressingParam{ + Address: cloudflare.F("192.0.2.0/24"), + DHCPRelay: cloudflare.F(magic_transit.DHCPRelayParam{ + ServerAddresses: cloudflare.F([]string{"192.0.2.1", "192.0.2.1", "192.0.2.1"}), + }), + DHCPServer: cloudflare.F(magic_transit.DHCPServerParam{ + DHCPPoolEnd: cloudflare.F("192.0.2.1"), + DHCPPoolStart: cloudflare.F("192.0.2.1"), + DNSServer: cloudflare.F("192.0.2.1"), + Reservations: cloudflare.F(map[string]string{ + "00:11:22:33:44:55": "192.0.2.100", + "AA:BB:CC:DD:EE:FF": "192.168.1.101", }), - SecondaryAddress: cloudflare.F("192.0.2.0/24"), - VirtualAddress: cloudflare.F("192.0.2.0/24"), }), - VlanTag: cloudflare.F(int64(0)), + SecondaryAddress: cloudflare.F("192.0.2.0/24"), + VirtualAddress: cloudflare.F("192.0.2.0/24"), }), + VlanTag: cloudflare.F(int64(0)), }, ) if err != nil { diff --git a/magic_transit/sitewan.go b/magic_transit/sitewan.go index 7960714ecb0..31cdc76d3d4 100644 --- a/magic_transit/sitewan.go +++ b/magic_transit/sitewan.go @@ -8,6 +8,7 @@ import ( "net/http" "github.com/cloudflare/cloudflare-go/v2/internal/apijson" + "github.com/cloudflare/cloudflare-go/v2/internal/pagination" "github.com/cloudflare/cloudflare-go/v2/internal/param" "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" "github.com/cloudflare/cloudflare-go/v2/internal/shared" @@ -32,7 +33,7 @@ func NewSiteWANService(opts ...option.RequestOption) (r *SiteWANService) { } // Creates a new WAN. -func (r *SiteWANService) New(ctx context.Context, siteID string, params SiteWANNewParams, opts ...option.RequestOption) (res *SiteWANNewResponse, err error) { +func (r *SiteWANService) New(ctx context.Context, siteID string, params SiteWANNewParams, opts ...option.RequestOption) (res *[]WAN, err error) { opts = append(r.Options[:], opts...) var env SiteWANNewResponseEnvelope path := fmt.Sprintf("accounts/%s/magic/sites/%s/wans", params.AccountID, siteID) @@ -45,7 +46,7 @@ func (r *SiteWANService) New(ctx context.Context, siteID string, params SiteWANN } // Update a specific WAN. -func (r *SiteWANService) Update(ctx context.Context, siteID string, wanID string, params SiteWANUpdateParams, opts ...option.RequestOption) (res *SiteWANUpdateResponse, err error) { +func (r *SiteWANService) Update(ctx context.Context, siteID string, wanID string, params SiteWANUpdateParams, opts ...option.RequestOption) (res *WAN, err error) { opts = append(r.Options[:], opts...) var env SiteWANUpdateResponseEnvelope path := fmt.Sprintf("accounts/%s/magic/sites/%s/wans/%s", params.AccountID, siteID, wanID) @@ -58,20 +59,30 @@ func (r *SiteWANService) Update(ctx context.Context, siteID string, wanID string } // Lists WANs associated with an account and site. -func (r *SiteWANService) List(ctx context.Context, siteID string, query SiteWANListParams, opts ...option.RequestOption) (res *SiteWANListResponse, err error) { - opts = append(r.Options[:], opts...) - var env SiteWANListResponseEnvelope +func (r *SiteWANService) List(ctx context.Context, siteID string, query SiteWANListParams, opts ...option.RequestOption) (res *pagination.SinglePage[WAN], err error) { + var raw *http.Response + opts = append(r.Options, opts...) + opts = append([]option.RequestOption{option.WithResponseInto(&raw)}, opts...) path := fmt.Sprintf("accounts/%s/magic/sites/%s/wans", query.AccountID, siteID) - err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...) + cfg, err := requestconfig.NewRequestConfig(ctx, http.MethodGet, path, query, &res, opts...) if err != nil { - return + return nil, err } - res = &env.Result - return + err = cfg.Execute() + if err != nil { + return nil, err + } + res.SetPageConfig(cfg, raw) + return res, nil +} + +// Lists WANs associated with an account and site. +func (r *SiteWANService) ListAutoPaging(ctx context.Context, siteID string, query SiteWANListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[WAN] { + return pagination.NewSinglePageAutoPager(r.List(ctx, siteID, query, opts...)) } // Remove a specific WAN. -func (r *SiteWANService) Delete(ctx context.Context, siteID string, wanID string, params SiteWANDeleteParams, opts ...option.RequestOption) (res *SiteWANDeleteResponse, err error) { +func (r *SiteWANService) Delete(ctx context.Context, siteID string, wanID string, params SiteWANDeleteParams, opts ...option.RequestOption) (res *WAN, err error) { opts = append(r.Options[:], opts...) var env SiteWANDeleteResponseEnvelope path := fmt.Sprintf("accounts/%s/magic/sites/%s/wans/%s", params.AccountID, siteID, wanID) @@ -84,7 +95,7 @@ func (r *SiteWANService) Delete(ctx context.Context, siteID string, wanID string } // Get a specific WAN. -func (r *SiteWANService) Get(ctx context.Context, siteID string, wanID string, query SiteWANGetParams, opts ...option.RequestOption) (res *SiteWANGetResponse, err error) { +func (r *SiteWANService) Get(ctx context.Context, siteID string, wanID string, query SiteWANGetParams, opts ...option.RequestOption) (res *WAN, err error) { opts = append(r.Options[:], opts...) var env SiteWANGetResponseEnvelope path := fmt.Sprintf("accounts/%s/magic/sites/%s/wans/%s", query.AccountID, siteID, wanID) @@ -98,9 +109,9 @@ func (r *SiteWANService) Get(ctx context.Context, siteID string, wanID string, q type WAN struct { // Identifier - ID string `json:"id"` - Description string `json:"description"` - Physport int64 `json:"physport"` + ID string `json:"id"` + Name string `json:"name"` + Physport int64 `json:"physport"` // Priority of WAN for traffic loadbalancing. Priority int64 `json:"priority"` // Identifier @@ -116,7 +127,7 @@ type WAN struct { // wanJSON contains the JSON metadata for the struct [WAN] type wanJSON struct { ID apijson.Field - Description apijson.Field + Name apijson.Field Physport apijson.Field Priority apijson.Field SiteID apijson.Field @@ -179,142 +190,27 @@ func (r WANStaticAddressingParam) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -type SiteWANNewResponse struct { - WANs []WAN `json:"wans"` - JSON siteWANNewResponseJSON `json:"-"` -} - -// siteWANNewResponseJSON contains the JSON metadata for the struct -// [SiteWANNewResponse] -type siteWANNewResponseJSON struct { - WANs apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *SiteWANNewResponse) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r siteWANNewResponseJSON) RawJSON() string { - return r.raw -} - -type SiteWANUpdateResponse struct { - WAN WAN `json:"wan"` - JSON siteWANUpdateResponseJSON `json:"-"` -} - -// siteWANUpdateResponseJSON contains the JSON metadata for the struct -// [SiteWANUpdateResponse] -type siteWANUpdateResponseJSON struct { - WAN apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *SiteWANUpdateResponse) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r siteWANUpdateResponseJSON) RawJSON() string { - return r.raw -} - -type SiteWANListResponse struct { - WANs []WAN `json:"wans"` - JSON siteWANListResponseJSON `json:"-"` -} - -// siteWANListResponseJSON contains the JSON metadata for the struct -// [SiteWANListResponse] -type siteWANListResponseJSON struct { - WANs apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *SiteWANListResponse) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r siteWANListResponseJSON) RawJSON() string { - return r.raw -} - -type SiteWANDeleteResponse struct { - Deleted bool `json:"deleted"` - DeletedWAN WAN `json:"deleted_wan"` - JSON siteWANDeleteResponseJSON `json:"-"` -} - -// siteWANDeleteResponseJSON contains the JSON metadata for the struct -// [SiteWANDeleteResponse] -type siteWANDeleteResponseJSON struct { - Deleted apijson.Field - DeletedWAN apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *SiteWANDeleteResponse) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r siteWANDeleteResponseJSON) RawJSON() string { - return r.raw -} - -type SiteWANGetResponse struct { - WAN WAN `json:"wan"` - JSON siteWANGetResponseJSON `json:"-"` -} - -// siteWANGetResponseJSON contains the JSON metadata for the struct -// [SiteWANGetResponse] -type siteWANGetResponseJSON struct { - WAN apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *SiteWANGetResponse) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r siteWANGetResponseJSON) RawJSON() string { - return r.raw -} - type SiteWANNewParams struct { // Identifier - AccountID param.Field[string] `path:"account_id,required"` - WAN param.Field[SiteWANNewParamsWAN] `json:"wan"` -} - -func (r SiteWANNewParams) MarshalJSON() (data []byte, err error) { - return apijson.MarshalRoot(r) -} - -type SiteWANNewParamsWAN struct { - Physport param.Field[int64] `json:"physport,required"` + AccountID param.Field[string] `path:"account_id,required"` + Physport param.Field[int64] `json:"physport,required"` // VLAN port number. - VlanTag param.Field[int64] `json:"vlan_tag,required"` - Description param.Field[string] `json:"description"` - Priority param.Field[int64] `json:"priority"` + VlanTag param.Field[int64] `json:"vlan_tag,required"` + Name param.Field[string] `json:"name"` + Priority param.Field[int64] `json:"priority"` // (optional) if omitted, use DHCP. Submit secondary_address when site is in high // availability mode. StaticAddressing param.Field[WANStaticAddressingParam] `json:"static_addressing"` } -func (r SiteWANNewParamsWAN) MarshalJSON() (data []byte, err error) { +func (r SiteWANNewParams) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } type SiteWANNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result SiteWANNewResponse `json:"result,required"` + Result []WAN `json:"result,required"` // Whether the API call was successful Success SiteWANNewResponseEnvelopeSuccess `json:"success,required"` JSON siteWANNewResponseEnvelopeJSON `json:"-"` @@ -356,18 +252,10 @@ func (r SiteWANNewResponseEnvelopeSuccess) IsKnown() bool { type SiteWANUpdateParams struct { // Identifier - AccountID param.Field[string] `path:"account_id,required"` - WAN param.Field[SiteWANUpdateParamsWAN] `json:"wan"` -} - -func (r SiteWANUpdateParams) MarshalJSON() (data []byte, err error) { - return apijson.MarshalRoot(r) -} - -type SiteWANUpdateParamsWAN struct { - Description param.Field[string] `json:"description"` - Physport param.Field[int64] `json:"physport"` - Priority param.Field[int64] `json:"priority"` + AccountID param.Field[string] `path:"account_id,required"` + Name param.Field[string] `json:"name"` + Physport param.Field[int64] `json:"physport"` + Priority param.Field[int64] `json:"priority"` // (optional) if omitted, use DHCP. Submit secondary_address when site is in high // availability mode. StaticAddressing param.Field[WANStaticAddressingParam] `json:"static_addressing"` @@ -375,14 +263,14 @@ type SiteWANUpdateParamsWAN struct { VlanTag param.Field[int64] `json:"vlan_tag"` } -func (r SiteWANUpdateParamsWAN) MarshalJSON() (data []byte, err error) { +func (r SiteWANUpdateParams) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } type SiteWANUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result SiteWANUpdateResponse `json:"result,required"` + Result WAN `json:"result,required"` // Whether the API call was successful Success SiteWANUpdateResponseEnvelopeSuccess `json:"success,required"` JSON siteWANUpdateResponseEnvelopeJSON `json:"-"` @@ -427,49 +315,6 @@ type SiteWANListParams struct { AccountID param.Field[string] `path:"account_id,required"` } -type SiteWANListResponseEnvelope struct { - Errors []shared.ResponseInfo `json:"errors,required"` - Messages []shared.ResponseInfo `json:"messages,required"` - Result SiteWANListResponse `json:"result,required"` - // Whether the API call was successful - Success SiteWANListResponseEnvelopeSuccess `json:"success,required"` - JSON siteWANListResponseEnvelopeJSON `json:"-"` -} - -// siteWANListResponseEnvelopeJSON contains the JSON metadata for the struct -// [SiteWANListResponseEnvelope] -type siteWANListResponseEnvelopeJSON struct { - Errors apijson.Field - Messages apijson.Field - Result apijson.Field - Success apijson.Field - raw string - ExtraFields map[string]apijson.Field -} - -func (r *SiteWANListResponseEnvelope) UnmarshalJSON(data []byte) (err error) { - return apijson.UnmarshalRoot(data, r) -} - -func (r siteWANListResponseEnvelopeJSON) RawJSON() string { - return r.raw -} - -// Whether the API call was successful -type SiteWANListResponseEnvelopeSuccess bool - -const ( - SiteWANListResponseEnvelopeSuccessTrue SiteWANListResponseEnvelopeSuccess = true -) - -func (r SiteWANListResponseEnvelopeSuccess) IsKnown() bool { - switch r { - case SiteWANListResponseEnvelopeSuccessTrue: - return true - } - return false -} - type SiteWANDeleteParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` @@ -483,7 +328,7 @@ func (r SiteWANDeleteParams) MarshalJSON() (data []byte, err error) { type SiteWANDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result SiteWANDeleteResponse `json:"result,required"` + Result WAN `json:"result,required"` // Whether the API call was successful Success SiteWANDeleteResponseEnvelopeSuccess `json:"success,required"` JSON siteWANDeleteResponseEnvelopeJSON `json:"-"` @@ -531,7 +376,7 @@ type SiteWANGetParams struct { type SiteWANGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` - Result SiteWANGetResponse `json:"result,required"` + Result WAN `json:"result,required"` // Whether the API call was successful Success SiteWANGetResponseEnvelopeSuccess `json:"success,required"` JSON siteWANGetResponseEnvelopeJSON `json:"-"` diff --git a/magic_transit/sitewan_test.go b/magic_transit/sitewan_test.go index 2f34eff3512..2961c1ac374 100644 --- a/magic_transit/sitewan_test.go +++ b/magic_transit/sitewan_test.go @@ -33,16 +33,14 @@ func TestSiteWANNewWithOptionalParams(t *testing.T) { "023e105f4ecef8ad9ca31a8372d0c353", magic_transit.SiteWANNewParams{ AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), - WAN: cloudflare.F(magic_transit.SiteWANNewParamsWAN{ - Description: cloudflare.F("string"), - Physport: cloudflare.F(int64(1)), - Priority: cloudflare.F(int64(0)), - StaticAddressing: cloudflare.F(magic_transit.WANStaticAddressingParam{ - Address: cloudflare.F("192.0.2.0/24"), - GatewayAddress: cloudflare.F("192.0.2.1"), - SecondaryAddress: cloudflare.F("192.0.2.0/24"), - }), - VlanTag: cloudflare.F(int64(0)), + Physport: cloudflare.F(int64(1)), + VlanTag: cloudflare.F(int64(0)), + Name: cloudflare.F("string"), + Priority: cloudflare.F(int64(0)), + StaticAddressing: cloudflare.F(magic_transit.WANStaticAddressingParam{ + Address: cloudflare.F("192.0.2.0/24"), + GatewayAddress: cloudflare.F("192.0.2.1"), + SecondaryAddress: cloudflare.F("192.0.2.0/24"), }), }, ) @@ -75,17 +73,15 @@ func TestSiteWANUpdateWithOptionalParams(t *testing.T) { "023e105f4ecef8ad9ca31a8372d0c353", magic_transit.SiteWANUpdateParams{ AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), - WAN: cloudflare.F(magic_transit.SiteWANUpdateParamsWAN{ - Description: cloudflare.F("string"), - Physport: cloudflare.F(int64(1)), - Priority: cloudflare.F(int64(0)), - StaticAddressing: cloudflare.F(magic_transit.WANStaticAddressingParam{ - Address: cloudflare.F("192.0.2.0/24"), - GatewayAddress: cloudflare.F("192.0.2.1"), - SecondaryAddress: cloudflare.F("192.0.2.0/24"), - }), - VlanTag: cloudflare.F(int64(0)), + Name: cloudflare.F("string"), + Physport: cloudflare.F(int64(1)), + Priority: cloudflare.F(int64(0)), + StaticAddressing: cloudflare.F(magic_transit.WANStaticAddressingParam{ + Address: cloudflare.F("192.0.2.0/24"), + GatewayAddress: cloudflare.F("192.0.2.1"), + SecondaryAddress: cloudflare.F("192.0.2.0/24"), }), + VlanTag: cloudflare.F(int64(0)), }, ) if err != nil { diff --git a/warp_connector/warpconnector.go b/warp_connector/warpconnector.go index caf5464dfef..0f931219581 100644 --- a/warp_connector/warpconnector.go +++ b/warp_connector/warpconnector.go @@ -134,19 +134,19 @@ type WARPConnectorNewResponse struct { Connections interface{} `json:"connections,required"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. - ConnsActiveAt time.Time `json:"conns_active_at,nullable" format:"date-time"` + ConnsActiveAt time.Time `json:"conns_active_at" format:"date-time"` // Timestamp of when the tunnel became inactive (no connections to Cloudflare's // edge). If `null`, the tunnel is active. - ConnsInactiveAt time.Time `json:"conns_inactive_at,nullable" format:"date-time"` - // Timestamp of when the tunnel was created. + ConnsInactiveAt time.Time `json:"conns_inactive_at" format:"date-time"` + // Timestamp of when the resource was created. CreatedAt time.Time `json:"created_at" format:"date-time"` - // Timestamp of when the tunnel was deleted. If `null`, the tunnel has not been + // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. - DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` + DeletedAt time.Time `json:"deleted_at" format:"date-time"` // UUID of the tunnel. - ID string `json:"id"` + ID string `json:"id" format:"uuid"` Metadata interface{} `json:"metadata,required"` - // A user-friendly name for the tunnel. + // A user-friendly name for a tunnel. Name string `json:"name"` // If `true`, the tunnel can be configured remotely from the Zero Trust dashboard. // If `false`, the tunnel must be configured locally on the origin machine. @@ -223,25 +223,25 @@ func init() { // A Warp Connector Tunnel that connects your origin to Cloudflare's edge. type WARPConnectorNewResponseTunnelWARPConnectorTunnel struct { // UUID of the tunnel. - ID string `json:"id"` + ID string `json:"id" format:"uuid"` // Cloudflare account ID AccountTag string `json:"account_tag"` // The Cloudflare Tunnel connections between your origin and Cloudflare's edge. Connections []WARPConnectorNewResponseTunnelWARPConnectorTunnelConnection `json:"connections"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. - ConnsActiveAt time.Time `json:"conns_active_at,nullable" format:"date-time"` + ConnsActiveAt time.Time `json:"conns_active_at" format:"date-time"` // Timestamp of when the tunnel became inactive (no connections to Cloudflare's // edge). If `null`, the tunnel is active. - ConnsInactiveAt time.Time `json:"conns_inactive_at,nullable" format:"date-time"` - // Timestamp of when the tunnel was created. + ConnsInactiveAt time.Time `json:"conns_inactive_at" format:"date-time"` + // Timestamp of when the resource was created. CreatedAt time.Time `json:"created_at" format:"date-time"` - // Timestamp of when the tunnel was deleted. If `null`, the tunnel has not been + // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. - DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` + DeletedAt time.Time `json:"deleted_at" format:"date-time"` // Metadata associated with the tunnel. Metadata interface{} `json:"metadata"` - // A user-friendly name for the tunnel. + // A user-friendly name for a tunnel. Name string `json:"name"` // The status of the tunnel. Valid values are `inactive` (tunnel has never been // run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy @@ -284,9 +284,9 @@ func (r WARPConnectorNewResponseTunnelWARPConnectorTunnel) ImplementsWARPConnect type WARPConnectorNewResponseTunnelWARPConnectorTunnelConnection struct { // UUID of the Cloudflare Tunnel connection. - ID string `json:"id"` - // UUID of the cloudflared instance. - ClientID interface{} `json:"client_id"` + ID string `json:"id" format:"uuid"` + // UUID of the Cloudflare Tunnel connector. + ClientID string `json:"client_id" format:"uuid"` // The cloudflared version used to establish this connection. ClientVersion string `json:"client_version"` // The Cloudflare data center used for this connection. @@ -301,7 +301,7 @@ type WARPConnectorNewResponseTunnelWARPConnectorTunnelConnection struct { // The public IP address of the host running cloudflared. OriginIP string `json:"origin_ip"` // UUID of the Cloudflare Tunnel connection. - UUID string `json:"uuid"` + UUID string `json:"uuid" format:"uuid"` JSON warpConnectorNewResponseTunnelWARPConnectorTunnelConnectionJSON `json:"-"` } @@ -374,19 +374,19 @@ type WARPConnectorListResponse struct { Connections interface{} `json:"connections,required"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. - ConnsActiveAt time.Time `json:"conns_active_at,nullable" format:"date-time"` + ConnsActiveAt time.Time `json:"conns_active_at" format:"date-time"` // Timestamp of when the tunnel became inactive (no connections to Cloudflare's // edge). If `null`, the tunnel is active. - ConnsInactiveAt time.Time `json:"conns_inactive_at,nullable" format:"date-time"` - // Timestamp of when the tunnel was created. + ConnsInactiveAt time.Time `json:"conns_inactive_at" format:"date-time"` + // Timestamp of when the resource was created. CreatedAt time.Time `json:"created_at" format:"date-time"` - // Timestamp of when the tunnel was deleted. If `null`, the tunnel has not been + // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. - DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` + DeletedAt time.Time `json:"deleted_at" format:"date-time"` // UUID of the tunnel. - ID string `json:"id"` + ID string `json:"id" format:"uuid"` Metadata interface{} `json:"metadata,required"` - // A user-friendly name for the tunnel. + // A user-friendly name for a tunnel. Name string `json:"name"` // If `true`, the tunnel can be configured remotely from the Zero Trust dashboard. // If `false`, the tunnel must be configured locally on the origin machine. @@ -463,25 +463,25 @@ func init() { // A Warp Connector Tunnel that connects your origin to Cloudflare's edge. type WARPConnectorListResponseTunnelWARPConnectorTunnel struct { // UUID of the tunnel. - ID string `json:"id"` + ID string `json:"id" format:"uuid"` // Cloudflare account ID AccountTag string `json:"account_tag"` // The Cloudflare Tunnel connections between your origin and Cloudflare's edge. Connections []WARPConnectorListResponseTunnelWARPConnectorTunnelConnection `json:"connections"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. - ConnsActiveAt time.Time `json:"conns_active_at,nullable" format:"date-time"` + ConnsActiveAt time.Time `json:"conns_active_at" format:"date-time"` // Timestamp of when the tunnel became inactive (no connections to Cloudflare's // edge). If `null`, the tunnel is active. - ConnsInactiveAt time.Time `json:"conns_inactive_at,nullable" format:"date-time"` - // Timestamp of when the tunnel was created. + ConnsInactiveAt time.Time `json:"conns_inactive_at" format:"date-time"` + // Timestamp of when the resource was created. CreatedAt time.Time `json:"created_at" format:"date-time"` - // Timestamp of when the tunnel was deleted. If `null`, the tunnel has not been + // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. - DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` + DeletedAt time.Time `json:"deleted_at" format:"date-time"` // Metadata associated with the tunnel. Metadata interface{} `json:"metadata"` - // A user-friendly name for the tunnel. + // A user-friendly name for a tunnel. Name string `json:"name"` // The status of the tunnel. Valid values are `inactive` (tunnel has never been // run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy @@ -524,9 +524,9 @@ func (r WARPConnectorListResponseTunnelWARPConnectorTunnel) ImplementsWARPConnec type WARPConnectorListResponseTunnelWARPConnectorTunnelConnection struct { // UUID of the Cloudflare Tunnel connection. - ID string `json:"id"` - // UUID of the cloudflared instance. - ClientID interface{} `json:"client_id"` + ID string `json:"id" format:"uuid"` + // UUID of the Cloudflare Tunnel connector. + ClientID string `json:"client_id" format:"uuid"` // The cloudflared version used to establish this connection. ClientVersion string `json:"client_version"` // The Cloudflare data center used for this connection. @@ -541,7 +541,7 @@ type WARPConnectorListResponseTunnelWARPConnectorTunnelConnection struct { // The public IP address of the host running cloudflared. OriginIP string `json:"origin_ip"` // UUID of the Cloudflare Tunnel connection. - UUID string `json:"uuid"` + UUID string `json:"uuid" format:"uuid"` JSON warpConnectorListResponseTunnelWARPConnectorTunnelConnectionJSON `json:"-"` } @@ -614,19 +614,19 @@ type WARPConnectorDeleteResponse struct { Connections interface{} `json:"connections,required"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. - ConnsActiveAt time.Time `json:"conns_active_at,nullable" format:"date-time"` + ConnsActiveAt time.Time `json:"conns_active_at" format:"date-time"` // Timestamp of when the tunnel became inactive (no connections to Cloudflare's // edge). If `null`, the tunnel is active. - ConnsInactiveAt time.Time `json:"conns_inactive_at,nullable" format:"date-time"` - // Timestamp of when the tunnel was created. + ConnsInactiveAt time.Time `json:"conns_inactive_at" format:"date-time"` + // Timestamp of when the resource was created. CreatedAt time.Time `json:"created_at" format:"date-time"` - // Timestamp of when the tunnel was deleted. If `null`, the tunnel has not been + // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. - DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` + DeletedAt time.Time `json:"deleted_at" format:"date-time"` // UUID of the tunnel. - ID string `json:"id"` + ID string `json:"id" format:"uuid"` Metadata interface{} `json:"metadata,required"` - // A user-friendly name for the tunnel. + // A user-friendly name for a tunnel. Name string `json:"name"` // If `true`, the tunnel can be configured remotely from the Zero Trust dashboard. // If `false`, the tunnel must be configured locally on the origin machine. @@ -703,25 +703,25 @@ func init() { // A Warp Connector Tunnel that connects your origin to Cloudflare's edge. type WARPConnectorDeleteResponseTunnelWARPConnectorTunnel struct { // UUID of the tunnel. - ID string `json:"id"` + ID string `json:"id" format:"uuid"` // Cloudflare account ID AccountTag string `json:"account_tag"` // The Cloudflare Tunnel connections between your origin and Cloudflare's edge. Connections []WARPConnectorDeleteResponseTunnelWARPConnectorTunnelConnection `json:"connections"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. - ConnsActiveAt time.Time `json:"conns_active_at,nullable" format:"date-time"` + ConnsActiveAt time.Time `json:"conns_active_at" format:"date-time"` // Timestamp of when the tunnel became inactive (no connections to Cloudflare's // edge). If `null`, the tunnel is active. - ConnsInactiveAt time.Time `json:"conns_inactive_at,nullable" format:"date-time"` - // Timestamp of when the tunnel was created. + ConnsInactiveAt time.Time `json:"conns_inactive_at" format:"date-time"` + // Timestamp of when the resource was created. CreatedAt time.Time `json:"created_at" format:"date-time"` - // Timestamp of when the tunnel was deleted. If `null`, the tunnel has not been + // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. - DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` + DeletedAt time.Time `json:"deleted_at" format:"date-time"` // Metadata associated with the tunnel. Metadata interface{} `json:"metadata"` - // A user-friendly name for the tunnel. + // A user-friendly name for a tunnel. Name string `json:"name"` // The status of the tunnel. Valid values are `inactive` (tunnel has never been // run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy @@ -764,9 +764,9 @@ func (r WARPConnectorDeleteResponseTunnelWARPConnectorTunnel) ImplementsWARPConn type WARPConnectorDeleteResponseTunnelWARPConnectorTunnelConnection struct { // UUID of the Cloudflare Tunnel connection. - ID string `json:"id"` - // UUID of the cloudflared instance. - ClientID interface{} `json:"client_id"` + ID string `json:"id" format:"uuid"` + // UUID of the Cloudflare Tunnel connector. + ClientID string `json:"client_id" format:"uuid"` // The cloudflared version used to establish this connection. ClientVersion string `json:"client_version"` // The Cloudflare data center used for this connection. @@ -781,7 +781,7 @@ type WARPConnectorDeleteResponseTunnelWARPConnectorTunnelConnection struct { // The public IP address of the host running cloudflared. OriginIP string `json:"origin_ip"` // UUID of the Cloudflare Tunnel connection. - UUID string `json:"uuid"` + UUID string `json:"uuid" format:"uuid"` JSON warpConnectorDeleteResponseTunnelWARPConnectorTunnelConnectionJSON `json:"-"` } @@ -854,19 +854,19 @@ type WARPConnectorEditResponse struct { Connections interface{} `json:"connections,required"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. - ConnsActiveAt time.Time `json:"conns_active_at,nullable" format:"date-time"` + ConnsActiveAt time.Time `json:"conns_active_at" format:"date-time"` // Timestamp of when the tunnel became inactive (no connections to Cloudflare's // edge). If `null`, the tunnel is active. - ConnsInactiveAt time.Time `json:"conns_inactive_at,nullable" format:"date-time"` - // Timestamp of when the tunnel was created. + ConnsInactiveAt time.Time `json:"conns_inactive_at" format:"date-time"` + // Timestamp of when the resource was created. CreatedAt time.Time `json:"created_at" format:"date-time"` - // Timestamp of when the tunnel was deleted. If `null`, the tunnel has not been + // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. - DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` + DeletedAt time.Time `json:"deleted_at" format:"date-time"` // UUID of the tunnel. - ID string `json:"id"` + ID string `json:"id" format:"uuid"` Metadata interface{} `json:"metadata,required"` - // A user-friendly name for the tunnel. + // A user-friendly name for a tunnel. Name string `json:"name"` // If `true`, the tunnel can be configured remotely from the Zero Trust dashboard. // If `false`, the tunnel must be configured locally on the origin machine. @@ -943,25 +943,25 @@ func init() { // A Warp Connector Tunnel that connects your origin to Cloudflare's edge. type WARPConnectorEditResponseTunnelWARPConnectorTunnel struct { // UUID of the tunnel. - ID string `json:"id"` + ID string `json:"id" format:"uuid"` // Cloudflare account ID AccountTag string `json:"account_tag"` // The Cloudflare Tunnel connections between your origin and Cloudflare's edge. Connections []WARPConnectorEditResponseTunnelWARPConnectorTunnelConnection `json:"connections"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. - ConnsActiveAt time.Time `json:"conns_active_at,nullable" format:"date-time"` + ConnsActiveAt time.Time `json:"conns_active_at" format:"date-time"` // Timestamp of when the tunnel became inactive (no connections to Cloudflare's // edge). If `null`, the tunnel is active. - ConnsInactiveAt time.Time `json:"conns_inactive_at,nullable" format:"date-time"` - // Timestamp of when the tunnel was created. + ConnsInactiveAt time.Time `json:"conns_inactive_at" format:"date-time"` + // Timestamp of when the resource was created. CreatedAt time.Time `json:"created_at" format:"date-time"` - // Timestamp of when the tunnel was deleted. If `null`, the tunnel has not been + // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. - DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` + DeletedAt time.Time `json:"deleted_at" format:"date-time"` // Metadata associated with the tunnel. Metadata interface{} `json:"metadata"` - // A user-friendly name for the tunnel. + // A user-friendly name for a tunnel. Name string `json:"name"` // The status of the tunnel. Valid values are `inactive` (tunnel has never been // run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy @@ -1004,9 +1004,9 @@ func (r WARPConnectorEditResponseTunnelWARPConnectorTunnel) ImplementsWARPConnec type WARPConnectorEditResponseTunnelWARPConnectorTunnelConnection struct { // UUID of the Cloudflare Tunnel connection. - ID string `json:"id"` - // UUID of the cloudflared instance. - ClientID interface{} `json:"client_id"` + ID string `json:"id" format:"uuid"` + // UUID of the Cloudflare Tunnel connector. + ClientID string `json:"client_id" format:"uuid"` // The cloudflared version used to establish this connection. ClientVersion string `json:"client_version"` // The Cloudflare data center used for this connection. @@ -1021,7 +1021,7 @@ type WARPConnectorEditResponseTunnelWARPConnectorTunnelConnection struct { // The public IP address of the host running cloudflared. OriginIP string `json:"origin_ip"` // UUID of the Cloudflare Tunnel connection. - UUID string `json:"uuid"` + UUID string `json:"uuid" format:"uuid"` JSON warpConnectorEditResponseTunnelWARPConnectorTunnelConnectionJSON `json:"-"` } @@ -1094,19 +1094,19 @@ type WARPConnectorGetResponse struct { Connections interface{} `json:"connections,required"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. - ConnsActiveAt time.Time `json:"conns_active_at,nullable" format:"date-time"` + ConnsActiveAt time.Time `json:"conns_active_at" format:"date-time"` // Timestamp of when the tunnel became inactive (no connections to Cloudflare's // edge). If `null`, the tunnel is active. - ConnsInactiveAt time.Time `json:"conns_inactive_at,nullable" format:"date-time"` - // Timestamp of when the tunnel was created. + ConnsInactiveAt time.Time `json:"conns_inactive_at" format:"date-time"` + // Timestamp of when the resource was created. CreatedAt time.Time `json:"created_at" format:"date-time"` - // Timestamp of when the tunnel was deleted. If `null`, the tunnel has not been + // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. - DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` + DeletedAt time.Time `json:"deleted_at" format:"date-time"` // UUID of the tunnel. - ID string `json:"id"` + ID string `json:"id" format:"uuid"` Metadata interface{} `json:"metadata,required"` - // A user-friendly name for the tunnel. + // A user-friendly name for a tunnel. Name string `json:"name"` // If `true`, the tunnel can be configured remotely from the Zero Trust dashboard. // If `false`, the tunnel must be configured locally on the origin machine. @@ -1183,25 +1183,25 @@ func init() { // A Warp Connector Tunnel that connects your origin to Cloudflare's edge. type WARPConnectorGetResponseTunnelWARPConnectorTunnel struct { // UUID of the tunnel. - ID string `json:"id"` + ID string `json:"id" format:"uuid"` // Cloudflare account ID AccountTag string `json:"account_tag"` // The Cloudflare Tunnel connections between your origin and Cloudflare's edge. Connections []WARPConnectorGetResponseTunnelWARPConnectorTunnelConnection `json:"connections"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. - ConnsActiveAt time.Time `json:"conns_active_at,nullable" format:"date-time"` + ConnsActiveAt time.Time `json:"conns_active_at" format:"date-time"` // Timestamp of when the tunnel became inactive (no connections to Cloudflare's // edge). If `null`, the tunnel is active. - ConnsInactiveAt time.Time `json:"conns_inactive_at,nullable" format:"date-time"` - // Timestamp of when the tunnel was created. + ConnsInactiveAt time.Time `json:"conns_inactive_at" format:"date-time"` + // Timestamp of when the resource was created. CreatedAt time.Time `json:"created_at" format:"date-time"` - // Timestamp of when the tunnel was deleted. If `null`, the tunnel has not been + // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. - DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` + DeletedAt time.Time `json:"deleted_at" format:"date-time"` // Metadata associated with the tunnel. Metadata interface{} `json:"metadata"` - // A user-friendly name for the tunnel. + // A user-friendly name for a tunnel. Name string `json:"name"` // The status of the tunnel. Valid values are `inactive` (tunnel has never been // run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy @@ -1244,9 +1244,9 @@ func (r WARPConnectorGetResponseTunnelWARPConnectorTunnel) ImplementsWARPConnect type WARPConnectorGetResponseTunnelWARPConnectorTunnelConnection struct { // UUID of the Cloudflare Tunnel connection. - ID string `json:"id"` - // UUID of the cloudflared instance. - ClientID interface{} `json:"client_id"` + ID string `json:"id" format:"uuid"` + // UUID of the Cloudflare Tunnel connector. + ClientID string `json:"client_id" format:"uuid"` // The cloudflared version used to establish this connection. ClientVersion string `json:"client_version"` // The Cloudflare data center used for this connection. @@ -1261,7 +1261,7 @@ type WARPConnectorGetResponseTunnelWARPConnectorTunnelConnection struct { // The public IP address of the host running cloudflared. OriginIP string `json:"origin_ip"` // UUID of the Cloudflare Tunnel connection. - UUID string `json:"uuid"` + UUID string `json:"uuid" format:"uuid"` JSON warpConnectorGetResponseTunnelWARPConnectorTunnelConnectionJSON `json:"-"` } @@ -1355,7 +1355,7 @@ func (r WARPConnectorTokenResponseArray) ImplementsWARPConnectorWARPConnectorTok type WARPConnectorNewParams struct { // Cloudflare account ID AccountID param.Field[string] `path:"account_id,required"` - // A user-friendly name for the tunnel. + // A user-friendly name for a tunnel. Name param.Field[string] `json:"name,required"` } @@ -1425,7 +1425,7 @@ type WARPConnectorListParams struct { // Number of results to display. PerPage param.Field[float64] `query:"per_page"` // UUID of the tunnel. - UUID param.Field[string] `query:"uuid"` + UUID param.Field[string] `query:"uuid" format:"uuid"` WasActiveAt param.Field[time.Time] `query:"was_active_at" format:"date-time"` WasInactiveAt param.Field[time.Time] `query:"was_inactive_at" format:"date-time"` } @@ -1496,7 +1496,7 @@ func (r WARPConnectorDeleteResponseEnvelopeSuccess) IsKnown() bool { type WARPConnectorEditParams struct { // Cloudflare account ID AccountID param.Field[string] `path:"account_id,required"` - // A user-friendly name for the tunnel. + // A user-friendly name for a tunnel. Name param.Field[string] `json:"name"` // Sets the password required to run a locally-managed tunnel. Must be at least 32 // bytes and encoded as a base64 string. diff --git a/zero_trust/networkroute.go b/zero_trust/networkroute.go index 0b05fba680d..5b05205de66 100644 --- a/zero_trust/networkroute.go +++ b/zero_trust/networkroute.go @@ -108,20 +108,18 @@ type Route struct { ID string `json:"id"` // Optional remark describing the route. Comment string `json:"comment"` - // Timestamp of when the route was created. - CreatedAt interface{} `json:"created_at"` - // Timestamp of when the route was deleted. If `null`, the route has not been + // Timestamp of when the resource was created. + CreatedAt time.Time `json:"created_at" format:"date-time"` + // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. - DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` + DeletedAt time.Time `json:"deleted_at" format:"date-time"` // The private IPv4 or IPv6 range connected by the route, in CIDR notation. Network string `json:"network"` - // UUID of the Cloudflare Tunnel serving the route. - TunnelID interface{} `json:"tunnel_id"` - // UUID of the Tunnel Virtual Network this route belongs to. If no virtual networks - // are configured, the route is assigned to the default virtual network of the - // account. - VirtualNetworkID interface{} `json:"virtual_network_id"` - JSON routeJSON `json:"-"` + // UUID of the tunnel. + TunnelID string `json:"tunnel_id" format:"uuid"` + // UUID of the virtual network. + VirtualNetworkID string `json:"virtual_network_id" format:"uuid"` + JSON routeJSON `json:"-"` } // routeJSON contains the JSON metadata for the struct [Route] @@ -148,16 +146,15 @@ func (r routeJSON) RawJSON() string { type RouteParam struct { // Optional remark describing the route. Comment param.Field[string] `json:"comment"` - // Timestamp of when the route was created. - CreatedAt param.Field[interface{}] `json:"created_at"` + // Timestamp of when the resource was created. + CreatedAt param.Field[time.Time] `json:"created_at" format:"date-time"` + // Timestamp of when the resource was deleted. If `null`, the resource has not been + // deleted. + DeletedAt param.Field[time.Time] `json:"deleted_at" format:"date-time"` // The private IPv4 or IPv6 range connected by the route, in CIDR notation. Network param.Field[string] `json:"network"` - // UUID of the Cloudflare Tunnel serving the route. - TunnelID param.Field[interface{}] `json:"tunnel_id"` - // UUID of the Tunnel Virtual Network this route belongs to. If no virtual networks - // are configured, the route is assigned to the default virtual network of the - // account. - VirtualNetworkID param.Field[interface{}] `json:"virtual_network_id"` + // UUID of the virtual network. + VirtualNetworkID param.Field[string] `json:"virtual_network_id" format:"uuid"` } func (r RouteParam) MarshalJSON() (data []byte, err error) { @@ -169,23 +166,21 @@ type Teamnet struct { ID string `json:"id"` // Optional remark describing the route. Comment string `json:"comment"` - // Timestamp of when the route was created. - CreatedAt interface{} `json:"created_at"` - // Timestamp of when the route was deleted. If `null`, the route has not been + // Timestamp of when the resource was created. + CreatedAt time.Time `json:"created_at" format:"date-time"` + // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. - DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` + DeletedAt time.Time `json:"deleted_at" format:"date-time"` // The private IPv4 or IPv6 range connected by the route, in CIDR notation. Network string `json:"network"` // The type of tunnel. TunType TeamnetTunType `json:"tun_type"` - // UUID of the Cloudflare Tunnel serving the route. - TunnelID interface{} `json:"tunnel_id"` - // The user-friendly name of the Cloudflare Tunnel serving the route. - TunnelName interface{} `json:"tunnel_name"` - // UUID of the Tunnel Virtual Network this route belongs to. If no virtual networks - // are configured, the route is assigned to the default virtual network of the - // account. - VirtualNetworkID interface{} `json:"virtual_network_id"` + // UUID of the tunnel. + TunnelID string `json:"tunnel_id" format:"uuid"` + // A user-friendly name for a tunnel. + TunnelName string `json:"tunnel_name"` + // UUID of the virtual network. + VirtualNetworkID string `json:"virtual_network_id" format:"uuid"` // A user-friendly name for the virtual network. VirtualNetworkName string `json:"virtual_network_name"` JSON teamnetJSON `json:"-"` @@ -238,13 +233,11 @@ type NetworkRouteNewParams struct { // Cloudflare account ID AccountID param.Field[string] `path:"account_id,required"` // The private IPv4 or IPv6 range connected by the route, in CIDR notation. - IPNetwork param.Field[string] `json:"ip_network,required"` + Network param.Field[string] `json:"network,required"` // Optional remark describing the route. Comment param.Field[string] `json:"comment"` - // UUID of the Tunnel Virtual Network this route belongs to. If no virtual networks - // are configured, the route is assigned to the default virtual network of the - // account. - VirtualNetworkID param.Field[interface{}] `json:"virtual_network_id"` + // UUID of the virtual network. + VirtualNetworkID param.Field[string] `json:"virtual_network_id" format:"uuid"` } func (r NetworkRouteNewParams) MarshalJSON() (data []byte, err error) { @@ -299,16 +292,16 @@ type NetworkRouteListParams struct { AccountID param.Field[string] `path:"account_id,required"` // Optional remark describing the route. Comment param.Field[string] `query:"comment"` - // If provided, include only routes that were created (and not deleted) before this - // time. - ExistedAt param.Field[interface{}] `query:"existed_at"` + // If provided, include only tunnels that were created (and not deleted) before + // this time. + ExistedAt param.Field[time.Time] `query:"existed_at" format:"date-time"` // If `true`, only include deleted routes. If `false`, exclude deleted routes. If // empty, all routes will be included. - IsDeleted param.Field[interface{}] `query:"is_deleted"` + IsDeleted param.Field[bool] `query:"is_deleted"` // If set, only list routes that are contained within this IP range. - NetworkSubset param.Field[interface{}] `query:"network_subset"` + NetworkSubset param.Field[string] `query:"network_subset"` // If set, only list routes that contain this IP range. - NetworkSuperset param.Field[interface{}] `query:"network_superset"` + NetworkSuperset param.Field[string] `query:"network_superset"` // Page number of paginated results. Page param.Field[float64] `query:"page"` // Number of results to display. @@ -317,12 +310,10 @@ type NetworkRouteListParams struct { RouteID param.Field[string] `query:"route_id"` // The types of tunnels to filter separated by a comma. TunTypes param.Field[string] `query:"tun_types"` - // UUID of the Cloudflare Tunnel serving the route. - TunnelID param.Field[interface{}] `query:"tunnel_id"` - // UUID of the Tunnel Virtual Network this route belongs to. If no virtual networks - // are configured, the route is assigned to the default virtual network of the - // account. - VirtualNetworkID param.Field[interface{}] `query:"virtual_network_id"` + // UUID of the tunnel. + TunnelID param.Field[string] `query:"tunnel_id" format:"uuid"` + // UUID of the virtual network. + VirtualNetworkID param.Field[string] `query:"virtual_network_id" format:"uuid"` } // URLQuery serializes [NetworkRouteListParams]'s query parameters as `url.Values`. @@ -388,39 +379,14 @@ type NetworkRouteEditParams struct { Comment param.Field[string] `json:"comment"` // The private IPv4 or IPv6 range connected by the route, in CIDR notation. Network param.Field[string] `json:"network"` - // The type of tunnel. - TunType param.Field[NetworkRouteEditParamsTunType] `json:"tun_type"` - // UUID of the Cloudflare Tunnel serving the route. - TunnelID param.Field[interface{}] `json:"tunnel_id"` - // UUID of the Tunnel Virtual Network this route belongs to. If no virtual networks - // are configured, the route is assigned to the default virtual network of the - // account. - VirtualNetworkID param.Field[interface{}] `json:"virtual_network_id"` + // UUID of the virtual network. + VirtualNetworkID param.Field[string] `json:"virtual_network_id" format:"uuid"` } func (r NetworkRouteEditParams) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -// The type of tunnel. -type NetworkRouteEditParamsTunType string - -const ( - NetworkRouteEditParamsTunTypeCfdTunnel NetworkRouteEditParamsTunType = "cfd_tunnel" - NetworkRouteEditParamsTunTypeWARPConnector NetworkRouteEditParamsTunType = "warp_connector" - NetworkRouteEditParamsTunTypeIPSec NetworkRouteEditParamsTunType = "ip_sec" - NetworkRouteEditParamsTunTypeGRE NetworkRouteEditParamsTunType = "gre" - NetworkRouteEditParamsTunTypeCNI NetworkRouteEditParamsTunType = "cni" -) - -func (r NetworkRouteEditParamsTunType) IsKnown() bool { - switch r { - case NetworkRouteEditParamsTunTypeCfdTunnel, NetworkRouteEditParamsTunTypeWARPConnector, NetworkRouteEditParamsTunTypeIPSec, NetworkRouteEditParamsTunTypeGRE, NetworkRouteEditParamsTunTypeCNI: - return true - } - return false -} - type NetworkRouteEditResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` diff --git a/zero_trust/networkroute_test.go b/zero_trust/networkroute_test.go index 3c04502ea7f..9758c82accc 100644 --- a/zero_trust/networkroute_test.go +++ b/zero_trust/networkroute_test.go @@ -7,6 +7,7 @@ import ( "errors" "os" "testing" + "time" "github.com/cloudflare/cloudflare-go/v2" "github.com/cloudflare/cloudflare-go/v2/internal/testutil" @@ -30,9 +31,9 @@ func TestNetworkRouteNewWithOptionalParams(t *testing.T) { ) _, err := client.ZeroTrust.Networks.Routes.New(context.TODO(), zero_trust.NetworkRouteNewParams{ AccountID: cloudflare.F("699d98642c564d2e855e9661899b7252"), - IPNetwork: cloudflare.F("172.16.0.0/16"), + Network: cloudflare.F("172.16.0.0/16"), Comment: cloudflare.F("Example comment for this route."), - VirtualNetworkID: cloudflare.F[any](map[string]interface{}{}), + VirtualNetworkID: cloudflare.F("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"), }) if err != nil { var apierr *cloudflare.Error @@ -60,16 +61,16 @@ func TestNetworkRouteListWithOptionalParams(t *testing.T) { _, err := client.ZeroTrust.Networks.Routes.List(context.TODO(), zero_trust.NetworkRouteListParams{ AccountID: cloudflare.F("699d98642c564d2e855e9661899b7252"), Comment: cloudflare.F("Example comment for this route."), - ExistedAt: cloudflare.F[any](map[string]interface{}{}), - IsDeleted: cloudflare.F[any](map[string]interface{}{}), - NetworkSubset: cloudflare.F[any](map[string]interface{}{}), - NetworkSuperset: cloudflare.F[any](map[string]interface{}{}), + ExistedAt: cloudflare.F(time.Now()), + IsDeleted: cloudflare.F(true), + NetworkSubset: cloudflare.F("172.16.0.0/16"), + NetworkSuperset: cloudflare.F("172.16.0.0/16"), Page: cloudflare.F(1.000000), PerPage: cloudflare.F(1.000000), RouteID: cloudflare.F("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"), TunTypes: cloudflare.F("cfd_tunnel,warp_connector"), - TunnelID: cloudflare.F[any](map[string]interface{}{}), - VirtualNetworkID: cloudflare.F[any](map[string]interface{}{}), + TunnelID: cloudflare.F("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"), + VirtualNetworkID: cloudflare.F("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"), }) if err != nil { var apierr *cloudflare.Error @@ -131,9 +132,7 @@ func TestNetworkRouteEditWithOptionalParams(t *testing.T) { AccountID: cloudflare.F("699d98642c564d2e855e9661899b7252"), Comment: cloudflare.F("Example comment for this route."), Network: cloudflare.F("172.16.0.0/16"), - TunType: cloudflare.F(zero_trust.NetworkRouteEditParamsTunTypeCfdTunnel), - TunnelID: cloudflare.F[any](map[string]interface{}{}), - VirtualNetworkID: cloudflare.F[any](map[string]interface{}{}), + VirtualNetworkID: cloudflare.F("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"), }, ) if err != nil { diff --git a/zero_trust/networkrouteip.go b/zero_trust/networkrouteip.go index cc9d69f8a3a..72867fc846c 100644 --- a/zero_trust/networkrouteip.go +++ b/zero_trust/networkrouteip.go @@ -50,10 +50,8 @@ func (r *NetworkRouteIPService) Get(ctx context.Context, ip string, params Netwo type NetworkRouteIPGetParams struct { // Cloudflare account ID AccountID param.Field[string] `path:"account_id,required"` - // UUID of the Tunnel Virtual Network this route belongs to. If no virtual networks - // are configured, the route is assigned to the default virtual network of the - // account. - VirtualNetworkID param.Field[interface{}] `query:"virtual_network_id"` + // UUID of the virtual network. + VirtualNetworkID param.Field[string] `query:"virtual_network_id" format:"uuid"` } // URLQuery serializes [NetworkRouteIPGetParams]'s query parameters as diff --git a/zero_trust/networkrouteip_test.go b/zero_trust/networkrouteip_test.go index cb4e5b16c12..82d48c3e99a 100644 --- a/zero_trust/networkrouteip_test.go +++ b/zero_trust/networkrouteip_test.go @@ -33,7 +33,7 @@ func TestNetworkRouteIPGetWithOptionalParams(t *testing.T) { "10.1.0.137", zero_trust.NetworkRouteIPGetParams{ AccountID: cloudflare.F("699d98642c564d2e855e9661899b7252"), - VirtualNetworkID: cloudflare.F[any](map[string]interface{}{}), + VirtualNetworkID: cloudflare.F("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"), }, ) if err != nil { diff --git a/zero_trust/networkroutenetwork.go b/zero_trust/networkroutenetwork.go index cbaf1aafbaf..bf359c60e43 100644 --- a/zero_trust/networkroutenetwork.go +++ b/zero_trust/networkroutenetwork.go @@ -86,10 +86,8 @@ type NetworkRouteNetworkNewParams struct { AccountID param.Field[string] `path:"account_id,required"` // Optional remark describing the route. Comment param.Field[string] `json:"comment"` - // UUID of the Tunnel Virtual Network this route belongs to. If no virtual networks - // are configured, the route is assigned to the default virtual network of the - // account. - VirtualNetworkID param.Field[interface{}] `json:"virtual_network_id"` + // UUID of the virtual network. + VirtualNetworkID param.Field[string] `json:"virtual_network_id" format:"uuid"` } func (r NetworkRouteNetworkNewParams) MarshalJSON() (data []byte, err error) { @@ -145,9 +143,9 @@ type NetworkRouteNetworkDeleteParams struct { // The type of tunnel. TunType param.Field[NetworkRouteNetworkDeleteParamsTunType] `query:"tun_type"` // UUID of the tunnel. - TunnelID param.Field[string] `query:"tunnel_id"` + TunnelID param.Field[string] `query:"tunnel_id" format:"uuid"` // UUID of the virtual network. - VirtualNetworkID param.Field[string] `query:"virtual_network_id"` + VirtualNetworkID param.Field[string] `query:"virtual_network_id" format:"uuid"` } // URLQuery serializes [NetworkRouteNetworkDeleteParams]'s query parameters as diff --git a/zero_trust/networkroutenetwork_test.go b/zero_trust/networkroutenetwork_test.go index ef2a28f80bb..1d42308708d 100644 --- a/zero_trust/networkroutenetwork_test.go +++ b/zero_trust/networkroutenetwork_test.go @@ -34,7 +34,7 @@ func TestNetworkRouteNetworkNewWithOptionalParams(t *testing.T) { zero_trust.NetworkRouteNetworkNewParams{ AccountID: cloudflare.F("699d98642c564d2e855e9661899b7252"), Comment: cloudflare.F("Example comment for this route."), - VirtualNetworkID: cloudflare.F[any](map[string]interface{}{}), + VirtualNetworkID: cloudflare.F("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"), }, ) if err != nil { diff --git a/zero_trust/networkvirtualnetwork.go b/zero_trust/networkvirtualnetwork.go index ff73de83199..792ea65fe6e 100644 --- a/zero_trust/networkvirtualnetwork.go +++ b/zero_trust/networkvirtualnetwork.go @@ -8,6 +8,7 @@ import ( "net/http" "net/url" "reflect" + "time" "github.com/cloudflare/cloudflare-go/v2/internal/apijson" "github.com/cloudflare/cloudflare-go/v2/internal/apiquery" @@ -101,18 +102,18 @@ func (r *NetworkVirtualNetworkService) Edit(ctx context.Context, virtualNetworkI type VirtualNetwork struct { // UUID of the virtual network. - ID string `json:"id,required"` + ID string `json:"id,required" format:"uuid"` // Optional remark describing the virtual network. Comment string `json:"comment,required"` - // Timestamp of when the virtual network was created. - CreatedAt interface{} `json:"created_at,required"` + // Timestamp of when the resource was created. + CreatedAt time.Time `json:"created_at,required" format:"date-time"` // If `true`, this virtual network is the default for the account. IsDefaultNetwork bool `json:"is_default_network,required"` // A user-friendly name for the virtual network. Name string `json:"name,required"` - // Timestamp of when the virtual network was deleted. If `null`, the virtual - // network has not been deleted. - DeletedAt interface{} `json:"deleted_at"` + // Timestamp of when the resource was deleted. If `null`, the resource has not been + // deleted. + DeletedAt time.Time `json:"deleted_at" format:"date-time"` JSON virtualNetworkJSON `json:"-"` } @@ -275,18 +276,16 @@ func (r NetworkVirtualNetworkNewResponseEnvelopeSuccess) IsKnown() bool { type NetworkVirtualNetworkListParams struct { // Cloudflare account ID AccountID param.Field[string] `path:"account_id,required"` + // UUID of the virtual network. + ID param.Field[string] `query:"id" format:"uuid"` // If `true`, only include the default virtual network. If `false`, exclude the // default virtual network. If empty, all virtual networks will be included. - IsDefault param.Field[interface{}] `query:"is_default"` + IsDefault param.Field[bool] `query:"is_default"` // If `true`, only include deleted virtual networks. If `false`, exclude deleted // virtual networks. If empty, all virtual networks will be included. - IsDeleted param.Field[interface{}] `query:"is_deleted"` + IsDeleted param.Field[bool] `query:"is_deleted"` // A user-friendly name for the virtual network. Name param.Field[string] `query:"name"` - // UUID of the virtual network. - VnetID param.Field[string] `query:"vnet_id"` - // A user-friendly name for the virtual network. - VnetName param.Field[string] `query:"vnet_name"` } // URLQuery serializes [NetworkVirtualNetworkListParams]'s query parameters as diff --git a/zero_trust/networkvirtualnetwork_test.go b/zero_trust/networkvirtualnetwork_test.go index 66f6131296e..1acfc055793 100644 --- a/zero_trust/networkvirtualnetwork_test.go +++ b/zero_trust/networkvirtualnetwork_test.go @@ -59,11 +59,10 @@ func TestNetworkVirtualNetworkListWithOptionalParams(t *testing.T) { ) _, err := client.ZeroTrust.Networks.VirtualNetworks.List(context.TODO(), zero_trust.NetworkVirtualNetworkListParams{ AccountID: cloudflare.F("699d98642c564d2e855e9661899b7252"), - IsDefault: cloudflare.F[any](map[string]interface{}{}), - IsDeleted: cloudflare.F[any](map[string]interface{}{}), + ID: cloudflare.F("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"), + IsDefault: cloudflare.F(true), + IsDeleted: cloudflare.F(true), Name: cloudflare.F("us-east-1-vpc"), - VnetID: cloudflare.F("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"), - VnetName: cloudflare.F("us-east-1-vpc"), }) if err != nil { var apierr *cloudflare.Error diff --git a/zero_trust/tunnel.go b/zero_trust/tunnel.go index bd6ddb667fa..197ec971de3 100644 --- a/zero_trust/tunnel.go +++ b/zero_trust/tunnel.go @@ -131,7 +131,7 @@ type Connection struct { // tracked. If `false`, the connection is actively serving traffic. IsPendingReconnect bool `json:"is_pending_reconnect"` // UUID of the Cloudflare Tunnel connection. - UUID string `json:"uuid"` + UUID string `json:"uuid" format:"uuid"` JSON connectionJSON `json:"-"` } @@ -154,16 +154,16 @@ func (r connectionJSON) RawJSON() string { type TunnelNewResponse struct { // UUID of the tunnel. - ID string `json:"id,required"` + ID string `json:"id,required" format:"uuid"` // The tunnel connections between your origin and Cloudflare's edge. Connections []Connection `json:"connections,required"` - // Timestamp of when the tunnel was created. + // Timestamp of when the resource was created. CreatedAt time.Time `json:"created_at,required" format:"date-time"` - // A user-friendly name for the tunnel. + // A user-friendly name for a tunnel. Name string `json:"name,required"` - // Timestamp of when the tunnel was deleted. If `null`, the tunnel has not been + // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. - DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` + DeletedAt time.Time `json:"deleted_at" format:"date-time"` JSON tunnelNewResponseJSON `json:"-"` } @@ -194,19 +194,19 @@ type TunnelListResponse struct { Connections interface{} `json:"connections,required"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. - ConnsActiveAt time.Time `json:"conns_active_at,nullable" format:"date-time"` + ConnsActiveAt time.Time `json:"conns_active_at" format:"date-time"` // Timestamp of when the tunnel became inactive (no connections to Cloudflare's // edge). If `null`, the tunnel is active. - ConnsInactiveAt time.Time `json:"conns_inactive_at,nullable" format:"date-time"` - // Timestamp of when the tunnel was created. + ConnsInactiveAt time.Time `json:"conns_inactive_at" format:"date-time"` + // Timestamp of when the resource was created. CreatedAt time.Time `json:"created_at" format:"date-time"` - // Timestamp of when the tunnel was deleted. If `null`, the tunnel has not been + // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. - DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` + DeletedAt time.Time `json:"deleted_at" format:"date-time"` // UUID of the tunnel. - ID string `json:"id"` + ID string `json:"id" format:"uuid"` Metadata interface{} `json:"metadata,required"` - // A user-friendly name for the tunnel. + // A user-friendly name for a tunnel. Name string `json:"name"` // If `true`, the tunnel can be configured remotely from the Zero Trust dashboard. // If `false`, the tunnel must be configured locally on the origin machine. @@ -283,25 +283,25 @@ func init() { // A Warp Connector Tunnel that connects your origin to Cloudflare's edge. type TunnelListResponseTunnelWARPConnectorTunnel struct { // UUID of the tunnel. - ID string `json:"id"` + ID string `json:"id" format:"uuid"` // Cloudflare account ID AccountTag string `json:"account_tag"` // The Cloudflare Tunnel connections between your origin and Cloudflare's edge. Connections []TunnelListResponseTunnelWARPConnectorTunnelConnection `json:"connections"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. - ConnsActiveAt time.Time `json:"conns_active_at,nullable" format:"date-time"` + ConnsActiveAt time.Time `json:"conns_active_at" format:"date-time"` // Timestamp of when the tunnel became inactive (no connections to Cloudflare's // edge). If `null`, the tunnel is active. - ConnsInactiveAt time.Time `json:"conns_inactive_at,nullable" format:"date-time"` - // Timestamp of when the tunnel was created. + ConnsInactiveAt time.Time `json:"conns_inactive_at" format:"date-time"` + // Timestamp of when the resource was created. CreatedAt time.Time `json:"created_at" format:"date-time"` - // Timestamp of when the tunnel was deleted. If `null`, the tunnel has not been + // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. - DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` + DeletedAt time.Time `json:"deleted_at" format:"date-time"` // Metadata associated with the tunnel. Metadata interface{} `json:"metadata"` - // A user-friendly name for the tunnel. + // A user-friendly name for a tunnel. Name string `json:"name"` // The status of the tunnel. Valid values are `inactive` (tunnel has never been // run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy @@ -343,9 +343,9 @@ func (r TunnelListResponseTunnelWARPConnectorTunnel) ImplementsZeroTrustTunnelLi type TunnelListResponseTunnelWARPConnectorTunnelConnection struct { // UUID of the Cloudflare Tunnel connection. - ID string `json:"id"` - // UUID of the cloudflared instance. - ClientID interface{} `json:"client_id"` + ID string `json:"id" format:"uuid"` + // UUID of the Cloudflare Tunnel connector. + ClientID string `json:"client_id" format:"uuid"` // The cloudflared version used to establish this connection. ClientVersion string `json:"client_version"` // The Cloudflare data center used for this connection. @@ -360,7 +360,7 @@ type TunnelListResponseTunnelWARPConnectorTunnelConnection struct { // The public IP address of the host running cloudflared. OriginIP string `json:"origin_ip"` // UUID of the Cloudflare Tunnel connection. - UUID string `json:"uuid"` + UUID string `json:"uuid" format:"uuid"` JSON tunnelListResponseTunnelWARPConnectorTunnelConnectionJSON `json:"-"` } @@ -427,16 +427,16 @@ func (r TunnelListResponseTunType) IsKnown() bool { type TunnelDeleteResponse struct { // UUID of the tunnel. - ID string `json:"id,required"` + ID string `json:"id,required" format:"uuid"` // The tunnel connections between your origin and Cloudflare's edge. Connections []Connection `json:"connections,required"` - // Timestamp of when the tunnel was created. + // Timestamp of when the resource was created. CreatedAt time.Time `json:"created_at,required" format:"date-time"` - // A user-friendly name for the tunnel. + // A user-friendly name for a tunnel. Name string `json:"name,required"` - // Timestamp of when the tunnel was deleted. If `null`, the tunnel has not been + // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. - DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` + DeletedAt time.Time `json:"deleted_at" format:"date-time"` JSON tunnelDeleteResponseJSON `json:"-"` } @@ -467,19 +467,19 @@ type TunnelEditResponse struct { Connections interface{} `json:"connections,required"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. - ConnsActiveAt time.Time `json:"conns_active_at,nullable" format:"date-time"` + ConnsActiveAt time.Time `json:"conns_active_at" format:"date-time"` // Timestamp of when the tunnel became inactive (no connections to Cloudflare's // edge). If `null`, the tunnel is active. - ConnsInactiveAt time.Time `json:"conns_inactive_at,nullable" format:"date-time"` - // Timestamp of when the tunnel was created. + ConnsInactiveAt time.Time `json:"conns_inactive_at" format:"date-time"` + // Timestamp of when the resource was created. CreatedAt time.Time `json:"created_at" format:"date-time"` - // Timestamp of when the tunnel was deleted. If `null`, the tunnel has not been + // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. - DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` + DeletedAt time.Time `json:"deleted_at" format:"date-time"` // UUID of the tunnel. - ID string `json:"id"` + ID string `json:"id" format:"uuid"` Metadata interface{} `json:"metadata,required"` - // A user-friendly name for the tunnel. + // A user-friendly name for a tunnel. Name string `json:"name"` // If `true`, the tunnel can be configured remotely from the Zero Trust dashboard. // If `false`, the tunnel must be configured locally on the origin machine. @@ -556,25 +556,25 @@ func init() { // A Warp Connector Tunnel that connects your origin to Cloudflare's edge. type TunnelEditResponseTunnelWARPConnectorTunnel struct { // UUID of the tunnel. - ID string `json:"id"` + ID string `json:"id" format:"uuid"` // Cloudflare account ID AccountTag string `json:"account_tag"` // The Cloudflare Tunnel connections between your origin and Cloudflare's edge. Connections []TunnelEditResponseTunnelWARPConnectorTunnelConnection `json:"connections"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. - ConnsActiveAt time.Time `json:"conns_active_at,nullable" format:"date-time"` + ConnsActiveAt time.Time `json:"conns_active_at" format:"date-time"` // Timestamp of when the tunnel became inactive (no connections to Cloudflare's // edge). If `null`, the tunnel is active. - ConnsInactiveAt time.Time `json:"conns_inactive_at,nullable" format:"date-time"` - // Timestamp of when the tunnel was created. + ConnsInactiveAt time.Time `json:"conns_inactive_at" format:"date-time"` + // Timestamp of when the resource was created. CreatedAt time.Time `json:"created_at" format:"date-time"` - // Timestamp of when the tunnel was deleted. If `null`, the tunnel has not been + // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. - DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` + DeletedAt time.Time `json:"deleted_at" format:"date-time"` // Metadata associated with the tunnel. Metadata interface{} `json:"metadata"` - // A user-friendly name for the tunnel. + // A user-friendly name for a tunnel. Name string `json:"name"` // The status of the tunnel. Valid values are `inactive` (tunnel has never been // run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy @@ -616,9 +616,9 @@ func (r TunnelEditResponseTunnelWARPConnectorTunnel) ImplementsZeroTrustTunnelEd type TunnelEditResponseTunnelWARPConnectorTunnelConnection struct { // UUID of the Cloudflare Tunnel connection. - ID string `json:"id"` - // UUID of the cloudflared instance. - ClientID interface{} `json:"client_id"` + ID string `json:"id" format:"uuid"` + // UUID of the Cloudflare Tunnel connector. + ClientID string `json:"client_id" format:"uuid"` // The cloudflared version used to establish this connection. ClientVersion string `json:"client_version"` // The Cloudflare data center used for this connection. @@ -633,7 +633,7 @@ type TunnelEditResponseTunnelWARPConnectorTunnelConnection struct { // The public IP address of the host running cloudflared. OriginIP string `json:"origin_ip"` // UUID of the Cloudflare Tunnel connection. - UUID string `json:"uuid"` + UUID string `json:"uuid" format:"uuid"` JSON tunnelEditResponseTunnelWARPConnectorTunnelConnectionJSON `json:"-"` } @@ -700,16 +700,16 @@ func (r TunnelEditResponseTunType) IsKnown() bool { type TunnelGetResponse struct { // UUID of the tunnel. - ID string `json:"id,required"` + ID string `json:"id,required" format:"uuid"` // The tunnel connections between your origin and Cloudflare's edge. Connections []Connection `json:"connections,required"` - // Timestamp of when the tunnel was created. + // Timestamp of when the resource was created. CreatedAt time.Time `json:"created_at,required" format:"date-time"` - // A user-friendly name for the tunnel. + // A user-friendly name for a tunnel. Name string `json:"name,required"` - // Timestamp of when the tunnel was deleted. If `null`, the tunnel has not been + // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. - DeletedAt time.Time `json:"deleted_at,nullable" format:"date-time"` + DeletedAt time.Time `json:"deleted_at" format:"date-time"` JSON tunnelGetResponseJSON `json:"-"` } @@ -736,11 +736,11 @@ func (r tunnelGetResponseJSON) RawJSON() string { type TunnelNewParams struct { // Cloudflare account ID AccountID param.Field[string] `path:"account_id,required"` - // A user-friendly name for the tunnel. + // A user-friendly name for a tunnel. Name param.Field[string] `json:"name,required"` - // Sets the password required to run the tunnel. Must be at least 32 bytes and - // encoded as a base64 string. - TunnelSecret param.Field[interface{}] `json:"tunnel_secret,required"` + // Sets the password required to run a locally-managed tunnel. Must be at least 32 + // bytes and encoded as a base64 string. + TunnelSecret param.Field[string] `json:"tunnel_secret,required"` } func (r TunnelNewParams) MarshalJSON() (data []byte, err error) { @@ -810,7 +810,7 @@ type TunnelListParams struct { // The types of tunnels to filter separated by a comma. TunTypes param.Field[string] `query:"tun_types"` // UUID of the tunnel. - UUID param.Field[string] `query:"uuid"` + UUID param.Field[string] `query:"uuid" format:"uuid"` WasActiveAt param.Field[time.Time] `query:"was_active_at" format:"date-time"` WasInactiveAt param.Field[time.Time] `query:"was_inactive_at" format:"date-time"` } @@ -879,7 +879,7 @@ func (r TunnelDeleteResponseEnvelopeSuccess) IsKnown() bool { type TunnelEditParams struct { // Cloudflare account ID AccountID param.Field[string] `path:"account_id,required"` - // A user-friendly name for the tunnel. + // A user-friendly name for a tunnel. Name param.Field[string] `json:"name"` // Sets the password required to run a locally-managed tunnel. Must be at least 32 // bytes and encoded as a base64 string. diff --git a/zero_trust/tunnel_test.go b/zero_trust/tunnel_test.go index 83ca927fc19..3894d09ba10 100644 --- a/zero_trust/tunnel_test.go +++ b/zero_trust/tunnel_test.go @@ -32,7 +32,7 @@ func TestTunnelNew(t *testing.T) { _, err := client.ZeroTrust.Tunnels.New(context.TODO(), zero_trust.TunnelNewParams{ AccountID: cloudflare.F("699d98642c564d2e855e9661899b7252"), Name: cloudflare.F("blog"), - TunnelSecret: cloudflare.F[any](map[string]interface{}{}), + TunnelSecret: cloudflare.F("AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg="), }) if err != nil { var apierr *cloudflare.Error diff --git a/zero_trust/tunnelconfiguration.go b/zero_trust/tunnelconfiguration.go index a0ca03c2f46..7612c74a10f 100644 --- a/zero_trust/tunnelconfiguration.go +++ b/zero_trust/tunnelconfiguration.go @@ -113,7 +113,7 @@ func (r TunnelConfigurationGetResponseArray) ImplementsZeroTrustTunnelConfigurat } type TunnelConfigurationUpdateParams struct { - // Identifier + // Cloudflare account ID AccountID param.Field[string] `path:"account_id,required"` // The tunnel configuration and ingress rules. Config param.Field[TunnelConfigurationUpdateParamsConfig] `json:"config"` @@ -127,7 +127,8 @@ func (r TunnelConfigurationUpdateParams) MarshalJSON() (data []byte, err error) type TunnelConfigurationUpdateParamsConfig struct { // List of public hostname definitions Ingress param.Field[[]TunnelConfigurationUpdateParamsConfigIngress] `json:"ingress"` - // Configuration parameters of connection between cloudflared and origin server. + // Configuration parameters for the public hostname specific connection settings + // between cloudflared and origin server. OriginRequest param.Field[TunnelConfigurationUpdateParamsConfigOriginRequest] `json:"originRequest"` // Enable private network access from WARP users to private network routes WARPRouting param.Field[TunnelConfigurationUpdateParamsConfigWARPRouting] `json:"warp-routing"` @@ -145,7 +146,8 @@ type TunnelConfigurationUpdateParamsConfigIngress struct { // https://, unix://, tcp://, ssh://, rdp://, unix+tls://, smb://. Alternatively // can return a HTTP status code http_status:[code] e.g. 'http_status:404'. Service param.Field[string] `json:"service,required"` - // Configuration parameters of connection between cloudflared and origin server. + // Configuration parameters for the public hostname specific connection settings + // between cloudflared and origin server. OriginRequest param.Field[TunnelConfigurationUpdateParamsConfigIngressOriginRequest] `json:"originRequest"` // Requests with this path route to this public hostname. Path param.Field[string] `json:"path"` @@ -155,7 +157,8 @@ func (r TunnelConfigurationUpdateParamsConfigIngress) MarshalJSON() (data []byte return apijson.MarshalRoot(r) } -// Configuration parameters of connection between cloudflared and origin server. +// Configuration parameters for the public hostname specific connection settings +// between cloudflared and origin server. type TunnelConfigurationUpdateParamsConfigIngressOriginRequest struct { // For all L7 requests to this hostname, cloudflared will validate each request's // Cf-Access-Jwt-Assertion request header. @@ -218,7 +221,8 @@ func (r TunnelConfigurationUpdateParamsConfigIngressOriginRequestAccess) Marshal return apijson.MarshalRoot(r) } -// Configuration parameters of connection between cloudflared and origin server. +// Configuration parameters for the public hostname specific connection settings +// between cloudflared and origin server. type TunnelConfigurationUpdateParamsConfigOriginRequest struct { // For all L7 requests to this hostname, cloudflared will validate each request's // Cf-Access-Jwt-Assertion request header. @@ -334,7 +338,7 @@ func (r TunnelConfigurationUpdateResponseEnvelopeSuccess) IsKnown() bool { } type TunnelConfigurationGetParams struct { - // Identifier + // Cloudflare account ID AccountID param.Field[string] `path:"account_id,required"` } diff --git a/zero_trust/tunnelconfiguration_test.go b/zero_trust/tunnelconfiguration_test.go index 7c4412867a6..ffa83258f95 100644 --- a/zero_trust/tunnelconfiguration_test.go +++ b/zero_trust/tunnelconfiguration_test.go @@ -32,7 +32,7 @@ func TestTunnelConfigurationUpdateWithOptionalParams(t *testing.T) { context.TODO(), "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415", zero_trust.TunnelConfigurationUpdateParams{ - AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), + AccountID: cloudflare.F("699d98642c564d2e855e9661899b7252"), Config: cloudflare.F(zero_trust.TunnelConfigurationUpdateParamsConfig{ Ingress: cloudflare.F([]zero_trust.TunnelConfigurationUpdateParamsConfigIngress{{ Hostname: cloudflare.F("tunnel.example.com"), @@ -160,7 +160,7 @@ func TestTunnelConfigurationGet(t *testing.T) { context.TODO(), "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415", zero_trust.TunnelConfigurationGetParams{ - AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), + AccountID: cloudflare.F("699d98642c564d2e855e9661899b7252"), }, ) if err != nil { diff --git a/zero_trust/tunnelconnection.go b/zero_trust/tunnelconnection.go index fde63ebb808..7285f174de7 100644 --- a/zero_trust/tunnelconnection.go +++ b/zero_trust/tunnelconnection.go @@ -66,7 +66,7 @@ func (r *TunnelConnectionService) Get(ctx context.Context, tunnelID string, quer // center. type Client struct { // UUID of the Cloudflare Tunnel connection. - ID string `json:"id"` + ID string `json:"id" format:"uuid"` // The cloudflared OS architecture used to establish this connection. Arch string `json:"arch"` // The version of the remote tunnel configuration. Used internally to sync @@ -106,9 +106,9 @@ func (r clientJSON) RawJSON() string { type ClientConn struct { // UUID of the Cloudflare Tunnel connection. - ID string `json:"id"` - // UUID of the cloudflared instance. - ClientID interface{} `json:"client_id"` + ID string `json:"id" format:"uuid"` + // UUID of the Cloudflare Tunnel connector. + ClientID string `json:"client_id" format:"uuid"` // The cloudflared version used to establish this connection. ClientVersion string `json:"client_version"` // The Cloudflare data center used for this connection. @@ -123,7 +123,7 @@ type ClientConn struct { // The public IP address of the host running cloudflared. OriginIP string `json:"origin_ip"` // UUID of the Cloudflare Tunnel connection. - UUID string `json:"uuid"` + UUID string `json:"uuid" format:"uuid"` JSON clientConnJSON `json:"-"` } From 50cc3792d66fe613fd6fae226c7acfc42ff082b9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 23 Apr 2024 18:59:45 +0000 Subject: [PATCH 50/52] feat(api): update via SDK Studio (#1837) --- api.md | 2 + magic_transit/siteacl.go | 90 +++++++++++------------------------ magic_transit/siteacl_test.go | 4 +- 3 files changed, 31 insertions(+), 65 deletions(-) diff --git a/api.md b/api.md index a007d721e62..4c8a70def28 100644 --- a/api.md +++ b/api.md @@ -3580,12 +3580,14 @@ Params Types: - magic_transit.ACLParam - magic_transit.ACLConfigurationParam +- magic_transit.AllowedProtocol - magic_transit.SubnetUnionParam Response Types: - magic_transit.ACL - magic_transit.ACLConfiguration +- magic_transit.AllowedProtocol - magic_transit.SubnetUnion Methods: diff --git a/magic_transit/siteacl.go b/magic_transit/siteacl.go index cc0016fc65c..68bb0af4a3a 100644 --- a/magic_transit/siteacl.go +++ b/magic_transit/siteacl.go @@ -123,9 +123,9 @@ type ACL struct { LAN1 ACLConfiguration `json:"lan_1"` LAN2 ACLConfiguration `json:"lan_2"` // The name of the ACL. - Name string `json:"name"` - Protocols []ACLProtocol `json:"protocols"` - JSON aclJSON `json:"-"` + Name string `json:"name"` + Protocols []AllowedProtocol `json:"protocols"` + JSON aclJSON `json:"-"` } // aclJSON contains the JSON metadata for the struct [ACL] @@ -149,24 +149,6 @@ func (r aclJSON) RawJSON() string { return r.raw } -// Array of allowed communication protocols between configured LANs. If no -// protocols are provided, all protocols are allowed. -type ACLProtocol string - -const ( - ACLProtocolTCP ACLProtocol = "tcp" - ACLProtocolUdp ACLProtocol = "udp" - ACLProtocolIcmp ACLProtocol = "icmp" -) - -func (r ACLProtocol) IsKnown() bool { - switch r { - case ACLProtocolTCP, ACLProtocolUdp, ACLProtocolIcmp: - return true - } - return false -} - // Bidirectional ACL policy for network traffic within a site. type ACLParam struct { // Description for the ACL. @@ -179,8 +161,8 @@ type ACLParam struct { LAN1 param.Field[ACLConfigurationParam] `json:"lan_1"` LAN2 param.Field[ACLConfigurationParam] `json:"lan_2"` // The name of the ACL. - Name param.Field[string] `json:"name"` - Protocols param.Field[[]ACLProtocol] `json:"protocols"` + Name param.Field[string] `json:"name"` + Protocols param.Field[[]AllowedProtocol] `json:"protocols"` } func (r ACLParam) MarshalJSON() (data []byte, err error) { @@ -237,6 +219,24 @@ func (r ACLConfigurationParam) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } +// Array of allowed communication protocols between configured LANs. If no +// protocols are provided, all protocols are allowed. +type AllowedProtocol string + +const ( + AllowedProtocolTCP AllowedProtocol = "tcp" + AllowedProtocolUdp AllowedProtocol = "udp" + AllowedProtocolIcmp AllowedProtocol = "icmp" +) + +func (r AllowedProtocol) IsKnown() bool { + switch r { + case AllowedProtocolTCP, AllowedProtocolUdp, AllowedProtocolIcmp: + return true + } + return false +} + // A valid IPv4 address. // // Union satisfied by [shared.UnionString] or [shared.UnionString]. @@ -279,32 +279,14 @@ type SiteACLNewParams struct { // will forward traffic to Cloudflare. If set to "true", the policy will forward // traffic locally on the Magic WAN Connector. If not included in request, will // default to false. - ForwardLocally param.Field[bool] `json:"forward_locally"` - Protocols param.Field[[]SiteACLNewParamsProtocol] `json:"protocols"` + ForwardLocally param.Field[bool] `json:"forward_locally"` + Protocols param.Field[[]AllowedProtocol] `json:"protocols"` } func (r SiteACLNewParams) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -// Array of allowed communication protocols between configured LANs. If no -// protocols are provided, all protocols are allowed. -type SiteACLNewParamsProtocol string - -const ( - SiteACLNewParamsProtocolTCP SiteACLNewParamsProtocol = "tcp" - SiteACLNewParamsProtocolUdp SiteACLNewParamsProtocol = "udp" - SiteACLNewParamsProtocolIcmp SiteACLNewParamsProtocol = "icmp" -) - -func (r SiteACLNewParamsProtocol) IsKnown() bool { - switch r { - case SiteACLNewParamsProtocolTCP, SiteACLNewParamsProtocolUdp, SiteACLNewParamsProtocolIcmp: - return true - } - return false -} - type SiteACLNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` @@ -362,32 +344,14 @@ type SiteACLUpdateParams struct { LAN1 param.Field[ACLConfigurationParam] `json:"lan_1"` LAN2 param.Field[ACLConfigurationParam] `json:"lan_2"` // The name of the ACL. - Name param.Field[string] `json:"name"` - Protocols param.Field[[]SiteACLUpdateParamsProtocol] `json:"protocols"` + Name param.Field[string] `json:"name"` + Protocols param.Field[[]AllowedProtocol] `json:"protocols"` } func (r SiteACLUpdateParams) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -// Array of allowed communication protocols between configured LANs. If no -// protocols are provided, all protocols are allowed. -type SiteACLUpdateParamsProtocol string - -const ( - SiteACLUpdateParamsProtocolTCP SiteACLUpdateParamsProtocol = "tcp" - SiteACLUpdateParamsProtocolUdp SiteACLUpdateParamsProtocol = "udp" - SiteACLUpdateParamsProtocolIcmp SiteACLUpdateParamsProtocol = "icmp" -) - -func (r SiteACLUpdateParamsProtocol) IsKnown() bool { - switch r { - case SiteACLUpdateParamsProtocolTCP, SiteACLUpdateParamsProtocolUdp, SiteACLUpdateParamsProtocolIcmp: - return true - } - return false -} - type SiteACLUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` diff --git a/magic_transit/siteacl_test.go b/magic_transit/siteacl_test.go index 3903343bc9b..11706522409 100644 --- a/magic_transit/siteacl_test.go +++ b/magic_transit/siteacl_test.go @@ -49,7 +49,7 @@ func TestSiteACLNewWithOptionalParams(t *testing.T) { Name: cloudflare.F("PIN Pad - Cash Register"), Description: cloudflare.F("Allows local traffic between PIN pads and cash register."), ForwardLocally: cloudflare.F(true), - Protocols: cloudflare.F([]magic_transit.SiteACLNewParamsProtocol{magic_transit.SiteACLNewParamsProtocolTCP, magic_transit.SiteACLNewParamsProtocolUdp, magic_transit.SiteACLNewParamsProtocolIcmp}), + Protocols: cloudflare.F([]magic_transit.AllowedProtocol{magic_transit.AllowedProtocolTCP, magic_transit.AllowedProtocolUdp, magic_transit.AllowedProtocolIcmp}), }, ) if err != nil { @@ -96,7 +96,7 @@ func TestSiteACLUpdateWithOptionalParams(t *testing.T) { Subnets: cloudflare.F([]magic_transit.SubnetUnionParam{shared.UnionString("192.0.2.1"), shared.UnionString("192.0.2.1"), shared.UnionString("192.0.2.1")}), }), Name: cloudflare.F("PIN Pad - Cash Register"), - Protocols: cloudflare.F([]magic_transit.SiteACLUpdateParamsProtocol{magic_transit.SiteACLUpdateParamsProtocolTCP, magic_transit.SiteACLUpdateParamsProtocolUdp, magic_transit.SiteACLUpdateParamsProtocolIcmp}), + Protocols: cloudflare.F([]magic_transit.AllowedProtocol{magic_transit.AllowedProtocolTCP, magic_transit.AllowedProtocolUdp, magic_transit.AllowedProtocolIcmp}), }, ) if err != nil { From c11a40cb20f831076f6bc0d4dbb0f83761687cf1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 23 Apr 2024 21:38:05 +0000 Subject: [PATCH 51/52] feat(api): OpenAPI spec update via Stainless API (#1838) --- workers/ai.go | 57 +++++++++++++++++++++++++++++++-------------------- 1 file changed, 35 insertions(+), 22 deletions(-) diff --git a/workers/ai.go b/workers/ai.go index f578d1c2426..89f20dedfed 100644 --- a/workers/ai.go +++ b/workers/ai.go @@ -317,25 +317,26 @@ func (r AIRunParams) MarshalJSON() (data []byte, err error) { } type AIRunParamsBody struct { - Text param.Field[interface{}] `json:"text,required"` - Guidance param.Field[float64] `json:"guidance"` - Image param.Field[interface{}] `json:"image,required"` - Mask param.Field[interface{}] `json:"mask,required"` - NumSteps param.Field[int64] `json:"num_steps"` - Prompt param.Field[string] `json:"prompt"` - Strength param.Field[float64] `json:"strength"` - Sentences param.Field[interface{}] `json:"sentences,required"` - Source param.Field[string] `json:"source"` - Audio param.Field[interface{}] `json:"audio,required"` - Lora param.Field[string] `json:"lora"` - MaxTokens param.Field[int64] `json:"max_tokens"` - Raw param.Field[bool] `json:"raw"` - Stream param.Field[bool] `json:"stream"` - Messages param.Field[interface{}] `json:"messages,required"` - SourceLang param.Field[string] `json:"source_lang"` - TargetLang param.Field[string] `json:"target_lang"` - InputText param.Field[string] `json:"input_text"` - MaxLength param.Field[int64] `json:"max_length"` + Text param.Field[interface{}] `json:"text,required"` + Guidance param.Field[float64] `json:"guidance"` + Image param.Field[interface{}] `json:"image,required"` + Mask param.Field[interface{}] `json:"mask,required"` + NumSteps param.Field[int64] `json:"num_steps"` + Prompt param.Field[string] `json:"prompt"` + Strength param.Field[float64] `json:"strength"` + Sentences param.Field[interface{}] `json:"sentences,required"` + Source param.Field[string] `json:"source"` + Audio param.Field[interface{}] `json:"audio,required"` + Lora param.Field[string] `json:"lora"` + MaxTokens param.Field[int64] `json:"max_tokens"` + Raw param.Field[bool] `json:"raw"` + Stream param.Field[bool] `json:"stream"` + Messages param.Field[interface{}] `json:"messages,required"` + SourceLang param.Field[string] `json:"source_lang"` + TargetLang param.Field[string] `json:"target_lang"` + InputText param.Field[string] `json:"input_text"` + MaxLength param.Field[int64] `json:"max_length"` + Temperature param.Field[float64] `json:"temperature"` } func (r AIRunParamsBody) MarshalJSON() (data []byte, err error) { @@ -493,9 +494,12 @@ func (r AIRunParamsBodySummarization) MarshalJSON() (data []byte, err error) { func (r AIRunParamsBodySummarization) implementsWorkersAIRunParamsBodyUnion() {} type AIRunParamsBodyImageToText struct { - Image param.Field[[]float64] `json:"image"` - MaxTokens param.Field[int64] `json:"max_tokens"` - Prompt param.Field[string] `json:"prompt"` + Image param.Field[[]float64] `json:"image,required"` + MaxTokens param.Field[int64] `json:"max_tokens"` + Messages param.Field[[]AIRunParamsBodyImageToTextMessage] `json:"messages"` + Prompt param.Field[string] `json:"prompt"` + Raw param.Field[bool] `json:"raw"` + Temperature param.Field[float64] `json:"temperature"` } func (r AIRunParamsBodyImageToText) MarshalJSON() (data []byte, err error) { @@ -504,6 +508,15 @@ func (r AIRunParamsBodyImageToText) MarshalJSON() (data []byte, err error) { func (r AIRunParamsBodyImageToText) implementsWorkersAIRunParamsBodyUnion() {} +type AIRunParamsBodyImageToTextMessage struct { + Content param.Field[string] `json:"content,required"` + Role param.Field[string] `json:"role,required"` +} + +func (r AIRunParamsBodyImageToTextMessage) MarshalJSON() (data []byte, err error) { + return apijson.MarshalRoot(r) +} + type AIRunResponseEnvelope struct { Result AIRunResponseUnion `json:"result" format:"binary"` JSON aiRunResponseEnvelopeJSON `json:"-"` From 1496aecc8985846bfeedb17ab7200477c0f20f85 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 23 Apr 2024 21:38:41 +0000 Subject: [PATCH 52/52] release: 2.1.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 58 +++++++++++++++++++++++++++++++++++ README.md | 2 +- internal/version.go | 2 +- 4 files changed, 61 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 65f558e71b4..656a2ef17d0 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.0.0" + ".": "2.1.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 205444492d4..922b1ee8e3d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,63 @@ # Changelog +## 2.1.0 (2024-04-23) + +Full Changelog: [v2.0.0...v2.1.0](https://github.com/cloudflare/cloudflare-go/compare/v2.0.0...v2.1.0) + +### Features + +* **api:** OpenAPI spec update via Stainless API ([#1785](https://github.com/cloudflare/cloudflare-go/issues/1785)) ([c46158d](https://github.com/cloudflare/cloudflare-go/commit/c46158d0fe01b5a9568cf2aa87203c903712d21d)) +* **api:** OpenAPI spec update via Stainless API ([#1786](https://github.com/cloudflare/cloudflare-go/issues/1786)) ([371672b](https://github.com/cloudflare/cloudflare-go/commit/371672b695419519937f44c5e368c6fcce352220)) +* **api:** OpenAPI spec update via Stainless API ([#1787](https://github.com/cloudflare/cloudflare-go/issues/1787)) ([47ad405](https://github.com/cloudflare/cloudflare-go/commit/47ad4050632c4a9304a3b5db2c4eac9d2f0a591f)) +* **api:** OpenAPI spec update via Stainless API ([#1788](https://github.com/cloudflare/cloudflare-go/issues/1788)) ([49d6aec](https://github.com/cloudflare/cloudflare-go/commit/49d6aec0cdd9a1ca9422bb111b6af16bde444e22)) +* **api:** OpenAPI spec update via Stainless API ([#1789](https://github.com/cloudflare/cloudflare-go/issues/1789)) ([1bfe1dc](https://github.com/cloudflare/cloudflare-go/commit/1bfe1dc1b9a68fefdca979dabfff5722ecce32cd)) +* **api:** OpenAPI spec update via Stainless API ([#1791](https://github.com/cloudflare/cloudflare-go/issues/1791)) ([b9acc0b](https://github.com/cloudflare/cloudflare-go/commit/b9acc0b6ced4b2a17391a2933b375e6d2feb11bf)) +* **api:** OpenAPI spec update via Stainless API ([#1792](https://github.com/cloudflare/cloudflare-go/issues/1792)) ([dcabc90](https://github.com/cloudflare/cloudflare-go/commit/dcabc909649e42f9d1e6ed42af10fe41599cea3a)) +* **api:** OpenAPI spec update via Stainless API ([#1793](https://github.com/cloudflare/cloudflare-go/issues/1793)) ([b45cf89](https://github.com/cloudflare/cloudflare-go/commit/b45cf899fe80aebd25098baa30edb7df987d7e23)) +* **api:** OpenAPI spec update via Stainless API ([#1794](https://github.com/cloudflare/cloudflare-go/issues/1794)) ([04ad9cb](https://github.com/cloudflare/cloudflare-go/commit/04ad9cb37c40345025f1675584488cd01c69db05)) +* **api:** OpenAPI spec update via Stainless API ([#1795](https://github.com/cloudflare/cloudflare-go/issues/1795)) ([0c33f28](https://github.com/cloudflare/cloudflare-go/commit/0c33f28354d1aaea6ab472333c43a482e73f7e1e)) +* **api:** OpenAPI spec update via Stainless API ([#1796](https://github.com/cloudflare/cloudflare-go/issues/1796)) ([6e3fe04](https://github.com/cloudflare/cloudflare-go/commit/6e3fe04e4a2c69ae46809809d430f1d81ec3a11b)) +* **api:** OpenAPI spec update via Stainless API ([#1797](https://github.com/cloudflare/cloudflare-go/issues/1797)) ([b1502e0](https://github.com/cloudflare/cloudflare-go/commit/b1502e06208a02d859d63d8da7156d670edc5971)) +* **api:** OpenAPI spec update via Stainless API ([#1798](https://github.com/cloudflare/cloudflare-go/issues/1798)) ([18a026c](https://github.com/cloudflare/cloudflare-go/commit/18a026c94477768a9becb39fca9d07467d9c5c7a)) +* **api:** OpenAPI spec update via Stainless API ([#1800](https://github.com/cloudflare/cloudflare-go/issues/1800)) ([c0c9b23](https://github.com/cloudflare/cloudflare-go/commit/c0c9b23b3a654508939a30dcd85c798f773ec928)) +* **api:** OpenAPI spec update via Stainless API ([#1801](https://github.com/cloudflare/cloudflare-go/issues/1801)) ([5a77eae](https://github.com/cloudflare/cloudflare-go/commit/5a77eaeebe2dbccabb96f831f173c812d7546556)) +* **api:** OpenAPI spec update via Stainless API ([#1802](https://github.com/cloudflare/cloudflare-go/issues/1802)) ([ab55f0c](https://github.com/cloudflare/cloudflare-go/commit/ab55f0c71c381292891bc586cdd25e408216be3c)) +* **api:** OpenAPI spec update via Stainless API ([#1803](https://github.com/cloudflare/cloudflare-go/issues/1803)) ([3bcc682](https://github.com/cloudflare/cloudflare-go/commit/3bcc682965266e5ebfe1f1e0c685711b30e04b77)) +* **api:** OpenAPI spec update via Stainless API ([#1804](https://github.com/cloudflare/cloudflare-go/issues/1804)) ([01f9e5a](https://github.com/cloudflare/cloudflare-go/commit/01f9e5a71831170c90298c1dd02f1d03eefd6937)) +* **api:** OpenAPI spec update via Stainless API ([#1805](https://github.com/cloudflare/cloudflare-go/issues/1805)) ([9d6c74e](https://github.com/cloudflare/cloudflare-go/commit/9d6c74e90da8159fdcee67d6cd285e440f946063)) +* **api:** OpenAPI spec update via Stainless API ([#1806](https://github.com/cloudflare/cloudflare-go/issues/1806)) ([a229e9e](https://github.com/cloudflare/cloudflare-go/commit/a229e9e5944107503cc2d474367e252bae7141b5)) +* **api:** OpenAPI spec update via Stainless API ([#1807](https://github.com/cloudflare/cloudflare-go/issues/1807)) ([dc7ff76](https://github.com/cloudflare/cloudflare-go/commit/dc7ff768bb1bf424f9b96c164db9e3cfc9d8ef15)) +* **api:** OpenAPI spec update via Stainless API ([#1808](https://github.com/cloudflare/cloudflare-go/issues/1808)) ([eb3189d](https://github.com/cloudflare/cloudflare-go/commit/eb3189de6c671b07769d53b5acccc6f8ae4572d3)) +* **api:** OpenAPI spec update via Stainless API ([#1809](https://github.com/cloudflare/cloudflare-go/issues/1809)) ([7832d67](https://github.com/cloudflare/cloudflare-go/commit/7832d67b4bca1d1e0c9308897bd2a02c1b3c0532)) +* **api:** OpenAPI spec update via Stainless API ([#1810](https://github.com/cloudflare/cloudflare-go/issues/1810)) ([2745e9f](https://github.com/cloudflare/cloudflare-go/commit/2745e9f609abecabb005071e82623852ec56afd3)) +* **api:** OpenAPI spec update via Stainless API ([#1816](https://github.com/cloudflare/cloudflare-go/issues/1816)) ([03cca00](https://github.com/cloudflare/cloudflare-go/commit/03cca00a0ebdda0b7ab51fee254e522320aa1fc5)) +* **api:** OpenAPI spec update via Stainless API ([#1820](https://github.com/cloudflare/cloudflare-go/issues/1820)) ([b6b38ee](https://github.com/cloudflare/cloudflare-go/commit/b6b38eed042165ba51ad4d86ae08d50b21170144)) +* **api:** OpenAPI spec update via Stainless API ([#1829](https://github.com/cloudflare/cloudflare-go/issues/1829)) ([22a0cf2](https://github.com/cloudflare/cloudflare-go/commit/22a0cf255057c7a47244d2a035b0d7e30395d762)) +* **api:** OpenAPI spec update via Stainless API ([#1830](https://github.com/cloudflare/cloudflare-go/issues/1830)) ([3c07f23](https://github.com/cloudflare/cloudflare-go/commit/3c07f23f2f57324dbe384564acc042239ce0b608)) +* **api:** OpenAPI spec update via Stainless API ([#1831](https://github.com/cloudflare/cloudflare-go/issues/1831)) ([66a8c6a](https://github.com/cloudflare/cloudflare-go/commit/66a8c6acae1d37d8826bccef21b3a80c71a94b03)) +* **api:** OpenAPI spec update via Stainless API ([#1835](https://github.com/cloudflare/cloudflare-go/issues/1835)) ([b496234](https://github.com/cloudflare/cloudflare-go/commit/b496234a872bc74a8363fcc6de8d4986121b7551)) +* **api:** OpenAPI spec update via Stainless API ([#1838](https://github.com/cloudflare/cloudflare-go/issues/1838)) ([c11a40c](https://github.com/cloudflare/cloudflare-go/commit/c11a40cb20f831076f6bc0d4dbb0f83761687cf1)) +* **api:** update via SDK Studio ([#1782](https://github.com/cloudflare/cloudflare-go/issues/1782)) ([0adf3e1](https://github.com/cloudflare/cloudflare-go/commit/0adf3e109832895369f53e3f8042090ca3f96379)) +* **api:** update via SDK Studio ([#1784](https://github.com/cloudflare/cloudflare-go/issues/1784)) ([1079b16](https://github.com/cloudflare/cloudflare-go/commit/1079b16270db855b4c4170cc0401f50a14bd69ef)) +* **api:** update via SDK Studio ([#1799](https://github.com/cloudflare/cloudflare-go/issues/1799)) ([476c601](https://github.com/cloudflare/cloudflare-go/commit/476c601dd3811c56d0809cf4ac1da95e48836d38)) +* **api:** update via SDK Studio ([#1812](https://github.com/cloudflare/cloudflare-go/issues/1812)) ([5e44bc5](https://github.com/cloudflare/cloudflare-go/commit/5e44bc50b00eede6a5cef326306c1f9e503dacbc)) +* **api:** update via SDK Studio ([#1813](https://github.com/cloudflare/cloudflare-go/issues/1813)) ([2409946](https://github.com/cloudflare/cloudflare-go/commit/24099461a67f2d63aa7395d6b7faad59d788d6d5)) +* **api:** update via SDK Studio ([#1814](https://github.com/cloudflare/cloudflare-go/issues/1814)) ([438a7c9](https://github.com/cloudflare/cloudflare-go/commit/438a7c913a22e53abe682a86837dc2c1d9fc6af8)) +* **api:** update via SDK Studio ([#1815](https://github.com/cloudflare/cloudflare-go/issues/1815)) ([39d96df](https://github.com/cloudflare/cloudflare-go/commit/39d96dfe0021a26066fb83ac86e247fae596e462)) +* **api:** update via SDK Studio ([#1817](https://github.com/cloudflare/cloudflare-go/issues/1817)) ([6f304fa](https://github.com/cloudflare/cloudflare-go/commit/6f304fa3d6c0c8741a9ad11cdb7ef89d2f2e2ebc)) +* **api:** update via SDK Studio ([#1818](https://github.com/cloudflare/cloudflare-go/issues/1818)) ([8570aec](https://github.com/cloudflare/cloudflare-go/commit/8570aec19a2e2376b7f035043e5d94cfcd4faeca)) +* **api:** update via SDK Studio ([#1819](https://github.com/cloudflare/cloudflare-go/issues/1819)) ([cceb524](https://github.com/cloudflare/cloudflare-go/commit/cceb524ecef30a14f46423417797f82ea06ce8c1)) +* **api:** update via SDK Studio ([#1821](https://github.com/cloudflare/cloudflare-go/issues/1821)) ([a035789](https://github.com/cloudflare/cloudflare-go/commit/a035789c514c6b7bbdd36e4eb3f7c607fb7cc0dd)) +* **api:** update via SDK Studio ([#1822](https://github.com/cloudflare/cloudflare-go/issues/1822)) ([b0878be](https://github.com/cloudflare/cloudflare-go/commit/b0878be3db6f725218a5b83bff0741f1ac3dcd79)) +* **api:** update via SDK Studio ([#1823](https://github.com/cloudflare/cloudflare-go/issues/1823)) ([8e49406](https://github.com/cloudflare/cloudflare-go/commit/8e49406cad34e98e6d969069c8490fa889db061e)) +* **api:** update via SDK Studio ([#1824](https://github.com/cloudflare/cloudflare-go/issues/1824)) ([bbc396f](https://github.com/cloudflare/cloudflare-go/commit/bbc396f48e0c9084fd5a2ef8b8b44436c740a41f)) +* **api:** update via SDK Studio ([#1827](https://github.com/cloudflare/cloudflare-go/issues/1827)) ([f427ad2](https://github.com/cloudflare/cloudflare-go/commit/f427ad23d0f827bb114c1c767417a6c84a563c58)) +* **api:** update via SDK Studio ([#1828](https://github.com/cloudflare/cloudflare-go/issues/1828)) ([3b38a2d](https://github.com/cloudflare/cloudflare-go/commit/3b38a2d27b24c481b69e630f9490046da8d29797)) +* **api:** update via SDK Studio ([#1833](https://github.com/cloudflare/cloudflare-go/issues/1833)) ([fd4815c](https://github.com/cloudflare/cloudflare-go/commit/fd4815c3c97b37291363299dbb7f4d3ceff08ca2)) +* **api:** update via SDK Studio ([#1834](https://github.com/cloudflare/cloudflare-go/issues/1834)) ([10bae7e](https://github.com/cloudflare/cloudflare-go/commit/10bae7e8cbbf67ec925004af272b5a453495d069)) +* **api:** update via SDK Studio ([#1836](https://github.com/cloudflare/cloudflare-go/issues/1836)) ([9299404](https://github.com/cloudflare/cloudflare-go/commit/9299404ea18f6b3faf59a2e87091141e4e55ecf3)) +* **api:** update via SDK Studio ([#1837](https://github.com/cloudflare/cloudflare-go/issues/1837)) ([50cc379](https://github.com/cloudflare/cloudflare-go/commit/50cc3792d66fe613fd6fae226c7acfc42ff082b9)) + ## 2.0.0 (2024-04-12) Full Changelog: [v2.0.0-beta.17...v2.0.0](https://github.com/cloudflare/cloudflare-go/compare/v2.0.0-beta.17...v2.0.0) diff --git a/README.md b/README.md index 3b38d1c8e20..923755ef35b 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Or to pin the version: ```sh -go get -u 'github.com/cloudflare/cloudflare-go/v2@v2.0.0' +go get -u 'github.com/cloudflare/cloudflare-go/v2@v2.1.0' ``` diff --git a/internal/version.go b/internal/version.go index fef66226b8c..436f832652e 100644 --- a/internal/version.go +++ b/internal/version.go @@ -2,4 +2,4 @@ package internal -const PackageVersion = "2.0.0" // x-release-please-version +const PackageVersion = "2.1.0" // x-release-please-version