Skip to content

Commit 584cb90

Browse files
yoshi-automationsofisl
authored andcommitted
feat(bigquery): update the API
#### bigquery:v2 The following keys were added: - schemas.DataMaskingStatistics.id - schemas.DataMaskingStatistics.properties.dataMaskingApplied.default - schemas.DataMaskingStatistics.properties.dataMaskingApplied.description - schemas.DataMaskingStatistics.properties.dataMaskingApplied.type - schemas.DataMaskingStatistics.type - schemas.JobConfigurationLoad.properties.connectionProperties.description - schemas.JobConfigurationLoad.properties.connectionProperties.items.$ref - schemas.JobConfigurationLoad.properties.connectionProperties.type - schemas.JobStatistics.properties.dataMaskingStatistics.$ref - schemas.JobStatistics.properties.dataMaskingStatistics.description - schemas.JobStatistics2.properties.sparkStatistics.$ref - schemas.JobStatistics2.properties.sparkStatistics.description - schemas.SparkLoggingInfo.id - schemas.SparkLoggingInfo.properties.project_id.description - schemas.SparkLoggingInfo.properties.project_id.type - schemas.SparkLoggingInfo.properties.resource_type.description - schemas.SparkLoggingInfo.properties.resource_type.type - schemas.SparkLoggingInfo.type - schemas.SparkStatistics.id - schemas.SparkStatistics.properties.endpoints.additionalProperties.type - schemas.SparkStatistics.properties.endpoints.description - schemas.SparkStatistics.properties.endpoints.type - schemas.SparkStatistics.properties.logging_info.$ref - schemas.SparkStatistics.properties.logging_info.description - schemas.SparkStatistics.properties.spark_job_id.description - schemas.SparkStatistics.properties.spark_job_id.type - schemas.SparkStatistics.properties.spark_job_location.description - schemas.SparkStatistics.properties.spark_job_location.type - schemas.SparkStatistics.type The following keys were changed: - schemas.Binding.properties.members.description - schemas.Routine.properties.language.enum - schemas.Routine.properties.language.enumDescriptions - schemas.StandardSqlDataType.description
1 parent a2568ad commit 584cb90

File tree

3 files changed

+121
-8
lines changed

3 files changed

+121
-8
lines changed

discovery/bigquery-v2.json

Lines changed: 72 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1710,7 +1710,7 @@
17101710
}
17111711
}
17121712
},
1713-
"revision": "20220813",
1713+
"revision": "20220910",
17141714
"rootUrl": "https://bigquery.googleapis.com/",
17151715
"schemas": {
17161716
"AggregateClassificationMetrics": {
@@ -2391,7 +2391,7 @@
23912391
"description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)."
23922392
},
23932393
"members": {
2394-
"description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `[email protected]`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ",
2394+
"description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `[email protected]`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ",
23952395
"items": {
23962396
"type": "string"
23972397
},
@@ -2698,6 +2698,17 @@
26982698
},
26992699
"type": "object"
27002700
},
2701+
"DataMaskingStatistics": {
2702+
"id": "DataMaskingStatistics",
2703+
"properties": {
2704+
"dataMaskingApplied": {
2705+
"default": "false",
2706+
"description": "[Output-only] [Preview] Whether any accessed data was protected by data masking. The actual evaluation is done by accessStats.masked_field_count > 0. Since this is only used for the discovery_doc generation purpose, as long as the type (boolean) matches, client library can leverage this. The actual evaluation of the variable is done else-where.",
2707+
"type": "boolean"
2708+
}
2709+
},
2710+
"type": "object"
2711+
},
27012712
"DataSplitResult": {
27022713
"description": "Data split result. This contains references to the training and evaluation data tables that were used to train the model.",
27032714
"id": "DataSplitResult",
@@ -4085,6 +4096,13 @@
40854096
"$ref": "Clustering",
40864097
"description": "[Beta] Clustering specification for the destination table. Must be specified with time-based partitioning, data in the table will be first partitioned and subsequently clustered."
40874098
},
4099+
"connectionProperties": {
4100+
"description": "Connection properties.",
4101+
"items": {
4102+
"$ref": "ConnectionProperty"
4103+
},
4104+
"type": "array"
4105+
},
40884106
"createDisposition": {
40894107
"description": "[Optional] Specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion.",
40904108
"type": "string"
@@ -4491,6 +4509,10 @@
44914509
"format": "int64",
44924510
"type": "string"
44934511
},
4512+
"dataMaskingStatistics": {
4513+
"$ref": "DataMaskingStatistics",
4514+
"description": "[Output-only] Statistics for data masking. Present only for query and extract jobs."
4515+
},
44944516
"endTime": {
44954517
"description": "[Output-only] End time of this job, in milliseconds since the epoch. This field will be present whenever a job is in the DONE state.",
44964518
"format": "int64",
@@ -4704,6 +4726,10 @@
47044726
"$ref": "SearchStatistics",
47054727
"description": "[Output-only] Search query specific statistics."
47064728
},
4729+
"sparkStatistics": {
4730+
"$ref": "SparkStatistics",
4731+
"description": "[Output-only] Statistics of a Spark procedure job."
4732+
},
47074733
"statementType": {
47084734
"description": "The type of query statement, if valid. Possible values (new values might be added in the future): \"SELECT\": SELECT query. \"INSERT\": INSERT query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language. \"UPDATE\": UPDATE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language. \"DELETE\": DELETE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language. \"MERGE\": MERGE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language. \"ALTER_TABLE\": ALTER TABLE query. \"ALTER_VIEW\": ALTER VIEW query. \"ASSERT\": ASSERT condition AS 'description'. \"CREATE_FUNCTION\": CREATE FUNCTION query. \"CREATE_MODEL\": CREATE [OR REPLACE] MODEL ... AS SELECT ... . \"CREATE_PROCEDURE\": CREATE PROCEDURE query. \"CREATE_TABLE\": CREATE [OR REPLACE] TABLE without AS SELECT. \"CREATE_TABLE_AS_SELECT\": CREATE [OR REPLACE] TABLE ... AS SELECT ... . \"CREATE_VIEW\": CREATE [OR REPLACE] VIEW ... AS SELECT ... . \"DROP_FUNCTION\" : DROP FUNCTION query. \"DROP_PROCEDURE\": DROP PROCEDURE query. \"DROP_TABLE\": DROP TABLE query. \"DROP_VIEW\": DROP VIEW query.",
47094735
"type": "string"
@@ -5768,12 +5794,14 @@
57685794
"enum": [
57695795
"LANGUAGE_UNSPECIFIED",
57705796
"SQL",
5771-
"JAVASCRIPT"
5797+
"JAVASCRIPT",
5798+
"PYTHON"
57725799
],
57735800
"enumDescriptions": [
57745801
"",
57755802
"SQL language.",
5776-
"JavaScript language."
5803+
"JavaScript language.",
5804+
"Python language."
57775805
],
57785806
"type": "string"
57795807
},
@@ -6035,6 +6063,20 @@
60356063
},
60366064
"type": "object"
60376065
},
6066+
"SparkLoggingInfo": {
6067+
"id": "SparkLoggingInfo",
6068+
"properties": {
6069+
"project_id": {
6070+
"description": "[Output-only] Project ID used for logging",
6071+
"type": "string"
6072+
},
6073+
"resource_type": {
6074+
"description": "[Output-only] Resource type used for logging",
6075+
"type": "string"
6076+
}
6077+
},
6078+
"type": "object"
6079+
},
60386080
"SparkOptions": {
60396081
"description": "Options for a user-defined Spark routine.",
60406082
"id": "SparkOptions",
@@ -6093,8 +6135,33 @@
60936135
},
60946136
"type": "object"
60956137
},
6138+
"SparkStatistics": {
6139+
"id": "SparkStatistics",
6140+
"properties": {
6141+
"endpoints": {
6142+
"additionalProperties": {
6143+
"type": "string"
6144+
},
6145+
"description": "[Output-only] Endpoints generated for the Spark job.",
6146+
"type": "object"
6147+
},
6148+
"logging_info": {
6149+
"$ref": "SparkLoggingInfo",
6150+
"description": "[Output-only] Logging info is used to generate a link to Cloud Logging."
6151+
},
6152+
"spark_job_id": {
6153+
"description": "[Output-only] Spark job id if a Spark job is created successfully.",
6154+
"type": "string"
6155+
},
6156+
"spark_job_location": {
6157+
"description": "[Output-only] Location where the Spark job is executed.",
6158+
"type": "string"
6159+
}
6160+
},
6161+
"type": "object"
6162+
},
60966163
"StandardSqlDataType": {
6097-
"description": "The data type of a variable such as a function argument. Examples include: * INT64: `{\"typeKind\": \"INT64\"}` * ARRAY: { \"typeKind\": \"ARRAY\", \"arrayElementType\": {\"typeKind\": \"STRING\"} } * STRUCT>: { \"typeKind\": \"STRUCT\", \"structType\": { \"fields\": [ { \"name\": \"x\", \"type\": {\"typeKind: \"STRING\"} }, { \"name\": \"y\", \"type\": { \"typeKind\": \"ARRAY\", \"arrayElementType\": {\"typekind\": \"DATE\"} } } ] } }",
6164+
"description": "The data type of a variable such as a function argument. Examples include: * INT64: `{\"typeKind\": \"INT64\"}` * ARRAY: { \"typeKind\": \"ARRAY\", \"arrayElementType\": {\"typeKind\": \"STRING\"} } * STRUCT>: { \"typeKind\": \"STRUCT\", \"structType\": { \"fields\": [ { \"name\": \"x\", \"type\": {\"typeKind\": \"STRING\"} }, { \"name\": \"y\", \"type\": { \"typeKind\": \"ARRAY\", \"arrayElementType\": {\"typeKind\": \"DATE\"} } } ] } }",
60986165
"id": "StandardSqlDataType",
60996166
"properties": {
61006167
"arrayElementType": {

src/apis/bigquery/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"webpack": "webpack"
2929
},
3030
"dependencies": {
31-
"googleapis-common": "^5.0.1"
31+
"googleapis-common": "^6.0.3"
3232
},
3333
"devDependencies": {
3434
"@microsoft/api-documenter": "^7.8.10",

0 commit comments

Comments
 (0)