Documentation ¶
Overview ¶
Copyright 2022 Google LLC. All Rights Reserved.
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. Package bigquery provices methods and types for managing bigquery GCP resources.
Copyright 2022 Google LLC. All Rights Reserved.
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. Package beta defines operations in the declarative SDK.
Copyright 2022 Google LLC. All Rights Reserved.
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.
Copyright 2022 Google LLC. All Rights Reserved.
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.
Copyright 2022 Google LLC. All Rights Reserved.
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.
Copyright 2022 Google LLC. All Rights Reserved.
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.
Copyright 2022 Google LLC. All Rights Reserved.
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.
Copyright 2022 Google LLC. All Rights Reserved.
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.
Index ¶
- Constants
- Variables
- func DCLDatasetSchema() *dcl.Schema
- func DCLRoutineSchema() *dcl.Schema
- type Client
- func (c *Client) ApplyDataset(ctx context.Context, rawDesired *Dataset, opts ...dcl.ApplyOption) (*Dataset, error)
- func (c *Client) ApplyRoutine(ctx context.Context, rawDesired *Routine, opts ...dcl.ApplyOption) (*Routine, error)
- func (c *Client) DeleteAllDataset(ctx context.Context, project string, filter func(*Dataset) bool) error
- func (c *Client) DeleteAllRoutine(ctx context.Context, project, dataset string, filter func(*Routine) bool) error
- func (c *Client) DeleteDataset(ctx context.Context, r *Dataset) error
- func (c *Client) DeleteRoutine(ctx context.Context, r *Routine) error
- func (c *Client) GetDataset(ctx context.Context, r *Dataset) (*Dataset, error)
- func (c *Client) GetRoutine(ctx context.Context, r *Routine) (*Routine, error)
- func (c *Client) ListDataset(ctx context.Context, project string) (*DatasetList, error)
- func (c *Client) ListDatasetWithMaxResults(ctx context.Context, project string, pageSize int32) (*DatasetList, error)
- func (c *Client) ListRoutine(ctx context.Context, project, dataset string) (*RoutineList, error)
- func (c *Client) ListRoutineWithMaxResults(ctx context.Context, project, dataset string, pageSize int32) (*RoutineList, error)
- type Dataset
- type DatasetAccess
- type DatasetAccessRoutine
- type DatasetAccessView
- type DatasetDefaultEncryptionConfiguration
- type DatasetList
- type Routine
- type RoutineArguments
- type RoutineArgumentsArgumentKindEnum
- type RoutineArgumentsDataType
- type RoutineArgumentsDataTypeStructType
- type RoutineArgumentsDataTypeStructTypeFields
- type RoutineArgumentsDataTypeTypeKindEnum
- type RoutineArgumentsModeEnum
- type RoutineDeterminismLevelEnum
- type RoutineLanguageEnum
- type RoutineList
- type RoutineRoutineTypeEnum
Constants ¶
const DatasetMaxPage = -1
const RoutineMaxPage = -1
Variables ¶
var YAML_dataset = []byte("info:\n title: Bigquery/Dataset\n description: The Bigquery Dataset resource\n x-dcl-struct-name: Dataset\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Dataset\n parameters:\n - name: Dataset\n required: true\n description: A full instance of a Dataset\n apply:\n description: The function used to apply information about a Dataset\n parameters:\n - name: Dataset\n required: true\n description: A full instance of a Dataset\n delete:\n description: The function used to delete a Dataset\n parameters:\n - name: Dataset\n required: true\n description: A full instance of a Dataset\n deleteAll:\n description: The function used to delete all Dataset\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Dataset\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Dataset:\n title: Dataset\n x-dcl-id: projects/{{project}}/datasets/{{name}}\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n properties:\n access:\n type: array\n x-dcl-go-name: Access\n description: 'Optional. An array of objects that define dataset access for\n one or more entities. You can set this property when inserting or updating\n a dataset in order to control who is allowed to access the data. If unspecified\n at dataset creation time, BigQuery adds default dataset access for the\n following entities: access.specialGroup: projectReaders; access.role:\n READER; access.specialGroup: projectWriters; access.role: WRITER; access.specialGroup:\n projectOwners; access.role: OWNER; access.userByEmail: ; access.role:\n OWNER;'\n x-dcl-send-empty: true\n x-dcl-list-type: set\n items:\n type: object\n x-dcl-go-type: DatasetAccess\n required:\n - role\n properties:\n domain:\n type: string\n x-dcl-go-name: Domain\n description: 'A domain to grant access to. Any users signed in with\n the domain specified will be granted the specified access. Example:\n \"example.com\". Maps to IAM policy member \"domain:DOMAIN\".'\n x-dcl-conflicts:\n - userByEmail\n - groupByEmail\n - specialGroup\n - iamMember\n - view\n - routine\n groupByEmail:\n type: string\n x-dcl-go-name: GroupByEmail\n description: An email address of a Google Group to grant access to.\n Maps to IAM policy member \"group:GROUP\".\n x-dcl-conflicts:\n - userByEmail\n - domain\n - specialGroup\n - iamMember\n - view\n - routine\n iamMember:\n type: string\n x-dcl-go-name: IamMember\n description: Some other type of member that appears in the IAM Policy\n but isn't a user, group, domain, or special group.\n x-dcl-conflicts:\n - userByEmail\n - groupByEmail\n - domain\n - specialGroup\n - view\n - routine\n role:\n type: string\n x-dcl-go-name: Role\n description: 'Required. An IAM role ID that should be granted to the\n user, group, or domain specified in this access entry. The following\n legacy mappings will be applied: OWNER <=> roles/bigquery.dataOwner\n WRITER <=> roles/bigquery.dataEditor READER <=> roles/bigquery.dataViewer\n This field will accept any of the above formats, but will return\n only the legacy format. For example, if you set this field to \"roles/bigquery.dataOwner\",\n it will be returned back as \"OWNER\".'\n routine:\n type: object\n x-dcl-go-name: Routine\n x-dcl-go-type: DatasetAccessRoutine\n description: A routine from a different dataset to grant access to.\n Queries executed against that routine will have read access to views/tables/routines\n in this dataset. Only UDF is supported for now. The role field is\n not required when this field is set. If that routine is updated\n by any user, access to the routine needs to be granted again via\n an update operation.\n x-dcl-conflicts:\n - userByEmail\n - groupByEmail\n - domain\n - specialGroup\n - iamMember\n - view\n required:\n - projectId\n - datasetId\n - routineId\n properties:\n datasetId:\n type: string\n x-dcl-go-name: DatasetId\n description: Required. The ID of the dataset containing this routine.\n x-dcl-references:\n - resource: Bigquery/Dataset\n field: name\n projectId:\n type: string\n x-dcl-go-name: ProjectId\n description: Required. The ID of the project containing this routine.\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n routineId:\n type: string\n x-dcl-go-name: RoutineId\n description: Required. The ID of the routine. The ID must contain\n only letters (a-z, A-Z), numbers (0-9), or underscores (_).\n The maximum length is 256 characters.\n x-dcl-references:\n - resource: Bigquery/Routine\n field: name\n specialGroup:\n type: string\n x-dcl-go-name: SpecialGroup\n description: 'A special group to grant access to. Possible values\n include: projectOwners: Owners of the enclosing project. projectReaders:\n Readers of the enclosing project. projectWriters: Writers of the\n enclosing project. allAuthenticatedUsers: All authenticated BigQuery\n users. Maps to similarly-named IAM members.'\n x-dcl-conflicts:\n - userByEmail\n - groupByEmail\n - domain\n - iamMember\n - view\n - routine\n userByEmail:\n type: string\n x-dcl-go-name: UserByEmail\n description: 'An email address of a user to grant access to. For example:\n fred@example.com. Maps to IAM policy member \"user:EMAIL\" or \"serviceAccount:EMAIL\".'\n x-dcl-conflicts:\n - groupByEmail\n - domain\n - specialGroup\n - iamMember\n - view\n - routine\n view:\n type: object\n x-dcl-go-name: View\n x-dcl-go-type: DatasetAccessView\n description: A view from a different dataset to grant access to. Queries\n executed against that view will have read access to views/tables/routines\n in this dataset. The role field is not required when this field\n is set. If that view is updated by any user, access to the view\n needs to be granted again via an update operation.\n x-dcl-conflicts:\n - userByEmail\n - groupByEmail\n - domain\n - specialGroup\n - iamMember\n - routine\n required:\n - projectId\n - datasetId\n - tableId\n properties:\n datasetId:\n type: string\n x-dcl-go-name: DatasetId\n description: Required. The ID of the dataset containing this table.\n x-dcl-references:\n - resource: Bigquery/Dataset\n field: name\n projectId:\n type: string\n x-dcl-go-name: ProjectId\n description: Required. The ID of the project containing this table.\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n tableId:\n type: string\n x-dcl-go-name: TableId\n description: Required. The ID of the table. The ID must contain\n only letters (a-z, A-Z), numbers (0-9), or underscores (_).\n The maximum length is 1,024 characters. Certain operations allow\n suffixing of the table ID with a partition decorator, such as\n `sample_table$20190123`.\n x-dcl-references:\n - resource: Bigquery/Table\n field: name\n creationTime:\n type: integer\n format: int64\n x-dcl-go-name: CreationTime\n readOnly: true\n description: Output only. The time when this dataset was created, in milliseconds\n since the epoch.\n x-kubernetes-immutable: true\n defaultEncryptionConfiguration:\n type: object\n x-dcl-go-name: DefaultEncryptionConfiguration\n x-dcl-go-type: DatasetDefaultEncryptionConfiguration\n description: The default encryption key for all tables in the dataset. Once\n this property is set, all newly-created partitioned tables in the dataset\n will have encryption key set to this value, unless table creation request\n (or query) overrides the key.\n x-kubernetes-immutable: true\n properties:\n kmsKeyName:\n type: string\n x-dcl-go-name: KmsKeyName\n description: Optional. Describes the Cloud KMS encryption key that will\n be used to protect destination BigQuery table. The BigQuery Service\n Account associated with your project requires access to this encryption\n key.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudkms/CryptoKey\n field: name\n defaultPartitionExpirationMs:\n type: string\n x-dcl-go-name: DefaultPartitionExpirationMs\n description: This default partition expiration, expressed in milliseconds.\n When new time-partitioned tables are created in a dataset where this property\n is set, the table will inherit this value, propagated as the `TimePartitioning.expirationMs`\n property on the new table. If you set `TimePartitioning.expirationMs`\n explicitly when creating a table, the `defaultPartitionExpirationMs` of\n the containing dataset is ignored. When creating a partitioned table,\n if `defaultPartitionExpirationMs` is set, the `defaultTableExpirationMs`\n value is ignored and the table will not inherit a table expiration deadline.\n defaultTableExpirationMs:\n type: string\n x-dcl-go-name: DefaultTableExpirationMs\n description: Optional. The default lifetime of all tables in the dataset,\n in milliseconds. The minimum lifetime value is 3600000 milliseconds (one\n hour). To clear an existing default expiration with a PATCH request, set\n to 0. Once this property is set, all newly-created tables in the dataset\n will have an expirationTime property set to the creation time plus the\n value in this property, and changing the value will only affect new tables,\n not existing ones. When the expirationTime for a given table is reached,\n that table will be deleted automatically. If a table's expirationTime\n is modified or removed before the table expires, or if you provide an\n explicit expirationTime when creating a table, that value takes precedence\n over the default expiration time indicated by this property.\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. A user-friendly description of the dataset.\n etag:\n type: string\n x-dcl-go-name: Etag\n readOnly: true\n description: Output only. A hash of the resource.\n x-kubernetes-immutable: true\n friendlyName:\n type: string\n x-dcl-go-name: FriendlyName\n description: Optional. A descriptive name for the dataset.\n id:\n type: string\n x-dcl-go-name: Id\n readOnly: true\n description: Output only. The fully-qualified unique name of the dataset\n in the format projectId:datasetId. The dataset name without the project\n name is given in the datasetId field. When creating a new dataset, leave\n this field blank, and instead specify the datasetId field.\n x-kubernetes-immutable: true\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: The labels associated with this dataset. You can use these\n to organize and group your datasets. You can set this property when inserting\n or updating a dataset. See (/bigquery/docs/creating-managing-labels#creating_and_updating_dataset_labels)\n for more information.\n lastModifiedTime:\n type: integer\n format: int64\n x-dcl-go-name: LastModifiedTime\n readOnly: true\n description: Output only. The date when this dataset was last modified,\n in milliseconds since the epoch.\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The geographic location where the dataset should reside. See\n https://cloud.google.com/bigquery/docs/locations for supported locations.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: Required. A unique ID for this dataset, without the project\n name. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores\n (_). The maximum length is 1,024 characters.\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The ID of the project containing this dataset.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n published:\n type: boolean\n x-dcl-go-name: Published\n description: Whether this dataset is visible to all users in public search.\n This field can only be set to true if READER access is given to allAuthenticatedUsers\n in the access list. The default value is false.\n x-kubernetes-immutable: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: Output only. A URL that can be used to access the resource\n again. You can use this URL in Get or Update requests to the resource.\n x-kubernetes-immutable: true\n")
blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/bigquery/beta/dataset.yaml
var YAML_routine = []byte("info:\n title: Bigquery/Routine\n description: The Bigquery Routine resource\n x-dcl-struct-name: Routine\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Routine\n parameters:\n - name: Routine\n required: true\n description: A full instance of a Routine\n apply:\n description: The function used to apply information about a Routine\n parameters:\n - name: Routine\n required: true\n description: A full instance of a Routine\n delete:\n description: The function used to delete a Routine\n parameters:\n - name: Routine\n required: true\n description: A full instance of a Routine\n deleteAll:\n description: The function used to delete all Routine\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: dataset\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Routine\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: dataset\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n ArgumentsDataType:\n x-dcl-has-create: false\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n x-dcl-go-name: DataType\n x-dcl-go-type: RoutineArgumentsDataType\n description: Required unless argument_kind = ANY_TYPE.\n x-kubernetes-immutable: true\n required:\n - typeKind\n properties:\n arrayElementType:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: ArrayElementType\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - structType\n structType:\n type: object\n x-dcl-go-name: StructType\n x-dcl-go-type: RoutineArgumentsDataTypeStructType\n description: The fields of this struct, in order, if type_kind = \"STRUCT\".\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - arrayElementType\n properties:\n fields:\n type: array\n x-dcl-go-name: Fields\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: RoutineArgumentsDataTypeStructTypeFields\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: Optional. The name of this field. Can be absent for\n struct fields.\n x-kubernetes-immutable: true\n type:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: Type\n x-kubernetes-immutable: true\n typeKind:\n type: string\n x-dcl-go-name: TypeKind\n x-dcl-go-type: RoutineArgumentsDataTypeTypeKindEnum\n description: 'Required. The top level type of this field. Can be any standard\n SQL data type (e.g., \"INT64\", \"DATE\", \"ARRAY\"). Possible values: TYPE_KIND_UNSPECIFIED,\n INT64, BOOL, FLOAT64, STRING, BYTES, TIMESTAMP, DATE, TIME, DATETIME,\n INTERVAL, GEOGRAPHY, NUMERIC, BIGNUMERIC, JSON, ARRAY, STRUCT'\n x-kubernetes-immutable: true\n enum:\n - TYPE_KIND_UNSPECIFIED\n - INT64\n - BOOL\n - FLOAT64\n - STRING\n - BYTES\n - TIMESTAMP\n - DATE\n - TIME\n - DATETIME\n - INTERVAL\n - GEOGRAPHY\n - NUMERIC\n - BIGNUMERIC\n - JSON\n - ARRAY\n - STRUCT\n Routine:\n title: Routine\n x-dcl-id: projects/{{project}}/datasets/{{dataset}}/routines/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n - dataset\n - routineType\n - definitionBody\n properties:\n arguments:\n type: array\n x-dcl-go-name: Arguments\n description: Optional.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: RoutineArguments\n properties:\n argumentKind:\n type: string\n x-dcl-go-name: ArgumentKind\n x-dcl-go-type: RoutineArgumentsArgumentKindEnum\n description: 'Optional. Defaults to FIXED_TYPE. Possible values: ARGUMENT_KIND_UNSPECIFIED,\n FIXED_TYPE, ANY_TYPE'\n enum:\n - ARGUMENT_KIND_UNSPECIFIED\n - FIXED_TYPE\n - ANY_TYPE\n dataType:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: DataType\n x-kubernetes-immutable: true\n mode:\n type: string\n x-dcl-go-name: Mode\n x-dcl-go-type: RoutineArgumentsModeEnum\n description: 'Optional. Specifies whether the argument is input or\n output. Can be set for procedures only. Possible values: MODE_UNSPECIFIED,\n IN, OUT, INOUT'\n enum:\n - MODE_UNSPECIFIED\n - IN\n - OUT\n - INOUT\n name:\n type: string\n x-dcl-go-name: Name\n description: Optional. The name of this argument. Can be absent for\n function return argument.\n creationTime:\n type: integer\n format: int64\n x-dcl-go-name: CreationTime\n readOnly: true\n description: Output only. The time when this routine was created, in milliseconds\n since the epoch.\n x-kubernetes-immutable: true\n dataset:\n type: string\n x-dcl-go-name: Dataset\n description: Required. The ID of the dataset containing this routine.\n x-dcl-references:\n - resource: Bigquery/Dataset\n field: name\n parent: true\n definitionBody:\n type: string\n x-dcl-go-name: DefinitionBody\n description: \"Required. The body of the routine. For functions, this is\n the expression in the AS clause. If language=SQL, it is the substring\n inside (but excluding) the parentheses. For example, for the function\n created with the following statement: `CREATE FUNCTION JoinLines(x string,\n y string) as (concat(x, \\\"\\n\\\", y))` The definition_body is `concat(x,\n \\\"\\n\\\", y)` (\\n is not replaced with linebreak). If language=JAVASCRIPT,\n it is the evaluated string in the AS clause. For example, for the function\n created with the following statement: `CREATE FUNCTION f() RETURNS STRING\n LANGUAGE js AS 'return \\\"\\n\\\";\\n'` The definition_body is `return \\\"\\n\\\";\\n`\n Note that both \\n are replaced with linebreaks.\"\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. The description of the routine if defined.\n determinismLevel:\n type: string\n x-dcl-go-name: DeterminismLevel\n x-dcl-go-type: RoutineDeterminismLevelEnum\n description: 'Optional. The determinism level of the JavaScript UDF if defined.\n Possible values: DETERMINISM_LEVEL_UNSPECIFIED, DETERMINISTIC, NOT_DETERMINISTIC'\n enum:\n - DETERMINISM_LEVEL_UNSPECIFIED\n - DETERMINISTIC\n - NOT_DETERMINISTIC\n etag:\n type: string\n x-dcl-go-name: Etag\n readOnly: true\n description: Output only. A hash of this resource.\n x-kubernetes-immutable: true\n importedLibraries:\n type: array\n x-dcl-go-name: ImportedLibraries\n description: Optional. If language = \"JAVASCRIPT\", this field stores the\n path of the imported JAVASCRIPT libraries.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n language:\n type: string\n x-dcl-go-name: Language\n x-dcl-go-type: RoutineLanguageEnum\n description: 'Optional. Defaults to \"SQL\". Possible values: LANGUAGE_UNSPECIFIED,\n SQL, JAVASCRIPT'\n x-dcl-server-default: true\n enum:\n - LANGUAGE_UNSPECIFIED\n - SQL\n - JAVASCRIPT\n lastModifiedTime:\n type: integer\n format: int64\n x-dcl-go-name: LastModifiedTime\n readOnly: true\n description: Output only. The time when this routine was last modified,\n in milliseconds since the epoch.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: Required. The ID of the routine. The ID must contain only letters\n (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256\n characters.\n project:\n type: string\n x-dcl-go-name: Project\n description: Required. The ID of the project containing this routine.\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n returnType:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: ReturnType\n routineType:\n type: string\n x-dcl-go-name: RoutineType\n x-dcl-go-type: RoutineRoutineTypeEnum\n description: 'Required. The type of routine. Possible values: ROUTINE_TYPE_UNSPECIFIED,\n SCALAR_FUNCTION, PROCEDURE'\n enum:\n - ROUTINE_TYPE_UNSPECIFIED\n - SCALAR_FUNCTION\n - PROCEDURE\n strictMode:\n type: boolean\n x-dcl-go-name: StrictMode\n description: Optional. Can be set for procedures only. If true (default),\n the definition body will be validated in the creation and the updates\n of the procedure. For procedures with an argument of ANY TYPE, the definition\n body validtion is not supported at creation/update time, and thus this\n field must be set to false explicitly.\n")
blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/bigquery/beta/routine.yaml
Functions ¶
func DCLDatasetSchema ¶ added in v1.10.3
func DCLRoutineSchema ¶ added in v1.10.3
Types ¶
type Client ¶
The Client is the base struct of all operations. This will receive the Get, Delete, List, and Apply operations on all resources.
func (*Client) ApplyDataset ¶ added in v1.4.0
func (*Client) ApplyRoutine ¶
func (*Client) DeleteAllDataset ¶ added in v1.4.0
func (c *Client) DeleteAllDataset(ctx context.Context, project string, filter func(*Dataset) bool) error
DeleteAllDataset deletes all resources that the filter functions returns true on.
func (*Client) DeleteAllRoutine ¶
func (c *Client) DeleteAllRoutine(ctx context.Context, project, dataset string, filter func(*Routine) bool) error
DeleteAllRoutine deletes all resources that the filter functions returns true on.
func (*Client) DeleteDataset ¶ added in v1.4.0
func (*Client) DeleteRoutine ¶
func (*Client) GetDataset ¶ added in v1.4.0
func (*Client) GetRoutine ¶
func (*Client) ListDataset ¶ added in v1.4.0
func (*Client) ListDatasetWithMaxResults ¶ added in v1.4.0
func (*Client) ListRoutine ¶
func (*Client) ListRoutineWithMaxResults ¶
type Dataset ¶ added in v1.4.0
type Dataset struct { Etag *string `json:"etag"` Id *string `json:"id"` SelfLink *string `json:"selfLink"` Name *string `json:"name"` Project *string `json:"project"` FriendlyName *string `json:"friendlyName"` Description *string `json:"description"` DefaultTableExpirationMs *string `json:"defaultTableExpirationMs"` DefaultPartitionExpirationMs *string `json:"defaultPartitionExpirationMs"` Labels map[string]string `json:"labels"` Access []DatasetAccess `json:"access"` CreationTime *int64 `json:"creationTime"` LastModifiedTime *int64 `json:"lastModifiedTime"` Location *string `json:"location"` Published *bool `json:"published"` DefaultEncryptionConfiguration *DatasetDefaultEncryptionConfiguration `json:"defaultEncryptionConfiguration"` }
func (*Dataset) Describe ¶ added in v1.4.0
func (r *Dataset) Describe() dcl.ServiceTypeVersion
Describe returns a simple description of this resource to ensure that automated tools can identify it.
type DatasetAccess ¶ added in v1.4.0
type DatasetAccess struct { Role *string `json:"role"` UserByEmail *string `json:"userByEmail"` GroupByEmail *string `json:"groupByEmail"` Domain *string `json:"domain"` SpecialGroup *string `json:"specialGroup"` IamMember *string `json:"iamMember"` View *DatasetAccessView `json:"view"` Routine *DatasetAccessRoutine `json:"routine"` // contains filtered or unexported fields }
var EmptyDatasetAccess *DatasetAccess = &DatasetAccess{empty: true}
This object is used to assert a desired state where this DatasetAccess is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*DatasetAccess) Empty ¶ added in v1.4.0
func (r *DatasetAccess) Empty() bool
func (*DatasetAccess) HashCode ¶ added in v1.4.0
func (r *DatasetAccess) HashCode() string
func (*DatasetAccess) String ¶ added in v1.4.0
func (r *DatasetAccess) String() string
func (*DatasetAccess) UnmarshalJSON ¶ added in v1.4.0
func (r *DatasetAccess) UnmarshalJSON(data []byte) error
type DatasetAccessRoutine ¶ added in v1.4.0
type DatasetAccessRoutine struct { ProjectId *string `json:"projectId"` DatasetId *string `json:"datasetId"` RoutineId *string `json:"routineId"` // contains filtered or unexported fields }
var EmptyDatasetAccessRoutine *DatasetAccessRoutine = &DatasetAccessRoutine{empty: true}
This object is used to assert a desired state where this DatasetAccessRoutine is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*DatasetAccessRoutine) Empty ¶ added in v1.4.0
func (r *DatasetAccessRoutine) Empty() bool
func (*DatasetAccessRoutine) HashCode ¶ added in v1.4.0
func (r *DatasetAccessRoutine) HashCode() string
func (*DatasetAccessRoutine) String ¶ added in v1.4.0
func (r *DatasetAccessRoutine) String() string
func (*DatasetAccessRoutine) UnmarshalJSON ¶ added in v1.4.0
func (r *DatasetAccessRoutine) UnmarshalJSON(data []byte) error
type DatasetAccessView ¶ added in v1.4.0
type DatasetAccessView struct { ProjectId *string `json:"projectId"` DatasetId *string `json:"datasetId"` TableId *string `json:"tableId"` // contains filtered or unexported fields }
var EmptyDatasetAccessView *DatasetAccessView = &DatasetAccessView{empty: true}
This object is used to assert a desired state where this DatasetAccessView is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*DatasetAccessView) Empty ¶ added in v1.4.0
func (r *DatasetAccessView) Empty() bool
func (*DatasetAccessView) HashCode ¶ added in v1.4.0
func (r *DatasetAccessView) HashCode() string
func (*DatasetAccessView) String ¶ added in v1.4.0
func (r *DatasetAccessView) String() string
func (*DatasetAccessView) UnmarshalJSON ¶ added in v1.4.0
func (r *DatasetAccessView) UnmarshalJSON(data []byte) error
type DatasetDefaultEncryptionConfiguration ¶ added in v1.4.0
type DatasetDefaultEncryptionConfiguration struct { KmsKeyName *string `json:"kmsKeyName"` // contains filtered or unexported fields }
var EmptyDatasetDefaultEncryptionConfiguration *DatasetDefaultEncryptionConfiguration = &DatasetDefaultEncryptionConfiguration{empty: true}
This object is used to assert a desired state where this DatasetDefaultEncryptionConfiguration is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*DatasetDefaultEncryptionConfiguration) Empty ¶ added in v1.4.0
func (r *DatasetDefaultEncryptionConfiguration) Empty() bool
func (*DatasetDefaultEncryptionConfiguration) HashCode ¶ added in v1.4.0
func (r *DatasetDefaultEncryptionConfiguration) HashCode() string
func (*DatasetDefaultEncryptionConfiguration) String ¶ added in v1.4.0
func (r *DatasetDefaultEncryptionConfiguration) String() string
func (*DatasetDefaultEncryptionConfiguration) UnmarshalJSON ¶ added in v1.4.0
func (r *DatasetDefaultEncryptionConfiguration) UnmarshalJSON(data []byte) error
type DatasetList ¶ added in v1.4.0
type DatasetList struct { Items []*Dataset // contains filtered or unexported fields }
func (*DatasetList) HasNext ¶ added in v1.4.0
func (l *DatasetList) HasNext() bool
type Routine ¶
type Routine struct { Etag *string `json:"etag"` Name *string `json:"name"` Project *string `json:"project"` Dataset *string `json:"dataset"` RoutineType *RoutineRoutineTypeEnum `json:"routineType"` CreationTime *int64 `json:"creationTime"` LastModifiedTime *int64 `json:"lastModifiedTime"` Language *RoutineLanguageEnum `json:"language"` Arguments []RoutineArguments `json:"arguments"` ReturnType *RoutineArgumentsDataType `json:"returnType"` ImportedLibraries []string `json:"importedLibraries"` DefinitionBody *string `json:"definitionBody"` Description *string `json:"description"` DeterminismLevel *RoutineDeterminismLevelEnum `json:"determinismLevel"` StrictMode *bool `json:"strictMode"` }
func (*Routine) Describe ¶
func (r *Routine) Describe() dcl.ServiceTypeVersion
Describe returns a simple description of this resource to ensure that automated tools can identify it.
type RoutineArguments ¶
type RoutineArguments struct { Name *string `json:"name"` ArgumentKind *RoutineArgumentsArgumentKindEnum `json:"argumentKind"` Mode *RoutineArgumentsModeEnum `json:"mode"` DataType *RoutineArgumentsDataType `json:"dataType"` // contains filtered or unexported fields }
var EmptyRoutineArguments *RoutineArguments = &RoutineArguments{empty: true}
This object is used to assert a desired state where this RoutineArguments is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*RoutineArguments) Empty ¶
func (r *RoutineArguments) Empty() bool
func (*RoutineArguments) HashCode ¶
func (r *RoutineArguments) HashCode() string
func (*RoutineArguments) String ¶
func (r *RoutineArguments) String() string
func (*RoutineArguments) UnmarshalJSON ¶
func (r *RoutineArguments) UnmarshalJSON(data []byte) error
type RoutineArgumentsArgumentKindEnum ¶
type RoutineArgumentsArgumentKindEnum string
The enum RoutineArgumentsArgumentKindEnum.
func RoutineArgumentsArgumentKindEnumRef ¶
func RoutineArgumentsArgumentKindEnumRef(s string) *RoutineArgumentsArgumentKindEnum
RoutineArgumentsArgumentKindEnumRef returns a *RoutineArgumentsArgumentKindEnum with the value of string s If the empty string is provided, nil is returned.
func (RoutineArgumentsArgumentKindEnum) Validate ¶
func (v RoutineArgumentsArgumentKindEnum) Validate() error
type RoutineArgumentsDataType ¶
type RoutineArgumentsDataType struct { TypeKind *RoutineArgumentsDataTypeTypeKindEnum `json:"typeKind"` ArrayElementType *RoutineArgumentsDataType `json:"arrayElementType"` StructType *RoutineArgumentsDataTypeStructType `json:"structType"` // contains filtered or unexported fields }
var EmptyRoutineArgumentsDataType *RoutineArgumentsDataType = &RoutineArgumentsDataType{empty: true}
This object is used to assert a desired state where this RoutineArgumentsDataType is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*RoutineArgumentsDataType) Empty ¶
func (r *RoutineArgumentsDataType) Empty() bool
func (*RoutineArgumentsDataType) HashCode ¶
func (r *RoutineArgumentsDataType) HashCode() string
func (*RoutineArgumentsDataType) String ¶
func (r *RoutineArgumentsDataType) String() string
func (*RoutineArgumentsDataType) UnmarshalJSON ¶
func (r *RoutineArgumentsDataType) UnmarshalJSON(data []byte) error
type RoutineArgumentsDataTypeStructType ¶
type RoutineArgumentsDataTypeStructType struct { Fields []RoutineArgumentsDataTypeStructTypeFields `json:"fields"` // contains filtered or unexported fields }
var EmptyRoutineArgumentsDataTypeStructType *RoutineArgumentsDataTypeStructType = &RoutineArgumentsDataTypeStructType{empty: true}
This object is used to assert a desired state where this RoutineArgumentsDataTypeStructType is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*RoutineArgumentsDataTypeStructType) Empty ¶
func (r *RoutineArgumentsDataTypeStructType) Empty() bool
func (*RoutineArgumentsDataTypeStructType) HashCode ¶
func (r *RoutineArgumentsDataTypeStructType) HashCode() string
func (*RoutineArgumentsDataTypeStructType) String ¶
func (r *RoutineArgumentsDataTypeStructType) String() string
func (*RoutineArgumentsDataTypeStructType) UnmarshalJSON ¶
func (r *RoutineArgumentsDataTypeStructType) UnmarshalJSON(data []byte) error
type RoutineArgumentsDataTypeStructTypeFields ¶
type RoutineArgumentsDataTypeStructTypeFields struct { Name *string `json:"name"` Type *RoutineArgumentsDataType `json:"type"` // contains filtered or unexported fields }
var EmptyRoutineArgumentsDataTypeStructTypeFields *RoutineArgumentsDataTypeStructTypeFields = &RoutineArgumentsDataTypeStructTypeFields{empty: true}
This object is used to assert a desired state where this RoutineArgumentsDataTypeStructTypeFields is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*RoutineArgumentsDataTypeStructTypeFields) Empty ¶
func (r *RoutineArgumentsDataTypeStructTypeFields) Empty() bool
func (*RoutineArgumentsDataTypeStructTypeFields) HashCode ¶
func (r *RoutineArgumentsDataTypeStructTypeFields) HashCode() string
func (*RoutineArgumentsDataTypeStructTypeFields) String ¶
func (r *RoutineArgumentsDataTypeStructTypeFields) String() string
func (*RoutineArgumentsDataTypeStructTypeFields) UnmarshalJSON ¶
func (r *RoutineArgumentsDataTypeStructTypeFields) UnmarshalJSON(data []byte) error
type RoutineArgumentsDataTypeTypeKindEnum ¶
type RoutineArgumentsDataTypeTypeKindEnum string
The enum RoutineArgumentsDataTypeTypeKindEnum.
func RoutineArgumentsDataTypeTypeKindEnumRef ¶
func RoutineArgumentsDataTypeTypeKindEnumRef(s string) *RoutineArgumentsDataTypeTypeKindEnum
RoutineArgumentsDataTypeTypeKindEnumRef returns a *RoutineArgumentsDataTypeTypeKindEnum with the value of string s If the empty string is provided, nil is returned.
func (RoutineArgumentsDataTypeTypeKindEnum) Validate ¶
func (v RoutineArgumentsDataTypeTypeKindEnum) Validate() error
type RoutineArgumentsModeEnum ¶
type RoutineArgumentsModeEnum string
The enum RoutineArgumentsModeEnum.
func RoutineArgumentsModeEnumRef ¶
func RoutineArgumentsModeEnumRef(s string) *RoutineArgumentsModeEnum
RoutineArgumentsModeEnumRef returns a *RoutineArgumentsModeEnum with the value of string s If the empty string is provided, nil is returned.
func (RoutineArgumentsModeEnum) Validate ¶
func (v RoutineArgumentsModeEnum) Validate() error
type RoutineDeterminismLevelEnum ¶
type RoutineDeterminismLevelEnum string
The enum RoutineDeterminismLevelEnum.
func RoutineDeterminismLevelEnumRef ¶
func RoutineDeterminismLevelEnumRef(s string) *RoutineDeterminismLevelEnum
RoutineDeterminismLevelEnumRef returns a *RoutineDeterminismLevelEnum with the value of string s If the empty string is provided, nil is returned.
func (RoutineDeterminismLevelEnum) Validate ¶
func (v RoutineDeterminismLevelEnum) Validate() error
type RoutineLanguageEnum ¶
type RoutineLanguageEnum string
The enum RoutineLanguageEnum.
func RoutineLanguageEnumRef ¶
func RoutineLanguageEnumRef(s string) *RoutineLanguageEnum
RoutineLanguageEnumRef returns a *RoutineLanguageEnum with the value of string s If the empty string is provided, nil is returned.
func (RoutineLanguageEnum) Validate ¶
func (v RoutineLanguageEnum) Validate() error
type RoutineList ¶
type RoutineList struct { Items []*Routine // contains filtered or unexported fields }
func (*RoutineList) HasNext ¶
func (l *RoutineList) HasNext() bool
type RoutineRoutineTypeEnum ¶
type RoutineRoutineTypeEnum string
The enum RoutineRoutineTypeEnum.
func RoutineRoutineTypeEnumRef ¶
func RoutineRoutineTypeEnumRef(s string) *RoutineRoutineTypeEnum
RoutineRoutineTypeEnumRef returns a *RoutineRoutineTypeEnum with the value of string s If the empty string is provided, nil is returned.
func (RoutineRoutineTypeEnum) Validate ¶
func (v RoutineRoutineTypeEnum) Validate() error