@maxim_mazurok/gapi.client.dataform-v1beta1 0.0.20230218 → 0.0.20230225
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 +288 -1
- package/package.json +1 -1
- package/tests.ts +79 -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: 20230225
|
|
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
|
}
|
|
@@ -146,6 +173,16 @@ declare namespace gapi.client {
|
|
|
146
173
|
// tslint:disable-next-line:no-empty-interface
|
|
147
174
|
interface Empty {
|
|
148
175
|
}
|
|
176
|
+
interface Expr {
|
|
177
|
+
/** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
|
|
178
|
+
description?: string;
|
|
179
|
+
/** Textual representation of an expression in Common Expression Language syntax. */
|
|
180
|
+
expression?: string;
|
|
181
|
+
/** Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */
|
|
182
|
+
location?: string;
|
|
183
|
+
/** 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. */
|
|
184
|
+
title?: string;
|
|
185
|
+
}
|
|
149
186
|
interface FetchFileDiffResponse {
|
|
150
187
|
/** The raw formatted Git diff for the file. */
|
|
151
188
|
formattedDiff?: string;
|
|
@@ -339,6 +376,32 @@ declare namespace gapi.client {
|
|
|
339
376
|
/** Arbitrary, user-defined tags on this action. */
|
|
340
377
|
tags?: string[];
|
|
341
378
|
}
|
|
379
|
+
interface Policy {
|
|
380
|
+
/**
|
|
381
|
+
* 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`
|
|
382
|
+
* 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
|
|
383
|
+
* 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
|
|
384
|
+
* 1,450 principals to the `bindings` in the `Policy`.
|
|
385
|
+
*/
|
|
386
|
+
bindings?: Binding[];
|
|
387
|
+
/**
|
|
388
|
+
* `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
|
|
389
|
+
* 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
|
|
390
|
+
* 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
|
|
391
|
+
* 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`
|
|
392
|
+
* policy, and all of the conditions in the version `3` policy are lost.
|
|
393
|
+
*/
|
|
394
|
+
etag?: string;
|
|
395
|
+
/**
|
|
396
|
+
* 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
|
|
397
|
+
* 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
|
|
398
|
+
* 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
|
|
399
|
+
* 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`
|
|
400
|
+
* 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
|
|
401
|
+
* 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).
|
|
402
|
+
*/
|
|
403
|
+
version?: number;
|
|
404
|
+
}
|
|
342
405
|
interface PullGitCommitsRequest {
|
|
343
406
|
/** Required. The author of any merge commit which may be created as a result of merging fetched Git commits into this workspace. */
|
|
344
407
|
author?: CommitAuthor;
|
|
@@ -484,6 +547,13 @@ declare namespace gapi.client {
|
|
|
484
547
|
/** The timestamp of this release attempt. */
|
|
485
548
|
releaseTime?: string;
|
|
486
549
|
}
|
|
550
|
+
interface SetIamPolicyRequest {
|
|
551
|
+
/**
|
|
552
|
+
* 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
|
|
553
|
+
* services (such as Projects) might reject them.
|
|
554
|
+
*/
|
|
555
|
+
policy?: Policy;
|
|
556
|
+
}
|
|
487
557
|
interface Status {
|
|
488
558
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
489
559
|
code?: number;
|
|
@@ -503,6 +573,17 @@ declare namespace gapi.client {
|
|
|
503
573
|
/** The action's schema (BigQuery dataset ID), within `database`. */
|
|
504
574
|
schema?: string;
|
|
505
575
|
}
|
|
576
|
+
interface TestIamPermissionsRequest {
|
|
577
|
+
/**
|
|
578
|
+
* The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM
|
|
579
|
+
* Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
580
|
+
*/
|
|
581
|
+
permissions?: string[];
|
|
582
|
+
}
|
|
583
|
+
interface TestIamPermissionsResponse {
|
|
584
|
+
/** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
|
|
585
|
+
permissions?: string[];
|
|
586
|
+
}
|
|
506
587
|
interface UncommittedFileChange {
|
|
507
588
|
/** The file's full path including filename, relative to the workspace root. */
|
|
508
589
|
path?: string;
|
|
@@ -1649,6 +1730,44 @@ declare namespace gapi.client {
|
|
|
1649
1730
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1650
1731
|
uploadType?: string;
|
|
1651
1732
|
}): Request<Workspace>;
|
|
1733
|
+
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
1734
|
+
getIamPolicy(request?: {
|
|
1735
|
+
/** V1 error format. */
|
|
1736
|
+
"$.xgafv"?: string;
|
|
1737
|
+
/** OAuth access token. */
|
|
1738
|
+
access_token?: string;
|
|
1739
|
+
/** Data format for response. */
|
|
1740
|
+
alt?: string;
|
|
1741
|
+
/** JSONP */
|
|
1742
|
+
callback?: string;
|
|
1743
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1744
|
+
fields?: string;
|
|
1745
|
+
/** 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. */
|
|
1746
|
+
key?: string;
|
|
1747
|
+
/** OAuth 2.0 token for the current user. */
|
|
1748
|
+
oauth_token?: string;
|
|
1749
|
+
/**
|
|
1750
|
+
* 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
|
|
1751
|
+
* 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
|
|
1752
|
+
* 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
|
|
1753
|
+
* role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
|
|
1754
|
+
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
1755
|
+
*/
|
|
1756
|
+
"options.requestedPolicyVersion"?: number;
|
|
1757
|
+
/** Returns response with indentations and line breaks. */
|
|
1758
|
+
prettyPrint?: boolean;
|
|
1759
|
+
/** 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. */
|
|
1760
|
+
quotaUser?: string;
|
|
1761
|
+
/**
|
|
1762
|
+
* 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
|
|
1763
|
+
* field.
|
|
1764
|
+
*/
|
|
1765
|
+
resource: string;
|
|
1766
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1767
|
+
upload_protocol?: string;
|
|
1768
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1769
|
+
uploadType?: string;
|
|
1770
|
+
}): Request<Policy>;
|
|
1652
1771
|
/** Installs dependency NPM packages (inside a Workspace). */
|
|
1653
1772
|
installNpmPackages(request: {
|
|
1654
1773
|
/** V1 error format. */
|
|
@@ -2256,6 +2375,71 @@ declare namespace gapi.client {
|
|
|
2256
2375
|
uploadType?: string;
|
|
2257
2376
|
},
|
|
2258
2377
|
body: ResetWorkspaceChangesRequest): Request<{}>;
|
|
2378
|
+
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
2379
|
+
setIamPolicy(request: {
|
|
2380
|
+
/** V1 error format. */
|
|
2381
|
+
"$.xgafv"?: string;
|
|
2382
|
+
/** OAuth access token. */
|
|
2383
|
+
access_token?: string;
|
|
2384
|
+
/** Data format for response. */
|
|
2385
|
+
alt?: string;
|
|
2386
|
+
/** JSONP */
|
|
2387
|
+
callback?: string;
|
|
2388
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2389
|
+
fields?: string;
|
|
2390
|
+
/** 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. */
|
|
2391
|
+
key?: string;
|
|
2392
|
+
/** OAuth 2.0 token for the current user. */
|
|
2393
|
+
oauth_token?: string;
|
|
2394
|
+
/** Returns response with indentations and line breaks. */
|
|
2395
|
+
prettyPrint?: boolean;
|
|
2396
|
+
/** 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. */
|
|
2397
|
+
quotaUser?: string;
|
|
2398
|
+
/**
|
|
2399
|
+
* 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
|
|
2400
|
+
* field.
|
|
2401
|
+
*/
|
|
2402
|
+
resource: string;
|
|
2403
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2404
|
+
upload_protocol?: string;
|
|
2405
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2406
|
+
uploadType?: string;
|
|
2407
|
+
},
|
|
2408
|
+
body: SetIamPolicyRequest): Request<Policy>;
|
|
2409
|
+
/**
|
|
2410
|
+
* 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
|
|
2411
|
+
* 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.
|
|
2412
|
+
*/
|
|
2413
|
+
testIamPermissions(request: {
|
|
2414
|
+
/** V1 error format. */
|
|
2415
|
+
"$.xgafv"?: string;
|
|
2416
|
+
/** OAuth access token. */
|
|
2417
|
+
access_token?: string;
|
|
2418
|
+
/** Data format for response. */
|
|
2419
|
+
alt?: string;
|
|
2420
|
+
/** JSONP */
|
|
2421
|
+
callback?: string;
|
|
2422
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2423
|
+
fields?: string;
|
|
2424
|
+
/** 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. */
|
|
2425
|
+
key?: string;
|
|
2426
|
+
/** OAuth 2.0 token for the current user. */
|
|
2427
|
+
oauth_token?: string;
|
|
2428
|
+
/** Returns response with indentations and line breaks. */
|
|
2429
|
+
prettyPrint?: boolean;
|
|
2430
|
+
/** 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. */
|
|
2431
|
+
quotaUser?: string;
|
|
2432
|
+
/**
|
|
2433
|
+
* 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
|
|
2434
|
+
* this field.
|
|
2435
|
+
*/
|
|
2436
|
+
resource: string;
|
|
2437
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2438
|
+
upload_protocol?: string;
|
|
2439
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2440
|
+
uploadType?: string;
|
|
2441
|
+
},
|
|
2442
|
+
body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
|
|
2259
2443
|
/** Writes to a file (inside a Workspace). */
|
|
2260
2444
|
writeFile(request: {
|
|
2261
2445
|
/** V1 error format. */
|
|
@@ -2457,6 +2641,44 @@ declare namespace gapi.client {
|
|
|
2457
2641
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2458
2642
|
uploadType?: string;
|
|
2459
2643
|
}): Request<Repository>;
|
|
2644
|
+
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
2645
|
+
getIamPolicy(request?: {
|
|
2646
|
+
/** V1 error format. */
|
|
2647
|
+
"$.xgafv"?: string;
|
|
2648
|
+
/** OAuth access token. */
|
|
2649
|
+
access_token?: string;
|
|
2650
|
+
/** Data format for response. */
|
|
2651
|
+
alt?: string;
|
|
2652
|
+
/** JSONP */
|
|
2653
|
+
callback?: string;
|
|
2654
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2655
|
+
fields?: string;
|
|
2656
|
+
/** 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. */
|
|
2657
|
+
key?: string;
|
|
2658
|
+
/** OAuth 2.0 token for the current user. */
|
|
2659
|
+
oauth_token?: string;
|
|
2660
|
+
/**
|
|
2661
|
+
* 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
|
|
2662
|
+
* 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
|
|
2663
|
+
* 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
|
|
2664
|
+
* role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
|
|
2665
|
+
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
2666
|
+
*/
|
|
2667
|
+
"options.requestedPolicyVersion"?: number;
|
|
2668
|
+
/** Returns response with indentations and line breaks. */
|
|
2669
|
+
prettyPrint?: boolean;
|
|
2670
|
+
/** 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. */
|
|
2671
|
+
quotaUser?: string;
|
|
2672
|
+
/**
|
|
2673
|
+
* 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
|
|
2674
|
+
* field.
|
|
2675
|
+
*/
|
|
2676
|
+
resource: string;
|
|
2677
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2678
|
+
upload_protocol?: string;
|
|
2679
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2680
|
+
uploadType?: string;
|
|
2681
|
+
}): Request<Policy>;
|
|
2460
2682
|
/** Lists Repositories in a given project and location. */
|
|
2461
2683
|
list(request?: {
|
|
2462
2684
|
/** V1 error format. */
|
|
@@ -2555,6 +2777,71 @@ declare namespace gapi.client {
|
|
|
2555
2777
|
uploadType?: string;
|
|
2556
2778
|
},
|
|
2557
2779
|
body: Repository): Request<Repository>;
|
|
2780
|
+
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
2781
|
+
setIamPolicy(request: {
|
|
2782
|
+
/** V1 error format. */
|
|
2783
|
+
"$.xgafv"?: string;
|
|
2784
|
+
/** OAuth access token. */
|
|
2785
|
+
access_token?: string;
|
|
2786
|
+
/** Data format for response. */
|
|
2787
|
+
alt?: string;
|
|
2788
|
+
/** JSONP */
|
|
2789
|
+
callback?: string;
|
|
2790
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2791
|
+
fields?: string;
|
|
2792
|
+
/** 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. */
|
|
2793
|
+
key?: string;
|
|
2794
|
+
/** OAuth 2.0 token for the current user. */
|
|
2795
|
+
oauth_token?: string;
|
|
2796
|
+
/** Returns response with indentations and line breaks. */
|
|
2797
|
+
prettyPrint?: boolean;
|
|
2798
|
+
/** 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. */
|
|
2799
|
+
quotaUser?: string;
|
|
2800
|
+
/**
|
|
2801
|
+
* 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
|
|
2802
|
+
* field.
|
|
2803
|
+
*/
|
|
2804
|
+
resource: string;
|
|
2805
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2806
|
+
upload_protocol?: string;
|
|
2807
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2808
|
+
uploadType?: string;
|
|
2809
|
+
},
|
|
2810
|
+
body: SetIamPolicyRequest): Request<Policy>;
|
|
2811
|
+
/**
|
|
2812
|
+
* 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
|
|
2813
|
+
* 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.
|
|
2814
|
+
*/
|
|
2815
|
+
testIamPermissions(request: {
|
|
2816
|
+
/** V1 error format. */
|
|
2817
|
+
"$.xgafv"?: string;
|
|
2818
|
+
/** OAuth access token. */
|
|
2819
|
+
access_token?: string;
|
|
2820
|
+
/** Data format for response. */
|
|
2821
|
+
alt?: string;
|
|
2822
|
+
/** JSONP */
|
|
2823
|
+
callback?: string;
|
|
2824
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2825
|
+
fields?: string;
|
|
2826
|
+
/** 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. */
|
|
2827
|
+
key?: string;
|
|
2828
|
+
/** OAuth 2.0 token for the current user. */
|
|
2829
|
+
oauth_token?: string;
|
|
2830
|
+
/** Returns response with indentations and line breaks. */
|
|
2831
|
+
prettyPrint?: boolean;
|
|
2832
|
+
/** 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. */
|
|
2833
|
+
quotaUser?: string;
|
|
2834
|
+
/**
|
|
2835
|
+
* 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
|
|
2836
|
+
* this field.
|
|
2837
|
+
*/
|
|
2838
|
+
resource: string;
|
|
2839
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2840
|
+
upload_protocol?: string;
|
|
2841
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2842
|
+
uploadType?: string;
|
|
2843
|
+
},
|
|
2844
|
+
body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
|
|
2558
2845
|
compilationResults: CompilationResultsResource;
|
|
2559
2846
|
releaseConfigs: ReleaseConfigsResource;
|
|
2560
2847
|
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: 20230225
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -73,6 +73,11 @@ gapi.load('client', async () => {
|
|
|
73
73
|
await gapi.client.dataform.projects.locations.repositories.get({
|
|
74
74
|
name: "Test string",
|
|
75
75
|
});
|
|
76
|
+
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
77
|
+
await gapi.client.dataform.projects.locations.repositories.getIamPolicy({
|
|
78
|
+
"options.requestedPolicyVersion": 42,
|
|
79
|
+
resource: "Test string",
|
|
80
|
+
});
|
|
76
81
|
/** Lists Repositories in a given project and location. */
|
|
77
82
|
await gapi.client.dataform.projects.locations.repositories.list({
|
|
78
83
|
filter: "Test string",
|
|
@@ -100,6 +105,40 @@ gapi.load('client', async () => {
|
|
|
100
105
|
tablePrefix: "Test string",
|
|
101
106
|
},
|
|
102
107
|
});
|
|
108
|
+
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
109
|
+
await gapi.client.dataform.projects.locations.repositories.setIamPolicy({
|
|
110
|
+
resource: "Test string",
|
|
111
|
+
}, {
|
|
112
|
+
policy: {
|
|
113
|
+
bindings: [
|
|
114
|
+
{
|
|
115
|
+
condition: {
|
|
116
|
+
description: "Test string",
|
|
117
|
+
expression: "Test string",
|
|
118
|
+
location: "Test string",
|
|
119
|
+
title: "Test string",
|
|
120
|
+
},
|
|
121
|
+
members: [
|
|
122
|
+
"Test string"
|
|
123
|
+
],
|
|
124
|
+
role: "Test string",
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
etag: "Test string",
|
|
128
|
+
version: 42,
|
|
129
|
+
},
|
|
130
|
+
});
|
|
131
|
+
/**
|
|
132
|
+
* 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
|
|
133
|
+
* 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.
|
|
134
|
+
*/
|
|
135
|
+
await gapi.client.dataform.projects.locations.repositories.testIamPermissions({
|
|
136
|
+
resource: "Test string",
|
|
137
|
+
}, {
|
|
138
|
+
permissions: [
|
|
139
|
+
"Test string"
|
|
140
|
+
],
|
|
141
|
+
});
|
|
103
142
|
/** Creates a new CompilationResult in a given project and location. */
|
|
104
143
|
await gapi.client.dataform.projects.locations.repositories.compilationResults.create({
|
|
105
144
|
parent: "Test string",
|
|
@@ -433,6 +472,11 @@ gapi.load('client', async () => {
|
|
|
433
472
|
await gapi.client.dataform.projects.locations.repositories.workspaces.get({
|
|
434
473
|
name: "Test string",
|
|
435
474
|
});
|
|
475
|
+
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
476
|
+
await gapi.client.dataform.projects.locations.repositories.workspaces.getIamPolicy({
|
|
477
|
+
"options.requestedPolicyVersion": 42,
|
|
478
|
+
resource: "Test string",
|
|
479
|
+
});
|
|
436
480
|
/** Installs dependency NPM packages (inside a Workspace). */
|
|
437
481
|
await gapi.client.dataform.projects.locations.repositories.workspaces.installNpmPackages({
|
|
438
482
|
workspace: "Test string",
|
|
@@ -515,6 +559,40 @@ gapi.load('client', async () => {
|
|
|
515
559
|
"Test string"
|
|
516
560
|
],
|
|
517
561
|
});
|
|
562
|
+
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
563
|
+
await gapi.client.dataform.projects.locations.repositories.workspaces.setIamPolicy({
|
|
564
|
+
resource: "Test string",
|
|
565
|
+
}, {
|
|
566
|
+
policy: {
|
|
567
|
+
bindings: [
|
|
568
|
+
{
|
|
569
|
+
condition: {
|
|
570
|
+
description: "Test string",
|
|
571
|
+
expression: "Test string",
|
|
572
|
+
location: "Test string",
|
|
573
|
+
title: "Test string",
|
|
574
|
+
},
|
|
575
|
+
members: [
|
|
576
|
+
"Test string"
|
|
577
|
+
],
|
|
578
|
+
role: "Test string",
|
|
579
|
+
}
|
|
580
|
+
],
|
|
581
|
+
etag: "Test string",
|
|
582
|
+
version: 42,
|
|
583
|
+
},
|
|
584
|
+
});
|
|
585
|
+
/**
|
|
586
|
+
* 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
|
|
587
|
+
* 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.
|
|
588
|
+
*/
|
|
589
|
+
await gapi.client.dataform.projects.locations.repositories.workspaces.testIamPermissions({
|
|
590
|
+
resource: "Test string",
|
|
591
|
+
}, {
|
|
592
|
+
permissions: [
|
|
593
|
+
"Test string"
|
|
594
|
+
],
|
|
595
|
+
});
|
|
518
596
|
/** Writes to a file (inside a Workspace). */
|
|
519
597
|
await gapi.client.dataform.projects.locations.repositories.workspaces.writeFile({
|
|
520
598
|
workspace: "Test string",
|