@maxim_mazurok/gapi.client.dataplex-v1 0.0.20230809 → 0.0.20230911
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 +145 -1
- package/package.json +1 -1
- package/tests.ts +54 -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://dataplex.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230911
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -4989,6 +4989,148 @@ declare namespace gapi.client {
|
|
|
4989
4989
|
},
|
|
4990
4990
|
body: GoogleIamV1TestIamPermissionsRequest): Request<GoogleIamV1TestIamPermissionsResponse>;
|
|
4991
4991
|
}
|
|
4992
|
+
interface GovernanceRulesResource {
|
|
4993
|
+
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
4994
|
+
getIamPolicy(request?: {
|
|
4995
|
+
/** V1 error format. */
|
|
4996
|
+
"$.xgafv"?:
|
|
4997
|
+
string;
|
|
4998
|
+
/** OAuth access token. */
|
|
4999
|
+
access_token?:
|
|
5000
|
+
string;
|
|
5001
|
+
/** Data format for response. */
|
|
5002
|
+
alt?:
|
|
5003
|
+
string;
|
|
5004
|
+
/** JSONP */
|
|
5005
|
+
callback?:
|
|
5006
|
+
string;
|
|
5007
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
5008
|
+
fields?:
|
|
5009
|
+
string;
|
|
5010
|
+
/** 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. */
|
|
5011
|
+
key?:
|
|
5012
|
+
string;
|
|
5013
|
+
/** OAuth 2.0 token for the current user. */
|
|
5014
|
+
oauth_token?:
|
|
5015
|
+
string;
|
|
5016
|
+
/**
|
|
5017
|
+
* 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
|
|
5018
|
+
* 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 in
|
|
5019
|
+
* 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
|
|
5020
|
+
* role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation
|
|
5021
|
+
* (https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
5022
|
+
*/
|
|
5023
|
+
"options.requestedPolicyVersion"?:
|
|
5024
|
+
number;
|
|
5025
|
+
/** Returns response with indentations and line breaks. */
|
|
5026
|
+
prettyPrint?:
|
|
5027
|
+
boolean;
|
|
5028
|
+
/** 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. */
|
|
5029
|
+
quotaUser?:
|
|
5030
|
+
string;
|
|
5031
|
+
/**
|
|
5032
|
+
* 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
|
|
5033
|
+
* field.
|
|
5034
|
+
*/
|
|
5035
|
+
resource:
|
|
5036
|
+
string;
|
|
5037
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
5038
|
+
upload_protocol?:
|
|
5039
|
+
string;
|
|
5040
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
5041
|
+
uploadType?:
|
|
5042
|
+
string;
|
|
5043
|
+
}): Request<GoogleIamV1Policy>;
|
|
5044
|
+
/** Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. */
|
|
5045
|
+
setIamPolicy(request: {
|
|
5046
|
+
/** V1 error format. */
|
|
5047
|
+
"$.xgafv"?:
|
|
5048
|
+
string;
|
|
5049
|
+
/** OAuth access token. */
|
|
5050
|
+
access_token?:
|
|
5051
|
+
string;
|
|
5052
|
+
/** Data format for response. */
|
|
5053
|
+
alt?:
|
|
5054
|
+
string;
|
|
5055
|
+
/** JSONP */
|
|
5056
|
+
callback?:
|
|
5057
|
+
string;
|
|
5058
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
5059
|
+
fields?:
|
|
5060
|
+
string;
|
|
5061
|
+
/** 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. */
|
|
5062
|
+
key?:
|
|
5063
|
+
string;
|
|
5064
|
+
/** OAuth 2.0 token for the current user. */
|
|
5065
|
+
oauth_token?:
|
|
5066
|
+
string;
|
|
5067
|
+
/** Returns response with indentations and line breaks. */
|
|
5068
|
+
prettyPrint?:
|
|
5069
|
+
boolean;
|
|
5070
|
+
/** 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. */
|
|
5071
|
+
quotaUser?:
|
|
5072
|
+
string;
|
|
5073
|
+
/**
|
|
5074
|
+
* 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
|
|
5075
|
+
* field.
|
|
5076
|
+
*/
|
|
5077
|
+
resource:
|
|
5078
|
+
string;
|
|
5079
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
5080
|
+
upload_protocol?:
|
|
5081
|
+
string;
|
|
5082
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
5083
|
+
uploadType?:
|
|
5084
|
+
string;
|
|
5085
|
+
},
|
|
5086
|
+
body: GoogleIamV1SetIamPolicyRequest): Request<GoogleIamV1Policy>;
|
|
5087
|
+
/**
|
|
5088
|
+
* 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
|
|
5089
|
+
* 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.
|
|
5090
|
+
*/
|
|
5091
|
+
testIamPermissions(request: {
|
|
5092
|
+
/** V1 error format. */
|
|
5093
|
+
"$.xgafv"?:
|
|
5094
|
+
string;
|
|
5095
|
+
/** OAuth access token. */
|
|
5096
|
+
access_token?:
|
|
5097
|
+
string;
|
|
5098
|
+
/** Data format for response. */
|
|
5099
|
+
alt?:
|
|
5100
|
+
string;
|
|
5101
|
+
/** JSONP */
|
|
5102
|
+
callback?:
|
|
5103
|
+
string;
|
|
5104
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
5105
|
+
fields?:
|
|
5106
|
+
string;
|
|
5107
|
+
/** 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. */
|
|
5108
|
+
key?:
|
|
5109
|
+
string;
|
|
5110
|
+
/** OAuth 2.0 token for the current user. */
|
|
5111
|
+
oauth_token?:
|
|
5112
|
+
string;
|
|
5113
|
+
/** Returns response with indentations and line breaks. */
|
|
5114
|
+
prettyPrint?:
|
|
5115
|
+
boolean;
|
|
5116
|
+
/** 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. */
|
|
5117
|
+
quotaUser?:
|
|
5118
|
+
string;
|
|
5119
|
+
/**
|
|
5120
|
+
* 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
|
|
5121
|
+
* this field.
|
|
5122
|
+
*/
|
|
5123
|
+
resource:
|
|
5124
|
+
string;
|
|
5125
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
5126
|
+
upload_protocol?:
|
|
5127
|
+
string;
|
|
5128
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
5129
|
+
uploadType?:
|
|
5130
|
+
string;
|
|
5131
|
+
},
|
|
5132
|
+
body: GoogleIamV1TestIamPermissionsRequest): Request<GoogleIamV1TestIamPermissionsResponse>;
|
|
5133
|
+
}
|
|
4992
5134
|
interface ActionsResource {
|
|
4993
5135
|
/** Lists action resources in a lake. */
|
|
4994
5136
|
list(request?: {
|
|
@@ -9642,6 +9784,8 @@ declare namespace gapi.client {
|
|
|
9642
9784
|
EntryGroupsResource;
|
|
9643
9785
|
entryTypes:
|
|
9644
9786
|
EntryTypesResource;
|
|
9787
|
+
governanceRules:
|
|
9788
|
+
GovernanceRulesResource;
|
|
9645
9789
|
lakes:
|
|
9646
9790
|
LakesResource;
|
|
9647
9791
|
operations:
|
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: 20230911
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -1132,6 +1132,59 @@ gapi.load('client', async () => {
|
|
|
1132
1132
|
"Test string"
|
|
1133
1133
|
],
|
|
1134
1134
|
});
|
|
1135
|
+
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
1136
|
+
await gapi.client.dataplex.projects.locations.governanceRules.getIamPolicy({
|
|
1137
|
+
"options.requestedPolicyVersion": 42,
|
|
1138
|
+
resource: "Test string",
|
|
1139
|
+
});
|
|
1140
|
+
/** Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. */
|
|
1141
|
+
await gapi.client.dataplex.projects.locations.governanceRules.setIamPolicy({
|
|
1142
|
+
resource: "Test string",
|
|
1143
|
+
}, {
|
|
1144
|
+
policy: {
|
|
1145
|
+
auditConfigs: [
|
|
1146
|
+
{
|
|
1147
|
+
auditLogConfigs: [
|
|
1148
|
+
{
|
|
1149
|
+
exemptedMembers: [
|
|
1150
|
+
"Test string"
|
|
1151
|
+
],
|
|
1152
|
+
logType: "Test string",
|
|
1153
|
+
}
|
|
1154
|
+
],
|
|
1155
|
+
service: "Test string",
|
|
1156
|
+
}
|
|
1157
|
+
],
|
|
1158
|
+
bindings: [
|
|
1159
|
+
{
|
|
1160
|
+
condition: {
|
|
1161
|
+
description: "Test string",
|
|
1162
|
+
expression: "Test string",
|
|
1163
|
+
location: "Test string",
|
|
1164
|
+
title: "Test string",
|
|
1165
|
+
},
|
|
1166
|
+
members: [
|
|
1167
|
+
"Test string"
|
|
1168
|
+
],
|
|
1169
|
+
role: "Test string",
|
|
1170
|
+
}
|
|
1171
|
+
],
|
|
1172
|
+
etag: "Test string",
|
|
1173
|
+
version: 42,
|
|
1174
|
+
},
|
|
1175
|
+
updateMask: "Test string",
|
|
1176
|
+
});
|
|
1177
|
+
/**
|
|
1178
|
+
* 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 operation
|
|
1179
|
+
* 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.
|
|
1180
|
+
*/
|
|
1181
|
+
await gapi.client.dataplex.projects.locations.governanceRules.testIamPermissions({
|
|
1182
|
+
resource: "Test string",
|
|
1183
|
+
}, {
|
|
1184
|
+
permissions: [
|
|
1185
|
+
"Test string"
|
|
1186
|
+
],
|
|
1187
|
+
});
|
|
1135
1188
|
/** Creates a lake resource. */
|
|
1136
1189
|
await gapi.client.dataplex.projects.locations.lakes.create({
|
|
1137
1190
|
lakeId: "Test string",
|