@maxim_mazurok/gapi.client.cloudasset-v1 0.0.20240809 → 0.0.20240823
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 +97 -1
- package/package.json +1 -1
- package/readme.md +10 -0
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://cloudasset.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20240823
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -125,6 +125,10 @@ declare namespace gapi.client {
|
|
|
125
125
|
/** The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed. */
|
|
126
126
|
updateTime?: string;
|
|
127
127
|
}
|
|
128
|
+
interface AssetEnrichment {
|
|
129
|
+
/** The resource owners for a resource. Note that this field only contains the members that have "roles/owner" role in the resource's IAM Policy. */
|
|
130
|
+
resourceOwners?: ResourceOwners;
|
|
131
|
+
}
|
|
128
132
|
interface AttachedResource {
|
|
129
133
|
/** The type of this attached resource. Example: `osconfig.googleapis.com/Inventory` You can find the supported attached asset types of each resource in this table: `https://cloud.google.com/asset-inventory/docs/supported-asset-types` */
|
|
130
134
|
assetType?: string;
|
|
@@ -171,6 +175,7 @@ declare namespace gapi.client {
|
|
|
171
175
|
/** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). */
|
|
172
176
|
role?: string;
|
|
173
177
|
}
|
|
178
|
+
interface CancelOperationRequest {}
|
|
174
179
|
interface ConditionContext {
|
|
175
180
|
/** The hypothetical access timestamp to evaluate IAM conditions. Note that this value must not be earlier than the current time; otherwise, an INVALID_ARGUMENT error will be returned. */
|
|
176
181
|
accessTime?: string;
|
|
@@ -1038,6 +1043,10 @@ declare namespace gapi.client {
|
|
|
1038
1043
|
/** The API version. Example: `v1` */
|
|
1039
1044
|
version?: string;
|
|
1040
1045
|
}
|
|
1046
|
+
interface ResourceOwners {
|
|
1047
|
+
/** List of resource owners. */
|
|
1048
|
+
resourceOwners?: string[];
|
|
1049
|
+
}
|
|
1041
1050
|
interface ResourceSearchResult {
|
|
1042
1051
|
/** The additional searchable attributes of this resource. The attributes may vary from one resource type to another. Examples: `projectId` for Project, `dnsName` for DNS ManagedZone. This field contains a subset of the resource metadata fields that are returned by the List or Get APIs provided by the corresponding Google Cloud service (e.g., Compute Engine). see [API references and supported searchable attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types) to see which fields are included. You can search values of these fields through free text search. However, you should not consume the field programically as the field names and values may change as the Google Cloud service updates to a new incompatible API version. To search against the `additional_attributes`: * Use a free text query to match the attributes values. Example: to search `additional_attributes = { dnsName: "foobar" }`, you can issue a query `foobar`. */
|
|
1043
1052
|
additionalAttributes?: {[P in string]: any};
|
|
@@ -1053,6 +1062,8 @@ declare namespace gapi.client {
|
|
|
1053
1062
|
displayName?: string;
|
|
1054
1063
|
/** The effective tags on this resource. All of the tags that are both attached to and inherited by a resource are collectively called the effective tags. For more information, see [tag inheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance). To search against the `effective_tags`: * Use a field query. Example: - `effectiveTagKeys:"123456789/env*"` - `effectiveTagKeys="123456789/env"` - `effectiveTagKeys:"env"` - `effectiveTagKeyIds="tagKeys/123"` - `effectiveTagValues:"env"` - `effectiveTagValues:"env/prod"` - `effectiveTagValues:"123456789/env/prod*"` - `effectiveTagValues="123456789/env/prod"` - `effectiveTagValueIds="tagValues/456"` */
|
|
1055
1064
|
effectiveTags?: EffectiveTagDetails[];
|
|
1065
|
+
/** Enrichments of the asset. Currently supported enrichment types with SearchAllResources API: * RESOURCE_OWNERS The corresponding read masks in order to get the enrichment: * enrichments.resource_owners The corresponding required permissions: * cloudasset.assets.searchEnrichmentResourceOwners Example query to get resource owner enrichment: scope: "projects/my-project" query: "name: my-project" assetTypes: "cloudresourcemanager.googleapis.com/Project" readMask: { paths: "asset_type" paths: "name" paths: "enrichments.resource_owners" } */
|
|
1066
|
+
enrichments?: AssetEnrichment[];
|
|
1056
1067
|
/** The folder(s) that this resource belongs to, in the form of folders/{FOLDER_NUMBER}. This field is available when the resource belongs to one or more folders. To search against `folders`: * Use a field query. Example: `folders:(123 OR 456)` * Use a free text query. Example: `123` * Specify the `scope` field as this folder in your search request. */
|
|
1057
1068
|
folders?: string[];
|
|
1058
1069
|
/** The Cloud KMS [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys) name or [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions) name. This field only presents for the purpose of backward compatibility. Use the `kms_keys` field to retrieve Cloud KMS key information. This field is available only when the resource's Protobuf contains it and will only be populated for [these resource types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field) for backward compatible purposes. To search against the `kms_key`: * Use a field query. Example: `kmsKey:key` * Use a free text query. Example: `key` */
|
|
@@ -1548,6 +1559,91 @@ declare namespace gapi.client {
|
|
|
1548
1559
|
): Request<Feed>;
|
|
1549
1560
|
}
|
|
1550
1561
|
interface OperationsResource {
|
|
1562
|
+
/** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. */
|
|
1563
|
+
cancel(request: {
|
|
1564
|
+
/** V1 error format. */
|
|
1565
|
+
'$.xgafv'?: string;
|
|
1566
|
+
/** OAuth access token. */
|
|
1567
|
+
access_token?: string;
|
|
1568
|
+
/** Data format for response. */
|
|
1569
|
+
alt?: string;
|
|
1570
|
+
/** JSONP */
|
|
1571
|
+
callback?: string;
|
|
1572
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1573
|
+
fields?: string;
|
|
1574
|
+
/** 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. */
|
|
1575
|
+
key?: string;
|
|
1576
|
+
/** The name of the operation resource to be cancelled. */
|
|
1577
|
+
name: string;
|
|
1578
|
+
/** OAuth 2.0 token for the current user. */
|
|
1579
|
+
oauth_token?: string;
|
|
1580
|
+
/** Returns response with indentations and line breaks. */
|
|
1581
|
+
prettyPrint?: boolean;
|
|
1582
|
+
/** 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. */
|
|
1583
|
+
quotaUser?: string;
|
|
1584
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1585
|
+
upload_protocol?: string;
|
|
1586
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1587
|
+
uploadType?: string;
|
|
1588
|
+
/** Request body */
|
|
1589
|
+
resource: CancelOperationRequest;
|
|
1590
|
+
}): Request<{}>;
|
|
1591
|
+
cancel(
|
|
1592
|
+
request: {
|
|
1593
|
+
/** V1 error format. */
|
|
1594
|
+
'$.xgafv'?: string;
|
|
1595
|
+
/** OAuth access token. */
|
|
1596
|
+
access_token?: string;
|
|
1597
|
+
/** Data format for response. */
|
|
1598
|
+
alt?: string;
|
|
1599
|
+
/** JSONP */
|
|
1600
|
+
callback?: string;
|
|
1601
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1602
|
+
fields?: string;
|
|
1603
|
+
/** 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. */
|
|
1604
|
+
key?: string;
|
|
1605
|
+
/** The name of the operation resource to be cancelled. */
|
|
1606
|
+
name: string;
|
|
1607
|
+
/** OAuth 2.0 token for the current user. */
|
|
1608
|
+
oauth_token?: string;
|
|
1609
|
+
/** Returns response with indentations and line breaks. */
|
|
1610
|
+
prettyPrint?: boolean;
|
|
1611
|
+
/** 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. */
|
|
1612
|
+
quotaUser?: string;
|
|
1613
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1614
|
+
upload_protocol?: string;
|
|
1615
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1616
|
+
uploadType?: string;
|
|
1617
|
+
},
|
|
1618
|
+
body: CancelOperationRequest
|
|
1619
|
+
): Request<{}>;
|
|
1620
|
+
/** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
|
|
1621
|
+
delete(request?: {
|
|
1622
|
+
/** V1 error format. */
|
|
1623
|
+
'$.xgafv'?: string;
|
|
1624
|
+
/** OAuth access token. */
|
|
1625
|
+
access_token?: string;
|
|
1626
|
+
/** Data format for response. */
|
|
1627
|
+
alt?: string;
|
|
1628
|
+
/** JSONP */
|
|
1629
|
+
callback?: string;
|
|
1630
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1631
|
+
fields?: string;
|
|
1632
|
+
/** 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. */
|
|
1633
|
+
key?: string;
|
|
1634
|
+
/** The name of the operation resource to be deleted. */
|
|
1635
|
+
name: string;
|
|
1636
|
+
/** OAuth 2.0 token for the current user. */
|
|
1637
|
+
oauth_token?: string;
|
|
1638
|
+
/** Returns response with indentations and line breaks. */
|
|
1639
|
+
prettyPrint?: boolean;
|
|
1640
|
+
/** 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. */
|
|
1641
|
+
quotaUser?: string;
|
|
1642
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1643
|
+
upload_protocol?: string;
|
|
1644
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1645
|
+
uploadType?: string;
|
|
1646
|
+
}): Request<{}>;
|
|
1551
1647
|
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
1552
1648
|
get(request?: {
|
|
1553
1649
|
/** V1 error format. */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -104,6 +104,16 @@ Updates an asset feed configuration.
|
|
|
104
104
|
*/
|
|
105
105
|
await gapi.client.cloudasset.feeds.patch({name: 'name'});
|
|
106
106
|
|
|
107
|
+
/*
|
|
108
|
+
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
|
|
109
|
+
*/
|
|
110
|
+
await gapi.client.cloudasset.operations.cancel({name: 'name'});
|
|
111
|
+
|
|
112
|
+
/*
|
|
113
|
+
Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
114
|
+
*/
|
|
115
|
+
await gapi.client.cloudasset.operations.delete({name: 'name'});
|
|
116
|
+
|
|
107
117
|
/*
|
|
108
118
|
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
|
|
109
119
|
*/
|