Skip to content

Commit 215757f

Browse files
feat(securitycenter): update the api
#### securitycenter:v1beta1 The following keys were added: - schemas.Finding.properties.iamBindings (Total Keys: 2) - schemas.Finding.properties.nextSteps.type (Total Keys: 1) - schemas.IamBinding (Total Keys: 5) #### securitycenter:v1beta2 The following keys were added: - resources.folders.methods.getOnboardingState (Total Keys: 11) - resources.organizations.methods.getOnboardingState (Total Keys: 11) - resources.projects.methods.getOnboardingState (Total Keys: 11) - schemas.Finding.properties.iamBindings (Total Keys: 2) - schemas.Finding.properties.nextSteps.type (Total Keys: 1) - schemas.IamBinding (Total Keys: 5) - schemas.OnboardingState (Total Keys: 4)
1 parent ebeb360 commit 215757f

File tree

6 files changed

+252
-3
lines changed

6 files changed

+252
-3
lines changed

docs/dyn/securitycenter_v1beta2.folders.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ <h2>Instance Methods</h2>
108108
<p class="toc_element">
109109
<code><a href="#getEventThreatDetectionSettings">getEventThreatDetectionSettings(name, x__xgafv=None)</a></code></p>
110110
<p class="firstline">Get the EventThreatDetectionSettings resource.</p>
111+
<p class="toc_element">
112+
<code><a href="#getOnboardingState">getOnboardingState(name, x__xgafv=None)</a></code></p>
113+
<p class="firstline">Retrieve the OnboardingState of a resource.</p>
111114
<p class="toc_element">
112115
<code><a href="#getSecurityHealthAnalyticsSettings">getSecurityHealthAnalyticsSettings(name, x__xgafv=None)</a></code></p>
113116
<p class="firstline">Get the SecurityHealthAnalyticsSettings resource.</p>
@@ -197,6 +200,26 @@ <h3>Method Details</h3>
197200
}</pre>
198201
</div>
199202

203+
<div class="method">
204+
<code class="details" id="getOnboardingState">getOnboardingState(name, x__xgafv=None)</code>
205+
<pre>Retrieve the OnboardingState of a resource.
206+
207+
Args:
208+
name: string, Required. The name of the OnboardingState to retrieve. Formats: * organizations/{organization}/onboardingState * folders/{folder}/onboardingState * projects/{project}/onboardingState (required)
209+
x__xgafv: string, V1 error format.
210+
Allowed values
211+
1 - v1 error format
212+
2 - v2 error format
213+
214+
Returns:
215+
An object of the form:
216+
217+
{ # Resource capturing onboarding information for a given CRM resource.
218+
&quot;name&quot;: &quot;A String&quot;, # The resource name of the OnboardingState. Format: organizations/{organization}/onboardingState Format: folders/{folder}/onboardingState Format: projects/{project}/onboardingState
219+
&quot;onboardingLevel&quot;: &quot;A String&quot;, # Describes the level a given organization, folder, or project is onboarded with SCC. If the resource wasn&#x27;t onboarded, NOT_FOUND would have been thrown.
220+
}</pre>
221+
</div>
222+
200223
<div class="method">
201224
<code class="details" id="getSecurityHealthAnalyticsSettings">getSecurityHealthAnalyticsSettings(name, x__xgafv=None)</code>
202225
<pre>Get the SecurityHealthAnalyticsSettings resource.

docs/dyn/securitycenter_v1beta2.organizations.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ <h2>Instance Methods</h2>
108108
<p class="toc_element">
109109
<code><a href="#getEventThreatDetectionSettings">getEventThreatDetectionSettings(name, x__xgafv=None)</a></code></p>
110110
<p class="firstline">Get the EventThreatDetectionSettings resource.</p>
111+
<p class="toc_element">
112+
<code><a href="#getOnboardingState">getOnboardingState(name, x__xgafv=None)</a></code></p>
113+
<p class="firstline">Retrieve the OnboardingState of a resource.</p>
111114
<p class="toc_element">
112115
<code><a href="#getSecurityCenterSettings">getSecurityCenterSettings(name, x__xgafv=None)</a></code></p>
113116
<p class="firstline">Get the SecurityCenterSettings resource.</p>
@@ -203,6 +206,26 @@ <h3>Method Details</h3>
203206
}</pre>
204207
</div>
205208

209+
<div class="method">
210+
<code class="details" id="getOnboardingState">getOnboardingState(name, x__xgafv=None)</code>
211+
<pre>Retrieve the OnboardingState of a resource.
212+
213+
Args:
214+
name: string, Required. The name of the OnboardingState to retrieve. Formats: * organizations/{organization}/onboardingState * folders/{folder}/onboardingState * projects/{project}/onboardingState (required)
215+
x__xgafv: string, V1 error format.
216+
Allowed values
217+
1 - v1 error format
218+
2 - v2 error format
219+
220+
Returns:
221+
An object of the form:
222+
223+
{ # Resource capturing onboarding information for a given CRM resource.
224+
&quot;name&quot;: &quot;A String&quot;, # The resource name of the OnboardingState. Format: organizations/{organization}/onboardingState Format: folders/{folder}/onboardingState Format: projects/{project}/onboardingState
225+
&quot;onboardingLevel&quot;: &quot;A String&quot;, # Describes the level a given organization, folder, or project is onboarded with SCC. If the resource wasn&#x27;t onboarded, NOT_FOUND would have been thrown.
226+
}</pre>
227+
</div>
228+
206229
<div class="method">
207230
<code class="details" id="getSecurityCenterSettings">getSecurityCenterSettings(name, x__xgafv=None)</code>
208231
<pre>Get the SecurityCenterSettings resource.

docs/dyn/securitycenter_v1beta2.projects.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ <h2>Instance Methods</h2>
113113
<p class="toc_element">
114114
<code><a href="#getEventThreatDetectionSettings">getEventThreatDetectionSettings(name, x__xgafv=None)</a></code></p>
115115
<p class="firstline">Get the EventThreatDetectionSettings resource.</p>
116+
<p class="toc_element">
117+
<code><a href="#getOnboardingState">getOnboardingState(name, x__xgafv=None)</a></code></p>
118+
<p class="firstline">Retrieve the OnboardingState of a resource.</p>
116119
<p class="toc_element">
117120
<code><a href="#getSecurityHealthAnalyticsSettings">getSecurityHealthAnalyticsSettings(name, x__xgafv=None)</a></code></p>
118121
<p class="firstline">Get the SecurityHealthAnalyticsSettings resource.</p>
@@ -202,6 +205,26 @@ <h3>Method Details</h3>
202205
}</pre>
203206
</div>
204207

208+
<div class="method">
209+
<code class="details" id="getOnboardingState">getOnboardingState(name, x__xgafv=None)</code>
210+
<pre>Retrieve the OnboardingState of a resource.
211+
212+
Args:
213+
name: string, Required. The name of the OnboardingState to retrieve. Formats: * organizations/{organization}/onboardingState * folders/{folder}/onboardingState * projects/{project}/onboardingState (required)
214+
x__xgafv: string, V1 error format.
215+
Allowed values
216+
1 - v1 error format
217+
2 - v2 error format
218+
219+
Returns:
220+
An object of the form:
221+
222+
{ # Resource capturing onboarding information for a given CRM resource.
223+
&quot;name&quot;: &quot;A String&quot;, # The resource name of the OnboardingState. Format: organizations/{organization}/onboardingState Format: folders/{folder}/onboardingState Format: projects/{project}/onboardingState
224+
&quot;onboardingLevel&quot;: &quot;A String&quot;, # Describes the level a given organization, folder, or project is onboarded with SCC. If the resource wasn&#x27;t onboarded, NOT_FOUND would have been thrown.
225+
}</pre>
226+
</div>
227+
205228
<div class="method">
206229
<code class="details" id="getSecurityHealthAnalyticsSettings">getSecurityHealthAnalyticsSettings(name, x__xgafv=None)</code>
207230
<pre>Get the SecurityHealthAnalyticsSettings resource.

googleapiclient/discovery_cache/documents/securitycenter.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3058,7 +3058,7 @@
30583058
}
30593059
}
30603060
},
3061-
"revision": "20220401",
3061+
"revision": "20220407",
30623062
"rootUrl": "https://securitycenter.googleapis.com/",
30633063
"schemas": {
30643064
"Access": {

googleapiclient/discovery_cache/documents/securitycenter.v1beta1.json

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@
896896
}
897897
}
898898
},
899-
"revision": "20220324",
899+
"revision": "20220407",
900900
"rootUrl": "https://securitycenter.googleapis.com/",
901901
"schemas": {
902902
"Access": {
@@ -1319,6 +1319,13 @@
13191319
],
13201320
"type": "string"
13211321
},
1322+
"iamBindings": {
1323+
"description": "Represents IAM bindings associated with the Finding.",
1324+
"items": {
1325+
"$ref": "IamBinding"
1326+
},
1327+
"type": "array"
1328+
},
13221329
"indicator": {
13231330
"$ref": "Indicator",
13241331
"description": "Represents what's commonly known as an Indicator of compromise (IoC) in computer forensics. This is an artifact observed on a network or in an operating system that, with high confidence, indicates a computer intrusion. Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise"
@@ -1357,6 +1364,10 @@
13571364
"description": "The relative resource name of this finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}\"",
13581365
"type": "string"
13591366
},
1367+
"nextSteps": {
1368+
"description": "Next steps associate to the finding.",
1369+
"type": "string"
1370+
},
13601371
"parent": {
13611372
"description": "The relative resource name of the source the finding belongs to. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name This field is immutable after creation time. For example: \"organizations/{organization_id}/sources/{source_id}\"",
13621373
"type": "string"
@@ -2118,6 +2129,35 @@
21182129
},
21192130
"type": "object"
21202131
},
2132+
"IamBinding": {
2133+
"description": "Represents a particular IAM binding, which captures a member's role addition, removal, or state.",
2134+
"id": "IamBinding",
2135+
"properties": {
2136+
"action": {
2137+
"description": "The action that was performed on a Binding.",
2138+
"enum": [
2139+
"ACTION_UNSPECIFIED",
2140+
"ADD",
2141+
"REMOVE"
2142+
],
2143+
"enumDescriptions": [
2144+
"Unspecified.",
2145+
"Addition of a Binding.",
2146+
"Removal of a Binding."
2147+
],
2148+
"type": "string"
2149+
},
2150+
"member": {
2151+
"description": "A single identity requesting access for a Cloud Platform resource, e.g. \"[email protected]\".",
2152+
"type": "string"
2153+
},
2154+
"role": {
2155+
"description": "Role that is assigned to \"members\". For example, \"roles/viewer\", \"roles/editor\", or \"roles/owner\".",
2156+
"type": "string"
2157+
}
2158+
},
2159+
"type": "object"
2160+
},
21212161
"Indicator": {
21222162
"description": "Represents what's commonly known as an Indicator of compromise (IoC) in computer forensics. This is an artifact observed on a network or in an operating system that, with high confidence, indicates a computer intrusion. Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise",
21232163
"id": "Indicator",

googleapiclient/discovery_cache/documents/securitycenter.v1beta2.json

Lines changed: 141 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,31 @@
157157
"https://www.googleapis.com/auth/cloud-platform"
158158
]
159159
},
160+
"getOnboardingState": {
161+
"description": "Retrieve the OnboardingState of a resource.",
162+
"flatPath": "v1beta2/folders/{foldersId}/onboardingState",
163+
"httpMethod": "GET",
164+
"id": "securitycenter.folders.getOnboardingState",
165+
"parameterOrder": [
166+
"name"
167+
],
168+
"parameters": {
169+
"name": {
170+
"description": "Required. The name of the OnboardingState to retrieve. Formats: * organizations/{organization}/onboardingState * folders/{folder}/onboardingState * projects/{project}/onboardingState",
171+
"location": "path",
172+
"pattern": "^folders/[^/]+/onboardingState$",
173+
"required": true,
174+
"type": "string"
175+
}
176+
},
177+
"path": "v1beta2/{+name}",
178+
"response": {
179+
"$ref": "OnboardingState"
180+
},
181+
"scopes": [
182+
"https://www.googleapis.com/auth/cloud-platform"
183+
]
184+
},
160185
"getSecurityHealthAnalyticsSettings": {
161186
"description": "Get the SecurityHealthAnalyticsSettings resource.",
162187
"flatPath": "v1beta2/folders/{foldersId}/securityHealthAnalyticsSettings",
@@ -603,6 +628,31 @@
603628
"https://www.googleapis.com/auth/cloud-platform"
604629
]
605630
},
631+
"getOnboardingState": {
632+
"description": "Retrieve the OnboardingState of a resource.",
633+
"flatPath": "v1beta2/organizations/{organizationsId}/onboardingState",
634+
"httpMethod": "GET",
635+
"id": "securitycenter.organizations.getOnboardingState",
636+
"parameterOrder": [
637+
"name"
638+
],
639+
"parameters": {
640+
"name": {
641+
"description": "Required. The name of the OnboardingState to retrieve. Formats: * organizations/{organization}/onboardingState * folders/{folder}/onboardingState * projects/{project}/onboardingState",
642+
"location": "path",
643+
"pattern": "^organizations/[^/]+/onboardingState$",
644+
"required": true,
645+
"type": "string"
646+
}
647+
},
648+
"path": "v1beta2/{+name}",
649+
"response": {
650+
"$ref": "OnboardingState"
651+
},
652+
"scopes": [
653+
"https://www.googleapis.com/auth/cloud-platform"
654+
]
655+
},
606656
"getSecurityCenterSettings": {
607657
"description": "Get the SecurityCenterSettings resource.",
608658
"flatPath": "v1beta2/organizations/{organizationsId}/securityCenterSettings",
@@ -1099,6 +1149,31 @@
10991149
"https://www.googleapis.com/auth/cloud-platform"
11001150
]
11011151
},
1152+
"getOnboardingState": {
1153+
"description": "Retrieve the OnboardingState of a resource.",
1154+
"flatPath": "v1beta2/projects/{projectsId}/onboardingState",
1155+
"httpMethod": "GET",
1156+
"id": "securitycenter.projects.getOnboardingState",
1157+
"parameterOrder": [
1158+
"name"
1159+
],
1160+
"parameters": {
1161+
"name": {
1162+
"description": "Required. The name of the OnboardingState to retrieve. Formats: * organizations/{organization}/onboardingState * folders/{folder}/onboardingState * projects/{project}/onboardingState",
1163+
"location": "path",
1164+
"pattern": "^projects/[^/]+/onboardingState$",
1165+
"required": true,
1166+
"type": "string"
1167+
}
1168+
},
1169+
"path": "v1beta2/{+name}",
1170+
"response": {
1171+
"$ref": "OnboardingState"
1172+
},
1173+
"scopes": [
1174+
"https://www.googleapis.com/auth/cloud-platform"
1175+
]
1176+
},
11021177
"getSecurityHealthAnalyticsSettings": {
11031178
"description": "Get the SecurityHealthAnalyticsSettings resource.",
11041179
"flatPath": "v1beta2/projects/{projectsId}/securityHealthAnalyticsSettings",
@@ -1592,7 +1667,7 @@
15921667
}
15931668
}
15941669
},
1595-
"revision": "20220324",
1670+
"revision": "20220407",
15961671
"rootUrl": "https://securitycenter.googleapis.com/",
15971672
"schemas": {
15981673
"Access": {
@@ -1997,6 +2072,13 @@
19972072
],
19982073
"type": "string"
19992074
},
2075+
"iamBindings": {
2076+
"description": "Represents IAM bindings associated with the Finding.",
2077+
"items": {
2078+
"$ref": "IamBinding"
2079+
},
2080+
"type": "array"
2081+
},
20002082
"indicator": {
20012083
"$ref": "Indicator",
20022084
"description": "Represents what's commonly known as an Indicator of compromise (IoC) in computer forensics. This is an artifact observed on a network or in an operating system that, with high confidence, indicates a computer intrusion. Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise"
@@ -2035,6 +2117,10 @@
20352117
"description": "The relative resource name of this finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}\"",
20362118
"type": "string"
20372119
},
2120+
"nextSteps": {
2121+
"description": "Next steps associate to the finding.",
2122+
"type": "string"
2123+
},
20382124
"parent": {
20392125
"description": "The relative resource name of the source the finding belongs to. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name This field is immutable after creation time. For example: \"organizations/{organization_id}/sources/{source_id}\"",
20402126
"type": "string"
@@ -2564,6 +2650,35 @@
25642650
},
25652651
"type": "object"
25662652
},
2653+
"IamBinding": {
2654+
"description": "Represents a particular IAM binding, which captures a member's role addition, removal, or state.",
2655+
"id": "IamBinding",
2656+
"properties": {
2657+
"action": {
2658+
"description": "The action that was performed on a Binding.",
2659+
"enum": [
2660+
"ACTION_UNSPECIFIED",
2661+
"ADD",
2662+
"REMOVE"
2663+
],
2664+
"enumDescriptions": [
2665+
"Unspecified.",
2666+
"Addition of a Binding.",
2667+
"Removal of a Binding."
2668+
],
2669+
"type": "string"
2670+
},
2671+
"member": {
2672+
"description": "A single identity requesting access for a Cloud Platform resource, e.g. \"[email protected]\".",
2673+
"type": "string"
2674+
},
2675+
"role": {
2676+
"description": "Role that is assigned to \"members\". For example, \"roles/viewer\", \"roles/editor\", or \"roles/owner\".",
2677+
"type": "string"
2678+
}
2679+
},
2680+
"type": "object"
2681+
},
25672682
"Indicator": {
25682683
"description": "Represents what's commonly known as an Indicator of compromise (IoC) in computer forensics. This is an artifact observed on a network or in an operating system that, with high confidence, indicates a computer intrusion. Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise",
25692684
"id": "Indicator",
@@ -2817,6 +2932,31 @@
28172932
},
28182933
"type": "object"
28192934
},
2935+
"OnboardingState": {
2936+
"description": "Resource capturing onboarding information for a given CRM resource.",
2937+
"id": "OnboardingState",
2938+
"properties": {
2939+
"name": {
2940+
"description": "The resource name of the OnboardingState. Format: organizations/{organization}/onboardingState Format: folders/{folder}/onboardingState Format: projects/{project}/onboardingState",
2941+
"type": "string"
2942+
},
2943+
"onboardingLevel": {
2944+
"description": "Describes the level a given organization, folder, or project is onboarded with SCC. If the resource wasn't onboarded, NOT_FOUND would have been thrown.",
2945+
"enum": [
2946+
"ONBOARDING_LEVEL_UNSPECIFIED",
2947+
"ONBOARDING_LEVEL_PROJECT",
2948+
"ONBOARDING_LEVEL_ORGANIZATION"
2949+
],
2950+
"enumDescriptions": [
2951+
"Unused.",
2952+
"This resource is onboarded at the project level. Only possible for projects.",
2953+
"This resource is onboarded at the organization level. Possible for organizations, folders, and projects."
2954+
],
2955+
"type": "string"
2956+
}
2957+
},
2958+
"type": "object"
2959+
},
28202960
"Reference": {
28212961
"description": "Additional Links",
28222962
"id": "Reference",

0 commit comments

Comments
 (0)