blob: b78be44c4673132fbc8c3eb66b7e01c14ae23415 [file] [log] [blame]
<html><body>
<style>
body, h1, h2, h3, div, span, p, pre, a {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
body {
font-size: 13px;
padding: 1em;
}
h1 {
font-size: 26px;
margin-bottom: 1em;
}
h2 {
font-size: 24px;
margin-bottom: 1em;
}
h3 {
font-size: 20px;
margin-bottom: 1em;
margin-top: 1em;
}
pre, code {
line-height: 1.5;
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}
pre {
margin-top: 0.5em;
}
h1, h2, h3, p {
font-family: Arial, sans serif;
}
h1, h2, h3 {
border-bottom: solid #CCC 1px;
}
.toc_element {
margin-top: 0.5em;
}
.firstline {
margin-left: 2 em;
}
.method {
margin-top: 1em;
border: solid 1px #CCC;
padding: 1em;
background: #EEE;
}
.details {
font-weight: bold;
font-size: 14px;
}
</style>
<h1><a href="securitycenter_v1p1beta1.html">Security Command Center API</a> . <a href="securitycenter_v1p1beta1.organizations.html">organizations</a> . <a href="securitycenter_v1p1beta1.organizations.notificationConfigs.html">notificationConfigs</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#create">create(parent, body=None, configId=None, x__xgafv=None)</a></code></p>
<p class="firstline">Creates a notification config.</p>
<p class="toc_element">
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
<p class="firstline">Deletes a notification config.</p>
<p class="toc_element">
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
<p class="firstline">Gets a notification config.</p>
<p class="toc_element">
<code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
<p class="firstline">Lists notification configs.</p>
<p class="toc_element">
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
<code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
<p class="firstline"></p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="create">create(parent, body=None, configId=None, x__xgafv=None)</code>
<pre>Creates a notification config.
Args:
parent: string, Required. Resource name of the new notification config&#x27;s parent. Its format is
&quot;organizations/[organization_id]&quot;. (required)
body: object, The request body.
The object takes the form of:
{ # Security Command Center notification configs.
#
# A notification config is a Security Command Center resource that contains the
# configuration to send notifications for create/update events of findings,
# assets and etc.
&quot;serviceAccount&quot;: &quot;A String&quot;, # Output only. The service account that needs &quot;pubsub.topics.publish&quot;
# permission to publish to the Pub/Sub topic.
&quot;description&quot;: &quot;A String&quot;, # The description of the notification config (max of 1024 characters).
&quot;streamingConfig&quot;: { # The config for streaming-based notifications, which send each event as soon # The config for triggering streaming-based notifications.
# as it is detected.
&quot;filter&quot;: &quot;A String&quot;, # Expression that defines the filter to apply across create/update events
# of assets or findings as specified by the event type. The expression is a
# list of zero or more restrictions combined via logical operators `AND`
# and `OR`. Parentheses are supported, and `OR` has higher precedence than
# `AND`.
#
# Restrictions have the form `&lt;field&gt; &lt;operator&gt; &lt;value&gt;` and may have a
# `-` character in front of them to indicate negation. The fields map to
# those defined in the corresponding resource.
#
# The supported operators are:
#
# * `=` for all value types.
# * `&gt;`, `&lt;`, `&gt;=`, `&lt;=` for integer values.
# * `:`, meaning substring matching, for strings.
#
# The supported value types are:
#
# * string literals in quotes.
# * integer literals without quotes.
# * boolean literals `true` and `false` without quotes.
},
&quot;name&quot;: &quot;A String&quot;, # The relative resource name of this notification config. See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# Example:
# &quot;organizations/{organization_id}/notificationConfigs/notify_public_bucket&quot;.
&quot;eventType&quot;: &quot;A String&quot;, # The type of events the config is for, e.g. FINDING.
&quot;pubsubTopic&quot;: &quot;A String&quot;, # The Pub/Sub topic to send notifications to. Its format is
# &quot;projects/[project_id]/topics/[topic]&quot;.
}
configId: string, Required.
Unique identifier provided by the client within the parent scope.
It must be between 1 and 128 characters, and contains alphanumeric
characters, underscores or hyphens only.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Security Command Center notification configs.
#
# A notification config is a Security Command Center resource that contains the
# configuration to send notifications for create/update events of findings,
# assets and etc.
&quot;serviceAccount&quot;: &quot;A String&quot;, # Output only. The service account that needs &quot;pubsub.topics.publish&quot;
# permission to publish to the Pub/Sub topic.
&quot;description&quot;: &quot;A String&quot;, # The description of the notification config (max of 1024 characters).
&quot;streamingConfig&quot;: { # The config for streaming-based notifications, which send each event as soon # The config for triggering streaming-based notifications.
# as it is detected.
&quot;filter&quot;: &quot;A String&quot;, # Expression that defines the filter to apply across create/update events
# of assets or findings as specified by the event type. The expression is a
# list of zero or more restrictions combined via logical operators `AND`
# and `OR`. Parentheses are supported, and `OR` has higher precedence than
# `AND`.
#
# Restrictions have the form `&lt;field&gt; &lt;operator&gt; &lt;value&gt;` and may have a
# `-` character in front of them to indicate negation. The fields map to
# those defined in the corresponding resource.
#
# The supported operators are:
#
# * `=` for all value types.
# * `&gt;`, `&lt;`, `&gt;=`, `&lt;=` for integer values.
# * `:`, meaning substring matching, for strings.
#
# The supported value types are:
#
# * string literals in quotes.
# * integer literals without quotes.
# * boolean literals `true` and `false` without quotes.
},
&quot;name&quot;: &quot;A String&quot;, # The relative resource name of this notification config. See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# Example:
# &quot;organizations/{organization_id}/notificationConfigs/notify_public_bucket&quot;.
&quot;eventType&quot;: &quot;A String&quot;, # The type of events the config is for, e.g. FINDING.
&quot;pubsubTopic&quot;: &quot;A String&quot;, # The Pub/Sub topic to send notifications to. Its format is
# &quot;projects/[project_id]/topics/[topic]&quot;.
}</pre>
</div>
<div class="method">
<code class="details" id="delete">delete(name, x__xgafv=None)</code>
<pre>Deletes a notification config.
Args:
name: string, Required. Name of the notification config to delete. Its format is
&quot;organizations/[organization_id]/notificationConfigs/[config_id]&quot;. (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # 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 `{}`.
}</pre>
</div>
<div class="method">
<code class="details" id="get">get(name, x__xgafv=None)</code>
<pre>Gets a notification config.
Args:
name: string, Required. Name of the notification config to get. Its format is
&quot;organizations/[organization_id]/notificationConfigs/[config_id]&quot;. (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Security Command Center notification configs.
#
# A notification config is a Security Command Center resource that contains the
# configuration to send notifications for create/update events of findings,
# assets and etc.
&quot;serviceAccount&quot;: &quot;A String&quot;, # Output only. The service account that needs &quot;pubsub.topics.publish&quot;
# permission to publish to the Pub/Sub topic.
&quot;description&quot;: &quot;A String&quot;, # The description of the notification config (max of 1024 characters).
&quot;streamingConfig&quot;: { # The config for streaming-based notifications, which send each event as soon # The config for triggering streaming-based notifications.
# as it is detected.
&quot;filter&quot;: &quot;A String&quot;, # Expression that defines the filter to apply across create/update events
# of assets or findings as specified by the event type. The expression is a
# list of zero or more restrictions combined via logical operators `AND`
# and `OR`. Parentheses are supported, and `OR` has higher precedence than
# `AND`.
#
# Restrictions have the form `&lt;field&gt; &lt;operator&gt; &lt;value&gt;` and may have a
# `-` character in front of them to indicate negation. The fields map to
# those defined in the corresponding resource.
#
# The supported operators are:
#
# * `=` for all value types.
# * `&gt;`, `&lt;`, `&gt;=`, `&lt;=` for integer values.
# * `:`, meaning substring matching, for strings.
#
# The supported value types are:
#
# * string literals in quotes.
# * integer literals without quotes.
# * boolean literals `true` and `false` without quotes.
},
&quot;name&quot;: &quot;A String&quot;, # The relative resource name of this notification config. See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# Example:
# &quot;organizations/{organization_id}/notificationConfigs/notify_public_bucket&quot;.
&quot;eventType&quot;: &quot;A String&quot;, # The type of events the config is for, e.g. FINDING.
&quot;pubsubTopic&quot;: &quot;A String&quot;, # The Pub/Sub topic to send notifications to. Its format is
# &quot;projects/[project_id]/topics/[topic]&quot;.
}</pre>
</div>
<div class="method">
<code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
<pre>Lists notification configs.
Args:
parent: string, Required. Name of the organization to list notification configs.
Its format is &quot;organizations/[organization_id]&quot;. (required)
pageToken: string, The value returned by the last `ListNotificationConfigsResponse`; indicates
that this is a continuation of a prior `ListNotificationConfigs` call, and
that the system should return the next page of data.
pageSize: integer, The maximum number of results to return in a single response. Default is
10, minimum is 1, maximum is 1000.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response message for listing notification configs.
&quot;notificationConfigs&quot;: [ # Notification configs belonging to the requested parent.
{ # Security Command Center notification configs.
#
# A notification config is a Security Command Center resource that contains the
# configuration to send notifications for create/update events of findings,
# assets and etc.
&quot;serviceAccount&quot;: &quot;A String&quot;, # Output only. The service account that needs &quot;pubsub.topics.publish&quot;
# permission to publish to the Pub/Sub topic.
&quot;description&quot;: &quot;A String&quot;, # The description of the notification config (max of 1024 characters).
&quot;streamingConfig&quot;: { # The config for streaming-based notifications, which send each event as soon # The config for triggering streaming-based notifications.
# as it is detected.
&quot;filter&quot;: &quot;A String&quot;, # Expression that defines the filter to apply across create/update events
# of assets or findings as specified by the event type. The expression is a
# list of zero or more restrictions combined via logical operators `AND`
# and `OR`. Parentheses are supported, and `OR` has higher precedence than
# `AND`.
#
# Restrictions have the form `&lt;field&gt; &lt;operator&gt; &lt;value&gt;` and may have a
# `-` character in front of them to indicate negation. The fields map to
# those defined in the corresponding resource.
#
# The supported operators are:
#
# * `=` for all value types.
# * `&gt;`, `&lt;`, `&gt;=`, `&lt;=` for integer values.
# * `:`, meaning substring matching, for strings.
#
# The supported value types are:
#
# * string literals in quotes.
# * integer literals without quotes.
# * boolean literals `true` and `false` without quotes.
},
&quot;name&quot;: &quot;A String&quot;, # The relative resource name of this notification config. See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# Example:
# &quot;organizations/{organization_id}/notificationConfigs/notify_public_bucket&quot;.
&quot;eventType&quot;: &quot;A String&quot;, # The type of events the config is for, e.g. FINDING.
&quot;pubsubTopic&quot;: &quot;A String&quot;, # The Pub/Sub topic to send notifications to. Its format is
# &quot;projects/[project_id]/topics/[topic]&quot;.
},
],
&quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more
# results.
}</pre>
</div>
<div class="method">
<code class="details" id="list_next">list_next(previous_request, previous_response)</code>
<pre>Retrieves the next page of results.
Args:
previous_request: The request for the previous page. (required)
previous_response: The response from the request for the previous page. (required)
Returns:
A request object that you can call &#x27;execute()&#x27; on to request the next
page. Returns None if there are no more items in the collection.
</pre>
</div>
<div class="method">
<code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
<pre>
Updates a notification config. The following update
fields are allowed: description, pubsub_topic, streaming_config.filter
Args:
name: string, The relative resource name of this notification config. See:
https://cloud.google.com/apis/design/resource_names#relative_resource_name
Example:
&quot;organizations/{organization_id}/notificationConfigs/notify_public_bucket&quot;. (required)
body: object, The request body.
The object takes the form of:
{ # Security Command Center notification configs.
#
# A notification config is a Security Command Center resource that contains the
# configuration to send notifications for create/update events of findings,
# assets and etc.
&quot;serviceAccount&quot;: &quot;A String&quot;, # Output only. The service account that needs &quot;pubsub.topics.publish&quot;
# permission to publish to the Pub/Sub topic.
&quot;description&quot;: &quot;A String&quot;, # The description of the notification config (max of 1024 characters).
&quot;streamingConfig&quot;: { # The config for streaming-based notifications, which send each event as soon # The config for triggering streaming-based notifications.
# as it is detected.
&quot;filter&quot;: &quot;A String&quot;, # Expression that defines the filter to apply across create/update events
# of assets or findings as specified by the event type. The expression is a
# list of zero or more restrictions combined via logical operators `AND`
# and `OR`. Parentheses are supported, and `OR` has higher precedence than
# `AND`.
#
# Restrictions have the form `&lt;field&gt; &lt;operator&gt; &lt;value&gt;` and may have a
# `-` character in front of them to indicate negation. The fields map to
# those defined in the corresponding resource.
#
# The supported operators are:
#
# * `=` for all value types.
# * `&gt;`, `&lt;`, `&gt;=`, `&lt;=` for integer values.
# * `:`, meaning substring matching, for strings.
#
# The supported value types are:
#
# * string literals in quotes.
# * integer literals without quotes.
# * boolean literals `true` and `false` without quotes.
},
&quot;name&quot;: &quot;A String&quot;, # The relative resource name of this notification config. See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# Example:
# &quot;organizations/{organization_id}/notificationConfigs/notify_public_bucket&quot;.
&quot;eventType&quot;: &quot;A String&quot;, # The type of events the config is for, e.g. FINDING.
&quot;pubsubTopic&quot;: &quot;A String&quot;, # The Pub/Sub topic to send notifications to. Its format is
# &quot;projects/[project_id]/topics/[topic]&quot;.
}
updateMask: string, The FieldMask to use when updating the notification config.
If empty all mutable fields will be updated.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Security Command Center notification configs.
#
# A notification config is a Security Command Center resource that contains the
# configuration to send notifications for create/update events of findings,
# assets and etc.
&quot;serviceAccount&quot;: &quot;A String&quot;, # Output only. The service account that needs &quot;pubsub.topics.publish&quot;
# permission to publish to the Pub/Sub topic.
&quot;description&quot;: &quot;A String&quot;, # The description of the notification config (max of 1024 characters).
&quot;streamingConfig&quot;: { # The config for streaming-based notifications, which send each event as soon # The config for triggering streaming-based notifications.
# as it is detected.
&quot;filter&quot;: &quot;A String&quot;, # Expression that defines the filter to apply across create/update events
# of assets or findings as specified by the event type. The expression is a
# list of zero or more restrictions combined via logical operators `AND`
# and `OR`. Parentheses are supported, and `OR` has higher precedence than
# `AND`.
#
# Restrictions have the form `&lt;field&gt; &lt;operator&gt; &lt;value&gt;` and may have a
# `-` character in front of them to indicate negation. The fields map to
# those defined in the corresponding resource.
#
# The supported operators are:
#
# * `=` for all value types.
# * `&gt;`, `&lt;`, `&gt;=`, `&lt;=` for integer values.
# * `:`, meaning substring matching, for strings.
#
# The supported value types are:
#
# * string literals in quotes.
# * integer literals without quotes.
# * boolean literals `true` and `false` without quotes.
},
&quot;name&quot;: &quot;A String&quot;, # The relative resource name of this notification config. See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# Example:
# &quot;organizations/{organization_id}/notificationConfigs/notify_public_bucket&quot;.
&quot;eventType&quot;: &quot;A String&quot;, # The type of events the config is for, e.g. FINDING.
&quot;pubsubTopic&quot;: &quot;A String&quot;, # The Pub/Sub topic to send notifications to. Its format is
# &quot;projects/[project_id]/topics/[topic]&quot;.
}</pre>
</div>
</body></html>