@google-cloud/spanner 6.1.3 → 6.1.4
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/CHANGELOG.md +13 -0
- package/README.md +6 -1
- package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +60 -0
- package/build/protos/protos.d.ts +1566 -3
- package/build/protos/protos.js +6266 -2102
- package/build/protos/protos.json +94 -5
- package/build/src/v1/database_admin_client.d.ts +259 -0
- package/build/src/v1/database_admin_client.js +331 -18
- package/build/src/v1/database_admin_client_config.json +5 -0
- package/build/src/v1/instance_admin_client.js +3 -3
- package/build/src/v1/spanner_client.js +1 -1
- package/package.json +6 -6
package/build/protos/protos.json
CHANGED
|
@@ -96,6 +96,10 @@
|
|
|
96
96
|
"syntax": {
|
|
97
97
|
"type": "string",
|
|
98
98
|
"id": 12
|
|
99
|
+
},
|
|
100
|
+
"edition": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"id": 13
|
|
99
103
|
}
|
|
100
104
|
}
|
|
101
105
|
},
|
|
@@ -923,6 +927,19 @@
|
|
|
923
927
|
"end": {
|
|
924
928
|
"type": "int32",
|
|
925
929
|
"id": 4
|
|
930
|
+
},
|
|
931
|
+
"semantic": {
|
|
932
|
+
"type": "Semantic",
|
|
933
|
+
"id": 5
|
|
934
|
+
}
|
|
935
|
+
},
|
|
936
|
+
"nested": {
|
|
937
|
+
"Semantic": {
|
|
938
|
+
"values": {
|
|
939
|
+
"NONE": 0,
|
|
940
|
+
"SET": 1,
|
|
941
|
+
"ALIAS": 2
|
|
942
|
+
}
|
|
926
943
|
}
|
|
927
944
|
}
|
|
928
945
|
}
|
|
@@ -1938,7 +1955,7 @@
|
|
|
1938
1955
|
"options": {
|
|
1939
1956
|
"(google.api.http).post": "/v1/{resource=projects/*/instances/*/databases/*}:testIamPermissions",
|
|
1940
1957
|
"(google.api.http).body": "*",
|
|
1941
|
-
"(google.api.http).additional_bindings.post": "/v1/{resource=projects/*/instances/*/
|
|
1958
|
+
"(google.api.http).additional_bindings.post": "/v1/{resource=projects/*/instances/*/databases/*/databaseRoles/*}:testIamPermissions",
|
|
1942
1959
|
"(google.api.http).additional_bindings.body": "*",
|
|
1943
1960
|
"(google.api.method_signature)": "resource,permissions"
|
|
1944
1961
|
},
|
|
@@ -1947,10 +1964,16 @@
|
|
|
1947
1964
|
"(google.api.http)": {
|
|
1948
1965
|
"post": "/v1/{resource=projects/*/instances/*/databases/*}:testIamPermissions",
|
|
1949
1966
|
"body": "*",
|
|
1950
|
-
"additional_bindings":
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1967
|
+
"additional_bindings": [
|
|
1968
|
+
{
|
|
1969
|
+
"post": "/v1/{resource=projects/*/instances/*/backups/*}:testIamPermissions",
|
|
1970
|
+
"body": "*"
|
|
1971
|
+
},
|
|
1972
|
+
{
|
|
1973
|
+
"post": "/v1/{resource=projects/*/instances/*/databases/*/databaseRoles/*}:testIamPermissions",
|
|
1974
|
+
"body": "*"
|
|
1975
|
+
}
|
|
1976
|
+
]
|
|
1954
1977
|
}
|
|
1955
1978
|
},
|
|
1956
1979
|
{
|
|
@@ -2151,6 +2174,24 @@
|
|
|
2151
2174
|
"(google.api.method_signature)": "parent"
|
|
2152
2175
|
}
|
|
2153
2176
|
]
|
|
2177
|
+
},
|
|
2178
|
+
"ListDatabaseRoles": {
|
|
2179
|
+
"requestType": "ListDatabaseRolesRequest",
|
|
2180
|
+
"responseType": "ListDatabaseRolesResponse",
|
|
2181
|
+
"options": {
|
|
2182
|
+
"(google.api.http).get": "/v1/{parent=projects/*/instances/*/databases/*}/databaseRoles",
|
|
2183
|
+
"(google.api.method_signature)": "parent"
|
|
2184
|
+
},
|
|
2185
|
+
"parsedOptions": [
|
|
2186
|
+
{
|
|
2187
|
+
"(google.api.http)": {
|
|
2188
|
+
"get": "/v1/{parent=projects/*/instances/*/databases/*}/databaseRoles"
|
|
2189
|
+
}
|
|
2190
|
+
},
|
|
2191
|
+
{
|
|
2192
|
+
"(google.api.method_signature)": "parent"
|
|
2193
|
+
}
|
|
2194
|
+
]
|
|
2154
2195
|
}
|
|
2155
2196
|
}
|
|
2156
2197
|
},
|
|
@@ -2613,6 +2654,54 @@
|
|
|
2613
2654
|
"TYPE_UNSPECIFIED": 0,
|
|
2614
2655
|
"BACKUP": 1
|
|
2615
2656
|
}
|
|
2657
|
+
},
|
|
2658
|
+
"DatabaseRole": {
|
|
2659
|
+
"options": {
|
|
2660
|
+
"(google.api.resource).type": "spanner.googleapis.com/DatabaseRole",
|
|
2661
|
+
"(google.api.resource).pattern": "projects/{project}/instances/{instance}/databases/{database}/databaseRoles/{role}"
|
|
2662
|
+
},
|
|
2663
|
+
"fields": {
|
|
2664
|
+
"name": {
|
|
2665
|
+
"type": "string",
|
|
2666
|
+
"id": 1,
|
|
2667
|
+
"options": {
|
|
2668
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
2669
|
+
}
|
|
2670
|
+
}
|
|
2671
|
+
}
|
|
2672
|
+
},
|
|
2673
|
+
"ListDatabaseRolesRequest": {
|
|
2674
|
+
"fields": {
|
|
2675
|
+
"parent": {
|
|
2676
|
+
"type": "string",
|
|
2677
|
+
"id": 1,
|
|
2678
|
+
"options": {
|
|
2679
|
+
"(google.api.field_behavior)": "REQUIRED",
|
|
2680
|
+
"(google.api.resource_reference).type": "spanner.googleapis.com/Database"
|
|
2681
|
+
}
|
|
2682
|
+
},
|
|
2683
|
+
"pageSize": {
|
|
2684
|
+
"type": "int32",
|
|
2685
|
+
"id": 2
|
|
2686
|
+
},
|
|
2687
|
+
"pageToken": {
|
|
2688
|
+
"type": "string",
|
|
2689
|
+
"id": 3
|
|
2690
|
+
}
|
|
2691
|
+
}
|
|
2692
|
+
},
|
|
2693
|
+
"ListDatabaseRolesResponse": {
|
|
2694
|
+
"fields": {
|
|
2695
|
+
"databaseRoles": {
|
|
2696
|
+
"rule": "repeated",
|
|
2697
|
+
"type": "DatabaseRole",
|
|
2698
|
+
"id": 1
|
|
2699
|
+
},
|
|
2700
|
+
"nextPageToken": {
|
|
2701
|
+
"type": "string",
|
|
2702
|
+
"id": 2
|
|
2703
|
+
}
|
|
2704
|
+
}
|
|
2616
2705
|
}
|
|
2617
2706
|
}
|
|
2618
2707
|
}
|
|
@@ -1568,6 +1568,223 @@ export declare class DatabaseAdminClient {
|
|
|
1568
1568
|
* region_tag:spanner_v1_generated_DatabaseAdmin_ListBackupOperations_async
|
|
1569
1569
|
*/
|
|
1570
1570
|
listBackupOperationsAsync(request?: protos.google.spanner.admin.database.v1.IListBackupOperationsRequest, options?: CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
|
|
1571
|
+
/**
|
|
1572
|
+
* Lists Cloud Spanner database roles.
|
|
1573
|
+
*
|
|
1574
|
+
* @param {Object} request
|
|
1575
|
+
* The request object that will be sent.
|
|
1576
|
+
* @param {string} request.parent
|
|
1577
|
+
* Required. The database whose roles should be listed.
|
|
1578
|
+
* Values are of the form
|
|
1579
|
+
* `projects/<project>/instances/<instance>/databases/<database>/databaseRoles`.
|
|
1580
|
+
* @param {number} request.pageSize
|
|
1581
|
+
* Number of database roles to be returned in the response. If 0 or less,
|
|
1582
|
+
* defaults to the server's maximum allowed page size.
|
|
1583
|
+
* @param {string} request.pageToken
|
|
1584
|
+
* If non-empty, `page_token` should contain a
|
|
1585
|
+
* {@link google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token|next_page_token} from a
|
|
1586
|
+
* previous {@link google.spanner.admin.database.v1.ListDatabaseRolesResponse|ListDatabaseRolesResponse}.
|
|
1587
|
+
* @param {object} [options]
|
|
1588
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1589
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
1590
|
+
* The first element of the array is Array of [DatabaseRole]{@link google.spanner.admin.database.v1.DatabaseRole}.
|
|
1591
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
1592
|
+
* times as needed and will merge results from all the pages into this array.
|
|
1593
|
+
* Note that it can affect your quota.
|
|
1594
|
+
* We recommend using `listDatabaseRolesAsync()`
|
|
1595
|
+
* method described below for async iteration which you can stop as needed.
|
|
1596
|
+
* Please see the
|
|
1597
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1598
|
+
* for more details and examples.
|
|
1599
|
+
*/
|
|
1600
|
+
listDatabaseRoles(request?: protos.google.spanner.admin.database.v1.IListDatabaseRolesRequest, options?: CallOptions): Promise<[
|
|
1601
|
+
protos.google.spanner.admin.database.v1.IDatabaseRole[],
|
|
1602
|
+
protos.google.spanner.admin.database.v1.IListDatabaseRolesRequest | null,
|
|
1603
|
+
protos.google.spanner.admin.database.v1.IListDatabaseRolesResponse
|
|
1604
|
+
]>;
|
|
1605
|
+
listDatabaseRoles(request: protos.google.spanner.admin.database.v1.IListDatabaseRolesRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListDatabaseRolesRequest, protos.google.spanner.admin.database.v1.IListDatabaseRolesResponse | null | undefined, protos.google.spanner.admin.database.v1.IDatabaseRole>): void;
|
|
1606
|
+
listDatabaseRoles(request: protos.google.spanner.admin.database.v1.IListDatabaseRolesRequest, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListDatabaseRolesRequest, protos.google.spanner.admin.database.v1.IListDatabaseRolesResponse | null | undefined, protos.google.spanner.admin.database.v1.IDatabaseRole>): void;
|
|
1607
|
+
/**
|
|
1608
|
+
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
|
|
1609
|
+
* @param {Object} request
|
|
1610
|
+
* The request object that will be sent.
|
|
1611
|
+
* @param {string} request.parent
|
|
1612
|
+
* Required. The database whose roles should be listed.
|
|
1613
|
+
* Values are of the form
|
|
1614
|
+
* `projects/<project>/instances/<instance>/databases/<database>/databaseRoles`.
|
|
1615
|
+
* @param {number} request.pageSize
|
|
1616
|
+
* Number of database roles to be returned in the response. If 0 or less,
|
|
1617
|
+
* defaults to the server's maximum allowed page size.
|
|
1618
|
+
* @param {string} request.pageToken
|
|
1619
|
+
* If non-empty, `page_token` should contain a
|
|
1620
|
+
* {@link google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token|next_page_token} from a
|
|
1621
|
+
* previous {@link google.spanner.admin.database.v1.ListDatabaseRolesResponse|ListDatabaseRolesResponse}.
|
|
1622
|
+
* @param {object} [options]
|
|
1623
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1624
|
+
* @returns {Stream}
|
|
1625
|
+
* An object stream which emits an object representing [DatabaseRole]{@link google.spanner.admin.database.v1.DatabaseRole} on 'data' event.
|
|
1626
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
1627
|
+
* times as needed. Note that it can affect your quota.
|
|
1628
|
+
* We recommend using `listDatabaseRolesAsync()`
|
|
1629
|
+
* method described below for async iteration which you can stop as needed.
|
|
1630
|
+
* Please see the
|
|
1631
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1632
|
+
* for more details and examples.
|
|
1633
|
+
*/
|
|
1634
|
+
listDatabaseRolesStream(request?: protos.google.spanner.admin.database.v1.IListDatabaseRolesRequest, options?: CallOptions): Transform;
|
|
1635
|
+
/**
|
|
1636
|
+
* Equivalent to `listDatabaseRoles`, but returns an iterable object.
|
|
1637
|
+
*
|
|
1638
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
|
1639
|
+
* @param {Object} request
|
|
1640
|
+
* The request object that will be sent.
|
|
1641
|
+
* @param {string} request.parent
|
|
1642
|
+
* Required. The database whose roles should be listed.
|
|
1643
|
+
* Values are of the form
|
|
1644
|
+
* `projects/<project>/instances/<instance>/databases/<database>/databaseRoles`.
|
|
1645
|
+
* @param {number} request.pageSize
|
|
1646
|
+
* Number of database roles to be returned in the response. If 0 or less,
|
|
1647
|
+
* defaults to the server's maximum allowed page size.
|
|
1648
|
+
* @param {string} request.pageToken
|
|
1649
|
+
* If non-empty, `page_token` should contain a
|
|
1650
|
+
* {@link google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token|next_page_token} from a
|
|
1651
|
+
* previous {@link google.spanner.admin.database.v1.ListDatabaseRolesResponse|ListDatabaseRolesResponse}.
|
|
1652
|
+
* @param {object} [options]
|
|
1653
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1654
|
+
* @returns {Object}
|
|
1655
|
+
* An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
|
|
1656
|
+
* When you iterate the returned iterable, each element will be an object representing
|
|
1657
|
+
* [DatabaseRole]{@link google.spanner.admin.database.v1.DatabaseRole}. The API will be called under the hood as needed, once per the page,
|
|
1658
|
+
* so you can stop the iteration when you don't need more results.
|
|
1659
|
+
* Please see the
|
|
1660
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1661
|
+
* for more details and examples.
|
|
1662
|
+
* @example <caption>include:samples/generated/v1/database_admin.list_database_roles.js</caption>
|
|
1663
|
+
* region_tag:spanner_v1_generated_DatabaseAdmin_ListDatabaseRoles_async
|
|
1664
|
+
*/
|
|
1665
|
+
listDatabaseRolesAsync(request?: protos.google.spanner.admin.database.v1.IListDatabaseRolesRequest, options?: CallOptions): AsyncIterable<protos.google.spanner.admin.database.v1.IDatabaseRole>;
|
|
1666
|
+
/**
|
|
1667
|
+
* Gets the latest state of a long-running operation. Clients can use this
|
|
1668
|
+
* method to poll the operation result at intervals as recommended by the API
|
|
1669
|
+
* service.
|
|
1670
|
+
*
|
|
1671
|
+
* @param {Object} request - The request object that will be sent.
|
|
1672
|
+
* @param {string} request.name - The name of the operation resource.
|
|
1673
|
+
* @param {Object=} options
|
|
1674
|
+
* Optional parameters. You can override the default settings for this call,
|
|
1675
|
+
* e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link
|
|
1676
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the
|
|
1677
|
+
* details.
|
|
1678
|
+
* @param {function(?Error, ?Object)=} callback
|
|
1679
|
+
* The function which will be called with the result of the API call.
|
|
1680
|
+
*
|
|
1681
|
+
* The second parameter to the callback is an object representing
|
|
1682
|
+
* [google.longrunning.Operation]{@link
|
|
1683
|
+
* external:"google.longrunning.Operation"}.
|
|
1684
|
+
* @return {Promise} - The promise which resolves to an array.
|
|
1685
|
+
* The first element of the array is an object representing
|
|
1686
|
+
* [google.longrunning.Operation]{@link
|
|
1687
|
+
* external:"google.longrunning.Operation"}. The promise has a method named
|
|
1688
|
+
* "cancel" which cancels the ongoing API call.
|
|
1689
|
+
*
|
|
1690
|
+
* @example
|
|
1691
|
+
* ```
|
|
1692
|
+
* const client = longrunning.operationsClient();
|
|
1693
|
+
* const name = '';
|
|
1694
|
+
* const [response] = await client.getOperation({name});
|
|
1695
|
+
* // doThingsWith(response)
|
|
1696
|
+
* ```
|
|
1697
|
+
*/
|
|
1698
|
+
getOperation(request: protos.google.longrunning.GetOperationRequest, options?: gax.CallOptions | Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>): Promise<[protos.google.longrunning.Operation]>;
|
|
1699
|
+
/**
|
|
1700
|
+
* Lists operations that match the specified filter in the request. If the
|
|
1701
|
+
* server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object.
|
|
1702
|
+
*
|
|
1703
|
+
* For-await-of syntax is used with the iterable to recursively get response element on-demand.
|
|
1704
|
+
*
|
|
1705
|
+
* @param {Object} request - The request object that will be sent.
|
|
1706
|
+
* @param {string} request.name - The name of the operation collection.
|
|
1707
|
+
* @param {string} request.filter - The standard list filter.
|
|
1708
|
+
* @param {number=} request.pageSize -
|
|
1709
|
+
* The maximum number of resources contained in the underlying API
|
|
1710
|
+
* response. If page streaming is performed per-resource, this
|
|
1711
|
+
* parameter does not affect the return value. If page streaming is
|
|
1712
|
+
* performed per-page, this determines the maximum number of
|
|
1713
|
+
* resources in a page.
|
|
1714
|
+
* @param {Object=} options
|
|
1715
|
+
* Optional parameters. You can override the default settings for this call,
|
|
1716
|
+
* e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link
|
|
1717
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the
|
|
1718
|
+
* details.
|
|
1719
|
+
* @returns {Object}
|
|
1720
|
+
* An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols.
|
|
1721
|
+
*
|
|
1722
|
+
* @example
|
|
1723
|
+
* ```
|
|
1724
|
+
* const client = longrunning.operationsClient();
|
|
1725
|
+
* for await (const response of client.listOperationsAsync(request));
|
|
1726
|
+
* // doThingsWith(response)
|
|
1727
|
+
* ```
|
|
1728
|
+
*/
|
|
1729
|
+
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.ListOperationsResponse>;
|
|
1730
|
+
/**
|
|
1731
|
+
* Starts asynchronous cancellation on a long-running operation. The server
|
|
1732
|
+
* makes a best effort to cancel the operation, but success is not
|
|
1733
|
+
* guaranteed. If the server doesn't support this method, it returns
|
|
1734
|
+
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
|
1735
|
+
* {@link Operations.GetOperation} or
|
|
1736
|
+
* other methods to check whether the cancellation succeeded or whether the
|
|
1737
|
+
* operation completed despite cancellation. On successful cancellation,
|
|
1738
|
+
* the operation is not deleted; instead, it becomes an operation with
|
|
1739
|
+
* an {@link Operation.error} value with a {@link google.rpc.Status.code} of
|
|
1740
|
+
* 1, corresponding to `Code.CANCELLED`.
|
|
1741
|
+
*
|
|
1742
|
+
* @param {Object} request - The request object that will be sent.
|
|
1743
|
+
* @param {string} request.name - The name of the operation resource to be cancelled.
|
|
1744
|
+
* @param {Object=} options
|
|
1745
|
+
* Optional parameters. You can override the default settings for this call,
|
|
1746
|
+
* e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link
|
|
1747
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the
|
|
1748
|
+
* details.
|
|
1749
|
+
* @param {function(?Error)=} callback
|
|
1750
|
+
* The function which will be called with the result of the API call.
|
|
1751
|
+
* @return {Promise} - The promise which resolves when API call finishes.
|
|
1752
|
+
* The promise has a method named "cancel" which cancels the ongoing API
|
|
1753
|
+
* call.
|
|
1754
|
+
*
|
|
1755
|
+
* @example
|
|
1756
|
+
* ```
|
|
1757
|
+
* const client = longrunning.operationsClient();
|
|
1758
|
+
* await client.cancelOperation({name: ''});
|
|
1759
|
+
* ```
|
|
1760
|
+
*/
|
|
1761
|
+
cancelOperation(request: protos.google.longrunning.CancelOperationRequest, options?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.CancelOperationRequest, {} | undefined | null>, callback?: Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>): Promise<protos.google.protobuf.Empty>;
|
|
1762
|
+
/**
|
|
1763
|
+
* Deletes a long-running operation. This method indicates that the client is
|
|
1764
|
+
* no longer interested in the operation result. It does not cancel the
|
|
1765
|
+
* operation. If the server doesn't support this method, it returns
|
|
1766
|
+
* `google.rpc.Code.UNIMPLEMENTED`.
|
|
1767
|
+
*
|
|
1768
|
+
* @param {Object} request - The request object that will be sent.
|
|
1769
|
+
* @param {string} request.name - The name of the operation resource to be deleted.
|
|
1770
|
+
* @param {Object=} options
|
|
1771
|
+
* Optional parameters. You can override the default settings for this call,
|
|
1772
|
+
* e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link
|
|
1773
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the
|
|
1774
|
+
* details.
|
|
1775
|
+
* @param {function(?Error)=} callback
|
|
1776
|
+
* The function which will be called with the result of the API call.
|
|
1777
|
+
* @return {Promise} - The promise which resolves when API call finishes.
|
|
1778
|
+
* The promise has a method named "cancel" which cancels the ongoing API
|
|
1779
|
+
* call.
|
|
1780
|
+
*
|
|
1781
|
+
* @example
|
|
1782
|
+
* ```
|
|
1783
|
+
* const client = longrunning.operationsClient();
|
|
1784
|
+
* await client.deleteOperation({name: ''});
|
|
1785
|
+
* ```
|
|
1786
|
+
*/
|
|
1787
|
+
deleteOperation(request: protos.google.longrunning.DeleteOperationRequest, options?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>): Promise<protos.google.protobuf.Empty>;
|
|
1571
1788
|
/**
|
|
1572
1789
|
* Return a fully-qualified backup resource name string.
|
|
1573
1790
|
*
|
|
@@ -1676,6 +1893,48 @@ export declare class DatabaseAdminClient {
|
|
|
1676
1893
|
* @returns {string} A string representing the database.
|
|
1677
1894
|
*/
|
|
1678
1895
|
matchDatabaseFromDatabaseName(databaseName: string): string | number;
|
|
1896
|
+
/**
|
|
1897
|
+
* Return a fully-qualified databaseRole resource name string.
|
|
1898
|
+
*
|
|
1899
|
+
* @param {string} project
|
|
1900
|
+
* @param {string} instance
|
|
1901
|
+
* @param {string} database
|
|
1902
|
+
* @param {string} role
|
|
1903
|
+
* @returns {string} Resource name string.
|
|
1904
|
+
*/
|
|
1905
|
+
databaseRolePath(project: string, instance: string, database: string, role: string): string;
|
|
1906
|
+
/**
|
|
1907
|
+
* Parse the project from DatabaseRole resource.
|
|
1908
|
+
*
|
|
1909
|
+
* @param {string} databaseRoleName
|
|
1910
|
+
* A fully-qualified path representing DatabaseRole resource.
|
|
1911
|
+
* @returns {string} A string representing the project.
|
|
1912
|
+
*/
|
|
1913
|
+
matchProjectFromDatabaseRoleName(databaseRoleName: string): string | number;
|
|
1914
|
+
/**
|
|
1915
|
+
* Parse the instance from DatabaseRole resource.
|
|
1916
|
+
*
|
|
1917
|
+
* @param {string} databaseRoleName
|
|
1918
|
+
* A fully-qualified path representing DatabaseRole resource.
|
|
1919
|
+
* @returns {string} A string representing the instance.
|
|
1920
|
+
*/
|
|
1921
|
+
matchInstanceFromDatabaseRoleName(databaseRoleName: string): string | number;
|
|
1922
|
+
/**
|
|
1923
|
+
* Parse the database from DatabaseRole resource.
|
|
1924
|
+
*
|
|
1925
|
+
* @param {string} databaseRoleName
|
|
1926
|
+
* A fully-qualified path representing DatabaseRole resource.
|
|
1927
|
+
* @returns {string} A string representing the database.
|
|
1928
|
+
*/
|
|
1929
|
+
matchDatabaseFromDatabaseRoleName(databaseRoleName: string): string | number;
|
|
1930
|
+
/**
|
|
1931
|
+
* Parse the role from DatabaseRole resource.
|
|
1932
|
+
*
|
|
1933
|
+
* @param {string} databaseRoleName
|
|
1934
|
+
* A fully-qualified path representing DatabaseRole resource.
|
|
1935
|
+
* @returns {string} A string representing the role.
|
|
1936
|
+
*/
|
|
1937
|
+
matchRoleFromDatabaseRoleName(databaseRoleName: string): string | number;
|
|
1679
1938
|
/**
|
|
1680
1939
|
* Return a fully-qualified instance resource name string.
|
|
1681
1940
|
*
|