/
webtest_spec_arm_types_gen.go
145 lines (107 loc) · 5.58 KB
/
webtest_spec_arm_types_gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
// Code generated by azure-service-operator-codegen. DO NOT EDIT.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
package v1api20220615
import "github.com/Azure/azure-service-operator/v2/pkg/genruntime"
type Webtest_Spec_ARM struct {
// Location: Resource location
Location *string `json:"location,omitempty"`
Name string `json:"name,omitempty"`
// Properties: Metadata describing a web test for an Azure resource.
Properties *WebTestProperties_ARM `json:"properties,omitempty"`
// Tags: Resource tags
Tags map[string]string `json:"tags,omitempty"`
}
var _ genruntime.ARMResourceSpec = &Webtest_Spec_ARM{}
// GetAPIVersion returns the ARM API version of the resource. This is always "2022-06-15"
func (webtest Webtest_Spec_ARM) GetAPIVersion() string {
return string(APIVersion_Value)
}
// GetName returns the Name of the resource
func (webtest *Webtest_Spec_ARM) GetName() string {
return webtest.Name
}
// GetType returns the ARM Type of the resource. This is always "Microsoft.Insights/webtests"
func (webtest *Webtest_Spec_ARM) GetType() string {
return "Microsoft.Insights/webtests"
}
// Metadata describing a web test for an Azure resource.
type WebTestProperties_ARM struct {
// Configuration: An XML configuration specification for a WebTest.
Configuration *WebTestProperties_Configuration_ARM `json:"Configuration,omitempty"`
// Description: User defined description for this WebTest.
Description *string `json:"Description,omitempty"`
// Enabled: Is the test actively being monitored.
Enabled *bool `json:"Enabled,omitempty"`
// Frequency: Interval in seconds between test runs for this WebTest. Default value is 300.
Frequency *int `json:"Frequency,omitempty"`
// Kind: The kind of web test this is, valid choices are ping, multistep and standard.
Kind *WebTestProperties_Kind `json:"Kind,omitempty"`
// Locations: A list of where to physically run the tests from to give global coverage for accessibility of your
// application.
Locations []WebTestGeolocation_ARM `json:"Locations,omitempty"`
// Name: User defined name if this WebTest.
Name *string `json:"Name,omitempty"`
// Request: The collection of request properties
Request *WebTestProperties_Request_ARM `json:"Request,omitempty"`
// RetryEnabled: Allow for retries should this WebTest fail.
RetryEnabled *bool `json:"RetryEnabled,omitempty"`
// SyntheticMonitorId: Unique ID of this WebTest. This is typically the same value as the Name field.
SyntheticMonitorId *string `json:"SyntheticMonitorId,omitempty"`
// Timeout: Seconds until this WebTest will timeout and fail. Default value is 30.
Timeout *int `json:"Timeout,omitempty"`
// ValidationRules: The collection of validation rule properties
ValidationRules *WebTestProperties_ValidationRules_ARM `json:"ValidationRules,omitempty"`
}
// Geo-physical location to run a WebTest from. You must specify one or more locations for the test to run from.
type WebTestGeolocation_ARM struct {
// Id: Location ID for the WebTest to run from.
Id *string `json:"Id,omitempty"`
}
type WebTestProperties_Configuration_ARM struct {
// WebTest: The XML specification of a WebTest to run against an application.
WebTest *string `json:"WebTest,omitempty"`
}
type WebTestProperties_Request_ARM struct {
// FollowRedirects: Follow redirects for this web test.
FollowRedirects *bool `json:"FollowRedirects,omitempty"`
// Headers: List of headers and their values to add to the WebTest call.
Headers []HeaderField_ARM `json:"Headers,omitempty"`
// HttpVerb: Http verb to use for this web test.
HttpVerb *string `json:"HttpVerb,omitempty"`
// ParseDependentRequests: Parse Dependent request for this WebTest.
ParseDependentRequests *bool `json:"ParseDependentRequests,omitempty"`
// RequestBody: Base64 encoded string body to send with this web test.
RequestBody *string `json:"RequestBody,omitempty"`
// RequestUrl: Url location to test.
RequestUrl *string `json:"RequestUrl,omitempty"`
}
type WebTestProperties_ValidationRules_ARM struct {
// ContentValidation: The collection of content validation properties
ContentValidation *WebTestProperties_ValidationRules_ContentValidation_ARM `json:"ContentValidation,omitempty"`
// ExpectedHttpStatusCode: Validate that the WebTest returns the http status code provided.
ExpectedHttpStatusCode *int `json:"ExpectedHttpStatusCode,omitempty"`
// IgnoreHttpStatusCode: When set, validation will ignore the status code.
IgnoreHttpStatusCode *bool `json:"IgnoreHttpStatusCode,omitempty"`
// SSLCertRemainingLifetimeCheck: A number of days to check still remain before the the existing SSL cert expires. Value
// must be positive and the SSLCheck must be set to true.
SSLCertRemainingLifetimeCheck *int `json:"SSLCertRemainingLifetimeCheck,omitempty"`
// SSLCheck: Checks to see if the SSL cert is still valid.
SSLCheck *bool `json:"SSLCheck,omitempty"`
}
// A header to add to the WebTest.
type HeaderField_ARM struct {
// Key: The name of the header.
Key *string `json:"key,omitempty"`
// Value: The value of the header.
Value *string `json:"value,omitempty"`
}
type WebTestProperties_ValidationRules_ContentValidation_ARM struct {
// ContentMatch: Content to look for in the return of the WebTest. Must not be null or empty.
ContentMatch *string `json:"ContentMatch,omitempty"`
// IgnoreCase: When set, this value makes the ContentMatch validation case insensitive.
IgnoreCase *bool `json:"IgnoreCase,omitempty"`
// PassIfTextFound: When true, validation will pass if there is a match for the ContentMatch string. If false, validation
// will fail if there is a match
PassIfTextFound *bool `json:"PassIfTextFound,omitempty"`
}