Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make various fixes to synthetics models #935

Merged
merged 5 commits into from
May 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.4.1.dev6",
"regenerated": "2021-05-14 07:20:15.237082",
"spec_repo_commit": "cc429de"
"regenerated": "2021-05-14 12:57:54.828603",
"spec_repo_commit": "8dce4be"
},
"v2": {
"apigentools_version": "1.4.1.dev6",
"regenerated": "2021-05-14 07:21:29.333035",
"spec_repo_commit": "cc429de"
"regenerated": "2021-05-14 12:58:52.756713",
"spec_repo_commit": "8dce4be"
}
}
}
8 changes: 6 additions & 2 deletions api/v1/datadog/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19038,6 +19038,7 @@ components:
monitor_id:
description: The associated monitor ID.
format: int64
readOnly: true
type: integer
name:
description: Name of the test.
Expand All @@ -19046,6 +19047,7 @@ components:
$ref: '#/components/schemas/SyntheticsTestOptions'
public_id:
description: The public ID for the test.
readOnly: true
type: string
status:
$ref: '#/components/schemas/SyntheticsTestPauseStatus'
Expand Down Expand Up @@ -19712,6 +19714,7 @@ components:
monitor_id:
description: The associated monitor ID.
format: int64
readOnly: true
type: integer
name:
description: Name of the test.
Expand All @@ -19720,6 +19723,7 @@ components:
$ref: '#/components/schemas/SyntheticsTestOptions'
public_id:
description: The public ID of the test.
readOnly: true
type: string
status:
$ref: '#/components/schemas/SyntheticsTestPauseStatus'
Expand Down Expand Up @@ -20706,8 +20710,6 @@ components:
the value will not be present if the variable is secure.
example: example-value
type: string
required:
- value
type: object
SyntheticsListTestsResponse:
description: Object containing an array of Synthetic tests configuration.
Expand Down Expand Up @@ -21447,6 +21449,7 @@ components:
monitor_id:
description: The associated monitor ID.
format: int64
readOnly: true
type: integer
name:
description: Name of the test.
Expand All @@ -21455,6 +21458,7 @@ components:
$ref: '#/components/schemas/SyntheticsTestOptions'
public_id:
description: The test public ID.
readOnly: true
type: string
status:
$ref: '#/components/schemas/SyntheticsTestPauseStatus'
Expand Down
4 changes: 2 additions & 2 deletions api/v1/datadog/docs/SyntheticsAPITest.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ Name | Type | Description | Notes
**Config** | Pointer to [**SyntheticsAPITestConfig**](SyntheticsAPITestConfig.md) | | [optional]
**Locations** | Pointer to **[]string** | Array of locations used to run the test. | [optional]
**Message** | Pointer to **string** | Notification message associated with the test. | [optional]
**MonitorId** | Pointer to **int64** | The associated monitor ID. | [optional]
**MonitorId** | Pointer to **int64** | The associated monitor ID. | [optional] [readonly]
**Name** | Pointer to **string** | Name of the test. | [optional]
**Options** | Pointer to [**SyntheticsTestOptions**](SyntheticsTestOptions.md) | | [optional]
**PublicId** | Pointer to **string** | The public ID for the test. | [optional]
**PublicId** | Pointer to **string** | The public ID for the test. | [optional] [readonly]
**Status** | Pointer to [**SyntheticsTestPauseStatus**](SyntheticsTestPauseStatus.md) | | [optional]
**Subtype** | Pointer to [**SyntheticsTestDetailsSubType**](SyntheticsTestDetailsSubType.md) | | [optional]
**Tags** | Pointer to **[]string** | Array of tags attached to the test. | [optional]
Expand Down
4 changes: 2 additions & 2 deletions api/v1/datadog/docs/SyntheticsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import (
func main() {
ctx := datadog.NewDefaultContext(context.Background())

body := *datadog.NewSyntheticsGlobalVariable("Example description", "MY_VARIABLE", []string{"Tags_example"}, *datadog.NewSyntheticsGlobalVariableValue("example-value")) // SyntheticsGlobalVariable | Details of the global variable to create.
body := *datadog.NewSyntheticsGlobalVariable("Example description", "MY_VARIABLE", []string{"Tags_example"}, *datadog.NewSyntheticsGlobalVariableValue()) // SyntheticsGlobalVariable | Details of the global variable to create.

configuration := datadog.NewConfiguration()

Expand Down Expand Up @@ -536,7 +536,7 @@ func main() {
ctx := datadog.NewDefaultContext(context.Background())

variableId := "variableId_example" // string | The ID of the global variable.
body := *datadog.NewSyntheticsGlobalVariable("Example description", "MY_VARIABLE", []string{"Tags_example"}, *datadog.NewSyntheticsGlobalVariableValue("example-value")) // SyntheticsGlobalVariable | Details of the global variable to update.
body := *datadog.NewSyntheticsGlobalVariable("Example description", "MY_VARIABLE", []string{"Tags_example"}, *datadog.NewSyntheticsGlobalVariableValue()) // SyntheticsGlobalVariable | Details of the global variable to update.

configuration := datadog.NewConfiguration()

Expand Down
4 changes: 2 additions & 2 deletions api/v1/datadog/docs/SyntheticsBrowserTest.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ Name | Type | Description | Notes
**Config** | Pointer to [**SyntheticsBrowserTestConfig**](SyntheticsBrowserTestConfig.md) | | [optional]
**Locations** | Pointer to **[]string** | Array of locations used to run the test. | [optional]
**Message** | **string** | Notification message associated with the test. Message can either be text or an empty string. |
**MonitorId** | Pointer to **int64** | The associated monitor ID. | [optional]
**MonitorId** | Pointer to **int64** | The associated monitor ID. | [optional] [readonly]
**Name** | Pointer to **string** | Name of the test. | [optional]
**Options** | Pointer to [**SyntheticsTestOptions**](SyntheticsTestOptions.md) | | [optional]
**PublicId** | Pointer to **string** | The public ID of the test. | [optional]
**PublicId** | Pointer to **string** | The public ID of the test. | [optional] [readonly]
**Status** | Pointer to [**SyntheticsTestPauseStatus**](SyntheticsTestPauseStatus.md) | | [optional]
**Steps** | Pointer to [**[]SyntheticsStep**](SyntheticsStep.md) | The steps of the test. | [optional]
**Tags** | Pointer to **[]string** | Array of tags attached to the test. | [optional]
Expand Down
9 changes: 7 additions & 2 deletions api/v1/datadog/docs/SyntheticsGlobalVariableValue.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
Name | Type | Description | Notes
---- | ---- | ----------- | ------
**Secure** | Pointer to **bool** | Determines if the variable is secure. | [optional]
**Value** | **string** | Value of the global variable. When reading a global variable, the value will not be present if the variable is secure. |
**Value** | Pointer to **string** | Value of the global variable. When reading a global variable, the value will not be present if the variable is secure. | [optional]

## Methods

### NewSyntheticsGlobalVariableValue

`func NewSyntheticsGlobalVariableValue(value string, ) *SyntheticsGlobalVariableValue`
`func NewSyntheticsGlobalVariableValue() *SyntheticsGlobalVariableValue`

NewSyntheticsGlobalVariableValue instantiates a new SyntheticsGlobalVariableValue object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -70,6 +70,11 @@ and a boolean to check if the value has been set.

SetValue sets Value field to given value.

### HasValue

`func (o *SyntheticsGlobalVariableValue) HasValue() bool`

HasValue returns a boolean if a field has been set.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
4 changes: 2 additions & 2 deletions api/v1/datadog/docs/SyntheticsTestDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ Name | Type | Description | Notes
**Config** | Pointer to [**SyntheticsTestConfig**](SyntheticsTestConfig.md) | | [optional]
**Locations** | Pointer to **[]string** | Array of locations used to run the test. | [optional]
**Message** | Pointer to **string** | Notification message associated with the test. | [optional]
**MonitorId** | Pointer to **int64** | The associated monitor ID. | [optional]
**MonitorId** | Pointer to **int64** | The associated monitor ID. | [optional] [readonly]
**Name** | Pointer to **string** | Name of the test. | [optional]
**Options** | Pointer to [**SyntheticsTestOptions**](SyntheticsTestOptions.md) | | [optional]
**PublicId** | Pointer to **string** | The test public ID. | [optional]
**PublicId** | Pointer to **string** | The test public ID. | [optional] [readonly]
**Status** | Pointer to [**SyntheticsTestPauseStatus**](SyntheticsTestPauseStatus.md) | | [optional]
**Steps** | Pointer to [**[]SyntheticsStep**](SyntheticsStep.md) | For browser test, the steps of the test. | [optional]
**Subtype** | Pointer to [**SyntheticsTestDetailsSubType**](SyntheticsTestDetailsSubType.md) | | [optional]
Expand Down
58 changes: 20 additions & 38 deletions api/v1/datadog/model_synthetics_global_variable_value.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/api/v1/datadog/api_synthetics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1361,7 +1361,7 @@ func TestSyntheticsVariableLifecycle(t *testing.T) {
Tags: []string{"synthetics"},
Value: datadog.SyntheticsGlobalVariableValue{
Secure: datadog.PtrBool(false),
Value: "VARIABLE_VALUE",
Value: datadog.PtrString("VARIABLE_VALUE"),
},
}

Expand Down Expand Up @@ -1433,7 +1433,7 @@ func TestSyntheticsVariableFromTestLifecycle(t *testing.T) {
Tags: []string{"synthetics"},
Value: datadog.SyntheticsGlobalVariableValue{
Secure: datadog.PtrBool(false),
Value: "",
Value: datadog.PtrString(""),
},
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2021-04-27T08:37:25.855666715Z
2021-05-14T11:23:05.854899+02:00
Loading