Skip to content

Commit 5d46d35

Browse files
Daniel Abrahamcopybara-github
authored andcommitted
Add links to API reference documentation.
PiperOrigin-RevId: 395936333
1 parent e26fca7 commit 5d46d35

26 files changed

Lines changed: 126 additions & 24 deletions

detect/v2/cancel_retrohunt.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17-
"""Executable and reusable sample for cancelling a retrohunt."""
17+
"""Executable and reusable sample for cancelling a retrohunt.
18+
19+
API reference:
20+
https://cloud.google.com/chronicle/docs/reference/detection-engine-api#cancelretrohunt
21+
"""
1822

1923
import argparse
2024

detect/v2/create_rule.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17-
"""Executable and reusable sample for creating a detection rule."""
17+
"""Executable and reusable sample for creating a detection rule.
18+
19+
API reference:
20+
https://cloud.google.com/chronicle/docs/reference/detection-engine-api#createrule
21+
"""
1822

1923
import argparse
2024
import json

detect/v2/create_rule_version.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17-
"""Executable and reusable sample for creating a new rule version."""
17+
"""Executable and reusable sample for creating a new rule version.
18+
19+
API reference:
20+
https://cloud.google.com/chronicle/docs/reference/detection-engine-api#createruleversion
21+
"""
1822

1923
import argparse
2024
from typing import Any, Mapping

detect/v2/delete_rule.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17-
"""Executable and reusable sample for deleting a detection rule."""
17+
"""Executable and reusable sample for deleting a detection rule.
18+
19+
API reference:
20+
https://cloud.google.com/chronicle/docs/reference/detection-engine-api#deleterule
21+
"""
1822

1923
import argparse
2024

detect/v2/disable_alerting.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17-
"""Executable and reusable sample for disabling alerting for a rule."""
17+
"""Executable and reusable sample for disabling alerting for a rule.
18+
19+
API reference:
20+
https://cloud.google.com/chronicle/docs/reference/detection-engine-api#disablealerting
21+
"""
1822

1923
import argparse
2024

detect/v2/disable_live_rule.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17-
"""Executable and reusable sample for disabling a live rule."""
17+
"""Executable and reusable sample for disabling a live rule.
18+
19+
API reference:
20+
https://cloud.google.com/chronicle/docs/reference/detection-engine-api#disableliverule
21+
"""
1822

1923
import argparse
2024

detect/v2/enable_alerting.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17-
"""Executable and reusable sample for enabling alerting for a detection rule."""
17+
"""Executable and reusable sample for enabling alerting for a detection rule.
18+
19+
API reference:
20+
https://cloud.google.com/chronicle/docs/reference/detection-engine-api#enablealerting
21+
"""
1822

1923
import argparse
2024

detect/v2/enable_live_rule.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17-
"""Executable and reusable sample for enabling a live detection rule."""
17+
"""Executable and reusable sample for enabling a live detection rule.
18+
19+
API reference:
20+
https://cloud.google.com/chronicle/docs/reference/detection-engine-api#enableliverule
21+
"""
1822

1923
import argparse
2024

detect/v2/get_detection.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17-
"""Executable and reusable sample for retrieving detection."""
17+
"""Executable and reusable sample for retrieving detection.
18+
19+
API reference:
20+
https://cloud.google.com/chronicle/docs/reference/detection-engine-api#getdetection
21+
"""
1822

1923
import argparse
2024
import json

detect/v2/get_error.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17-
"""Executable and reusable sample for retrieving an error."""
17+
"""Executable and reusable sample for retrieving an error.
18+
19+
API reference:
20+
https://cloud.google.com/chronicle/docs/reference/detection-engine-api#geterror
21+
"""
1822

1923
import argparse
2024
import json

0 commit comments

Comments
 (0)