-
Notifications
You must be signed in to change notification settings - Fork 61
/
zz_standardappversion_types.go
executable file
·454 lines (347 loc) · 20.2 KB
/
zz_standardappversion_types.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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
/*
Copyright 2021 The Crossplane Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Code generated by upjet. DO NOT EDIT.
package v1beta1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type AutomaticScalingObservation struct {
}
type AutomaticScalingParameters struct {
// Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance.
// Defaults to a runtime-specific value.
// +kubebuilder:validation:Optional
MaxConcurrentRequests *float64 `json:"maxConcurrentRequests,omitempty" tf:"max_concurrent_requests,omitempty"`
// Maximum number of idle instances that should be maintained for this version.
// +kubebuilder:validation:Optional
MaxIdleInstances *float64 `json:"maxIdleInstances,omitempty" tf:"max_idle_instances,omitempty"`
// Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it.
// A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
// +kubebuilder:validation:Optional
MaxPendingLatency *string `json:"maxPendingLatency,omitempty" tf:"max_pending_latency,omitempty"`
// Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service.
// +kubebuilder:validation:Optional
MinIdleInstances *float64 `json:"minIdleInstances,omitempty" tf:"min_idle_instances,omitempty"`
// Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it.
// A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
// +kubebuilder:validation:Optional
MinPendingLatency *string `json:"minPendingLatency,omitempty" tf:"min_pending_latency,omitempty"`
// Scheduler settings for standard environment.
// Structure is documented below.
// +kubebuilder:validation:Optional
StandardSchedulerSettings []StandardSchedulerSettingsParameters `json:"standardSchedulerSettings,omitempty" tf:"standard_scheduler_settings,omitempty"`
}
type BasicScalingObservation struct {
}
type BasicScalingParameters struct {
// Duration of time after the last request that an instance must wait before the instance is shut down.
// A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s". Defaults to 900s.
// +kubebuilder:validation:Optional
IdleTimeout *string `json:"idleTimeout,omitempty" tf:"idle_timeout,omitempty"`
// Maximum number of instances to create for this version. Must be in the range [1.0, 200.0].
// +kubebuilder:validation:Required
MaxInstances *float64 `json:"maxInstances" tf:"max_instances,omitempty"`
}
type DeploymentObservation struct {
}
type DeploymentParameters struct {
// Manifest of the files stored in Google Cloud Storage that are included as part of this version.
// All files must be readable using the credentials supplied with this call.
// Structure is documented below.
// +kubebuilder:validation:Optional
Files []FilesParameters `json:"files,omitempty" tf:"files,omitempty"`
// Zip File
// Structure is documented below.
// +kubebuilder:validation:Optional
Zip []ZipParameters `json:"zip,omitempty" tf:"zip,omitempty"`
}
type EntrypointObservation struct {
}
type EntrypointParameters struct {
// The format should be a shell command that can be fed to bash -c.
// +kubebuilder:validation:Required
Shell *string `json:"shell" tf:"shell,omitempty"`
}
type FilesObservation struct {
}
type FilesParameters struct {
// Full Serverless VPC Access Connector name e.g. /projects/my-project/locations/us-central1/connectors/c1.
// +kubebuilder:validation:Required
Name *string `json:"name" tf:"name,omitempty"`
// SHA1 checksum of the file
// +kubebuilder:validation:Optional
Sha1Sum *string `json:"sha1Sum,omitempty" tf:"sha1_sum,omitempty"`
// Source URL
// +kubebuilder:validation:Required
SourceURL *string `json:"sourceUrl" tf:"source_url,omitempty"`
}
type HandlersObservation struct {
}
type HandlersParameters struct {
// Actions to take when the user is not logged in.
// Possible values are AUTH_FAIL_ACTION_REDIRECT and AUTH_FAIL_ACTION_UNAUTHORIZED.
// +kubebuilder:validation:Optional
AuthFailAction *string `json:"authFailAction,omitempty" tf:"auth_fail_action,omitempty"`
// Methods to restrict access to a URL based on login status.
// Possible values are LOGIN_OPTIONAL, LOGIN_ADMIN, and LOGIN_REQUIRED.
// +kubebuilder:validation:Optional
Login *string `json:"login,omitempty" tf:"login,omitempty"`
// 30x code to use when performing redirects for the secure field.
// Possible values are REDIRECT_HTTP_RESPONSE_CODE_301, REDIRECT_HTTP_RESPONSE_CODE_302, REDIRECT_HTTP_RESPONSE_CODE_303, and REDIRECT_HTTP_RESPONSE_CODE_307.
// +kubebuilder:validation:Optional
RedirectHTTPResponseCode *string `json:"redirectHttpResponseCode,omitempty" tf:"redirect_http_response_code,omitempty"`
// Executes a script to handle the requests that match this URL pattern.
// Only the auto value is supported for Node.js in the App Engine standard environment, for example "script:" "auto".
// Structure is documented below.
// +kubebuilder:validation:Optional
Script []ScriptParameters `json:"script,omitempty" tf:"script,omitempty"`
// Security (HTTPS) enforcement for this URL.
// Possible values are SECURE_DEFAULT, SECURE_NEVER, SECURE_OPTIONAL, and SECURE_ALWAYS.
// +kubebuilder:validation:Optional
SecurityLevel *string `json:"securityLevel,omitempty" tf:"security_level,omitempty"`
// Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static file handlers describe which files in the application directory are static files, and which URLs serve them.
// Structure is documented below.
// +kubebuilder:validation:Optional
StaticFiles []StaticFilesParameters `json:"staticFiles,omitempty" tf:"static_files,omitempty"`
// URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings.
// All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path.
// +kubebuilder:validation:Optional
URLRegex *string `json:"urlRegex,omitempty" tf:"url_regex,omitempty"`
}
type LibrariesObservation struct {
}
type LibrariesParameters struct {
// Name of the library. Example "django".
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Version of the library to select, or "latest".
// +kubebuilder:validation:Optional
Version *string `json:"version,omitempty" tf:"version,omitempty"`
}
type ManualScalingObservation struct {
}
type ManualScalingParameters struct {
// Number of instances to assign to the service at the start.
// Note: When managing the number of instances at runtime through the App Engine Admin API or the (now deprecated) Python 2
// Modules API set_num_instances() you must use lifecycle.ignore_changes = ["manual_scaling"[0].instances] to prevent drift detection.
// +kubebuilder:validation:Required
Instances *float64 `json:"instances" tf:"instances,omitempty"`
}
type ScriptObservation struct {
}
type ScriptParameters struct {
// Path to the script from the application root directory.
// +kubebuilder:validation:Required
ScriptPath *string `json:"scriptPath" tf:"script_path,omitempty"`
}
type StandardAppVersionObservation struct {
// an identifier for the resource with format apps/{{project}}/services/{{service}}/versions/{{version_id}}
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// Full path to the Version resource in the API. Example, "v1".
Name *string `json:"name,omitempty" tf:"name,omitempty"`
}
type StandardAppVersionParameters struct {
// Allows App Engine second generation runtimes to access the legacy bundled services.
// +kubebuilder:validation:Optional
AppEngineApis *bool `json:"appEngineApis,omitempty" tf:"app_engine_apis,omitempty"`
// Automatic scaling is based on request rate, response latencies, and other application metrics.
// Structure is documented below.
// +kubebuilder:validation:Optional
AutomaticScaling []AutomaticScalingParameters `json:"automaticScaling,omitempty" tf:"automatic_scaling,omitempty"`
// Basic scaling creates instances when your application receives requests. Each instance will be shut down when the application becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity.
// Structure is documented below.
// +kubebuilder:validation:Optional
BasicScaling []BasicScalingParameters `json:"basicScaling,omitempty" tf:"basic_scaling,omitempty"`
// If set to true, the service will be deleted if it is the last version.
// +kubebuilder:validation:Optional
DeleteServiceOnDestroy *bool `json:"deleteServiceOnDestroy,omitempty" tf:"delete_service_on_destroy,omitempty"`
// Code and application artifacts that make up this version.
// Structure is documented below.
// +kubebuilder:validation:Required
Deployment []DeploymentParameters `json:"deployment" tf:"deployment,omitempty"`
// The entrypoint for the application.
// Structure is documented below.
// +kubebuilder:validation:Required
Entrypoint []EntrypointParameters `json:"entrypoint" tf:"entrypoint,omitempty"`
// Environment variables available to the application.
// +kubebuilder:validation:Optional
EnvVariables map[string]*string `json:"envVariables,omitempty" tf:"env_variables,omitempty"`
// An ordered list of URL-matching patterns that should be applied to incoming requests.
// The first matching URL handles the request and other request handlers are not attempted.
// Structure is documented below.
// +kubebuilder:validation:Optional
Handlers []HandlersParameters `json:"handlers,omitempty" tf:"handlers,omitempty"`
// A list of the types of messages that this application is able to receive.
// Each value may be one of INBOUND_SERVICE_MAIL, INBOUND_SERVICE_MAIL_BOUNCE, INBOUND_SERVICE_XMPP_ERROR, INBOUND_SERVICE_XMPP_MESSAGE, INBOUND_SERVICE_XMPP_SUBSCRIBE, INBOUND_SERVICE_XMPP_PRESENCE, INBOUND_SERVICE_CHANNEL_PRESENCE, and INBOUND_SERVICE_WARMUP.
// +kubebuilder:validation:Optional
InboundServices []*string `json:"inboundServices,omitempty" tf:"inbound_services,omitempty"`
// Instance class that is used to run this version. Valid values are
// AutomaticScaling: F1, F2, F4, F4_1G
// BasicScaling or ManualScaling: B1, B2, B4, B4_1G, B8
// Defaults to F1 for AutomaticScaling and B2 for ManualScaling and BasicScaling. If no scaling is specified, AutomaticScaling is chosen.
// +kubebuilder:validation:Optional
InstanceClass *string `json:"instanceClass,omitempty" tf:"instance_class,omitempty"`
// Configuration for third-party Python runtime libraries that are required by the application.
// Structure is documented below.
// +kubebuilder:validation:Optional
Libraries []LibrariesParameters `json:"libraries,omitempty" tf:"libraries,omitempty"`
// A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time.
// Structure is documented below.
// +kubebuilder:validation:Optional
ManualScaling []ManualScalingParameters `json:"manualScaling,omitempty" tf:"manual_scaling,omitempty"`
// If set to true, the application version will not be deleted.
// +kubebuilder:validation:Optional
NoopOnDestroy *bool `json:"noopOnDestroy,omitempty" tf:"noop_on_destroy,omitempty"`
// The ID of the project in which the resource belongs.
// If it is not provided, the provider project is used.
// +kubebuilder:validation:Optional
Project *string `json:"project,omitempty" tf:"project,omitempty"`
// Desired runtime. Example python27.
// +kubebuilder:validation:Required
Runtime *string `json:"runtime" tf:"runtime,omitempty"`
// The version of the API in the given runtime environment.
// Please see the app.yaml reference for valid values at https://cloud.google.com/appengine/docs/standard/<language>/config/appref
// Substitute <language> with python, java, php, ruby, go or nodejs.
// +kubebuilder:validation:Optional
RuntimeAPIVersion *string `json:"runtimeApiVersion,omitempty" tf:"runtime_api_version,omitempty"`
// AppEngine service resource
// +kubebuilder:validation:Required
Service *string `json:"service" tf:"service,omitempty"`
// The identity that the deployed version will run as. Admin API will use the App Engine Appspot service account as default if this field is neither provided in app.yaml file nor through CLI flag.
// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/cloudplatform/v1beta1.ServiceAccount
// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractParamPath("email",true)
// +kubebuilder:validation:Optional
ServiceAccount *string `json:"serviceAccount,omitempty" tf:"service_account,omitempty"`
// Reference to a ServiceAccount in cloudplatform to populate serviceAccount.
// +kubebuilder:validation:Optional
ServiceAccountRef *v1.Reference `json:"serviceAccountRef,omitempty" tf:"-"`
// Selector for a ServiceAccount in cloudplatform to populate serviceAccount.
// +kubebuilder:validation:Optional
ServiceAccountSelector *v1.Selector `json:"serviceAccountSelector,omitempty" tf:"-"`
// Whether multiple requests can be dispatched to this version at once.
// +kubebuilder:validation:Optional
Threadsafe *bool `json:"threadsafe,omitempty" tf:"threadsafe,omitempty"`
// Enables VPC connectivity for standard apps.
// Structure is documented below.
// +kubebuilder:validation:Optional
VPCAccessConnector []VPCAccessConnectorParameters `json:"vpcAccessConnector,omitempty" tf:"vpc_access_connector,omitempty"`
}
type StandardSchedulerSettingsObservation struct {
}
type StandardSchedulerSettingsParameters struct {
// Maximum number of instances to run for this version. Set to zero to disable maxInstances configuration.
// +kubebuilder:validation:Optional
MaxInstances *float64 `json:"maxInstances,omitempty" tf:"max_instances,omitempty"`
// Minimum number of instances to run for this version. Set to zero to disable minInstances configuration.
// +kubebuilder:validation:Optional
MinInstances *float64 `json:"minInstances,omitempty" tf:"min_instances,omitempty"`
// Target CPU utilization ratio to maintain when scaling. Should be a value in the range [0.50, 0.95], zero, or a negative value.
// +kubebuilder:validation:Optional
TargetCPUUtilization *float64 `json:"targetCpuUtilization,omitempty" tf:"target_cpu_utilization,omitempty"`
// Target throughput utilization ratio to maintain when scaling. Should be a value in the range [0.50, 0.95], zero, or a negative value.
// +kubebuilder:validation:Optional
TargetThroughputUtilization *float64 `json:"targetThroughputUtilization,omitempty" tf:"target_throughput_utilization,omitempty"`
}
type StaticFilesObservation struct {
}
type StaticFilesParameters struct {
// Whether files should also be uploaded as code data. By default, files declared in static file handlers are uploaded as
// static data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged
// against both your code and static data storage resource quotas.
// +kubebuilder:validation:Optional
ApplicationReadable *bool `json:"applicationReadable,omitempty" tf:"application_readable,omitempty"`
// Time a static file served by this handler should be cached by web proxies and browsers.
// A duration in seconds with up to nine fractional digits, terminated by 's'. Example "3.5s".
// +kubebuilder:validation:Optional
Expiration *string `json:"expiration,omitempty" tf:"expiration,omitempty"`
// HTTP headers to use for all responses from these URLs.
// An object containing a list of "key:value" value pairs.".
// +kubebuilder:validation:Optional
HTTPHeaders map[string]*string `json:"httpHeaders,omitempty" tf:"http_headers,omitempty"`
// MIME type used to serve all files served by this handler.
// Defaults to file-specific MIME types, which are derived from each file's filename extension.
// +kubebuilder:validation:Optional
MimeType *string `json:"mimeType,omitempty" tf:"mime_type,omitempty"`
// Path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern.
// +kubebuilder:validation:Optional
Path *string `json:"path,omitempty" tf:"path,omitempty"`
// Whether this handler should match the request if the file referenced by the handler does not exist.
// +kubebuilder:validation:Optional
RequireMatchingFile *bool `json:"requireMatchingFile,omitempty" tf:"require_matching_file,omitempty"`
// Regular expression that matches the file paths for all files that should be referenced by this handler.
// +kubebuilder:validation:Optional
UploadPathRegex *string `json:"uploadPathRegex,omitempty" tf:"upload_path_regex,omitempty"`
}
type VPCAccessConnectorObservation struct {
}
type VPCAccessConnectorParameters struct {
// The egress setting for the connector, controlling what traffic is diverted through it.
// +kubebuilder:validation:Optional
EgressSetting *string `json:"egressSetting,omitempty" tf:"egress_setting,omitempty"`
// Full Serverless VPC Access Connector name e.g. /projects/my-project/locations/us-central1/connectors/c1.
// +kubebuilder:validation:Required
Name *string `json:"name" tf:"name,omitempty"`
}
type ZipObservation struct {
}
type ZipParameters struct {
// files count
// +kubebuilder:validation:Optional
FilesCount *float64 `json:"filesCount,omitempty" tf:"files_count,omitempty"`
// Source URL
// +kubebuilder:validation:Required
SourceURL *string `json:"sourceUrl" tf:"source_url,omitempty"`
}
// StandardAppVersionSpec defines the desired state of StandardAppVersion
type StandardAppVersionSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider StandardAppVersionParameters `json:"forProvider"`
}
// StandardAppVersionStatus defines the observed state of StandardAppVersion.
type StandardAppVersionStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider StandardAppVersionObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// StandardAppVersion is the Schema for the StandardAppVersions API. Standard App Version resource to create a new version of standard GAE Application.
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,gcp}
type StandardAppVersion struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec StandardAppVersionSpec `json:"spec"`
Status StandardAppVersionStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// StandardAppVersionList contains a list of StandardAppVersions
type StandardAppVersionList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []StandardAppVersion `json:"items"`
}
// Repository type metadata.
var (
StandardAppVersion_Kind = "StandardAppVersion"
StandardAppVersion_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: StandardAppVersion_Kind}.String()
StandardAppVersion_KindAPIVersion = StandardAppVersion_Kind + "." + CRDGroupVersion.String()
StandardAppVersion_GroupVersionKind = CRDGroupVersion.WithKind(StandardAppVersion_Kind)
)
func init() {
SchemeBuilder.Register(&StandardAppVersion{}, &StandardAppVersionList{})
}