-
Notifications
You must be signed in to change notification settings - Fork 202
/
computebackendbucket_types.go
156 lines (129 loc) · 6.5 KB
/
computebackendbucket_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
// Copyright 2020 Google LLC
//
// 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.
// ----------------------------------------------------------------------------
//
// *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
//
// ----------------------------------------------------------------------------
//
// This file is automatically generated by Config Connector and manual
// changes will be clobbered when the file is regenerated.
//
// ----------------------------------------------------------------------------
// *** DISCLAIMER ***
// Config Connector's go-client for CRDs is currently in ALPHA, which means
// that future versions of the go-client may include breaking changes.
// Please try it out and give us feedback!
package v1beta1
import (
"github.com/GoogleCloudPlatform/k8s-config-connector/pkg/apis/k8s/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
type BackendbucketCdnPolicy struct {
/* Specifies the cache setting for all responses from this backend.
The possible values are: USE_ORIGIN_HEADERS, FORCE_CACHE_ALL and CACHE_ALL_STATIC Possible values: ["USE_ORIGIN_HEADERS", "FORCE_CACHE_ALL", "CACHE_ALL_STATIC"] */
// +optional
CacheMode *string `json:"cacheMode,omitempty"`
/* Specifies the maximum allowed TTL for cached content served by this origin. */
// +optional
ClientTtl *int `json:"clientTtl,omitempty"`
/* Specifies the default TTL for cached content served by this origin for responses
that do not have an existing valid TTL (max-age or s-max-age). */
// +optional
DefaultTtl *int `json:"defaultTtl,omitempty"`
/* Specifies the maximum allowed TTL for cached content served by this origin. */
// +optional
MaxTtl *int `json:"maxTtl,omitempty"`
/* Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. */
// +optional
NegativeCaching *bool `json:"negativeCaching,omitempty"`
/* Sets a cache TTL for the specified HTTP status code. negativeCaching must be enabled to configure negativeCachingPolicy.
Omitting the policy and leaving negativeCaching enabled will use Cloud CDN's default cache TTLs. */
// +optional
NegativeCachingPolicy []BackendbucketNegativeCachingPolicy `json:"negativeCachingPolicy,omitempty"`
/* Serve existing content from the cache (if available) when revalidating content with the origin, or when an error is encountered when refreshing the cache. */
// +optional
ServeWhileStale *int `json:"serveWhileStale,omitempty"`
/* Maximum number of seconds the response to a signed URL request will
be considered fresh. After this time period,
the response will be revalidated before being served.
When serving responses to signed URL requests,
Cloud CDN will internally behave as though
all responses from this backend had a "Cache-Control: public,
max-age=[TTL]" header, regardless of any existing Cache-Control
header. The actual headers served in responses will not be altered. */
// +optional
SignedUrlCacheMaxAgeSec *int `json:"signedUrlCacheMaxAgeSec,omitempty"`
}
type BackendbucketNegativeCachingPolicy struct {
/* The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 308, 404, 405, 410, 421, 451 and 501
can be specified as values, and you cannot specify a status code more than once. */
// +optional
Code *int `json:"code,omitempty"`
/* The TTL (in seconds) for which to cache responses with the corresponding status code. The maximum allowed value is 1800s
(30 minutes), noting that infrequently accessed objects may be evicted from the cache before the defined TTL. */
// +optional
Ttl *int `json:"ttl,omitempty"`
}
type ComputeBackendBucketSpec struct {
/* Reference to the bucket. */
BucketRef v1alpha1.ResourceRef `json:"bucketRef"`
/* Cloud CDN configuration for this Backend Bucket. */
// +optional
CdnPolicy *BackendbucketCdnPolicy `json:"cdnPolicy,omitempty"`
/* Headers that the HTTP/S load balancer should add to proxied responses. */
// +optional
CustomResponseHeaders []string `json:"customResponseHeaders,omitempty"`
/* An optional textual description of the resource; provided by the
client when the resource is created. */
// +optional
Description *string `json:"description,omitempty"`
/* If true, enable Cloud CDN for this BackendBucket. */
// +optional
EnableCdn *bool `json:"enableCdn,omitempty"`
/* Immutable. Optional. The name of the resource. Used for creation and acquisition. When unset, the value of `metadata.name` is used as the default. */
// +optional
ResourceID *string `json:"resourceID,omitempty"`
}
type ComputeBackendBucketStatus struct {
/* Conditions represent the latest available observations of the
ComputeBackendBucket's current state. */
Conditions []v1alpha1.Condition `json:"conditions,omitempty"`
/* Creation timestamp in RFC3339 text format. */
CreationTimestamp string `json:"creationTimestamp,omitempty"`
/* ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource. */
ObservedGeneration int `json:"observedGeneration,omitempty"`
/* */
SelfLink string `json:"selfLink,omitempty"`
}
// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ComputeBackendBucket is the Schema for the compute API
// +k8s:openapi-gen=true
type ComputeBackendBucket struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ComputeBackendBucketSpec `json:"spec,omitempty"`
Status ComputeBackendBucketStatus `json:"status,omitempty"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ComputeBackendBucketList contains a list of ComputeBackendBucket
type ComputeBackendBucketList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ComputeBackendBucket `json:"items"`
}
func init() {
SchemeBuilder.Register(&ComputeBackendBucket{}, &ComputeBackendBucketList{})
}