@googleapis/dataform 21.1.0 → 21.2.0
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.
- package/CHANGELOG.md +14 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +2 -2
- package/build/v1beta1.d.ts +107 -2
- package/build/v1beta1.js +33 -0
- package/build/v1beta1.js.map +1 -1
- package/package.json +2 -2
- package/tsconfig.build.json +10 -0
- package/v1.ts +2 -2
- package/v1beta1.ts +191 -2
package/v1beta1.ts
CHANGED
|
@@ -933,6 +933,23 @@ export namespace dataform_v1beta1 {
|
|
|
933
933
|
*/
|
|
934
934
|
nextPageToken?: string | null;
|
|
935
935
|
}
|
|
936
|
+
/**
|
|
937
|
+
* `FetchWorkspaceHistory` response message.
|
|
938
|
+
*/
|
|
939
|
+
export interface Schema$FetchWorkspaceHistoryResponse {
|
|
940
|
+
/**
|
|
941
|
+
* A list of commit logs, ordered by 'git log' default order.
|
|
942
|
+
*/
|
|
943
|
+
commits?: Schema$CommitLogEntry[];
|
|
944
|
+
/**
|
|
945
|
+
* Optional. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
|
|
946
|
+
*/
|
|
947
|
+
nextPageToken?: string | null;
|
|
948
|
+
/**
|
|
949
|
+
* Whether this response reaches the shallow boundary of the repository.
|
|
950
|
+
*/
|
|
951
|
+
reachesShallowBoundary?: boolean | null;
|
|
952
|
+
}
|
|
936
953
|
/**
|
|
937
954
|
* Represents a single file operation to the repository.
|
|
938
955
|
*/
|
|
@@ -951,7 +968,7 @@ export namespace dataform_v1beta1 {
|
|
|
951
968
|
*/
|
|
952
969
|
export interface Schema$FileSearchResult {
|
|
953
970
|
/**
|
|
954
|
-
* File system path relative to the
|
|
971
|
+
* File system path relative to the file tree root.
|
|
955
972
|
*/
|
|
956
973
|
path?: string | null;
|
|
957
974
|
}
|
|
@@ -1048,6 +1065,10 @@ export namespace dataform_v1beta1 {
|
|
|
1048
1065
|
* Controls Git remote configuration for a repository.
|
|
1049
1066
|
*/
|
|
1050
1067
|
export interface Schema$GitRemoteSettings {
|
|
1068
|
+
/**
|
|
1069
|
+
* Optional. Resource name for the Account Connector used for personal authentication. Must be in the format `projects/x/locations/x/accountConnectors/x`
|
|
1070
|
+
*/
|
|
1071
|
+
accountConnector?: string | null;
|
|
1051
1072
|
/**
|
|
1052
1073
|
* Optional. The name of the Secret Manager secret version to use as an authentication token for Git operations. Must be in the format `projects/x/secrets/x/versions/x`.
|
|
1053
1074
|
*/
|
|
@@ -1159,7 +1180,7 @@ export namespace dataform_v1beta1 {
|
|
|
1159
1180
|
*/
|
|
1160
1181
|
export interface Schema$InvocationConfig {
|
|
1161
1182
|
/**
|
|
1162
|
-
* Optional. Configuration for end user authentication.
|
|
1183
|
+
* Optional. Configuration for end user authentication. Do not set if `service_account` is used.
|
|
1163
1184
|
*/
|
|
1164
1185
|
endUserAuthConfig?: Schema$EndUserAuthenticationConfig;
|
|
1165
1186
|
/**
|
|
@@ -13265,6 +13286,160 @@ export namespace dataform_v1beta1 {
|
|
|
13265
13286
|
}
|
|
13266
13287
|
}
|
|
13267
13288
|
|
|
13289
|
+
/**
|
|
13290
|
+
* Fetches a Workspace's history of commits.
|
|
13291
|
+
* @example
|
|
13292
|
+
* ```js
|
|
13293
|
+
* // Before running the sample:
|
|
13294
|
+
* // - Enable the API at:
|
|
13295
|
+
* // https://console.developers.google.com/apis/api/dataform.googleapis.com
|
|
13296
|
+
* // - Login into gcloud by running:
|
|
13297
|
+
* // ```sh
|
|
13298
|
+
* // $ gcloud auth application-default login
|
|
13299
|
+
* // ```
|
|
13300
|
+
* // - Install the npm module by running:
|
|
13301
|
+
* // ```sh
|
|
13302
|
+
* // $ npm install googleapis
|
|
13303
|
+
* // ```
|
|
13304
|
+
*
|
|
13305
|
+
* const {google} = require('googleapis');
|
|
13306
|
+
* const dataform = google.dataform('v1beta1');
|
|
13307
|
+
*
|
|
13308
|
+
* async function main() {
|
|
13309
|
+
* const auth = new google.auth.GoogleAuth({
|
|
13310
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
13311
|
+
* scopes: [
|
|
13312
|
+
* 'https://www.googleapis.com/auth/bigquery',
|
|
13313
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
13314
|
+
* ],
|
|
13315
|
+
* });
|
|
13316
|
+
*
|
|
13317
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
13318
|
+
* const authClient = await auth.getClient();
|
|
13319
|
+
* google.options({auth: authClient});
|
|
13320
|
+
*
|
|
13321
|
+
* // Do the magic
|
|
13322
|
+
* const res =
|
|
13323
|
+
* await dataform.projects.locations.repositories.workspaces.fetchHistory({
|
|
13324
|
+
* // Required. The workspace's name.
|
|
13325
|
+
* name: 'projects/my-project/locations/my-location/repositories/my-repositorie/workspaces/my-workspace',
|
|
13326
|
+
* // Optional. Maximum number of commits to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.
|
|
13327
|
+
* pageSize: 'placeholder-value',
|
|
13328
|
+
* // Optional. Page token received from a previous `FetchWorkspaceHistory` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `FetchWorkspaceHistory`, with the exception of `page_size`, must match the call that provided the page token.
|
|
13329
|
+
* pageToken: 'placeholder-value',
|
|
13330
|
+
* });
|
|
13331
|
+
* console.log(res.data);
|
|
13332
|
+
*
|
|
13333
|
+
* // Example response
|
|
13334
|
+
* // {
|
|
13335
|
+
* // "commits": [],
|
|
13336
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
13337
|
+
* // "reachesShallowBoundary": false
|
|
13338
|
+
* // }
|
|
13339
|
+
* }
|
|
13340
|
+
*
|
|
13341
|
+
* main().catch(e => {
|
|
13342
|
+
* console.error(e);
|
|
13343
|
+
* throw e;
|
|
13344
|
+
* });
|
|
13345
|
+
*
|
|
13346
|
+
* ```
|
|
13347
|
+
*
|
|
13348
|
+
* @param params - Parameters for request
|
|
13349
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
13350
|
+
* @param callback - Optional callback that handles the response.
|
|
13351
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
13352
|
+
*/
|
|
13353
|
+
fetchHistory(
|
|
13354
|
+
params: Params$Resource$Projects$Locations$Repositories$Workspaces$Fetchhistory,
|
|
13355
|
+
options: StreamMethodOptions
|
|
13356
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
13357
|
+
fetchHistory(
|
|
13358
|
+
params?: Params$Resource$Projects$Locations$Repositories$Workspaces$Fetchhistory,
|
|
13359
|
+
options?: MethodOptions
|
|
13360
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$FetchWorkspaceHistoryResponse>>;
|
|
13361
|
+
fetchHistory(
|
|
13362
|
+
params: Params$Resource$Projects$Locations$Repositories$Workspaces$Fetchhistory,
|
|
13363
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
13364
|
+
callback: BodyResponseCallback<Readable>
|
|
13365
|
+
): void;
|
|
13366
|
+
fetchHistory(
|
|
13367
|
+
params: Params$Resource$Projects$Locations$Repositories$Workspaces$Fetchhistory,
|
|
13368
|
+
options:
|
|
13369
|
+
| MethodOptions
|
|
13370
|
+
| BodyResponseCallback<Schema$FetchWorkspaceHistoryResponse>,
|
|
13371
|
+
callback: BodyResponseCallback<Schema$FetchWorkspaceHistoryResponse>
|
|
13372
|
+
): void;
|
|
13373
|
+
fetchHistory(
|
|
13374
|
+
params: Params$Resource$Projects$Locations$Repositories$Workspaces$Fetchhistory,
|
|
13375
|
+
callback: BodyResponseCallback<Schema$FetchWorkspaceHistoryResponse>
|
|
13376
|
+
): void;
|
|
13377
|
+
fetchHistory(
|
|
13378
|
+
callback: BodyResponseCallback<Schema$FetchWorkspaceHistoryResponse>
|
|
13379
|
+
): void;
|
|
13380
|
+
fetchHistory(
|
|
13381
|
+
paramsOrCallback?:
|
|
13382
|
+
| Params$Resource$Projects$Locations$Repositories$Workspaces$Fetchhistory
|
|
13383
|
+
| BodyResponseCallback<Schema$FetchWorkspaceHistoryResponse>
|
|
13384
|
+
| BodyResponseCallback<Readable>,
|
|
13385
|
+
optionsOrCallback?:
|
|
13386
|
+
| MethodOptions
|
|
13387
|
+
| StreamMethodOptions
|
|
13388
|
+
| BodyResponseCallback<Schema$FetchWorkspaceHistoryResponse>
|
|
13389
|
+
| BodyResponseCallback<Readable>,
|
|
13390
|
+
callback?:
|
|
13391
|
+
| BodyResponseCallback<Schema$FetchWorkspaceHistoryResponse>
|
|
13392
|
+
| BodyResponseCallback<Readable>
|
|
13393
|
+
):
|
|
13394
|
+
| void
|
|
13395
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$FetchWorkspaceHistoryResponse>>
|
|
13396
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
13397
|
+
let params = (paramsOrCallback ||
|
|
13398
|
+
{}) as Params$Resource$Projects$Locations$Repositories$Workspaces$Fetchhistory;
|
|
13399
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
13400
|
+
|
|
13401
|
+
if (typeof paramsOrCallback === 'function') {
|
|
13402
|
+
callback = paramsOrCallback;
|
|
13403
|
+
params =
|
|
13404
|
+
{} as Params$Resource$Projects$Locations$Repositories$Workspaces$Fetchhistory;
|
|
13405
|
+
options = {};
|
|
13406
|
+
}
|
|
13407
|
+
|
|
13408
|
+
if (typeof optionsOrCallback === 'function') {
|
|
13409
|
+
callback = optionsOrCallback;
|
|
13410
|
+
options = {};
|
|
13411
|
+
}
|
|
13412
|
+
|
|
13413
|
+
const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/';
|
|
13414
|
+
const parameters = {
|
|
13415
|
+
options: Object.assign(
|
|
13416
|
+
{
|
|
13417
|
+
url: (rootUrl + '/v1beta1/{+name}:fetchHistory').replace(
|
|
13418
|
+
/([^:]\/)\/+/g,
|
|
13419
|
+
'$1'
|
|
13420
|
+
),
|
|
13421
|
+
method: 'GET',
|
|
13422
|
+
apiVersion: '',
|
|
13423
|
+
},
|
|
13424
|
+
options
|
|
13425
|
+
),
|
|
13426
|
+
params,
|
|
13427
|
+
requiredParams: ['name'],
|
|
13428
|
+
pathParams: ['name'],
|
|
13429
|
+
context: this.context,
|
|
13430
|
+
};
|
|
13431
|
+
if (callback) {
|
|
13432
|
+
createAPIRequest<Schema$FetchWorkspaceHistoryResponse>(
|
|
13433
|
+
parameters,
|
|
13434
|
+
callback as BodyResponseCallback<unknown>
|
|
13435
|
+
);
|
|
13436
|
+
} else {
|
|
13437
|
+
return createAPIRequest<Schema$FetchWorkspaceHistoryResponse>(
|
|
13438
|
+
parameters
|
|
13439
|
+
);
|
|
13440
|
+
}
|
|
13441
|
+
}
|
|
13442
|
+
|
|
13268
13443
|
/**
|
|
13269
13444
|
* Fetches a single Workspace.
|
|
13270
13445
|
* @example
|
|
@@ -16246,6 +16421,20 @@ export namespace dataform_v1beta1 {
|
|
|
16246
16421
|
*/
|
|
16247
16422
|
remoteBranch?: string;
|
|
16248
16423
|
}
|
|
16424
|
+
export interface Params$Resource$Projects$Locations$Repositories$Workspaces$Fetchhistory extends StandardParameters {
|
|
16425
|
+
/**
|
|
16426
|
+
* Required. The workspace's name.
|
|
16427
|
+
*/
|
|
16428
|
+
name?: string;
|
|
16429
|
+
/**
|
|
16430
|
+
* Optional. Maximum number of commits to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.
|
|
16431
|
+
*/
|
|
16432
|
+
pageSize?: number;
|
|
16433
|
+
/**
|
|
16434
|
+
* Optional. Page token received from a previous `FetchWorkspaceHistory` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `FetchWorkspaceHistory`, with the exception of `page_size`, must match the call that provided the page token.
|
|
16435
|
+
*/
|
|
16436
|
+
pageToken?: string;
|
|
16437
|
+
}
|
|
16249
16438
|
export interface Params$Resource$Projects$Locations$Repositories$Workspaces$Get extends StandardParameters {
|
|
16250
16439
|
/**
|
|
16251
16440
|
* Required. The workspace's name.
|