@maxim_mazurok/gapi.client.dataform-v1beta1 0.0.20230909 → 0.0.20230916
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 +146 -2
- package/package.json +1 -1
- package/tests.ts +40 -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: 20230916
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -151,7 +151,7 @@ declare namespace gapi.client {
|
|
|
151
151
|
/** Required. The changes to commit to the repository. */
|
|
152
152
|
commitMetadata?:
|
|
153
153
|
CommitMetadata;
|
|
154
|
-
/** A map to the path of the file to the operation. The path is the
|
|
154
|
+
/** A map to the path of the file to the operation. The path is the full file path including filename, from repository root. */
|
|
155
155
|
fileOperations?:
|
|
156
156
|
{ [P in string]: FileOperation };
|
|
157
157
|
/**
|
|
@@ -978,6 +978,148 @@ declare namespace gapi.client {
|
|
|
978
978
|
// tslint:disable-next-line:no-empty-interface
|
|
979
979
|
interface WriteFileResponse {
|
|
980
980
|
}
|
|
981
|
+
interface CollectionsResource {
|
|
982
|
+
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
983
|
+
getIamPolicy(request?: {
|
|
984
|
+
/** V1 error format. */
|
|
985
|
+
"$.xgafv"?:
|
|
986
|
+
string;
|
|
987
|
+
/** OAuth access token. */
|
|
988
|
+
access_token?:
|
|
989
|
+
string;
|
|
990
|
+
/** Data format for response. */
|
|
991
|
+
alt?:
|
|
992
|
+
string;
|
|
993
|
+
/** JSONP */
|
|
994
|
+
callback?:
|
|
995
|
+
string;
|
|
996
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
997
|
+
fields?:
|
|
998
|
+
string;
|
|
999
|
+
/** 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. */
|
|
1000
|
+
key?:
|
|
1001
|
+
string;
|
|
1002
|
+
/** OAuth 2.0 token for the current user. */
|
|
1003
|
+
oauth_token?:
|
|
1004
|
+
string;
|
|
1005
|
+
/**
|
|
1006
|
+
* 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
|
|
1007
|
+
* 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
|
|
1008
|
+
* 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
|
|
1009
|
+
* role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
|
|
1010
|
+
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
1011
|
+
*/
|
|
1012
|
+
"options.requestedPolicyVersion"?:
|
|
1013
|
+
number;
|
|
1014
|
+
/** Returns response with indentations and line breaks. */
|
|
1015
|
+
prettyPrint?:
|
|
1016
|
+
boolean;
|
|
1017
|
+
/** 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. */
|
|
1018
|
+
quotaUser?:
|
|
1019
|
+
string;
|
|
1020
|
+
/**
|
|
1021
|
+
* 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
|
|
1022
|
+
* field.
|
|
1023
|
+
*/
|
|
1024
|
+
resource:
|
|
1025
|
+
string;
|
|
1026
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1027
|
+
upload_protocol?:
|
|
1028
|
+
string;
|
|
1029
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1030
|
+
uploadType?:
|
|
1031
|
+
string;
|
|
1032
|
+
}): Request<Policy>;
|
|
1033
|
+
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
1034
|
+
setIamPolicy(request: {
|
|
1035
|
+
/** V1 error format. */
|
|
1036
|
+
"$.xgafv"?:
|
|
1037
|
+
string;
|
|
1038
|
+
/** OAuth access token. */
|
|
1039
|
+
access_token?:
|
|
1040
|
+
string;
|
|
1041
|
+
/** Data format for response. */
|
|
1042
|
+
alt?:
|
|
1043
|
+
string;
|
|
1044
|
+
/** JSONP */
|
|
1045
|
+
callback?:
|
|
1046
|
+
string;
|
|
1047
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1048
|
+
fields?:
|
|
1049
|
+
string;
|
|
1050
|
+
/** 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. */
|
|
1051
|
+
key?:
|
|
1052
|
+
string;
|
|
1053
|
+
/** OAuth 2.0 token for the current user. */
|
|
1054
|
+
oauth_token?:
|
|
1055
|
+
string;
|
|
1056
|
+
/** Returns response with indentations and line breaks. */
|
|
1057
|
+
prettyPrint?:
|
|
1058
|
+
boolean;
|
|
1059
|
+
/** 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. */
|
|
1060
|
+
quotaUser?:
|
|
1061
|
+
string;
|
|
1062
|
+
/**
|
|
1063
|
+
* 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
|
|
1064
|
+
* field.
|
|
1065
|
+
*/
|
|
1066
|
+
resource:
|
|
1067
|
+
string;
|
|
1068
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1069
|
+
upload_protocol?:
|
|
1070
|
+
string;
|
|
1071
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1072
|
+
uploadType?:
|
|
1073
|
+
string;
|
|
1074
|
+
},
|
|
1075
|
+
body: SetIamPolicyRequest): Request<Policy>;
|
|
1076
|
+
/**
|
|
1077
|
+
* 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
|
|
1078
|
+
* 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.
|
|
1079
|
+
*/
|
|
1080
|
+
testIamPermissions(request: {
|
|
1081
|
+
/** V1 error format. */
|
|
1082
|
+
"$.xgafv"?:
|
|
1083
|
+
string;
|
|
1084
|
+
/** OAuth access token. */
|
|
1085
|
+
access_token?:
|
|
1086
|
+
string;
|
|
1087
|
+
/** Data format for response. */
|
|
1088
|
+
alt?:
|
|
1089
|
+
string;
|
|
1090
|
+
/** JSONP */
|
|
1091
|
+
callback?:
|
|
1092
|
+
string;
|
|
1093
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1094
|
+
fields?:
|
|
1095
|
+
string;
|
|
1096
|
+
/** 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. */
|
|
1097
|
+
key?:
|
|
1098
|
+
string;
|
|
1099
|
+
/** OAuth 2.0 token for the current user. */
|
|
1100
|
+
oauth_token?:
|
|
1101
|
+
string;
|
|
1102
|
+
/** Returns response with indentations and line breaks. */
|
|
1103
|
+
prettyPrint?:
|
|
1104
|
+
boolean;
|
|
1105
|
+
/** 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. */
|
|
1106
|
+
quotaUser?:
|
|
1107
|
+
string;
|
|
1108
|
+
/**
|
|
1109
|
+
* 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
|
|
1110
|
+
* this field.
|
|
1111
|
+
*/
|
|
1112
|
+
resource:
|
|
1113
|
+
string;
|
|
1114
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1115
|
+
upload_protocol?:
|
|
1116
|
+
string;
|
|
1117
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1118
|
+
uploadType?:
|
|
1119
|
+
string;
|
|
1120
|
+
},
|
|
1121
|
+
body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
|
|
1122
|
+
}
|
|
981
1123
|
interface CompilationResultsResource {
|
|
982
1124
|
/** Creates a new CompilationResult in a given project and location. */
|
|
983
1125
|
create(request: {
|
|
@@ -4473,6 +4615,8 @@ declare namespace gapi.client {
|
|
|
4473
4615
|
uploadType?:
|
|
4474
4616
|
string;
|
|
4475
4617
|
}): Request<ListLocationsResponse>;
|
|
4618
|
+
collections:
|
|
4619
|
+
CollectionsResource;
|
|
4476
4620
|
repositories:
|
|
4477
4621
|
RepositoriesResource;
|
|
4478
4622
|
}
|
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: 20230916
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -40,6 +40,45 @@ gapi.load('client', async () => {
|
|
|
40
40
|
pageSize: 42,
|
|
41
41
|
pageToken: "Test string",
|
|
42
42
|
});
|
|
43
|
+
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
44
|
+
await gapi.client.dataform.projects.locations.collections.getIamPolicy({
|
|
45
|
+
"options.requestedPolicyVersion": 42,
|
|
46
|
+
resource: "Test string",
|
|
47
|
+
});
|
|
48
|
+
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
49
|
+
await gapi.client.dataform.projects.locations.collections.setIamPolicy({
|
|
50
|
+
resource: "Test string",
|
|
51
|
+
}, {
|
|
52
|
+
policy: {
|
|
53
|
+
bindings: [
|
|
54
|
+
{
|
|
55
|
+
condition: {
|
|
56
|
+
description: "Test string",
|
|
57
|
+
expression: "Test string",
|
|
58
|
+
location: "Test string",
|
|
59
|
+
title: "Test string",
|
|
60
|
+
},
|
|
61
|
+
members: [
|
|
62
|
+
"Test string"
|
|
63
|
+
],
|
|
64
|
+
role: "Test string",
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
etag: "Test string",
|
|
68
|
+
version: 42,
|
|
69
|
+
},
|
|
70
|
+
});
|
|
71
|
+
/**
|
|
72
|
+
* 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
|
|
73
|
+
* 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.
|
|
74
|
+
*/
|
|
75
|
+
await gapi.client.dataform.projects.locations.collections.testIamPermissions({
|
|
76
|
+
resource: "Test string",
|
|
77
|
+
}, {
|
|
78
|
+
permissions: [
|
|
79
|
+
"Test string"
|
|
80
|
+
],
|
|
81
|
+
});
|
|
43
82
|
/** Applies a Git commit to a Repository. The Repository must not have a value for `git_remote_settings.url`. */
|
|
44
83
|
await gapi.client.dataform.projects.locations.repositories.commit({
|
|
45
84
|
name: "Test string",
|