...
1# Copyright 2020 Google LLC
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15apiVersion: apiextensions.k8s.io/v1
16kind: CustomResourceDefinition
17metadata:
18 annotations:
19 cnrm.cloud.google.com/version: 1.106.0
20 creationTimestamp: null
21 labels:
22 cnrm.cloud.google.com/managed-by-kcc: "true"
23 cnrm.cloud.google.com/stability-level: alpha
24 cnrm.cloud.google.com/system: "true"
25 cnrm.cloud.google.com/tf2crd: "true"
26 name: bigqueryroutines.bigquery.cnrm.cloud.google.com
27spec:
28 group: bigquery.cnrm.cloud.google.com
29 names:
30 categories:
31 - gcp
32 kind: BigQueryRoutine
33 plural: bigqueryroutines
34 shortNames:
35 - gcpbigqueryroutine
36 - gcpbigqueryroutines
37 singular: bigqueryroutine
38 scope: Namespaced
39 versions:
40 - additionalPrinterColumns:
41 - jsonPath: .metadata.creationTimestamp
42 name: Age
43 type: date
44 - description: When 'True', the most recent reconcile of the resource succeeded
45 jsonPath: .status.conditions[?(@.type=='Ready')].status
46 name: Ready
47 type: string
48 - description: The reason for the value in 'Ready'
49 jsonPath: .status.conditions[?(@.type=='Ready')].reason
50 name: Status
51 type: string
52 - description: The last transition time for the value in 'Status'
53 jsonPath: .status.conditions[?(@.type=='Ready')].lastTransitionTime
54 name: Status Age
55 type: date
56 name: v1beta1
57 schema:
58 openAPIV3Schema:
59 properties:
60 apiVersion:
61 description: 'apiVersion defines the versioned schema of this representation
62 of an object. Servers should convert recognized schemas to the latest
63 internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
64 type: string
65 kind:
66 description: 'kind is a string value representing the REST resource this
67 object represents. Servers may infer this from the endpoint the client
68 submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
69 type: string
70 metadata:
71 type: object
72 spec:
73 properties:
74 arguments:
75 description: Input/output argument of a function or a stored procedure.
76 items:
77 properties:
78 argumentKind:
79 description: 'Defaults to FIXED_TYPE. Default value: "FIXED_TYPE"
80 Possible values: ["FIXED_TYPE", "ANY_TYPE"].'
81 type: string
82 dataType:
83 description: |-
84 A JSON schema for the data type. Required unless argumentKind = ANY_TYPE.
85 ~>**NOTE**: Because this field expects a JSON string, any changes to the string
86 will create a diff, even if the JSON itself hasn't changed. If the API returns
87 a different value for the same schema, e.g. it switched the order of values
88 or replaced STRUCT field type with RECORD field type, we currently cannot
89 suppress the recurring diff this causes. As a workaround, we recommend using
90 the schema as returned by the API.
91 type: string
92 mode:
93 description: 'Specifies whether the argument is input or output.
94 Can be set for procedures only. Possible values: ["IN", "OUT",
95 "INOUT"].'
96 type: string
97 name:
98 description: The name of this argument. Can be absent for function
99 return argument.
100 type: string
101 type: object
102 type: array
103 datasetRef:
104 description: The ID of the dataset containing this routine.
105 oneOf:
106 - not:
107 required:
108 - external
109 required:
110 - name
111 - not:
112 anyOf:
113 - required:
114 - name
115 - required:
116 - namespace
117 required:
118 - external
119 properties:
120 external:
121 description: 'Allowed value: The `name` field of a `BigQueryDataset`
122 resource.'
123 type: string
124 name:
125 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
126 type: string
127 namespace:
128 description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
129 type: string
130 type: object
131 definitionBody:
132 description: |-
133 The body of the routine. For functions, this is the expression in the AS clause.
134 If language=SQL, it is the substring inside (but excluding) the parentheses.
135 type: string
136 description:
137 description: The description of the routine if defined.
138 type: string
139 determinismLevel:
140 description: 'The determinism level of the JavaScript UDF if defined.
141 Possible values: ["DETERMINISM_LEVEL_UNSPECIFIED", "DETERMINISTIC",
142 "NOT_DETERMINISTIC"].'
143 type: string
144 importedLibraries:
145 description: |-
146 Optional. If language = "JAVASCRIPT", this field stores the path of the
147 imported JAVASCRIPT libraries.
148 items:
149 type: string
150 type: array
151 language:
152 description: 'The language of the routine. Possible values: ["SQL",
153 "JAVASCRIPT"].'
154 type: string
155 projectRef:
156 description: The project that this resource belongs to.
157 oneOf:
158 - not:
159 required:
160 - external
161 required:
162 - name
163 - not:
164 anyOf:
165 - required:
166 - name
167 - required:
168 - namespace
169 required:
170 - external
171 properties:
172 external:
173 description: 'Allowed value: The `name` field of a `Project` resource.'
174 type: string
175 name:
176 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
177 type: string
178 namespace:
179 description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
180 type: string
181 type: object
182 resourceID:
183 description: Immutable. Optional. The routineId of the resource. Used
184 for creation and acquisition. When unset, the value of `metadata.name`
185 is used as the default.
186 type: string
187 returnTableType:
188 description: |-
189 Optional. Can be set only if routineType = "TABLE_VALUED_FUNCTION".
190
191 If absent, the return table type is inferred from definitionBody at query time in each query
192 that references this routine. If present, then the columns in the evaluated table result will
193 be cast to match the column types specificed in return table type, at query time.
194 type: string
195 returnType:
196 description: |-
197 A JSON schema for the return type. Optional if language = "SQL"; required otherwise.
198 If absent, the return type is inferred from definitionBody at query time in each query
199 that references this routine. If present, then the evaluated result will be cast to
200 the specified returned type at query time. ~>**NOTE**: Because this field expects a JSON
201 string, any changes to the string will create a diff, even if the JSON itself hasn't
202 changed. If the API returns a different value for the same schema, e.g. it switche
203 d the order of values or replaced STRUCT field type with RECORD field type, we currently
204 cannot suppress the recurring diff this causes. As a workaround, we recommend using
205 the schema as returned by the API.
206 type: string
207 routineType:
208 description: 'Immutable. The type of routine. Possible values: ["SCALAR_FUNCTION",
209 "PROCEDURE", "TABLE_VALUED_FUNCTION"].'
210 type: string
211 required:
212 - datasetRef
213 - definitionBody
214 - projectRef
215 type: object
216 status:
217 properties:
218 conditions:
219 description: Conditions represent the latest available observation
220 of the resource's current state.
221 items:
222 properties:
223 lastTransitionTime:
224 description: Last time the condition transitioned from one status
225 to another.
226 type: string
227 message:
228 description: Human-readable message indicating details about
229 last transition.
230 type: string
231 reason:
232 description: Unique, one-word, CamelCase reason for the condition's
233 last transition.
234 type: string
235 status:
236 description: Status is the status of the condition. Can be True,
237 False, Unknown.
238 type: string
239 type:
240 description: Type is the type of the condition.
241 type: string
242 type: object
243 type: array
244 creationTime:
245 description: |-
246 The time when this routine was created, in milliseconds since the
247 epoch.
248 type: integer
249 lastModifiedTime:
250 description: |-
251 The time when this routine was modified, in milliseconds since the
252 epoch.
253 type: integer
254 observedGeneration:
255 description: ObservedGeneration is the generation of the resource
256 that was most recently observed by the Config Connector controller.
257 If this is equal to metadata.generation, then that means that the
258 current reported status reflects the most recent desired state of
259 the resource.
260 type: integer
261 type: object
262 required:
263 - spec
264 type: object
265 served: true
266 storage: true
267 subresources:
268 status: {}
269status:
270 acceptedNames:
271 kind: ""
272 plural: ""
273 conditions: []
274 storedVersions: []
View as plain text