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