-
Notifications
You must be signed in to change notification settings - Fork 59
/
zz_standardappversion_types.go
executable file
·676 lines (509 loc) · 33.9 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
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
/*
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 {
// Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance.
// Defaults to a runtime-specific value.
MaxConcurrentRequests *float64 `json:"maxConcurrentRequests,omitempty" tf:"max_concurrent_requests,omitempty"`
// Maximum number of idle instances that should be maintained for this version.
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".
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.
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".
MinPendingLatency *string `json:"minPendingLatency,omitempty" tf:"min_pending_latency,omitempty"`
// Scheduler settings for standard environment.
// Structure is documented below.
StandardSchedulerSettings []StandardSchedulerSettingsObservation `json:"standardSchedulerSettings,omitempty" tf:"standard_scheduler_settings,omitempty"`
}
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 {
// 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.
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].
MaxInstances *float64 `json:"maxInstances,omitempty" tf:"max_instances,omitempty"`
}
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 {
// 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.
Files []FilesObservation `json:"files,omitempty" tf:"files,omitempty"`
// Zip File
// Structure is documented below.
Zip []ZipObservation `json:"zip,omitempty" tf:"zip,omitempty"`
}
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 {
// The format should be a shell command that can be fed to bash -c.
Shell *string `json:"shell,omitempty" tf:"shell,omitempty"`
}
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 {
// Full Serverless VPC Access Connector name e.g. /projects/my-project/locations/us-central1/connectors/c1.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// SHA1 checksum of the file
Sha1Sum *string `json:"sha1Sum,omitempty" tf:"sha1_sum,omitempty"`
// Source URL
SourceURL *string `json:"sourceUrl,omitempty" tf:"source_url,omitempty"`
}
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 {
// Actions to take when the user is not logged in.
// Possible values are: AUTH_FAIL_ACTION_REDIRECT, AUTH_FAIL_ACTION_UNAUTHORIZED.
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, LOGIN_REQUIRED.
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, REDIRECT_HTTP_RESPONSE_CODE_307.
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.
Script []ScriptObservation `json:"script,omitempty" tf:"script,omitempty"`
// Security (HTTPS) enforcement for this URL.
// Possible values are: SECURE_DEFAULT, SECURE_NEVER, SECURE_OPTIONAL, SECURE_ALWAYS.
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.
StaticFiles []StaticFilesObservation `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.
URLRegex *string `json:"urlRegex,omitempty" tf:"url_regex,omitempty"`
}
type HandlersParameters struct {
// Actions to take when the user is not logged in.
// Possible values are: AUTH_FAIL_ACTION_REDIRECT, 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, 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, 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, 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 {
// Name of the library. Example "django".
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Version of the library to select, or "latest".
Version *string `json:"version,omitempty" tf:"version,omitempty"`
}
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 {
// 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.
Instances *float64 `json:"instances,omitempty" tf:"instances,omitempty"`
}
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 {
// Path to the script from the application root directory.
ScriptPath *string `json:"scriptPath,omitempty" tf:"script_path,omitempty"`
}
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 {
// Allows App Engine second generation runtimes to access the legacy bundled services.
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.
AutomaticScaling []AutomaticScalingObservation `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.
BasicScaling []BasicScalingObservation `json:"basicScaling,omitempty" tf:"basic_scaling,omitempty"`
// If set to true, the service will be deleted if it is the last version.
DeleteServiceOnDestroy *bool `json:"deleteServiceOnDestroy,omitempty" tf:"delete_service_on_destroy,omitempty"`
// Code and application artifacts that make up this version.
// Structure is documented below.
Deployment []DeploymentObservation `json:"deployment,omitempty" tf:"deployment,omitempty"`
// The entrypoint for the application.
// Structure is documented below.
Entrypoint []EntrypointObservation `json:"entrypoint,omitempty" tf:"entrypoint,omitempty"`
// Environment variables available to the application.
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.
Handlers []HandlersObservation `json:"handlers,omitempty" tf:"handlers,omitempty"`
// an identifier for the resource with format apps/{{project}}/services/{{service}}/versions/{{version_id}}
ID *string `json:"id,omitempty" tf:"id,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, INBOUND_SERVICE_WARMUP.
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.
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.
Libraries []LibrariesObservation `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.
ManualScaling []ManualScalingObservation `json:"manualScaling,omitempty" tf:"manual_scaling,omitempty"`
// Full path to the Version resource in the API. Example, "v1".
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// If set to true, the application version will not be deleted.
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.
Project *string `json:"project,omitempty" tf:"project,omitempty"`
// Desired runtime. Example python27.
Runtime *string `json:"runtime,omitempty" 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.
RuntimeAPIVersion *string `json:"runtimeApiVersion,omitempty" tf:"runtime_api_version,omitempty"`
// AppEngine service resource
Service *string `json:"service,omitempty" 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.
ServiceAccount *string `json:"serviceAccount,omitempty" tf:"service_account,omitempty"`
// Whether multiple requests can be dispatched to this version at once.
Threadsafe *bool `json:"threadsafe,omitempty" tf:"threadsafe,omitempty"`
// Enables VPC connectivity for standard apps.
// Structure is documented below.
VPCAccessConnector []VPCAccessConnectorObservation `json:"vpcAccessConnector,omitempty" tf:"vpc_access_connector,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:Optional
Deployment []DeploymentParameters `json:"deployment,omitempty" tf:"deployment,omitempty"`
// The entrypoint for the application.
// Structure is documented below.
// +kubebuilder:validation:Optional
Entrypoint []EntrypointParameters `json:"entrypoint,omitempty" 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, 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:Optional
Runtime *string `json:"runtime,omitempty" 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 {
// Maximum number of instances to run for this version. Set to zero to disable maxInstances configuration.
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.
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.
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.
TargetThroughputUtilization *float64 `json:"targetThroughputUtilization,omitempty" tf:"target_throughput_utilization,omitempty"`
}
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 {
// 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.
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".
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.".
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.
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.
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.
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.
UploadPathRegex *string `json:"uploadPathRegex,omitempty" tf:"upload_path_regex,omitempty"`
}
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 {
// The egress setting for the connector, controlling what traffic is diverted through it.
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.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
}
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 {
// files count
FilesCount *float64 `json:"filesCount,omitempty" tf:"files_count,omitempty"`
// Source URL
SourceURL *string `json:"sourceUrl,omitempty" tf:"source_url,omitempty"`
}
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"`
// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.deployment)",message="deployment is a required parameter"
// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.entrypoint)",message="entrypoint is a required parameter"
// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.runtime)",message="runtime is a required parameter"
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{})
}