@googleapis/dataform 15.0.0 → 16.0.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 +11 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +9 -5
- package/build/v1.js.map +1 -1
- package/build/v1beta1.d.ts +103 -5
- package/build/v1beta1.js +33 -0
- package/build/v1beta1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +9 -5
- package/v1beta1.ts +182 -5
package/v1beta1.ts
CHANGED
|
@@ -637,6 +637,15 @@ export namespace dataform_v1beta1 {
|
|
|
637
637
|
*/
|
|
638
638
|
force?: boolean | null;
|
|
639
639
|
}
|
|
640
|
+
/**
|
|
641
|
+
* `DeleteRepositoryLongRunning` request message.
|
|
642
|
+
*/
|
|
643
|
+
export interface Schema$DeleteRepositoryLongRunningRequest {
|
|
644
|
+
/**
|
|
645
|
+
* Optional. If set to true, child resources of this repository (compilation results and workflow invocations) will also be deleted. Otherwise, the request will only succeed if the repository has no child resources. **Note:** *This flag doesn't support deletion of workspaces, release configs or workflow configs. If any of such resources exists in the repository, the request will fail.*
|
|
646
|
+
*/
|
|
647
|
+
force?: boolean | null;
|
|
648
|
+
}
|
|
640
649
|
/**
|
|
641
650
|
* `DeleteTeamFolderTree` request message.
|
|
642
651
|
*/
|
|
@@ -651,11 +660,11 @@ export namespace dataform_v1beta1 {
|
|
|
651
660
|
*/
|
|
652
661
|
export interface Schema$DirectoryEntry {
|
|
653
662
|
/**
|
|
654
|
-
* A child directory in the directory.
|
|
663
|
+
* A child directory in the directory. The path is returned including the full folder structure from the root.
|
|
655
664
|
*/
|
|
656
665
|
directory?: string | null;
|
|
657
666
|
/**
|
|
658
|
-
* A file in the directory.
|
|
667
|
+
* A file in the directory. The path is returned including the full folder structure from the root.
|
|
659
668
|
*/
|
|
660
669
|
file?: string | null;
|
|
661
670
|
/**
|
|
@@ -857,9 +866,13 @@ export namespace dataform_v1beta1 {
|
|
|
857
866
|
*/
|
|
858
867
|
authenticationTokenSecretVersion?: string | null;
|
|
859
868
|
/**
|
|
860
|
-
*
|
|
869
|
+
* Optional. The Git remote's default branch name. If not set `main` will be used.
|
|
861
870
|
*/
|
|
862
871
|
defaultBranch?: string | null;
|
|
872
|
+
/**
|
|
873
|
+
* Output only. The Git remote's effective default branch name. This is the default branch name of the Git remote if it is set, otherwise it is `main`.
|
|
874
|
+
*/
|
|
875
|
+
effectiveDefaultBranch?: string | null;
|
|
863
876
|
/**
|
|
864
877
|
* Optional. Authentication fields for remote uris using SSH protocol.
|
|
865
878
|
*/
|
|
@@ -5973,6 +5986,159 @@ export namespace dataform_v1beta1 {
|
|
|
5973
5986
|
}
|
|
5974
5987
|
}
|
|
5975
5988
|
|
|
5989
|
+
/**
|
|
5990
|
+
* Deletes a single Repository asynchronously.
|
|
5991
|
+
* @example
|
|
5992
|
+
* ```js
|
|
5993
|
+
* // Before running the sample:
|
|
5994
|
+
* // - Enable the API at:
|
|
5995
|
+
* // https://console.developers.google.com/apis/api/dataform.googleapis.com
|
|
5996
|
+
* // - Login into gcloud by running:
|
|
5997
|
+
* // ```sh
|
|
5998
|
+
* // $ gcloud auth application-default login
|
|
5999
|
+
* // ```
|
|
6000
|
+
* // - Install the npm module by running:
|
|
6001
|
+
* // ```sh
|
|
6002
|
+
* // $ npm install googleapis
|
|
6003
|
+
* // ```
|
|
6004
|
+
*
|
|
6005
|
+
* const {google} = require('googleapis');
|
|
6006
|
+
* const dataform = google.dataform('v1beta1');
|
|
6007
|
+
*
|
|
6008
|
+
* async function main() {
|
|
6009
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6010
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6011
|
+
* scopes: [
|
|
6012
|
+
* 'https://www.googleapis.com/auth/bigquery',
|
|
6013
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
6014
|
+
* ],
|
|
6015
|
+
* });
|
|
6016
|
+
*
|
|
6017
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6018
|
+
* const authClient = await auth.getClient();
|
|
6019
|
+
* google.options({auth: authClient});
|
|
6020
|
+
*
|
|
6021
|
+
* // Do the magic
|
|
6022
|
+
* const res = await dataform.projects.locations.repositories.deleteLongRunning({
|
|
6023
|
+
* // Required. The repository's name.
|
|
6024
|
+
* name: 'projects/my-project/locations/my-location/repositories/my-repositorie',
|
|
6025
|
+
*
|
|
6026
|
+
* // Request body metadata
|
|
6027
|
+
* requestBody: {
|
|
6028
|
+
* // request body parameters
|
|
6029
|
+
* // {
|
|
6030
|
+
* // "force": false
|
|
6031
|
+
* // }
|
|
6032
|
+
* },
|
|
6033
|
+
* });
|
|
6034
|
+
* console.log(res.data);
|
|
6035
|
+
*
|
|
6036
|
+
* // Example response
|
|
6037
|
+
* // {
|
|
6038
|
+
* // "done": false,
|
|
6039
|
+
* // "error": {},
|
|
6040
|
+
* // "metadata": {},
|
|
6041
|
+
* // "name": "my_name",
|
|
6042
|
+
* // "response": {}
|
|
6043
|
+
* // }
|
|
6044
|
+
* }
|
|
6045
|
+
*
|
|
6046
|
+
* main().catch(e => {
|
|
6047
|
+
* console.error(e);
|
|
6048
|
+
* throw e;
|
|
6049
|
+
* });
|
|
6050
|
+
*
|
|
6051
|
+
* ```
|
|
6052
|
+
*
|
|
6053
|
+
* @param params - Parameters for request
|
|
6054
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6055
|
+
* @param callback - Optional callback that handles the response.
|
|
6056
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6057
|
+
*/
|
|
6058
|
+
deleteLongRunning(
|
|
6059
|
+
params: Params$Resource$Projects$Locations$Repositories$Deletelongrunning,
|
|
6060
|
+
options: StreamMethodOptions
|
|
6061
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6062
|
+
deleteLongRunning(
|
|
6063
|
+
params?: Params$Resource$Projects$Locations$Repositories$Deletelongrunning,
|
|
6064
|
+
options?: MethodOptions
|
|
6065
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
6066
|
+
deleteLongRunning(
|
|
6067
|
+
params: Params$Resource$Projects$Locations$Repositories$Deletelongrunning,
|
|
6068
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
6069
|
+
callback: BodyResponseCallback<Readable>
|
|
6070
|
+
): void;
|
|
6071
|
+
deleteLongRunning(
|
|
6072
|
+
params: Params$Resource$Projects$Locations$Repositories$Deletelongrunning,
|
|
6073
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
6074
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
6075
|
+
): void;
|
|
6076
|
+
deleteLongRunning(
|
|
6077
|
+
params: Params$Resource$Projects$Locations$Repositories$Deletelongrunning,
|
|
6078
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
6079
|
+
): void;
|
|
6080
|
+
deleteLongRunning(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6081
|
+
deleteLongRunning(
|
|
6082
|
+
paramsOrCallback?:
|
|
6083
|
+
| Params$Resource$Projects$Locations$Repositories$Deletelongrunning
|
|
6084
|
+
| BodyResponseCallback<Schema$Operation>
|
|
6085
|
+
| BodyResponseCallback<Readable>,
|
|
6086
|
+
optionsOrCallback?:
|
|
6087
|
+
| MethodOptions
|
|
6088
|
+
| StreamMethodOptions
|
|
6089
|
+
| BodyResponseCallback<Schema$Operation>
|
|
6090
|
+
| BodyResponseCallback<Readable>,
|
|
6091
|
+
callback?:
|
|
6092
|
+
| BodyResponseCallback<Schema$Operation>
|
|
6093
|
+
| BodyResponseCallback<Readable>
|
|
6094
|
+
):
|
|
6095
|
+
| void
|
|
6096
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
6097
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
6098
|
+
let params = (paramsOrCallback ||
|
|
6099
|
+
{}) as Params$Resource$Projects$Locations$Repositories$Deletelongrunning;
|
|
6100
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
6101
|
+
|
|
6102
|
+
if (typeof paramsOrCallback === 'function') {
|
|
6103
|
+
callback = paramsOrCallback;
|
|
6104
|
+
params =
|
|
6105
|
+
{} as Params$Resource$Projects$Locations$Repositories$Deletelongrunning;
|
|
6106
|
+
options = {};
|
|
6107
|
+
}
|
|
6108
|
+
|
|
6109
|
+
if (typeof optionsOrCallback === 'function') {
|
|
6110
|
+
callback = optionsOrCallback;
|
|
6111
|
+
options = {};
|
|
6112
|
+
}
|
|
6113
|
+
|
|
6114
|
+
const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/';
|
|
6115
|
+
const parameters = {
|
|
6116
|
+
options: Object.assign(
|
|
6117
|
+
{
|
|
6118
|
+
url: (rootUrl + '/v1beta1/{+name}:deleteLongRunning').replace(
|
|
6119
|
+
/([^:]\/)\/+/g,
|
|
6120
|
+
'$1'
|
|
6121
|
+
),
|
|
6122
|
+
method: 'POST',
|
|
6123
|
+
apiVersion: '',
|
|
6124
|
+
},
|
|
6125
|
+
options
|
|
6126
|
+
),
|
|
6127
|
+
params,
|
|
6128
|
+
requiredParams: ['name'],
|
|
6129
|
+
pathParams: ['name'],
|
|
6130
|
+
context: this.context,
|
|
6131
|
+
};
|
|
6132
|
+
if (callback) {
|
|
6133
|
+
createAPIRequest<Schema$Operation>(
|
|
6134
|
+
parameters,
|
|
6135
|
+
callback as BodyResponseCallback<unknown>
|
|
6136
|
+
);
|
|
6137
|
+
} else {
|
|
6138
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
6139
|
+
}
|
|
6140
|
+
}
|
|
6141
|
+
|
|
5976
6142
|
/**
|
|
5977
6143
|
* Fetches a Repository's history of commits. The Repository must not have a value for `git_remote_settings.url`.
|
|
5978
6144
|
* @example
|
|
@@ -7704,6 +7870,17 @@ export namespace dataform_v1beta1 {
|
|
|
7704
7870
|
*/
|
|
7705
7871
|
name?: string;
|
|
7706
7872
|
}
|
|
7873
|
+
export interface Params$Resource$Projects$Locations$Repositories$Deletelongrunning extends StandardParameters {
|
|
7874
|
+
/**
|
|
7875
|
+
* Required. The repository's name.
|
|
7876
|
+
*/
|
|
7877
|
+
name?: string;
|
|
7878
|
+
|
|
7879
|
+
/**
|
|
7880
|
+
* Request body metadata
|
|
7881
|
+
*/
|
|
7882
|
+
requestBody?: Schema$DeleteRepositoryLongRunningRequest;
|
|
7883
|
+
}
|
|
7707
7884
|
export interface Params$Resource$Projects$Locations$Repositories$Fetchhistory extends StandardParameters {
|
|
7708
7885
|
/**
|
|
7709
7886
|
* Required. The repository's name.
|
|
@@ -16249,7 +16426,7 @@ export namespace dataform_v1beta1 {
|
|
|
16249
16426
|
* location: 'projects/my-project/locations/my-location',
|
|
16250
16427
|
* // Optional. Field to additionally sort results by. Supported keywords: `display_name` (default), `create_time`, `last_modified_time`. Examples: * `orderBy="display_name"` * `orderBy="display_name desc"`
|
|
16251
16428
|
* orderBy: 'placeholder-value',
|
|
16252
|
-
* // Optional. Maximum number of TeamFolders to return. The server may return fewer items than requested. If unspecified, the server will pick
|
|
16429
|
+
* // Optional. Maximum number of TeamFolders to return. The server may return fewer items than requested. If unspecified, the server will pick a default of page_size = 50.
|
|
16253
16430
|
* pageSize: 'placeholder-value',
|
|
16254
16431
|
* // Optional. Page token received from a previous `SearchTeamFolders` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `SearchTeamFolders`, with the exception of `page_size`, must match the call that provided the page token.
|
|
16255
16432
|
* pageToken: 'placeholder-value',
|
|
@@ -16768,7 +16945,7 @@ export namespace dataform_v1beta1 {
|
|
|
16768
16945
|
*/
|
|
16769
16946
|
orderBy?: string;
|
|
16770
16947
|
/**
|
|
16771
|
-
* Optional. Maximum number of TeamFolders to return. The server may return fewer items than requested. If unspecified, the server will pick
|
|
16948
|
+
* Optional. Maximum number of TeamFolders to return. The server may return fewer items than requested. If unspecified, the server will pick a default of page_size = 50.
|
|
16772
16949
|
*/
|
|
16773
16950
|
pageSize?: number;
|
|
16774
16951
|
/**
|