Skip to content

Commit

Permalink
feat: run the generator
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith committed Mar 19, 2019
1 parent 9daa7fe commit 27426d2
Show file tree
Hide file tree
Showing 23 changed files with 3,470 additions and 96 deletions.
171 changes: 94 additions & 77 deletions src/apis/bigquery/v2.ts
Expand Up @@ -221,6 +221,74 @@ export namespace bigquery_v2 {
*/
readRowkeyAsString?: boolean;
}
export interface Schema$BqmlIterationResult {
/**
* [Output-only, Beta] Time taken to run the training iteration in
* milliseconds.
*/
durationMs?: string;
/**
* [Output-only, Beta] Eval loss computed on the eval data at the end of the
* iteration. The eval loss is used for early stopping to avoid overfitting.
* No eval loss if eval_split_method option is specified as no_split or
* auto_split with input data size less than 500 rows.
*/
evalLoss?: number;
/**
* [Output-only, Beta] Index of the ML training iteration, starting from
* zero for each training run.
*/
index?: number;
/**
* [Output-only, Beta] Learning rate used for this iteration, it varies for
* different training iterations if learn_rate_strategy option is not
* constant.
*/
learnRate?: number;
/**
* [Output-only, Beta] Training loss computed on the training data at the
* end of the iteration. The training loss function is defined by model
* type.
*/
trainingLoss?: number;
}
export interface Schema$BqmlTrainingRun {
/**
* [Output-only, Beta] List of each iteration results.
*/
iterationResults?: Schema$BqmlIterationResult[];
/**
* [Output-only, Beta] Training run start time in milliseconds since the
* epoch.
*/
startTime?: string;
/**
* [Output-only, Beta] Different state applicable for a training run. IN
* PROGRESS: Training run is in progress. FAILED: Training run ended due to
* a non-retryable failure. SUCCEEDED: Training run successfully completed.
* CANCELLED: Training run cancelled by the user.
*/
state?: string;
/**
* [Output-only, Beta] Training options used by this training run. These
* options are mutable for subsequent training runs. Default values are
* explicitly stored for options not specified in the input query of the
* first training run. For subsequent training runs, any option not
* explicitly specified in the input query will be copied from the previous
* training run.
*/
trainingOptions?: {
earlyStop?: boolean;
l1Reg?: number;
l2Reg?: number;
learnRate?: number;
learnRateStrategy?: string;
lineSearchInitLearnRate?: number;
maxIteration?: string;
minRelProgress?: number;
warmStart?: boolean;
};
}
export interface Schema$Clustering {
/**
* [Repeated] One or more fields on which data should be clustered. Only
Expand Down Expand Up @@ -786,37 +854,6 @@ export namespace bigquery_v2 {
*/
skipLeadingRows?: string;
}
export interface Schema$IterationResult {
/**
* [Output-only, Beta] Time taken to run the training iteration in
* milliseconds.
*/
durationMs?: string;
/**
* [Output-only, Beta] Eval loss computed on the eval data at the end of the
* iteration. The eval loss is used for early stopping to avoid overfitting.
* No eval loss if eval_split_method option is specified as no_split or
* auto_split with input data size less than 500 rows.
*/
evalLoss?: number;
/**
* [Output-only, Beta] Index of the ML training iteration, starting from
* zero for each training run.
*/
index?: number;
/**
* [Output-only, Beta] Learning rate used for this iteration, it varies for
* different training iterations if learn_rate_strategy option is not
* constant.
*/
learnRate?: number;
/**
* [Output-only, Beta] Training loss computed on the training data at the
* end of the iteration. The training loss function is defined by model
* type.
*/
trainingLoss?: number;
}
export interface Schema$Job {
/**
* [Required] Describes the job configuration.
Expand Down Expand Up @@ -1469,6 +1506,11 @@ export namespace bigquery_v2 {
* the DDL target.
*/
ddlOperationPerformed?: string;
/**
* The DDL target routine. Present only for CREATE/DROP FUNCTION/PROCEDURE
* queries.
*/
ddlTargetRoutine?: Schema$RoutineReference;
/**
* The DDL target table. Present only for CREATE/DROP TABLE/VIEW queries.
*/
Expand Down Expand Up @@ -1527,8 +1569,10 @@ export namespace bigquery_v2 {
* "CREATE_TABLE_AS_SELECT": CREATE [OR REPLACE] TABLE ... AS
* SELECT ... . "DROP_TABLE": DROP TABLE query.
* "CREATE_VIEW": CREATE [OR REPLACE] VIEW ... AS SELECT ... .
* "DROP_VIEW": DROP VIEW query. "ALTER_TABLE": ALTER
* TABLE query. "ALTER_VIEW": ALTER VIEW query.
* "DROP_VIEW": DROP VIEW query. "CREATE_FUNCTION":
* CREATE FUNCTION query. "DROP_FUNCTION" : DROP FUNCTION query.
* "ALTER_TABLE": ALTER TABLE query. "ALTER_VIEW": ALTER
* VIEW query.
*/
statementType?: string;
/**
Expand Down Expand Up @@ -1653,7 +1697,7 @@ export namespace bigquery_v2 {
* for the model if warm start is used or if a user decides to continue a
* previously cancelled query.
*/
trainingRuns?: Schema$TrainingRun[];
trainingRuns?: Schema$BqmlTrainingRun[];
}
export interface Schema$ProjectList {
/**
Expand Down Expand Up @@ -1915,6 +1959,22 @@ export namespace bigquery_v2 {
*/
range?: {end?: string; interval?: string; start?: string;};
}
export interface Schema$RoutineReference {
/**
* [Required] The ID of the dataset containing this routine.
*/
datasetId?: string;
/**
* [Required] The ID of the project containing this routine.
*/
projectId?: string;
/**
* [Required] The ID of the routine. The ID must contain only letters (a-z,
* A-Z), numbers (0-9), or underscores (_). The maximum length is 256
* characters.
*/
routineId?: string;
}
export interface Schema$Streamingbuffer {
/**
* [Output-only] A lower-bound estimate of the number of bytes currently in
Expand Down Expand Up @@ -2272,43 +2332,6 @@ export namespace bigquery_v2 {
*/
type?: string;
}
export interface Schema$TrainingRun {
/**
* [Output-only, Beta] List of each iteration results.
*/
iterationResults?: Schema$IterationResult[];
/**
* [Output-only, Beta] Training run start time in milliseconds since the
* epoch.
*/
startTime?: string;
/**
* [Output-only, Beta] Different state applicable for a training run. IN
* PROGRESS: Training run is in progress. FAILED: Training run ended due to
* a non-retryable failure. SUCCEEDED: Training run successfully completed.
* CANCELLED: Training run cancelled by the user.
*/
state?: string;
/**
* [Output-only, Beta] Training options used by this training run. These
* options are mutable for subsequent training runs. Default values are
* explicitly stored for options not specified in the input query of the
* first training run. For subsequent training runs, any option not
* explicitly specified in the input query will be copied from the previous
* training run.
*/
trainingOptions?: {
earlyStop?: boolean;
l1Reg?: number;
l2Reg?: number;
learnRate?: number;
learnRateStrategy?: string;
lineSearchInitLearnRate?: number;
maxIteration?: string;
minRelProgress?: number;
warmStart?: boolean;
};
}
export interface Schema$UserDefinedFunctionResource {
/**
* [Pick one] An inline resource that contains code for a user-defined
Expand Down Expand Up @@ -3845,7 +3868,6 @@ export namespace bigquery_v2 {
* @param {integer=} params.maxResults Maximum number of results to return
* @param {string=} params.minCreationTime Min value for job creation time, in milliseconds since the POSIX epoch. If set, only jobs created after or at this timestamp are returned
* @param {string=} params.pageToken Page token, returned by a previous call, to request the next page of results
* @param {string=} params.parentJobId If set, retrieves only jobs whose parent is this job. Otherwise, retrieves only jobs which have no parent.
* @param {string} params.projectId Project ID of the jobs to list
* @param {string=} params.projection Restrict information returned to a set of selected fields
* @param {string=} params.stateFilter Filter for job state
Expand Down Expand Up @@ -4172,11 +4194,6 @@ export namespace bigquery_v2 {
* results
*/
pageToken?: string;
/**
* If set, retrieves only jobs whose parent is this job. Otherwise,
* retrieves only jobs which have no parent.
*/
parentJobId?: string;
/**
* Project ID of the jobs to list
*/
Expand Down
4 changes: 2 additions & 2 deletions src/apis/cloudbilling/v1.ts
Expand Up @@ -234,8 +234,8 @@ export namespace cloudbilling_v1 {
* * `serviceAccount:{emailid}`: An email address that represents a service
* account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `group:{emailid}`: An email address that represents a Google group. For
* example, `admins@example.com`. * `domain:{domain}`: A Google Apps
* domain name that represents all the users of that domain. For example,
* example, `admins@example.com`. * `domain:{domain}`: The G Suite domain
* (primary) that represents all the users of that domain. For example,
* `google.com` or `example.com`.
*/
members?: string[];
Expand Down
6 changes: 4 additions & 2 deletions src/apis/cloudfunctions/v1.ts
Expand Up @@ -291,8 +291,10 @@ export namespace cloudfunctions_v1 {
*/
network?: string;
/**
* The runtime in which the function is going to run. If empty, defaults to
* Node.js 6.
* The runtime in which the function is going to run. Example values
* include: `go111`: for Go 1.11 `nodejs6`: for Node.js 6 `nodejs8`: for
* Node.js 8 `nodejs10`: for Node.js 10 `python37`: for Python 3.7 `ruby25`:
* for Ruby 2.5 If empty, defaults to `nodejs6`.
*/
runtime?: string;
/**
Expand Down
4 changes: 2 additions & 2 deletions src/apis/cloudsearch/v1.ts
Expand Up @@ -1938,8 +1938,8 @@ export namespace cloudsearch_v1 {
objectDefinitions?: Schema$ObjectDefinition[];
/**
* IDs of the Long Running Operations (LROs) currently running for this
* schema. After modifying the schema, wait for opeations to complete before
* indexing additional content.
* schema. After modifying the schema, wait for operations to complete
* before indexing additional content.
*/
operationIds?: string[];
}
Expand Down
92 changes: 92 additions & 0 deletions src/apis/composer/v1beta1.ts
Expand Up @@ -187,6 +187,10 @@ export namespace composer_v1beta1 {
* run this environment.
*/
nodeCount?: number;
/**
* The configuration used for the private Composer environment.
*/
privateEnvironmentConfig?: Schema$PrivateEnvironmentConfig;
/**
* The configuration settings for software inside the environment.
*/
Expand All @@ -211,6 +215,55 @@ export namespace composer_v1beta1 {
*/
supportedPythonVersions?: string[];
}
/**
* Configuration for controlling how IPs are allocated in the GKE cluster.
*/
export interface Schema$IPAllocationPolicy {
/**
* Optional. The IP address range used to allocate IP addresses to pods in
* the cluster. This field is applicable only when `use_ip_aliases` is
* true. Set to blank to have GKE choose a range with the default size. Set
* to /netmask (e.g. `/14`) to have GKE choose a range with a specific
* netmask. Set to a
* [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
* notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
* `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
* to use. Specify `cluster_secondary_range_name` or
* `cluster_ipv4_cidr_block` but not both.
*/
clusterIpv4CidrBlock?: string;
/**
* Optional. The name of the cluster's secondary range used to allocate
* IP addresses to pods. Specify either `cluster_secondary_range_name` or
* `cluster_ipv4_cidr_block` but not both.
*/
clusterSecondaryRangeName?: string;
/**
* Optional. The IP address range of the services IP addresses in this
* cluster. This field is applicable only when `use_ip_aliases` is true.
* Set to blank to have GKE choose a range with the default size. Set to
* /netmask (e.g. `/14`) to have GKE choose a range with a specific netmask.
* Set to a
* [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
* notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
* `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
* to use. Specify `services_secondary_range_name` or
* `services_ipv4_cidr_block` but not both.
*/
servicesIpv4CidrBlock?: string;
/**
* Optional. The name of the services' secondary range used to allocate
* IP addresses to the cluster. Specify either
* `services_secondary_range_name` or `services_ipv4_cidr_block` but not
* both.
*/
servicesSecondaryRangeName?: string;
/**
* Optional. Whether or not to enable Alias IPs in the GKE cluster. If true
* or if left blank, a VPC-native cluster is created.
*/
useIpAliases?: boolean;
}
/**
* The environments in a project and location.
*/
Expand Down Expand Up @@ -260,6 +313,10 @@ export namespace composer_v1beta1 {
* unspecified, defaults to 100GB. Cannot be updated.
*/
diskSizeGb?: number;
/**
* Optional. The IPAllocationPolicy fields for the GKE cluster.
*/
ipAllocationPolicy?: Schema$IPAllocationPolicy;
/**
* Optional. The Compute Engine [zone](/compute/docs/regions-zones) in which
* to deploy the VMs used to run the Apache Airflow software, specified as a
Expand Down Expand Up @@ -408,6 +465,41 @@ export namespace composer_v1beta1 {
*/
state?: string;
}
/**
* Configuration options for private cluster of Composer environment.
*/
export interface Schema$PrivateClusterConfig {
/**
* Optional. If true, access to public endpoint of gke cluster will be
* denied. `IPAllocationPolicy.use_ip_aliases` must be true if this field is
* set to true. Default value is false.
*/
enablePrivateEndpoint?: boolean;
/**
* The IP range in CIDR notation to use for the hosted master network. This
* range will be used for assigning internal IP addresses to the cluster
* master or set of masters, as well as the ILB VIP (Internal Load Balance
* Virtual IP).This range must not overlap with any other ranges in use
* within the cluster's network. If left blank, default value of
* '172.16.0.0/28' will be used.
*/
masterIpv4CidrBlock?: string;
}
/**
* The configuration information for configuring a private Composer
* environment.
*/
export interface Schema$PrivateEnvironmentConfig {
/**
* Optional. If `true`, a private Composer environment is created.
*/
enablePrivateEnvironment?: boolean;
/**
* Optional. Configuration for private cluster for a private Composer
* environment.
*/
privateClusterConfig?: Schema$PrivateClusterConfig;
}
/**
* Specifies the selection and configuration of software inside the
* environment.
Expand Down

0 comments on commit 27426d2

Please sign in to comment.