@maxim_mazurok/gapi.client.datamigration-v1 0.0.20230118 → 0.0.20230201
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 +112 -9
- 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://datamigration.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230201
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -95,14 +95,14 @@ declare namespace gapi.client {
|
|
|
95
95
|
* Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example,
|
|
96
96
|
* `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service
|
|
97
97
|
* 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]`. *
|
|
98
|
-
* `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `
|
|
99
|
-
*
|
|
100
|
-
* `
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
* `
|
|
105
|
-
*
|
|
98
|
+
* `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
|
|
99
|
+
* 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
|
|
100
|
+
* 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
|
|
101
|
+
* the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently
|
|
102
|
+
* deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and
|
|
103
|
+
* 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
|
|
104
|
+
* 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
|
|
105
|
+
* retains the role in the binding.
|
|
106
106
|
*/
|
|
107
107
|
members?: string[];
|
|
108
108
|
/** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
|
|
@@ -1822,6 +1822,44 @@ declare namespace gapi.client {
|
|
|
1822
1822
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1823
1823
|
uploadType?: string;
|
|
1824
1824
|
}): Request<ConversionWorkspace>;
|
|
1825
|
+
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
1826
|
+
getIamPolicy(request?: {
|
|
1827
|
+
/** V1 error format. */
|
|
1828
|
+
"$.xgafv"?: string;
|
|
1829
|
+
/** OAuth access token. */
|
|
1830
|
+
access_token?: string;
|
|
1831
|
+
/** Data format for response. */
|
|
1832
|
+
alt?: string;
|
|
1833
|
+
/** JSONP */
|
|
1834
|
+
callback?: string;
|
|
1835
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1836
|
+
fields?: string;
|
|
1837
|
+
/** 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. */
|
|
1838
|
+
key?: string;
|
|
1839
|
+
/** OAuth 2.0 token for the current user. */
|
|
1840
|
+
oauth_token?: string;
|
|
1841
|
+
/**
|
|
1842
|
+
* 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
|
|
1843
|
+
* 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
|
|
1844
|
+
* 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
|
|
1845
|
+
* role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
|
|
1846
|
+
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
1847
|
+
*/
|
|
1848
|
+
"options.requestedPolicyVersion"?: number;
|
|
1849
|
+
/** Returns response with indentations and line breaks. */
|
|
1850
|
+
prettyPrint?: boolean;
|
|
1851
|
+
/** 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. */
|
|
1852
|
+
quotaUser?: string;
|
|
1853
|
+
/**
|
|
1854
|
+
* 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
|
|
1855
|
+
* field.
|
|
1856
|
+
*/
|
|
1857
|
+
resource: string;
|
|
1858
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1859
|
+
upload_protocol?: string;
|
|
1860
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1861
|
+
uploadType?: string;
|
|
1862
|
+
}): Request<Policy>;
|
|
1825
1863
|
/** Lists conversion workspaces in a given project and location. */
|
|
1826
1864
|
list(request?: {
|
|
1827
1865
|
/** V1 error format. */
|
|
@@ -2090,6 +2128,71 @@ declare namespace gapi.client {
|
|
|
2090
2128
|
uploadType?: string;
|
|
2091
2129
|
},
|
|
2092
2130
|
body: SeedConversionWorkspaceRequest): Request<Operation>;
|
|
2131
|
+
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
2132
|
+
setIamPolicy(request: {
|
|
2133
|
+
/** V1 error format. */
|
|
2134
|
+
"$.xgafv"?: string;
|
|
2135
|
+
/** OAuth access token. */
|
|
2136
|
+
access_token?: string;
|
|
2137
|
+
/** Data format for response. */
|
|
2138
|
+
alt?: string;
|
|
2139
|
+
/** JSONP */
|
|
2140
|
+
callback?: string;
|
|
2141
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2142
|
+
fields?: string;
|
|
2143
|
+
/** 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. */
|
|
2144
|
+
key?: string;
|
|
2145
|
+
/** OAuth 2.0 token for the current user. */
|
|
2146
|
+
oauth_token?: string;
|
|
2147
|
+
/** Returns response with indentations and line breaks. */
|
|
2148
|
+
prettyPrint?: boolean;
|
|
2149
|
+
/** 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. */
|
|
2150
|
+
quotaUser?: string;
|
|
2151
|
+
/**
|
|
2152
|
+
* 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
|
|
2153
|
+
* field.
|
|
2154
|
+
*/
|
|
2155
|
+
resource: string;
|
|
2156
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2157
|
+
upload_protocol?: string;
|
|
2158
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2159
|
+
uploadType?: string;
|
|
2160
|
+
},
|
|
2161
|
+
body: SetIamPolicyRequest): Request<Policy>;
|
|
2162
|
+
/**
|
|
2163
|
+
* 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
|
|
2164
|
+
* 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.
|
|
2165
|
+
*/
|
|
2166
|
+
testIamPermissions(request: {
|
|
2167
|
+
/** V1 error format. */
|
|
2168
|
+
"$.xgafv"?: string;
|
|
2169
|
+
/** OAuth access token. */
|
|
2170
|
+
access_token?: string;
|
|
2171
|
+
/** Data format for response. */
|
|
2172
|
+
alt?: string;
|
|
2173
|
+
/** JSONP */
|
|
2174
|
+
callback?: string;
|
|
2175
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2176
|
+
fields?: string;
|
|
2177
|
+
/** 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. */
|
|
2178
|
+
key?: string;
|
|
2179
|
+
/** OAuth 2.0 token for the current user. */
|
|
2180
|
+
oauth_token?: string;
|
|
2181
|
+
/** Returns response with indentations and line breaks. */
|
|
2182
|
+
prettyPrint?: boolean;
|
|
2183
|
+
/** 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. */
|
|
2184
|
+
quotaUser?: string;
|
|
2185
|
+
/**
|
|
2186
|
+
* 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
|
|
2187
|
+
* this field.
|
|
2188
|
+
*/
|
|
2189
|
+
resource: string;
|
|
2190
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2191
|
+
upload_protocol?: string;
|
|
2192
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2193
|
+
uploadType?: string;
|
|
2194
|
+
},
|
|
2195
|
+
body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
|
|
2093
2196
|
mappingRules: MappingRulesResource;
|
|
2094
2197
|
}
|
|
2095
2198
|
interface MigrationJobsResource {
|
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: 20230201
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -483,6 +483,11 @@ gapi.load('client', async () => {
|
|
|
483
483
|
await gapi.client.datamigration.projects.locations.conversionWorkspaces.get({
|
|
484
484
|
name: "Test string",
|
|
485
485
|
});
|
|
486
|
+
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
487
|
+
await gapi.client.datamigration.projects.locations.conversionWorkspaces.getIamPolicy({
|
|
488
|
+
"options.requestedPolicyVersion": 42,
|
|
489
|
+
resource: "Test string",
|
|
490
|
+
});
|
|
486
491
|
/** Lists conversion workspaces in a given project and location. */
|
|
487
492
|
await gapi.client.datamigration.projects.locations.conversionWorkspaces.list({
|
|
488
493
|
filter: "Test string",
|
|
@@ -538,6 +543,54 @@ gapi.load('client', async () => {
|
|
|
538
543
|
destinationConnectionProfile: "Test string",
|
|
539
544
|
sourceConnectionProfile: "Test string",
|
|
540
545
|
});
|
|
546
|
+
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
547
|
+
await gapi.client.datamigration.projects.locations.conversionWorkspaces.setIamPolicy({
|
|
548
|
+
resource: "Test string",
|
|
549
|
+
}, {
|
|
550
|
+
policy: {
|
|
551
|
+
auditConfigs: [
|
|
552
|
+
{
|
|
553
|
+
auditLogConfigs: [
|
|
554
|
+
{
|
|
555
|
+
exemptedMembers: [
|
|
556
|
+
"Test string"
|
|
557
|
+
],
|
|
558
|
+
logType: "Test string",
|
|
559
|
+
}
|
|
560
|
+
],
|
|
561
|
+
service: "Test string",
|
|
562
|
+
}
|
|
563
|
+
],
|
|
564
|
+
bindings: [
|
|
565
|
+
{
|
|
566
|
+
condition: {
|
|
567
|
+
description: "Test string",
|
|
568
|
+
expression: "Test string",
|
|
569
|
+
location: "Test string",
|
|
570
|
+
title: "Test string",
|
|
571
|
+
},
|
|
572
|
+
members: [
|
|
573
|
+
"Test string"
|
|
574
|
+
],
|
|
575
|
+
role: "Test string",
|
|
576
|
+
}
|
|
577
|
+
],
|
|
578
|
+
etag: "Test string",
|
|
579
|
+
version: 42,
|
|
580
|
+
},
|
|
581
|
+
updateMask: "Test string",
|
|
582
|
+
});
|
|
583
|
+
/**
|
|
584
|
+
* 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
|
|
585
|
+
* 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.
|
|
586
|
+
*/
|
|
587
|
+
await gapi.client.datamigration.projects.locations.conversionWorkspaces.testIamPermissions({
|
|
588
|
+
resource: "Test string",
|
|
589
|
+
}, {
|
|
590
|
+
permissions: [
|
|
591
|
+
"Test string"
|
|
592
|
+
],
|
|
593
|
+
});
|
|
541
594
|
/** Imports the mapping rules for a given conversion workspace. Supports various formats of external rules files. */
|
|
542
595
|
await gapi.client.datamigration.projects.locations.conversionWorkspaces.mappingRules.import({
|
|
543
596
|
parent: "Test string",
|