Skip to content

Commit

Permalink
feat: run the generator (#1659)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith committed Mar 28, 2019
1 parent d69c920 commit 73eab9b
Show file tree
Hide file tree
Showing 15 changed files with 507 additions and 51 deletions.
22 changes: 17 additions & 5 deletions src/apis/androidenterprise/v1.ts
Expand Up @@ -1894,11 +1894,21 @@ export namespace androidenterprise_v1 {
userValue?: string;
}
/**
* WebApp resource info.
* A WebApps resource represents a web app created for an enterprise. Web apps
* are published to managed Google Play and can be distributed like other
* Android apps. On a user's device, a web app opens its specified URL.
*/
export interface Schema$WebApp {
/**
* The display mode of the web app.
* The display mode of the web app. Possible values include: -
* "minimalUi", the device's status bar, navigation bar, the
* app's URL, and a refresh button are visible when the app is open. For
* HTTP URLs, you can only select this option. - "standalone", the
* device's status bar and navigation bar are visible when the app is
* open. - "fullScreen", the app opens in full screen mode, hiding
* the device's status and navigation bars. All browser UI elements,
* page URL, system status bar and back button are not visible, and the web
* app takes up the entirety of the available display area.
*/
displayMode?: string;
/**
Expand All @@ -1916,8 +1926,8 @@ export namespace androidenterprise_v1 {
*/
startUrl?: string;
/**
* The title of the web application as displayed to the user (e.g., amongst
* a list of other applications, or as a label for an icon).
* The title of the web app as displayed to the user (e.g., amongst a list
* of other applications, or as a label for an icon).
*/
title?: string;
/**
Expand All @@ -1927,7 +1937,9 @@ export namespace androidenterprise_v1 {
*/
versionCode?: string;
/**
* The ID of the application.
* The ID of the application. A string of the form "app:<package
* name>" where the package name always starts with the prefix
* "com.google.enterprise.webapp." followed by a random id.
*/
webAppId?: string;
}
Expand Down
252 changes: 250 additions & 2 deletions src/apis/bigquerydatatransfer/v1.ts
Expand Up @@ -446,6 +446,29 @@ export namespace bigquerydatatransfer_v1 {
*/
runs?: Schema$TransferRun[];
}
/**
* A request to start manual transfer runs.
*/
export interface Schema$StartManualTransferRunsRequest {
/**
* Specific run_time for a transfer run to be started. The
* requested_run_time must not be in the future.
*/
requestedRunTime?: string;
/**
* Time range for the transfer runs that should be started.
*/
requestedTimeRange?: Schema$TimeRange;
}
/**
* A response to start manual transfer runs.
*/
export interface Schema$StartManualTransferRunsResponse {
/**
* The transfer runs that were created.
*/
runs?: Schema$TransferRun[];
}
/**
* The `Status` type defines a logical error model that is suitable for
* different programming environments, including REST APIs and RPC APIs. It is
Expand Down Expand Up @@ -499,6 +522,26 @@ export namespace bigquerydatatransfer_v1 {
*/
message?: string;
}
/**
* A specification for a time range, this will request transfer runs with
* run_time between start_time (inclusive) and end_time (exclusive).
*/
export interface Schema$TimeRange {
/**
* End time of the range of transfer runs. For example,
* `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the
* future. Creates transfer runs where run_time is in the range betwen
* start_time (inclusive) and end_time (exlusive).
*/
endTime?: string;
/**
* Start time of the range of transfer runs. For example,
* `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly
* less than the end_time. Creates transfer runs where run_time is in the
* range betwen start_time (inclusive) and end_time (exlusive).
*/
startTime?: string;
}
/**
* Represents a data transfer configuration. A transfer configuration contains
* all metadata needed to perform a data transfer. For example,
Expand Down Expand Up @@ -1776,7 +1819,7 @@ export namespace bigquerydatatransfer_v1 {
* @desc Creates transfer runs for a time range [start_time, end_time]. For
* each date - or whatever granularity the data source supports - in the
* range, one transfer run is created. Note that runs are created per UTC
* time in the time range.
* time in the time range. DEPRECATED: use StartManualTransferRuns instead.
* @alias
* bigquerydatatransfer.projects.locations.transferConfigs.scheduleRuns
* @memberOf! ()
Expand Down Expand Up @@ -1853,6 +1896,93 @@ export namespace bigquerydatatransfer_v1 {
parameters);
}
}


/**
* bigquerydatatransfer.projects.locations.transferConfigs.startManualRuns
* @desc Start manual transfer runs to be executed now with schedule_time
* equal to current time. The transfer runs can be created for a time range
* where the run_time is between start_time (inclusive) and end_time
* (exclusive), or for a specific run_time.
* @alias
* bigquerydatatransfer.projects.locations.transferConfigs.startManualRuns
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.parent Transfer configuration name in the form: `projects/{project_id}/transferConfigs/{config_id}`.
* @param {().StartManualTransferRunsRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
startManualRuns(
params?:
Params$Resource$Projects$Locations$Transferconfigs$Startmanualruns,
options?: MethodOptions):
GaxiosPromise<Schema$StartManualTransferRunsResponse>;
startManualRuns(
params:
Params$Resource$Projects$Locations$Transferconfigs$Startmanualruns,
options: MethodOptions|
BodyResponseCallback<Schema$StartManualTransferRunsResponse>,
callback: BodyResponseCallback<Schema$StartManualTransferRunsResponse>):
void;
startManualRuns(
params:
Params$Resource$Projects$Locations$Transferconfigs$Startmanualruns,
callback: BodyResponseCallback<Schema$StartManualTransferRunsResponse>):
void;
startManualRuns(
callback: BodyResponseCallback<Schema$StartManualTransferRunsResponse>):
void;
startManualRuns(
paramsOrCallback?:
Params$Resource$Projects$Locations$Transferconfigs$Startmanualruns|
BodyResponseCallback<Schema$StartManualTransferRunsResponse>,
optionsOrCallback?: MethodOptions|
BodyResponseCallback<Schema$StartManualTransferRunsResponse>,
callback?:
BodyResponseCallback<Schema$StartManualTransferRunsResponse>):
void|GaxiosPromise<Schema$StartManualTransferRunsResponse> {
let params = (paramsOrCallback || {}) as
Params$Resource$Projects$Locations$Transferconfigs$Startmanualruns;
let options = (optionsOrCallback || {}) as MethodOptions;

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as
Params$Resource$Projects$Locations$Transferconfigs$Startmanualruns;
options = {};
}

if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}

const rootUrl =
options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/{+parent}:startManualRuns')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'POST'
},
options),
params,
requiredParams: ['parent'],
pathParams: ['parent'],
context
};
if (callback) {
createAPIRequest<Schema$StartManualTransferRunsResponse>(
parameters, callback);
} else {
return createAPIRequest<Schema$StartManualTransferRunsResponse>(
parameters);
}
}
}

export interface Params$Resource$Projects$Locations$Transferconfigs$Create
Expand Down Expand Up @@ -2028,6 +2158,24 @@ export namespace bigquerydatatransfer_v1 {
*/
requestBody?: Schema$ScheduleTransferRunsRequest;
}
export interface Params$Resource$Projects$Locations$Transferconfigs$Startmanualruns
extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;

/**
* Transfer configuration name in the form:
* `projects/{project_id}/transferConfigs/{config_id}`.
*/
parent?: string;

/**
* Request body metadata
*/
requestBody?: Schema$StartManualTransferRunsRequest;
}

export class Resource$Projects$Locations$Transferconfigs$Runs {
transferLogs: Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs;
Expand Down Expand Up @@ -2784,7 +2932,7 @@ export namespace bigquerydatatransfer_v1 {
* @desc Creates transfer runs for a time range [start_time, end_time]. For
* each date - or whatever granularity the data source supports - in the
* range, one transfer run is created. Note that runs are created per UTC
* time in the time range.
* time in the time range. DEPRECATED: use StartManualTransferRuns instead.
* @alias bigquerydatatransfer.projects.transferConfigs.scheduleRuns
* @memberOf! ()
*
Expand Down Expand Up @@ -2858,6 +3006,88 @@ export namespace bigquerydatatransfer_v1 {
parameters);
}
}


/**
* bigquerydatatransfer.projects.transferConfigs.startManualRuns
* @desc Start manual transfer runs to be executed now with schedule_time
* equal to current time. The transfer runs can be created for a time range
* where the run_time is between start_time (inclusive) and end_time
* (exclusive), or for a specific run_time.
* @alias bigquerydatatransfer.projects.transferConfigs.startManualRuns
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.parent Transfer configuration name in the form: `projects/{project_id}/transferConfigs/{config_id}`.
* @param {().StartManualTransferRunsRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
startManualRuns(
params?: Params$Resource$Projects$Transferconfigs$Startmanualruns,
options?: MethodOptions):
GaxiosPromise<Schema$StartManualTransferRunsResponse>;
startManualRuns(
params: Params$Resource$Projects$Transferconfigs$Startmanualruns,
options: MethodOptions|
BodyResponseCallback<Schema$StartManualTransferRunsResponse>,
callback: BodyResponseCallback<Schema$StartManualTransferRunsResponse>):
void;
startManualRuns(
params: Params$Resource$Projects$Transferconfigs$Startmanualruns,
callback: BodyResponseCallback<Schema$StartManualTransferRunsResponse>):
void;
startManualRuns(
callback: BodyResponseCallback<Schema$StartManualTransferRunsResponse>):
void;
startManualRuns(
paramsOrCallback?:
Params$Resource$Projects$Transferconfigs$Startmanualruns|
BodyResponseCallback<Schema$StartManualTransferRunsResponse>,
optionsOrCallback?: MethodOptions|
BodyResponseCallback<Schema$StartManualTransferRunsResponse>,
callback?:
BodyResponseCallback<Schema$StartManualTransferRunsResponse>):
void|GaxiosPromise<Schema$StartManualTransferRunsResponse> {
let params = (paramsOrCallback || {}) as
Params$Resource$Projects$Transferconfigs$Startmanualruns;
let options = (optionsOrCallback || {}) as MethodOptions;

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Projects$Transferconfigs$Startmanualruns;
options = {};
}

if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}

const rootUrl =
options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/{+parent}:startManualRuns')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'POST'
},
options),
params,
requiredParams: ['parent'],
pathParams: ['parent'],
context
};
if (callback) {
createAPIRequest<Schema$StartManualTransferRunsResponse>(
parameters, callback);
} else {
return createAPIRequest<Schema$StartManualTransferRunsResponse>(
parameters);
}
}
}

export interface Params$Resource$Projects$Transferconfigs$Create extends
Expand Down Expand Up @@ -3033,6 +3263,24 @@ export namespace bigquerydatatransfer_v1 {
*/
requestBody?: Schema$ScheduleTransferRunsRequest;
}
export interface Params$Resource$Projects$Transferconfigs$Startmanualruns
extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;

/**
* Transfer configuration name in the form:
* `projects/{project_id}/transferConfigs/{config_id}`.
*/
parent?: string;

/**
* Request body metadata
*/
requestBody?: Schema$StartManualTransferRunsRequest;
}

export class Resource$Projects$Transferconfigs$Runs {
transferLogs: Resource$Projects$Transferconfigs$Runs$Transferlogs;
Expand Down
14 changes: 14 additions & 0 deletions src/apis/cloudbuild/v1.ts
Expand Up @@ -647,6 +647,10 @@ export namespace cloudbuild_v1 {
* Response containing existing `BuildTriggers`.
*/
export interface Schema$ListBuildTriggersResponse {
/**
* Token to receive the next page of results.
*/
nextPageToken?: string;
/**
* `BuildTriggers` for the project, sorted by `create_time` descending.
*/
Expand Down Expand Up @@ -1932,6 +1936,8 @@ export namespace cloudbuild_v1 {
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {integer=} params.pageSize Number of results to return in the list.
* @param {string=} params.pageToken Token to provide to skip to a particular spot in the list.
* @param {string} params.projectId ID of the project for which to list BuildTriggers.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
Expand Down Expand Up @@ -2188,6 +2194,14 @@ export namespace cloudbuild_v1 {
*/
auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;

/**
* Number of results to return in the list.
*/
pageSize?: number;
/**
* Token to provide to skip to a particular spot in the list.
*/
pageToken?: string;
/**
* ID of the project for which to list BuildTriggers.
*/
Expand Down

0 comments on commit 73eab9b

Please sign in to comment.