Skip to content

Commit 61d93fd

Browse files
feat(cloudasset): update the api
#### cloudasset:v1 The following keys were added: - resources.effectiveIamPolicies.methods.batchGet (Total Keys: 14) - schemas.BatchGetEffectiveIamPoliciesResponse (Total Keys: 4) - schemas.EffectiveIamPolicy (Total Keys: 5) - schemas.PolicyInfo (Total Keys: 4)
1 parent 3ac3562 commit 61d93fd

File tree

8 files changed

+242
-6
lines changed

8 files changed

+242
-6
lines changed

docs/dyn/cloudasset_v1.effectiveIamPolicies.html

Lines changed: 149 additions & 0 deletions
Large diffs are not rendered by default.

docs/dyn/cloudasset_v1.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ <h2>Instance Methods</h2>
7979
</p>
8080
<p class="firstline">Returns the assets Resource.</p>
8181

82+
<p class="toc_element">
83+
<code><a href="cloudasset_v1.effectiveIamPolicies.html">effectiveIamPolicies()</a></code>
84+
</p>
85+
<p class="firstline">Returns the effectiveIamPolicies Resource.</p>
86+
8287
<p class="toc_element">
8388
<code><a href="cloudasset_v1.feeds.html">feeds()</a></code>
8489
</p>

googleapiclient/discovery_cache/documents/cloudasset.v1.json

Lines changed: 83 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,41 @@
186186
}
187187
}
188188
},
189+
"effectiveIamPolicies": {
190+
"methods": {
191+
"batchGet": {
192+
"description": "Gets effective IAM policies for a batch of resources.",
193+
"flatPath": "v1/{v1Id}/{v1Id1}/effectiveIamPolicies:batchGet",
194+
"httpMethod": "GET",
195+
"id": "cloudasset.effectiveIamPolicies.batchGet",
196+
"parameterOrder": [
197+
"scope"
198+
],
199+
"parameters": {
200+
"names": {
201+
"description": "Required. The names refer to the [full_resource_names] (https://cloud.google.com/asset-inventory/docs/resource-name-format) of [searchable asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types). A maximum of 20 resources' effective policies can be retrieved in a batch.",
202+
"location": "query",
203+
"repeated": true,
204+
"type": "string"
205+
},
206+
"scope": {
207+
"description": "Required. Only IAM policies on or below the scope will be returned. This can only be an organization number (such as \"organizations/123\"), a folder number (such as \"folders/123\"), a project ID (such as \"projects/my-project-id\"), or a project number (such as \"projects/12345\"). To know how to get organization id, visit [here ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id). To know how to get folder or project id, visit [here ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).",
208+
"location": "path",
209+
"pattern": "^[^/]+/[^/]+$",
210+
"required": true,
211+
"type": "string"
212+
}
213+
},
214+
"path": "v1/{+scope}/effectiveIamPolicies:batchGet",
215+
"response": {
216+
"$ref": "BatchGetEffectiveIamPoliciesResponse"
217+
},
218+
"scopes": [
219+
"https://www.googleapis.com/auth/cloud-platform"
220+
]
221+
}
222+
}
223+
},
189224
"feeds": {
190225
"methods": {
191226
"create": {
@@ -894,7 +929,7 @@
894929
}
895930
}
896931
},
897-
"revision": "20220131",
932+
"revision": "20220211",
898933
"rootUrl": "https://cloudasset.googleapis.com/",
899934
"schemas": {
900935
"AccessSelector": {
@@ -1134,6 +1169,20 @@
11341169
},
11351170
"type": "object"
11361171
},
1172+
"BatchGetEffectiveIamPoliciesResponse": {
1173+
"description": "A response message for AssetService.BatchGetEffectiveIamPolicies.",
1174+
"id": "BatchGetEffectiveIamPoliciesResponse",
1175+
"properties": {
1176+
"policyResults": {
1177+
"description": "The effective policies for a batch of resources. Note that the results order is the same as the order of BatchGetEffectiveIamPoliciesRequest.names. When a resource does not have any effective IAM policies, its corresponding policy_result will contain empty EffectiveIamPolicy.policies.",
1178+
"items": {
1179+
"$ref": "EffectiveIamPolicy"
1180+
},
1181+
"type": "array"
1182+
}
1183+
},
1184+
"type": "object"
1185+
},
11371186
"BigQueryDestination": {
11381187
"description": "A BigQuery destination for exporting assets to.",
11391188
"id": "BigQueryDestination",
@@ -1255,6 +1304,24 @@
12551304
},
12561305
"type": "object"
12571306
},
1307+
"EffectiveIamPolicy": {
1308+
"description": "The effective IAM policies on one resource.",
1309+
"id": "EffectiveIamPolicy",
1310+
"properties": {
1311+
"fullResourceName": {
1312+
"description": "The [full_resource_name] (https://cloud.google.com/asset-inventory/docs/resource-name-format) for which the policies are computed. This is one of the BatchGetEffectiveIamPoliciesRequest.names the caller provides in the request.",
1313+
"type": "string"
1314+
},
1315+
"policies": {
1316+
"description": "The effective policies for the full_resource_name. These policies include the policy set on the full_resource_name and those set on its parents and ancestors up to the BatchGetEffectiveIamPoliciesRequest.scope. Note that these policies are not filtered according to the resource type of the full_resource_name. These policies are hierarchically ordered by PolicyInfo.attached_resource starting from full_resource_name itself to its parents and ancestors, such that policies[i]'s PolicyInfo.attached_resource is the child of policies[i+1]'s PolicyInfo.attached_resource, if policies[i+1] exists.",
1317+
"items": {
1318+
"$ref": "PolicyInfo"
1319+
},
1320+
"type": "array"
1321+
}
1322+
},
1323+
"type": "object"
1324+
},
12581325
"Empty": {
12591326
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.",
12601327
"id": "Empty",
@@ -2969,6 +3036,21 @@
29693036
},
29703037
"type": "object"
29713038
},
3039+
"PolicyInfo": {
3040+
"description": "The IAM policy and its attached resource.",
3041+
"id": "PolicyInfo",
3042+
"properties": {
3043+
"attachedResource": {
3044+
"description": "The full resource name the policy is directly attached to.",
3045+
"type": "string"
3046+
},
3047+
"policy": {
3048+
"$ref": "Policy",
3049+
"description": "The IAM policy that's directly attached to the attached_resource."
3050+
}
3051+
},
3052+
"type": "object"
3053+
},
29723054
"PubsubDestination": {
29733055
"description": "A Pub/Sub destination.",
29743056
"id": "PubsubDestination",

googleapiclient/discovery_cache/documents/cloudasset.v1beta1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@
411411
}
412412
}
413413
},
414-
"revision": "20220131",
414+
"revision": "20220211",
415415
"rootUrl": "https://cloudasset.googleapis.com/",
416416
"schemas": {
417417
"AnalyzeIamPolicyLongrunningMetadata": {

googleapiclient/discovery_cache/documents/cloudasset.v1p1beta1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
}
208208
}
209209
},
210-
"revision": "20220131",
210+
"revision": "20220211",
211211
"rootUrl": "https://cloudasset.googleapis.com/",
212212
"schemas": {
213213
"AnalyzeIamPolicyLongrunningMetadata": {

googleapiclient/discovery_cache/documents/cloudasset.v1p4beta1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@
221221
}
222222
}
223223
},
224-
"revision": "20220131",
224+
"revision": "20220211",
225225
"rootUrl": "https://cloudasset.googleapis.com/",
226226
"schemas": {
227227
"AccessSelector": {

googleapiclient/discovery_cache/documents/cloudasset.v1p5beta1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
}
178178
}
179179
},
180-
"revision": "20220131",
180+
"revision": "20220211",
181181
"rootUrl": "https://cloudasset.googleapis.com/",
182182
"schemas": {
183183
"AnalyzeIamPolicyLongrunningMetadata": {

googleapiclient/discovery_cache/documents/cloudasset.v1p7beta1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
}
168168
}
169169
},
170-
"revision": "20220131",
170+
"revision": "20220211",
171171
"rootUrl": "https://cloudasset.googleapis.com/",
172172
"schemas": {
173173
"AnalyzeIamPolicyLongrunningMetadata": {

0 commit comments

Comments
 (0)