diff --git a/pkg/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/index.html b/pkg/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/index.html index b9d43adede1..0e2d693dabc 100644 --- a/pkg/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/index.html +++ b/pkg/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/index.html @@ -240,6 +240,7 @@

Overview ▾

SyntheticsApi.CreatePrivateLocation
  • SyntheticsApi.CreateSyntheticsAPITest
  • SyntheticsApi.CreateSyntheticsBrowserTest +
  • SyntheticsApi.CreateSyntheticsMobileTest
  • SyntheticsApi.DeleteGlobalVariable
  • SyntheticsApi.DeletePrivateLocation
  • SyntheticsApi.DeleteTests @@ -251,6 +252,7 @@

    Overview ▾

    SyntheticsApi.GetBrowserTestLatestResults
  • SyntheticsApi.GetBrowserTestResult
  • SyntheticsApi.GetGlobalVariable +
  • SyntheticsApi.GetMobileTest
  • SyntheticsApi.GetPrivateLocation
  • SyntheticsApi.GetSyntheticsCIBatch
  • SyntheticsApi.GetSyntheticsDefaultLocations @@ -263,6 +265,7 @@

    Overview ▾

    SyntheticsApi.TriggerTests
  • SyntheticsApi.UpdateAPITest
  • SyntheticsApi.UpdateBrowserTest +
  • SyntheticsApi.UpdateMobileTest
  • SyntheticsApi.UpdatePrivateLocation
  • SyntheticsApi.UpdateTestPauseStatus
  • TagsApi.CreateHostTags @@ -34784,6 +34787,9 @@

    Index ▾

        func (a *SyntheticsApi) CreateSyntheticsBrowserTest(ctx _context.Context, body SyntheticsBrowserTest) (SyntheticsBrowserTest, *_nethttp.Response, error)
    +
        func (a *SyntheticsApi) CreateSyntheticsMobileTest(ctx _context.Context, body SyntheticsMobileTest) (SyntheticsMobileTest, *_nethttp.Response, error)
    + +
        func (a *SyntheticsApi) DeleteGlobalVariable(ctx _context.Context, variableId string) (*_nethttp.Response, error)
    @@ -34817,6 +34823,9 @@

    Index ▾

        func (a *SyntheticsApi) GetGlobalVariable(ctx _context.Context, variableId string) (SyntheticsGlobalVariable, *_nethttp.Response, error)
    +
        func (a *SyntheticsApi) GetMobileTest(ctx _context.Context, publicId string) (SyntheticsMobileTest, *_nethttp.Response, error)
    + +
        func (a *SyntheticsApi) GetPrivateLocation(ctx _context.Context, locationId string) (SyntheticsPrivateLocation, *_nethttp.Response, error)
    @@ -34856,6 +34865,9 @@

    Index ▾

        func (a *SyntheticsApi) UpdateBrowserTest(ctx _context.Context, publicId string, body SyntheticsBrowserTest) (SyntheticsBrowserTest, *_nethttp.Response, error)
    +
        func (a *SyntheticsApi) UpdateMobileTest(ctx _context.Context, publicId string, body SyntheticsMobileTest) (SyntheticsMobileTest, *_nethttp.Response, error)
    + +
        func (a *SyntheticsApi) UpdatePrivateLocation(ctx _context.Context, locationId string, body SyntheticsPrivateLocation) (SyntheticsPrivateLocation, *_nethttp.Response, error)
    @@ -38938,6 +38950,922 @@

    Index ▾

    +
    type SyntheticsMobileDeviceID
    + + +
        func NewSyntheticsMobileDeviceIDFromValue(v string) (*SyntheticsMobileDeviceID, error)
    + + + +
        func (v *SyntheticsMobileDeviceID) GetAllowedValues() []SyntheticsMobileDeviceID
    + + +
        func (v SyntheticsMobileDeviceID) IsValid() bool
    + + +
        func (v SyntheticsMobileDeviceID) Ptr() *SyntheticsMobileDeviceID
    + + +
        func (v *SyntheticsMobileDeviceID) UnmarshalJSON(src []byte) error
    + + + +
    type SyntheticsMobileStep
    + + +
        func NewSyntheticsMobileStep() *SyntheticsMobileStep
    + + +
        func NewSyntheticsMobileStepWithDefaults() *SyntheticsMobileStep
    + + + +
        func (o *SyntheticsMobileStep) GetAllowFailure() bool
    + + +
        func (o *SyntheticsMobileStep) GetAllowFailureOk() (*bool, bool)
    + + +
        func (o *SyntheticsMobileStep) GetHasNewStepElement() bool
    + + +
        func (o *SyntheticsMobileStep) GetHasNewStepElementOk() (*bool, bool)
    + + +
        func (o *SyntheticsMobileStep) GetIsCritical() bool
    + + +
        func (o *SyntheticsMobileStep) GetIsCriticalOk() (*bool, bool)
    + + +
        func (o *SyntheticsMobileStep) GetName() string
    + + +
        func (o *SyntheticsMobileStep) GetNameOk() (*string, bool)
    + + +
        func (o *SyntheticsMobileStep) GetNoScreenshot() bool
    + + +
        func (o *SyntheticsMobileStep) GetNoScreenshotOk() (*bool, bool)
    + + +
        func (o *SyntheticsMobileStep) GetParams() interface{}
    + + +
        func (o *SyntheticsMobileStep) GetParamsOk() (*interface{}, bool)
    + + +
        func (o *SyntheticsMobileStep) GetPublicId() string
    + + +
        func (o *SyntheticsMobileStep) GetPublicIdOk() (*string, bool)
    + + +
        func (o *SyntheticsMobileStep) GetTimeout() int64
    + + +
        func (o *SyntheticsMobileStep) GetTimeoutOk() (*int64, bool)
    + + +
        func (o *SyntheticsMobileStep) GetType() SyntheticsMobileStepType
    + + +
        func (o *SyntheticsMobileStep) GetTypeOk() (*SyntheticsMobileStepType, bool)
    + + +
        func (o *SyntheticsMobileStep) HasAllowFailure() bool
    + + +
        func (o *SyntheticsMobileStep) HasHasNewStepElement() bool
    + + +
        func (o *SyntheticsMobileStep) HasIsCritical() bool
    + + +
        func (o *SyntheticsMobileStep) HasName() bool
    + + +
        func (o *SyntheticsMobileStep) HasNoScreenshot() bool
    + + +
        func (o *SyntheticsMobileStep) HasParams() bool
    + + +
        func (o *SyntheticsMobileStep) HasPublicId() bool
    + + +
        func (o *SyntheticsMobileStep) HasTimeout() bool
    + + +
        func (o *SyntheticsMobileStep) HasType() bool
    + + +
        func (o SyntheticsMobileStep) MarshalJSON() ([]byte, error)
    + + +
        func (o *SyntheticsMobileStep) SetAllowFailure(v bool)
    + + +
        func (o *SyntheticsMobileStep) SetHasNewStepElement(v bool)
    + + +
        func (o *SyntheticsMobileStep) SetIsCritical(v bool)
    + + +
        func (o *SyntheticsMobileStep) SetName(v string)
    + + +
        func (o *SyntheticsMobileStep) SetNoScreenshot(v bool)
    + + +
        func (o *SyntheticsMobileStep) SetParams(v interface{})
    + + +
        func (o *SyntheticsMobileStep) SetPublicId(v string)
    + + +
        func (o *SyntheticsMobileStep) SetTimeout(v int64)
    + + +
        func (o *SyntheticsMobileStep) SetType(v SyntheticsMobileStepType)
    + + +
        func (o *SyntheticsMobileStep) UnmarshalJSON(bytes []byte) (err error)
    + + + +
    type SyntheticsMobileStepType
    + + +
        func NewSyntheticsMobileStepTypeFromValue(v string) (*SyntheticsMobileStepType, error)
    + + + +
        func (v *SyntheticsMobileStepType) GetAllowedValues() []SyntheticsMobileStepType
    + + +
        func (v SyntheticsMobileStepType) IsValid() bool
    + + +
        func (v SyntheticsMobileStepType) Ptr() *SyntheticsMobileStepType
    + + +
        func (v *SyntheticsMobileStepType) UnmarshalJSON(src []byte) error
    + + + +
    type SyntheticsMobileTest
    + + +
        func NewSyntheticsMobileTest(config SyntheticsMobileTestConfig, name string, options SyntheticsMobileTestOptions, typeVar SyntheticsMobileTestType) *SyntheticsMobileTest
    + + +
        func NewSyntheticsMobileTestWithDefaults() *SyntheticsMobileTest
    + + + +
        func (o *SyntheticsMobileTest) GetConfig() SyntheticsMobileTestConfig
    + + +
        func (o *SyntheticsMobileTest) GetConfigOk() (*SyntheticsMobileTestConfig, bool)
    + + +
        func (o *SyntheticsMobileTest) GetDeviceIds() []SyntheticsMobileDeviceID
    + + +
        func (o *SyntheticsMobileTest) GetDeviceIdsOk() (*[]SyntheticsMobileDeviceID, bool)
    + + +
        func (o *SyntheticsMobileTest) GetMessage() string
    + + +
        func (o *SyntheticsMobileTest) GetMessageOk() (*string, bool)
    + + +
        func (o *SyntheticsMobileTest) GetMonitorId() int64
    + + +
        func (o *SyntheticsMobileTest) GetMonitorIdOk() (*int64, bool)
    + + +
        func (o *SyntheticsMobileTest) GetName() string
    + + +
        func (o *SyntheticsMobileTest) GetNameOk() (*string, bool)
    + + +
        func (o *SyntheticsMobileTest) GetOptions() SyntheticsMobileTestOptions
    + + +
        func (o *SyntheticsMobileTest) GetOptionsOk() (*SyntheticsMobileTestOptions, bool)
    + + +
        func (o *SyntheticsMobileTest) GetPublicId() string
    + + +
        func (o *SyntheticsMobileTest) GetPublicIdOk() (*string, bool)
    + + +
        func (o *SyntheticsMobileTest) GetStatus() SyntheticsTestPauseStatus
    + + +
        func (o *SyntheticsMobileTest) GetStatusOk() (*SyntheticsTestPauseStatus, bool)
    + + +
        func (o *SyntheticsMobileTest) GetSteps() []SyntheticsMobileStep
    + + +
        func (o *SyntheticsMobileTest) GetStepsOk() (*[]SyntheticsMobileStep, bool)
    + + +
        func (o *SyntheticsMobileTest) GetTags() []string
    + + +
        func (o *SyntheticsMobileTest) GetTagsOk() (*[]string, bool)
    + + +
        func (o *SyntheticsMobileTest) GetType() SyntheticsMobileTestType
    + + +
        func (o *SyntheticsMobileTest) GetTypeOk() (*SyntheticsMobileTestType, bool)
    + + +
        func (o *SyntheticsMobileTest) HasDeviceIds() bool
    + + +
        func (o *SyntheticsMobileTest) HasMessage() bool
    + + +
        func (o *SyntheticsMobileTest) HasMonitorId() bool
    + + +
        func (o *SyntheticsMobileTest) HasPublicId() bool
    + + +
        func (o *SyntheticsMobileTest) HasStatus() bool
    + + +
        func (o *SyntheticsMobileTest) HasSteps() bool
    + + +
        func (o *SyntheticsMobileTest) HasTags() bool
    + + +
        func (o SyntheticsMobileTest) MarshalJSON() ([]byte, error)
    + + +
        func (o *SyntheticsMobileTest) SetConfig(v SyntheticsMobileTestConfig)
    + + +
        func (o *SyntheticsMobileTest) SetDeviceIds(v []SyntheticsMobileDeviceID)
    + + +
        func (o *SyntheticsMobileTest) SetMessage(v string)
    + + +
        func (o *SyntheticsMobileTest) SetMonitorId(v int64)
    + + +
        func (o *SyntheticsMobileTest) SetName(v string)
    + + +
        func (o *SyntheticsMobileTest) SetOptions(v SyntheticsMobileTestOptions)
    + + +
        func (o *SyntheticsMobileTest) SetPublicId(v string)
    + + +
        func (o *SyntheticsMobileTest) SetStatus(v SyntheticsTestPauseStatus)
    + + +
        func (o *SyntheticsMobileTest) SetSteps(v []SyntheticsMobileStep)
    + + +
        func (o *SyntheticsMobileTest) SetTags(v []string)
    + + +
        func (o *SyntheticsMobileTest) SetType(v SyntheticsMobileTestType)
    + + +
        func (o *SyntheticsMobileTest) UnmarshalJSON(bytes []byte) (err error)
    + + + +
    type SyntheticsMobileTestBinding
    + + +
        func NewSyntheticsMobileTestBinding() *SyntheticsMobileTestBinding
    + + +
        func NewSyntheticsMobileTestBindingWithDefaults() *SyntheticsMobileTestBinding
    + + + +
        func (o *SyntheticsMobileTestBinding) GetItems() SyntheticsMobileTestBindingItems
    + + +
        func (o *SyntheticsMobileTestBinding) GetItemsOk() (*SyntheticsMobileTestBindingItems, bool)
    + + +
        func (o *SyntheticsMobileTestBinding) HasItems() bool
    + + +
        func (o SyntheticsMobileTestBinding) MarshalJSON() ([]byte, error)
    + + +
        func (o *SyntheticsMobileTestBinding) SetItems(v SyntheticsMobileTestBindingItems)
    + + +
        func (o *SyntheticsMobileTestBinding) UnmarshalJSON(bytes []byte) (err error)
    + + + +
    type SyntheticsMobileTestBindingItems
    + + +
        func NewSyntheticsMobileTestBindingItems() *SyntheticsMobileTestBindingItems
    + + +
        func NewSyntheticsMobileTestBindingItemsWithDefaults() *SyntheticsMobileTestBindingItems
    + + + +
        func (o *SyntheticsMobileTestBindingItems) GetPrincipals() []string
    + + +
        func (o *SyntheticsMobileTestBindingItems) GetPrincipalsOk() (*[]string, bool)
    + + +
        func (o *SyntheticsMobileTestBindingItems) GetRole() SyntheticsMobileTestBindingItemsRole
    + + +
        func (o *SyntheticsMobileTestBindingItems) GetRoleOk() (*SyntheticsMobileTestBindingItemsRole, bool)
    + + +
        func (o *SyntheticsMobileTestBindingItems) HasPrincipals() bool
    + + +
        func (o *SyntheticsMobileTestBindingItems) HasRole() bool
    + + +
        func (o SyntheticsMobileTestBindingItems) MarshalJSON() ([]byte, error)
    + + +
        func (o *SyntheticsMobileTestBindingItems) SetPrincipals(v []string)
    + + +
        func (o *SyntheticsMobileTestBindingItems) SetRole(v SyntheticsMobileTestBindingItemsRole)
    + + +
        func (o *SyntheticsMobileTestBindingItems) UnmarshalJSON(bytes []byte) (err error)
    + + + +
    type SyntheticsMobileTestBindingItemsRole
    + + +
        func NewSyntheticsMobileTestBindingItemsRoleFromValue(v string) (*SyntheticsMobileTestBindingItemsRole, error)
    + + + +
        func (v *SyntheticsMobileTestBindingItemsRole) GetAllowedValues() []SyntheticsMobileTestBindingItemsRole
    + + +
        func (v SyntheticsMobileTestBindingItemsRole) IsValid() bool
    + + +
        func (v SyntheticsMobileTestBindingItemsRole) Ptr() *SyntheticsMobileTestBindingItemsRole
    + + +
        func (v *SyntheticsMobileTestBindingItemsRole) UnmarshalJSON(src []byte) error
    + + + +
    type SyntheticsMobileTestCiOptions
    + + +
        func NewSyntheticsMobileTestCiOptions(executionRule SyntheticsTestExecutionRule) *SyntheticsMobileTestCiOptions
    + + +
        func NewSyntheticsMobileTestCiOptionsWithDefaults() *SyntheticsMobileTestCiOptions
    + + + +
        func (o *SyntheticsMobileTestCiOptions) GetExecutionRule() SyntheticsTestExecutionRule
    + + +
        func (o *SyntheticsMobileTestCiOptions) GetExecutionRuleOk() (*SyntheticsTestExecutionRule, bool)
    + + +
        func (o SyntheticsMobileTestCiOptions) MarshalJSON() ([]byte, error)
    + + +
        func (o *SyntheticsMobileTestCiOptions) SetExecutionRule(v SyntheticsTestExecutionRule)
    + + +
        func (o *SyntheticsMobileTestCiOptions) UnmarshalJSON(bytes []byte) (err error)
    + + + +
    type SyntheticsMobileTestConfig
    + + +
        func NewSyntheticsMobileTestConfig() *SyntheticsMobileTestConfig
    + + +
        func NewSyntheticsMobileTestConfigWithDefaults() *SyntheticsMobileTestConfig
    + + + +
        func (o *SyntheticsMobileTestConfig) GetInitialApplicationArguments() SyntheticsMobileTestInitialApplicationArguments
    + + +
        func (o *SyntheticsMobileTestConfig) GetInitialApplicationArgumentsOk() (*SyntheticsMobileTestInitialApplicationArguments, bool)
    + + +
        func (o *SyntheticsMobileTestConfig) GetVariables() []SyntheticsConfigVariable
    + + +
        func (o *SyntheticsMobileTestConfig) GetVariablesOk() (*[]SyntheticsConfigVariable, bool)
    + + +
        func (o *SyntheticsMobileTestConfig) HasInitialApplicationArguments() bool
    + + +
        func (o *SyntheticsMobileTestConfig) HasVariables() bool
    + + +
        func (o SyntheticsMobileTestConfig) MarshalJSON() ([]byte, error)
    + + +
        func (o *SyntheticsMobileTestConfig) SetInitialApplicationArguments(v SyntheticsMobileTestInitialApplicationArguments)
    + + +
        func (o *SyntheticsMobileTestConfig) SetVariables(v []SyntheticsConfigVariable)
    + + +
        func (o *SyntheticsMobileTestConfig) UnmarshalJSON(bytes []byte) (err error)
    + + + +
    type SyntheticsMobileTestInitialApplicationArguments
    + + +
        func NewSyntheticsMobileTestInitialApplicationArguments() *SyntheticsMobileTestInitialApplicationArguments
    + + +
        func NewSyntheticsMobileTestInitialApplicationArgumentsWithDefaults() *SyntheticsMobileTestInitialApplicationArguments
    + + + +
        func (o *SyntheticsMobileTestInitialApplicationArguments) GetPropertyNames() SyntheticsMobileTestInitialApplicationArgumentsPropertyNames
    + + +
        func (o *SyntheticsMobileTestInitialApplicationArguments) GetPropertyNamesOk() (*SyntheticsMobileTestInitialApplicationArgumentsPropertyNames, bool)
    + + +
        func (o *SyntheticsMobileTestInitialApplicationArguments) HasPropertyNames() bool
    + + +
        func (o SyntheticsMobileTestInitialApplicationArguments) MarshalJSON() ([]byte, error)
    + + +
        func (o *SyntheticsMobileTestInitialApplicationArguments) SetPropertyNames(v SyntheticsMobileTestInitialApplicationArgumentsPropertyNames)
    + + +
        func (o *SyntheticsMobileTestInitialApplicationArguments) UnmarshalJSON(bytes []byte) (err error)
    + + + +
    type SyntheticsMobileTestInitialApplicationArgumentsPropertyNames
    + + +
        func NewSyntheticsMobileTestInitialApplicationArgumentsPropertyNames() *SyntheticsMobileTestInitialApplicationArgumentsPropertyNames
    + + +
        func NewSyntheticsMobileTestInitialApplicationArgumentsPropertyNamesWithDefaults() *SyntheticsMobileTestInitialApplicationArgumentsPropertyNames
    + + + +
        func (o *SyntheticsMobileTestInitialApplicationArgumentsPropertyNames) GetPattern() string
    + + +
        func (o *SyntheticsMobileTestInitialApplicationArgumentsPropertyNames) GetPatternOk() (*string, bool)
    + + +
        func (o *SyntheticsMobileTestInitialApplicationArgumentsPropertyNames) HasPattern() bool
    + + +
        func (o SyntheticsMobileTestInitialApplicationArgumentsPropertyNames) MarshalJSON() ([]byte, error)
    + + +
        func (o *SyntheticsMobileTestInitialApplicationArgumentsPropertyNames) SetPattern(v string)
    + + +
        func (o *SyntheticsMobileTestInitialApplicationArgumentsPropertyNames) UnmarshalJSON(bytes []byte) (err error)
    + + + +
    type SyntheticsMobileTestOptions
    + + +
        func NewSyntheticsMobileTestOptions() *SyntheticsMobileTestOptions
    + + +
        func NewSyntheticsMobileTestOptionsWithDefaults() *SyntheticsMobileTestOptions
    + + + +
        func (o *SyntheticsMobileTestOptions) GetAllowApplicationCrash() bool
    + + +
        func (o *SyntheticsMobileTestOptions) GetAllowApplicationCrashOk() (*bool, bool)
    + + +
        func (o *SyntheticsMobileTestOptions) GetBindings() []SyntheticsMobileTestBinding
    + + +
        func (o *SyntheticsMobileTestOptions) GetBindingsOk() (*[]SyntheticsMobileTestBinding, bool)
    + + +
        func (o *SyntheticsMobileTestOptions) GetCi() SyntheticsMobileTestCiOptions
    + + +
        func (o *SyntheticsMobileTestOptions) GetCiOk() (*SyntheticsMobileTestCiOptions, bool)
    + + +
        func (o *SyntheticsMobileTestOptions) GetDefaultStepTimeout() int32
    + + +
        func (o *SyntheticsMobileTestOptions) GetDefaultStepTimeoutOk() (*int32, bool)
    + + +
        func (o *SyntheticsMobileTestOptions) GetDeviceIds() []SyntheticsMobileDeviceID
    + + +
        func (o *SyntheticsMobileTestOptions) GetDeviceIdsOk() (*[]SyntheticsMobileDeviceID, bool)
    + + +
        func (o *SyntheticsMobileTestOptions) GetDisableAutoAcceptAlert() bool
    + + +
        func (o *SyntheticsMobileTestOptions) GetDisableAutoAcceptAlertOk() (*bool, bool)
    + + +
        func (o *SyntheticsMobileTestOptions) GetMinFailureDuration() int64
    + + +
        func (o *SyntheticsMobileTestOptions) GetMinFailureDurationOk() (*int64, bool)
    + + +
        func (o *SyntheticsMobileTestOptions) GetMobileApplication() SyntheticsMobileTestsMobileApplication
    + + +
        func (o *SyntheticsMobileTestOptions) GetMobileApplicationOk() (*SyntheticsMobileTestsMobileApplication, bool)
    + + +
        func (o *SyntheticsMobileTestOptions) GetMonitorName() string
    + + +
        func (o *SyntheticsMobileTestOptions) GetMonitorNameOk() (*string, bool)
    + + +
        func (o *SyntheticsMobileTestOptions) GetMonitorOptions() SyntheticsMobileTestOptionsMonitorOptions
    + + +
        func (o *SyntheticsMobileTestOptions) GetMonitorOptionsOk() (*SyntheticsMobileTestOptionsMonitorOptions, bool)
    + + +
        func (o *SyntheticsMobileTestOptions) GetMonitorPriority() int32
    + + +
        func (o *SyntheticsMobileTestOptions) GetMonitorPriorityOk() (*int32, bool)
    + + +
        func (o *SyntheticsMobileTestOptions) GetNoScreenshot() bool
    + + +
        func (o *SyntheticsMobileTestOptions) GetNoScreenshotOk() (*bool, bool)
    + + +
        func (o *SyntheticsMobileTestOptions) GetRestrictedRoles() []string
    + + +
        func (o *SyntheticsMobileTestOptions) GetRestrictedRolesOk() (*[]string, bool)
    + + +
        func (o *SyntheticsMobileTestOptions) GetRetry() SyntheticsTestOptionsRetry
    + + +
        func (o *SyntheticsMobileTestOptions) GetRetryOk() (*SyntheticsTestOptionsRetry, bool)
    + + +
        func (o *SyntheticsMobileTestOptions) GetScheduling() SyntheticsTestOptionsScheduling
    + + +
        func (o *SyntheticsMobileTestOptions) GetSchedulingOk() (*SyntheticsTestOptionsScheduling, bool)
    + + +
        func (o *SyntheticsMobileTestOptions) GetTickEvery() int64
    + + +
        func (o *SyntheticsMobileTestOptions) GetTickEveryOk() (*int64, bool)
    + + +
        func (o *SyntheticsMobileTestOptions) GetVerbosity() int32
    + + +
        func (o *SyntheticsMobileTestOptions) GetVerbosityOk() (*int32, bool)
    + + +
        func (o *SyntheticsMobileTestOptions) HasAllowApplicationCrash() bool
    + + +
        func (o *SyntheticsMobileTestOptions) HasBindings() bool
    + + +
        func (o *SyntheticsMobileTestOptions) HasCi() bool
    + + +
        func (o *SyntheticsMobileTestOptions) HasDefaultStepTimeout() bool
    + + +
        func (o *SyntheticsMobileTestOptions) HasDeviceIds() bool
    + + +
        func (o *SyntheticsMobileTestOptions) HasDisableAutoAcceptAlert() bool
    + + +
        func (o *SyntheticsMobileTestOptions) HasMinFailureDuration() bool
    + + +
        func (o *SyntheticsMobileTestOptions) HasMobileApplication() bool
    + + +
        func (o *SyntheticsMobileTestOptions) HasMonitorName() bool
    + + +
        func (o *SyntheticsMobileTestOptions) HasMonitorOptions() bool
    + + +
        func (o *SyntheticsMobileTestOptions) HasMonitorPriority() bool
    + + +
        func (o *SyntheticsMobileTestOptions) HasNoScreenshot() bool
    + + +
        func (o *SyntheticsMobileTestOptions) HasRestrictedRoles() bool
    + + +
        func (o *SyntheticsMobileTestOptions) HasRetry() bool
    + + +
        func (o *SyntheticsMobileTestOptions) HasScheduling() bool
    + + +
        func (o *SyntheticsMobileTestOptions) HasTickEvery() bool
    + + +
        func (o *SyntheticsMobileTestOptions) HasVerbosity() bool
    + + +
        func (o SyntheticsMobileTestOptions) MarshalJSON() ([]byte, error)
    + + +
        func (o *SyntheticsMobileTestOptions) SetAllowApplicationCrash(v bool)
    + + +
        func (o *SyntheticsMobileTestOptions) SetBindings(v []SyntheticsMobileTestBinding)
    + + +
        func (o *SyntheticsMobileTestOptions) SetCi(v SyntheticsMobileTestCiOptions)
    + + +
        func (o *SyntheticsMobileTestOptions) SetDefaultStepTimeout(v int32)
    + + +
        func (o *SyntheticsMobileTestOptions) SetDeviceIds(v []SyntheticsMobileDeviceID)
    + + +
        func (o *SyntheticsMobileTestOptions) SetDisableAutoAcceptAlert(v bool)
    + + +
        func (o *SyntheticsMobileTestOptions) SetMinFailureDuration(v int64)
    + + +
        func (o *SyntheticsMobileTestOptions) SetMobileApplication(v SyntheticsMobileTestsMobileApplication)
    + + +
        func (o *SyntheticsMobileTestOptions) SetMonitorName(v string)
    + + +
        func (o *SyntheticsMobileTestOptions) SetMonitorOptions(v SyntheticsMobileTestOptionsMonitorOptions)
    + + +
        func (o *SyntheticsMobileTestOptions) SetMonitorPriority(v int32)
    + + +
        func (o *SyntheticsMobileTestOptions) SetNoScreenshot(v bool)
    + + +
        func (o *SyntheticsMobileTestOptions) SetRestrictedRoles(v []string)
    + + +
        func (o *SyntheticsMobileTestOptions) SetRetry(v SyntheticsTestOptionsRetry)
    + + +
        func (o *SyntheticsMobileTestOptions) SetScheduling(v SyntheticsTestOptionsScheduling)
    + + +
        func (o *SyntheticsMobileTestOptions) SetTickEvery(v int64)
    + + +
        func (o *SyntheticsMobileTestOptions) SetVerbosity(v int32)
    + + +
        func (o *SyntheticsMobileTestOptions) UnmarshalJSON(bytes []byte) (err error)
    + + + +
    type SyntheticsMobileTestOptionsMonitorOptions
    + + +
        func NewSyntheticsMobileTestOptionsMonitorOptions() *SyntheticsMobileTestOptionsMonitorOptions
    + + +
        func NewSyntheticsMobileTestOptionsMonitorOptionsWithDefaults() *SyntheticsMobileTestOptionsMonitorOptions
    + + + +
        func (o *SyntheticsMobileTestOptionsMonitorOptions) GetEscalationMessage() string
    + + +
        func (o *SyntheticsMobileTestOptionsMonitorOptions) GetEscalationMessageOk() (*string, bool)
    + + +
        func (o *SyntheticsMobileTestOptionsMonitorOptions) GetNotificationPresetName() SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName
    + + +
        func (o *SyntheticsMobileTestOptionsMonitorOptions) GetNotificationPresetNameOk() (*SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName, bool)
    + + +
        func (o *SyntheticsMobileTestOptionsMonitorOptions) GetRenotifyInterval() int64
    + + +
        func (o *SyntheticsMobileTestOptionsMonitorOptions) GetRenotifyIntervalOk() (*int64, bool)
    + + +
        func (o *SyntheticsMobileTestOptionsMonitorOptions) GetRenotifyOccurrences() int64
    + + +
        func (o *SyntheticsMobileTestOptionsMonitorOptions) GetRenotifyOccurrencesOk() (*int64, bool)
    + + +
        func (o *SyntheticsMobileTestOptionsMonitorOptions) HasEscalationMessage() bool
    + + +
        func (o *SyntheticsMobileTestOptionsMonitorOptions) HasNotificationPresetName() bool
    + + +
        func (o *SyntheticsMobileTestOptionsMonitorOptions) HasRenotifyInterval() bool
    + + +
        func (o *SyntheticsMobileTestOptionsMonitorOptions) HasRenotifyOccurrences() bool
    + + +
        func (o SyntheticsMobileTestOptionsMonitorOptions) MarshalJSON() ([]byte, error)
    + + +
        func (o *SyntheticsMobileTestOptionsMonitorOptions) SetEscalationMessage(v string)
    + + +
        func (o *SyntheticsMobileTestOptionsMonitorOptions) SetNotificationPresetName(v SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName)
    + + +
        func (o *SyntheticsMobileTestOptionsMonitorOptions) SetRenotifyInterval(v int64)
    + + +
        func (o *SyntheticsMobileTestOptionsMonitorOptions) SetRenotifyOccurrences(v int64)
    + + +
        func (o *SyntheticsMobileTestOptionsMonitorOptions) UnmarshalJSON(bytes []byte) (err error)
    + + + +
    type SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName
    + + +
        func NewSyntheticsMobileTestOptionsMonitorOptionsNotificationPresetNameFromValue(v string) (*SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName, error)
    + + + +
        func (v *SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName) GetAllowedValues() []SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName
    + + +
        func (v SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName) IsValid() bool
    + + +
        func (v SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName) Ptr() *SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName
    + + +
        func (v *SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName) UnmarshalJSON(src []byte) error
    + + + +
    type SyntheticsMobileTestType
    + + +
        func NewSyntheticsMobileTestTypeFromValue(v string) (*SyntheticsMobileTestType, error)
    + + + +
        func (v *SyntheticsMobileTestType) GetAllowedValues() []SyntheticsMobileTestType
    + + +
        func (v SyntheticsMobileTestType) IsValid() bool
    + + +
        func (v SyntheticsMobileTestType) Ptr() *SyntheticsMobileTestType
    + + +
        func (v *SyntheticsMobileTestType) UnmarshalJSON(src []byte) error
    + + + +
    type SyntheticsMobileTestsMobileApplication
    + + +
        func NewSyntheticsMobileTestsMobileApplication() *SyntheticsMobileTestsMobileApplication
    + + +
        func NewSyntheticsMobileTestsMobileApplicationWithDefaults() *SyntheticsMobileTestsMobileApplication
    + + + +
        func (o *SyntheticsMobileTestsMobileApplication) GetApplicationId() string
    + + +
        func (o *SyntheticsMobileTestsMobileApplication) GetApplicationIdOk() (*string, bool)
    + + +
        func (o *SyntheticsMobileTestsMobileApplication) GetReferenceId() string
    + + +
        func (o *SyntheticsMobileTestsMobileApplication) GetReferenceIdOk() (*string, bool)
    + + +
        func (o *SyntheticsMobileTestsMobileApplication) GetReferenceType() SyntheticsMobileTestsMobileApplicationReferenceType
    + + +
        func (o *SyntheticsMobileTestsMobileApplication) GetReferenceTypeOk() (*SyntheticsMobileTestsMobileApplicationReferenceType, bool)
    + + +
        func (o *SyntheticsMobileTestsMobileApplication) HasApplicationId() bool
    + + +
        func (o *SyntheticsMobileTestsMobileApplication) HasReferenceId() bool
    + + +
        func (o *SyntheticsMobileTestsMobileApplication) HasReferenceType() bool
    + + +
        func (o SyntheticsMobileTestsMobileApplication) MarshalJSON() ([]byte, error)
    + + +
        func (o *SyntheticsMobileTestsMobileApplication) SetApplicationId(v string)
    + + +
        func (o *SyntheticsMobileTestsMobileApplication) SetReferenceId(v string)
    + + +
        func (o *SyntheticsMobileTestsMobileApplication) SetReferenceType(v SyntheticsMobileTestsMobileApplicationReferenceType)
    + + +
        func (o *SyntheticsMobileTestsMobileApplication) UnmarshalJSON(bytes []byte) (err error)
    + + + +
    type SyntheticsMobileTestsMobileApplicationReferenceType
    + + +
        func NewSyntheticsMobileTestsMobileApplicationReferenceTypeFromValue(v string) (*SyntheticsMobileTestsMobileApplicationReferenceType, error)
    + + + +
        func (v *SyntheticsMobileTestsMobileApplicationReferenceType) GetAllowedValues() []SyntheticsMobileTestsMobileApplicationReferenceType
    + + +
        func (v SyntheticsMobileTestsMobileApplicationReferenceType) IsValid() bool
    + + +
        func (v SyntheticsMobileTestsMobileApplicationReferenceType) Ptr() *SyntheticsMobileTestsMobileApplicationReferenceType
    + + +
        func (v *SyntheticsMobileTestsMobileApplicationReferenceType) UnmarshalJSON(src []byte) error
    + + +
    type SyntheticsParsingOptions
    @@ -59530,6 +60458,40 @@

    Package files

    model_synthetics_locations.go + model_synthetics_mobile_device_id.go + + model_synthetics_mobile_step.go + + model_synthetics_mobile_step_type.go + + model_synthetics_mobile_test_.go + + model_synthetics_mobile_test_binding.go + + model_synthetics_mobile_test_binding_items.go + + model_synthetics_mobile_test_binding_items_role.go + + model_synthetics_mobile_test_ci_options.go + + model_synthetics_mobile_test_config.go + + model_synthetics_mobile_test_initial_application_arguments.go + + model_synthetics_mobile_test_initial_application_arguments_property_names.go + + model_synthetics_mobile_test_options.go + + model_synthetics_mobile_test_options_monitor_options.go + + model_synthetics_mobile_test_options_monitor_options_notification_preset_name.go + + model_synthetics_mobile_test_type.go + + model_synthetics_mobile_tests_mobile_application.go + + model_synthetics_mobile_tests_mobile_application_reference_type.go + model_synthetics_parsing_options.go model_synthetics_patch_test_body.go @@ -100289,7 +101251,7 @@

    func (*GeomapWidgetRequest) type GetAPITestLatestResultsOptionalParameters +

    type GetAPITestLatestResultsOptionalParameters @@ -100313,7 +101275,7 @@

    type func NewGetAPITestLatestResultsOptionalParameters +

    func NewGetAPITestLatestResultsOptionalParameters @@ -100327,7 +101289,7 @@

    func func (*GetAPITestLatestResultsOptionalParameters) WithFromTs +

    func (*GetAPITestLatestResultsOptionalParameters) WithFromTs @@ -100340,7 +101302,7 @@

    func (*GetAPITestL -

    func (*GetAPITestLatestResultsOptionalParameters) WithProbeDc +

    func (*GetAPITestLatestResultsOptionalParameters) WithProbeDc @@ -100353,7 +101315,7 @@

    func (*GetAPITest -

    func (*GetAPITestLatestResultsOptionalParameters) WithToTs +

    func (*GetAPITestLatestResultsOptionalParameters) WithToTs @@ -100368,7 +101330,7 @@

    func (*GetAPITestLat -

    type GetBrowserTestLatestResultsOptionalParameters +

    type GetBrowserTestLatestResultsOptionalParameters @@ -100392,7 +101354,7 @@

    type func NewGetBrowserTestLatestResultsOptionalParameters +

    func NewGetBrowserTestLatestResultsOptionalParameters @@ -100406,7 +101368,7 @@

    func func (*GetBrowserTestLatestResultsOptionalParameters) WithFromTs +

    func (*GetBrowserTestLatestResultsOptionalParameters) WithFromTs @@ -100419,7 +101381,7 @@

    func (*GetBrow -

    func (*GetBrowserTestLatestResultsOptionalParameters) WithProbeDc +

    func (*GetBrowserTestLatestResultsOptionalParameters) WithProbeDc @@ -100432,7 +101394,7 @@

    func (*GetBro -

    func (*GetBrowserTestLatestResultsOptionalParameters) WithToTs +

    func (*GetBrowserTestLatestResultsOptionalParameters) WithToTs @@ -120625,7 +121587,7 @@

    func (*ListStreamWidgetRequest) < -

    type ListTestsOptionalParameters +

    type ListTestsOptionalParameters @@ -120648,7 +121610,7 @@

    type func NewListTestsOptionalParameters +

    func NewListTestsOptionalParameters @@ -120662,7 +121624,7 @@

    func func (*ListTestsOptionalParameters) WithPageNumber +

    func (*ListTestsOptionalParameters) WithPageNumber @@ -120675,7 +121637,7 @@

    func (*ListTestsOptionalPara -

    func (*ListTestsOptionalParameters) WithPageSize +

    func (*ListTestsOptionalParameters) WithPageSize @@ -221691,7 +222653,7 @@

    type func NewSyntheticsApi +

    func NewSyntheticsApi @@ -221761,7 +222723,21 @@

    func (*SyntheticsApi) func (*SyntheticsApi) DeleteGlobalVariable +

    func (*SyntheticsApi) CreateSyntheticsMobileTest + + + +

    +
    func (a *SyntheticsApi) CreateSyntheticsMobileTest(ctx _context.Context, body SyntheticsMobileTest) (SyntheticsMobileTest, *_nethttp.Response, error)
    +

    CreateSyntheticsMobileTest Create a mobile test. +Create a Synthetic mobile test. + + + + + + +

    func (*SyntheticsApi) DeleteGlobalVariable @@ -221775,7 +222751,7 @@

    func (*SyntheticsApi) func (*SyntheticsApi) DeletePrivateLocation +

    func (*SyntheticsApi) DeletePrivateLocation @@ -221789,7 +222765,7 @@

    func (*SyntheticsApi) func (*SyntheticsApi) DeleteTests +

    func (*SyntheticsApi) DeleteTests @@ -221803,7 +222779,7 @@

    func (*SyntheticsApi) func (*SyntheticsApi) EditGlobalVariable +

    func (*SyntheticsApi) EditGlobalVariable @@ -221817,7 +222793,7 @@

    func (*SyntheticsApi) func (*SyntheticsApi) GetAPITest +

    func (*SyntheticsApi) GetAPITest @@ -221832,7 +222808,7 @@

    func (*SyntheticsApi) func (*SyntheticsApi) GetAPITestLatestResults +

    func (*SyntheticsApi) GetAPITestLatestResults @@ -221846,7 +222822,7 @@

    func (*SyntheticsApi) func (*SyntheticsApi) GetAPITestResult +

    func (*SyntheticsApi) GetAPITestResult @@ -221860,7 +222836,7 @@

    func (*SyntheticsApi) func (*SyntheticsApi) GetBrowserTest +

    func (*SyntheticsApi) GetBrowserTest @@ -221875,7 +222851,7 @@

    func (*SyntheticsApi) func (*SyntheticsApi) GetBrowserTestLatestResults +

    func (*SyntheticsApi) GetBrowserTestLatestResults @@ -221889,7 +222865,7 @@

    func (*SyntheticsApi) func (*SyntheticsApi) GetBrowserTestResult +

    func (*SyntheticsApi) GetBrowserTestResult @@ -221903,7 +222879,7 @@

    func (*SyntheticsApi) func (*SyntheticsApi) GetGlobalVariable +

    func (*SyntheticsApi) GetGlobalVariable @@ -221917,7 +222893,22 @@

    func (*SyntheticsApi) func (*SyntheticsApi) GetPrivateLocation +

    func (*SyntheticsApi) GetMobileTest + + + +

    +
    func (a *SyntheticsApi) GetMobileTest(ctx _context.Context, publicId string) (SyntheticsMobileTest, *_nethttp.Response, error)
    +

    GetMobileTest Get a Mobile test. +Get the detailed configuration associated with +a Synthetic Mobile test. + + + + + + +

    func (*SyntheticsApi) GetPrivateLocation @@ -221931,7 +222922,7 @@

    func (*SyntheticsApi) func (*SyntheticsApi) GetSyntheticsCIBatch +

    func (*SyntheticsApi) GetSyntheticsCIBatch @@ -221945,7 +222936,7 @@

    func (*SyntheticsApi) func (*SyntheticsApi) GetSyntheticsDefaultLocations +

    func (*SyntheticsApi) GetSyntheticsDefaultLocations @@ -221959,7 +222950,7 @@

    func (*SyntheticsApi) func (*SyntheticsApi) GetTest +

    func (*SyntheticsApi) GetTest @@ -221973,7 +222964,7 @@

    func (*SyntheticsApi) func (*SyntheticsApi) ListGlobalVariables +

    func (*SyntheticsApi) ListGlobalVariables @@ -221987,7 +222978,7 @@

    func (*SyntheticsApi) func (*SyntheticsApi) ListLocations +

    func (*SyntheticsApi) ListLocations @@ -222002,7 +222993,7 @@

    func (*SyntheticsApi) func (*SyntheticsApi) ListTests +

    func (*SyntheticsApi) ListTests @@ -222016,7 +223007,7 @@

    func (*SyntheticsApi) func (*SyntheticsApi) ListTestsWithPagination +

    func (*SyntheticsApi) ListTestsWithPagination @@ -222029,7 +223020,7 @@

    func (*SyntheticsApi) func (*SyntheticsApi) PatchTest +

    func (*SyntheticsApi) PatchTest @@ -222043,7 +223034,7 @@

    func (*SyntheticsApi) func (*SyntheticsApi) TriggerCITests +

    func (*SyntheticsApi) TriggerCITests @@ -222057,7 +223048,7 @@

    func (*SyntheticsApi) func (*SyntheticsApi) TriggerTests +

    func (*SyntheticsApi) TriggerTests @@ -222071,7 +223062,7 @@

    func (*SyntheticsApi) func (*SyntheticsApi) UpdateAPITest +

    func (*SyntheticsApi) UpdateAPITest @@ -222085,7 +223076,7 @@

    func (*SyntheticsApi) func (*SyntheticsApi) UpdateBrowserTest +

    func (*SyntheticsApi) UpdateBrowserTest @@ -222099,7 +223090,21 @@

    func (*SyntheticsApi) func (*SyntheticsApi) UpdatePrivateLocation +

    func (*SyntheticsApi) UpdateMobileTest + + + +

    +
    func (a *SyntheticsApi) UpdateMobileTest(ctx _context.Context, publicId string, body SyntheticsMobileTest) (SyntheticsMobileTest, *_nethttp.Response, error)
    +

    UpdateMobileTest Edit a Mobile test. +Edit the configuration of a Synthetic Mobile test. + + + + + + +

    func (*SyntheticsApi) UpdatePrivateLocation @@ -222113,7 +223118,7 @@

    func (*SyntheticsApi) func (*SyntheticsApi) UpdateTestPauseStatus +

    func (*SyntheticsApi) UpdateTestPauseStatus @@ -236621,6 +237626,7 @@

    type SYNTHETICSCONFIGVARIABLETYPE_GLOBAL SyntheticsConfigVariableType = "global" SYNTHETICSCONFIGVARIABLETYPE_TEXT SyntheticsConfigVariableType = "text" + SYNTHETICSCONFIGVARIABLETYPE_EMAIL SyntheticsConfigVariableType = "email" ) @@ -236632,7 +237638,7 @@

    type func NewSyntheticsConfigVariableTypeFromValue +

    func NewSyntheticsConfigVariableTypeFromValue @@ -236647,7 +237653,7 @@

    func func (*SyntheticsConfigVariableType) GetAllowedValues +

    func (*SyntheticsConfigVariableType) GetAllowedValues @@ -236660,7 +237666,7 @@

    func (*SyntheticsConfigVa -

    func (SyntheticsConfigVariableType) IsValid +

    func (SyntheticsConfigVariableType) IsValid @@ -236673,7 +237679,7 @@

    func (SyntheticsConfigVariableType -

    func (SyntheticsConfigVariableType) Ptr +

    func (SyntheticsConfigVariableType) Ptr @@ -236686,7 +237692,7 @@

    func (SyntheticsConfigVariableType) func (*SyntheticsConfigVariableType) UnmarshalJSON +

    func (*SyntheticsConfigVariableType) UnmarshalJSON @@ -241357,6 +242363,4528 @@

    func (*SyntheticsLocations) type SyntheticsMobileDeviceID + + + +

    +

    SyntheticsMobileDeviceID The device ID. + +

    type SyntheticsMobileDeviceID string
    + + +

    List of SyntheticsMobileDeviceID. + +

    const (
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPAD__2022__16_4                                          SyntheticsMobileDeviceID = "apple ipad (2022),16.4"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPAD__2022__17_3_1                                        SyntheticsMobileDeviceID = "apple ipad (2022),17.3.1"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPAD_7TH_GEN__2019__13_3                                  SyntheticsMobileDeviceID = "apple ipad 7th gen (2019),13.3"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPAD_9TH_GEN__2021__15_0_2                                SyntheticsMobileDeviceID = "apple ipad 9th gen (2021),15.0.2"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPAD_9TH_GEN__2021__16_1                                  SyntheticsMobileDeviceID = "apple ipad 9th gen (2021),16.1"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPAD_AIR__2022__15_4_1                                    SyntheticsMobileDeviceID = "apple ipad air (2022),15.4.1"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPAD_MINI__5TH_GEN__14_6                                  SyntheticsMobileDeviceID = "apple ipad mini (5th gen),14.6"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPAD_MINI__6TH_GEN__15_1                                  SyntheticsMobileDeviceID = "apple ipad mini (6th gen),15.1"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPAD_PRO_11__2022__16_3                                   SyntheticsMobileDeviceID = "apple ipad pro 11 (2022),16.3"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPAD_PRO_12_9__2020__14_8                                 SyntheticsMobileDeviceID = "apple ipad pro 12.9 (2020),14.8"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPAD_PRO_12_9__2021__15_6_1                               SyntheticsMobileDeviceID = "apple ipad pro 12.9 (2021),15.6.1"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPAD_PRO_12_9__2022__16_5                                 SyntheticsMobileDeviceID = "apple ipad pro 12.9 (2022),16.5"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_11_PRO_MAX_13_1_3                                  SyntheticsMobileDeviceID = "apple iphone 11 pro max,13.1.3"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_11_PRO_13_6                                        SyntheticsMobileDeviceID = "apple iphone 11 pro,13.6"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_11_PRO_15_5                                        SyntheticsMobileDeviceID = "apple iphone 11 pro,15.5"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_11_13_3_1                                          SyntheticsMobileDeviceID = "apple iphone 11,13.3.1"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_11_14_0                                            SyntheticsMobileDeviceID = "apple iphone 11,14.0"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_11_16_3                                            SyntheticsMobileDeviceID = "apple iphone 11,16.3"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_12_MINI_14_2                                       SyntheticsMobileDeviceID = "apple iphone 12 mini,14.2"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_12_MINI_16_5                                       SyntheticsMobileDeviceID = "apple iphone 12 mini,16.5"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_12_PRO_MAX_14_5_1                                  SyntheticsMobileDeviceID = "apple iphone 12 pro max,14.5.1"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_12_PRO_14_5_1                                      SyntheticsMobileDeviceID = "apple iphone 12 pro,14.5.1"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_12_PRO_14_8                                        SyntheticsMobileDeviceID = "apple iphone 12 pro,14.8"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_12_PRO_15_0_2                                      SyntheticsMobileDeviceID = "apple iphone 12 pro,15.0.2"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_12_PRO_16_2                                        SyntheticsMobileDeviceID = "apple iphone 12 pro,16.2"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_12_14_2                                            SyntheticsMobileDeviceID = "apple iphone 12,14.2"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_12_14_6                                            SyntheticsMobileDeviceID = "apple iphone 12,14.6"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_12_14_8                                            SyntheticsMobileDeviceID = "apple iphone 12,14.8"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_12_15_6_1                                          SyntheticsMobileDeviceID = "apple iphone 12,15.6.1"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_12_16_6_1                                          SyntheticsMobileDeviceID = "apple iphone 12,16.6.1"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_13_MINI_15_0_2                                     SyntheticsMobileDeviceID = "apple iphone 13 mini,15.0.2"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_13_MINI_16_6                                       SyntheticsMobileDeviceID = "apple iphone 13 mini,16.6"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_13_PRO_MAX_15_1                                    SyntheticsMobileDeviceID = "apple iphone 13 pro max,15.1"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_13_PRO_MAX_17_3                                    SyntheticsMobileDeviceID = "apple iphone 13 pro max,17.3"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_13_PRO_15_0_2                                      SyntheticsMobileDeviceID = "apple iphone 13 pro,15.0.2"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_13_PRO_15_2                                        SyntheticsMobileDeviceID = "apple iphone 13 pro,15.2"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_14_PLUS_16_1                                       SyntheticsMobileDeviceID = "apple iphone 14 plus,16.1"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_14_PRO_MAX_16_2                                    SyntheticsMobileDeviceID = "apple iphone 14 pro max,16.2"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_14_PRO_16_1                                        SyntheticsMobileDeviceID = "apple iphone 14 pro,16.1"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_14_PRO_17_3_1                                      SyntheticsMobileDeviceID = "apple iphone 14 pro,17.3.1"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_14_16_1                                            SyntheticsMobileDeviceID = "apple iphone 14,16.1"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_15_PRO_MAX_17_3_1                                  SyntheticsMobileDeviceID = "apple iphone 15 pro max,17.3.1"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_15_PRO_17_3_1                                      SyntheticsMobileDeviceID = "apple iphone 15 pro,17.3.1"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_15_17_2_1                                          SyntheticsMobileDeviceID = "apple iphone 15,17.2.1"
    +    SYNTHETICSMOBILEDEVICEID_APPLE_IPHONE_SE__2022__15_4_1                                   SyntheticsMobileDeviceID = "apple iphone se (2022),15.4.1"
    +    SYNTHETICSMOBILEDEVICEID_GALAXY_A40_9                                                    SyntheticsMobileDeviceID = "galaxy a40,9"
    +    SYNTHETICSMOBILEDEVICEID_GALAXY_A5_8_0_0                                                 SyntheticsMobileDeviceID = "galaxy a5,8.0.0"
    +    SYNTHETICSMOBILEDEVICEID_GALAXY_NOTE_10_9                                                SyntheticsMobileDeviceID = "galaxy note 10,9"
    +    SYNTHETICSMOBILEDEVICEID_GALAXY_NOTE5__AT_T__7_0                                         SyntheticsMobileDeviceID = "galaxy note5 (at&t),7.0"
    +    SYNTHETICSMOBILEDEVICEID_GALAXY_S10_9                                                    SyntheticsMobileDeviceID = "galaxy s10,9"
    +    SYNTHETICSMOBILEDEVICEID_GALAXY_S6_EDGE_SMNOT_G925F_7_0                                  SyntheticsMobileDeviceID = "galaxy s6 edge sm-g925f,7.0"
    +    SYNTHETICSMOBILEDEVICEID_GALAXY_S8__TNOT_MOBILE__8_0_0                                   SyntheticsMobileDeviceID = "galaxy s8 (t-mobile),8.0.0"
    +    SYNTHETICSMOBILEDEVICEID_GALAXY_S8_UNLOCKED_8_0_0                                        SyntheticsMobileDeviceID = "galaxy s8 unlocked,8.0.0"
    +    SYNTHETICSMOBILEDEVICEID_GALAXY_S9__UNLOCKED__9                                          SyntheticsMobileDeviceID = "galaxy s9 (unlocked),9"
    +    SYNTHETICSMOBILEDEVICEID_GALAXY_S9___UNLOCKED__8_0_0                                     SyntheticsMobileDeviceID = "galaxy s9+ (unlocked),8.0.0"
    +    SYNTHETICSMOBILEDEVICEID_GALAXY_S9___UNLOCKED__9                                         SyntheticsMobileDeviceID = "galaxy s9+ (unlocked),9"
    +    SYNTHETICSMOBILEDEVICEID_GOOGLE_PIXEL_2_8_0_0                                            SyntheticsMobileDeviceID = "google pixel 2,8.0.0"
    +    SYNTHETICSMOBILEDEVICEID_GOOGLE_PIXEL_2_9                                                SyntheticsMobileDeviceID = "google pixel 2,9"
    +    SYNTHETICSMOBILEDEVICEID_GOOGLE_PIXEL_3_XL_10                                            SyntheticsMobileDeviceID = "google pixel 3 xl,10"
    +    SYNTHETICSMOBILEDEVICEID_GOOGLE_PIXEL_3_XL_9                                             SyntheticsMobileDeviceID = "google pixel 3 xl,9"
    +    SYNTHETICSMOBILEDEVICEID_GOOGLE_PIXEL_3_10                                               SyntheticsMobileDeviceID = "google pixel 3,10"
    +    SYNTHETICSMOBILEDEVICEID_GOOGLE_PIXEL_3_9                                                SyntheticsMobileDeviceID = "google pixel 3,9"
    +    SYNTHETICSMOBILEDEVICEID_GOOGLE_PIXEL_3A_XL_11                                           SyntheticsMobileDeviceID = "google pixel 3a xl,11"
    +    SYNTHETICSMOBILEDEVICEID_GOOGLE_PIXEL_3A_XL_12                                           SyntheticsMobileDeviceID = "google pixel 3a xl,12"
    +    SYNTHETICSMOBILEDEVICEID_GOOGLE_PIXEL_3A_10                                              SyntheticsMobileDeviceID = "google pixel 3a,10"
    +    SYNTHETICSMOBILEDEVICEID_GOOGLE_PIXEL_4__UNLOCKED__10                                    SyntheticsMobileDeviceID = "google pixel 4 (unlocked),10"
    +    SYNTHETICSMOBILEDEVICEID_GOOGLE_PIXEL_4__UNLOCKED__11                                    SyntheticsMobileDeviceID = "google pixel 4 (unlocked),11"
    +    SYNTHETICSMOBILEDEVICEID_GOOGLE_PIXEL_4_XL__UNLOCKED__10                                 SyntheticsMobileDeviceID = "google pixel 4 xl (unlocked),10"
    +    SYNTHETICSMOBILEDEVICEID_GOOGLE_PIXEL_4A_11                                              SyntheticsMobileDeviceID = "google pixel 4a,11"
    +    SYNTHETICSMOBILEDEVICEID_GOOGLE_PIXEL_4A_12                                              SyntheticsMobileDeviceID = "google pixel 4a,12"
    +    SYNTHETICSMOBILEDEVICEID_GOOGLE_PIXEL_5A_5G_12                                           SyntheticsMobileDeviceID = "google pixel 5a 5g,12"
    +    SYNTHETICSMOBILEDEVICEID_GOOGLE_PIXEL_6_PRO_12                                           SyntheticsMobileDeviceID = "google pixel 6 pro,12"
    +    SYNTHETICSMOBILEDEVICEID_GOOGLE_PIXEL_6_12                                               SyntheticsMobileDeviceID = "google pixel 6,12"
    +    SYNTHETICSMOBILEDEVICEID_GOOGLE_PIXEL_6A_13                                              SyntheticsMobileDeviceID = "google pixel 6a,13"
    +    SYNTHETICSMOBILEDEVICEID_GOOGLE_PIXEL_7_PRO_13                                           SyntheticsMobileDeviceID = "google pixel 7 pro,13"
    +    SYNTHETICSMOBILEDEVICEID_GOOGLE_PIXEL_7_13                                               SyntheticsMobileDeviceID = "google pixel 7,13"
    +    SYNTHETICSMOBILEDEVICEID_GOOGLE_PIXEL_7_14                                               SyntheticsMobileDeviceID = "google pixel 7,14"
    +    SYNTHETICSMOBILEDEVICEID_GOOGLE_PIXEL_8_PRO_14                                           SyntheticsMobileDeviceID = "google pixel 8 pro,14"
    +    SYNTHETICSMOBILEDEVICEID_GOOGLE_PIXEL_8_14                                               SyntheticsMobileDeviceID = "google pixel 8,14"
    +    SYNTHETICSMOBILEDEVICEID_IPAD_8TH_GEN__2020__14_8                                        SyntheticsMobileDeviceID = "ipad 8th gen (2020),14.8"
    +    SYNTHETICSMOBILEDEVICEID_IPAD_AIR_2_13_6                                                 SyntheticsMobileDeviceID = "ipad air 2,13.6"
    +    SYNTHETICSMOBILEDEVICEID_IPAD_AIR_4TH_GEN__2020__14_8                                    SyntheticsMobileDeviceID = "ipad air 4th gen (2020),14.8"
    +    SYNTHETICSMOBILEDEVICEID_IPHONE_13_15_0_2                                                SyntheticsMobileDeviceID = "iphone 13,15.0.2"
    +    SYNTHETICSMOBILEDEVICEID_IPHONE_13_16_0_2                                                SyntheticsMobileDeviceID = "iphone 13,16.0.2"
    +    SYNTHETICSMOBILEDEVICEID_IPHONE_6_12_5_4                                                 SyntheticsMobileDeviceID = "iphone 6,12.5.4"
    +    SYNTHETICSMOBILEDEVICEID_IPHONE_6S_14_4_2                                                SyntheticsMobileDeviceID = "iphone 6s,14.4.2"
    +    SYNTHETICSMOBILEDEVICEID_IPHONE_7_14_8                                                   SyntheticsMobileDeviceID = "iphone 7,14.8"
    +    SYNTHETICSMOBILEDEVICEID_IPHONE_8_13_5_1                                                 SyntheticsMobileDeviceID = "iphone 8,13.5.1"
    +    SYNTHETICSMOBILEDEVICEID_IPHONE_8_14_4_2                                                 SyntheticsMobileDeviceID = "iphone 8,14.4.2"
    +    SYNTHETICSMOBILEDEVICEID_IPHONE_SE__2020__13_6                                           SyntheticsMobileDeviceID = "iphone se (2020),13.6"
    +    SYNTHETICSMOBILEDEVICEID_IPHONE_SE__2020__14_6                                           SyntheticsMobileDeviceID = "iphone se (2020),14.6"
    +    SYNTHETICSMOBILEDEVICEID_IPHONE_SE__2020__15_0_2                                         SyntheticsMobileDeviceID = "iphone se (2020),15.0.2"
    +    SYNTHETICSMOBILEDEVICEID_IPHONE_X_14_6                                                   SyntheticsMobileDeviceID = "iphone x,14.6"
    +    SYNTHETICSMOBILEDEVICEID_IPHONE_XR_12_0                                                  SyntheticsMobileDeviceID = "iphone xr,12.0"
    +    SYNTHETICSMOBILEDEVICEID_IPHONE_XR_14_0                                                  SyntheticsMobileDeviceID = "iphone xr,14.0"
    +    SYNTHETICSMOBILEDEVICEID_IPHONE_XS_MAX_12_1                                              SyntheticsMobileDeviceID = "iphone xs max,12.1"
    +    SYNTHETICSMOBILEDEVICEID_IPHONE_XS_13_6                                                  SyntheticsMobileDeviceID = "iphone xs,13.6"
    +    SYNTHETICSMOBILEDEVICEID_LG_STYLO_5_9                                                    SyntheticsMobileDeviceID = "lg stylo 5,9"
    +    SYNTHETICSMOBILEDEVICEID_LG_STYLO_6_10                                                   SyntheticsMobileDeviceID = "lg stylo 6,10"
    +    SYNTHETICSMOBILEDEVICEID_MOTO_G_4_7_0                                                    SyntheticsMobileDeviceID = "moto g 4,7.0"
    +    SYNTHETICSMOBILEDEVICEID_MOTO_G7_PLAY_9                                                  SyntheticsMobileDeviceID = "moto g7 play,9"
    +    SYNTHETICSMOBILEDEVICEID_NEXUS_7_NOT__2ND_GEN__WIFI__6_0                                 SyntheticsMobileDeviceID = "nexus 7 - 2nd gen (wifi),6.0"
    +    SYNTHETICSMOBILEDEVICEID_ONEPLUS_8T_11                                                   SyntheticsMobileDeviceID = "oneplus 8t,11"
    +    SYNTHETICSMOBILEDEVICEID_PIXEL_2_XL_8_1_0                                                SyntheticsMobileDeviceID = "pixel 2 xl,8.1.0"
    +    SYNTHETICSMOBILEDEVICEID_PIXEL_2_XL_9                                                    SyntheticsMobileDeviceID = "pixel 2 xl,9"
    +    SYNTHETICSMOBILEDEVICEID_PIXEL_5_11                                                      SyntheticsMobileDeviceID = "pixel 5,11"
    +    SYNTHETICSMOBILEDEVICEID_PIXEL_5_12                                                      SyntheticsMobileDeviceID = "pixel 5,12"
    +    SYNTHETICSMOBILEDEVICEID_PIXEL_XL_8_0_0                                                  SyntheticsMobileDeviceID = "pixel xl,8.0.0"
    +    SYNTHETICSMOBILEDEVICEID_PIXEL_7_1_2                                                     SyntheticsMobileDeviceID = "pixel,7.1.2"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_A51_10                                                  SyntheticsMobileDeviceID = "samsung a51,10"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_A10S_10                                          SyntheticsMobileDeviceID = "samsung galaxy a10s,10"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_A13_5G_11                                        SyntheticsMobileDeviceID = "samsung galaxy a13 5g,11"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_A53_5G_12                                        SyntheticsMobileDeviceID = "samsung galaxy a53 5g,12"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_A7_8_0_0                                         SyntheticsMobileDeviceID = "samsung galaxy a7,8.0.0"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_A71_11                                           SyntheticsMobileDeviceID = "samsung galaxy a71,11"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_A73_5G_12                                        SyntheticsMobileDeviceID = "samsung galaxy a73 5g,12"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_J7__2018__8_0_0                                  SyntheticsMobileDeviceID = "samsung galaxy j7 (2018),8.0.0"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_NOTE20_11                                        SyntheticsMobileDeviceID = "samsung galaxy note20,11"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_S20__UNLOCKED__10                                SyntheticsMobileDeviceID = "samsung galaxy s20 (unlocked),10"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_S20___UNLOCKED__10                               SyntheticsMobileDeviceID = "samsung galaxy s20+ (unlocked),10"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_S21_ULTRA_11                                     SyntheticsMobileDeviceID = "samsung galaxy s21 ultra,11"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_S21_ULTRA_12                                     SyntheticsMobileDeviceID = "samsung galaxy s21 ultra,12"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_S21__11                                          SyntheticsMobileDeviceID = "samsung galaxy s21+,11"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_S21_11                                           SyntheticsMobileDeviceID = "samsung galaxy s21,11"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_S21_12                                           SyntheticsMobileDeviceID = "samsung galaxy s21,12"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_S22_5G_12                                        SyntheticsMobileDeviceID = "samsung galaxy s22 5g,12"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_S22_5G_13                                        SyntheticsMobileDeviceID = "samsung galaxy s22 5g,13"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_S22_ULTRA_5G_12                                  SyntheticsMobileDeviceID = "samsung galaxy s22 ultra 5g,12"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_S22__5G_12                                       SyntheticsMobileDeviceID = "samsung galaxy s22+ 5g,12"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_S23_ULTRA_13                                     SyntheticsMobileDeviceID = "samsung galaxy s23 ultra,13"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_S23__13                                          SyntheticsMobileDeviceID = "samsung galaxy s23+,13"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_S23_13                                           SyntheticsMobileDeviceID = "samsung galaxy s23,13"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_S23_14                                           SyntheticsMobileDeviceID = "samsung galaxy s23,14"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_TAB_A_10_1_10                                    SyntheticsMobileDeviceID = "samsung galaxy tab a 10.1,10"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_TAB_A_10_1_7_0                                   SyntheticsMobileDeviceID = "samsung galaxy tab a 10.1,7.0"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_TAB_A8__2021__11                                 SyntheticsMobileDeviceID = "samsung galaxy tab a8 (2021),11"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_TAB_S4_8_1_0                                     SyntheticsMobileDeviceID = "samsung galaxy tab s4,8.1.0"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_TAB_S6_9                                         SyntheticsMobileDeviceID = "samsung galaxy tab s6,9"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_TAB_S7_11                                        SyntheticsMobileDeviceID = "samsung galaxy tab s7,11"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_GALAXY_TAB_S8_12                                        SyntheticsMobileDeviceID = "samsung galaxy tab s8,12"
    +    SYNTHETICSMOBILEDEVICEID_SAMSUNG_S20_ULTRA_10                                            SyntheticsMobileDeviceID = "samsung s20 ultra,10"
    +    SYNTHETICSMOBILEDEVICEID_SONY_XPERIA_XZ3_9                                               SyntheticsMobileDeviceID = "sony xperia xz3,9"
    +    SYNTHETICSMOBILEDEVICEID_XIAOMI_REDMI_NOTE_10_5G_11                                      SyntheticsMobileDeviceID = "xiaomi redmi note 10 5g,11"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_10TH_GEN_2022_IOS_16        SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_10TH_GEN_2022_IOS_17        SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_17"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_9TH_GEN_2021_IOS_15         SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_ipad_9th_gen_2021_ios_15"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_AIR_2022_IOS_15             SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_ipad_air_2022_ios_15"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_MINI_5TH_GEN_IOS_14         SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_ipad_mini_5th_gen_ios_14"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_MINI_6TH_GEN_IOS_15         SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_ipad_mini_6th_gen_ios_15"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_PRO_11_2022_IOS_16          SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_ipad_pro_11_2022_ios_16"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_PRO_12_9_2020_IOS_14        SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_ipad_pro_12_9_2020_ios_14"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_PRO_12_9_2021_IOS_15        SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_ipad_pro_12_9_2021_ios_15"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_PRO_12_9_2022_IOS_16        SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_ipad_pro_12_9_2022_ios_16"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_11_IOS_14                 SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_iphone_11_ios_14"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_11_IOS_16                 SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_iphone_11_ios_16"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_11_PRO_IOS_15             SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_iphone_11_pro_ios_15"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_12_IOS_14                 SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_iphone_12_ios_14"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_12_IOS_15                 SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_iphone_12_ios_15"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_12_IOS_16                 SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_iphone_12_ios_16"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_12_MINI_IOS_14            SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_iphone_12_mini_ios_14"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_12_MINI_IOS_16            SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_iphone_12_mini_ios_16"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_12_PRO_IOS_14             SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_iphone_12_pro_ios_14"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_12_PRO_MAX_IOS_14         SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_iphone_12_pro_max_ios_14"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_13_MINI_IOS_15            SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_iphone_13_mini_ios_15"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_13_MINI_IOS_16            SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_iphone_13_mini_ios_16"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_13_PRO_IOS_15             SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_iphone_13_pro_ios_15"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_13_PRO_MAX_IOS_15         SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_iphone_13_pro_max_ios_15"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_13_PRO_MAX_IOS_17         SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_iphone_13_pro_max_ios_17"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_14_IOS_16                 SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_iphone_14_ios_16"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_14_PLUS_IOS_16            SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_iphone_14_plus_ios_16"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_14_PRO_IOS_16             SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_iphone_14_pro_ios_16"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_14_PRO_IOS_17             SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_iphone_14_pro_ios_17"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_14_PRO_MAX_IOS_16         SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_iphone_14_pro_max_ios_16"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_6_IOS_12                  SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_iphone_6_ios_12"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_8_IOS_13                  SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_iphone_8_ios_13"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_8_IOS_14                  SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_iphone_8_ios_14"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_SE_2022_IOS_15            SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_iphone_se_2022_ios_15"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_SE_2022_IOS_16            SyntheticsMobileDeviceID = "synthetics:mobile:device:apple_iphone_se_2022_ios_16"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_GALAXY_A5_ANDROID_8                    SyntheticsMobileDeviceID = "synthetics:mobile:device:galaxy_a5_android_8"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_GALAXY_NOTE5_ANDROID_7                 SyntheticsMobileDeviceID = "synthetics:mobile:device:galaxy_note5_android_7"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_3A_XL_ANDROID_11          SyntheticsMobileDeviceID = "synthetics:mobile:device:google_pixel_3a_xl_android_11"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_4_UNLOCKED_ANDROID_11     SyntheticsMobileDeviceID = "synthetics:mobile:device:google_pixel_4_unlocked_android_11"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_4_XL_UNLOCKED_ANDROID_10  SyntheticsMobileDeviceID = "synthetics:mobile:device:google_pixel_4_xl_unlocked_android_10"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_4A_ANDROID_11             SyntheticsMobileDeviceID = "synthetics:mobile:device:google_pixel_4a_android_11"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_6_ANDROID_12              SyntheticsMobileDeviceID = "synthetics:mobile:device:google_pixel_6_android_12"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_6_PRO_ANDROID_12          SyntheticsMobileDeviceID = "synthetics:mobile:device:google_pixel_6_pro_android_12"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_6A_ANDROID_13             SyntheticsMobileDeviceID = "synthetics:mobile:device:google_pixel_6a_android_13"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_7_ANDROID_13              SyntheticsMobileDeviceID = "synthetics:mobile:device:google_pixel_7_android_13"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_7_ANDROID_14              SyntheticsMobileDeviceID = "synthetics:mobile:device:google_pixel_7_android_14"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_7_PRO_ANDROID_13          SyntheticsMobileDeviceID = "synthetics:mobile:device:google_pixel_7_pro_android_13"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_8_ANDROID_14              SyntheticsMobileDeviceID = "synthetics:mobile:device:google_pixel_8_android_14"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_8_PRO_ANDROID_14          SyntheticsMobileDeviceID = "synthetics:mobile:device:google_pixel_8_pro_android_14"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_IPAD_AIR_2_IOS_13                      SyntheticsMobileDeviceID = "synthetics:mobile:device:ipad_air_2_ios_13"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_IPAD_AIR_4TH_GEN_2020_IOS_14           SyntheticsMobileDeviceID = "synthetics:mobile:device:ipad_air_4th_gen_2020_ios_14"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_IPHONE_13_IOS_15                       SyntheticsMobileDeviceID = "synthetics:mobile:device:iphone_13_ios_15"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_IPHONE_13_IOS_16                       SyntheticsMobileDeviceID = "synthetics:mobile:device:iphone_13_ios_16"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_IPHONE_15_IOS_17                       SyntheticsMobileDeviceID = "synthetics:mobile:device:iphone_15_ios_17"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_IPHONE_15_PRO_IOS_17                   SyntheticsMobileDeviceID = "synthetics:mobile:device:iphone_15_pro_ios_17"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_IPHONE_15_PRO_MAX_IOS_17               SyntheticsMobileDeviceID = "synthetics:mobile:device:iphone_15_pro_max_ios_17"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_IPHONE_SE_2020_IOS_13                  SyntheticsMobileDeviceID = "synthetics:mobile:device:iphone_se_2020_ios_13"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_IPHONE_SE_2020_IOS_14                  SyntheticsMobileDeviceID = "synthetics:mobile:device:iphone_se_2020_ios_14"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_IPHONE_X_IOS_14                        SyntheticsMobileDeviceID = "synthetics:mobile:device:iphone_x_ios_14"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_IPHONE_XR_IOS_14                       SyntheticsMobileDeviceID = "synthetics:mobile:device:iphone_xr_ios_14"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_IPHONE_XS_IOS_13                       SyntheticsMobileDeviceID = "synthetics:mobile:device:iphone_xs_ios_13"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_LG_STYLO_6_ANDROID_10                  SyntheticsMobileDeviceID = "synthetics:mobile:device:lg_stylo_6_android_10"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_PIXEL_5_ANDROID_12                     SyntheticsMobileDeviceID = "synthetics:mobile:device:pixel_5_android_12"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_SAMSUNG_A51_ANDROID_10                 SyntheticsMobileDeviceID = "synthetics:mobile:device:samsung_a51_android_10"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_A71_ANDROID_11          SyntheticsMobileDeviceID = "synthetics:mobile:device:samsung_galaxy_a71_android_11"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_NOTE20_ANDROID_11       SyntheticsMobileDeviceID = "synthetics:mobile:device:samsung_galaxy_note20_android_11"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S21_ANDROID_11          SyntheticsMobileDeviceID = "synthetics:mobile:device:samsung_galaxy_s21_android_11"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S21_ANDROID_12          SyntheticsMobileDeviceID = "synthetics:mobile:device:samsung_galaxy_s21_android_12"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S21_PLUS_ANDROID_11     SyntheticsMobileDeviceID = "synthetics:mobile:device:samsung_galaxy_s21_plus_android_11"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S21_ULTRA_ANDROID_11    SyntheticsMobileDeviceID = "synthetics:mobile:device:samsung_galaxy_s21_ultra_android_11"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S22_5G_ANDROID_12       SyntheticsMobileDeviceID = "synthetics:mobile:device:samsung_galaxy_s22_5g_android_12"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S22_5G_ANDROID_13       SyntheticsMobileDeviceID = "synthetics:mobile:device:samsung_galaxy_s22_5g_android_13"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S22_PLUS_5G_ANDROID_12  SyntheticsMobileDeviceID = "synthetics:mobile:device:samsung_galaxy_s22_plus_5g_android_12"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S22_ULTRA_5G_ANDROID_12 SyntheticsMobileDeviceID = "synthetics:mobile:device:samsung_galaxy_s22_ultra_5g_android_12"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S23_ANDROID_13          SyntheticsMobileDeviceID = "synthetics:mobile:device:samsung_galaxy_s23_android_13"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S23_ANDROID_14          SyntheticsMobileDeviceID = "synthetics:mobile:device:samsung_galaxy_s23_android_14"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S23_PLUS_ANDROID_13     SyntheticsMobileDeviceID = "synthetics:mobile:device:samsung_galaxy_s23_plus_android_13"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S23_PLUS_ANDROID_14     SyntheticsMobileDeviceID = "synthetics:mobile:device:samsung_galaxy_s23_plus_android_14"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S23_ULTRA_ANDROID_13    SyntheticsMobileDeviceID = "synthetics:mobile:device:samsung_galaxy_s23_ultra_android_13"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_TAB_A_10_1_ANDROID_7    SyntheticsMobileDeviceID = "synthetics:mobile:device:samsung_galaxy_tab_a_10_1_android_7"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_TAB_S7_ANDROID_11       SyntheticsMobileDeviceID = "synthetics:mobile:device:samsung_galaxy_tab_s7_android_11"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_TAB_S8_ANDROID_12       SyntheticsMobileDeviceID = "synthetics:mobile:device:samsung_galaxy_tab_s8_android_12"
    +    SYNTHETICSMOBILEDEVICEID_SYNTHETICS_MOBILE_DEVICE_XIAOMI_REDMI_NOTE_10_5G_ANDROID_11     SyntheticsMobileDeviceID = "synthetics:mobile:device:xiaomi_redmi_note_10_5g_android_11"
    +)
    + + + + + + + + + + +

    func NewSyntheticsMobileDeviceIDFromValue + + + +

    +
    func NewSyntheticsMobileDeviceIDFromValue(v string) (*SyntheticsMobileDeviceID, error)
    +

    NewSyntheticsMobileDeviceIDFromValue returns a pointer to a valid SyntheticsMobileDeviceID +for the value passed as argument, or an error if the value passed is not allowed by the enum. + + + + + + + +

    func (*SyntheticsMobileDeviceID) GetAllowedValues + + + +

    +
    func (v *SyntheticsMobileDeviceID) GetAllowedValues() []SyntheticsMobileDeviceID
    +

    GetAllowedValues reeturns the list of possible values. + + + + + + +

    func (SyntheticsMobileDeviceID) IsValid + + + +

    +
    func (v SyntheticsMobileDeviceID) IsValid() bool
    +

    IsValid return true if the value is valid for the enum, false otherwise. + + + + + + +

    func (SyntheticsMobileDeviceID) Ptr + + + +

    +
    func (v SyntheticsMobileDeviceID) Ptr() *SyntheticsMobileDeviceID
    +

    Ptr returns reference to SyntheticsMobileDeviceID value. + + + + + + +

    func (*SyntheticsMobileDeviceID) UnmarshalJSON + + + +

    +
    func (v *SyntheticsMobileDeviceID) UnmarshalJSON(src []byte) error
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + + +

    type SyntheticsMobileStep + + + +

    +

    SyntheticsMobileStep The steps used in a Synthetic mobile test. + +

    type SyntheticsMobileStep struct {
    +    // A boolean set to allow this step to fail.
    +    AllowFailure *bool `json:"allowFailure,omitempty"`
    +    // A boolean set to determine if the step has a new step element.
    +    HasNewStepElement *bool `json:"hasNewStepElement,omitempty"`
    +    // A boolean to use in addition to `allowFailure` to determine if the test should be marked as failed when the step fails.
    +    IsCritical *bool `json:"isCritical,omitempty"`
    +    // The name of the step.
    +    Name *string `json:"name,omitempty"`
    +    // A boolean set to not take a screenshot for the step.
    +    NoScreenshot *bool `json:"noScreenshot,omitempty"`
    +    // The parameters of the mobile step.
    +    Params interface{} `json:"params,omitempty"`
    +    // The public ID of the step.
    +    PublicId *string `json:"publicId,omitempty"`
    +    // The time before declaring a step failed.
    +    Timeout *int64 `json:"timeout,omitempty"`
    +    // Step type used in your mobile Synthetic test.
    +    Type *SyntheticsMobileStepType `json:"type,omitempty"`
    +    // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
    +    UnparsedObject       map[string]interface{} `json:"-"`
    +    AdditionalProperties map[string]interface{} `json:"-"`
    +}
    +
    + + + + + + + + + + + +

    func NewSyntheticsMobileStep + + + +

    +
    func NewSyntheticsMobileStep() *SyntheticsMobileStep
    +

    NewSyntheticsMobileStep instantiates a new SyntheticsMobileStep object. +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed. + + + + + +

    func NewSyntheticsMobileStepWithDefaults + + + +

    +
    func NewSyntheticsMobileStepWithDefaults() *SyntheticsMobileStep
    +

    NewSyntheticsMobileStepWithDefaults instantiates a new SyntheticsMobileStep object. +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set. + + + + + + + +

    func (*SyntheticsMobileStep) GetAllowFailure + + + +

    +
    func (o *SyntheticsMobileStep) GetAllowFailure() bool
    +

    GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileStep) GetAllowFailureOk + + + +

    +
    func (o *SyntheticsMobileStep) GetAllowFailureOk() (*bool, bool)
    +

    GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileStep) GetHasNewStepElement + + + +

    +
    func (o *SyntheticsMobileStep) GetHasNewStepElement() bool
    +

    GetHasNewStepElement returns the HasNewStepElement field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileStep) GetHasNewStepElementOk + + + +

    +
    func (o *SyntheticsMobileStep) GetHasNewStepElementOk() (*bool, bool)
    +

    GetHasNewStepElementOk returns a tuple with the HasNewStepElement field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileStep) GetIsCritical + + + +

    +
    func (o *SyntheticsMobileStep) GetIsCritical() bool
    +

    GetIsCritical returns the IsCritical field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileStep) GetIsCriticalOk + + + +

    +
    func (o *SyntheticsMobileStep) GetIsCriticalOk() (*bool, bool)
    +

    GetIsCriticalOk returns a tuple with the IsCritical field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileStep) GetName + + + +

    +
    func (o *SyntheticsMobileStep) GetName() string
    +

    GetName returns the Name field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileStep) GetNameOk + + + +

    +
    func (o *SyntheticsMobileStep) GetNameOk() (*string, bool)
    +

    GetNameOk returns a tuple with the Name field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileStep) GetNoScreenshot + + + +

    +
    func (o *SyntheticsMobileStep) GetNoScreenshot() bool
    +

    GetNoScreenshot returns the NoScreenshot field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileStep) GetNoScreenshotOk + + + +

    +
    func (o *SyntheticsMobileStep) GetNoScreenshotOk() (*bool, bool)
    +

    GetNoScreenshotOk returns a tuple with the NoScreenshot field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileStep) GetParams + + + +

    +
    func (o *SyntheticsMobileStep) GetParams() interface{}
    +

    GetParams returns the Params field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileStep) GetParamsOk + + + +

    +
    func (o *SyntheticsMobileStep) GetParamsOk() (*interface{}, bool)
    +

    GetParamsOk returns a tuple with the Params field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileStep) GetPublicId + + + +

    +
    func (o *SyntheticsMobileStep) GetPublicId() string
    +

    GetPublicId returns the PublicId field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileStep) GetPublicIdOk + + + +

    +
    func (o *SyntheticsMobileStep) GetPublicIdOk() (*string, bool)
    +

    GetPublicIdOk returns a tuple with the PublicId field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileStep) GetTimeout + + + +

    +
    func (o *SyntheticsMobileStep) GetTimeout() int64
    +

    GetTimeout returns the Timeout field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileStep) GetTimeoutOk + + + +

    +
    func (o *SyntheticsMobileStep) GetTimeoutOk() (*int64, bool)
    +

    GetTimeoutOk returns a tuple with the Timeout field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileStep) GetType + + + +

    +
    func (o *SyntheticsMobileStep) GetType() SyntheticsMobileStepType
    +

    GetType returns the Type field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileStep) GetTypeOk + + + +

    +
    func (o *SyntheticsMobileStep) GetTypeOk() (*SyntheticsMobileStepType, bool)
    +

    GetTypeOk returns a tuple with the Type field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileStep) HasAllowFailure + + + +

    +
    func (o *SyntheticsMobileStep) HasAllowFailure() bool
    +

    HasAllowFailure returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileStep) HasHasNewStepElement + + + +

    +
    func (o *SyntheticsMobileStep) HasHasNewStepElement() bool
    +

    HasHasNewStepElement returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileStep) HasIsCritical + + + +

    +
    func (o *SyntheticsMobileStep) HasIsCritical() bool
    +

    HasIsCritical returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileStep) HasName + + + +

    +
    func (o *SyntheticsMobileStep) HasName() bool
    +

    HasName returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileStep) HasNoScreenshot + + + +

    +
    func (o *SyntheticsMobileStep) HasNoScreenshot() bool
    +

    HasNoScreenshot returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileStep) HasParams + + + +

    +
    func (o *SyntheticsMobileStep) HasParams() bool
    +

    HasParams returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileStep) HasPublicId + + + +

    +
    func (o *SyntheticsMobileStep) HasPublicId() bool
    +

    HasPublicId returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileStep) HasTimeout + + + +

    +
    func (o *SyntheticsMobileStep) HasTimeout() bool
    +

    HasTimeout returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileStep) HasType + + + +

    +
    func (o *SyntheticsMobileStep) HasType() bool
    +

    HasType returns a boolean if a field has been set. + + + + + + +

    func (SyntheticsMobileStep) MarshalJSON + + + +

    +
    func (o SyntheticsMobileStep) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the struct using spec logic. + + + + + + +

    func (*SyntheticsMobileStep) SetAllowFailure + + + +

    +
    func (o *SyntheticsMobileStep) SetAllowFailure(v bool)
    +

    SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. + + + + + + +

    func (*SyntheticsMobileStep) SetHasNewStepElement + + + +

    +
    func (o *SyntheticsMobileStep) SetHasNewStepElement(v bool)
    +

    SetHasNewStepElement gets a reference to the given bool and assigns it to the HasNewStepElement field. + + + + + + +

    func (*SyntheticsMobileStep) SetIsCritical + + + +

    +
    func (o *SyntheticsMobileStep) SetIsCritical(v bool)
    +

    SetIsCritical gets a reference to the given bool and assigns it to the IsCritical field. + + + + + + +

    func (*SyntheticsMobileStep) SetName + + + +

    +
    func (o *SyntheticsMobileStep) SetName(v string)
    +

    SetName gets a reference to the given string and assigns it to the Name field. + + + + + + +

    func (*SyntheticsMobileStep) SetNoScreenshot + + + +

    +
    func (o *SyntheticsMobileStep) SetNoScreenshot(v bool)
    +

    SetNoScreenshot gets a reference to the given bool and assigns it to the NoScreenshot field. + + + + + + +

    func (*SyntheticsMobileStep) SetParams + + + +

    +
    func (o *SyntheticsMobileStep) SetParams(v interface{})
    +

    SetParams gets a reference to the given interface{} and assigns it to the Params field. + + + + + + +

    func (*SyntheticsMobileStep) SetPublicId + + + +

    +
    func (o *SyntheticsMobileStep) SetPublicId(v string)
    +

    SetPublicId gets a reference to the given string and assigns it to the PublicId field. + + + + + + +

    func (*SyntheticsMobileStep) SetTimeout + + + +

    +
    func (o *SyntheticsMobileStep) SetTimeout(v int64)
    +

    SetTimeout gets a reference to the given int64 and assigns it to the Timeout field. + + + + + + +

    func (*SyntheticsMobileStep) SetType + + + +

    +
    func (o *SyntheticsMobileStep) SetType(v SyntheticsMobileStepType)
    +

    SetType gets a reference to the given SyntheticsMobileStepType and assigns it to the Type field. + + + + + + +

    func (*SyntheticsMobileStep) UnmarshalJSON + + + +

    +
    func (o *SyntheticsMobileStep) UnmarshalJSON(bytes []byte) (err error)
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + + +

    type SyntheticsMobileStepType + + + +

    +

    SyntheticsMobileStepType Step type used in your mobile Synthetic test. + +

    type SyntheticsMobileStepType string
    + + +

    List of SyntheticsMobileStepType. + +

    const (
    +    SYNTHETICSMOBILESTEPTYPE_ASSERTELEMENTCONTENT SyntheticsMobileStepType = "assertElementContent"
    +    SYNTHETICSMOBILESTEPTYPE_ASSERTSCREENCONTAINS SyntheticsMobileStepType = "assertScreenContains"
    +    SYNTHETICSMOBILESTEPTYPE_ASSERTSCREENLACKS    SyntheticsMobileStepType = "assertScreenLacks"
    +    SYNTHETICSMOBILESTEPTYPE_DOUBLETAP            SyntheticsMobileStepType = "doubleTap"
    +    SYNTHETICSMOBILESTEPTYPE_EXTRACTVARIABLE      SyntheticsMobileStepType = "extractVariable"
    +    SYNTHETICSMOBILESTEPTYPE_FLICK                SyntheticsMobileStepType = "flick"
    +    SYNTHETICSMOBILESTEPTYPE_OPENDEEPLINK         SyntheticsMobileStepType = "openDeeplink"
    +    SYNTHETICSMOBILESTEPTYPE_PLAYSUBTEST          SyntheticsMobileStepType = "playSubTest"
    +    SYNTHETICSMOBILESTEPTYPE_PRESSBACK            SyntheticsMobileStepType = "pressBack"
    +    SYNTHETICSMOBILESTEPTYPE_RESTARTAPPLICATION   SyntheticsMobileStepType = "restartApplication"
    +    SYNTHETICSMOBILESTEPTYPE_ROTATE               SyntheticsMobileStepType = "rotate"
    +    SYNTHETICSMOBILESTEPTYPE_SCROLL               SyntheticsMobileStepType = "scroll"
    +    SYNTHETICSMOBILESTEPTYPE_SCROLLTOELEMENT      SyntheticsMobileStepType = "scrollToElement"
    +    SYNTHETICSMOBILESTEPTYPE_TAP                  SyntheticsMobileStepType = "tap"
    +    SYNTHETICSMOBILESTEPTYPE_TOGGLEWIFI           SyntheticsMobileStepType = "toggleWiFi"
    +    SYNTHETICSMOBILESTEPTYPE_TYPETEXT             SyntheticsMobileStepType = "typeText"
    +    SYNTHETICSMOBILESTEPTYPE_WAIT                 SyntheticsMobileStepType = "wait"
    +)
    + + + + + + + + + + +

    func NewSyntheticsMobileStepTypeFromValue + + + +

    +
    func NewSyntheticsMobileStepTypeFromValue(v string) (*SyntheticsMobileStepType, error)
    +

    NewSyntheticsMobileStepTypeFromValue returns a pointer to a valid SyntheticsMobileStepType +for the value passed as argument, or an error if the value passed is not allowed by the enum. + + + + + + + +

    func (*SyntheticsMobileStepType) GetAllowedValues + + + +

    +
    func (v *SyntheticsMobileStepType) GetAllowedValues() []SyntheticsMobileStepType
    +

    GetAllowedValues reeturns the list of possible values. + + + + + + +

    func (SyntheticsMobileStepType) IsValid + + + +

    +
    func (v SyntheticsMobileStepType) IsValid() bool
    +

    IsValid return true if the value is valid for the enum, false otherwise. + + + + + + +

    func (SyntheticsMobileStepType) Ptr + + + +

    +
    func (v SyntheticsMobileStepType) Ptr() *SyntheticsMobileStepType
    +

    Ptr returns reference to SyntheticsMobileStepType value. + + + + + + +

    func (*SyntheticsMobileStepType) UnmarshalJSON + + + +

    +
    func (v *SyntheticsMobileStepType) UnmarshalJSON(src []byte) error
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + + +

    type SyntheticsMobileTest + + + +

    +

    SyntheticsMobileTest Object containing details about a Synthetic mobile test. + +

    type SyntheticsMobileTest struct {
    +    // Configuration object for a Synthetic mobile test.
    +    Config SyntheticsMobileTestConfig `json:"config"`
    +    // The `SyntheticsMobileTest` `device_ids`.
    +    DeviceIds []SyntheticsMobileDeviceID `json:"device_ids,omitempty"`
    +    // Notification message associated with the test.
    +    Message *string `json:"message,omitempty"`
    +    // The associated monitor ID.
    +    MonitorId *int64 `json:"monitor_id,omitempty"`
    +    // Name of the test.
    +    Name string `json:"name"`
    +    // Object describing the extra options for a Synthetic test.
    +    Options SyntheticsMobileTestOptions `json:"options"`
    +    // The public ID of the test.
    +    PublicId *string `json:"public_id,omitempty"`
    +    // Define whether you want to start (`live`) or pause (`paused`) a
    +    // Synthetic test.
    +    Status *SyntheticsTestPauseStatus `json:"status,omitempty"`
    +    // Array of steps for the test.
    +    Steps []SyntheticsMobileStep `json:"steps,omitempty"`
    +    // Array of tags attached to the test.
    +    Tags []string `json:"tags,omitempty"`
    +    // Type of the Synthetic test, `mobile`.
    +    Type SyntheticsMobileTestType `json:"type"`
    +    // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
    +    UnparsedObject       map[string]interface{} `json:"-"`
    +    AdditionalProperties map[string]interface{} `json:"-"`
    +}
    +
    + + + + + + + + + + + +

    func NewSyntheticsMobileTest + + + +

    +
    func NewSyntheticsMobileTest(config SyntheticsMobileTestConfig, name string, options SyntheticsMobileTestOptions, typeVar SyntheticsMobileTestType) *SyntheticsMobileTest
    +

    NewSyntheticsMobileTest instantiates a new SyntheticsMobileTest object. +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed. + + + + + +

    func NewSyntheticsMobileTestWithDefaults + + + +

    +
    func NewSyntheticsMobileTestWithDefaults() *SyntheticsMobileTest
    +

    NewSyntheticsMobileTestWithDefaults instantiates a new SyntheticsMobileTest object. +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set. + + + + + + + +

    func (*SyntheticsMobileTest) GetConfig + + + +

    +
    func (o *SyntheticsMobileTest) GetConfig() SyntheticsMobileTestConfig
    +

    GetConfig returns the Config field value. + + + + + + +

    func (*SyntheticsMobileTest) GetConfigOk + + + +

    +
    func (o *SyntheticsMobileTest) GetConfigOk() (*SyntheticsMobileTestConfig, bool)
    +

    GetConfigOk returns a tuple with the Config field value +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTest) GetDeviceIds + + + +

    +
    func (o *SyntheticsMobileTest) GetDeviceIds() []SyntheticsMobileDeviceID
    +

    GetDeviceIds returns the DeviceIds field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTest) GetDeviceIdsOk + + + +

    +
    func (o *SyntheticsMobileTest) GetDeviceIdsOk() (*[]SyntheticsMobileDeviceID, bool)
    +

    GetDeviceIdsOk returns a tuple with the DeviceIds field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTest) GetMessage + + + +

    +
    func (o *SyntheticsMobileTest) GetMessage() string
    +

    GetMessage returns the Message field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTest) GetMessageOk + + + +

    +
    func (o *SyntheticsMobileTest) GetMessageOk() (*string, bool)
    +

    GetMessageOk returns a tuple with the Message field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTest) GetMonitorId + + + +

    +
    func (o *SyntheticsMobileTest) GetMonitorId() int64
    +

    GetMonitorId returns the MonitorId field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTest) GetMonitorIdOk + + + +

    +
    func (o *SyntheticsMobileTest) GetMonitorIdOk() (*int64, bool)
    +

    GetMonitorIdOk returns a tuple with the MonitorId field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTest) GetName + + + +

    +
    func (o *SyntheticsMobileTest) GetName() string
    +

    GetName returns the Name field value. + + + + + + +

    func (*SyntheticsMobileTest) GetNameOk + + + +

    +
    func (o *SyntheticsMobileTest) GetNameOk() (*string, bool)
    +

    GetNameOk returns a tuple with the Name field value +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTest) GetOptions + + + +

    +
    func (o *SyntheticsMobileTest) GetOptions() SyntheticsMobileTestOptions
    +

    GetOptions returns the Options field value. + + + + + + +

    func (*SyntheticsMobileTest) GetOptionsOk + + + +

    +
    func (o *SyntheticsMobileTest) GetOptionsOk() (*SyntheticsMobileTestOptions, bool)
    +

    GetOptionsOk returns a tuple with the Options field value +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTest) GetPublicId + + + +

    +
    func (o *SyntheticsMobileTest) GetPublicId() string
    +

    GetPublicId returns the PublicId field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTest) GetPublicIdOk + + + +

    +
    func (o *SyntheticsMobileTest) GetPublicIdOk() (*string, bool)
    +

    GetPublicIdOk returns a tuple with the PublicId field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTest) GetStatus + + + +

    +
    func (o *SyntheticsMobileTest) GetStatus() SyntheticsTestPauseStatus
    +

    GetStatus returns the Status field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTest) GetStatusOk + + + +

    +
    func (o *SyntheticsMobileTest) GetStatusOk() (*SyntheticsTestPauseStatus, bool)
    +

    GetStatusOk returns a tuple with the Status field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTest) GetSteps + + + +

    +
    func (o *SyntheticsMobileTest) GetSteps() []SyntheticsMobileStep
    +

    GetSteps returns the Steps field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTest) GetStepsOk + + + +

    +
    func (o *SyntheticsMobileTest) GetStepsOk() (*[]SyntheticsMobileStep, bool)
    +

    GetStepsOk returns a tuple with the Steps field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTest) GetTags + + + +

    +
    func (o *SyntheticsMobileTest) GetTags() []string
    +

    GetTags returns the Tags field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTest) GetTagsOk + + + +

    +
    func (o *SyntheticsMobileTest) GetTagsOk() (*[]string, bool)
    +

    GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTest) GetType + + + +

    +
    func (o *SyntheticsMobileTest) GetType() SyntheticsMobileTestType
    +

    GetType returns the Type field value. + + + + + + +

    func (*SyntheticsMobileTest) GetTypeOk + + + +

    +
    func (o *SyntheticsMobileTest) GetTypeOk() (*SyntheticsMobileTestType, bool)
    +

    GetTypeOk returns a tuple with the Type field value +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTest) HasDeviceIds + + + +

    +
    func (o *SyntheticsMobileTest) HasDeviceIds() bool
    +

    HasDeviceIds returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTest) HasMessage + + + +

    +
    func (o *SyntheticsMobileTest) HasMessage() bool
    +

    HasMessage returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTest) HasMonitorId + + + +

    +
    func (o *SyntheticsMobileTest) HasMonitorId() bool
    +

    HasMonitorId returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTest) HasPublicId + + + +

    +
    func (o *SyntheticsMobileTest) HasPublicId() bool
    +

    HasPublicId returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTest) HasStatus + + + +

    +
    func (o *SyntheticsMobileTest) HasStatus() bool
    +

    HasStatus returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTest) HasSteps + + + +

    +
    func (o *SyntheticsMobileTest) HasSteps() bool
    +

    HasSteps returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTest) HasTags + + + +

    +
    func (o *SyntheticsMobileTest) HasTags() bool
    +

    HasTags returns a boolean if a field has been set. + + + + + + +

    func (SyntheticsMobileTest) MarshalJSON + + + +

    +
    func (o SyntheticsMobileTest) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the struct using spec logic. + + + + + + +

    func (*SyntheticsMobileTest) SetConfig + + + +

    +
    func (o *SyntheticsMobileTest) SetConfig(v SyntheticsMobileTestConfig)
    +

    SetConfig sets field value. + + + + + + +

    func (*SyntheticsMobileTest) SetDeviceIds + + + +

    +
    func (o *SyntheticsMobileTest) SetDeviceIds(v []SyntheticsMobileDeviceID)
    +

    SetDeviceIds gets a reference to the given []SyntheticsMobileDeviceID and assigns it to the DeviceIds field. + + + + + + +

    func (*SyntheticsMobileTest) SetMessage + + + +

    +
    func (o *SyntheticsMobileTest) SetMessage(v string)
    +

    SetMessage gets a reference to the given string and assigns it to the Message field. + + + + + + +

    func (*SyntheticsMobileTest) SetMonitorId + + + +

    +
    func (o *SyntheticsMobileTest) SetMonitorId(v int64)
    +

    SetMonitorId gets a reference to the given int64 and assigns it to the MonitorId field. + + + + + + +

    func (*SyntheticsMobileTest) SetName + + + +

    +
    func (o *SyntheticsMobileTest) SetName(v string)
    +

    SetName sets field value. + + + + + + +

    func (*SyntheticsMobileTest) SetOptions + + + +

    +
    func (o *SyntheticsMobileTest) SetOptions(v SyntheticsMobileTestOptions)
    +

    SetOptions sets field value. + + + + + + +

    func (*SyntheticsMobileTest) SetPublicId + + + +

    +
    func (o *SyntheticsMobileTest) SetPublicId(v string)
    +

    SetPublicId gets a reference to the given string and assigns it to the PublicId field. + + + + + + +

    func (*SyntheticsMobileTest) SetStatus + + + +

    +
    func (o *SyntheticsMobileTest) SetStatus(v SyntheticsTestPauseStatus)
    +

    SetStatus gets a reference to the given SyntheticsTestPauseStatus and assigns it to the Status field. + + + + + + +

    func (*SyntheticsMobileTest) SetSteps + + + +

    +
    func (o *SyntheticsMobileTest) SetSteps(v []SyntheticsMobileStep)
    +

    SetSteps gets a reference to the given []SyntheticsMobileStep and assigns it to the Steps field. + + + + + + +

    func (*SyntheticsMobileTest) SetTags + + + +

    +
    func (o *SyntheticsMobileTest) SetTags(v []string)
    +

    SetTags gets a reference to the given []string and assigns it to the Tags field. + + + + + + +

    func (*SyntheticsMobileTest) SetType + + + +

    +
    func (o *SyntheticsMobileTest) SetType(v SyntheticsMobileTestType)
    +

    SetType sets field value. + + + + + + +

    func (*SyntheticsMobileTest) UnmarshalJSON + + + +

    +
    func (o *SyntheticsMobileTest) UnmarshalJSON(bytes []byte) (err error)
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + + +

    type SyntheticsMobileTestBinding + + + +

    +

    SyntheticsMobileTestBinding Objects describing the binding used for a mobile test. + +

    type SyntheticsMobileTestBinding struct {
    +    // Object describing the binding used for a mobile test.
    +    Items *SyntheticsMobileTestBindingItems `json:"items,omitempty"`
    +    // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
    +    UnparsedObject       map[string]interface{} `json:"-"`
    +    AdditionalProperties map[string]interface{} `json:"-"`
    +}
    +
    + + + + + + + + + + + +

    func NewSyntheticsMobileTestBinding + + + +

    +
    func NewSyntheticsMobileTestBinding() *SyntheticsMobileTestBinding
    +

    NewSyntheticsMobileTestBinding instantiates a new SyntheticsMobileTestBinding object. +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed. + + + + + +

    func NewSyntheticsMobileTestBindingWithDefaults + + + +

    +
    func NewSyntheticsMobileTestBindingWithDefaults() *SyntheticsMobileTestBinding
    +

    NewSyntheticsMobileTestBindingWithDefaults instantiates a new SyntheticsMobileTestBinding object. +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set. + + + + + + + +

    func (*SyntheticsMobileTestBinding) GetItems + + + +

    +
    func (o *SyntheticsMobileTestBinding) GetItems() SyntheticsMobileTestBindingItems
    +

    GetItems returns the Items field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestBinding) GetItemsOk + + + +

    +
    func (o *SyntheticsMobileTestBinding) GetItemsOk() (*SyntheticsMobileTestBindingItems, bool)
    +

    GetItemsOk returns a tuple with the Items field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestBinding) HasItems + + + +

    +
    func (o *SyntheticsMobileTestBinding) HasItems() bool
    +

    HasItems returns a boolean if a field has been set. + + + + + + +

    func (SyntheticsMobileTestBinding) MarshalJSON + + + +

    +
    func (o SyntheticsMobileTestBinding) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the struct using spec logic. + + + + + + +

    func (*SyntheticsMobileTestBinding) SetItems + + + +

    +
    func (o *SyntheticsMobileTestBinding) SetItems(v SyntheticsMobileTestBindingItems)
    +

    SetItems gets a reference to the given SyntheticsMobileTestBindingItems and assigns it to the Items field. + + + + + + +

    func (*SyntheticsMobileTestBinding) UnmarshalJSON + + + +

    +
    func (o *SyntheticsMobileTestBinding) UnmarshalJSON(bytes []byte) (err error)
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + + +

    type SyntheticsMobileTestBindingItems + + + +

    +

    SyntheticsMobileTestBindingItems Object describing the binding used for a mobile test. + +

    type SyntheticsMobileTestBindingItems struct {
    +    // List of principals for a mobile test binding.
    +    Principals []string `json:"principals,omitempty"`
    +    // The definition of `SyntheticsMobileTestBindingItemsRole` object.
    +    Role *SyntheticsMobileTestBindingItemsRole `json:"role,omitempty"`
    +    // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
    +    UnparsedObject       map[string]interface{} `json:"-"`
    +    AdditionalProperties map[string]interface{} `json:"-"`
    +}
    +
    + + + + + + + + + + + +

    func NewSyntheticsMobileTestBindingItems + + + +

    +
    func NewSyntheticsMobileTestBindingItems() *SyntheticsMobileTestBindingItems
    +

    NewSyntheticsMobileTestBindingItems instantiates a new SyntheticsMobileTestBindingItems object. +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed. + + + + + +

    func NewSyntheticsMobileTestBindingItemsWithDefaults + + + +

    +
    func NewSyntheticsMobileTestBindingItemsWithDefaults() *SyntheticsMobileTestBindingItems
    +

    NewSyntheticsMobileTestBindingItemsWithDefaults instantiates a new SyntheticsMobileTestBindingItems object. +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set. + + + + + + + +

    func (*SyntheticsMobileTestBindingItems) GetPrincipals + + + +

    +
    func (o *SyntheticsMobileTestBindingItems) GetPrincipals() []string
    +

    GetPrincipals returns the Principals field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestBindingItems) GetPrincipalsOk + + + +

    +
    func (o *SyntheticsMobileTestBindingItems) GetPrincipalsOk() (*[]string, bool)
    +

    GetPrincipalsOk returns a tuple with the Principals field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestBindingItems) GetRole + + + +

    +
    func (o *SyntheticsMobileTestBindingItems) GetRole() SyntheticsMobileTestBindingItemsRole
    +

    GetRole returns the Role field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestBindingItems) GetRoleOk + + + +

    +
    func (o *SyntheticsMobileTestBindingItems) GetRoleOk() (*SyntheticsMobileTestBindingItemsRole, bool)
    +

    GetRoleOk returns a tuple with the Role field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestBindingItems) HasPrincipals + + + +

    +
    func (o *SyntheticsMobileTestBindingItems) HasPrincipals() bool
    +

    HasPrincipals returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTestBindingItems) HasRole + + + +

    +
    func (o *SyntheticsMobileTestBindingItems) HasRole() bool
    +

    HasRole returns a boolean if a field has been set. + + + + + + +

    func (SyntheticsMobileTestBindingItems) MarshalJSON + + + +

    +
    func (o SyntheticsMobileTestBindingItems) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the struct using spec logic. + + + + + + +

    func (*SyntheticsMobileTestBindingItems) SetPrincipals + + + +

    +
    func (o *SyntheticsMobileTestBindingItems) SetPrincipals(v []string)
    +

    SetPrincipals gets a reference to the given []string and assigns it to the Principals field. + + + + + + +

    func (*SyntheticsMobileTestBindingItems) SetRole + + + +

    +
    func (o *SyntheticsMobileTestBindingItems) SetRole(v SyntheticsMobileTestBindingItemsRole)
    +

    SetRole gets a reference to the given SyntheticsMobileTestBindingItemsRole and assigns it to the Role field. + + + + + + +

    func (*SyntheticsMobileTestBindingItems) UnmarshalJSON + + + +

    +
    func (o *SyntheticsMobileTestBindingItems) UnmarshalJSON(bytes []byte) (err error)
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + + +

    type SyntheticsMobileTestBindingItemsRole + + + +

    +

    SyntheticsMobileTestBindingItemsRole The definition of `SyntheticsMobileTestBindingItemsRole` object. + +

    type SyntheticsMobileTestBindingItemsRole string
    + + +

    List of SyntheticsMobileTestBindingItemsRole. + +

    const (
    +    SYNTHETICSMOBILETESTBINDINGITEMSROLE_EDITOR SyntheticsMobileTestBindingItemsRole = "editor"
    +    SYNTHETICSMOBILETESTBINDINGITEMSROLE_VIEWER SyntheticsMobileTestBindingItemsRole = "viewer"
    +)
    + + + + + + + + + + +

    func NewSyntheticsMobileTestBindingItemsRoleFromValue + + + +

    +
    func NewSyntheticsMobileTestBindingItemsRoleFromValue(v string) (*SyntheticsMobileTestBindingItemsRole, error)
    +

    NewSyntheticsMobileTestBindingItemsRoleFromValue returns a pointer to a valid SyntheticsMobileTestBindingItemsRole +for the value passed as argument, or an error if the value passed is not allowed by the enum. + + + + + + + +

    func (*SyntheticsMobileTestBindingItemsRole) GetAllowedValues + + + +

    +
    func (v *SyntheticsMobileTestBindingItemsRole) GetAllowedValues() []SyntheticsMobileTestBindingItemsRole
    +

    GetAllowedValues reeturns the list of possible values. + + + + + + +

    func (SyntheticsMobileTestBindingItemsRole) IsValid + + + +

    +
    func (v SyntheticsMobileTestBindingItemsRole) IsValid() bool
    +

    IsValid return true if the value is valid for the enum, false otherwise. + + + + + + +

    func (SyntheticsMobileTestBindingItemsRole) Ptr + + + +

    +
    func (v SyntheticsMobileTestBindingItemsRole) Ptr() *SyntheticsMobileTestBindingItemsRole
    +

    Ptr returns reference to SyntheticsMobileTestBindingItemsRole value. + + + + + + +

    func (*SyntheticsMobileTestBindingItemsRole) UnmarshalJSON + + + +

    +
    func (v *SyntheticsMobileTestBindingItemsRole) UnmarshalJSON(src []byte) error
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + + +

    type SyntheticsMobileTestCiOptions + + + +

    +

    SyntheticsMobileTestCiOptions CI/CD options for a Synthetic test. + +

    type SyntheticsMobileTestCiOptions struct {
    +    // Execution rule for a Synthetic test.
    +    ExecutionRule SyntheticsTestExecutionRule `json:"executionRule"`
    +    // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
    +    UnparsedObject       map[string]interface{} `json:"-"`
    +    AdditionalProperties map[string]interface{} `json:"-"`
    +}
    +
    + + + + + + + + + + + +

    func NewSyntheticsMobileTestCiOptions + + + +

    +
    func NewSyntheticsMobileTestCiOptions(executionRule SyntheticsTestExecutionRule) *SyntheticsMobileTestCiOptions
    +

    NewSyntheticsMobileTestCiOptions instantiates a new SyntheticsMobileTestCiOptions object. +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed. + + + + + +

    func NewSyntheticsMobileTestCiOptionsWithDefaults + + + +

    +
    func NewSyntheticsMobileTestCiOptionsWithDefaults() *SyntheticsMobileTestCiOptions
    +

    NewSyntheticsMobileTestCiOptionsWithDefaults instantiates a new SyntheticsMobileTestCiOptions object. +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set. + + + + + + + +

    func (*SyntheticsMobileTestCiOptions) GetExecutionRule + + + +

    +
    func (o *SyntheticsMobileTestCiOptions) GetExecutionRule() SyntheticsTestExecutionRule
    +

    GetExecutionRule returns the ExecutionRule field value. + + + + + + +

    func (*SyntheticsMobileTestCiOptions) GetExecutionRuleOk + + + +

    +
    func (o *SyntheticsMobileTestCiOptions) GetExecutionRuleOk() (*SyntheticsTestExecutionRule, bool)
    +

    GetExecutionRuleOk returns a tuple with the ExecutionRule field value +and a boolean to check if the value has been set. + + + + + + +

    func (SyntheticsMobileTestCiOptions) MarshalJSON + + + +

    +
    func (o SyntheticsMobileTestCiOptions) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the struct using spec logic. + + + + + + +

    func (*SyntheticsMobileTestCiOptions) SetExecutionRule + + + +

    +
    func (o *SyntheticsMobileTestCiOptions) SetExecutionRule(v SyntheticsTestExecutionRule)
    +

    SetExecutionRule sets field value. + + + + + + +

    func (*SyntheticsMobileTestCiOptions) UnmarshalJSON + + + +

    +
    func (o *SyntheticsMobileTestCiOptions) UnmarshalJSON(bytes []byte) (err error)
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + + +

    type SyntheticsMobileTestConfig + + + +

    +

    SyntheticsMobileTestConfig Configuration object for a Synthetic mobile test. + +

    type SyntheticsMobileTestConfig struct {
    +    // Initial application arguments for a mobile test.
    +    InitialApplicationArguments *SyntheticsMobileTestInitialApplicationArguments `json:"initialApplicationArguments,omitempty"`
    +    // Array of variables used for the test steps.
    +    Variables []SyntheticsConfigVariable `json:"variables,omitempty"`
    +    // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
    +    UnparsedObject       map[string]interface{} `json:"-"`
    +    AdditionalProperties map[string]interface{} `json:"-"`
    +}
    +
    + + + + + + + + + + + +

    func NewSyntheticsMobileTestConfig + + + +

    +
    func NewSyntheticsMobileTestConfig() *SyntheticsMobileTestConfig
    +

    NewSyntheticsMobileTestConfig instantiates a new SyntheticsMobileTestConfig object. +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed. + + + + + +

    func NewSyntheticsMobileTestConfigWithDefaults + + + +

    +
    func NewSyntheticsMobileTestConfigWithDefaults() *SyntheticsMobileTestConfig
    +

    NewSyntheticsMobileTestConfigWithDefaults instantiates a new SyntheticsMobileTestConfig object. +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set. + + + + + + + +

    func (*SyntheticsMobileTestConfig) GetInitialApplicationArguments + + + +

    +
    func (o *SyntheticsMobileTestConfig) GetInitialApplicationArguments() SyntheticsMobileTestInitialApplicationArguments
    +

    GetInitialApplicationArguments returns the InitialApplicationArguments field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestConfig) GetInitialApplicationArgumentsOk + + + +

    +
    func (o *SyntheticsMobileTestConfig) GetInitialApplicationArgumentsOk() (*SyntheticsMobileTestInitialApplicationArguments, bool)
    +

    GetInitialApplicationArgumentsOk returns a tuple with the InitialApplicationArguments field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestConfig) GetVariables + + + +

    +
    func (o *SyntheticsMobileTestConfig) GetVariables() []SyntheticsConfigVariable
    +

    GetVariables returns the Variables field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestConfig) GetVariablesOk + + + +

    +
    func (o *SyntheticsMobileTestConfig) GetVariablesOk() (*[]SyntheticsConfigVariable, bool)
    +

    GetVariablesOk returns a tuple with the Variables field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestConfig) HasInitialApplicationArguments + + + +

    +
    func (o *SyntheticsMobileTestConfig) HasInitialApplicationArguments() bool
    +

    HasInitialApplicationArguments returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTestConfig) HasVariables + + + +

    +
    func (o *SyntheticsMobileTestConfig) HasVariables() bool
    +

    HasVariables returns a boolean if a field has been set. + + + + + + +

    func (SyntheticsMobileTestConfig) MarshalJSON + + + +

    +
    func (o SyntheticsMobileTestConfig) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the struct using spec logic. + + + + + + +

    func (*SyntheticsMobileTestConfig) SetInitialApplicationArguments + + + +

    +
    func (o *SyntheticsMobileTestConfig) SetInitialApplicationArguments(v SyntheticsMobileTestInitialApplicationArguments)
    +

    SetInitialApplicationArguments gets a reference to the given SyntheticsMobileTestInitialApplicationArguments and assigns it to the InitialApplicationArguments field. + + + + + + +

    func (*SyntheticsMobileTestConfig) SetVariables + + + +

    +
    func (o *SyntheticsMobileTestConfig) SetVariables(v []SyntheticsConfigVariable)
    +

    SetVariables gets a reference to the given []SyntheticsConfigVariable and assigns it to the Variables field. + + + + + + +

    func (*SyntheticsMobileTestConfig) UnmarshalJSON + + + +

    +
    func (o *SyntheticsMobileTestConfig) UnmarshalJSON(bytes []byte) (err error)
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + + +

    type SyntheticsMobileTestInitialApplicationArguments + + + +

    +

    SyntheticsMobileTestInitialApplicationArguments Initial application arguments for a mobile test. + +

    type SyntheticsMobileTestInitialApplicationArguments struct {
    +    // Name of the property.
    +    PropertyNames *SyntheticsMobileTestInitialApplicationArgumentsPropertyNames `json:"propertyNames,omitempty"`
    +    // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
    +    UnparsedObject       map[string]interface{} `json:"-"`
    +    AdditionalProperties map[string]interface{} `json:"-"`
    +}
    +
    + + + + + + + + + + + +

    func NewSyntheticsMobileTestInitialApplicationArguments + + + +

    +
    func NewSyntheticsMobileTestInitialApplicationArguments() *SyntheticsMobileTestInitialApplicationArguments
    +

    NewSyntheticsMobileTestInitialApplicationArguments instantiates a new SyntheticsMobileTestInitialApplicationArguments object. +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed. + + + + + +

    func NewSyntheticsMobileTestInitialApplicationArgumentsWithDefaults + + + +

    +
    func NewSyntheticsMobileTestInitialApplicationArgumentsWithDefaults() *SyntheticsMobileTestInitialApplicationArguments
    +

    NewSyntheticsMobileTestInitialApplicationArgumentsWithDefaults instantiates a new SyntheticsMobileTestInitialApplicationArguments object. +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set. + + + + + + + +

    func (*SyntheticsMobileTestInitialApplicationArguments) GetPropertyNames + + + +

    +
    func (o *SyntheticsMobileTestInitialApplicationArguments) GetPropertyNames() SyntheticsMobileTestInitialApplicationArgumentsPropertyNames
    +

    GetPropertyNames returns the PropertyNames field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestInitialApplicationArguments) GetPropertyNamesOk + + + +

    +
    func (o *SyntheticsMobileTestInitialApplicationArguments) GetPropertyNamesOk() (*SyntheticsMobileTestInitialApplicationArgumentsPropertyNames, bool)
    +

    GetPropertyNamesOk returns a tuple with the PropertyNames field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestInitialApplicationArguments) HasPropertyNames + + + +

    +
    func (o *SyntheticsMobileTestInitialApplicationArguments) HasPropertyNames() bool
    +

    HasPropertyNames returns a boolean if a field has been set. + + + + + + +

    func (SyntheticsMobileTestInitialApplicationArguments) MarshalJSON + + + +

    +
    func (o SyntheticsMobileTestInitialApplicationArguments) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the struct using spec logic. + + + + + + +

    func (*SyntheticsMobileTestInitialApplicationArguments) SetPropertyNames + + + +

    +
    func (o *SyntheticsMobileTestInitialApplicationArguments) SetPropertyNames(v SyntheticsMobileTestInitialApplicationArgumentsPropertyNames)
    +

    SetPropertyNames gets a reference to the given SyntheticsMobileTestInitialApplicationArgumentsPropertyNames and assigns it to the PropertyNames field. + + + + + + +

    func (*SyntheticsMobileTestInitialApplicationArguments) UnmarshalJSON + + + +

    +
    func (o *SyntheticsMobileTestInitialApplicationArguments) UnmarshalJSON(bytes []byte) (err error)
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + + +

    type SyntheticsMobileTestInitialApplicationArgumentsPropertyNames + + + +

    +

    SyntheticsMobileTestInitialApplicationArgumentsPropertyNames Name of the property. + +

    type SyntheticsMobileTestInitialApplicationArgumentsPropertyNames struct {
    +    // The `propertyNames` `pattern`.
    +    Pattern *string `json:"pattern,omitempty"`
    +    // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
    +    UnparsedObject       map[string]interface{} `json:"-"`
    +    AdditionalProperties map[string]interface{} `json:"-"`
    +}
    +
    + + + + + + + + + + + +

    func NewSyntheticsMobileTestInitialApplicationArgumentsPropertyNames + + + +

    +
    func NewSyntheticsMobileTestInitialApplicationArgumentsPropertyNames() *SyntheticsMobileTestInitialApplicationArgumentsPropertyNames
    +

    NewSyntheticsMobileTestInitialApplicationArgumentsPropertyNames instantiates a new SyntheticsMobileTestInitialApplicationArgumentsPropertyNames object. +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed. + + + + + +

    func NewSyntheticsMobileTestInitialApplicationArgumentsPropertyNamesWithDefaults + + + +

    +
    func NewSyntheticsMobileTestInitialApplicationArgumentsPropertyNamesWithDefaults() *SyntheticsMobileTestInitialApplicationArgumentsPropertyNames
    +

    NewSyntheticsMobileTestInitialApplicationArgumentsPropertyNamesWithDefaults instantiates a new SyntheticsMobileTestInitialApplicationArgumentsPropertyNames object. +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set. + + + + + + + +

    func (*SyntheticsMobileTestInitialApplicationArgumentsPropertyNames) GetPattern + + + +

    +
    func (o *SyntheticsMobileTestInitialApplicationArgumentsPropertyNames) GetPattern() string
    +

    GetPattern returns the Pattern field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestInitialApplicationArgumentsPropertyNames) GetPatternOk + + + +

    +
    func (o *SyntheticsMobileTestInitialApplicationArgumentsPropertyNames) GetPatternOk() (*string, bool)
    +

    GetPatternOk returns a tuple with the Pattern field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestInitialApplicationArgumentsPropertyNames) HasPattern + + + +

    +
    func (o *SyntheticsMobileTestInitialApplicationArgumentsPropertyNames) HasPattern() bool
    +

    HasPattern returns a boolean if a field has been set. + + + + + + +

    func (SyntheticsMobileTestInitialApplicationArgumentsPropertyNames) MarshalJSON + + + +

    +
    func (o SyntheticsMobileTestInitialApplicationArgumentsPropertyNames) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the struct using spec logic. + + + + + + +

    func (*SyntheticsMobileTestInitialApplicationArgumentsPropertyNames) SetPattern + + + +

    +
    func (o *SyntheticsMobileTestInitialApplicationArgumentsPropertyNames) SetPattern(v string)
    +

    SetPattern gets a reference to the given string and assigns it to the Pattern field. + + + + + + +

    func (*SyntheticsMobileTestInitialApplicationArgumentsPropertyNames) UnmarshalJSON + + + +

    +
    func (o *SyntheticsMobileTestInitialApplicationArgumentsPropertyNames) UnmarshalJSON(bytes []byte) (err error)
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + + +

    type SyntheticsMobileTestOptions + + + +

    +

    SyntheticsMobileTestOptions Object describing the extra options for a Synthetic test. + +

    type SyntheticsMobileTestOptions struct {
    +    // The `SyntheticsMobileTestOptions` `allowApplicationCrash`.
    +    AllowApplicationCrash *bool `json:"allowApplicationCrash,omitempty"`
    +    // Array of bindings used for the mobile test.
    +    Bindings []SyntheticsMobileTestBinding `json:"bindings,omitempty"`
    +    // CI/CD options for a Synthetic test.
    +    Ci *SyntheticsMobileTestCiOptions `json:"ci,omitempty"`
    +    // The `SyntheticsMobileTestOptions` `defaultStepTimeout`.
    +    DefaultStepTimeout *int32 `json:"defaultStepTimeout,omitempty"`
    +    // For mobile test, array with the different device IDs used to run the test.
    +    DeviceIds []SyntheticsMobileDeviceID `json:"device_ids,omitempty"`
    +    // The `SyntheticsMobileTestOptions` `disableAutoAcceptAlert`.
    +    DisableAutoAcceptAlert *bool `json:"disableAutoAcceptAlert,omitempty"`
    +    // Minimum amount of time in failure required to trigger an alert.
    +    MinFailureDuration *int64 `json:"min_failure_duration,omitempty"`
    +    // Mobile application for mobile synthetics test.
    +    MobileApplication *SyntheticsMobileTestsMobileApplication `json:"mobileApplication,omitempty"`
    +    // The monitor name is used for the alert title as well as for all monitor dashboard widgets and SLOs.
    +    MonitorName *string `json:"monitor_name,omitempty"`
    +    // Object containing the options for a mobile Synthetic test as a monitor
    +    // (for example, renotification).
    +    MonitorOptions *SyntheticsMobileTestOptionsMonitorOptions `json:"monitor_options,omitempty"`
    +    // Integer from 1 (high) to 5 (low) indicating alert severity.
    +    MonitorPriority *int32 `json:"monitor_priority,omitempty"`
    +    // The `SyntheticsMobileTestOptions` `noScreenshot`.
    +    NoScreenshot *bool `json:"noScreenshot,omitempty"`
    +    // A list of role identifiers that can be pulled from the Roles API, for restricting read and write access.
    +    RestrictedRoles []string `json:"restricted_roles,omitempty"`
    +    // Object describing the retry strategy to apply to a Synthetic test.
    +    Retry *SyntheticsTestOptionsRetry `json:"retry,omitempty"`
    +    // Object containing timeframes and timezone used for advanced scheduling.
    +    Scheduling *SyntheticsTestOptionsScheduling `json:"scheduling,omitempty"`
    +    // The frequency at which to run the Synthetic test (in seconds).
    +    TickEvery *int64 `json:"tick_every,omitempty"`
    +    // The `SyntheticsMobileTestOptions` `verbosity`.
    +    Verbosity *int32 `json:"verbosity,omitempty"`
    +    // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
    +    UnparsedObject       map[string]interface{} `json:"-"`
    +    AdditionalProperties map[string]interface{} `json:"-"`
    +}
    +
    + + + + + + + + + + + +

    func NewSyntheticsMobileTestOptions + + + +

    +
    func NewSyntheticsMobileTestOptions() *SyntheticsMobileTestOptions
    +

    NewSyntheticsMobileTestOptions instantiates a new SyntheticsMobileTestOptions object. +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed. + + + + + +

    func NewSyntheticsMobileTestOptionsWithDefaults + + + +

    +
    func NewSyntheticsMobileTestOptionsWithDefaults() *SyntheticsMobileTestOptions
    +

    NewSyntheticsMobileTestOptionsWithDefaults instantiates a new SyntheticsMobileTestOptions object. +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set. + + + + + + + +

    func (*SyntheticsMobileTestOptions) GetAllowApplicationCrash + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetAllowApplicationCrash() bool
    +

    GetAllowApplicationCrash returns the AllowApplicationCrash field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetAllowApplicationCrashOk + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetAllowApplicationCrashOk() (*bool, bool)
    +

    GetAllowApplicationCrashOk returns a tuple with the AllowApplicationCrash field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetBindings + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetBindings() []SyntheticsMobileTestBinding
    +

    GetBindings returns the Bindings field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetBindingsOk + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetBindingsOk() (*[]SyntheticsMobileTestBinding, bool)
    +

    GetBindingsOk returns a tuple with the Bindings field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetCi + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetCi() SyntheticsMobileTestCiOptions
    +

    GetCi returns the Ci field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetCiOk + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetCiOk() (*SyntheticsMobileTestCiOptions, bool)
    +

    GetCiOk returns a tuple with the Ci field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetDefaultStepTimeout + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetDefaultStepTimeout() int32
    +

    GetDefaultStepTimeout returns the DefaultStepTimeout field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetDefaultStepTimeoutOk + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetDefaultStepTimeoutOk() (*int32, bool)
    +

    GetDefaultStepTimeoutOk returns a tuple with the DefaultStepTimeout field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetDeviceIds + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetDeviceIds() []SyntheticsMobileDeviceID
    +

    GetDeviceIds returns the DeviceIds field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetDeviceIdsOk + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetDeviceIdsOk() (*[]SyntheticsMobileDeviceID, bool)
    +

    GetDeviceIdsOk returns a tuple with the DeviceIds field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetDisableAutoAcceptAlert + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetDisableAutoAcceptAlert() bool
    +

    GetDisableAutoAcceptAlert returns the DisableAutoAcceptAlert field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetDisableAutoAcceptAlertOk + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetDisableAutoAcceptAlertOk() (*bool, bool)
    +

    GetDisableAutoAcceptAlertOk returns a tuple with the DisableAutoAcceptAlert field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetMinFailureDuration + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetMinFailureDuration() int64
    +

    GetMinFailureDuration returns the MinFailureDuration field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetMinFailureDurationOk + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetMinFailureDurationOk() (*int64, bool)
    +

    GetMinFailureDurationOk returns a tuple with the MinFailureDuration field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetMobileApplication + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetMobileApplication() SyntheticsMobileTestsMobileApplication
    +

    GetMobileApplication returns the MobileApplication field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetMobileApplicationOk + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetMobileApplicationOk() (*SyntheticsMobileTestsMobileApplication, bool)
    +

    GetMobileApplicationOk returns a tuple with the MobileApplication field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetMonitorName + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetMonitorName() string
    +

    GetMonitorName returns the MonitorName field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetMonitorNameOk + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetMonitorNameOk() (*string, bool)
    +

    GetMonitorNameOk returns a tuple with the MonitorName field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetMonitorOptions + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetMonitorOptions() SyntheticsMobileTestOptionsMonitorOptions
    +

    GetMonitorOptions returns the MonitorOptions field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetMonitorOptionsOk + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetMonitorOptionsOk() (*SyntheticsMobileTestOptionsMonitorOptions, bool)
    +

    GetMonitorOptionsOk returns a tuple with the MonitorOptions field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetMonitorPriority + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetMonitorPriority() int32
    +

    GetMonitorPriority returns the MonitorPriority field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetMonitorPriorityOk + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetMonitorPriorityOk() (*int32, bool)
    +

    GetMonitorPriorityOk returns a tuple with the MonitorPriority field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetNoScreenshot + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetNoScreenshot() bool
    +

    GetNoScreenshot returns the NoScreenshot field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetNoScreenshotOk + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetNoScreenshotOk() (*bool, bool)
    +

    GetNoScreenshotOk returns a tuple with the NoScreenshot field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetRestrictedRoles + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetRestrictedRoles() []string
    +

    GetRestrictedRoles returns the RestrictedRoles field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetRestrictedRolesOk + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetRestrictedRolesOk() (*[]string, bool)
    +

    GetRestrictedRolesOk returns a tuple with the RestrictedRoles field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetRetry + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetRetry() SyntheticsTestOptionsRetry
    +

    GetRetry returns the Retry field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetRetryOk + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetRetryOk() (*SyntheticsTestOptionsRetry, bool)
    +

    GetRetryOk returns a tuple with the Retry field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetScheduling + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetScheduling() SyntheticsTestOptionsScheduling
    +

    GetScheduling returns the Scheduling field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetSchedulingOk + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetSchedulingOk() (*SyntheticsTestOptionsScheduling, bool)
    +

    GetSchedulingOk returns a tuple with the Scheduling field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetTickEvery + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetTickEvery() int64
    +

    GetTickEvery returns the TickEvery field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetTickEveryOk + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetTickEveryOk() (*int64, bool)
    +

    GetTickEveryOk returns a tuple with the TickEvery field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetVerbosity + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetVerbosity() int32
    +

    GetVerbosity returns the Verbosity field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestOptions) GetVerbosityOk + + + +

    +
    func (o *SyntheticsMobileTestOptions) GetVerbosityOk() (*int32, bool)
    +

    GetVerbosityOk returns a tuple with the Verbosity field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) HasAllowApplicationCrash + + + +

    +
    func (o *SyntheticsMobileTestOptions) HasAllowApplicationCrash() bool
    +

    HasAllowApplicationCrash returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) HasBindings + + + +

    +
    func (o *SyntheticsMobileTestOptions) HasBindings() bool
    +

    HasBindings returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) HasCi + + + +

    +
    func (o *SyntheticsMobileTestOptions) HasCi() bool
    +

    HasCi returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) HasDefaultStepTimeout + + + +

    +
    func (o *SyntheticsMobileTestOptions) HasDefaultStepTimeout() bool
    +

    HasDefaultStepTimeout returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) HasDeviceIds + + + +

    +
    func (o *SyntheticsMobileTestOptions) HasDeviceIds() bool
    +

    HasDeviceIds returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) HasDisableAutoAcceptAlert + + + +

    +
    func (o *SyntheticsMobileTestOptions) HasDisableAutoAcceptAlert() bool
    +

    HasDisableAutoAcceptAlert returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) HasMinFailureDuration + + + +

    +
    func (o *SyntheticsMobileTestOptions) HasMinFailureDuration() bool
    +

    HasMinFailureDuration returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) HasMobileApplication + + + +

    +
    func (o *SyntheticsMobileTestOptions) HasMobileApplication() bool
    +

    HasMobileApplication returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) HasMonitorName + + + +

    +
    func (o *SyntheticsMobileTestOptions) HasMonitorName() bool
    +

    HasMonitorName returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) HasMonitorOptions + + + +

    +
    func (o *SyntheticsMobileTestOptions) HasMonitorOptions() bool
    +

    HasMonitorOptions returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) HasMonitorPriority + + + +

    +
    func (o *SyntheticsMobileTestOptions) HasMonitorPriority() bool
    +

    HasMonitorPriority returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) HasNoScreenshot + + + +

    +
    func (o *SyntheticsMobileTestOptions) HasNoScreenshot() bool
    +

    HasNoScreenshot returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) HasRestrictedRoles + + + +

    +
    func (o *SyntheticsMobileTestOptions) HasRestrictedRoles() bool
    +

    HasRestrictedRoles returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) HasRetry + + + +

    +
    func (o *SyntheticsMobileTestOptions) HasRetry() bool
    +

    HasRetry returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) HasScheduling + + + +

    +
    func (o *SyntheticsMobileTestOptions) HasScheduling() bool
    +

    HasScheduling returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) HasTickEvery + + + +

    +
    func (o *SyntheticsMobileTestOptions) HasTickEvery() bool
    +

    HasTickEvery returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTestOptions) HasVerbosity + + + +

    +
    func (o *SyntheticsMobileTestOptions) HasVerbosity() bool
    +

    HasVerbosity returns a boolean if a field has been set. + + + + + + +

    func (SyntheticsMobileTestOptions) MarshalJSON + + + +

    +
    func (o SyntheticsMobileTestOptions) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the struct using spec logic. + + + + + + +

    func (*SyntheticsMobileTestOptions) SetAllowApplicationCrash + + + +

    +
    func (o *SyntheticsMobileTestOptions) SetAllowApplicationCrash(v bool)
    +

    SetAllowApplicationCrash gets a reference to the given bool and assigns it to the AllowApplicationCrash field. + + + + + + +

    func (*SyntheticsMobileTestOptions) SetBindings + + + +

    +
    func (o *SyntheticsMobileTestOptions) SetBindings(v []SyntheticsMobileTestBinding)
    +

    SetBindings gets a reference to the given []SyntheticsMobileTestBinding and assigns it to the Bindings field. + + + + + + +

    func (*SyntheticsMobileTestOptions) SetCi + + + +

    +
    func (o *SyntheticsMobileTestOptions) SetCi(v SyntheticsMobileTestCiOptions)
    +

    SetCi gets a reference to the given SyntheticsMobileTestCiOptions and assigns it to the Ci field. + + + + + + +

    func (*SyntheticsMobileTestOptions) SetDefaultStepTimeout + + + +

    +
    func (o *SyntheticsMobileTestOptions) SetDefaultStepTimeout(v int32)
    +

    SetDefaultStepTimeout gets a reference to the given int32 and assigns it to the DefaultStepTimeout field. + + + + + + +

    func (*SyntheticsMobileTestOptions) SetDeviceIds + + + +

    +
    func (o *SyntheticsMobileTestOptions) SetDeviceIds(v []SyntheticsMobileDeviceID)
    +

    SetDeviceIds gets a reference to the given []SyntheticsMobileDeviceID and assigns it to the DeviceIds field. + + + + + + +

    func (*SyntheticsMobileTestOptions) SetDisableAutoAcceptAlert + + + +

    +
    func (o *SyntheticsMobileTestOptions) SetDisableAutoAcceptAlert(v bool)
    +

    SetDisableAutoAcceptAlert gets a reference to the given bool and assigns it to the DisableAutoAcceptAlert field. + + + + + + +

    func (*SyntheticsMobileTestOptions) SetMinFailureDuration + + + +

    +
    func (o *SyntheticsMobileTestOptions) SetMinFailureDuration(v int64)
    +

    SetMinFailureDuration gets a reference to the given int64 and assigns it to the MinFailureDuration field. + + + + + + +

    func (*SyntheticsMobileTestOptions) SetMobileApplication + + + +

    +
    func (o *SyntheticsMobileTestOptions) SetMobileApplication(v SyntheticsMobileTestsMobileApplication)
    +

    SetMobileApplication gets a reference to the given SyntheticsMobileTestsMobileApplication and assigns it to the MobileApplication field. + + + + + + +

    func (*SyntheticsMobileTestOptions) SetMonitorName + + + +

    +
    func (o *SyntheticsMobileTestOptions) SetMonitorName(v string)
    +

    SetMonitorName gets a reference to the given string and assigns it to the MonitorName field. + + + + + + +

    func (*SyntheticsMobileTestOptions) SetMonitorOptions + + + +

    +
    func (o *SyntheticsMobileTestOptions) SetMonitorOptions(v SyntheticsMobileTestOptionsMonitorOptions)
    +

    SetMonitorOptions gets a reference to the given SyntheticsMobileTestOptionsMonitorOptions and assigns it to the MonitorOptions field. + + + + + + +

    func (*SyntheticsMobileTestOptions) SetMonitorPriority + + + +

    +
    func (o *SyntheticsMobileTestOptions) SetMonitorPriority(v int32)
    +

    SetMonitorPriority gets a reference to the given int32 and assigns it to the MonitorPriority field. + + + + + + +

    func (*SyntheticsMobileTestOptions) SetNoScreenshot + + + +

    +
    func (o *SyntheticsMobileTestOptions) SetNoScreenshot(v bool)
    +

    SetNoScreenshot gets a reference to the given bool and assigns it to the NoScreenshot field. + + + + + + +

    func (*SyntheticsMobileTestOptions) SetRestrictedRoles + + + +

    +
    func (o *SyntheticsMobileTestOptions) SetRestrictedRoles(v []string)
    +

    SetRestrictedRoles gets a reference to the given []string and assigns it to the RestrictedRoles field. + + + + + + +

    func (*SyntheticsMobileTestOptions) SetRetry + + + +

    +
    func (o *SyntheticsMobileTestOptions) SetRetry(v SyntheticsTestOptionsRetry)
    +

    SetRetry gets a reference to the given SyntheticsTestOptionsRetry and assigns it to the Retry field. + + + + + + +

    func (*SyntheticsMobileTestOptions) SetScheduling + + + +

    +
    func (o *SyntheticsMobileTestOptions) SetScheduling(v SyntheticsTestOptionsScheduling)
    +

    SetScheduling gets a reference to the given SyntheticsTestOptionsScheduling and assigns it to the Scheduling field. + + + + + + +

    func (*SyntheticsMobileTestOptions) SetTickEvery + + + +

    +
    func (o *SyntheticsMobileTestOptions) SetTickEvery(v int64)
    +

    SetTickEvery gets a reference to the given int64 and assigns it to the TickEvery field. + + + + + + +

    func (*SyntheticsMobileTestOptions) SetVerbosity + + + +

    +
    func (o *SyntheticsMobileTestOptions) SetVerbosity(v int32)
    +

    SetVerbosity gets a reference to the given int32 and assigns it to the Verbosity field. + + + + + + +

    func (*SyntheticsMobileTestOptions) UnmarshalJSON + + + +

    +
    func (o *SyntheticsMobileTestOptions) UnmarshalJSON(bytes []byte) (err error)
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + + +

    type SyntheticsMobileTestOptionsMonitorOptions + + + +

    +

    SyntheticsMobileTestOptionsMonitorOptions Object containing the options for a mobile Synthetic test as a monitor +(for example, renotification). + +

    type SyntheticsMobileTestOptionsMonitorOptions struct {
    +    // Message to include in the escalation notification.
    +    EscalationMessage *string `json:"escalation_message,omitempty"`
    +    // The definition of `SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName` object.
    +    NotificationPresetName *SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName `json:"notification_preset_name,omitempty"`
    +    // Time interval before renotifying if the test is still failing
    +    // (in minutes).
    +    RenotifyInterval *int64 `json:"renotify_interval,omitempty"`
    +    // The `SyntheticsMobileTestOptionsMonitorOptions` `renotify_occurrences`.
    +    RenotifyOccurrences *int64 `json:"renotify_occurrences,omitempty"`
    +    // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
    +    UnparsedObject       map[string]interface{} `json:"-"`
    +    AdditionalProperties map[string]interface{} `json:"-"`
    +}
    +
    + + + + + + + + + + + +

    func NewSyntheticsMobileTestOptionsMonitorOptions + + + +

    +
    func NewSyntheticsMobileTestOptionsMonitorOptions() *SyntheticsMobileTestOptionsMonitorOptions
    +

    NewSyntheticsMobileTestOptionsMonitorOptions instantiates a new SyntheticsMobileTestOptionsMonitorOptions object. +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed. + + + + + +

    func NewSyntheticsMobileTestOptionsMonitorOptionsWithDefaults + + + +

    +
    func NewSyntheticsMobileTestOptionsMonitorOptionsWithDefaults() *SyntheticsMobileTestOptionsMonitorOptions
    +

    NewSyntheticsMobileTestOptionsMonitorOptionsWithDefaults instantiates a new SyntheticsMobileTestOptionsMonitorOptions object. +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set. + + + + + + + +

    func (*SyntheticsMobileTestOptionsMonitorOptions) GetEscalationMessage + + + +

    +
    func (o *SyntheticsMobileTestOptionsMonitorOptions) GetEscalationMessage() string
    +

    GetEscalationMessage returns the EscalationMessage field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestOptionsMonitorOptions) GetEscalationMessageOk + + + +

    +
    func (o *SyntheticsMobileTestOptionsMonitorOptions) GetEscalationMessageOk() (*string, bool)
    +

    GetEscalationMessageOk returns a tuple with the EscalationMessage field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestOptionsMonitorOptions) GetNotificationPresetName + + + +

    +
    func (o *SyntheticsMobileTestOptionsMonitorOptions) GetNotificationPresetName() SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName
    +

    GetNotificationPresetName returns the NotificationPresetName field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestOptionsMonitorOptions) GetNotificationPresetNameOk + + + +

    +
    func (o *SyntheticsMobileTestOptionsMonitorOptions) GetNotificationPresetNameOk() (*SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName, bool)
    +

    GetNotificationPresetNameOk returns a tuple with the NotificationPresetName field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestOptionsMonitorOptions) GetRenotifyInterval + + + +

    +
    func (o *SyntheticsMobileTestOptionsMonitorOptions) GetRenotifyInterval() int64
    +

    GetRenotifyInterval returns the RenotifyInterval field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestOptionsMonitorOptions) GetRenotifyIntervalOk + + + +

    +
    func (o *SyntheticsMobileTestOptionsMonitorOptions) GetRenotifyIntervalOk() (*int64, bool)
    +

    GetRenotifyIntervalOk returns a tuple with the RenotifyInterval field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestOptionsMonitorOptions) GetRenotifyOccurrences + + + +

    +
    func (o *SyntheticsMobileTestOptionsMonitorOptions) GetRenotifyOccurrences() int64
    +

    GetRenotifyOccurrences returns the RenotifyOccurrences field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestOptionsMonitorOptions) GetRenotifyOccurrencesOk + + + +

    +
    func (o *SyntheticsMobileTestOptionsMonitorOptions) GetRenotifyOccurrencesOk() (*int64, bool)
    +

    GetRenotifyOccurrencesOk returns a tuple with the RenotifyOccurrences field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestOptionsMonitorOptions) HasEscalationMessage + + + +

    +
    func (o *SyntheticsMobileTestOptionsMonitorOptions) HasEscalationMessage() bool
    +

    HasEscalationMessage returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTestOptionsMonitorOptions) HasNotificationPresetName + + + +

    +
    func (o *SyntheticsMobileTestOptionsMonitorOptions) HasNotificationPresetName() bool
    +

    HasNotificationPresetName returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTestOptionsMonitorOptions) HasRenotifyInterval + + + +

    +
    func (o *SyntheticsMobileTestOptionsMonitorOptions) HasRenotifyInterval() bool
    +

    HasRenotifyInterval returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTestOptionsMonitorOptions) HasRenotifyOccurrences + + + +

    +
    func (o *SyntheticsMobileTestOptionsMonitorOptions) HasRenotifyOccurrences() bool
    +

    HasRenotifyOccurrences returns a boolean if a field has been set. + + + + + + +

    func (SyntheticsMobileTestOptionsMonitorOptions) MarshalJSON + + + +

    +
    func (o SyntheticsMobileTestOptionsMonitorOptions) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the struct using spec logic. + + + + + + +

    func (*SyntheticsMobileTestOptionsMonitorOptions) SetEscalationMessage + + + +

    +
    func (o *SyntheticsMobileTestOptionsMonitorOptions) SetEscalationMessage(v string)
    +

    SetEscalationMessage gets a reference to the given string and assigns it to the EscalationMessage field. + + + + + + +

    func (*SyntheticsMobileTestOptionsMonitorOptions) SetNotificationPresetName + + + +

    +
    func (o *SyntheticsMobileTestOptionsMonitorOptions) SetNotificationPresetName(v SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName)
    +

    SetNotificationPresetName gets a reference to the given SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName and assigns it to the NotificationPresetName field. + + + + + + +

    func (*SyntheticsMobileTestOptionsMonitorOptions) SetRenotifyInterval + + + +

    +
    func (o *SyntheticsMobileTestOptionsMonitorOptions) SetRenotifyInterval(v int64)
    +

    SetRenotifyInterval gets a reference to the given int64 and assigns it to the RenotifyInterval field. + + + + + + +

    func (*SyntheticsMobileTestOptionsMonitorOptions) SetRenotifyOccurrences + + + +

    +
    func (o *SyntheticsMobileTestOptionsMonitorOptions) SetRenotifyOccurrences(v int64)
    +

    SetRenotifyOccurrences gets a reference to the given int64 and assigns it to the RenotifyOccurrences field. + + + + + + +

    func (*SyntheticsMobileTestOptionsMonitorOptions) UnmarshalJSON + + + +

    +
    func (o *SyntheticsMobileTestOptionsMonitorOptions) UnmarshalJSON(bytes []byte) (err error)
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + + +

    type SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName + + + +

    +

    SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName The definition of `SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName` object. + +

    type SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName string
    + + +

    List of SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName. + +

    const (
    +    SYNTHETICSMOBILETESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_SHOW_ALL     SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName = "show_all"
    +    SYNTHETICSMOBILETESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_HIDE_ALL     SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName = "hide_all"
    +    SYNTHETICSMOBILETESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_HIDE_QUERY   SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName = "hide_query"
    +    SYNTHETICSMOBILETESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_HIDE_HANDLES SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName = "hide_handles"
    +)
    + + + + + + + + + + +

    func NewSyntheticsMobileTestOptionsMonitorOptionsNotificationPresetNameFromValue + + + +

    +
    func NewSyntheticsMobileTestOptionsMonitorOptionsNotificationPresetNameFromValue(v string) (*SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName, error)
    +

    NewSyntheticsMobileTestOptionsMonitorOptionsNotificationPresetNameFromValue returns a pointer to a valid SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName +for the value passed as argument, or an error if the value passed is not allowed by the enum. + + + + + + + +

    func (*SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName) GetAllowedValues + + + +

    +
    func (v *SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName) GetAllowedValues() []SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName
    +

    GetAllowedValues reeturns the list of possible values. + + + + + + +

    func (SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName) IsValid + + + +

    +
    func (v SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName) IsValid() bool
    +

    IsValid return true if the value is valid for the enum, false otherwise. + + + + + + +

    func (SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName) Ptr + + + +

    +
    func (v SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName) Ptr() *SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName
    +

    Ptr returns reference to SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName value. + + + + + + +

    func (*SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName) UnmarshalJSON + + + +

    +
    func (v *SyntheticsMobileTestOptionsMonitorOptionsNotificationPresetName) UnmarshalJSON(src []byte) error
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + + +

    type SyntheticsMobileTestType + + + +

    +

    SyntheticsMobileTestType Type of the Synthetic test, `mobile`. + +

    type SyntheticsMobileTestType string
    + + +

    List of SyntheticsMobileTestType. + +

    const (
    +    SYNTHETICSMOBILETESTTYPE_MOBILE SyntheticsMobileTestType = "mobile"
    +)
    + + + + + + + + + + +

    func NewSyntheticsMobileTestTypeFromValue + + + +

    +
    func NewSyntheticsMobileTestTypeFromValue(v string) (*SyntheticsMobileTestType, error)
    +

    NewSyntheticsMobileTestTypeFromValue returns a pointer to a valid SyntheticsMobileTestType +for the value passed as argument, or an error if the value passed is not allowed by the enum. + + + + + + + +

    func (*SyntheticsMobileTestType) GetAllowedValues + + + +

    +
    func (v *SyntheticsMobileTestType) GetAllowedValues() []SyntheticsMobileTestType
    +

    GetAllowedValues reeturns the list of possible values. + + + + + + +

    func (SyntheticsMobileTestType) IsValid + + + +

    +
    func (v SyntheticsMobileTestType) IsValid() bool
    +

    IsValid return true if the value is valid for the enum, false otherwise. + + + + + + +

    func (SyntheticsMobileTestType) Ptr + + + +

    +
    func (v SyntheticsMobileTestType) Ptr() *SyntheticsMobileTestType
    +

    Ptr returns reference to SyntheticsMobileTestType value. + + + + + + +

    func (*SyntheticsMobileTestType) UnmarshalJSON + + + +

    +
    func (v *SyntheticsMobileTestType) UnmarshalJSON(src []byte) error
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + + +

    type SyntheticsMobileTestsMobileApplication + + + +

    +

    SyntheticsMobileTestsMobileApplication Mobile application for mobile synthetics test. + +

    type SyntheticsMobileTestsMobileApplication struct {
    +    // Application ID of the mobile application.
    +    ApplicationId *string `json:"applicationId,omitempty"`
    +    // Reference ID of the mobile application.
    +    ReferenceId *string `json:"referenceId,omitempty"`
    +    // Reference type for the mobile application for a mobile synthetics test.
    +    ReferenceType *SyntheticsMobileTestsMobileApplicationReferenceType `json:"referenceType,omitempty"`
    +    // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
    +    UnparsedObject       map[string]interface{} `json:"-"`
    +    AdditionalProperties map[string]interface{} `json:"-"`
    +}
    +
    + + + + + + + + + + + +

    func NewSyntheticsMobileTestsMobileApplication + + + +

    +
    func NewSyntheticsMobileTestsMobileApplication() *SyntheticsMobileTestsMobileApplication
    +

    NewSyntheticsMobileTestsMobileApplication instantiates a new SyntheticsMobileTestsMobileApplication object. +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed. + + + + + +

    func NewSyntheticsMobileTestsMobileApplicationWithDefaults + + + +

    +
    func NewSyntheticsMobileTestsMobileApplicationWithDefaults() *SyntheticsMobileTestsMobileApplication
    +

    NewSyntheticsMobileTestsMobileApplicationWithDefaults instantiates a new SyntheticsMobileTestsMobileApplication object. +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set. + + + + + + + +

    func (*SyntheticsMobileTestsMobileApplication) GetApplicationId + + + +

    +
    func (o *SyntheticsMobileTestsMobileApplication) GetApplicationId() string
    +

    GetApplicationId returns the ApplicationId field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestsMobileApplication) GetApplicationIdOk + + + +

    +
    func (o *SyntheticsMobileTestsMobileApplication) GetApplicationIdOk() (*string, bool)
    +

    GetApplicationIdOk returns a tuple with the ApplicationId field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestsMobileApplication) GetReferenceId + + + +

    +
    func (o *SyntheticsMobileTestsMobileApplication) GetReferenceId() string
    +

    GetReferenceId returns the ReferenceId field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestsMobileApplication) GetReferenceIdOk + + + +

    +
    func (o *SyntheticsMobileTestsMobileApplication) GetReferenceIdOk() (*string, bool)
    +

    GetReferenceIdOk returns a tuple with the ReferenceId field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestsMobileApplication) GetReferenceType + + + +

    +
    func (o *SyntheticsMobileTestsMobileApplication) GetReferenceType() SyntheticsMobileTestsMobileApplicationReferenceType
    +

    GetReferenceType returns the ReferenceType field value if set, zero value otherwise. + + + + + + +

    func (*SyntheticsMobileTestsMobileApplication) GetReferenceTypeOk + + + +

    +
    func (o *SyntheticsMobileTestsMobileApplication) GetReferenceTypeOk() (*SyntheticsMobileTestsMobileApplicationReferenceType, bool)
    +

    GetReferenceTypeOk returns a tuple with the ReferenceType field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SyntheticsMobileTestsMobileApplication) HasApplicationId + + + +

    +
    func (o *SyntheticsMobileTestsMobileApplication) HasApplicationId() bool
    +

    HasApplicationId returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTestsMobileApplication) HasReferenceId + + + +

    +
    func (o *SyntheticsMobileTestsMobileApplication) HasReferenceId() bool
    +

    HasReferenceId returns a boolean if a field has been set. + + + + + + +

    func (*SyntheticsMobileTestsMobileApplication) HasReferenceType + + + +

    +
    func (o *SyntheticsMobileTestsMobileApplication) HasReferenceType() bool
    +

    HasReferenceType returns a boolean if a field has been set. + + + + + + +

    func (SyntheticsMobileTestsMobileApplication) MarshalJSON + + + +

    +
    func (o SyntheticsMobileTestsMobileApplication) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the struct using spec logic. + + + + + + +

    func (*SyntheticsMobileTestsMobileApplication) SetApplicationId + + + +

    +
    func (o *SyntheticsMobileTestsMobileApplication) SetApplicationId(v string)
    +

    SetApplicationId gets a reference to the given string and assigns it to the ApplicationId field. + + + + + + +

    func (*SyntheticsMobileTestsMobileApplication) SetReferenceId + + + +

    +
    func (o *SyntheticsMobileTestsMobileApplication) SetReferenceId(v string)
    +

    SetReferenceId gets a reference to the given string and assigns it to the ReferenceId field. + + + + + + +

    func (*SyntheticsMobileTestsMobileApplication) SetReferenceType + + + +

    +
    func (o *SyntheticsMobileTestsMobileApplication) SetReferenceType(v SyntheticsMobileTestsMobileApplicationReferenceType)
    +

    SetReferenceType gets a reference to the given SyntheticsMobileTestsMobileApplicationReferenceType and assigns it to the ReferenceType field. + + + + + + +

    func (*SyntheticsMobileTestsMobileApplication) UnmarshalJSON + + + +

    +
    func (o *SyntheticsMobileTestsMobileApplication) UnmarshalJSON(bytes []byte) (err error)
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + + +

    type SyntheticsMobileTestsMobileApplicationReferenceType + + + +

    +

    SyntheticsMobileTestsMobileApplicationReferenceType Reference type for the mobile application for a mobile synthetics test. + +

    type SyntheticsMobileTestsMobileApplicationReferenceType string
    + + +

    List of SyntheticsMobileTestsMobileApplicationReferenceType. + +

    const (
    +    SYNTHETICSMOBILETESTSMOBILEAPPLICATIONREFERENCETYPE_LATEST  SyntheticsMobileTestsMobileApplicationReferenceType = "latest"
    +    SYNTHETICSMOBILETESTSMOBILEAPPLICATIONREFERENCETYPE_VERSION SyntheticsMobileTestsMobileApplicationReferenceType = "version"
    +)
    + + + + + + + + + + +

    func NewSyntheticsMobileTestsMobileApplicationReferenceTypeFromValue + + + +

    +
    func NewSyntheticsMobileTestsMobileApplicationReferenceTypeFromValue(v string) (*SyntheticsMobileTestsMobileApplicationReferenceType, error)
    +

    NewSyntheticsMobileTestsMobileApplicationReferenceTypeFromValue returns a pointer to a valid SyntheticsMobileTestsMobileApplicationReferenceType +for the value passed as argument, or an error if the value passed is not allowed by the enum. + + + + + + + +

    func (*SyntheticsMobileTestsMobileApplicationReferenceType) GetAllowedValues + + + +

    +
    func (v *SyntheticsMobileTestsMobileApplicationReferenceType) GetAllowedValues() []SyntheticsMobileTestsMobileApplicationReferenceType
    +

    GetAllowedValues reeturns the list of possible values. + + + + + + +

    func (SyntheticsMobileTestsMobileApplicationReferenceType) IsValid + + + +

    +
    func (v SyntheticsMobileTestsMobileApplicationReferenceType) IsValid() bool
    +

    IsValid return true if the value is valid for the enum, false otherwise. + + + + + + +

    func (SyntheticsMobileTestsMobileApplicationReferenceType) Ptr + + + +

    +
    func (v SyntheticsMobileTestsMobileApplicationReferenceType) Ptr() *SyntheticsMobileTestsMobileApplicationReferenceType
    +

    Ptr returns reference to SyntheticsMobileTestsMobileApplicationReferenceType value. + + + + + + +

    func (*SyntheticsMobileTestsMobileApplicationReferenceType) UnmarshalJSON + + + +

    +
    func (v *SyntheticsMobileTestsMobileApplicationReferenceType) UnmarshalJSON(src []byte) error
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + +

    type SyntheticsParsingOptions diff --git a/src/github.com/DataDog/datadog-api-client-go/v2/api/datadog/index.html b/src/github.com/DataDog/datadog-api-client-go/v2/api/datadog/index.html index 6627d222177..60daad362ec 100644 --- a/src/github.com/DataDog/datadog-api-client-go/v2/api/datadog/index.html +++ b/src/github.com/DataDog/datadog-api-client-go/v2/api/datadog/index.html @@ -79,7 +79,7 @@

    14700 - 2024-10-01 19:55:02.220763565 +0000 UTC + 2024-10-02 12:58:25.808223231 +0000 UTC @@ -88,7 +88,7 @@

    18056 - 2024-10-01 19:55:02.220763565 +0000 UTC + 2024-10-02 12:58:25.808223231 +0000 UTC @@ -97,7 +97,7 @@

    622 - 2024-10-01 19:55:02.220763565 +0000 UTC + 2024-10-02 12:58:25.808223231 +0000 UTC @@ -106,7 +106,7 @@

    633 - 2024-10-01 19:55:02.220763565 +0000 UTC + 2024-10-02 12:58:25.808223231 +0000 UTC @@ -115,7 +115,7 @@

    405 - 2024-10-01 19:55:02.220763565 +0000 UTC + 2024-10-02 12:58:25.808223231 +0000 UTC @@ -124,7 +124,7 @@

    12924 - 2024-10-01 19:55:02.220763565 +0000 UTC + 2024-10-02 12:58:25.808223231 +0000 UTC @@ -133,7 +133,7 @@

    589 - 2024-10-01 19:55:02.220763565 +0000 UTC + 2024-10-02 12:58:25.808223231 +0000 UTC diff --git a/src/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/api_synthetics.go.html b/src/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/api_synthetics.go.html index 2a506bd233f..2f85dfd605b 100644 --- a/src/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/api_synthetics.go.html +++ b/src/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/api_synthetics.go.html @@ -366,1991 +366,2210 @@

    309   return localVarReturnValue, localVarHTTPResponse, nil 310  } 311   - 312  // DeleteGlobalVariable Delete a global variable. - 313  // Delete a Synthetic global variable. - 314  func (a *SyntheticsApi) DeleteGlobalVariable(ctx _context.Context, variableId string) (*_nethttp.Response, error) { + 312  // CreateSyntheticsMobileTest Create a mobile test. + 313  // Create a Synthetic mobile test. + 314  func (a *SyntheticsApi) CreateSyntheticsMobileTest(ctx _context.Context, body SyntheticsMobileTest) (SyntheticsMobileTest, *_nethttp.Response, error) { 315   var ( - 316   localVarHTTPMethod = _nethttp.MethodDelete - 317   localVarPostBody interface{} - 318   ) - 319   - 320   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.DeleteGlobalVariable") - 321   if err != nil { - 322   return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} - 323   } - 324   - 325   localVarPath := localBasePath + "/api/v1/synthetics/variables/{variable_id}" - 326   localVarPath = strings.Replace(localVarPath, "{"+"variable_id"+"}", _neturl.PathEscape(datadog.ParameterToString(variableId, "")), -1) + 316   localVarHTTPMethod = _nethttp.MethodPost + 317   localVarPostBody interface{} + 318   localVarReturnValue SyntheticsMobileTest + 319   ) + 320   + 321   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.CreateSyntheticsMobileTest") + 322   if err != nil { + 323   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 324   } + 325   + 326   localVarPath := localBasePath + "/api/v1/synthetics/tests/mobile" 327   328   localVarHeaderParams := make(map[string]string) 329   localVarQueryParams := _neturl.Values{} 330   localVarFormParams := _neturl.Values{} - 331   localVarHeaderParams["Accept"] = "*/*" - 332   - 333   datadog.SetAuthKeys( - 334   ctx, - 335   &localVarHeaderParams, - 336   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 337   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 338   ) - 339   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 340   if err != nil { - 341   return nil, err - 342   } - 343   - 344   localVarHTTPResponse, err := a.Client.CallAPI(req) - 345   if err != nil || localVarHTTPResponse == nil { - 346   return localVarHTTPResponse, err - 347   } - 348   - 349   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 350   if err != nil { - 351   return localVarHTTPResponse, err - 352   } - 353   - 354   if localVarHTTPResponse.StatusCode >= 300 { - 355   newErr := datadog.GenericOpenAPIError{ - 356   ErrorBody: localVarBody, - 357   ErrorMessage: localVarHTTPResponse.Status, - 358   } - 359   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { - 360   var v APIErrorResponse - 361   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 362   if err != nil { - 363   return localVarHTTPResponse, newErr - 364   } - 365   newErr.ErrorModel = v - 366   } - 367   return localVarHTTPResponse, newErr - 368   } - 369   - 370   return localVarHTTPResponse, nil - 371  } + 331   localVarHeaderParams["Content-Type"] = "application/json" + 332   localVarHeaderParams["Accept"] = "application/json" + 333   + 334   // body params + 335   localVarPostBody = &body + 336   datadog.SetAuthKeys( + 337   ctx, + 338   &localVarHeaderParams, + 339   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 340   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 341   ) + 342   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 343   if err != nil { + 344   return localVarReturnValue, nil, err + 345   } + 346   + 347   localVarHTTPResponse, err := a.Client.CallAPI(req) + 348   if err != nil || localVarHTTPResponse == nil { + 349   return localVarReturnValue, localVarHTTPResponse, err + 350   } + 351   + 352   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 353   if err != nil { + 354   return localVarReturnValue, localVarHTTPResponse, err + 355   } + 356   + 357   if localVarHTTPResponse.StatusCode >= 300 { + 358   newErr := datadog.GenericOpenAPIError{ + 359   ErrorBody: localVarBody, + 360   ErrorMessage: localVarHTTPResponse.Status, + 361   } + 362   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 402 || localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 429 { + 363   var v APIErrorResponse + 364   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 365   if err != nil { + 366   return localVarReturnValue, localVarHTTPResponse, newErr + 367   } + 368   newErr.ErrorModel = v + 369   } + 370   return localVarReturnValue, localVarHTTPResponse, newErr + 371   } 372   - 373  // DeletePrivateLocation Delete a private location. - 374  // Delete a Synthetic private location. - 375  func (a *SyntheticsApi) DeletePrivateLocation(ctx _context.Context, locationId string) (*_nethttp.Response, error) { - 376   var ( - 377   localVarHTTPMethod = _nethttp.MethodDelete - 378   localVarPostBody interface{} - 379   ) - 380   - 381   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.DeletePrivateLocation") - 382   if err != nil { - 383   return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} - 384   } - 385   - 386   localVarPath := localBasePath + "/api/v1/synthetics/private-locations/{location_id}" - 387   localVarPath = strings.Replace(localVarPath, "{"+"location_id"+"}", _neturl.PathEscape(datadog.ParameterToString(locationId, "")), -1) - 388   - 389   localVarHeaderParams := make(map[string]string) - 390   localVarQueryParams := _neturl.Values{} - 391   localVarFormParams := _neturl.Values{} - 392   localVarHeaderParams["Accept"] = "*/*" - 393   - 394   datadog.SetAuthKeys( - 395   ctx, - 396   &localVarHeaderParams, - 397   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 398   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 399   ) - 400   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 401   if err != nil { - 402   return nil, err - 403   } - 404   - 405   localVarHTTPResponse, err := a.Client.CallAPI(req) - 406   if err != nil || localVarHTTPResponse == nil { - 407   return localVarHTTPResponse, err - 408   } - 409   - 410   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 411   if err != nil { - 412   return localVarHTTPResponse, err - 413   } - 414   - 415   if localVarHTTPResponse.StatusCode >= 300 { - 416   newErr := datadog.GenericOpenAPIError{ - 417   ErrorBody: localVarBody, - 418   ErrorMessage: localVarHTTPResponse.Status, - 419   } - 420   if localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { - 421   var v APIErrorResponse - 422   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 423   if err != nil { - 424   return localVarHTTPResponse, newErr - 425   } - 426   newErr.ErrorModel = v - 427   } - 428   return localVarHTTPResponse, newErr - 429   } - 430   - 431   return localVarHTTPResponse, nil - 432  } - 433   - 434  // DeleteTests Delete tests. - 435  // Delete multiple Synthetic tests by ID. - 436  func (a *SyntheticsApi) DeleteTests(ctx _context.Context, body SyntheticsDeleteTestsPayload) (SyntheticsDeleteTestsResponse, *_nethttp.Response, error) { - 437   var ( - 438   localVarHTTPMethod = _nethttp.MethodPost - 439   localVarPostBody interface{} - 440   localVarReturnValue SyntheticsDeleteTestsResponse - 441   ) + 373   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 374   if err != nil { + 375   newErr := datadog.GenericOpenAPIError{ + 376   ErrorBody: localVarBody, + 377   ErrorMessage: err.Error(), + 378   } + 379   return localVarReturnValue, localVarHTTPResponse, newErr + 380   } + 381   + 382   return localVarReturnValue, localVarHTTPResponse, nil + 383  } + 384   + 385  // DeleteGlobalVariable Delete a global variable. + 386  // Delete a Synthetic global variable. + 387  func (a *SyntheticsApi) DeleteGlobalVariable(ctx _context.Context, variableId string) (*_nethttp.Response, error) { + 388   var ( + 389   localVarHTTPMethod = _nethttp.MethodDelete + 390   localVarPostBody interface{} + 391   ) + 392   + 393   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.DeleteGlobalVariable") + 394   if err != nil { + 395   return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 396   } + 397   + 398   localVarPath := localBasePath + "/api/v1/synthetics/variables/{variable_id}" + 399   localVarPath = strings.Replace(localVarPath, "{"+"variable_id"+"}", _neturl.PathEscape(datadog.ParameterToString(variableId, "")), -1) + 400   + 401   localVarHeaderParams := make(map[string]string) + 402   localVarQueryParams := _neturl.Values{} + 403   localVarFormParams := _neturl.Values{} + 404   localVarHeaderParams["Accept"] = "*/*" + 405   + 406   datadog.SetAuthKeys( + 407   ctx, + 408   &localVarHeaderParams, + 409   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 410   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 411   ) + 412   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 413   if err != nil { + 414   return nil, err + 415   } + 416   + 417   localVarHTTPResponse, err := a.Client.CallAPI(req) + 418   if err != nil || localVarHTTPResponse == nil { + 419   return localVarHTTPResponse, err + 420   } + 421   + 422   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 423   if err != nil { + 424   return localVarHTTPResponse, err + 425   } + 426   + 427   if localVarHTTPResponse.StatusCode >= 300 { + 428   newErr := datadog.GenericOpenAPIError{ + 429   ErrorBody: localVarBody, + 430   ErrorMessage: localVarHTTPResponse.Status, + 431   } + 432   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 433   var v APIErrorResponse + 434   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 435   if err != nil { + 436   return localVarHTTPResponse, newErr + 437   } + 438   newErr.ErrorModel = v + 439   } + 440   return localVarHTTPResponse, newErr + 441   } 442   - 443   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.DeleteTests") - 444   if err != nil { - 445   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} - 446   } - 447   - 448   localVarPath := localBasePath + "/api/v1/synthetics/tests/delete" - 449   - 450   localVarHeaderParams := make(map[string]string) - 451   localVarQueryParams := _neturl.Values{} - 452   localVarFormParams := _neturl.Values{} - 453   localVarHeaderParams["Content-Type"] = "application/json" - 454   localVarHeaderParams["Accept"] = "application/json" - 455   - 456   // body params - 457   localVarPostBody = &body - 458   datadog.SetAuthKeys( - 459   ctx, - 460   &localVarHeaderParams, - 461   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 462   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 463   ) - 464   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 465   if err != nil { - 466   return localVarReturnValue, nil, err - 467   } - 468   - 469   localVarHTTPResponse, err := a.Client.CallAPI(req) - 470   if err != nil || localVarHTTPResponse == nil { - 471   return localVarReturnValue, localVarHTTPResponse, err - 472   } - 473   - 474   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 475   if err != nil { - 476   return localVarReturnValue, localVarHTTPResponse, err - 477   } - 478   - 479   if localVarHTTPResponse.StatusCode >= 300 { - 480   newErr := datadog.GenericOpenAPIError{ - 481   ErrorBody: localVarBody, - 482   ErrorMessage: localVarHTTPResponse.Status, - 483   } - 484   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { - 485   var v APIErrorResponse - 486   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 487   if err != nil { - 488   return localVarReturnValue, localVarHTTPResponse, newErr - 489   } - 490   newErr.ErrorModel = v - 491   } - 492   return localVarReturnValue, localVarHTTPResponse, newErr - 493   } - 494   - 495   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 496   if err != nil { - 497   newErr := datadog.GenericOpenAPIError{ - 498   ErrorBody: localVarBody, - 499   ErrorMessage: err.Error(), + 443   return localVarHTTPResponse, nil + 444  } + 445   + 446  // DeletePrivateLocation Delete a private location. + 447  // Delete a Synthetic private location. + 448  func (a *SyntheticsApi) DeletePrivateLocation(ctx _context.Context, locationId string) (*_nethttp.Response, error) { + 449   var ( + 450   localVarHTTPMethod = _nethttp.MethodDelete + 451   localVarPostBody interface{} + 452   ) + 453   + 454   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.DeletePrivateLocation") + 455   if err != nil { + 456   return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 457   } + 458   + 459   localVarPath := localBasePath + "/api/v1/synthetics/private-locations/{location_id}" + 460   localVarPath = strings.Replace(localVarPath, "{"+"location_id"+"}", _neturl.PathEscape(datadog.ParameterToString(locationId, "")), -1) + 461   + 462   localVarHeaderParams := make(map[string]string) + 463   localVarQueryParams := _neturl.Values{} + 464   localVarFormParams := _neturl.Values{} + 465   localVarHeaderParams["Accept"] = "*/*" + 466   + 467   datadog.SetAuthKeys( + 468   ctx, + 469   &localVarHeaderParams, + 470   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 471   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 472   ) + 473   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 474   if err != nil { + 475   return nil, err + 476   } + 477   + 478   localVarHTTPResponse, err := a.Client.CallAPI(req) + 479   if err != nil || localVarHTTPResponse == nil { + 480   return localVarHTTPResponse, err + 481   } + 482   + 483   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 484   if err != nil { + 485   return localVarHTTPResponse, err + 486   } + 487   + 488   if localVarHTTPResponse.StatusCode >= 300 { + 489   newErr := datadog.GenericOpenAPIError{ + 490   ErrorBody: localVarBody, + 491   ErrorMessage: localVarHTTPResponse.Status, + 492   } + 493   if localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 494   var v APIErrorResponse + 495   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 496   if err != nil { + 497   return localVarHTTPResponse, newErr + 498   } + 499   newErr.ErrorModel = v 500   } - 501   return localVarReturnValue, localVarHTTPResponse, newErr + 501   return localVarHTTPResponse, newErr 502   } 503   - 504   return localVarReturnValue, localVarHTTPResponse, nil + 504   return localVarHTTPResponse, nil 505  } 506   - 507  // EditGlobalVariable Edit a global variable. - 508  // Edit a Synthetic global variable. - 509  func (a *SyntheticsApi) EditGlobalVariable(ctx _context.Context, variableId string, body SyntheticsGlobalVariableRequest) (SyntheticsGlobalVariable, *_nethttp.Response, error) { + 507  // DeleteTests Delete tests. + 508  // Delete multiple Synthetic tests by ID. + 509  func (a *SyntheticsApi) DeleteTests(ctx _context.Context, body SyntheticsDeleteTestsPayload) (SyntheticsDeleteTestsResponse, *_nethttp.Response, error) { 510   var ( - 511   localVarHTTPMethod = _nethttp.MethodPut + 511   localVarHTTPMethod = _nethttp.MethodPost 512   localVarPostBody interface{} - 513   localVarReturnValue SyntheticsGlobalVariable + 513   localVarReturnValue SyntheticsDeleteTestsResponse 514   ) 515   - 516   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.EditGlobalVariable") + 516   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.DeleteTests") 517   if err != nil { 518   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} 519   } 520   - 521   localVarPath := localBasePath + "/api/v1/synthetics/variables/{variable_id}" - 522   localVarPath = strings.Replace(localVarPath, "{"+"variable_id"+"}", _neturl.PathEscape(datadog.ParameterToString(variableId, "")), -1) - 523   - 524   localVarHeaderParams := make(map[string]string) - 525   localVarQueryParams := _neturl.Values{} - 526   localVarFormParams := _neturl.Values{} - 527   localVarHeaderParams["Content-Type"] = "application/json" - 528   localVarHeaderParams["Accept"] = "application/json" - 529   - 530   // body params - 531   localVarPostBody = &body - 532   datadog.SetAuthKeys( - 533   ctx, - 534   &localVarHeaderParams, - 535   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 536   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 537   ) - 538   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 539   if err != nil { - 540   return localVarReturnValue, nil, err - 541   } - 542   - 543   localVarHTTPResponse, err := a.Client.CallAPI(req) - 544   if err != nil || localVarHTTPResponse == nil { - 545   return localVarReturnValue, localVarHTTPResponse, err - 546   } - 547   - 548   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 549   if err != nil { - 550   return localVarReturnValue, localVarHTTPResponse, err - 551   } - 552   - 553   if localVarHTTPResponse.StatusCode >= 300 { - 554   newErr := datadog.GenericOpenAPIError{ - 555   ErrorBody: localVarBody, - 556   ErrorMessage: localVarHTTPResponse.Status, - 557   } - 558   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 429 { - 559   var v APIErrorResponse - 560   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 561   if err != nil { - 562   return localVarReturnValue, localVarHTTPResponse, newErr - 563   } - 564   newErr.ErrorModel = v - 565   } - 566   return localVarReturnValue, localVarHTTPResponse, newErr - 567   } - 568   - 569   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 570   if err != nil { - 571   newErr := datadog.GenericOpenAPIError{ - 572   ErrorBody: localVarBody, - 573   ErrorMessage: err.Error(), - 574   } - 575   return localVarReturnValue, localVarHTTPResponse, newErr - 576   } - 577   - 578   return localVarReturnValue, localVarHTTPResponse, nil - 579  } - 580   - 581  // GetAPITest Get an API test. - 582  // Get the detailed configuration associated with - 583  // a Synthetic API test. - 584  func (a *SyntheticsApi) GetAPITest(ctx _context.Context, publicId string) (SyntheticsAPITest, *_nethttp.Response, error) { - 585   var ( - 586   localVarHTTPMethod = _nethttp.MethodGet - 587   localVarPostBody interface{} - 588   localVarReturnValue SyntheticsAPITest - 589   ) - 590   - 591   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.GetAPITest") - 592   if err != nil { - 593   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} - 594   } - 595   - 596   localVarPath := localBasePath + "/api/v1/synthetics/tests/api/{public_id}" - 597   localVarPath = strings.Replace(localVarPath, "{"+"public_id"+"}", _neturl.PathEscape(datadog.ParameterToString(publicId, "")), -1) - 598   - 599   localVarHeaderParams := make(map[string]string) - 600   localVarQueryParams := _neturl.Values{} - 601   localVarFormParams := _neturl.Values{} - 602   localVarHeaderParams["Accept"] = "application/json" - 603   - 604   datadog.SetAuthKeys( - 605   ctx, - 606   &localVarHeaderParams, - 607   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 608   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 609   ) - 610   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 611   if err != nil { - 612   return localVarReturnValue, nil, err - 613   } - 614   - 615   localVarHTTPResponse, err := a.Client.CallAPI(req) - 616   if err != nil || localVarHTTPResponse == nil { - 617   return localVarReturnValue, localVarHTTPResponse, err - 618   } - 619   - 620   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 621   if err != nil { - 622   return localVarReturnValue, localVarHTTPResponse, err - 623   } - 624   - 625   if localVarHTTPResponse.StatusCode >= 300 { - 626   newErr := datadog.GenericOpenAPIError{ - 627   ErrorBody: localVarBody, - 628   ErrorMessage: localVarHTTPResponse.Status, - 629   } - 630   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { - 631   var v APIErrorResponse - 632   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 633   if err != nil { - 634   return localVarReturnValue, localVarHTTPResponse, newErr - 635   } - 636   newErr.ErrorModel = v - 637   } - 638   return localVarReturnValue, localVarHTTPResponse, newErr - 639   } - 640   - 641   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 642   if err != nil { - 643   newErr := datadog.GenericOpenAPIError{ - 644   ErrorBody: localVarBody, - 645   ErrorMessage: err.Error(), - 646   } - 647   return localVarReturnValue, localVarHTTPResponse, newErr - 648   } - 649   - 650   return localVarReturnValue, localVarHTTPResponse, nil - 651  } - 652   - 653  // GetAPITestLatestResultsOptionalParameters holds optional parameters for GetAPITestLatestResults. - 654  type GetAPITestLatestResultsOptionalParameters struct { - 655   FromTs *int64 - 656   ToTs *int64 - 657   ProbeDc *[]string - 658  } - 659   - 660  // NewGetAPITestLatestResultsOptionalParameters creates an empty struct for parameters. - 661  func NewGetAPITestLatestResultsOptionalParameters() *GetAPITestLatestResultsOptionalParameters { - 662   this := GetAPITestLatestResultsOptionalParameters{} - 663   return &this - 664  } - 665   - 666  // WithFromTs sets the corresponding parameter name and returns the struct. - 667  func (r *GetAPITestLatestResultsOptionalParameters) WithFromTs(fromTs int64) *GetAPITestLatestResultsOptionalParameters { - 668   r.FromTs = &fromTs - 669   return r - 670  } + 521   localVarPath := localBasePath + "/api/v1/synthetics/tests/delete" + 522   + 523   localVarHeaderParams := make(map[string]string) + 524   localVarQueryParams := _neturl.Values{} + 525   localVarFormParams := _neturl.Values{} + 526   localVarHeaderParams["Content-Type"] = "application/json" + 527   localVarHeaderParams["Accept"] = "application/json" + 528   + 529   // body params + 530   localVarPostBody = &body + 531   datadog.SetAuthKeys( + 532   ctx, + 533   &localVarHeaderParams, + 534   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 535   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 536   ) + 537   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 538   if err != nil { + 539   return localVarReturnValue, nil, err + 540   } + 541   + 542   localVarHTTPResponse, err := a.Client.CallAPI(req) + 543   if err != nil || localVarHTTPResponse == nil { + 544   return localVarReturnValue, localVarHTTPResponse, err + 545   } + 546   + 547   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 548   if err != nil { + 549   return localVarReturnValue, localVarHTTPResponse, err + 550   } + 551   + 552   if localVarHTTPResponse.StatusCode >= 300 { + 553   newErr := datadog.GenericOpenAPIError{ + 554   ErrorBody: localVarBody, + 555   ErrorMessage: localVarHTTPResponse.Status, + 556   } + 557   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 558   var v APIErrorResponse + 559   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 560   if err != nil { + 561   return localVarReturnValue, localVarHTTPResponse, newErr + 562   } + 563   newErr.ErrorModel = v + 564   } + 565   return localVarReturnValue, localVarHTTPResponse, newErr + 566   } + 567   + 568   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 569   if err != nil { + 570   newErr := datadog.GenericOpenAPIError{ + 571   ErrorBody: localVarBody, + 572   ErrorMessage: err.Error(), + 573   } + 574   return localVarReturnValue, localVarHTTPResponse, newErr + 575   } + 576   + 577   return localVarReturnValue, localVarHTTPResponse, nil + 578  } + 579   + 580  // EditGlobalVariable Edit a global variable. + 581  // Edit a Synthetic global variable. + 582  func (a *SyntheticsApi) EditGlobalVariable(ctx _context.Context, variableId string, body SyntheticsGlobalVariableRequest) (SyntheticsGlobalVariable, *_nethttp.Response, error) { + 583   var ( + 584   localVarHTTPMethod = _nethttp.MethodPut + 585   localVarPostBody interface{} + 586   localVarReturnValue SyntheticsGlobalVariable + 587   ) + 588   + 589   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.EditGlobalVariable") + 590   if err != nil { + 591   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 592   } + 593   + 594   localVarPath := localBasePath + "/api/v1/synthetics/variables/{variable_id}" + 595   localVarPath = strings.Replace(localVarPath, "{"+"variable_id"+"}", _neturl.PathEscape(datadog.ParameterToString(variableId, "")), -1) + 596   + 597   localVarHeaderParams := make(map[string]string) + 598   localVarQueryParams := _neturl.Values{} + 599   localVarFormParams := _neturl.Values{} + 600   localVarHeaderParams["Content-Type"] = "application/json" + 601   localVarHeaderParams["Accept"] = "application/json" + 602   + 603   // body params + 604   localVarPostBody = &body + 605   datadog.SetAuthKeys( + 606   ctx, + 607   &localVarHeaderParams, + 608   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 609   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 610   ) + 611   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 612   if err != nil { + 613   return localVarReturnValue, nil, err + 614   } + 615   + 616   localVarHTTPResponse, err := a.Client.CallAPI(req) + 617   if err != nil || localVarHTTPResponse == nil { + 618   return localVarReturnValue, localVarHTTPResponse, err + 619   } + 620   + 621   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 622   if err != nil { + 623   return localVarReturnValue, localVarHTTPResponse, err + 624   } + 625   + 626   if localVarHTTPResponse.StatusCode >= 300 { + 627   newErr := datadog.GenericOpenAPIError{ + 628   ErrorBody: localVarBody, + 629   ErrorMessage: localVarHTTPResponse.Status, + 630   } + 631   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 429 { + 632   var v APIErrorResponse + 633   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 634   if err != nil { + 635   return localVarReturnValue, localVarHTTPResponse, newErr + 636   } + 637   newErr.ErrorModel = v + 638   } + 639   return localVarReturnValue, localVarHTTPResponse, newErr + 640   } + 641   + 642   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 643   if err != nil { + 644   newErr := datadog.GenericOpenAPIError{ + 645   ErrorBody: localVarBody, + 646   ErrorMessage: err.Error(), + 647   } + 648   return localVarReturnValue, localVarHTTPResponse, newErr + 649   } + 650   + 651   return localVarReturnValue, localVarHTTPResponse, nil + 652  } + 653   + 654  // GetAPITest Get an API test. + 655  // Get the detailed configuration associated with + 656  // a Synthetic API test. + 657  func (a *SyntheticsApi) GetAPITest(ctx _context.Context, publicId string) (SyntheticsAPITest, *_nethttp.Response, error) { + 658   var ( + 659   localVarHTTPMethod = _nethttp.MethodGet + 660   localVarPostBody interface{} + 661   localVarReturnValue SyntheticsAPITest + 662   ) + 663   + 664   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.GetAPITest") + 665   if err != nil { + 666   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 667   } + 668   + 669   localVarPath := localBasePath + "/api/v1/synthetics/tests/api/{public_id}" + 670   localVarPath = strings.Replace(localVarPath, "{"+"public_id"+"}", _neturl.PathEscape(datadog.ParameterToString(publicId, "")), -1) 671   - 672  // WithToTs sets the corresponding parameter name and returns the struct. - 673  func (r *GetAPITestLatestResultsOptionalParameters) WithToTs(toTs int64) *GetAPITestLatestResultsOptionalParameters { - 674   r.ToTs = &toTs - 675   return r - 676  } - 677   - 678  // WithProbeDc sets the corresponding parameter name and returns the struct. - 679  func (r *GetAPITestLatestResultsOptionalParameters) WithProbeDc(probeDc []string) *GetAPITestLatestResultsOptionalParameters { - 680   r.ProbeDc = &probeDc - 681   return r - 682  } - 683   - 684  // GetAPITestLatestResults Get an API test's latest results summaries. - 685  // Get the last 150 test results summaries for a given Synthetic API test. - 686  func (a *SyntheticsApi) GetAPITestLatestResults(ctx _context.Context, publicId string, o ...GetAPITestLatestResultsOptionalParameters) (SyntheticsGetAPITestLatestResultsResponse, *_nethttp.Response, error) { - 687   var ( - 688   localVarHTTPMethod = _nethttp.MethodGet - 689   localVarPostBody interface{} - 690   localVarReturnValue SyntheticsGetAPITestLatestResultsResponse - 691   optionalParams GetAPITestLatestResultsOptionalParameters - 692   ) - 693   - 694   if len(o) > 1 { - 695   return localVarReturnValue, nil, datadog.ReportError("only one argument of type GetAPITestLatestResultsOptionalParameters is allowed") + 672   localVarHeaderParams := make(map[string]string) + 673   localVarQueryParams := _neturl.Values{} + 674   localVarFormParams := _neturl.Values{} + 675   localVarHeaderParams["Accept"] = "application/json" + 676   + 677   datadog.SetAuthKeys( + 678   ctx, + 679   &localVarHeaderParams, + 680   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 681   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 682   ) + 683   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 684   if err != nil { + 685   return localVarReturnValue, nil, err + 686   } + 687   + 688   localVarHTTPResponse, err := a.Client.CallAPI(req) + 689   if err != nil || localVarHTTPResponse == nil { + 690   return localVarReturnValue, localVarHTTPResponse, err + 691   } + 692   + 693   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 694   if err != nil { + 695   return localVarReturnValue, localVarHTTPResponse, err 696   } - 697   if len(o) == 1 { - 698   optionalParams = o[0] - 699   } - 700   - 701   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.GetAPITestLatestResults") - 702   if err != nil { - 703   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} - 704   } - 705   - 706   localVarPath := localBasePath + "/api/v1/synthetics/tests/{public_id}/results" - 707   localVarPath = strings.Replace(localVarPath, "{"+"public_id"+"}", _neturl.PathEscape(datadog.ParameterToString(publicId, "")), -1) - 708   - 709   localVarHeaderParams := make(map[string]string) - 710   localVarQueryParams := _neturl.Values{} - 711   localVarFormParams := _neturl.Values{} - 712   if optionalParams.FromTs != nil { - 713   localVarQueryParams.Add("from_ts", datadog.ParameterToString(*optionalParams.FromTs, "")) - 714   } - 715   if optionalParams.ToTs != nil { - 716   localVarQueryParams.Add("to_ts", datadog.ParameterToString(*optionalParams.ToTs, "")) - 717   } - 718   if optionalParams.ProbeDc != nil { - 719   t := *optionalParams.ProbeDc - 720   if reflect.TypeOf(t).Kind() == reflect.Slice { - 721   s := reflect.ValueOf(t) - 722   for i := 0; i < s.Len(); i++ { - 723   localVarQueryParams.Add("probe_dc", datadog.ParameterToString(s.Index(i), "multi")) - 724   } - 725   } else { - 726   localVarQueryParams.Add("probe_dc", datadog.ParameterToString(t, "multi")) - 727   } - 728   } - 729   localVarHeaderParams["Accept"] = "application/json" - 730   - 731   datadog.SetAuthKeys( - 732   ctx, - 733   &localVarHeaderParams, - 734   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 735   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 736   ) - 737   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 738   if err != nil { - 739   return localVarReturnValue, nil, err - 740   } - 741   - 742   localVarHTTPResponse, err := a.Client.CallAPI(req) - 743   if err != nil || localVarHTTPResponse == nil { - 744   return localVarReturnValue, localVarHTTPResponse, err - 745   } - 746   - 747   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 748   if err != nil { - 749   return localVarReturnValue, localVarHTTPResponse, err - 750   } - 751   - 752   if localVarHTTPResponse.StatusCode >= 300 { - 753   newErr := datadog.GenericOpenAPIError{ - 754   ErrorBody: localVarBody, - 755   ErrorMessage: localVarHTTPResponse.Status, - 756   } - 757   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { - 758   var v APIErrorResponse - 759   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 760   if err != nil { - 761   return localVarReturnValue, localVarHTTPResponse, newErr - 762   } - 763   newErr.ErrorModel = v - 764   } - 765   return localVarReturnValue, localVarHTTPResponse, newErr - 766   } - 767   - 768   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 769   if err != nil { - 770   newErr := datadog.GenericOpenAPIError{ - 771   ErrorBody: localVarBody, - 772   ErrorMessage: err.Error(), - 773   } - 774   return localVarReturnValue, localVarHTTPResponse, newErr - 775   } - 776   - 777   return localVarReturnValue, localVarHTTPResponse, nil - 778  } - 779   - 780  // GetAPITestResult Get an API test result. - 781  // Get a specific full result from a given Synthetic API test. - 782  func (a *SyntheticsApi) GetAPITestResult(ctx _context.Context, publicId string, resultId string) (SyntheticsAPITestResultFull, *_nethttp.Response, error) { - 783   var ( - 784   localVarHTTPMethod = _nethttp.MethodGet - 785   localVarPostBody interface{} - 786   localVarReturnValue SyntheticsAPITestResultFull - 787   ) - 788   - 789   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.GetAPITestResult") - 790   if err != nil { - 791   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} - 792   } - 793   - 794   localVarPath := localBasePath + "/api/v1/synthetics/tests/{public_id}/results/{result_id}" - 795   localVarPath = strings.Replace(localVarPath, "{"+"public_id"+"}", _neturl.PathEscape(datadog.ParameterToString(publicId, "")), -1) - 796   localVarPath = strings.Replace(localVarPath, "{"+"result_id"+"}", _neturl.PathEscape(datadog.ParameterToString(resultId, "")), -1) - 797   - 798   localVarHeaderParams := make(map[string]string) - 799   localVarQueryParams := _neturl.Values{} - 800   localVarFormParams := _neturl.Values{} - 801   localVarHeaderParams["Accept"] = "application/json" - 802   - 803   datadog.SetAuthKeys( - 804   ctx, - 805   &localVarHeaderParams, - 806   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 807   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 808   ) - 809   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 810   if err != nil { - 811   return localVarReturnValue, nil, err - 812   } - 813   - 814   localVarHTTPResponse, err := a.Client.CallAPI(req) - 815   if err != nil || localVarHTTPResponse == nil { - 816   return localVarReturnValue, localVarHTTPResponse, err - 817   } - 818   - 819   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 820   if err != nil { - 821   return localVarReturnValue, localVarHTTPResponse, err - 822   } - 823   - 824   if localVarHTTPResponse.StatusCode >= 300 { - 825   newErr := datadog.GenericOpenAPIError{ - 826   ErrorBody: localVarBody, - 827   ErrorMessage: localVarHTTPResponse.Status, - 828   } - 829   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { - 830   var v APIErrorResponse - 831   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 832   if err != nil { - 833   return localVarReturnValue, localVarHTTPResponse, newErr - 834   } - 835   newErr.ErrorModel = v - 836   } - 837   return localVarReturnValue, localVarHTTPResponse, newErr - 838   } - 839   - 840   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 841   if err != nil { - 842   newErr := datadog.GenericOpenAPIError{ - 843   ErrorBody: localVarBody, - 844   ErrorMessage: err.Error(), - 845   } - 846   return localVarReturnValue, localVarHTTPResponse, newErr - 847   } - 848   - 849   return localVarReturnValue, localVarHTTPResponse, nil - 850  } - 851   - 852  // GetBrowserTest Get a browser test. - 853  // Get the detailed configuration (including steps) associated with - 854  // a Synthetic browser test. - 855  func (a *SyntheticsApi) GetBrowserTest(ctx _context.Context, publicId string) (SyntheticsBrowserTest, *_nethttp.Response, error) { + 697   + 698   if localVarHTTPResponse.StatusCode >= 300 { + 699   newErr := datadog.GenericOpenAPIError{ + 700   ErrorBody: localVarBody, + 701   ErrorMessage: localVarHTTPResponse.Status, + 702   } + 703   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 704   var v APIErrorResponse + 705   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 706   if err != nil { + 707   return localVarReturnValue, localVarHTTPResponse, newErr + 708   } + 709   newErr.ErrorModel = v + 710   } + 711   return localVarReturnValue, localVarHTTPResponse, newErr + 712   } + 713   + 714   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 715   if err != nil { + 716   newErr := datadog.GenericOpenAPIError{ + 717   ErrorBody: localVarBody, + 718   ErrorMessage: err.Error(), + 719   } + 720   return localVarReturnValue, localVarHTTPResponse, newErr + 721   } + 722   + 723   return localVarReturnValue, localVarHTTPResponse, nil + 724  } + 725   + 726  // GetAPITestLatestResultsOptionalParameters holds optional parameters for GetAPITestLatestResults. + 727  type GetAPITestLatestResultsOptionalParameters struct { + 728   FromTs *int64 + 729   ToTs *int64 + 730   ProbeDc *[]string + 731  } + 732   + 733  // NewGetAPITestLatestResultsOptionalParameters creates an empty struct for parameters. + 734  func NewGetAPITestLatestResultsOptionalParameters() *GetAPITestLatestResultsOptionalParameters { + 735   this := GetAPITestLatestResultsOptionalParameters{} + 736   return &this + 737  } + 738   + 739  // WithFromTs sets the corresponding parameter name and returns the struct. + 740  func (r *GetAPITestLatestResultsOptionalParameters) WithFromTs(fromTs int64) *GetAPITestLatestResultsOptionalParameters { + 741   r.FromTs = &fromTs + 742   return r + 743  } + 744   + 745  // WithToTs sets the corresponding parameter name and returns the struct. + 746  func (r *GetAPITestLatestResultsOptionalParameters) WithToTs(toTs int64) *GetAPITestLatestResultsOptionalParameters { + 747   r.ToTs = &toTs + 748   return r + 749  } + 750   + 751  // WithProbeDc sets the corresponding parameter name and returns the struct. + 752  func (r *GetAPITestLatestResultsOptionalParameters) WithProbeDc(probeDc []string) *GetAPITestLatestResultsOptionalParameters { + 753   r.ProbeDc = &probeDc + 754   return r + 755  } + 756   + 757  // GetAPITestLatestResults Get an API test's latest results summaries. + 758  // Get the last 150 test results summaries for a given Synthetic API test. + 759  func (a *SyntheticsApi) GetAPITestLatestResults(ctx _context.Context, publicId string, o ...GetAPITestLatestResultsOptionalParameters) (SyntheticsGetAPITestLatestResultsResponse, *_nethttp.Response, error) { + 760   var ( + 761   localVarHTTPMethod = _nethttp.MethodGet + 762   localVarPostBody interface{} + 763   localVarReturnValue SyntheticsGetAPITestLatestResultsResponse + 764   optionalParams GetAPITestLatestResultsOptionalParameters + 765   ) + 766   + 767   if len(o) > 1 { + 768   return localVarReturnValue, nil, datadog.ReportError("only one argument of type GetAPITestLatestResultsOptionalParameters is allowed") + 769   } + 770   if len(o) == 1 { + 771   optionalParams = o[0] + 772   } + 773   + 774   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.GetAPITestLatestResults") + 775   if err != nil { + 776   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 777   } + 778   + 779   localVarPath := localBasePath + "/api/v1/synthetics/tests/{public_id}/results" + 780   localVarPath = strings.Replace(localVarPath, "{"+"public_id"+"}", _neturl.PathEscape(datadog.ParameterToString(publicId, "")), -1) + 781   + 782   localVarHeaderParams := make(map[string]string) + 783   localVarQueryParams := _neturl.Values{} + 784   localVarFormParams := _neturl.Values{} + 785   if optionalParams.FromTs != nil { + 786   localVarQueryParams.Add("from_ts", datadog.ParameterToString(*optionalParams.FromTs, "")) + 787   } + 788   if optionalParams.ToTs != nil { + 789   localVarQueryParams.Add("to_ts", datadog.ParameterToString(*optionalParams.ToTs, "")) + 790   } + 791   if optionalParams.ProbeDc != nil { + 792   t := *optionalParams.ProbeDc + 793   if reflect.TypeOf(t).Kind() == reflect.Slice { + 794   s := reflect.ValueOf(t) + 795   for i := 0; i < s.Len(); i++ { + 796   localVarQueryParams.Add("probe_dc", datadog.ParameterToString(s.Index(i), "multi")) + 797   } + 798   } else { + 799   localVarQueryParams.Add("probe_dc", datadog.ParameterToString(t, "multi")) + 800   } + 801   } + 802   localVarHeaderParams["Accept"] = "application/json" + 803   + 804   datadog.SetAuthKeys( + 805   ctx, + 806   &localVarHeaderParams, + 807   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 808   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 809   ) + 810   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 811   if err != nil { + 812   return localVarReturnValue, nil, err + 813   } + 814   + 815   localVarHTTPResponse, err := a.Client.CallAPI(req) + 816   if err != nil || localVarHTTPResponse == nil { + 817   return localVarReturnValue, localVarHTTPResponse, err + 818   } + 819   + 820   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 821   if err != nil { + 822   return localVarReturnValue, localVarHTTPResponse, err + 823   } + 824   + 825   if localVarHTTPResponse.StatusCode >= 300 { + 826   newErr := datadog.GenericOpenAPIError{ + 827   ErrorBody: localVarBody, + 828   ErrorMessage: localVarHTTPResponse.Status, + 829   } + 830   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 831   var v APIErrorResponse + 832   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 833   if err != nil { + 834   return localVarReturnValue, localVarHTTPResponse, newErr + 835   } + 836   newErr.ErrorModel = v + 837   } + 838   return localVarReturnValue, localVarHTTPResponse, newErr + 839   } + 840   + 841   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 842   if err != nil { + 843   newErr := datadog.GenericOpenAPIError{ + 844   ErrorBody: localVarBody, + 845   ErrorMessage: err.Error(), + 846   } + 847   return localVarReturnValue, localVarHTTPResponse, newErr + 848   } + 849   + 850   return localVarReturnValue, localVarHTTPResponse, nil + 851  } + 852   + 853  // GetAPITestResult Get an API test result. + 854  // Get a specific full result from a given Synthetic API test. + 855  func (a *SyntheticsApi) GetAPITestResult(ctx _context.Context, publicId string, resultId string) (SyntheticsAPITestResultFull, *_nethttp.Response, error) { 856   var ( 857   localVarHTTPMethod = _nethttp.MethodGet 858   localVarPostBody interface{} - 859   localVarReturnValue SyntheticsBrowserTest + 859   localVarReturnValue SyntheticsAPITestResultFull 860   ) 861   - 862   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.GetBrowserTest") + 862   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.GetAPITestResult") 863   if err != nil { 864   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} 865   } 866   - 867   localVarPath := localBasePath + "/api/v1/synthetics/tests/browser/{public_id}" + 867   localVarPath := localBasePath + "/api/v1/synthetics/tests/{public_id}/results/{result_id}" 868   localVarPath = strings.Replace(localVarPath, "{"+"public_id"+"}", _neturl.PathEscape(datadog.ParameterToString(publicId, "")), -1) - 869   - 870   localVarHeaderParams := make(map[string]string) - 871   localVarQueryParams := _neturl.Values{} - 872   localVarFormParams := _neturl.Values{} - 873   localVarHeaderParams["Accept"] = "application/json" - 874   - 875   datadog.SetAuthKeys( - 876   ctx, - 877   &localVarHeaderParams, - 878   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 879   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 880   ) - 881   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 882   if err != nil { - 883   return localVarReturnValue, nil, err - 884   } - 885   - 886   localVarHTTPResponse, err := a.Client.CallAPI(req) - 887   if err != nil || localVarHTTPResponse == nil { - 888   return localVarReturnValue, localVarHTTPResponse, err - 889   } - 890   - 891   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 892   if err != nil { - 893   return localVarReturnValue, localVarHTTPResponse, err - 894   } - 895   - 896   if localVarHTTPResponse.StatusCode >= 300 { - 897   newErr := datadog.GenericOpenAPIError{ - 898   ErrorBody: localVarBody, - 899   ErrorMessage: localVarHTTPResponse.Status, - 900   } - 901   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { - 902   var v APIErrorResponse - 903   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 904   if err != nil { - 905   return localVarReturnValue, localVarHTTPResponse, newErr - 906   } - 907   newErr.ErrorModel = v - 908   } - 909   return localVarReturnValue, localVarHTTPResponse, newErr - 910   } - 911   - 912   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 913   if err != nil { - 914   newErr := datadog.GenericOpenAPIError{ - 915   ErrorBody: localVarBody, - 916   ErrorMessage: err.Error(), - 917   } - 918   return localVarReturnValue, localVarHTTPResponse, newErr - 919   } - 920   - 921   return localVarReturnValue, localVarHTTPResponse, nil - 922  } - 923   - 924  // GetBrowserTestLatestResultsOptionalParameters holds optional parameters for GetBrowserTestLatestResults. - 925  type GetBrowserTestLatestResultsOptionalParameters struct { - 926   FromTs *int64 - 927   ToTs *int64 - 928   ProbeDc *[]string - 929  } - 930   - 931  // NewGetBrowserTestLatestResultsOptionalParameters creates an empty struct for parameters. - 932  func NewGetBrowserTestLatestResultsOptionalParameters() *GetBrowserTestLatestResultsOptionalParameters { - 933   this := GetBrowserTestLatestResultsOptionalParameters{} - 934   return &this - 935  } - 936   - 937  // WithFromTs sets the corresponding parameter name and returns the struct. - 938  func (r *GetBrowserTestLatestResultsOptionalParameters) WithFromTs(fromTs int64) *GetBrowserTestLatestResultsOptionalParameters { - 939   r.FromTs = &fromTs - 940   return r - 941  } + 869   localVarPath = strings.Replace(localVarPath, "{"+"result_id"+"}", _neturl.PathEscape(datadog.ParameterToString(resultId, "")), -1) + 870   + 871   localVarHeaderParams := make(map[string]string) + 872   localVarQueryParams := _neturl.Values{} + 873   localVarFormParams := _neturl.Values{} + 874   localVarHeaderParams["Accept"] = "application/json" + 875   + 876   datadog.SetAuthKeys( + 877   ctx, + 878   &localVarHeaderParams, + 879   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 880   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 881   ) + 882   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 883   if err != nil { + 884   return localVarReturnValue, nil, err + 885   } + 886   + 887   localVarHTTPResponse, err := a.Client.CallAPI(req) + 888   if err != nil || localVarHTTPResponse == nil { + 889   return localVarReturnValue, localVarHTTPResponse, err + 890   } + 891   + 892   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 893   if err != nil { + 894   return localVarReturnValue, localVarHTTPResponse, err + 895   } + 896   + 897   if localVarHTTPResponse.StatusCode >= 300 { + 898   newErr := datadog.GenericOpenAPIError{ + 899   ErrorBody: localVarBody, + 900   ErrorMessage: localVarHTTPResponse.Status, + 901   } + 902   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 903   var v APIErrorResponse + 904   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 905   if err != nil { + 906   return localVarReturnValue, localVarHTTPResponse, newErr + 907   } + 908   newErr.ErrorModel = v + 909   } + 910   return localVarReturnValue, localVarHTTPResponse, newErr + 911   } + 912   + 913   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 914   if err != nil { + 915   newErr := datadog.GenericOpenAPIError{ + 916   ErrorBody: localVarBody, + 917   ErrorMessage: err.Error(), + 918   } + 919   return localVarReturnValue, localVarHTTPResponse, newErr + 920   } + 921   + 922   return localVarReturnValue, localVarHTTPResponse, nil + 923  } + 924   + 925  // GetBrowserTest Get a browser test. + 926  // Get the detailed configuration (including steps) associated with + 927  // a Synthetic browser test. + 928  func (a *SyntheticsApi) GetBrowserTest(ctx _context.Context, publicId string) (SyntheticsBrowserTest, *_nethttp.Response, error) { + 929   var ( + 930   localVarHTTPMethod = _nethttp.MethodGet + 931   localVarPostBody interface{} + 932   localVarReturnValue SyntheticsBrowserTest + 933   ) + 934   + 935   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.GetBrowserTest") + 936   if err != nil { + 937   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 938   } + 939   + 940   localVarPath := localBasePath + "/api/v1/synthetics/tests/browser/{public_id}" + 941   localVarPath = strings.Replace(localVarPath, "{"+"public_id"+"}", _neturl.PathEscape(datadog.ParameterToString(publicId, "")), -1) 942   - 943  // WithToTs sets the corresponding parameter name and returns the struct. - 944  func (r *GetBrowserTestLatestResultsOptionalParameters) WithToTs(toTs int64) *GetBrowserTestLatestResultsOptionalParameters { - 945   r.ToTs = &toTs - 946   return r - 947  } - 948   - 949  // WithProbeDc sets the corresponding parameter name and returns the struct. - 950  func (r *GetBrowserTestLatestResultsOptionalParameters) WithProbeDc(probeDc []string) *GetBrowserTestLatestResultsOptionalParameters { - 951   r.ProbeDc = &probeDc - 952   return r - 953  } - 954   - 955  // GetBrowserTestLatestResults Get a browser test's latest results summaries. - 956  // Get the last 150 test results summaries for a given Synthetic browser test. - 957  func (a *SyntheticsApi) GetBrowserTestLatestResults(ctx _context.Context, publicId string, o ...GetBrowserTestLatestResultsOptionalParameters) (SyntheticsGetBrowserTestLatestResultsResponse, *_nethttp.Response, error) { - 958   var ( - 959   localVarHTTPMethod = _nethttp.MethodGet - 960   localVarPostBody interface{} - 961   localVarReturnValue SyntheticsGetBrowserTestLatestResultsResponse - 962   optionalParams GetBrowserTestLatestResultsOptionalParameters - 963   ) - 964   - 965   if len(o) > 1 { - 966   return localVarReturnValue, nil, datadog.ReportError("only one argument of type GetBrowserTestLatestResultsOptionalParameters is allowed") + 943   localVarHeaderParams := make(map[string]string) + 944   localVarQueryParams := _neturl.Values{} + 945   localVarFormParams := _neturl.Values{} + 946   localVarHeaderParams["Accept"] = "application/json" + 947   + 948   datadog.SetAuthKeys( + 949   ctx, + 950   &localVarHeaderParams, + 951   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 952   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 953   ) + 954   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 955   if err != nil { + 956   return localVarReturnValue, nil, err + 957   } + 958   + 959   localVarHTTPResponse, err := a.Client.CallAPI(req) + 960   if err != nil || localVarHTTPResponse == nil { + 961   return localVarReturnValue, localVarHTTPResponse, err + 962   } + 963   + 964   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 965   if err != nil { + 966   return localVarReturnValue, localVarHTTPResponse, err 967   } - 968   if len(o) == 1 { - 969   optionalParams = o[0] - 970   } - 971   - 972   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.GetBrowserTestLatestResults") - 973   if err != nil { - 974   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} - 975   } - 976   - 977   localVarPath := localBasePath + "/api/v1/synthetics/tests/browser/{public_id}/results" - 978   localVarPath = strings.Replace(localVarPath, "{"+"public_id"+"}", _neturl.PathEscape(datadog.ParameterToString(publicId, "")), -1) - 979   - 980   localVarHeaderParams := make(map[string]string) - 981   localVarQueryParams := _neturl.Values{} - 982   localVarFormParams := _neturl.Values{} - 983   if optionalParams.FromTs != nil { - 984   localVarQueryParams.Add("from_ts", datadog.ParameterToString(*optionalParams.FromTs, "")) - 985   } - 986   if optionalParams.ToTs != nil { - 987   localVarQueryParams.Add("to_ts", datadog.ParameterToString(*optionalParams.ToTs, "")) - 988   } - 989   if optionalParams.ProbeDc != nil { - 990   t := *optionalParams.ProbeDc - 991   if reflect.TypeOf(t).Kind() == reflect.Slice { - 992   s := reflect.ValueOf(t) - 993   for i := 0; i < s.Len(); i++ { - 994   localVarQueryParams.Add("probe_dc", datadog.ParameterToString(s.Index(i), "multi")) - 995   } - 996   } else { - 997   localVarQueryParams.Add("probe_dc", datadog.ParameterToString(t, "multi")) - 998   } - 999   } - 1000   localVarHeaderParams["Accept"] = "application/json" - 1001   - 1002   datadog.SetAuthKeys( - 1003   ctx, - 1004   &localVarHeaderParams, - 1005   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 1006   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 1007   ) - 1008   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 1009   if err != nil { - 1010   return localVarReturnValue, nil, err - 1011   } - 1012   - 1013   localVarHTTPResponse, err := a.Client.CallAPI(req) - 1014   if err != nil || localVarHTTPResponse == nil { - 1015   return localVarReturnValue, localVarHTTPResponse, err - 1016   } - 1017   - 1018   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 1019   if err != nil { - 1020   return localVarReturnValue, localVarHTTPResponse, err - 1021   } - 1022   - 1023   if localVarHTTPResponse.StatusCode >= 300 { - 1024   newErr := datadog.GenericOpenAPIError{ - 1025   ErrorBody: localVarBody, - 1026   ErrorMessage: localVarHTTPResponse.Status, - 1027   } - 1028   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { - 1029   var v APIErrorResponse - 1030   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 1031   if err != nil { - 1032   return localVarReturnValue, localVarHTTPResponse, newErr - 1033   } - 1034   newErr.ErrorModel = v - 1035   } - 1036   return localVarReturnValue, localVarHTTPResponse, newErr - 1037   } - 1038   - 1039   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 1040   if err != nil { - 1041   newErr := datadog.GenericOpenAPIError{ - 1042   ErrorBody: localVarBody, - 1043   ErrorMessage: err.Error(), - 1044   } - 1045   return localVarReturnValue, localVarHTTPResponse, newErr - 1046   } - 1047   - 1048   return localVarReturnValue, localVarHTTPResponse, nil - 1049  } - 1050   - 1051  // GetBrowserTestResult Get a browser test result. - 1052  // Get a specific full result from a given Synthetic browser test. - 1053  func (a *SyntheticsApi) GetBrowserTestResult(ctx _context.Context, publicId string, resultId string) (SyntheticsBrowserTestResultFull, *_nethttp.Response, error) { - 1054   var ( - 1055   localVarHTTPMethod = _nethttp.MethodGet - 1056   localVarPostBody interface{} - 1057   localVarReturnValue SyntheticsBrowserTestResultFull - 1058   ) - 1059   - 1060   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.GetBrowserTestResult") - 1061   if err != nil { - 1062   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} - 1063   } - 1064   - 1065   localVarPath := localBasePath + "/api/v1/synthetics/tests/browser/{public_id}/results/{result_id}" - 1066   localVarPath = strings.Replace(localVarPath, "{"+"public_id"+"}", _neturl.PathEscape(datadog.ParameterToString(publicId, "")), -1) - 1067   localVarPath = strings.Replace(localVarPath, "{"+"result_id"+"}", _neturl.PathEscape(datadog.ParameterToString(resultId, "")), -1) - 1068   - 1069   localVarHeaderParams := make(map[string]string) - 1070   localVarQueryParams := _neturl.Values{} - 1071   localVarFormParams := _neturl.Values{} - 1072   localVarHeaderParams["Accept"] = "application/json" - 1073   - 1074   datadog.SetAuthKeys( - 1075   ctx, - 1076   &localVarHeaderParams, - 1077   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 1078   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 1079   ) - 1080   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 1081   if err != nil { - 1082   return localVarReturnValue, nil, err - 1083   } - 1084   - 1085   localVarHTTPResponse, err := a.Client.CallAPI(req) - 1086   if err != nil || localVarHTTPResponse == nil { - 1087   return localVarReturnValue, localVarHTTPResponse, err - 1088   } - 1089   - 1090   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 1091   if err != nil { - 1092   return localVarReturnValue, localVarHTTPResponse, err - 1093   } - 1094   - 1095   if localVarHTTPResponse.StatusCode >= 300 { - 1096   newErr := datadog.GenericOpenAPIError{ - 1097   ErrorBody: localVarBody, - 1098   ErrorMessage: localVarHTTPResponse.Status, - 1099   } - 1100   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { - 1101   var v APIErrorResponse - 1102   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 1103   if err != nil { - 1104   return localVarReturnValue, localVarHTTPResponse, newErr - 1105   } - 1106   newErr.ErrorModel = v - 1107   } - 1108   return localVarReturnValue, localVarHTTPResponse, newErr - 1109   } - 1110   - 1111   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 1112   if err != nil { - 1113   newErr := datadog.GenericOpenAPIError{ - 1114   ErrorBody: localVarBody, - 1115   ErrorMessage: err.Error(), - 1116   } - 1117   return localVarReturnValue, localVarHTTPResponse, newErr - 1118   } - 1119   - 1120   return localVarReturnValue, localVarHTTPResponse, nil - 1121  } - 1122   - 1123  // GetGlobalVariable Get a global variable. - 1124  // Get the detailed configuration of a global variable. - 1125  func (a *SyntheticsApi) GetGlobalVariable(ctx _context.Context, variableId string) (SyntheticsGlobalVariable, *_nethttp.Response, error) { - 1126   var ( - 1127   localVarHTTPMethod = _nethttp.MethodGet - 1128   localVarPostBody interface{} - 1129   localVarReturnValue SyntheticsGlobalVariable - 1130   ) - 1131   - 1132   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.GetGlobalVariable") - 1133   if err != nil { - 1134   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} - 1135   } - 1136   - 1137   localVarPath := localBasePath + "/api/v1/synthetics/variables/{variable_id}" - 1138   localVarPath = strings.Replace(localVarPath, "{"+"variable_id"+"}", _neturl.PathEscape(datadog.ParameterToString(variableId, "")), -1) - 1139   - 1140   localVarHeaderParams := make(map[string]string) - 1141   localVarQueryParams := _neturl.Values{} - 1142   localVarFormParams := _neturl.Values{} - 1143   localVarHeaderParams["Accept"] = "application/json" - 1144   - 1145   datadog.SetAuthKeys( - 1146   ctx, - 1147   &localVarHeaderParams, - 1148   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 1149   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 1150   ) - 1151   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 1152   if err != nil { - 1153   return localVarReturnValue, nil, err - 1154   } - 1155   - 1156   localVarHTTPResponse, err := a.Client.CallAPI(req) - 1157   if err != nil || localVarHTTPResponse == nil { - 1158   return localVarReturnValue, localVarHTTPResponse, err - 1159   } - 1160   - 1161   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 1162   if err != nil { - 1163   return localVarReturnValue, localVarHTTPResponse, err - 1164   } - 1165   - 1166   if localVarHTTPResponse.StatusCode >= 300 { - 1167   newErr := datadog.GenericOpenAPIError{ - 1168   ErrorBody: localVarBody, - 1169   ErrorMessage: localVarHTTPResponse.Status, - 1170   } - 1171   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { - 1172   var v APIErrorResponse - 1173   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 1174   if err != nil { - 1175   return localVarReturnValue, localVarHTTPResponse, newErr - 1176   } - 1177   newErr.ErrorModel = v - 1178   } - 1179   return localVarReturnValue, localVarHTTPResponse, newErr - 1180   } - 1181   - 1182   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 1183   if err != nil { - 1184   newErr := datadog.GenericOpenAPIError{ - 1185   ErrorBody: localVarBody, - 1186   ErrorMessage: err.Error(), - 1187   } - 1188   return localVarReturnValue, localVarHTTPResponse, newErr - 1189   } - 1190   - 1191   return localVarReturnValue, localVarHTTPResponse, nil - 1192  } - 1193   - 1194  // GetPrivateLocation Get a private location. - 1195  // Get a Synthetic private location. - 1196  func (a *SyntheticsApi) GetPrivateLocation(ctx _context.Context, locationId string) (SyntheticsPrivateLocation, *_nethttp.Response, error) { - 1197   var ( - 1198   localVarHTTPMethod = _nethttp.MethodGet - 1199   localVarPostBody interface{} - 1200   localVarReturnValue SyntheticsPrivateLocation - 1201   ) - 1202   - 1203   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.GetPrivateLocation") - 1204   if err != nil { - 1205   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} - 1206   } - 1207   - 1208   localVarPath := localBasePath + "/api/v1/synthetics/private-locations/{location_id}" - 1209   localVarPath = strings.Replace(localVarPath, "{"+"location_id"+"}", _neturl.PathEscape(datadog.ParameterToString(locationId, "")), -1) - 1210   - 1211   localVarHeaderParams := make(map[string]string) - 1212   localVarQueryParams := _neturl.Values{} - 1213   localVarFormParams := _neturl.Values{} - 1214   localVarHeaderParams["Accept"] = "application/json" - 1215   - 1216   datadog.SetAuthKeys( - 1217   ctx, - 1218   &localVarHeaderParams, - 1219   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 1220   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 1221   ) - 1222   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 1223   if err != nil { - 1224   return localVarReturnValue, nil, err - 1225   } - 1226   - 1227   localVarHTTPResponse, err := a.Client.CallAPI(req) - 1228   if err != nil || localVarHTTPResponse == nil { - 1229   return localVarReturnValue, localVarHTTPResponse, err - 1230   } - 1231   - 1232   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 1233   if err != nil { - 1234   return localVarReturnValue, localVarHTTPResponse, err - 1235   } - 1236   - 1237   if localVarHTTPResponse.StatusCode >= 300 { - 1238   newErr := datadog.GenericOpenAPIError{ - 1239   ErrorBody: localVarBody, - 1240   ErrorMessage: localVarHTTPResponse.Status, - 1241   } - 1242   if localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { - 1243   var v APIErrorResponse - 1244   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 1245   if err != nil { - 1246   return localVarReturnValue, localVarHTTPResponse, newErr - 1247   } - 1248   newErr.ErrorModel = v - 1249   } - 1250   return localVarReturnValue, localVarHTTPResponse, newErr - 1251   } - 1252   - 1253   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 1254   if err != nil { - 1255   newErr := datadog.GenericOpenAPIError{ - 1256   ErrorBody: localVarBody, - 1257   ErrorMessage: err.Error(), - 1258   } - 1259   return localVarReturnValue, localVarHTTPResponse, newErr - 1260   } - 1261   - 1262   return localVarReturnValue, localVarHTTPResponse, nil - 1263  } - 1264   - 1265  // GetSyntheticsCIBatch Get details of batch. - 1266  // Get a batch's updated details. - 1267  func (a *SyntheticsApi) GetSyntheticsCIBatch(ctx _context.Context, batchId string) (SyntheticsBatchDetails, *_nethttp.Response, error) { - 1268   var ( - 1269   localVarHTTPMethod = _nethttp.MethodGet - 1270   localVarPostBody interface{} - 1271   localVarReturnValue SyntheticsBatchDetails - 1272   ) - 1273   - 1274   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.GetSyntheticsCIBatch") - 1275   if err != nil { - 1276   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} - 1277   } - 1278   - 1279   localVarPath := localBasePath + "/api/v1/synthetics/ci/batch/{batch_id}" - 1280   localVarPath = strings.Replace(localVarPath, "{"+"batch_id"+"}", _neturl.PathEscape(datadog.ParameterToString(batchId, "")), -1) + 968   + 969   if localVarHTTPResponse.StatusCode >= 300 { + 970   newErr := datadog.GenericOpenAPIError{ + 971   ErrorBody: localVarBody, + 972   ErrorMessage: localVarHTTPResponse.Status, + 973   } + 974   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 975   var v APIErrorResponse + 976   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 977   if err != nil { + 978   return localVarReturnValue, localVarHTTPResponse, newErr + 979   } + 980   newErr.ErrorModel = v + 981   } + 982   return localVarReturnValue, localVarHTTPResponse, newErr + 983   } + 984   + 985   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 986   if err != nil { + 987   newErr := datadog.GenericOpenAPIError{ + 988   ErrorBody: localVarBody, + 989   ErrorMessage: err.Error(), + 990   } + 991   return localVarReturnValue, localVarHTTPResponse, newErr + 992   } + 993   + 994   return localVarReturnValue, localVarHTTPResponse, nil + 995  } + 996   + 997  // GetBrowserTestLatestResultsOptionalParameters holds optional parameters for GetBrowserTestLatestResults. + 998  type GetBrowserTestLatestResultsOptionalParameters struct { + 999   FromTs *int64 + 1000   ToTs *int64 + 1001   ProbeDc *[]string + 1002  } + 1003   + 1004  // NewGetBrowserTestLatestResultsOptionalParameters creates an empty struct for parameters. + 1005  func NewGetBrowserTestLatestResultsOptionalParameters() *GetBrowserTestLatestResultsOptionalParameters { + 1006   this := GetBrowserTestLatestResultsOptionalParameters{} + 1007   return &this + 1008  } + 1009   + 1010  // WithFromTs sets the corresponding parameter name and returns the struct. + 1011  func (r *GetBrowserTestLatestResultsOptionalParameters) WithFromTs(fromTs int64) *GetBrowserTestLatestResultsOptionalParameters { + 1012   r.FromTs = &fromTs + 1013   return r + 1014  } + 1015   + 1016  // WithToTs sets the corresponding parameter name and returns the struct. + 1017  func (r *GetBrowserTestLatestResultsOptionalParameters) WithToTs(toTs int64) *GetBrowserTestLatestResultsOptionalParameters { + 1018   r.ToTs = &toTs + 1019   return r + 1020  } + 1021   + 1022  // WithProbeDc sets the corresponding parameter name and returns the struct. + 1023  func (r *GetBrowserTestLatestResultsOptionalParameters) WithProbeDc(probeDc []string) *GetBrowserTestLatestResultsOptionalParameters { + 1024   r.ProbeDc = &probeDc + 1025   return r + 1026  } + 1027   + 1028  // GetBrowserTestLatestResults Get a browser test's latest results summaries. + 1029  // Get the last 150 test results summaries for a given Synthetic browser test. + 1030  func (a *SyntheticsApi) GetBrowserTestLatestResults(ctx _context.Context, publicId string, o ...GetBrowserTestLatestResultsOptionalParameters) (SyntheticsGetBrowserTestLatestResultsResponse, *_nethttp.Response, error) { + 1031   var ( + 1032   localVarHTTPMethod = _nethttp.MethodGet + 1033   localVarPostBody interface{} + 1034   localVarReturnValue SyntheticsGetBrowserTestLatestResultsResponse + 1035   optionalParams GetBrowserTestLatestResultsOptionalParameters + 1036   ) + 1037   + 1038   if len(o) > 1 { + 1039   return localVarReturnValue, nil, datadog.ReportError("only one argument of type GetBrowserTestLatestResultsOptionalParameters is allowed") + 1040   } + 1041   if len(o) == 1 { + 1042   optionalParams = o[0] + 1043   } + 1044   + 1045   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.GetBrowserTestLatestResults") + 1046   if err != nil { + 1047   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 1048   } + 1049   + 1050   localVarPath := localBasePath + "/api/v1/synthetics/tests/browser/{public_id}/results" + 1051   localVarPath = strings.Replace(localVarPath, "{"+"public_id"+"}", _neturl.PathEscape(datadog.ParameterToString(publicId, "")), -1) + 1052   + 1053   localVarHeaderParams := make(map[string]string) + 1054   localVarQueryParams := _neturl.Values{} + 1055   localVarFormParams := _neturl.Values{} + 1056   if optionalParams.FromTs != nil { + 1057   localVarQueryParams.Add("from_ts", datadog.ParameterToString(*optionalParams.FromTs, "")) + 1058   } + 1059   if optionalParams.ToTs != nil { + 1060   localVarQueryParams.Add("to_ts", datadog.ParameterToString(*optionalParams.ToTs, "")) + 1061   } + 1062   if optionalParams.ProbeDc != nil { + 1063   t := *optionalParams.ProbeDc + 1064   if reflect.TypeOf(t).Kind() == reflect.Slice { + 1065   s := reflect.ValueOf(t) + 1066   for i := 0; i < s.Len(); i++ { + 1067   localVarQueryParams.Add("probe_dc", datadog.ParameterToString(s.Index(i), "multi")) + 1068   } + 1069   } else { + 1070   localVarQueryParams.Add("probe_dc", datadog.ParameterToString(t, "multi")) + 1071   } + 1072   } + 1073   localVarHeaderParams["Accept"] = "application/json" + 1074   + 1075   datadog.SetAuthKeys( + 1076   ctx, + 1077   &localVarHeaderParams, + 1078   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 1079   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 1080   ) + 1081   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 1082   if err != nil { + 1083   return localVarReturnValue, nil, err + 1084   } + 1085   + 1086   localVarHTTPResponse, err := a.Client.CallAPI(req) + 1087   if err != nil || localVarHTTPResponse == nil { + 1088   return localVarReturnValue, localVarHTTPResponse, err + 1089   } + 1090   + 1091   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 1092   if err != nil { + 1093   return localVarReturnValue, localVarHTTPResponse, err + 1094   } + 1095   + 1096   if localVarHTTPResponse.StatusCode >= 300 { + 1097   newErr := datadog.GenericOpenAPIError{ + 1098   ErrorBody: localVarBody, + 1099   ErrorMessage: localVarHTTPResponse.Status, + 1100   } + 1101   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 1102   var v APIErrorResponse + 1103   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 1104   if err != nil { + 1105   return localVarReturnValue, localVarHTTPResponse, newErr + 1106   } + 1107   newErr.ErrorModel = v + 1108   } + 1109   return localVarReturnValue, localVarHTTPResponse, newErr + 1110   } + 1111   + 1112   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 1113   if err != nil { + 1114   newErr := datadog.GenericOpenAPIError{ + 1115   ErrorBody: localVarBody, + 1116   ErrorMessage: err.Error(), + 1117   } + 1118   return localVarReturnValue, localVarHTTPResponse, newErr + 1119   } + 1120   + 1121   return localVarReturnValue, localVarHTTPResponse, nil + 1122  } + 1123   + 1124  // GetBrowserTestResult Get a browser test result. + 1125  // Get a specific full result from a given Synthetic browser test. + 1126  func (a *SyntheticsApi) GetBrowserTestResult(ctx _context.Context, publicId string, resultId string) (SyntheticsBrowserTestResultFull, *_nethttp.Response, error) { + 1127   var ( + 1128   localVarHTTPMethod = _nethttp.MethodGet + 1129   localVarPostBody interface{} + 1130   localVarReturnValue SyntheticsBrowserTestResultFull + 1131   ) + 1132   + 1133   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.GetBrowserTestResult") + 1134   if err != nil { + 1135   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 1136   } + 1137   + 1138   localVarPath := localBasePath + "/api/v1/synthetics/tests/browser/{public_id}/results/{result_id}" + 1139   localVarPath = strings.Replace(localVarPath, "{"+"public_id"+"}", _neturl.PathEscape(datadog.ParameterToString(publicId, "")), -1) + 1140   localVarPath = strings.Replace(localVarPath, "{"+"result_id"+"}", _neturl.PathEscape(datadog.ParameterToString(resultId, "")), -1) + 1141   + 1142   localVarHeaderParams := make(map[string]string) + 1143   localVarQueryParams := _neturl.Values{} + 1144   localVarFormParams := _neturl.Values{} + 1145   localVarHeaderParams["Accept"] = "application/json" + 1146   + 1147   datadog.SetAuthKeys( + 1148   ctx, + 1149   &localVarHeaderParams, + 1150   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 1151   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 1152   ) + 1153   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 1154   if err != nil { + 1155   return localVarReturnValue, nil, err + 1156   } + 1157   + 1158   localVarHTTPResponse, err := a.Client.CallAPI(req) + 1159   if err != nil || localVarHTTPResponse == nil { + 1160   return localVarReturnValue, localVarHTTPResponse, err + 1161   } + 1162   + 1163   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 1164   if err != nil { + 1165   return localVarReturnValue, localVarHTTPResponse, err + 1166   } + 1167   + 1168   if localVarHTTPResponse.StatusCode >= 300 { + 1169   newErr := datadog.GenericOpenAPIError{ + 1170   ErrorBody: localVarBody, + 1171   ErrorMessage: localVarHTTPResponse.Status, + 1172   } + 1173   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 1174   var v APIErrorResponse + 1175   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 1176   if err != nil { + 1177   return localVarReturnValue, localVarHTTPResponse, newErr + 1178   } + 1179   newErr.ErrorModel = v + 1180   } + 1181   return localVarReturnValue, localVarHTTPResponse, newErr + 1182   } + 1183   + 1184   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 1185   if err != nil { + 1186   newErr := datadog.GenericOpenAPIError{ + 1187   ErrorBody: localVarBody, + 1188   ErrorMessage: err.Error(), + 1189   } + 1190   return localVarReturnValue, localVarHTTPResponse, newErr + 1191   } + 1192   + 1193   return localVarReturnValue, localVarHTTPResponse, nil + 1194  } + 1195   + 1196  // GetGlobalVariable Get a global variable. + 1197  // Get the detailed configuration of a global variable. + 1198  func (a *SyntheticsApi) GetGlobalVariable(ctx _context.Context, variableId string) (SyntheticsGlobalVariable, *_nethttp.Response, error) { + 1199   var ( + 1200   localVarHTTPMethod = _nethttp.MethodGet + 1201   localVarPostBody interface{} + 1202   localVarReturnValue SyntheticsGlobalVariable + 1203   ) + 1204   + 1205   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.GetGlobalVariable") + 1206   if err != nil { + 1207   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 1208   } + 1209   + 1210   localVarPath := localBasePath + "/api/v1/synthetics/variables/{variable_id}" + 1211   localVarPath = strings.Replace(localVarPath, "{"+"variable_id"+"}", _neturl.PathEscape(datadog.ParameterToString(variableId, "")), -1) + 1212   + 1213   localVarHeaderParams := make(map[string]string) + 1214   localVarQueryParams := _neturl.Values{} + 1215   localVarFormParams := _neturl.Values{} + 1216   localVarHeaderParams["Accept"] = "application/json" + 1217   + 1218   datadog.SetAuthKeys( + 1219   ctx, + 1220   &localVarHeaderParams, + 1221   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 1222   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 1223   ) + 1224   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 1225   if err != nil { + 1226   return localVarReturnValue, nil, err + 1227   } + 1228   + 1229   localVarHTTPResponse, err := a.Client.CallAPI(req) + 1230   if err != nil || localVarHTTPResponse == nil { + 1231   return localVarReturnValue, localVarHTTPResponse, err + 1232   } + 1233   + 1234   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 1235   if err != nil { + 1236   return localVarReturnValue, localVarHTTPResponse, err + 1237   } + 1238   + 1239   if localVarHTTPResponse.StatusCode >= 300 { + 1240   newErr := datadog.GenericOpenAPIError{ + 1241   ErrorBody: localVarBody, + 1242   ErrorMessage: localVarHTTPResponse.Status, + 1243   } + 1244   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 1245   var v APIErrorResponse + 1246   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 1247   if err != nil { + 1248   return localVarReturnValue, localVarHTTPResponse, newErr + 1249   } + 1250   newErr.ErrorModel = v + 1251   } + 1252   return localVarReturnValue, localVarHTTPResponse, newErr + 1253   } + 1254   + 1255   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 1256   if err != nil { + 1257   newErr := datadog.GenericOpenAPIError{ + 1258   ErrorBody: localVarBody, + 1259   ErrorMessage: err.Error(), + 1260   } + 1261   return localVarReturnValue, localVarHTTPResponse, newErr + 1262   } + 1263   + 1264   return localVarReturnValue, localVarHTTPResponse, nil + 1265  } + 1266   + 1267  // GetMobileTest Get a Mobile test. + 1268  // Get the detailed configuration associated with + 1269  // a Synthetic Mobile test. + 1270  func (a *SyntheticsApi) GetMobileTest(ctx _context.Context, publicId string) (SyntheticsMobileTest, *_nethttp.Response, error) { + 1271   var ( + 1272   localVarHTTPMethod = _nethttp.MethodGet + 1273   localVarPostBody interface{} + 1274   localVarReturnValue SyntheticsMobileTest + 1275   ) + 1276   + 1277   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.GetMobileTest") + 1278   if err != nil { + 1279   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 1280   } 1281   - 1282   localVarHeaderParams := make(map[string]string) - 1283   localVarQueryParams := _neturl.Values{} - 1284   localVarFormParams := _neturl.Values{} - 1285   localVarHeaderParams["Accept"] = "application/json" - 1286   - 1287   datadog.SetAuthKeys( - 1288   ctx, - 1289   &localVarHeaderParams, - 1290   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 1291   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 1292   ) - 1293   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 1294   if err != nil { - 1295   return localVarReturnValue, nil, err - 1296   } - 1297   - 1298   localVarHTTPResponse, err := a.Client.CallAPI(req) - 1299   if err != nil || localVarHTTPResponse == nil { - 1300   return localVarReturnValue, localVarHTTPResponse, err - 1301   } - 1302   - 1303   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 1304   if err != nil { - 1305   return localVarReturnValue, localVarHTTPResponse, err - 1306   } - 1307   - 1308   if localVarHTTPResponse.StatusCode >= 300 { - 1309   newErr := datadog.GenericOpenAPIError{ - 1310   ErrorBody: localVarBody, - 1311   ErrorMessage: localVarHTTPResponse.Status, - 1312   } - 1313   if localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { - 1314   var v APIErrorResponse - 1315   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 1316   if err != nil { - 1317   return localVarReturnValue, localVarHTTPResponse, newErr - 1318   } - 1319   newErr.ErrorModel = v - 1320   } - 1321   return localVarReturnValue, localVarHTTPResponse, newErr - 1322   } - 1323   - 1324   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 1325   if err != nil { - 1326   newErr := datadog.GenericOpenAPIError{ - 1327   ErrorBody: localVarBody, - 1328   ErrorMessage: err.Error(), - 1329   } - 1330   return localVarReturnValue, localVarHTTPResponse, newErr - 1331   } - 1332   - 1333   return localVarReturnValue, localVarHTTPResponse, nil - 1334  } + 1282   localVarPath := localBasePath + "/api/v1/synthetics/tests/mobile/{public_id}" + 1283   localVarPath = strings.Replace(localVarPath, "{"+"public_id"+"}", _neturl.PathEscape(datadog.ParameterToString(publicId, "")), -1) + 1284   + 1285   localVarHeaderParams := make(map[string]string) + 1286   localVarQueryParams := _neturl.Values{} + 1287   localVarFormParams := _neturl.Values{} + 1288   localVarHeaderParams["Accept"] = "application/json" + 1289   + 1290   datadog.SetAuthKeys( + 1291   ctx, + 1292   &localVarHeaderParams, + 1293   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 1294   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 1295   ) + 1296   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 1297   if err != nil { + 1298   return localVarReturnValue, nil, err + 1299   } + 1300   + 1301   localVarHTTPResponse, err := a.Client.CallAPI(req) + 1302   if err != nil || localVarHTTPResponse == nil { + 1303   return localVarReturnValue, localVarHTTPResponse, err + 1304   } + 1305   + 1306   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 1307   if err != nil { + 1308   return localVarReturnValue, localVarHTTPResponse, err + 1309   } + 1310   + 1311   if localVarHTTPResponse.StatusCode >= 300 { + 1312   newErr := datadog.GenericOpenAPIError{ + 1313   ErrorBody: localVarBody, + 1314   ErrorMessage: localVarHTTPResponse.Status, + 1315   } + 1316   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 1317   var v APIErrorResponse + 1318   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 1319   if err != nil { + 1320   return localVarReturnValue, localVarHTTPResponse, newErr + 1321   } + 1322   newErr.ErrorModel = v + 1323   } + 1324   return localVarReturnValue, localVarHTTPResponse, newErr + 1325   } + 1326   + 1327   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 1328   if err != nil { + 1329   newErr := datadog.GenericOpenAPIError{ + 1330   ErrorBody: localVarBody, + 1331   ErrorMessage: err.Error(), + 1332   } + 1333   return localVarReturnValue, localVarHTTPResponse, newErr + 1334   } 1335   - 1336  // GetSyntheticsDefaultLocations Get the default locations. - 1337  // Get the default locations settings. - 1338  func (a *SyntheticsApi) GetSyntheticsDefaultLocations(ctx _context.Context) ([]string, *_nethttp.Response, error) { - 1339   var ( - 1340   localVarHTTPMethod = _nethttp.MethodGet - 1341   localVarPostBody interface{} - 1342   localVarReturnValue []string - 1343   ) - 1344   - 1345   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.GetSyntheticsDefaultLocations") - 1346   if err != nil { - 1347   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} - 1348   } - 1349   - 1350   localVarPath := localBasePath + "/api/v1/synthetics/settings/default_locations" - 1351   - 1352   localVarHeaderParams := make(map[string]string) - 1353   localVarQueryParams := _neturl.Values{} - 1354   localVarFormParams := _neturl.Values{} - 1355   localVarHeaderParams["Accept"] = "application/json" - 1356   - 1357   datadog.SetAuthKeys( - 1358   ctx, - 1359   &localVarHeaderParams, - 1360   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 1361   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 1362   ) - 1363   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 1364   if err != nil { - 1365   return localVarReturnValue, nil, err - 1366   } - 1367   - 1368   localVarHTTPResponse, err := a.Client.CallAPI(req) - 1369   if err != nil || localVarHTTPResponse == nil { - 1370   return localVarReturnValue, localVarHTTPResponse, err - 1371   } - 1372   - 1373   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 1374   if err != nil { - 1375   return localVarReturnValue, localVarHTTPResponse, err - 1376   } - 1377   - 1378   if localVarHTTPResponse.StatusCode >= 300 { - 1379   newErr := datadog.GenericOpenAPIError{ - 1380   ErrorBody: localVarBody, - 1381   ErrorMessage: localVarHTTPResponse.Status, - 1382   } - 1383   if localVarHTTPResponse.StatusCode == 429 { - 1384   var v APIErrorResponse - 1385   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 1386   if err != nil { - 1387   return localVarReturnValue, localVarHTTPResponse, newErr - 1388   } - 1389   newErr.ErrorModel = v - 1390   } - 1391   return localVarReturnValue, localVarHTTPResponse, newErr - 1392   } - 1393   - 1394   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 1395   if err != nil { - 1396   newErr := datadog.GenericOpenAPIError{ - 1397   ErrorBody: localVarBody, - 1398   ErrorMessage: err.Error(), - 1399   } - 1400   return localVarReturnValue, localVarHTTPResponse, newErr - 1401   } - 1402   - 1403   return localVarReturnValue, localVarHTTPResponse, nil - 1404  } - 1405   - 1406  // GetTest Get a test configuration. - 1407  // Get the detailed configuration associated with a Synthetic test. - 1408  func (a *SyntheticsApi) GetTest(ctx _context.Context, publicId string) (SyntheticsTestDetails, *_nethttp.Response, error) { - 1409   var ( - 1410   localVarHTTPMethod = _nethttp.MethodGet - 1411   localVarPostBody interface{} - 1412   localVarReturnValue SyntheticsTestDetails - 1413   ) - 1414   - 1415   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.GetTest") - 1416   if err != nil { - 1417   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} - 1418   } - 1419   - 1420   localVarPath := localBasePath + "/api/v1/synthetics/tests/{public_id}" - 1421   localVarPath = strings.Replace(localVarPath, "{"+"public_id"+"}", _neturl.PathEscape(datadog.ParameterToString(publicId, "")), -1) - 1422   - 1423   localVarHeaderParams := make(map[string]string) - 1424   localVarQueryParams := _neturl.Values{} - 1425   localVarFormParams := _neturl.Values{} - 1426   localVarHeaderParams["Accept"] = "application/json" - 1427   - 1428   datadog.SetAuthKeys( - 1429   ctx, - 1430   &localVarHeaderParams, - 1431   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 1432   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 1433   ) - 1434   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 1435   if err != nil { - 1436   return localVarReturnValue, nil, err - 1437   } - 1438   - 1439   localVarHTTPResponse, err := a.Client.CallAPI(req) - 1440   if err != nil || localVarHTTPResponse == nil { - 1441   return localVarReturnValue, localVarHTTPResponse, err - 1442   } - 1443   - 1444   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 1445   if err != nil { - 1446   return localVarReturnValue, localVarHTTPResponse, err - 1447   } - 1448   - 1449   if localVarHTTPResponse.StatusCode >= 300 { - 1450   newErr := datadog.GenericOpenAPIError{ - 1451   ErrorBody: localVarBody, - 1452   ErrorMessage: localVarHTTPResponse.Status, - 1453   } - 1454   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { - 1455   var v APIErrorResponse - 1456   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 1457   if err != nil { - 1458   return localVarReturnValue, localVarHTTPResponse, newErr - 1459   } - 1460   newErr.ErrorModel = v - 1461   } - 1462   return localVarReturnValue, localVarHTTPResponse, newErr - 1463   } - 1464   - 1465   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 1466   if err != nil { - 1467   newErr := datadog.GenericOpenAPIError{ - 1468   ErrorBody: localVarBody, - 1469   ErrorMessage: err.Error(), - 1470   } - 1471   return localVarReturnValue, localVarHTTPResponse, newErr - 1472   } - 1473   - 1474   return localVarReturnValue, localVarHTTPResponse, nil - 1475  } - 1476   - 1477  // ListGlobalVariables Get all global variables. - 1478  // Get the list of all Synthetic global variables. - 1479  func (a *SyntheticsApi) ListGlobalVariables(ctx _context.Context) (SyntheticsListGlobalVariablesResponse, *_nethttp.Response, error) { - 1480   var ( - 1481   localVarHTTPMethod = _nethttp.MethodGet - 1482   localVarPostBody interface{} - 1483   localVarReturnValue SyntheticsListGlobalVariablesResponse - 1484   ) - 1485   - 1486   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.ListGlobalVariables") - 1487   if err != nil { - 1488   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} - 1489   } - 1490   - 1491   localVarPath := localBasePath + "/api/v1/synthetics/variables" - 1492   - 1493   localVarHeaderParams := make(map[string]string) - 1494   localVarQueryParams := _neturl.Values{} - 1495   localVarFormParams := _neturl.Values{} - 1496   localVarHeaderParams["Accept"] = "application/json" - 1497   - 1498   datadog.SetAuthKeys( - 1499   ctx, - 1500   &localVarHeaderParams, - 1501   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 1502   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 1503   ) - 1504   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 1505   if err != nil { - 1506   return localVarReturnValue, nil, err - 1507   } - 1508   - 1509   localVarHTTPResponse, err := a.Client.CallAPI(req) - 1510   if err != nil || localVarHTTPResponse == nil { - 1511   return localVarReturnValue, localVarHTTPResponse, err - 1512   } - 1513   - 1514   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 1515   if err != nil { - 1516   return localVarReturnValue, localVarHTTPResponse, err - 1517   } - 1518   - 1519   if localVarHTTPResponse.StatusCode >= 300 { - 1520   newErr := datadog.GenericOpenAPIError{ - 1521   ErrorBody: localVarBody, - 1522   ErrorMessage: localVarHTTPResponse.Status, - 1523   } - 1524   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 429 { - 1525   var v APIErrorResponse - 1526   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 1527   if err != nil { - 1528   return localVarReturnValue, localVarHTTPResponse, newErr - 1529   } - 1530   newErr.ErrorModel = v - 1531   } - 1532   return localVarReturnValue, localVarHTTPResponse, newErr - 1533   } - 1534   - 1535   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 1536   if err != nil { - 1537   newErr := datadog.GenericOpenAPIError{ - 1538   ErrorBody: localVarBody, - 1539   ErrorMessage: err.Error(), - 1540   } - 1541   return localVarReturnValue, localVarHTTPResponse, newErr - 1542   } - 1543   - 1544   return localVarReturnValue, localVarHTTPResponse, nil - 1545  } - 1546   - 1547  // ListLocations Get all locations (public and private). - 1548  // Get the list of public and private locations available for Synthetic - 1549  // tests. No arguments required. - 1550  func (a *SyntheticsApi) ListLocations(ctx _context.Context) (SyntheticsLocations, *_nethttp.Response, error) { - 1551   var ( - 1552   localVarHTTPMethod = _nethttp.MethodGet - 1553   localVarPostBody interface{} - 1554   localVarReturnValue SyntheticsLocations - 1555   ) - 1556   - 1557   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.ListLocations") - 1558   if err != nil { - 1559   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} - 1560   } - 1561   - 1562   localVarPath := localBasePath + "/api/v1/synthetics/locations" - 1563   - 1564   localVarHeaderParams := make(map[string]string) - 1565   localVarQueryParams := _neturl.Values{} - 1566   localVarFormParams := _neturl.Values{} - 1567   localVarHeaderParams["Accept"] = "application/json" - 1568   - 1569   datadog.SetAuthKeys( - 1570   ctx, - 1571   &localVarHeaderParams, - 1572   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 1573   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 1574   ) - 1575   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 1576   if err != nil { - 1577   return localVarReturnValue, nil, err - 1578   } - 1579   - 1580   localVarHTTPResponse, err := a.Client.CallAPI(req) - 1581   if err != nil || localVarHTTPResponse == nil { - 1582   return localVarReturnValue, localVarHTTPResponse, err - 1583   } - 1584   - 1585   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 1586   if err != nil { - 1587   return localVarReturnValue, localVarHTTPResponse, err - 1588   } - 1589   - 1590   if localVarHTTPResponse.StatusCode >= 300 { - 1591   newErr := datadog.GenericOpenAPIError{ - 1592   ErrorBody: localVarBody, - 1593   ErrorMessage: localVarHTTPResponse.Status, - 1594   } - 1595   if localVarHTTPResponse.StatusCode == 429 { - 1596   var v APIErrorResponse - 1597   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 1598   if err != nil { - 1599   return localVarReturnValue, localVarHTTPResponse, newErr - 1600   } - 1601   newErr.ErrorModel = v - 1602   } - 1603   return localVarReturnValue, localVarHTTPResponse, newErr - 1604   } - 1605   - 1606   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 1607   if err != nil { - 1608   newErr := datadog.GenericOpenAPIError{ - 1609   ErrorBody: localVarBody, - 1610   ErrorMessage: err.Error(), - 1611   } - 1612   return localVarReturnValue, localVarHTTPResponse, newErr - 1613   } - 1614   - 1615   return localVarReturnValue, localVarHTTPResponse, nil - 1616  } - 1617   - 1618  // ListTestsOptionalParameters holds optional parameters for ListTests. - 1619  type ListTestsOptionalParameters struct { - 1620   PageSize *int64 - 1621   PageNumber *int64 - 1622  } - 1623   - 1624  // NewListTestsOptionalParameters creates an empty struct for parameters. - 1625  func NewListTestsOptionalParameters() *ListTestsOptionalParameters { - 1626   this := ListTestsOptionalParameters{} - 1627   return &this - 1628  } - 1629   - 1630  // WithPageSize sets the corresponding parameter name and returns the struct. - 1631  func (r *ListTestsOptionalParameters) WithPageSize(pageSize int64) *ListTestsOptionalParameters { - 1632   r.PageSize = &pageSize - 1633   return r - 1634  } + 1336   return localVarReturnValue, localVarHTTPResponse, nil + 1337  } + 1338   + 1339  // GetPrivateLocation Get a private location. + 1340  // Get a Synthetic private location. + 1341  func (a *SyntheticsApi) GetPrivateLocation(ctx _context.Context, locationId string) (SyntheticsPrivateLocation, *_nethttp.Response, error) { + 1342   var ( + 1343   localVarHTTPMethod = _nethttp.MethodGet + 1344   localVarPostBody interface{} + 1345   localVarReturnValue SyntheticsPrivateLocation + 1346   ) + 1347   + 1348   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.GetPrivateLocation") + 1349   if err != nil { + 1350   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 1351   } + 1352   + 1353   localVarPath := localBasePath + "/api/v1/synthetics/private-locations/{location_id}" + 1354   localVarPath = strings.Replace(localVarPath, "{"+"location_id"+"}", _neturl.PathEscape(datadog.ParameterToString(locationId, "")), -1) + 1355   + 1356   localVarHeaderParams := make(map[string]string) + 1357   localVarQueryParams := _neturl.Values{} + 1358   localVarFormParams := _neturl.Values{} + 1359   localVarHeaderParams["Accept"] = "application/json" + 1360   + 1361   datadog.SetAuthKeys( + 1362   ctx, + 1363   &localVarHeaderParams, + 1364   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 1365   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 1366   ) + 1367   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 1368   if err != nil { + 1369   return localVarReturnValue, nil, err + 1370   } + 1371   + 1372   localVarHTTPResponse, err := a.Client.CallAPI(req) + 1373   if err != nil || localVarHTTPResponse == nil { + 1374   return localVarReturnValue, localVarHTTPResponse, err + 1375   } + 1376   + 1377   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 1378   if err != nil { + 1379   return localVarReturnValue, localVarHTTPResponse, err + 1380   } + 1381   + 1382   if localVarHTTPResponse.StatusCode >= 300 { + 1383   newErr := datadog.GenericOpenAPIError{ + 1384   ErrorBody: localVarBody, + 1385   ErrorMessage: localVarHTTPResponse.Status, + 1386   } + 1387   if localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 1388   var v APIErrorResponse + 1389   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 1390   if err != nil { + 1391   return localVarReturnValue, localVarHTTPResponse, newErr + 1392   } + 1393   newErr.ErrorModel = v + 1394   } + 1395   return localVarReturnValue, localVarHTTPResponse, newErr + 1396   } + 1397   + 1398   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 1399   if err != nil { + 1400   newErr := datadog.GenericOpenAPIError{ + 1401   ErrorBody: localVarBody, + 1402   ErrorMessage: err.Error(), + 1403   } + 1404   return localVarReturnValue, localVarHTTPResponse, newErr + 1405   } + 1406   + 1407   return localVarReturnValue, localVarHTTPResponse, nil + 1408  } + 1409   + 1410  // GetSyntheticsCIBatch Get details of batch. + 1411  // Get a batch's updated details. + 1412  func (a *SyntheticsApi) GetSyntheticsCIBatch(ctx _context.Context, batchId string) (SyntheticsBatchDetails, *_nethttp.Response, error) { + 1413   var ( + 1414   localVarHTTPMethod = _nethttp.MethodGet + 1415   localVarPostBody interface{} + 1416   localVarReturnValue SyntheticsBatchDetails + 1417   ) + 1418   + 1419   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.GetSyntheticsCIBatch") + 1420   if err != nil { + 1421   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 1422   } + 1423   + 1424   localVarPath := localBasePath + "/api/v1/synthetics/ci/batch/{batch_id}" + 1425   localVarPath = strings.Replace(localVarPath, "{"+"batch_id"+"}", _neturl.PathEscape(datadog.ParameterToString(batchId, "")), -1) + 1426   + 1427   localVarHeaderParams := make(map[string]string) + 1428   localVarQueryParams := _neturl.Values{} + 1429   localVarFormParams := _neturl.Values{} + 1430   localVarHeaderParams["Accept"] = "application/json" + 1431   + 1432   datadog.SetAuthKeys( + 1433   ctx, + 1434   &localVarHeaderParams, + 1435   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 1436   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 1437   ) + 1438   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 1439   if err != nil { + 1440   return localVarReturnValue, nil, err + 1441   } + 1442   + 1443   localVarHTTPResponse, err := a.Client.CallAPI(req) + 1444   if err != nil || localVarHTTPResponse == nil { + 1445   return localVarReturnValue, localVarHTTPResponse, err + 1446   } + 1447   + 1448   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 1449   if err != nil { + 1450   return localVarReturnValue, localVarHTTPResponse, err + 1451   } + 1452   + 1453   if localVarHTTPResponse.StatusCode >= 300 { + 1454   newErr := datadog.GenericOpenAPIError{ + 1455   ErrorBody: localVarBody, + 1456   ErrorMessage: localVarHTTPResponse.Status, + 1457   } + 1458   if localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 1459   var v APIErrorResponse + 1460   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 1461   if err != nil { + 1462   return localVarReturnValue, localVarHTTPResponse, newErr + 1463   } + 1464   newErr.ErrorModel = v + 1465   } + 1466   return localVarReturnValue, localVarHTTPResponse, newErr + 1467   } + 1468   + 1469   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 1470   if err != nil { + 1471   newErr := datadog.GenericOpenAPIError{ + 1472   ErrorBody: localVarBody, + 1473   ErrorMessage: err.Error(), + 1474   } + 1475   return localVarReturnValue, localVarHTTPResponse, newErr + 1476   } + 1477   + 1478   return localVarReturnValue, localVarHTTPResponse, nil + 1479  } + 1480   + 1481  // GetSyntheticsDefaultLocations Get the default locations. + 1482  // Get the default locations settings. + 1483  func (a *SyntheticsApi) GetSyntheticsDefaultLocations(ctx _context.Context) ([]string, *_nethttp.Response, error) { + 1484   var ( + 1485   localVarHTTPMethod = _nethttp.MethodGet + 1486   localVarPostBody interface{} + 1487   localVarReturnValue []string + 1488   ) + 1489   + 1490   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.GetSyntheticsDefaultLocations") + 1491   if err != nil { + 1492   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 1493   } + 1494   + 1495   localVarPath := localBasePath + "/api/v1/synthetics/settings/default_locations" + 1496   + 1497   localVarHeaderParams := make(map[string]string) + 1498   localVarQueryParams := _neturl.Values{} + 1499   localVarFormParams := _neturl.Values{} + 1500   localVarHeaderParams["Accept"] = "application/json" + 1501   + 1502   datadog.SetAuthKeys( + 1503   ctx, + 1504   &localVarHeaderParams, + 1505   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 1506   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 1507   ) + 1508   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 1509   if err != nil { + 1510   return localVarReturnValue, nil, err + 1511   } + 1512   + 1513   localVarHTTPResponse, err := a.Client.CallAPI(req) + 1514   if err != nil || localVarHTTPResponse == nil { + 1515   return localVarReturnValue, localVarHTTPResponse, err + 1516   } + 1517   + 1518   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 1519   if err != nil { + 1520   return localVarReturnValue, localVarHTTPResponse, err + 1521   } + 1522   + 1523   if localVarHTTPResponse.StatusCode >= 300 { + 1524   newErr := datadog.GenericOpenAPIError{ + 1525   ErrorBody: localVarBody, + 1526   ErrorMessage: localVarHTTPResponse.Status, + 1527   } + 1528   if localVarHTTPResponse.StatusCode == 429 { + 1529   var v APIErrorResponse + 1530   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 1531   if err != nil { + 1532   return localVarReturnValue, localVarHTTPResponse, newErr + 1533   } + 1534   newErr.ErrorModel = v + 1535   } + 1536   return localVarReturnValue, localVarHTTPResponse, newErr + 1537   } + 1538   + 1539   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 1540   if err != nil { + 1541   newErr := datadog.GenericOpenAPIError{ + 1542   ErrorBody: localVarBody, + 1543   ErrorMessage: err.Error(), + 1544   } + 1545   return localVarReturnValue, localVarHTTPResponse, newErr + 1546   } + 1547   + 1548   return localVarReturnValue, localVarHTTPResponse, nil + 1549  } + 1550   + 1551  // GetTest Get a test configuration. + 1552  // Get the detailed configuration associated with a Synthetic test. + 1553  func (a *SyntheticsApi) GetTest(ctx _context.Context, publicId string) (SyntheticsTestDetails, *_nethttp.Response, error) { + 1554   var ( + 1555   localVarHTTPMethod = _nethttp.MethodGet + 1556   localVarPostBody interface{} + 1557   localVarReturnValue SyntheticsTestDetails + 1558   ) + 1559   + 1560   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.GetTest") + 1561   if err != nil { + 1562   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 1563   } + 1564   + 1565   localVarPath := localBasePath + "/api/v1/synthetics/tests/{public_id}" + 1566   localVarPath = strings.Replace(localVarPath, "{"+"public_id"+"}", _neturl.PathEscape(datadog.ParameterToString(publicId, "")), -1) + 1567   + 1568   localVarHeaderParams := make(map[string]string) + 1569   localVarQueryParams := _neturl.Values{} + 1570   localVarFormParams := _neturl.Values{} + 1571   localVarHeaderParams["Accept"] = "application/json" + 1572   + 1573   datadog.SetAuthKeys( + 1574   ctx, + 1575   &localVarHeaderParams, + 1576   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 1577   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 1578   ) + 1579   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 1580   if err != nil { + 1581   return localVarReturnValue, nil, err + 1582   } + 1583   + 1584   localVarHTTPResponse, err := a.Client.CallAPI(req) + 1585   if err != nil || localVarHTTPResponse == nil { + 1586   return localVarReturnValue, localVarHTTPResponse, err + 1587   } + 1588   + 1589   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 1590   if err != nil { + 1591   return localVarReturnValue, localVarHTTPResponse, err + 1592   } + 1593   + 1594   if localVarHTTPResponse.StatusCode >= 300 { + 1595   newErr := datadog.GenericOpenAPIError{ + 1596   ErrorBody: localVarBody, + 1597   ErrorMessage: localVarHTTPResponse.Status, + 1598   } + 1599   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 1600   var v APIErrorResponse + 1601   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 1602   if err != nil { + 1603   return localVarReturnValue, localVarHTTPResponse, newErr + 1604   } + 1605   newErr.ErrorModel = v + 1606   } + 1607   return localVarReturnValue, localVarHTTPResponse, newErr + 1608   } + 1609   + 1610   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 1611   if err != nil { + 1612   newErr := datadog.GenericOpenAPIError{ + 1613   ErrorBody: localVarBody, + 1614   ErrorMessage: err.Error(), + 1615   } + 1616   return localVarReturnValue, localVarHTTPResponse, newErr + 1617   } + 1618   + 1619   return localVarReturnValue, localVarHTTPResponse, nil + 1620  } + 1621   + 1622  // ListGlobalVariables Get all global variables. + 1623  // Get the list of all Synthetic global variables. + 1624  func (a *SyntheticsApi) ListGlobalVariables(ctx _context.Context) (SyntheticsListGlobalVariablesResponse, *_nethttp.Response, error) { + 1625   var ( + 1626   localVarHTTPMethod = _nethttp.MethodGet + 1627   localVarPostBody interface{} + 1628   localVarReturnValue SyntheticsListGlobalVariablesResponse + 1629   ) + 1630   + 1631   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.ListGlobalVariables") + 1632   if err != nil { + 1633   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 1634   } 1635   - 1636  // WithPageNumber sets the corresponding parameter name and returns the struct. - 1637  func (r *ListTestsOptionalParameters) WithPageNumber(pageNumber int64) *ListTestsOptionalParameters { - 1638   r.PageNumber = &pageNumber - 1639   return r - 1640  } - 1641   - 1642  // ListTests Get the list of all Synthetic tests. - 1643  // Get the list of all Synthetic tests. - 1644  func (a *SyntheticsApi) ListTests(ctx _context.Context, o ...ListTestsOptionalParameters) (SyntheticsListTestsResponse, *_nethttp.Response, error) { - 1645   var ( - 1646   localVarHTTPMethod = _nethttp.MethodGet - 1647   localVarPostBody interface{} - 1648   localVarReturnValue SyntheticsListTestsResponse - 1649   optionalParams ListTestsOptionalParameters - 1650   ) - 1651   - 1652   if len(o) > 1 { - 1653   return localVarReturnValue, nil, datadog.ReportError("only one argument of type ListTestsOptionalParameters is allowed") - 1654   } - 1655   if len(o) == 1 { - 1656   optionalParams = o[0] + 1636   localVarPath := localBasePath + "/api/v1/synthetics/variables" + 1637   + 1638   localVarHeaderParams := make(map[string]string) + 1639   localVarQueryParams := _neturl.Values{} + 1640   localVarFormParams := _neturl.Values{} + 1641   localVarHeaderParams["Accept"] = "application/json" + 1642   + 1643   datadog.SetAuthKeys( + 1644   ctx, + 1645   &localVarHeaderParams, + 1646   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 1647   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 1648   ) + 1649   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 1650   if err != nil { + 1651   return localVarReturnValue, nil, err + 1652   } + 1653   + 1654   localVarHTTPResponse, err := a.Client.CallAPI(req) + 1655   if err != nil || localVarHTTPResponse == nil { + 1656   return localVarReturnValue, localVarHTTPResponse, err 1657   } 1658   - 1659   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.ListTests") + 1659   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) 1660   if err != nil { - 1661   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 1661   return localVarReturnValue, localVarHTTPResponse, err 1662   } 1663   - 1664   localVarPath := localBasePath + "/api/v1/synthetics/tests" - 1665   - 1666   localVarHeaderParams := make(map[string]string) - 1667   localVarQueryParams := _neturl.Values{} - 1668   localVarFormParams := _neturl.Values{} - 1669   if optionalParams.PageSize != nil { - 1670   localVarQueryParams.Add("page_size", datadog.ParameterToString(*optionalParams.PageSize, "")) - 1671   } - 1672   if optionalParams.PageNumber != nil { - 1673   localVarQueryParams.Add("page_number", datadog.ParameterToString(*optionalParams.PageNumber, "")) - 1674   } - 1675   localVarHeaderParams["Accept"] = "application/json" - 1676   - 1677   datadog.SetAuthKeys( - 1678   ctx, - 1679   &localVarHeaderParams, - 1680   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 1681   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 1682   ) - 1683   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 1684   if err != nil { - 1685   return localVarReturnValue, nil, err - 1686   } - 1687   - 1688   localVarHTTPResponse, err := a.Client.CallAPI(req) - 1689   if err != nil || localVarHTTPResponse == nil { - 1690   return localVarReturnValue, localVarHTTPResponse, err - 1691   } - 1692   - 1693   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 1694   if err != nil { - 1695   return localVarReturnValue, localVarHTTPResponse, err - 1696   } - 1697   - 1698   if localVarHTTPResponse.StatusCode >= 300 { - 1699   newErr := datadog.GenericOpenAPIError{ - 1700   ErrorBody: localVarBody, - 1701   ErrorMessage: localVarHTTPResponse.Status, - 1702   } - 1703   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { - 1704   var v APIErrorResponse - 1705   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 1706   if err != nil { - 1707   return localVarReturnValue, localVarHTTPResponse, newErr - 1708   } - 1709   newErr.ErrorModel = v - 1710   } - 1711   return localVarReturnValue, localVarHTTPResponse, newErr - 1712   } + 1664   if localVarHTTPResponse.StatusCode >= 300 { + 1665   newErr := datadog.GenericOpenAPIError{ + 1666   ErrorBody: localVarBody, + 1667   ErrorMessage: localVarHTTPResponse.Status, + 1668   } + 1669   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 429 { + 1670   var v APIErrorResponse + 1671   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 1672   if err != nil { + 1673   return localVarReturnValue, localVarHTTPResponse, newErr + 1674   } + 1675   newErr.ErrorModel = v + 1676   } + 1677   return localVarReturnValue, localVarHTTPResponse, newErr + 1678   } + 1679   + 1680   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 1681   if err != nil { + 1682   newErr := datadog.GenericOpenAPIError{ + 1683   ErrorBody: localVarBody, + 1684   ErrorMessage: err.Error(), + 1685   } + 1686   return localVarReturnValue, localVarHTTPResponse, newErr + 1687   } + 1688   + 1689   return localVarReturnValue, localVarHTTPResponse, nil + 1690  } + 1691   + 1692  // ListLocations Get all locations (public and private). + 1693  // Get the list of public and private locations available for Synthetic + 1694  // tests. No arguments required. + 1695  func (a *SyntheticsApi) ListLocations(ctx _context.Context) (SyntheticsLocations, *_nethttp.Response, error) { + 1696   var ( + 1697   localVarHTTPMethod = _nethttp.MethodGet + 1698   localVarPostBody interface{} + 1699   localVarReturnValue SyntheticsLocations + 1700   ) + 1701   + 1702   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.ListLocations") + 1703   if err != nil { + 1704   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 1705   } + 1706   + 1707   localVarPath := localBasePath + "/api/v1/synthetics/locations" + 1708   + 1709   localVarHeaderParams := make(map[string]string) + 1710   localVarQueryParams := _neturl.Values{} + 1711   localVarFormParams := _neturl.Values{} + 1712   localVarHeaderParams["Accept"] = "application/json" 1713   - 1714   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 1715   if err != nil { - 1716   newErr := datadog.GenericOpenAPIError{ - 1717   ErrorBody: localVarBody, - 1718   ErrorMessage: err.Error(), - 1719   } - 1720   return localVarReturnValue, localVarHTTPResponse, newErr - 1721   } - 1722   - 1723   return localVarReturnValue, localVarHTTPResponse, nil - 1724  } - 1725   - 1726  // ListTestsWithPagination provides a paginated version of ListTests returning a channel with all items. - 1727  func (a *SyntheticsApi) ListTestsWithPagination(ctx _context.Context, o ...ListTestsOptionalParameters) (<-chan datadog.PaginationResult[SyntheticsTestDetails], func()) { - 1728   ctx, cancel := _context.WithCancel(ctx) - 1729   pageSize_ := int64(100) - 1730   if len(o) == 0 { - 1731   o = append(o, ListTestsOptionalParameters{}) - 1732   } - 1733   if o[0].PageSize != nil { - 1734   pageSize_ = *o[0].PageSize - 1735   } - 1736   o[0].PageSize = &pageSize_ - 1737   page_ := int64(0) - 1738   o[0].PageNumber = &page_ - 1739   - 1740   items := make(chan datadog.PaginationResult[SyntheticsTestDetails], pageSize_) - 1741   go func() { - 1742   for { - 1743   resp, _, err := a.ListTests(ctx, o...) - 1744   if err != nil { - 1745   var returnItem SyntheticsTestDetails - 1746   items <- datadog.PaginationResult[SyntheticsTestDetails]{Item: returnItem, Error: err} - 1747   break - 1748   } - 1749   respTests, ok := resp.GetTestsOk() - 1750   if !ok { - 1751   break - 1752   } - 1753   results := *respTests - 1754   - 1755   for _, item := range results { - 1756   select { - 1757   case items <- datadog.PaginationResult[SyntheticsTestDetails]{Item: item, Error: nil}: - 1758   case <-ctx.Done(): - 1759   close(items) - 1760   return - 1761   } - 1762   } - 1763   if len(results) < int(pageSize_) { - 1764   break - 1765   } - 1766   pageOffset_ := *o[0].PageNumber + 1 - 1767   o[0].PageNumber = &pageOffset_ - 1768   } - 1769   close(items) - 1770   }() - 1771   return items, cancel - 1772  } - 1773   - 1774  // PatchTest Patch a Synthetic test. - 1775  // Patch the configuration of a Synthetic test with partial data. - 1776  func (a *SyntheticsApi) PatchTest(ctx _context.Context, publicId string, body SyntheticsPatchTestBody) (SyntheticsTestDetails, *_nethttp.Response, error) { - 1777   var ( - 1778   localVarHTTPMethod = _nethttp.MethodPatch - 1779   localVarPostBody interface{} - 1780   localVarReturnValue SyntheticsTestDetails - 1781   ) - 1782   - 1783   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.PatchTest") - 1784   if err != nil { - 1785   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} - 1786   } - 1787   - 1788   localVarPath := localBasePath + "/api/v1/synthetics/tests/{public_id}" - 1789   localVarPath = strings.Replace(localVarPath, "{"+"public_id"+"}", _neturl.PathEscape(datadog.ParameterToString(publicId, "")), -1) - 1790   - 1791   localVarHeaderParams := make(map[string]string) - 1792   localVarQueryParams := _neturl.Values{} - 1793   localVarFormParams := _neturl.Values{} - 1794   localVarHeaderParams["Content-Type"] = "application/json" - 1795   localVarHeaderParams["Accept"] = "application/json" + 1714   datadog.SetAuthKeys( + 1715   ctx, + 1716   &localVarHeaderParams, + 1717   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 1718   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 1719   ) + 1720   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 1721   if err != nil { + 1722   return localVarReturnValue, nil, err + 1723   } + 1724   + 1725   localVarHTTPResponse, err := a.Client.CallAPI(req) + 1726   if err != nil || localVarHTTPResponse == nil { + 1727   return localVarReturnValue, localVarHTTPResponse, err + 1728   } + 1729   + 1730   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 1731   if err != nil { + 1732   return localVarReturnValue, localVarHTTPResponse, err + 1733   } + 1734   + 1735   if localVarHTTPResponse.StatusCode >= 300 { + 1736   newErr := datadog.GenericOpenAPIError{ + 1737   ErrorBody: localVarBody, + 1738   ErrorMessage: localVarHTTPResponse.Status, + 1739   } + 1740   if localVarHTTPResponse.StatusCode == 429 { + 1741   var v APIErrorResponse + 1742   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 1743   if err != nil { + 1744   return localVarReturnValue, localVarHTTPResponse, newErr + 1745   } + 1746   newErr.ErrorModel = v + 1747   } + 1748   return localVarReturnValue, localVarHTTPResponse, newErr + 1749   } + 1750   + 1751   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 1752   if err != nil { + 1753   newErr := datadog.GenericOpenAPIError{ + 1754   ErrorBody: localVarBody, + 1755   ErrorMessage: err.Error(), + 1756   } + 1757   return localVarReturnValue, localVarHTTPResponse, newErr + 1758   } + 1759   + 1760   return localVarReturnValue, localVarHTTPResponse, nil + 1761  } + 1762   + 1763  // ListTestsOptionalParameters holds optional parameters for ListTests. + 1764  type ListTestsOptionalParameters struct { + 1765   PageSize *int64 + 1766   PageNumber *int64 + 1767  } + 1768   + 1769  // NewListTestsOptionalParameters creates an empty struct for parameters. + 1770  func NewListTestsOptionalParameters() *ListTestsOptionalParameters { + 1771   this := ListTestsOptionalParameters{} + 1772   return &this + 1773  } + 1774   + 1775  // WithPageSize sets the corresponding parameter name and returns the struct. + 1776  func (r *ListTestsOptionalParameters) WithPageSize(pageSize int64) *ListTestsOptionalParameters { + 1777   r.PageSize = &pageSize + 1778   return r + 1779  } + 1780   + 1781  // WithPageNumber sets the corresponding parameter name and returns the struct. + 1782  func (r *ListTestsOptionalParameters) WithPageNumber(pageNumber int64) *ListTestsOptionalParameters { + 1783   r.PageNumber = &pageNumber + 1784   return r + 1785  } + 1786   + 1787  // ListTests Get the list of all Synthetic tests. + 1788  // Get the list of all Synthetic tests. + 1789  func (a *SyntheticsApi) ListTests(ctx _context.Context, o ...ListTestsOptionalParameters) (SyntheticsListTestsResponse, *_nethttp.Response, error) { + 1790   var ( + 1791   localVarHTTPMethod = _nethttp.MethodGet + 1792   localVarPostBody interface{} + 1793   localVarReturnValue SyntheticsListTestsResponse + 1794   optionalParams ListTestsOptionalParameters + 1795   ) 1796   - 1797   // body params - 1798   localVarPostBody = &body - 1799   datadog.SetAuthKeys( - 1800   ctx, - 1801   &localVarHeaderParams, - 1802   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 1803   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 1804   ) - 1805   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 1806   if err != nil { - 1807   return localVarReturnValue, nil, err - 1808   } - 1809   - 1810   localVarHTTPResponse, err := a.Client.CallAPI(req) - 1811   if err != nil || localVarHTTPResponse == nil { - 1812   return localVarReturnValue, localVarHTTPResponse, err - 1813   } - 1814   - 1815   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 1816   if err != nil { - 1817   return localVarReturnValue, localVarHTTPResponse, err - 1818   } - 1819   - 1820   if localVarHTTPResponse.StatusCode >= 300 { - 1821   newErr := datadog.GenericOpenAPIError{ - 1822   ErrorBody: localVarBody, - 1823   ErrorMessage: localVarHTTPResponse.Status, - 1824   } - 1825   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { - 1826   var v APIErrorResponse - 1827   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 1828   if err != nil { - 1829   return localVarReturnValue, localVarHTTPResponse, newErr - 1830   } - 1831   newErr.ErrorModel = v - 1832   } - 1833   return localVarReturnValue, localVarHTTPResponse, newErr - 1834   } - 1835   - 1836   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 1837   if err != nil { - 1838   newErr := datadog.GenericOpenAPIError{ - 1839   ErrorBody: localVarBody, - 1840   ErrorMessage: err.Error(), - 1841   } - 1842   return localVarReturnValue, localVarHTTPResponse, newErr - 1843   } - 1844   - 1845   return localVarReturnValue, localVarHTTPResponse, nil - 1846  } - 1847   - 1848  // TriggerCITests Trigger tests from CI/CD pipelines. - 1849  // Trigger a set of Synthetic tests for continuous integration. - 1850  func (a *SyntheticsApi) TriggerCITests(ctx _context.Context, body SyntheticsCITestBody) (SyntheticsTriggerCITestsResponse, *_nethttp.Response, error) { - 1851   var ( - 1852   localVarHTTPMethod = _nethttp.MethodPost - 1853   localVarPostBody interface{} - 1854   localVarReturnValue SyntheticsTriggerCITestsResponse - 1855   ) - 1856   - 1857   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.TriggerCITests") - 1858   if err != nil { - 1859   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} - 1860   } - 1861   - 1862   localVarPath := localBasePath + "/api/v1/synthetics/tests/trigger/ci" - 1863   - 1864   localVarHeaderParams := make(map[string]string) - 1865   localVarQueryParams := _neturl.Values{} - 1866   localVarFormParams := _neturl.Values{} - 1867   localVarHeaderParams["Content-Type"] = "application/json" - 1868   localVarHeaderParams["Accept"] = "application/json" - 1869   - 1870   // body params - 1871   localVarPostBody = &body - 1872   datadog.SetAuthKeys( - 1873   ctx, - 1874   &localVarHeaderParams, - 1875   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 1876   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 1877   ) - 1878   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 1879   if err != nil { - 1880   return localVarReturnValue, nil, err - 1881   } - 1882   - 1883   localVarHTTPResponse, err := a.Client.CallAPI(req) - 1884   if err != nil || localVarHTTPResponse == nil { - 1885   return localVarReturnValue, localVarHTTPResponse, err - 1886   } - 1887   - 1888   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 1889   if err != nil { - 1890   return localVarReturnValue, localVarHTTPResponse, err - 1891   } - 1892   - 1893   if localVarHTTPResponse.StatusCode >= 300 { - 1894   newErr := datadog.GenericOpenAPIError{ - 1895   ErrorBody: localVarBody, - 1896   ErrorMessage: localVarHTTPResponse.Status, - 1897   } - 1898   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 429 { - 1899   var v APIErrorResponse - 1900   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 1901   if err != nil { - 1902   return localVarReturnValue, localVarHTTPResponse, newErr - 1903   } - 1904   newErr.ErrorModel = v - 1905   } - 1906   return localVarReturnValue, localVarHTTPResponse, newErr - 1907   } - 1908   - 1909   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 1910   if err != nil { - 1911   newErr := datadog.GenericOpenAPIError{ - 1912   ErrorBody: localVarBody, - 1913   ErrorMessage: err.Error(), - 1914   } - 1915   return localVarReturnValue, localVarHTTPResponse, newErr - 1916   } - 1917   - 1918   return localVarReturnValue, localVarHTTPResponse, nil - 1919  } - 1920   - 1921  // TriggerTests Trigger Synthetic tests. - 1922  // Trigger a set of Synthetic tests. - 1923  func (a *SyntheticsApi) TriggerTests(ctx _context.Context, body SyntheticsTriggerBody) (SyntheticsTriggerCITestsResponse, *_nethttp.Response, error) { - 1924   var ( - 1925   localVarHTTPMethod = _nethttp.MethodPost - 1926   localVarPostBody interface{} - 1927   localVarReturnValue SyntheticsTriggerCITestsResponse - 1928   ) - 1929   - 1930   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.TriggerTests") - 1931   if err != nil { - 1932   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} - 1933   } - 1934   - 1935   localVarPath := localBasePath + "/api/v1/synthetics/tests/trigger" - 1936   - 1937   localVarHeaderParams := make(map[string]string) - 1938   localVarQueryParams := _neturl.Values{} - 1939   localVarFormParams := _neturl.Values{} - 1940   localVarHeaderParams["Content-Type"] = "application/json" - 1941   localVarHeaderParams["Accept"] = "application/json" - 1942   - 1943   // body params - 1944   localVarPostBody = &body - 1945   datadog.SetAuthKeys( - 1946   ctx, - 1947   &localVarHeaderParams, - 1948   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 1949   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 1950   ) - 1951   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 1952   if err != nil { - 1953   return localVarReturnValue, nil, err - 1954   } - 1955   - 1956   localVarHTTPResponse, err := a.Client.CallAPI(req) - 1957   if err != nil || localVarHTTPResponse == nil { - 1958   return localVarReturnValue, localVarHTTPResponse, err - 1959   } - 1960   - 1961   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 1962   if err != nil { - 1963   return localVarReturnValue, localVarHTTPResponse, err - 1964   } - 1965   - 1966   if localVarHTTPResponse.StatusCode >= 300 { - 1967   newErr := datadog.GenericOpenAPIError{ - 1968   ErrorBody: localVarBody, - 1969   ErrorMessage: localVarHTTPResponse.Status, - 1970   } - 1971   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 429 { - 1972   var v APIErrorResponse - 1973   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 1974   if err != nil { - 1975   return localVarReturnValue, localVarHTTPResponse, newErr - 1976   } - 1977   newErr.ErrorModel = v - 1978   } - 1979   return localVarReturnValue, localVarHTTPResponse, newErr - 1980   } - 1981   - 1982   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 1983   if err != nil { - 1984   newErr := datadog.GenericOpenAPIError{ - 1985   ErrorBody: localVarBody, - 1986   ErrorMessage: err.Error(), - 1987   } - 1988   return localVarReturnValue, localVarHTTPResponse, newErr - 1989   } - 1990   - 1991   return localVarReturnValue, localVarHTTPResponse, nil - 1992  } - 1993   - 1994  // UpdateAPITest Edit an API test. - 1995  // Edit the configuration of a Synthetic API test. - 1996  func (a *SyntheticsApi) UpdateAPITest(ctx _context.Context, publicId string, body SyntheticsAPITest) (SyntheticsAPITest, *_nethttp.Response, error) { - 1997   var ( - 1998   localVarHTTPMethod = _nethttp.MethodPut - 1999   localVarPostBody interface{} - 2000   localVarReturnValue SyntheticsAPITest - 2001   ) - 2002   - 2003   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.UpdateAPITest") - 2004   if err != nil { - 2005   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} - 2006   } - 2007   - 2008   localVarPath := localBasePath + "/api/v1/synthetics/tests/api/{public_id}" - 2009   localVarPath = strings.Replace(localVarPath, "{"+"public_id"+"}", _neturl.PathEscape(datadog.ParameterToString(publicId, "")), -1) - 2010   - 2011   localVarHeaderParams := make(map[string]string) - 2012   localVarQueryParams := _neturl.Values{} - 2013   localVarFormParams := _neturl.Values{} - 2014   localVarHeaderParams["Content-Type"] = "application/json" - 2015   localVarHeaderParams["Accept"] = "application/json" - 2016   - 2017   // body params - 2018   localVarPostBody = &body - 2019   datadog.SetAuthKeys( - 2020   ctx, - 2021   &localVarHeaderParams, - 2022   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 2023   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 2024   ) - 2025   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 2026   if err != nil { - 2027   return localVarReturnValue, nil, err - 2028   } - 2029   - 2030   localVarHTTPResponse, err := a.Client.CallAPI(req) - 2031   if err != nil || localVarHTTPResponse == nil { - 2032   return localVarReturnValue, localVarHTTPResponse, err - 2033   } - 2034   - 2035   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 2036   if err != nil { - 2037   return localVarReturnValue, localVarHTTPResponse, err - 2038   } - 2039   - 2040   if localVarHTTPResponse.StatusCode >= 300 { - 2041   newErr := datadog.GenericOpenAPIError{ - 2042   ErrorBody: localVarBody, - 2043   ErrorMessage: localVarHTTPResponse.Status, - 2044   } - 2045   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { - 2046   var v APIErrorResponse - 2047   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 2048   if err != nil { - 2049   return localVarReturnValue, localVarHTTPResponse, newErr - 2050   } - 2051   newErr.ErrorModel = v - 2052   } - 2053   return localVarReturnValue, localVarHTTPResponse, newErr - 2054   } - 2055   - 2056   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 2057   if err != nil { - 2058   newErr := datadog.GenericOpenAPIError{ - 2059   ErrorBody: localVarBody, - 2060   ErrorMessage: err.Error(), - 2061   } - 2062   return localVarReturnValue, localVarHTTPResponse, newErr - 2063   } - 2064   - 2065   return localVarReturnValue, localVarHTTPResponse, nil - 2066  } - 2067   - 2068  // UpdateBrowserTest Edit a browser test. - 2069  // Edit the configuration of a Synthetic browser test. - 2070  func (a *SyntheticsApi) UpdateBrowserTest(ctx _context.Context, publicId string, body SyntheticsBrowserTest) (SyntheticsBrowserTest, *_nethttp.Response, error) { - 2071   var ( - 2072   localVarHTTPMethod = _nethttp.MethodPut - 2073   localVarPostBody interface{} - 2074   localVarReturnValue SyntheticsBrowserTest - 2075   ) - 2076   - 2077   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.UpdateBrowserTest") - 2078   if err != nil { - 2079   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} - 2080   } + 1797   if len(o) > 1 { + 1798   return localVarReturnValue, nil, datadog.ReportError("only one argument of type ListTestsOptionalParameters is allowed") + 1799   } + 1800   if len(o) == 1 { + 1801   optionalParams = o[0] + 1802   } + 1803   + 1804   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.ListTests") + 1805   if err != nil { + 1806   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 1807   } + 1808   + 1809   localVarPath := localBasePath + "/api/v1/synthetics/tests" + 1810   + 1811   localVarHeaderParams := make(map[string]string) + 1812   localVarQueryParams := _neturl.Values{} + 1813   localVarFormParams := _neturl.Values{} + 1814   if optionalParams.PageSize != nil { + 1815   localVarQueryParams.Add("page_size", datadog.ParameterToString(*optionalParams.PageSize, "")) + 1816   } + 1817   if optionalParams.PageNumber != nil { + 1818   localVarQueryParams.Add("page_number", datadog.ParameterToString(*optionalParams.PageNumber, "")) + 1819   } + 1820   localVarHeaderParams["Accept"] = "application/json" + 1821   + 1822   datadog.SetAuthKeys( + 1823   ctx, + 1824   &localVarHeaderParams, + 1825   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 1826   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 1827   ) + 1828   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 1829   if err != nil { + 1830   return localVarReturnValue, nil, err + 1831   } + 1832   + 1833   localVarHTTPResponse, err := a.Client.CallAPI(req) + 1834   if err != nil || localVarHTTPResponse == nil { + 1835   return localVarReturnValue, localVarHTTPResponse, err + 1836   } + 1837   + 1838   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 1839   if err != nil { + 1840   return localVarReturnValue, localVarHTTPResponse, err + 1841   } + 1842   + 1843   if localVarHTTPResponse.StatusCode >= 300 { + 1844   newErr := datadog.GenericOpenAPIError{ + 1845   ErrorBody: localVarBody, + 1846   ErrorMessage: localVarHTTPResponse.Status, + 1847   } + 1848   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 1849   var v APIErrorResponse + 1850   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 1851   if err != nil { + 1852   return localVarReturnValue, localVarHTTPResponse, newErr + 1853   } + 1854   newErr.ErrorModel = v + 1855   } + 1856   return localVarReturnValue, localVarHTTPResponse, newErr + 1857   } + 1858   + 1859   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 1860   if err != nil { + 1861   newErr := datadog.GenericOpenAPIError{ + 1862   ErrorBody: localVarBody, + 1863   ErrorMessage: err.Error(), + 1864   } + 1865   return localVarReturnValue, localVarHTTPResponse, newErr + 1866   } + 1867   + 1868   return localVarReturnValue, localVarHTTPResponse, nil + 1869  } + 1870   + 1871  // ListTestsWithPagination provides a paginated version of ListTests returning a channel with all items. + 1872  func (a *SyntheticsApi) ListTestsWithPagination(ctx _context.Context, o ...ListTestsOptionalParameters) (<-chan datadog.PaginationResult[SyntheticsTestDetails], func()) { + 1873   ctx, cancel := _context.WithCancel(ctx) + 1874   pageSize_ := int64(100) + 1875   if len(o) == 0 { + 1876   o = append(o, ListTestsOptionalParameters{}) + 1877   } + 1878   if o[0].PageSize != nil { + 1879   pageSize_ = *o[0].PageSize + 1880   } + 1881   o[0].PageSize = &pageSize_ + 1882   page_ := int64(0) + 1883   o[0].PageNumber = &page_ + 1884   + 1885   items := make(chan datadog.PaginationResult[SyntheticsTestDetails], pageSize_) + 1886   go func() { + 1887   for { + 1888   resp, _, err := a.ListTests(ctx, o...) + 1889   if err != nil { + 1890   var returnItem SyntheticsTestDetails + 1891   items <- datadog.PaginationResult[SyntheticsTestDetails]{Item: returnItem, Error: err} + 1892   break + 1893   } + 1894   respTests, ok := resp.GetTestsOk() + 1895   if !ok { + 1896   break + 1897   } + 1898   results := *respTests + 1899   + 1900   for _, item := range results { + 1901   select { + 1902   case items <- datadog.PaginationResult[SyntheticsTestDetails]{Item: item, Error: nil}: + 1903   case <-ctx.Done(): + 1904   close(items) + 1905   return + 1906   } + 1907   } + 1908   if len(results) < int(pageSize_) { + 1909   break + 1910   } + 1911   pageOffset_ := *o[0].PageNumber + 1 + 1912   o[0].PageNumber = &pageOffset_ + 1913   } + 1914   close(items) + 1915   }() + 1916   return items, cancel + 1917  } + 1918   + 1919  // PatchTest Patch a Synthetic test. + 1920  // Patch the configuration of a Synthetic test with partial data. + 1921  func (a *SyntheticsApi) PatchTest(ctx _context.Context, publicId string, body SyntheticsPatchTestBody) (SyntheticsTestDetails, *_nethttp.Response, error) { + 1922   var ( + 1923   localVarHTTPMethod = _nethttp.MethodPatch + 1924   localVarPostBody interface{} + 1925   localVarReturnValue SyntheticsTestDetails + 1926   ) + 1927   + 1928   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.PatchTest") + 1929   if err != nil { + 1930   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 1931   } + 1932   + 1933   localVarPath := localBasePath + "/api/v1/synthetics/tests/{public_id}" + 1934   localVarPath = strings.Replace(localVarPath, "{"+"public_id"+"}", _neturl.PathEscape(datadog.ParameterToString(publicId, "")), -1) + 1935   + 1936   localVarHeaderParams := make(map[string]string) + 1937   localVarQueryParams := _neturl.Values{} + 1938   localVarFormParams := _neturl.Values{} + 1939   localVarHeaderParams["Content-Type"] = "application/json" + 1940   localVarHeaderParams["Accept"] = "application/json" + 1941   + 1942   // body params + 1943   localVarPostBody = &body + 1944   datadog.SetAuthKeys( + 1945   ctx, + 1946   &localVarHeaderParams, + 1947   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 1948   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 1949   ) + 1950   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 1951   if err != nil { + 1952   return localVarReturnValue, nil, err + 1953   } + 1954   + 1955   localVarHTTPResponse, err := a.Client.CallAPI(req) + 1956   if err != nil || localVarHTTPResponse == nil { + 1957   return localVarReturnValue, localVarHTTPResponse, err + 1958   } + 1959   + 1960   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 1961   if err != nil { + 1962   return localVarReturnValue, localVarHTTPResponse, err + 1963   } + 1964   + 1965   if localVarHTTPResponse.StatusCode >= 300 { + 1966   newErr := datadog.GenericOpenAPIError{ + 1967   ErrorBody: localVarBody, + 1968   ErrorMessage: localVarHTTPResponse.Status, + 1969   } + 1970   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 1971   var v APIErrorResponse + 1972   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 1973   if err != nil { + 1974   return localVarReturnValue, localVarHTTPResponse, newErr + 1975   } + 1976   newErr.ErrorModel = v + 1977   } + 1978   return localVarReturnValue, localVarHTTPResponse, newErr + 1979   } + 1980   + 1981   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 1982   if err != nil { + 1983   newErr := datadog.GenericOpenAPIError{ + 1984   ErrorBody: localVarBody, + 1985   ErrorMessage: err.Error(), + 1986   } + 1987   return localVarReturnValue, localVarHTTPResponse, newErr + 1988   } + 1989   + 1990   return localVarReturnValue, localVarHTTPResponse, nil + 1991  } + 1992   + 1993  // TriggerCITests Trigger tests from CI/CD pipelines. + 1994  // Trigger a set of Synthetic tests for continuous integration. + 1995  func (a *SyntheticsApi) TriggerCITests(ctx _context.Context, body SyntheticsCITestBody) (SyntheticsTriggerCITestsResponse, *_nethttp.Response, error) { + 1996   var ( + 1997   localVarHTTPMethod = _nethttp.MethodPost + 1998   localVarPostBody interface{} + 1999   localVarReturnValue SyntheticsTriggerCITestsResponse + 2000   ) + 2001   + 2002   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.TriggerCITests") + 2003   if err != nil { + 2004   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 2005   } + 2006   + 2007   localVarPath := localBasePath + "/api/v1/synthetics/tests/trigger/ci" + 2008   + 2009   localVarHeaderParams := make(map[string]string) + 2010   localVarQueryParams := _neturl.Values{} + 2011   localVarFormParams := _neturl.Values{} + 2012   localVarHeaderParams["Content-Type"] = "application/json" + 2013   localVarHeaderParams["Accept"] = "application/json" + 2014   + 2015   // body params + 2016   localVarPostBody = &body + 2017   datadog.SetAuthKeys( + 2018   ctx, + 2019   &localVarHeaderParams, + 2020   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 2021   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 2022   ) + 2023   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 2024   if err != nil { + 2025   return localVarReturnValue, nil, err + 2026   } + 2027   + 2028   localVarHTTPResponse, err := a.Client.CallAPI(req) + 2029   if err != nil || localVarHTTPResponse == nil { + 2030   return localVarReturnValue, localVarHTTPResponse, err + 2031   } + 2032   + 2033   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 2034   if err != nil { + 2035   return localVarReturnValue, localVarHTTPResponse, err + 2036   } + 2037   + 2038   if localVarHTTPResponse.StatusCode >= 300 { + 2039   newErr := datadog.GenericOpenAPIError{ + 2040   ErrorBody: localVarBody, + 2041   ErrorMessage: localVarHTTPResponse.Status, + 2042   } + 2043   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 429 { + 2044   var v APIErrorResponse + 2045   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 2046   if err != nil { + 2047   return localVarReturnValue, localVarHTTPResponse, newErr + 2048   } + 2049   newErr.ErrorModel = v + 2050   } + 2051   return localVarReturnValue, localVarHTTPResponse, newErr + 2052   } + 2053   + 2054   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 2055   if err != nil { + 2056   newErr := datadog.GenericOpenAPIError{ + 2057   ErrorBody: localVarBody, + 2058   ErrorMessage: err.Error(), + 2059   } + 2060   return localVarReturnValue, localVarHTTPResponse, newErr + 2061   } + 2062   + 2063   return localVarReturnValue, localVarHTTPResponse, nil + 2064  } + 2065   + 2066  // TriggerTests Trigger Synthetic tests. + 2067  // Trigger a set of Synthetic tests. + 2068  func (a *SyntheticsApi) TriggerTests(ctx _context.Context, body SyntheticsTriggerBody) (SyntheticsTriggerCITestsResponse, *_nethttp.Response, error) { + 2069   var ( + 2070   localVarHTTPMethod = _nethttp.MethodPost + 2071   localVarPostBody interface{} + 2072   localVarReturnValue SyntheticsTriggerCITestsResponse + 2073   ) + 2074   + 2075   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.TriggerTests") + 2076   if err != nil { + 2077   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 2078   } + 2079   + 2080   localVarPath := localBasePath + "/api/v1/synthetics/tests/trigger" 2081   - 2082   localVarPath := localBasePath + "/api/v1/synthetics/tests/browser/{public_id}" - 2083   localVarPath = strings.Replace(localVarPath, "{"+"public_id"+"}", _neturl.PathEscape(datadog.ParameterToString(publicId, "")), -1) - 2084   - 2085   localVarHeaderParams := make(map[string]string) - 2086   localVarQueryParams := _neturl.Values{} - 2087   localVarFormParams := _neturl.Values{} - 2088   localVarHeaderParams["Content-Type"] = "application/json" - 2089   localVarHeaderParams["Accept"] = "application/json" - 2090   - 2091   // body params - 2092   localVarPostBody = &body - 2093   datadog.SetAuthKeys( - 2094   ctx, - 2095   &localVarHeaderParams, - 2096   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 2097   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 2098   ) - 2099   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 2100   if err != nil { - 2101   return localVarReturnValue, nil, err - 2102   } - 2103   - 2104   localVarHTTPResponse, err := a.Client.CallAPI(req) - 2105   if err != nil || localVarHTTPResponse == nil { - 2106   return localVarReturnValue, localVarHTTPResponse, err - 2107   } - 2108   - 2109   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 2110   if err != nil { - 2111   return localVarReturnValue, localVarHTTPResponse, err - 2112   } - 2113   - 2114   if localVarHTTPResponse.StatusCode >= 300 { - 2115   newErr := datadog.GenericOpenAPIError{ - 2116   ErrorBody: localVarBody, - 2117   ErrorMessage: localVarHTTPResponse.Status, - 2118   } - 2119   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { - 2120   var v APIErrorResponse - 2121   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 2122   if err != nil { - 2123   return localVarReturnValue, localVarHTTPResponse, newErr - 2124   } - 2125   newErr.ErrorModel = v - 2126   } - 2127   return localVarReturnValue, localVarHTTPResponse, newErr - 2128   } - 2129   - 2130   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 2131   if err != nil { - 2132   newErr := datadog.GenericOpenAPIError{ - 2133   ErrorBody: localVarBody, - 2134   ErrorMessage: err.Error(), - 2135   } - 2136   return localVarReturnValue, localVarHTTPResponse, newErr - 2137   } + 2082   localVarHeaderParams := make(map[string]string) + 2083   localVarQueryParams := _neturl.Values{} + 2084   localVarFormParams := _neturl.Values{} + 2085   localVarHeaderParams["Content-Type"] = "application/json" + 2086   localVarHeaderParams["Accept"] = "application/json" + 2087   + 2088   // body params + 2089   localVarPostBody = &body + 2090   datadog.SetAuthKeys( + 2091   ctx, + 2092   &localVarHeaderParams, + 2093   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 2094   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 2095   ) + 2096   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 2097   if err != nil { + 2098   return localVarReturnValue, nil, err + 2099   } + 2100   + 2101   localVarHTTPResponse, err := a.Client.CallAPI(req) + 2102   if err != nil || localVarHTTPResponse == nil { + 2103   return localVarReturnValue, localVarHTTPResponse, err + 2104   } + 2105   + 2106   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 2107   if err != nil { + 2108   return localVarReturnValue, localVarHTTPResponse, err + 2109   } + 2110   + 2111   if localVarHTTPResponse.StatusCode >= 300 { + 2112   newErr := datadog.GenericOpenAPIError{ + 2113   ErrorBody: localVarBody, + 2114   ErrorMessage: localVarHTTPResponse.Status, + 2115   } + 2116   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 429 { + 2117   var v APIErrorResponse + 2118   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 2119   if err != nil { + 2120   return localVarReturnValue, localVarHTTPResponse, newErr + 2121   } + 2122   newErr.ErrorModel = v + 2123   } + 2124   return localVarReturnValue, localVarHTTPResponse, newErr + 2125   } + 2126   + 2127   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 2128   if err != nil { + 2129   newErr := datadog.GenericOpenAPIError{ + 2130   ErrorBody: localVarBody, + 2131   ErrorMessage: err.Error(), + 2132   } + 2133   return localVarReturnValue, localVarHTTPResponse, newErr + 2134   } + 2135   + 2136   return localVarReturnValue, localVarHTTPResponse, nil + 2137  } 2138   - 2139   return localVarReturnValue, localVarHTTPResponse, nil - 2140  } - 2141   - 2142  // UpdatePrivateLocation Edit a private location. - 2143  // Edit a Synthetic private location. - 2144  func (a *SyntheticsApi) UpdatePrivateLocation(ctx _context.Context, locationId string, body SyntheticsPrivateLocation) (SyntheticsPrivateLocation, *_nethttp.Response, error) { - 2145   var ( - 2146   localVarHTTPMethod = _nethttp.MethodPut - 2147   localVarPostBody interface{} - 2148   localVarReturnValue SyntheticsPrivateLocation - 2149   ) - 2150   - 2151   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.UpdatePrivateLocation") - 2152   if err != nil { - 2153   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} - 2154   } + 2139  // UpdateAPITest Edit an API test. + 2140  // Edit the configuration of a Synthetic API test. + 2141  func (a *SyntheticsApi) UpdateAPITest(ctx _context.Context, publicId string, body SyntheticsAPITest) (SyntheticsAPITest, *_nethttp.Response, error) { + 2142   var ( + 2143   localVarHTTPMethod = _nethttp.MethodPut + 2144   localVarPostBody interface{} + 2145   localVarReturnValue SyntheticsAPITest + 2146   ) + 2147   + 2148   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.UpdateAPITest") + 2149   if err != nil { + 2150   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 2151   } + 2152   + 2153   localVarPath := localBasePath + "/api/v1/synthetics/tests/api/{public_id}" + 2154   localVarPath = strings.Replace(localVarPath, "{"+"public_id"+"}", _neturl.PathEscape(datadog.ParameterToString(publicId, "")), -1) 2155   - 2156   localVarPath := localBasePath + "/api/v1/synthetics/private-locations/{location_id}" - 2157   localVarPath = strings.Replace(localVarPath, "{"+"location_id"+"}", _neturl.PathEscape(datadog.ParameterToString(locationId, "")), -1) - 2158   - 2159   localVarHeaderParams := make(map[string]string) - 2160   localVarQueryParams := _neturl.Values{} - 2161   localVarFormParams := _neturl.Values{} - 2162   localVarHeaderParams["Content-Type"] = "application/json" - 2163   localVarHeaderParams["Accept"] = "application/json" - 2164   - 2165   // body params - 2166   localVarPostBody = &body - 2167   datadog.SetAuthKeys( - 2168   ctx, - 2169   &localVarHeaderParams, - 2170   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 2171   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 2172   ) - 2173   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 2174   if err != nil { - 2175   return localVarReturnValue, nil, err - 2176   } - 2177   - 2178   localVarHTTPResponse, err := a.Client.CallAPI(req) - 2179   if err != nil || localVarHTTPResponse == nil { - 2180   return localVarReturnValue, localVarHTTPResponse, err - 2181   } - 2182   - 2183   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 2184   if err != nil { - 2185   return localVarReturnValue, localVarHTTPResponse, err - 2186   } - 2187   - 2188   if localVarHTTPResponse.StatusCode >= 300 { - 2189   newErr := datadog.GenericOpenAPIError{ - 2190   ErrorBody: localVarBody, - 2191   ErrorMessage: localVarHTTPResponse.Status, - 2192   } - 2193   if localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { - 2194   var v APIErrorResponse - 2195   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 2196   if err != nil { - 2197   return localVarReturnValue, localVarHTTPResponse, newErr - 2198   } - 2199   newErr.ErrorModel = v - 2200   } - 2201   return localVarReturnValue, localVarHTTPResponse, newErr - 2202   } - 2203   - 2204   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 2205   if err != nil { - 2206   newErr := datadog.GenericOpenAPIError{ - 2207   ErrorBody: localVarBody, - 2208   ErrorMessage: err.Error(), - 2209   } - 2210   return localVarReturnValue, localVarHTTPResponse, newErr - 2211   } + 2156   localVarHeaderParams := make(map[string]string) + 2157   localVarQueryParams := _neturl.Values{} + 2158   localVarFormParams := _neturl.Values{} + 2159   localVarHeaderParams["Content-Type"] = "application/json" + 2160   localVarHeaderParams["Accept"] = "application/json" + 2161   + 2162   // body params + 2163   localVarPostBody = &body + 2164   datadog.SetAuthKeys( + 2165   ctx, + 2166   &localVarHeaderParams, + 2167   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 2168   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 2169   ) + 2170   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 2171   if err != nil { + 2172   return localVarReturnValue, nil, err + 2173   } + 2174   + 2175   localVarHTTPResponse, err := a.Client.CallAPI(req) + 2176   if err != nil || localVarHTTPResponse == nil { + 2177   return localVarReturnValue, localVarHTTPResponse, err + 2178   } + 2179   + 2180   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 2181   if err != nil { + 2182   return localVarReturnValue, localVarHTTPResponse, err + 2183   } + 2184   + 2185   if localVarHTTPResponse.StatusCode >= 300 { + 2186   newErr := datadog.GenericOpenAPIError{ + 2187   ErrorBody: localVarBody, + 2188   ErrorMessage: localVarHTTPResponse.Status, + 2189   } + 2190   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 2191   var v APIErrorResponse + 2192   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 2193   if err != nil { + 2194   return localVarReturnValue, localVarHTTPResponse, newErr + 2195   } + 2196   newErr.ErrorModel = v + 2197   } + 2198   return localVarReturnValue, localVarHTTPResponse, newErr + 2199   } + 2200   + 2201   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 2202   if err != nil { + 2203   newErr := datadog.GenericOpenAPIError{ + 2204   ErrorBody: localVarBody, + 2205   ErrorMessage: err.Error(), + 2206   } + 2207   return localVarReturnValue, localVarHTTPResponse, newErr + 2208   } + 2209   + 2210   return localVarReturnValue, localVarHTTPResponse, nil + 2211  } 2212   - 2213   return localVarReturnValue, localVarHTTPResponse, nil - 2214  } - 2215   - 2216  // UpdateTestPauseStatus Pause or start a test. - 2217  // Pause or start a Synthetic test by changing the status. - 2218  func (a *SyntheticsApi) UpdateTestPauseStatus(ctx _context.Context, publicId string, body SyntheticsUpdateTestPauseStatusPayload) (bool, *_nethttp.Response, error) { - 2219   var ( - 2220   localVarHTTPMethod = _nethttp.MethodPut - 2221   localVarPostBody interface{} - 2222   localVarReturnValue bool - 2223   ) - 2224   - 2225   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.UpdateTestPauseStatus") - 2226   if err != nil { - 2227   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} - 2228   } + 2213  // UpdateBrowserTest Edit a browser test. + 2214  // Edit the configuration of a Synthetic browser test. + 2215  func (a *SyntheticsApi) UpdateBrowserTest(ctx _context.Context, publicId string, body SyntheticsBrowserTest) (SyntheticsBrowserTest, *_nethttp.Response, error) { + 2216   var ( + 2217   localVarHTTPMethod = _nethttp.MethodPut + 2218   localVarPostBody interface{} + 2219   localVarReturnValue SyntheticsBrowserTest + 2220   ) + 2221   + 2222   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.UpdateBrowserTest") + 2223   if err != nil { + 2224   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 2225   } + 2226   + 2227   localVarPath := localBasePath + "/api/v1/synthetics/tests/browser/{public_id}" + 2228   localVarPath = strings.Replace(localVarPath, "{"+"public_id"+"}", _neturl.PathEscape(datadog.ParameterToString(publicId, "")), -1) 2229   - 2230   localVarPath := localBasePath + "/api/v1/synthetics/tests/{public_id}/status" - 2231   localVarPath = strings.Replace(localVarPath, "{"+"public_id"+"}", _neturl.PathEscape(datadog.ParameterToString(publicId, "")), -1) - 2232   - 2233   localVarHeaderParams := make(map[string]string) - 2234   localVarQueryParams := _neturl.Values{} - 2235   localVarFormParams := _neturl.Values{} - 2236   localVarHeaderParams["Content-Type"] = "application/json" - 2237   localVarHeaderParams["Accept"] = "application/json" - 2238   - 2239   // body params - 2240   localVarPostBody = &body - 2241   datadog.SetAuthKeys( - 2242   ctx, - 2243   &localVarHeaderParams, - 2244   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 2245   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 2246   ) - 2247   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 2248   if err != nil { - 2249   return localVarReturnValue, nil, err - 2250   } - 2251   - 2252   localVarHTTPResponse, err := a.Client.CallAPI(req) - 2253   if err != nil || localVarHTTPResponse == nil { - 2254   return localVarReturnValue, localVarHTTPResponse, err - 2255   } - 2256   - 2257   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 2258   if err != nil { - 2259   return localVarReturnValue, localVarHTTPResponse, err - 2260   } - 2261   - 2262   if localVarHTTPResponse.StatusCode >= 300 { - 2263   newErr := datadog.GenericOpenAPIError{ - 2264   ErrorBody: localVarBody, - 2265   ErrorMessage: localVarHTTPResponse.Status, - 2266   } - 2267   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { - 2268   var v APIErrorResponse - 2269   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 2270   if err != nil { - 2271   return localVarReturnValue, localVarHTTPResponse, newErr - 2272   } - 2273   newErr.ErrorModel = v - 2274   } - 2275   return localVarReturnValue, localVarHTTPResponse, newErr - 2276   } - 2277   - 2278   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 2279   if err != nil { - 2280   newErr := datadog.GenericOpenAPIError{ - 2281   ErrorBody: localVarBody, - 2282   ErrorMessage: err.Error(), - 2283   } - 2284   return localVarReturnValue, localVarHTTPResponse, newErr - 2285   } + 2230   localVarHeaderParams := make(map[string]string) + 2231   localVarQueryParams := _neturl.Values{} + 2232   localVarFormParams := _neturl.Values{} + 2233   localVarHeaderParams["Content-Type"] = "application/json" + 2234   localVarHeaderParams["Accept"] = "application/json" + 2235   + 2236   // body params + 2237   localVarPostBody = &body + 2238   datadog.SetAuthKeys( + 2239   ctx, + 2240   &localVarHeaderParams, + 2241   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 2242   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 2243   ) + 2244   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 2245   if err != nil { + 2246   return localVarReturnValue, nil, err + 2247   } + 2248   + 2249   localVarHTTPResponse, err := a.Client.CallAPI(req) + 2250   if err != nil || localVarHTTPResponse == nil { + 2251   return localVarReturnValue, localVarHTTPResponse, err + 2252   } + 2253   + 2254   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 2255   if err != nil { + 2256   return localVarReturnValue, localVarHTTPResponse, err + 2257   } + 2258   + 2259   if localVarHTTPResponse.StatusCode >= 300 { + 2260   newErr := datadog.GenericOpenAPIError{ + 2261   ErrorBody: localVarBody, + 2262   ErrorMessage: localVarHTTPResponse.Status, + 2263   } + 2264   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 2265   var v APIErrorResponse + 2266   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 2267   if err != nil { + 2268   return localVarReturnValue, localVarHTTPResponse, newErr + 2269   } + 2270   newErr.ErrorModel = v + 2271   } + 2272   return localVarReturnValue, localVarHTTPResponse, newErr + 2273   } + 2274   + 2275   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 2276   if err != nil { + 2277   newErr := datadog.GenericOpenAPIError{ + 2278   ErrorBody: localVarBody, + 2279   ErrorMessage: err.Error(), + 2280   } + 2281   return localVarReturnValue, localVarHTTPResponse, newErr + 2282   } + 2283   + 2284   return localVarReturnValue, localVarHTTPResponse, nil + 2285  } 2286   - 2287   return localVarReturnValue, localVarHTTPResponse, nil - 2288  } - 2289   - 2290  // NewSyntheticsApi Returns NewSyntheticsApi. - 2291  func NewSyntheticsApi(client *datadog.APIClient) *SyntheticsApi { - 2292   return &SyntheticsApi{ - 2293   Client: client, - 2294   } - 2295  } - 2296   + 2287  // UpdateMobileTest Edit a Mobile test. + 2288  // Edit the configuration of a Synthetic Mobile test. + 2289  func (a *SyntheticsApi) UpdateMobileTest(ctx _context.Context, publicId string, body SyntheticsMobileTest) (SyntheticsMobileTest, *_nethttp.Response, error) { + 2290   var ( + 2291   localVarHTTPMethod = _nethttp.MethodPut + 2292   localVarPostBody interface{} + 2293   localVarReturnValue SyntheticsMobileTest + 2294   ) + 2295   + 2296   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.UpdateMobileTest") + 2297   if err != nil { + 2298   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 2299   } + 2300   + 2301   localVarPath := localBasePath + "/api/v1/synthetics/tests/mobile/{public_id}" + 2302   localVarPath = strings.Replace(localVarPath, "{"+"public_id"+"}", _neturl.PathEscape(datadog.ParameterToString(publicId, "")), -1) + 2303   + 2304   localVarHeaderParams := make(map[string]string) + 2305   localVarQueryParams := _neturl.Values{} + 2306   localVarFormParams := _neturl.Values{} + 2307   localVarHeaderParams["Content-Type"] = "application/json" + 2308   localVarHeaderParams["Accept"] = "application/json" + 2309   + 2310   // body params + 2311   localVarPostBody = &body + 2312   datadog.SetAuthKeys( + 2313   ctx, + 2314   &localVarHeaderParams, + 2315   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 2316   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 2317   ) + 2318   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 2319   if err != nil { + 2320   return localVarReturnValue, nil, err + 2321   } + 2322   + 2323   localVarHTTPResponse, err := a.Client.CallAPI(req) + 2324   if err != nil || localVarHTTPResponse == nil { + 2325   return localVarReturnValue, localVarHTTPResponse, err + 2326   } + 2327   + 2328   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 2329   if err != nil { + 2330   return localVarReturnValue, localVarHTTPResponse, err + 2331   } + 2332   + 2333   if localVarHTTPResponse.StatusCode >= 300 { + 2334   newErr := datadog.GenericOpenAPIError{ + 2335   ErrorBody: localVarBody, + 2336   ErrorMessage: localVarHTTPResponse.Status, + 2337   } + 2338   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 2339   var v APIErrorResponse + 2340   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 2341   if err != nil { + 2342   return localVarReturnValue, localVarHTTPResponse, newErr + 2343   } + 2344   newErr.ErrorModel = v + 2345   } + 2346   return localVarReturnValue, localVarHTTPResponse, newErr + 2347   } + 2348   + 2349   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 2350   if err != nil { + 2351   newErr := datadog.GenericOpenAPIError{ + 2352   ErrorBody: localVarBody, + 2353   ErrorMessage: err.Error(), + 2354   } + 2355   return localVarReturnValue, localVarHTTPResponse, newErr + 2356   } + 2357   + 2358   return localVarReturnValue, localVarHTTPResponse, nil + 2359  } + 2360   + 2361  // UpdatePrivateLocation Edit a private location. + 2362  // Edit a Synthetic private location. + 2363  func (a *SyntheticsApi) UpdatePrivateLocation(ctx _context.Context, locationId string, body SyntheticsPrivateLocation) (SyntheticsPrivateLocation, *_nethttp.Response, error) { + 2364   var ( + 2365   localVarHTTPMethod = _nethttp.MethodPut + 2366   localVarPostBody interface{} + 2367   localVarReturnValue SyntheticsPrivateLocation + 2368   ) + 2369   + 2370   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.UpdatePrivateLocation") + 2371   if err != nil { + 2372   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 2373   } + 2374   + 2375   localVarPath := localBasePath + "/api/v1/synthetics/private-locations/{location_id}" + 2376   localVarPath = strings.Replace(localVarPath, "{"+"location_id"+"}", _neturl.PathEscape(datadog.ParameterToString(locationId, "")), -1) + 2377   + 2378   localVarHeaderParams := make(map[string]string) + 2379   localVarQueryParams := _neturl.Values{} + 2380   localVarFormParams := _neturl.Values{} + 2381   localVarHeaderParams["Content-Type"] = "application/json" + 2382   localVarHeaderParams["Accept"] = "application/json" + 2383   + 2384   // body params + 2385   localVarPostBody = &body + 2386   datadog.SetAuthKeys( + 2387   ctx, + 2388   &localVarHeaderParams, + 2389   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 2390   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 2391   ) + 2392   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 2393   if err != nil { + 2394   return localVarReturnValue, nil, err + 2395   } + 2396   + 2397   localVarHTTPResponse, err := a.Client.CallAPI(req) + 2398   if err != nil || localVarHTTPResponse == nil { + 2399   return localVarReturnValue, localVarHTTPResponse, err + 2400   } + 2401   + 2402   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 2403   if err != nil { + 2404   return localVarReturnValue, localVarHTTPResponse, err + 2405   } + 2406   + 2407   if localVarHTTPResponse.StatusCode >= 300 { + 2408   newErr := datadog.GenericOpenAPIError{ + 2409   ErrorBody: localVarBody, + 2410   ErrorMessage: localVarHTTPResponse.Status, + 2411   } + 2412   if localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 2413   var v APIErrorResponse + 2414   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 2415   if err != nil { + 2416   return localVarReturnValue, localVarHTTPResponse, newErr + 2417   } + 2418   newErr.ErrorModel = v + 2419   } + 2420   return localVarReturnValue, localVarHTTPResponse, newErr + 2421   } + 2422   + 2423   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 2424   if err != nil { + 2425   newErr := datadog.GenericOpenAPIError{ + 2426   ErrorBody: localVarBody, + 2427   ErrorMessage: err.Error(), + 2428   } + 2429   return localVarReturnValue, localVarHTTPResponse, newErr + 2430   } + 2431   + 2432   return localVarReturnValue, localVarHTTPResponse, nil + 2433  } + 2434   + 2435  // UpdateTestPauseStatus Pause or start a test. + 2436  // Pause or start a Synthetic test by changing the status. + 2437  func (a *SyntheticsApi) UpdateTestPauseStatus(ctx _context.Context, publicId string, body SyntheticsUpdateTestPauseStatusPayload) (bool, *_nethttp.Response, error) { + 2438   var ( + 2439   localVarHTTPMethod = _nethttp.MethodPut + 2440   localVarPostBody interface{} + 2441   localVarReturnValue bool + 2442   ) + 2443   + 2444   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.SyntheticsApi.UpdateTestPauseStatus") + 2445   if err != nil { + 2446   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 2447   } + 2448   + 2449   localVarPath := localBasePath + "/api/v1/synthetics/tests/{public_id}/status" + 2450   localVarPath = strings.Replace(localVarPath, "{"+"public_id"+"}", _neturl.PathEscape(datadog.ParameterToString(publicId, "")), -1) + 2451   + 2452   localVarHeaderParams := make(map[string]string) + 2453   localVarQueryParams := _neturl.Values{} + 2454   localVarFormParams := _neturl.Values{} + 2455   localVarHeaderParams["Content-Type"] = "application/json" + 2456   localVarHeaderParams["Accept"] = "application/json" + 2457   + 2458   // body params + 2459   localVarPostBody = &body + 2460   datadog.SetAuthKeys( + 2461   ctx, + 2462   &localVarHeaderParams, + 2463   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 2464   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 2465   ) + 2466   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 2467   if err != nil { + 2468   return localVarReturnValue, nil, err + 2469   } + 2470   + 2471   localVarHTTPResponse, err := a.Client.CallAPI(req) + 2472   if err != nil || localVarHTTPResponse == nil { + 2473   return localVarReturnValue, localVarHTTPResponse, err + 2474   } + 2475   + 2476   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 2477   if err != nil { + 2478   return localVarReturnValue, localVarHTTPResponse, err + 2479   } + 2480   + 2481   if localVarHTTPResponse.StatusCode >= 300 { + 2482   newErr := datadog.GenericOpenAPIError{ + 2483   ErrorBody: localVarBody, + 2484   ErrorMessage: localVarHTTPResponse.Status, + 2485   } + 2486   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 2487   var v APIErrorResponse + 2488   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 2489   if err != nil { + 2490   return localVarReturnValue, localVarHTTPResponse, newErr + 2491   } + 2492   newErr.ErrorModel = v + 2493   } + 2494   return localVarReturnValue, localVarHTTPResponse, newErr + 2495   } + 2496   + 2497   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 2498   if err != nil { + 2499   newErr := datadog.GenericOpenAPIError{ + 2500   ErrorBody: localVarBody, + 2501   ErrorMessage: err.Error(), + 2502   } + 2503   return localVarReturnValue, localVarHTTPResponse, newErr + 2504   } + 2505   + 2506   return localVarReturnValue, localVarHTTPResponse, nil + 2507  } + 2508   + 2509  // NewSyntheticsApi Returns NewSyntheticsApi. + 2510  func NewSyntheticsApi(client *datadog.APIClient) *SyntheticsApi { + 2511   return &SyntheticsApi{ + 2512   Client: client, + 2513   } + 2514  } + 2515