@maxim_mazurok/gapi.client.bigquery-v2 0.0.20230624 → 0.0.20230715

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/index.d.ts +58 -33
  2. package/package.json +1 -1
  3. package/readme.md +0 -5
  4. package/tests.ts +49 -38
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://bigquery.googleapis.com/$discovery/rest?version=v2
12
- // Revision: 20230624
12
+ // Revision: 20230715
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -2305,7 +2305,7 @@ declare namespace gapi.client {
2305
2305
  */
2306
2306
  expirationTime?:
2307
2307
  string;
2308
- /** Output only. Input feature columns that were used to train this model. */
2308
+ /** Output only. Input feature columns for the model inference. If the model is trained with TRANSFORM clause, these are the input of the TRANSFORM clause. */
2309
2309
  featureColumns?:
2310
2310
  StandardSqlField[];
2311
2311
  /** Optional. A descriptive name for this model. */
@@ -2352,6 +2352,12 @@ declare namespace gapi.client {
2352
2352
  /** Information for all training runs in increasing order of start_time. */
2353
2353
  trainingRuns?:
2354
2354
  TrainingRun[];
2355
+ /**
2356
+ * Output only. This field will be populated if a TRANSFORM clause was used to train a model. TRANSFORM clause (if used) takes feature_columns as input and outputs transform_columns.
2357
+ * transform_columns then are used to train the model.
2358
+ */
2359
+ transformColumns?:
2360
+ TransformColumn[];
2355
2361
  }
2356
2362
  interface ModelDefinition {
2357
2363
  /**
@@ -3532,6 +3538,9 @@ declare namespace gapi.client {
3532
3538
  string;
3533
3539
  }
3534
3540
  interface TrainingOptions {
3541
+ /** Activation function of the neural nets. */
3542
+ activationFn?:
3543
+ string;
3535
3544
  /** If true, detect step changes and make data adjustment in the input time series. */
3536
3545
  adjustStepChanges?:
3537
3546
  boolean;
@@ -3547,12 +3556,18 @@ declare namespace gapi.client {
3547
3556
  /** The min value of the sum of non-seasonal p and q. */
3548
3557
  autoArimaMinOrder?:
3549
3558
  string;
3559
+ /** Whether to calculate class weights automatically based on the popularity of each label. */
3560
+ autoClassWeights?:
3561
+ boolean;
3550
3562
  /** Batch size for dnn models. */
3551
3563
  batchSize?:
3552
3564
  string;
3553
3565
  /** Booster type for boosted tree models. */
3554
3566
  boosterType?:
3555
3567
  string;
3568
+ /** Budget in hours for AutoML training. */
3569
+ budgetHours?:
3570
+ number;
3556
3571
  /** Whether or not p-value test should be computed for this model. Only available for linear and logistic regression models. */
3557
3572
  calculatePValues?:
3558
3573
  boolean;
@@ -3612,6 +3627,9 @@ declare namespace gapi.client {
3612
3627
  /** Feedback type that specifies which algorithm to run for matrix factorization. */
3613
3628
  feedbackType?:
3614
3629
  string;
3630
+ /** Whether the model should include intercept during model training. */
3631
+ fitIntercept?:
3632
+ boolean;
3615
3633
  /** Hidden units for dnn models. */
3616
3634
  hiddenUnits?:
3617
3635
  string[];
@@ -3648,6 +3666,9 @@ declare namespace gapi.client {
3648
3666
  /** The method used to initialize the centroids for kmeans algorithm. */
3649
3667
  kmeansInitializationMethod?:
3650
3668
  string;
3669
+ /** L1 regularization coefficient to activations. */
3670
+ l1RegActivation?:
3671
+ number;
3651
3672
  /** L1 regularization coefficient. */
3652
3673
  l1Regularization?:
3653
3674
  number;
@@ -3690,6 +3711,9 @@ declare namespace gapi.client {
3690
3711
  /** Minimum sum of instance weight needed in a child for boosted tree models. */
3691
3712
  minTreeChildWeight?:
3692
3713
  string;
3714
+ /** The model registry. */
3715
+ modelRegistry?:
3716
+ string;
3693
3717
  /** Google Cloud Storage URI from which the model was imported. Only applicable for imported models. */
3694
3718
  modelUri?:
3695
3719
  string;
@@ -3705,15 +3729,33 @@ declare namespace gapi.client {
3705
3729
  /** Number of parallel trees constructed during each iteration for boosted tree models. */
3706
3730
  numParallelTree?:
3707
3731
  string;
3732
+ /** Number of principal components to keep in the PCA model. Must be <= the number of features. */
3733
+ numPrincipalComponents?:
3734
+ string;
3708
3735
  /** Number of trials to run this hyperparameter tuning job. */
3709
3736
  numTrials?:
3710
3737
  string;
3711
3738
  /** Optimization strategy for training linear regression models. */
3712
3739
  optimizationStrategy?:
3713
3740
  string;
3741
+ /** Optimizer used for training the neural nets. */
3742
+ optimizer?:
3743
+ string;
3744
+ /** The minimum ratio of cumulative explained variance that needs to be given by the PCA model. */
3745
+ pcaExplainedVarianceRatio?:
3746
+ number;
3747
+ /** The solver for PCA. */
3748
+ pcaSolver?:
3749
+ string;
3714
3750
  /** Number of paths for the sampled Shapley explain method. */
3715
3751
  sampledShapleyNumPaths?:
3716
3752
  string;
3753
+ /** If true, scale the feature values by dividing the feature standard deviation. Currently only apply to PCA. */
3754
+ scaleFeatures?:
3755
+ boolean;
3756
+ /** Whether to standardize numerical features. Default to true. */
3757
+ standardizeFeatures?:
3758
+ boolean;
3717
3759
  /** Subsample fraction of the training data to grow tree to prevent overfitting for boosted tree models. */
3718
3760
  subsample?:
3719
3761
  number;
@@ -3744,6 +3786,9 @@ declare namespace gapi.client {
3744
3786
  /** User column specified for matrix factorization models. */
3745
3787
  userColumn?:
3746
3788
  string;
3789
+ /** The version aliases to apply in Vertex AI model registry. Always overwrite if the version aliases exists in a existing model. */
3790
+ vertexAiModelVersionAliases?:
3791
+ string[];
3747
3792
  /** Hyperparameter for matrix factoration when implicit feedback type is specified. */
3748
3793
  walsAlpha?:
3749
3794
  number;
@@ -3791,6 +3836,17 @@ declare namespace gapi.client {
3791
3836
  transactionId?:
3792
3837
  string;
3793
3838
  }
3839
+ interface TransformColumn {
3840
+ /** Output only. Name of the column. */
3841
+ name?:
3842
+ string;
3843
+ /** Output only. The SQL expression used in the column transform. */
3844
+ transformSql?:
3845
+ string;
3846
+ /** Output only. Data type of the column after the transform. */
3847
+ type?:
3848
+ StandardSqlDataType;
3849
+ }
3794
3850
  interface UserDefinedFunctionResource {
3795
3851
  /**
3796
3852
  * [Pick one] An inline resource that contains code for a user-defined function (UDF). Providing a inline code resource is equivalent to providing a URI for a file containing the same
@@ -5004,37 +5060,6 @@ declare namespace gapi.client {
5004
5060
  userIp?:
5005
5061
  string;
5006
5062
  }): Request<ListRowAccessPoliciesResponse>;
5007
- /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
5008
- setIamPolicy(request: {
5009
- /** Data format for the response. */
5010
- alt?:
5011
- string;
5012
- /** Selector specifying which fields to include in a partial response. */
5013
- fields?:
5014
- string;
5015
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
5016
- key?:
5017
- string;
5018
- /** OAuth 2.0 token for the current user. */
5019
- oauth_token?:
5020
- string;
5021
- /** Returns response with indentations and line breaks. */
5022
- prettyPrint?:
5023
- boolean;
5024
- /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
5025
- quotaUser?:
5026
- string;
5027
- /**
5028
- * REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
5029
- * field.
5030
- */
5031
- resource:
5032
- string;
5033
- /** Deprecated. Please use quotaUser instead. */
5034
- userIp?:
5035
- string;
5036
- },
5037
- body: SetIamPolicyRequest): Request<Policy>;
5038
5063
  /**
5039
5064
  * Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This
5040
5065
  * operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.bigquery-v2",
3
- "version": "0.0.20230624",
3
+ "version": "0.0.20230715",
4
4
  "description": "TypeScript typings for BigQuery API v2",
5
5
  "license": "MIT",
6
6
  "author": {
package/readme.md CHANGED
@@ -214,11 +214,6 @@ Lists all row access policies on the specified table.
214
214
  */
215
215
  await gapi.client.bigquery.rowAccessPolicies.list({ datasetId: "datasetId", projectId: "projectId", tableId: "tableId", });
216
216
 
217
- /*
218
- Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
219
- */
220
- await gapi.client.bigquery.rowAccessPolicies.setIamPolicy({ resource: "resource", });
221
-
222
217
  /*
223
218
  Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
224
219
  */
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230624
6
+ // Revision: 20230715
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -1455,13 +1455,16 @@ gapi.load('client', async () => {
1455
1455
  },
1456
1456
  },
1457
1457
  hparams: {
1458
+ activationFn: "Test string",
1458
1459
  adjustStepChanges: true,
1459
1460
  approxGlobalFeatureContrib: true,
1460
1461
  autoArima: true,
1461
1462
  autoArimaMaxOrder: "Test string",
1462
1463
  autoArimaMinOrder: "Test string",
1464
+ autoClassWeights: true,
1463
1465
  batchSize: "Test string",
1464
1466
  boosterType: "Test string",
1467
+ budgetHours: 42,
1465
1468
  calculatePValues: true,
1466
1469
  cleanSpikesAndDips: true,
1467
1470
  colorSpace: "Test string",
@@ -1479,6 +1482,7 @@ gapi.load('client', async () => {
1479
1482
  earlyStop: true,
1480
1483
  enableGlobalExplain: true,
1481
1484
  feedbackType: "Test string",
1485
+ fitIntercept: true,
1482
1486
  hiddenUnits: [
1483
1487
  "Test string"
1484
1488
  ],
@@ -1497,6 +1501,7 @@ gapi.load('client', async () => {
1497
1501
  itemColumn: "Test string",
1498
1502
  kmeansInitializationColumn: "Test string",
1499
1503
  kmeansInitializationMethod: "Test string",
1504
+ l1RegActivation: 42,
1500
1505
  l1Regularization: 42,
1501
1506
  l2Regularization: 42,
1502
1507
  labelClassWeights: {
@@ -1513,6 +1518,7 @@ gapi.load('client', async () => {
1513
1518
  minSplitLoss: 42,
1514
1519
  minTimeSeriesLength: "Test string",
1515
1520
  minTreeChildWeight: "Test string",
1521
+ modelRegistry: "Test string",
1516
1522
  modelUri: "Test string",
1517
1523
  nonSeasonalOrder: {
1518
1524
  d: "Test string",
@@ -1522,9 +1528,15 @@ gapi.load('client', async () => {
1522
1528
  numClusters: "Test string",
1523
1529
  numFactors: "Test string",
1524
1530
  numParallelTree: "Test string",
1531
+ numPrincipalComponents: "Test string",
1525
1532
  numTrials: "Test string",
1526
1533
  optimizationStrategy: "Test string",
1534
+ optimizer: "Test string",
1535
+ pcaExplainedVarianceRatio: 42,
1536
+ pcaSolver: "Test string",
1527
1537
  sampledShapleyNumPaths: "Test string",
1538
+ scaleFeatures: true,
1539
+ standardizeFeatures: true,
1528
1540
  subsample: 42,
1529
1541
  tfVersion: "Test string",
1530
1542
  timeSeriesDataColumn: "Test string",
@@ -1537,6 +1549,9 @@ gapi.load('client', async () => {
1537
1549
  treeMethod: "Test string",
1538
1550
  trendSmoothingWindowSize: "Test string",
1539
1551
  userColumn: "Test string",
1552
+ vertexAiModelVersionAliases: [
1553
+ "Test string"
1554
+ ],
1540
1555
  walsAlpha: 42,
1541
1556
  warmStart: true,
1542
1557
  xgboostVersion: "Test string",
@@ -1919,13 +1934,16 @@ gapi.load('client', async () => {
1919
1934
  ],
1920
1935
  startTime: "Test string",
1921
1936
  trainingOptions: {
1937
+ activationFn: "Test string",
1922
1938
  adjustStepChanges: true,
1923
1939
  approxGlobalFeatureContrib: true,
1924
1940
  autoArima: true,
1925
1941
  autoArimaMaxOrder: "Test string",
1926
1942
  autoArimaMinOrder: "Test string",
1943
+ autoClassWeights: true,
1927
1944
  batchSize: "Test string",
1928
1945
  boosterType: "Test string",
1946
+ budgetHours: 42,
1929
1947
  calculatePValues: true,
1930
1948
  cleanSpikesAndDips: true,
1931
1949
  colorSpace: "Test string",
@@ -1943,6 +1961,7 @@ gapi.load('client', async () => {
1943
1961
  earlyStop: true,
1944
1962
  enableGlobalExplain: true,
1945
1963
  feedbackType: "Test string",
1964
+ fitIntercept: true,
1946
1965
  hiddenUnits: [
1947
1966
  "Test string"
1948
1967
  ],
@@ -1961,6 +1980,7 @@ gapi.load('client', async () => {
1961
1980
  itemColumn: "Test string",
1962
1981
  kmeansInitializationColumn: "Test string",
1963
1982
  kmeansInitializationMethod: "Test string",
1983
+ l1RegActivation: 42,
1964
1984
  l1Regularization: 42,
1965
1985
  l2Regularization: 42,
1966
1986
  labelClassWeights: {
@@ -1977,6 +1997,7 @@ gapi.load('client', async () => {
1977
1997
  minSplitLoss: 42,
1978
1998
  minTimeSeriesLength: "Test string",
1979
1999
  minTreeChildWeight: "Test string",
2000
+ modelRegistry: "Test string",
1980
2001
  modelUri: "Test string",
1981
2002
  nonSeasonalOrder: {
1982
2003
  d: "Test string",
@@ -1986,9 +2007,15 @@ gapi.load('client', async () => {
1986
2007
  numClusters: "Test string",
1987
2008
  numFactors: "Test string",
1988
2009
  numParallelTree: "Test string",
2010
+ numPrincipalComponents: "Test string",
1989
2011
  numTrials: "Test string",
1990
2012
  optimizationStrategy: "Test string",
2013
+ optimizer: "Test string",
2014
+ pcaExplainedVarianceRatio: 42,
2015
+ pcaSolver: "Test string",
1991
2016
  sampledShapleyNumPaths: "Test string",
2017
+ scaleFeatures: true,
2018
+ standardizeFeatures: true,
1992
2019
  subsample: 42,
1993
2020
  tfVersion: "Test string",
1994
2021
  timeSeriesDataColumn: "Test string",
@@ -2001,6 +2028,9 @@ gapi.load('client', async () => {
2001
2028
  treeMethod: "Test string",
2002
2029
  trendSmoothingWindowSize: "Test string",
2003
2030
  userColumn: "Test string",
2031
+ vertexAiModelVersionAliases: [
2032
+ "Test string"
2033
+ ],
2004
2034
  walsAlpha: 42,
2005
2035
  warmStart: true,
2006
2036
  xgboostVersion: "Test string",
@@ -2010,6 +2040,24 @@ gapi.load('client', async () => {
2010
2040
  vertexAiModelVersion: "Test string",
2011
2041
  }
2012
2042
  ],
2043
+ transformColumns: [
2044
+ {
2045
+ name: "Test string",
2046
+ transformSql: "Test string",
2047
+ type: {
2048
+ arrayElementType: undefined,
2049
+ structType: {
2050
+ fields: [
2051
+ {
2052
+ name: "Test string",
2053
+ type: undefined,
2054
+ }
2055
+ ],
2056
+ },
2057
+ typeKind: "Test string",
2058
+ },
2059
+ }
2060
+ ],
2013
2061
  });
2014
2062
  /** Returns the email address of the service account for your project used for interactions with Google Cloud KMS. */
2015
2063
  await gapi.client.bigquery.projects.getServiceAccount({
@@ -2255,43 +2303,6 @@ gapi.load('client', async () => {
2255
2303
  projectId: "Test string",
2256
2304
  tableId: "Test string",
2257
2305
  });
2258
- /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
2259
- await gapi.client.bigquery.rowAccessPolicies.setIamPolicy({
2260
- resource: "Test string",
2261
- }, {
2262
- policy: {
2263
- auditConfigs: [
2264
- {
2265
- auditLogConfigs: [
2266
- {
2267
- exemptedMembers: [
2268
- "Test string"
2269
- ],
2270
- logType: "Test string",
2271
- }
2272
- ],
2273
- service: "Test string",
2274
- }
2275
- ],
2276
- bindings: [
2277
- {
2278
- condition: {
2279
- description: "Test string",
2280
- expression: "Test string",
2281
- location: "Test string",
2282
- title: "Test string",
2283
- },
2284
- members: [
2285
- "Test string"
2286
- ],
2287
- role: "Test string",
2288
- }
2289
- ],
2290
- etag: "Test string",
2291
- version: 42,
2292
- },
2293
- updateMask: "Test string",
2294
- });
2295
2306
  /**
2296
2307
  * Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This
2297
2308
  * operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.