|
186 | 186 | }
|
187 | 187 | }
|
188 | 188 | },
|
| 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 | + }, |
189 | 224 | "feeds": {
|
190 | 225 | "methods": {
|
191 | 226 | "create": {
|
|
894 | 929 | }
|
895 | 930 | }
|
896 | 931 | },
|
897 |
| - "revision": "20220131", |
| 932 | + "revision": "20220211", |
898 | 933 | "rootUrl": "https://cloudasset.googleapis.com/",
|
899 | 934 | "schemas": {
|
900 | 935 | "AccessSelector": {
|
|
1134 | 1169 | },
|
1135 | 1170 | "type": "object"
|
1136 | 1171 | },
|
| 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 | + }, |
1137 | 1186 | "BigQueryDestination": {
|
1138 | 1187 | "description": "A BigQuery destination for exporting assets to.",
|
1139 | 1188 | "id": "BigQueryDestination",
|
|
1255 | 1304 | },
|
1256 | 1305 | "type": "object"
|
1257 | 1306 | },
|
| 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 | + }, |
1258 | 1325 | "Empty": {
|
1259 | 1326 | "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 `{}`.",
|
1260 | 1327 | "id": "Empty",
|
|
2969 | 3036 | },
|
2970 | 3037 | "type": "object"
|
2971 | 3038 | },
|
| 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 | + }, |
2972 | 3054 | "PubsubDestination": {
|
2973 | 3055 | "description": "A Pub/Sub destination.",
|
2974 | 3056 | "id": "PubsubDestination",
|
|
0 commit comments