Skip to content

Commit 0ed3e90

Browse files
feat(serviceusage): update the api
#### serviceusage:v1 The following keys were added: - schemas.Impact.properties.parent.type (Total Keys: 1) #### serviceusage:v1beta1 The following keys were added: - schemas.Impact.properties.parent.type (Total Keys: 1)
1 parent e788b57 commit 0ed3e90

File tree

2 files changed

+28
-12
lines changed

2 files changed

+28
-12
lines changed

googleapiclient/discovery_cache/documents/serviceusage.v1.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@
426426
}
427427
}
428428
},
429-
"revision": "20241205",
429+
"revision": "20241219",
430430
"rootUrl": "https://serviceusage.googleapis.com/",
431431
"schemas": {
432432
"AddEnableRulesMetadata": {
@@ -502,12 +502,14 @@
502502
"enum": [
503503
"ANALYSIS_TYPE_UNSPECIFIED",
504504
"ANALYSIS_TYPE_DEPENDENCY",
505-
"ANALYSIS_TYPE_RESOURCE_USAGE"
505+
"ANALYSIS_TYPE_RESOURCE_USAGE",
506+
"ANALYSIS_TYPE_RESOURCE_EXISTENCE"
506507
],
507508
"enumDescriptions": [
508509
"Unspecified analysis type. Do not use.",
509510
"The analysis of service dependencies.",
510-
"The analysis of service resource usage."
511+
"The analysis of service resource usage.",
512+
"The analysis of service resource existence."
511513
],
512514
"readOnly": true,
513515
"type": "string"
@@ -2305,14 +2307,20 @@
23052307
"description": "Output only. The type of impact.",
23062308
"enum": [
23072309
"IMPACT_TYPE_UNSPECIFIED",
2308-
"DEPENDENCY_MISSING_DEPENDENCIES"
2310+
"DEPENDENCY_MISSING_DEPENDENCIES",
2311+
"RESOURCE_EXISTENCE_PROJECT"
23092312
],
23102313
"enumDescriptions": [
2311-
"Reserved Blocks (Block n contains codes from 100n to 100(n+1) -1 Block 0 - Special/Admin codes Block 1 - Impact Type of ANALYSIS_TYPE_DEPENDENCY Block 2 - Impact Type of ANALYSIS_TYPE_RESOURCE_USAGE ...",
2312-
"Block 1 - Impact Type of ANALYSIS_TYPE_DEPENDENCY"
2314+
"Reserved Blocks (Block n contains codes from 100n to 100(n+1) -1 Block 0 - Special/Admin codes Block 1 - Impact Type of ANALYSIS_TYPE_DEPENDENCY Block 2 - Impact Type of ANALYSIS_TYPE_RESOURCE_USAGE Block 3 - Impact Type of ANALYSIS_TYPE_RESOURCE_EXISTENCE ...",
2315+
"Block 1 - Impact Type of ANALYSIS_TYPE_DEPENDENCY",
2316+
"Block 3 - Impact Type of ANALYSIS_TYPE_RESOURCE_EXISTENCE"
23132317
],
23142318
"readOnly": true,
23152319
"type": "string"
2320+
},
2321+
"parent": {
2322+
"description": "The parent resource that the analysis is based on and the service name that the analysis is for. Example: `projects/100/services/compute.googleapis.com`, folders/101/services/compute.googleapis.com` and `organizations/102/services/compute.googleapis.com`. Usually, the parent resource here is same as the parent resource of the analyzed policy. However, for some analysis types, the parent can be different. For example, for resource existence analysis, if the parent resource of the analyzed policy is a folder or an organization, the parent resource here can still be the project that contains the resources.",
2323+
"type": "string"
23162324
}
23172325
},
23182326
"type": "object"

googleapiclient/discovery_cache/documents/serviceusage.v1beta1.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@
964964
}
965965
}
966966
},
967-
"revision": "20241205",
967+
"revision": "20241219",
968968
"rootUrl": "https://serviceusage.googleapis.com/",
969969
"schemas": {
970970
"AddEnableRulesMetadata": {
@@ -1040,12 +1040,14 @@
10401040
"enum": [
10411041
"ANALYSIS_TYPE_UNSPECIFIED",
10421042
"ANALYSIS_TYPE_DEPENDENCY",
1043-
"ANALYSIS_TYPE_RESOURCE_USAGE"
1043+
"ANALYSIS_TYPE_RESOURCE_USAGE",
1044+
"ANALYSIS_TYPE_RESOURCE_EXISTENCE"
10441045
],
10451046
"enumDescriptions": [
10461047
"Unspecified analysis type. Do not use.",
10471048
"The analysis of service dependencies.",
1048-
"The analysis of service resource usage."
1049+
"The analysis of service resource usage.",
1050+
"The analysis of service resource existence."
10491051
],
10501052
"readOnly": true,
10511053
"type": "string"
@@ -2882,14 +2884,20 @@
28822884
"description": "Output only. The type of impact.",
28832885
"enum": [
28842886
"IMPACT_TYPE_UNSPECIFIED",
2885-
"DEPENDENCY_MISSING_DEPENDENCIES"
2887+
"DEPENDENCY_MISSING_DEPENDENCIES",
2888+
"RESOURCE_EXISTENCE_PROJECT"
28862889
],
28872890
"enumDescriptions": [
2888-
"Reserved Blocks (Block n contains codes from 100n to 100(n+1) -1 Block 0 - Special/Admin codes Block 1 - Impact Type of ANALYSIS_TYPE_DEPENDENCY Block 2 - Impact Type of ANALYSIS_TYPE_RESOURCE_USAGE ...",
2889-
"Block 1 - Impact Type of ANALYSIS_TYPE_DEPENDENCY"
2891+
"Reserved Blocks (Block n contains codes from 100n to 100(n+1) -1 Block 0 - Special/Admin codes Block 1 - Impact Type of ANALYSIS_TYPE_DEPENDENCY Block 2 - Impact Type of ANALYSIS_TYPE_RESOURCE_USAGE Block 3 - Impact Type of ANALYSIS_TYPE_RESOURCE_EXISTENCE ...",
2892+
"Block 1 - Impact Type of ANALYSIS_TYPE_DEPENDENCY",
2893+
"Block 3 - Impact Type of ANALYSIS_TYPE_RESOURCE_EXISTENCE"
28902894
],
28912895
"readOnly": true,
28922896
"type": "string"
2897+
},
2898+
"parent": {
2899+
"description": "The parent resource that the analysis is based on and the service name that the analysis is for. Example: `projects/100/services/compute.googleapis.com`, folders/101/services/compute.googleapis.com` and `organizations/102/services/compute.googleapis.com`. Usually, the parent resource here is same as the parent resource of the analyzed policy. However, for some analysis types, the parent can be different. For example, for resource existence analysis, if the parent resource of the analyzed policy is a folder or an organization, the parent resource here can still be the project that contains the resources.",
2900+
"type": "string"
28932901
}
28942902
},
28952903
"type": "object"

0 commit comments

Comments
 (0)