@maxim_mazurok/gapi.client.dataform-v1beta1 0.0.20230218 → 0.0.20230304
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/index.d.ts +507 -1
- package/package.json +1 -1
- package/tests.ts +146 -1
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://dataform.googleapis.com/$discovery/rest?version=v1beta1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230304
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -40,6 +40,33 @@ declare namespace gapi.client {
|
|
|
40
40
|
/** Output only. The generated BigQuery SQL script that will be executed. */
|
|
41
41
|
sqlScript?: string;
|
|
42
42
|
}
|
|
43
|
+
interface Binding {
|
|
44
|
+
/**
|
|
45
|
+
* The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`,
|
|
46
|
+
* then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which
|
|
47
|
+
* resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
48
|
+
*/
|
|
49
|
+
condition?: Expr;
|
|
50
|
+
/**
|
|
51
|
+
* Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on
|
|
52
|
+
* the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service
|
|
53
|
+
* account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific
|
|
54
|
+
* Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example,
|
|
55
|
+
* `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service
|
|
56
|
+
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. *
|
|
57
|
+
* `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the
|
|
58
|
+
* users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has
|
|
59
|
+
* been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains
|
|
60
|
+
* the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently
|
|
61
|
+
* deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and
|
|
62
|
+
* the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that
|
|
63
|
+
* has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group
|
|
64
|
+
* retains the role in the binding.
|
|
65
|
+
*/
|
|
66
|
+
members?: string[];
|
|
67
|
+
/** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
|
|
68
|
+
role?: string;
|
|
69
|
+
}
|
|
43
70
|
// tslint:disable-next-line:no-empty-interface
|
|
44
71
|
interface CancelWorkflowInvocationRequest {
|
|
45
72
|
}
|
|
@@ -75,6 +102,28 @@ declare namespace gapi.client {
|
|
|
75
102
|
/** Required. The commit author's name. */
|
|
76
103
|
name?: string;
|
|
77
104
|
}
|
|
105
|
+
interface CommitLogEntry {
|
|
106
|
+
/** The commit author for this commit log entry. */
|
|
107
|
+
author?: CommitAuthor;
|
|
108
|
+
/** The commit message for this commit log entry. */
|
|
109
|
+
commitMessage?: string;
|
|
110
|
+
/** The commit SHA for this commit log entry. */
|
|
111
|
+
commitSha?: string;
|
|
112
|
+
/** Commit timestamp. */
|
|
113
|
+
commitTime?: string;
|
|
114
|
+
}
|
|
115
|
+
interface CommitMetadata {
|
|
116
|
+
/** Required. The commit's author. */
|
|
117
|
+
author?: CommitAuthor;
|
|
118
|
+
/** Optional. The commit's message. */
|
|
119
|
+
commitMessage?: string;
|
|
120
|
+
}
|
|
121
|
+
interface CommitRepositoryChangesRequest {
|
|
122
|
+
/** Required. The changes to commit to the repository. */
|
|
123
|
+
commitMetadata?: CommitMetadata;
|
|
124
|
+
/** A map to the path of the file to the operation. The path is the ull file path including filename, from repository root. */
|
|
125
|
+
fileOperations?: { [P in string]: FileOperation };
|
|
126
|
+
}
|
|
78
127
|
interface CommitWorkspaceChangesRequest {
|
|
79
128
|
/** Required. The commit's author. */
|
|
80
129
|
author?: CommitAuthor;
|
|
@@ -137,6 +186,9 @@ declare namespace gapi.client {
|
|
|
137
186
|
/** Descriptor for the relation and its columns. Used as documentation only, i.e. values here will result in no changes to the relation's metadata. */
|
|
138
187
|
relationDescriptor?: RelationDescriptor;
|
|
139
188
|
}
|
|
189
|
+
// tslint:disable-next-line:no-empty-interface
|
|
190
|
+
interface DeleteFile {
|
|
191
|
+
}
|
|
140
192
|
interface DirectoryEntry {
|
|
141
193
|
/** A child directory in the directory. */
|
|
142
194
|
directory?: string;
|
|
@@ -146,6 +198,16 @@ declare namespace gapi.client {
|
|
|
146
198
|
// tslint:disable-next-line:no-empty-interface
|
|
147
199
|
interface Empty {
|
|
148
200
|
}
|
|
201
|
+
interface Expr {
|
|
202
|
+
/** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
|
|
203
|
+
description?: string;
|
|
204
|
+
/** Textual representation of an expression in Common Expression Language syntax. */
|
|
205
|
+
expression?: string;
|
|
206
|
+
/** Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */
|
|
207
|
+
location?: string;
|
|
208
|
+
/** Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. */
|
|
209
|
+
title?: string;
|
|
210
|
+
}
|
|
149
211
|
interface FetchFileDiffResponse {
|
|
150
212
|
/** The raw formatted Git diff for the file. */
|
|
151
213
|
formattedDiff?: string;
|
|
@@ -164,6 +226,18 @@ declare namespace gapi.client {
|
|
|
164
226
|
/** The remote repository's branch names. */
|
|
165
227
|
branches?: string[];
|
|
166
228
|
}
|
|
229
|
+
interface FetchRepositoryHistoryResponse {
|
|
230
|
+
/** A list of commit logs, ordered by 'git log' default order. */
|
|
231
|
+
commits?: CommitLogEntry[];
|
|
232
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
233
|
+
nextPageToken?: string;
|
|
234
|
+
}
|
|
235
|
+
interface FileOperation {
|
|
236
|
+
/** Represents the delete operation. */
|
|
237
|
+
deleteFile?: any;
|
|
238
|
+
/** Represents the write operation. */
|
|
239
|
+
writeFile?: WriteFile;
|
|
240
|
+
}
|
|
167
241
|
interface GitRemoteSettings {
|
|
168
242
|
/** Required. The name of the Secret Manager secret version to use as an authentication token for Git operations. Must be in the format `projects/*/secrets/*/versions/*`. */
|
|
169
243
|
authenticationTokenSecretVersion?: string;
|
|
@@ -339,6 +413,32 @@ declare namespace gapi.client {
|
|
|
339
413
|
/** Arbitrary, user-defined tags on this action. */
|
|
340
414
|
tags?: string[];
|
|
341
415
|
}
|
|
416
|
+
interface Policy {
|
|
417
|
+
/**
|
|
418
|
+
* Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings`
|
|
419
|
+
* must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a
|
|
420
|
+
* principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another
|
|
421
|
+
* 1,450 principals to the `bindings` in the `Policy`.
|
|
422
|
+
*/
|
|
423
|
+
bindings?: Binding[];
|
|
424
|
+
/**
|
|
425
|
+
* `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make
|
|
426
|
+
* use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems
|
|
427
|
+
* are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM
|
|
428
|
+
* Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1`
|
|
429
|
+
* policy, and all of the conditions in the version `3` policy are lost.
|
|
430
|
+
*/
|
|
431
|
+
etag?: string;
|
|
432
|
+
/**
|
|
433
|
+
* Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings
|
|
434
|
+
* must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a
|
|
435
|
+
* policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use
|
|
436
|
+
* IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1`
|
|
437
|
+
* policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave
|
|
438
|
+
* the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
439
|
+
*/
|
|
440
|
+
version?: number;
|
|
441
|
+
}
|
|
342
442
|
interface PullGitCommitsRequest {
|
|
343
443
|
/** Required. The author of any merge commit which may be created as a result of merging fetched Git commits into this workspace. */
|
|
344
444
|
author?: CommitAuthor;
|
|
@@ -361,6 +461,12 @@ declare namespace gapi.client {
|
|
|
361
461
|
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
362
462
|
nextPageToken?: string;
|
|
363
463
|
}
|
|
464
|
+
interface QueryRepositoryDirectoryContentsResponse {
|
|
465
|
+
/** List of entries in the directory. */
|
|
466
|
+
directoryEntries?: DirectoryEntry[];
|
|
467
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
468
|
+
nextPageToken?: string;
|
|
469
|
+
}
|
|
364
470
|
interface QueryWorkflowInvocationActionsResponse {
|
|
365
471
|
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
366
472
|
nextPageToken?: string;
|
|
@@ -371,6 +477,10 @@ declare namespace gapi.client {
|
|
|
371
477
|
/** The file's contents. */
|
|
372
478
|
fileContents?: string;
|
|
373
479
|
}
|
|
480
|
+
interface ReadRepositoryFileResponse {
|
|
481
|
+
/** The file's contents. */
|
|
482
|
+
contents?: string;
|
|
483
|
+
}
|
|
374
484
|
interface Relation {
|
|
375
485
|
/**
|
|
376
486
|
* Additional options that will be provided as key/value pairs into the options clause of a create table/view statement. See
|
|
@@ -449,6 +559,15 @@ declare namespace gapi.client {
|
|
|
449
559
|
interface Repository {
|
|
450
560
|
/** Optional. If set, configures this repository to be linked to a Git remote. */
|
|
451
561
|
gitRemoteSettings?: GitRemoteSettings;
|
|
562
|
+
/**
|
|
563
|
+
* Optional. Input only. The initial commit file contents. Represented as map from file path to contents. The path is the full file path to commit including filename, from repository
|
|
564
|
+
* root.
|
|
565
|
+
*/
|
|
566
|
+
initialCommitFileContents?: { [P in string]: string };
|
|
567
|
+
/** Optional. Input only. An optional initial commit metadata for the Repository. The Repository must not have a value for `git_remote_settings.url`. */
|
|
568
|
+
initialCommitMetadata?: CommitMetadata;
|
|
569
|
+
/** Optional. Repository user labels. */
|
|
570
|
+
labels?: { [P in string]: string };
|
|
452
571
|
/** Output only. The repository's name. */
|
|
453
572
|
name?: string;
|
|
454
573
|
/**
|
|
@@ -484,6 +603,13 @@ declare namespace gapi.client {
|
|
|
484
603
|
/** The timestamp of this release attempt. */
|
|
485
604
|
releaseTime?: string;
|
|
486
605
|
}
|
|
606
|
+
interface SetIamPolicyRequest {
|
|
607
|
+
/**
|
|
608
|
+
* REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud
|
|
609
|
+
* services (such as Projects) might reject them.
|
|
610
|
+
*/
|
|
611
|
+
policy?: Policy;
|
|
612
|
+
}
|
|
487
613
|
interface Status {
|
|
488
614
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
489
615
|
code?: number;
|
|
@@ -503,6 +629,17 @@ declare namespace gapi.client {
|
|
|
503
629
|
/** The action's schema (BigQuery dataset ID), within `database`. */
|
|
504
630
|
schema?: string;
|
|
505
631
|
}
|
|
632
|
+
interface TestIamPermissionsRequest {
|
|
633
|
+
/**
|
|
634
|
+
* The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM
|
|
635
|
+
* Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
636
|
+
*/
|
|
637
|
+
permissions?: string[];
|
|
638
|
+
}
|
|
639
|
+
interface TestIamPermissionsResponse {
|
|
640
|
+
/** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
|
|
641
|
+
permissions?: string[];
|
|
642
|
+
}
|
|
506
643
|
interface UncommittedFileChange {
|
|
507
644
|
/** The file's full path including filename, relative to the workspace root. */
|
|
508
645
|
path?: string;
|
|
@@ -569,6 +706,10 @@ declare namespace gapi.client {
|
|
|
569
706
|
/** Optional. The prefix that should be prepended to all table names. */
|
|
570
707
|
tablePrefix?: string;
|
|
571
708
|
}
|
|
709
|
+
interface WriteFile {
|
|
710
|
+
/** The file's contents. */
|
|
711
|
+
contents?: string;
|
|
712
|
+
}
|
|
572
713
|
interface WriteFileRequest {
|
|
573
714
|
/** Required. The file's contents. */
|
|
574
715
|
contents?: string;
|
|
@@ -1649,6 +1790,44 @@ declare namespace gapi.client {
|
|
|
1649
1790
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1650
1791
|
uploadType?: string;
|
|
1651
1792
|
}): Request<Workspace>;
|
|
1793
|
+
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
1794
|
+
getIamPolicy(request?: {
|
|
1795
|
+
/** V1 error format. */
|
|
1796
|
+
"$.xgafv"?: string;
|
|
1797
|
+
/** OAuth access token. */
|
|
1798
|
+
access_token?: string;
|
|
1799
|
+
/** Data format for response. */
|
|
1800
|
+
alt?: string;
|
|
1801
|
+
/** JSONP */
|
|
1802
|
+
callback?: string;
|
|
1803
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1804
|
+
fields?: string;
|
|
1805
|
+
/** 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. */
|
|
1806
|
+
key?: string;
|
|
1807
|
+
/** OAuth 2.0 token for the current user. */
|
|
1808
|
+
oauth_token?: string;
|
|
1809
|
+
/**
|
|
1810
|
+
* Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for
|
|
1811
|
+
* policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy
|
|
1812
|
+
* in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional
|
|
1813
|
+
* role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
|
|
1814
|
+
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
1815
|
+
*/
|
|
1816
|
+
"options.requestedPolicyVersion"?: number;
|
|
1817
|
+
/** Returns response with indentations and line breaks. */
|
|
1818
|
+
prettyPrint?: boolean;
|
|
1819
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1820
|
+
quotaUser?: string;
|
|
1821
|
+
/**
|
|
1822
|
+
* REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
|
|
1823
|
+
* field.
|
|
1824
|
+
*/
|
|
1825
|
+
resource: string;
|
|
1826
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1827
|
+
upload_protocol?: string;
|
|
1828
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1829
|
+
uploadType?: string;
|
|
1830
|
+
}): Request<Policy>;
|
|
1652
1831
|
/** Installs dependency NPM packages (inside a Workspace). */
|
|
1653
1832
|
installNpmPackages(request: {
|
|
1654
1833
|
/** V1 error format. */
|
|
@@ -2256,6 +2435,71 @@ declare namespace gapi.client {
|
|
|
2256
2435
|
uploadType?: string;
|
|
2257
2436
|
},
|
|
2258
2437
|
body: ResetWorkspaceChangesRequest): Request<{}>;
|
|
2438
|
+
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
2439
|
+
setIamPolicy(request: {
|
|
2440
|
+
/** V1 error format. */
|
|
2441
|
+
"$.xgafv"?: string;
|
|
2442
|
+
/** OAuth access token. */
|
|
2443
|
+
access_token?: string;
|
|
2444
|
+
/** Data format for response. */
|
|
2445
|
+
alt?: string;
|
|
2446
|
+
/** JSONP */
|
|
2447
|
+
callback?: string;
|
|
2448
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2449
|
+
fields?: string;
|
|
2450
|
+
/** 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. */
|
|
2451
|
+
key?: string;
|
|
2452
|
+
/** OAuth 2.0 token for the current user. */
|
|
2453
|
+
oauth_token?: string;
|
|
2454
|
+
/** Returns response with indentations and line breaks. */
|
|
2455
|
+
prettyPrint?: boolean;
|
|
2456
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2457
|
+
quotaUser?: string;
|
|
2458
|
+
/**
|
|
2459
|
+
* 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
|
|
2460
|
+
* field.
|
|
2461
|
+
*/
|
|
2462
|
+
resource: string;
|
|
2463
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2464
|
+
upload_protocol?: string;
|
|
2465
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2466
|
+
uploadType?: string;
|
|
2467
|
+
},
|
|
2468
|
+
body: SetIamPolicyRequest): Request<Policy>;
|
|
2469
|
+
/**
|
|
2470
|
+
* 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
|
|
2471
|
+
* 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.
|
|
2472
|
+
*/
|
|
2473
|
+
testIamPermissions(request: {
|
|
2474
|
+
/** V1 error format. */
|
|
2475
|
+
"$.xgafv"?: string;
|
|
2476
|
+
/** OAuth access token. */
|
|
2477
|
+
access_token?: string;
|
|
2478
|
+
/** Data format for response. */
|
|
2479
|
+
alt?: string;
|
|
2480
|
+
/** JSONP */
|
|
2481
|
+
callback?: string;
|
|
2482
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2483
|
+
fields?: string;
|
|
2484
|
+
/** 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. */
|
|
2485
|
+
key?: string;
|
|
2486
|
+
/** OAuth 2.0 token for the current user. */
|
|
2487
|
+
oauth_token?: string;
|
|
2488
|
+
/** Returns response with indentations and line breaks. */
|
|
2489
|
+
prettyPrint?: boolean;
|
|
2490
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2491
|
+
quotaUser?: string;
|
|
2492
|
+
/**
|
|
2493
|
+
* REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
|
|
2494
|
+
* this field.
|
|
2495
|
+
*/
|
|
2496
|
+
resource: string;
|
|
2497
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2498
|
+
upload_protocol?: string;
|
|
2499
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2500
|
+
uploadType?: string;
|
|
2501
|
+
},
|
|
2502
|
+
body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
|
|
2259
2503
|
/** Writes to a file (inside a Workspace). */
|
|
2260
2504
|
writeFile(request: {
|
|
2261
2505
|
/** V1 error format. */
|
|
@@ -2314,6 +2558,62 @@ declare namespace gapi.client {
|
|
|
2314
2558
|
body: WriteFileRequest): Request<{}>;
|
|
2315
2559
|
}
|
|
2316
2560
|
interface RepositoriesResource {
|
|
2561
|
+
/** Applies a Git commit to a Repository. The Repository must not have a value for `git_remote_settings.url`. */
|
|
2562
|
+
commit(request: {
|
|
2563
|
+
/** V1 error format. */
|
|
2564
|
+
"$.xgafv"?: string;
|
|
2565
|
+
/** OAuth access token. */
|
|
2566
|
+
access_token?: string;
|
|
2567
|
+
/** Data format for response. */
|
|
2568
|
+
alt?: string;
|
|
2569
|
+
/** JSONP */
|
|
2570
|
+
callback?: string;
|
|
2571
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2572
|
+
fields?: string;
|
|
2573
|
+
/** 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. */
|
|
2574
|
+
key?: string;
|
|
2575
|
+
/** Required. The repository's name. */
|
|
2576
|
+
name: string;
|
|
2577
|
+
/** OAuth 2.0 token for the current user. */
|
|
2578
|
+
oauth_token?: string;
|
|
2579
|
+
/** Returns response with indentations and line breaks. */
|
|
2580
|
+
prettyPrint?: boolean;
|
|
2581
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2582
|
+
quotaUser?: string;
|
|
2583
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2584
|
+
upload_protocol?: string;
|
|
2585
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2586
|
+
uploadType?: string;
|
|
2587
|
+
/** Request body */
|
|
2588
|
+
resource: CommitRepositoryChangesRequest;
|
|
2589
|
+
}): Request<{}>;
|
|
2590
|
+
commit(request: {
|
|
2591
|
+
/** V1 error format. */
|
|
2592
|
+
"$.xgafv"?: string;
|
|
2593
|
+
/** OAuth access token. */
|
|
2594
|
+
access_token?: string;
|
|
2595
|
+
/** Data format for response. */
|
|
2596
|
+
alt?: string;
|
|
2597
|
+
/** JSONP */
|
|
2598
|
+
callback?: string;
|
|
2599
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2600
|
+
fields?: string;
|
|
2601
|
+
/** 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. */
|
|
2602
|
+
key?: string;
|
|
2603
|
+
/** Required. The repository's name. */
|
|
2604
|
+
name: string;
|
|
2605
|
+
/** OAuth 2.0 token for the current user. */
|
|
2606
|
+
oauth_token?: string;
|
|
2607
|
+
/** Returns response with indentations and line breaks. */
|
|
2608
|
+
prettyPrint?: boolean;
|
|
2609
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2610
|
+
quotaUser?: string;
|
|
2611
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2612
|
+
upload_protocol?: string;
|
|
2613
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2614
|
+
uploadType?: string;
|
|
2615
|
+
},
|
|
2616
|
+
body: CommitRepositoryChangesRequest): Request<{}>;
|
|
2317
2617
|
/** Creates a new Repository in a given project and location. */
|
|
2318
2618
|
create(request: {
|
|
2319
2619
|
/** V1 error format. */
|
|
@@ -2403,6 +2703,40 @@ declare namespace gapi.client {
|
|
|
2403
2703
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2404
2704
|
uploadType?: string;
|
|
2405
2705
|
}): Request<{}>;
|
|
2706
|
+
/** Fetches a Repository's history of changes. The Repository must not have a value for `git_remote_settings.url`. */
|
|
2707
|
+
fetchHistory(request?: {
|
|
2708
|
+
/** V1 error format. */
|
|
2709
|
+
"$.xgafv"?: string;
|
|
2710
|
+
/** OAuth access token. */
|
|
2711
|
+
access_token?: string;
|
|
2712
|
+
/** Data format for response. */
|
|
2713
|
+
alt?: string;
|
|
2714
|
+
/** JSONP */
|
|
2715
|
+
callback?: string;
|
|
2716
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2717
|
+
fields?: string;
|
|
2718
|
+
/** 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. */
|
|
2719
|
+
key?: string;
|
|
2720
|
+
/** Required. The repository's name. */
|
|
2721
|
+
name: string;
|
|
2722
|
+
/** OAuth 2.0 token for the current user. */
|
|
2723
|
+
oauth_token?: string;
|
|
2724
|
+
/** Optional. Maximum number of paths to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default. */
|
|
2725
|
+
pageSize?: number;
|
|
2726
|
+
/**
|
|
2727
|
+
* Optional. Page token received from a previous `FetchRepositoryHistory` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to
|
|
2728
|
+
* `FetchRepositoryHistory` must match the call that provided the page token.
|
|
2729
|
+
*/
|
|
2730
|
+
pageToken?: string;
|
|
2731
|
+
/** Returns response with indentations and line breaks. */
|
|
2732
|
+
prettyPrint?: boolean;
|
|
2733
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2734
|
+
quotaUser?: string;
|
|
2735
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2736
|
+
upload_protocol?: string;
|
|
2737
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2738
|
+
uploadType?: string;
|
|
2739
|
+
}): Request<FetchRepositoryHistoryResponse>;
|
|
2406
2740
|
/** Fetches a Repository's remote branches. */
|
|
2407
2741
|
fetchRemoteBranches(request?: {
|
|
2408
2742
|
/** V1 error format. */
|
|
@@ -2457,6 +2791,44 @@ declare namespace gapi.client {
|
|
|
2457
2791
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2458
2792
|
uploadType?: string;
|
|
2459
2793
|
}): Request<Repository>;
|
|
2794
|
+
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
2795
|
+
getIamPolicy(request?: {
|
|
2796
|
+
/** V1 error format. */
|
|
2797
|
+
"$.xgafv"?: string;
|
|
2798
|
+
/** OAuth access token. */
|
|
2799
|
+
access_token?: string;
|
|
2800
|
+
/** Data format for response. */
|
|
2801
|
+
alt?: string;
|
|
2802
|
+
/** JSONP */
|
|
2803
|
+
callback?: string;
|
|
2804
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2805
|
+
fields?: string;
|
|
2806
|
+
/** 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. */
|
|
2807
|
+
key?: string;
|
|
2808
|
+
/** OAuth 2.0 token for the current user. */
|
|
2809
|
+
oauth_token?: string;
|
|
2810
|
+
/**
|
|
2811
|
+
* Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for
|
|
2812
|
+
* policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy
|
|
2813
|
+
* in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional
|
|
2814
|
+
* role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
|
|
2815
|
+
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
2816
|
+
*/
|
|
2817
|
+
"options.requestedPolicyVersion"?: number;
|
|
2818
|
+
/** Returns response with indentations and line breaks. */
|
|
2819
|
+
prettyPrint?: boolean;
|
|
2820
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2821
|
+
quotaUser?: string;
|
|
2822
|
+
/**
|
|
2823
|
+
* REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
|
|
2824
|
+
* field.
|
|
2825
|
+
*/
|
|
2826
|
+
resource: string;
|
|
2827
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2828
|
+
upload_protocol?: string;
|
|
2829
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2830
|
+
uploadType?: string;
|
|
2831
|
+
}): Request<Policy>;
|
|
2460
2832
|
/** Lists Repositories in a given project and location. */
|
|
2461
2833
|
list(request?: {
|
|
2462
2834
|
/** V1 error format. */
|
|
@@ -2555,6 +2927,140 @@ declare namespace gapi.client {
|
|
|
2555
2927
|
uploadType?: string;
|
|
2556
2928
|
},
|
|
2557
2929
|
body: Repository): Request<Repository>;
|
|
2930
|
+
/** Returns the contents of a given Repository directory. The Repository must not have a value for `git_remote_settings.url`. */
|
|
2931
|
+
queryDirectoryContents(request?: {
|
|
2932
|
+
/** V1 error format. */
|
|
2933
|
+
"$.xgafv"?: string;
|
|
2934
|
+
/** OAuth access token. */
|
|
2935
|
+
access_token?: string;
|
|
2936
|
+
/** Data format for response. */
|
|
2937
|
+
alt?: string;
|
|
2938
|
+
/** JSONP */
|
|
2939
|
+
callback?: string;
|
|
2940
|
+
/** Optional. The Commit SHA for the commit to query from. If unset, the directory will be queried from HEAD. */
|
|
2941
|
+
commitSha?: string;
|
|
2942
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2943
|
+
fields?: string;
|
|
2944
|
+
/** 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. */
|
|
2945
|
+
key?: string;
|
|
2946
|
+
/** Required. The repository's name. */
|
|
2947
|
+
name: string;
|
|
2948
|
+
/** OAuth 2.0 token for the current user. */
|
|
2949
|
+
oauth_token?: string;
|
|
2950
|
+
/** Optional. Maximum number of paths to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default. */
|
|
2951
|
+
pageSize?: number;
|
|
2952
|
+
/**
|
|
2953
|
+
* Optional. Page token received from a previous `QueryRepositoryDirectoryContents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters
|
|
2954
|
+
* provided to `QueryRepositoryDirectoryContents` must match the call that provided the page token.
|
|
2955
|
+
*/
|
|
2956
|
+
pageToken?: string;
|
|
2957
|
+
/** Optional. The directory's full path including directory name, relative to root. If left unset, the root is used. */
|
|
2958
|
+
path?: string;
|
|
2959
|
+
/** Returns response with indentations and line breaks. */
|
|
2960
|
+
prettyPrint?: boolean;
|
|
2961
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2962
|
+
quotaUser?: string;
|
|
2963
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2964
|
+
upload_protocol?: string;
|
|
2965
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2966
|
+
uploadType?: string;
|
|
2967
|
+
}): Request<QueryRepositoryDirectoryContentsResponse>;
|
|
2968
|
+
/** Returns the contents of a file (inside a Repository). The Repository must not have a value for `git_remote_settings.url`. */
|
|
2969
|
+
readFile(request?: {
|
|
2970
|
+
/** V1 error format. */
|
|
2971
|
+
"$.xgafv"?: string;
|
|
2972
|
+
/** OAuth access token. */
|
|
2973
|
+
access_token?: string;
|
|
2974
|
+
/** Data format for response. */
|
|
2975
|
+
alt?: string;
|
|
2976
|
+
/** JSONP */
|
|
2977
|
+
callback?: string;
|
|
2978
|
+
/** Optional. The commit SHA for the commit to read from. If unset, the file will be read from HEAD. */
|
|
2979
|
+
commitSha?: string;
|
|
2980
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2981
|
+
fields?: string;
|
|
2982
|
+
/** 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. */
|
|
2983
|
+
key?: string;
|
|
2984
|
+
/** Required. The repository's name. */
|
|
2985
|
+
name: string;
|
|
2986
|
+
/** OAuth 2.0 token for the current user. */
|
|
2987
|
+
oauth_token?: string;
|
|
2988
|
+
/** Required. Full file path to read including filename, from repository root. */
|
|
2989
|
+
path?: string;
|
|
2990
|
+
/** Returns response with indentations and line breaks. */
|
|
2991
|
+
prettyPrint?: boolean;
|
|
2992
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2993
|
+
quotaUser?: string;
|
|
2994
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2995
|
+
upload_protocol?: string;
|
|
2996
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2997
|
+
uploadType?: string;
|
|
2998
|
+
}): Request<ReadRepositoryFileResponse>;
|
|
2999
|
+
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
3000
|
+
setIamPolicy(request: {
|
|
3001
|
+
/** V1 error format. */
|
|
3002
|
+
"$.xgafv"?: string;
|
|
3003
|
+
/** OAuth access token. */
|
|
3004
|
+
access_token?: string;
|
|
3005
|
+
/** Data format for response. */
|
|
3006
|
+
alt?: string;
|
|
3007
|
+
/** JSONP */
|
|
3008
|
+
callback?: string;
|
|
3009
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3010
|
+
fields?: string;
|
|
3011
|
+
/** 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. */
|
|
3012
|
+
key?: string;
|
|
3013
|
+
/** OAuth 2.0 token for the current user. */
|
|
3014
|
+
oauth_token?: string;
|
|
3015
|
+
/** Returns response with indentations and line breaks. */
|
|
3016
|
+
prettyPrint?: boolean;
|
|
3017
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
3018
|
+
quotaUser?: string;
|
|
3019
|
+
/**
|
|
3020
|
+
* 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
|
|
3021
|
+
* field.
|
|
3022
|
+
*/
|
|
3023
|
+
resource: string;
|
|
3024
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3025
|
+
upload_protocol?: string;
|
|
3026
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3027
|
+
uploadType?: string;
|
|
3028
|
+
},
|
|
3029
|
+
body: SetIamPolicyRequest): Request<Policy>;
|
|
3030
|
+
/**
|
|
3031
|
+
* 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
|
|
3032
|
+
* 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.
|
|
3033
|
+
*/
|
|
3034
|
+
testIamPermissions(request: {
|
|
3035
|
+
/** V1 error format. */
|
|
3036
|
+
"$.xgafv"?: string;
|
|
3037
|
+
/** OAuth access token. */
|
|
3038
|
+
access_token?: string;
|
|
3039
|
+
/** Data format for response. */
|
|
3040
|
+
alt?: string;
|
|
3041
|
+
/** JSONP */
|
|
3042
|
+
callback?: string;
|
|
3043
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3044
|
+
fields?: string;
|
|
3045
|
+
/** 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. */
|
|
3046
|
+
key?: string;
|
|
3047
|
+
/** OAuth 2.0 token for the current user. */
|
|
3048
|
+
oauth_token?: string;
|
|
3049
|
+
/** Returns response with indentations and line breaks. */
|
|
3050
|
+
prettyPrint?: boolean;
|
|
3051
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
3052
|
+
quotaUser?: string;
|
|
3053
|
+
/**
|
|
3054
|
+
* REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
|
|
3055
|
+
* this field.
|
|
3056
|
+
*/
|
|
3057
|
+
resource: string;
|
|
3058
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3059
|
+
upload_protocol?: string;
|
|
3060
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3061
|
+
uploadType?: string;
|
|
3062
|
+
},
|
|
3063
|
+
body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
|
|
2558
3064
|
compilationResults: CompilationResultsResource;
|
|
2559
3065
|
releaseConfigs: ReleaseConfigsResource;
|
|
2560
3066
|
workflowConfigs: WorkflowConfigsResource;
|
package/package.json
CHANGED
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:
|
|
6
|
+
// Revision: 20230304
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -41,6 +41,27 @@ gapi.load('client', async () => {
|
|
|
41
41
|
pageSize: 42,
|
|
42
42
|
pageToken: "Test string",
|
|
43
43
|
});
|
|
44
|
+
/** Applies a Git commit to a Repository. The Repository must not have a value for `git_remote_settings.url`. */
|
|
45
|
+
await gapi.client.dataform.projects.locations.repositories.commit({
|
|
46
|
+
name: "Test string",
|
|
47
|
+
}, {
|
|
48
|
+
commitMetadata: {
|
|
49
|
+
author: {
|
|
50
|
+
emailAddress: "Test string",
|
|
51
|
+
name: "Test string",
|
|
52
|
+
},
|
|
53
|
+
commitMessage: "Test string",
|
|
54
|
+
},
|
|
55
|
+
fileOperations: {
|
|
56
|
+
A: {
|
|
57
|
+
deleteFile: {
|
|
58
|
+
},
|
|
59
|
+
writeFile: {
|
|
60
|
+
contents: "Test string",
|
|
61
|
+
},
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
});
|
|
44
65
|
/** Creates a new Repository in a given project and location. */
|
|
45
66
|
await gapi.client.dataform.projects.locations.repositories.create({
|
|
46
67
|
parent: "Test string",
|
|
@@ -52,6 +73,19 @@ gapi.load('client', async () => {
|
|
|
52
73
|
tokenStatus: "Test string",
|
|
53
74
|
url: "Test string",
|
|
54
75
|
},
|
|
76
|
+
initialCommitFileContents: {
|
|
77
|
+
A: "Test string"
|
|
78
|
+
},
|
|
79
|
+
initialCommitMetadata: {
|
|
80
|
+
author: {
|
|
81
|
+
emailAddress: "Test string",
|
|
82
|
+
name: "Test string",
|
|
83
|
+
},
|
|
84
|
+
commitMessage: "Test string",
|
|
85
|
+
},
|
|
86
|
+
labels: {
|
|
87
|
+
A: "Test string"
|
|
88
|
+
},
|
|
55
89
|
name: "Test string",
|
|
56
90
|
npmrcEnvironmentVariablesSecretVersion: "Test string",
|
|
57
91
|
workspaceCompilationOverrides: {
|
|
@@ -65,6 +99,12 @@ gapi.load('client', async () => {
|
|
|
65
99
|
force: true,
|
|
66
100
|
name: "Test string",
|
|
67
101
|
});
|
|
102
|
+
/** Fetches a Repository's history of changes. The Repository must not have a value for `git_remote_settings.url`. */
|
|
103
|
+
await gapi.client.dataform.projects.locations.repositories.fetchHistory({
|
|
104
|
+
name: "Test string",
|
|
105
|
+
pageSize: 42,
|
|
106
|
+
pageToken: "Test string",
|
|
107
|
+
});
|
|
68
108
|
/** Fetches a Repository's remote branches. */
|
|
69
109
|
await gapi.client.dataform.projects.locations.repositories.fetchRemoteBranches({
|
|
70
110
|
name: "Test string",
|
|
@@ -73,6 +113,11 @@ gapi.load('client', async () => {
|
|
|
73
113
|
await gapi.client.dataform.projects.locations.repositories.get({
|
|
74
114
|
name: "Test string",
|
|
75
115
|
});
|
|
116
|
+
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
117
|
+
await gapi.client.dataform.projects.locations.repositories.getIamPolicy({
|
|
118
|
+
"options.requestedPolicyVersion": 42,
|
|
119
|
+
resource: "Test string",
|
|
120
|
+
});
|
|
76
121
|
/** Lists Repositories in a given project and location. */
|
|
77
122
|
await gapi.client.dataform.projects.locations.repositories.list({
|
|
78
123
|
filter: "Test string",
|
|
@@ -92,6 +137,19 @@ gapi.load('client', async () => {
|
|
|
92
137
|
tokenStatus: "Test string",
|
|
93
138
|
url: "Test string",
|
|
94
139
|
},
|
|
140
|
+
initialCommitFileContents: {
|
|
141
|
+
A: "Test string"
|
|
142
|
+
},
|
|
143
|
+
initialCommitMetadata: {
|
|
144
|
+
author: {
|
|
145
|
+
emailAddress: "Test string",
|
|
146
|
+
name: "Test string",
|
|
147
|
+
},
|
|
148
|
+
commitMessage: "Test string",
|
|
149
|
+
},
|
|
150
|
+
labels: {
|
|
151
|
+
A: "Test string"
|
|
152
|
+
},
|
|
95
153
|
name: "Test string",
|
|
96
154
|
npmrcEnvironmentVariablesSecretVersion: "Test string",
|
|
97
155
|
workspaceCompilationOverrides: {
|
|
@@ -100,6 +158,54 @@ gapi.load('client', async () => {
|
|
|
100
158
|
tablePrefix: "Test string",
|
|
101
159
|
},
|
|
102
160
|
});
|
|
161
|
+
/** Returns the contents of a given Repository directory. The Repository must not have a value for `git_remote_settings.url`. */
|
|
162
|
+
await gapi.client.dataform.projects.locations.repositories.queryDirectoryContents({
|
|
163
|
+
commitSha: "Test string",
|
|
164
|
+
name: "Test string",
|
|
165
|
+
pageSize: 42,
|
|
166
|
+
pageToken: "Test string",
|
|
167
|
+
path: "Test string",
|
|
168
|
+
});
|
|
169
|
+
/** Returns the contents of a file (inside a Repository). The Repository must not have a value for `git_remote_settings.url`. */
|
|
170
|
+
await gapi.client.dataform.projects.locations.repositories.readFile({
|
|
171
|
+
commitSha: "Test string",
|
|
172
|
+
name: "Test string",
|
|
173
|
+
path: "Test string",
|
|
174
|
+
});
|
|
175
|
+
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
176
|
+
await gapi.client.dataform.projects.locations.repositories.setIamPolicy({
|
|
177
|
+
resource: "Test string",
|
|
178
|
+
}, {
|
|
179
|
+
policy: {
|
|
180
|
+
bindings: [
|
|
181
|
+
{
|
|
182
|
+
condition: {
|
|
183
|
+
description: "Test string",
|
|
184
|
+
expression: "Test string",
|
|
185
|
+
location: "Test string",
|
|
186
|
+
title: "Test string",
|
|
187
|
+
},
|
|
188
|
+
members: [
|
|
189
|
+
"Test string"
|
|
190
|
+
],
|
|
191
|
+
role: "Test string",
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
etag: "Test string",
|
|
195
|
+
version: 42,
|
|
196
|
+
},
|
|
197
|
+
});
|
|
198
|
+
/**
|
|
199
|
+
* 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
|
|
200
|
+
* 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.
|
|
201
|
+
*/
|
|
202
|
+
await gapi.client.dataform.projects.locations.repositories.testIamPermissions({
|
|
203
|
+
resource: "Test string",
|
|
204
|
+
}, {
|
|
205
|
+
permissions: [
|
|
206
|
+
"Test string"
|
|
207
|
+
],
|
|
208
|
+
});
|
|
103
209
|
/** Creates a new CompilationResult in a given project and location. */
|
|
104
210
|
await gapi.client.dataform.projects.locations.repositories.compilationResults.create({
|
|
105
211
|
parent: "Test string",
|
|
@@ -433,6 +539,11 @@ gapi.load('client', async () => {
|
|
|
433
539
|
await gapi.client.dataform.projects.locations.repositories.workspaces.get({
|
|
434
540
|
name: "Test string",
|
|
435
541
|
});
|
|
542
|
+
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
543
|
+
await gapi.client.dataform.projects.locations.repositories.workspaces.getIamPolicy({
|
|
544
|
+
"options.requestedPolicyVersion": 42,
|
|
545
|
+
resource: "Test string",
|
|
546
|
+
});
|
|
436
547
|
/** Installs dependency NPM packages (inside a Workspace). */
|
|
437
548
|
await gapi.client.dataform.projects.locations.repositories.workspaces.installNpmPackages({
|
|
438
549
|
workspace: "Test string",
|
|
@@ -515,6 +626,40 @@ gapi.load('client', async () => {
|
|
|
515
626
|
"Test string"
|
|
516
627
|
],
|
|
517
628
|
});
|
|
629
|
+
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
630
|
+
await gapi.client.dataform.projects.locations.repositories.workspaces.setIamPolicy({
|
|
631
|
+
resource: "Test string",
|
|
632
|
+
}, {
|
|
633
|
+
policy: {
|
|
634
|
+
bindings: [
|
|
635
|
+
{
|
|
636
|
+
condition: {
|
|
637
|
+
description: "Test string",
|
|
638
|
+
expression: "Test string",
|
|
639
|
+
location: "Test string",
|
|
640
|
+
title: "Test string",
|
|
641
|
+
},
|
|
642
|
+
members: [
|
|
643
|
+
"Test string"
|
|
644
|
+
],
|
|
645
|
+
role: "Test string",
|
|
646
|
+
}
|
|
647
|
+
],
|
|
648
|
+
etag: "Test string",
|
|
649
|
+
version: 42,
|
|
650
|
+
},
|
|
651
|
+
});
|
|
652
|
+
/**
|
|
653
|
+
* 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
|
|
654
|
+
* 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.
|
|
655
|
+
*/
|
|
656
|
+
await gapi.client.dataform.projects.locations.repositories.workspaces.testIamPermissions({
|
|
657
|
+
resource: "Test string",
|
|
658
|
+
}, {
|
|
659
|
+
permissions: [
|
|
660
|
+
"Test string"
|
|
661
|
+
],
|
|
662
|
+
});
|
|
518
663
|
/** Writes to a file (inside a Workspace). */
|
|
519
664
|
await gapi.client.dataform.projects.locations.repositories.workspaces.writeFile({
|
|
520
665
|
workspace: "Test string",
|