-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(monitoring): add monitoring.v3.InternalChecker.state
; add monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption
; add recursive
parameter to delete_group
; add read-only validity
field to monitoring.v3.AlertPolicy
; add validate_ssl
parameter to monitoring.v3.UptimeCheckConfig.HttpCheck
#9546
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -148,10 +148,10 @@ class ServiceTier(enum.IntEnum): | |
|
||
class UptimeCheckRegion(enum.IntEnum): | ||
""" | ||
The regions from which an uptime check can be run. | ||
The regions from which an Uptime check can be run. | ||
|
||
Attributes: | ||
REGION_UNSPECIFIED (int): Default value if no region is specified. Will result in uptime checks | ||
REGION_UNSPECIFIED (int): Default value if no region is specified. Will result in Uptime checks | ||
running from all regions. | ||
USA (int): Allows checks to run from locations within the United States of America. | ||
EUROPE (int): Allows checks to run from locations within the continent of Europe. | ||
|
@@ -397,6 +397,31 @@ class ConditionCombinerType(enum.IntEnum): | |
AND_WITH_MATCHING_RESOURCE = 3 | ||
|
||
|
||
class InternalChecker(object): | ||
class State(enum.IntEnum): | ||
""" | ||
Operational states for an internal checker. | ||
|
||
Attributes: | ||
UNSPECIFIED (int): An internal checker should never be in the unspecified state. | ||
CREATING (int): The checker is being created, provisioned, and configured. A checker in | ||
this state can be returned by ``ListInternalCheckers`` or | ||
``GetInternalChecker``, as well as by examining the `long running | ||
Operation <https://cloud.google.com/apis/design/design_patterns#long_running_operations>`__ | ||
that created it. | ||
RUNNING (int): The checker is running and available for use. A checker in this state | ||
can be returned by ``ListInternalCheckers`` or ``GetInternalChecker`` as | ||
well as by examining the `long running | ||
Operation <https://cloud.google.com/apis/design/design_patterns#long_running_operations>`__ | ||
that created it. If a checker is being torn down, it is neither visible | ||
nor usable, so there is no "deleting" or "down" state. | ||
""" | ||
|
||
UNSPECIFIED = 0 | ||
CREATING = 1 | ||
RUNNING = 2 | ||
|
||
|
||
class LabelDescriptor(object): | ||
class ValueType(enum.IntEnum): | ||
""" | ||
|
@@ -498,3 +523,33 @@ class VerificationStatus(enum.IntEnum): | |
VERIFICATION_STATUS_UNSPECIFIED = 0 | ||
UNVERIFIED = 1 | ||
VERIFIED = 2 | ||
|
||
|
||
class UptimeCheckConfig(object): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add |
||
class ContentMatcher(object): | ||
class ContentMatcherOption(enum.IntEnum): | ||
""" | ||
Options to perform content matching. | ||
|
||
Attributes: | ||
CONTENT_MATCHER_OPTION_UNSPECIFIED (int): No content matcher type specified (maintained for backward | ||
compatibility, but deprecated for future use). Treated as | ||
``CONTAINS_STRING``. | ||
CONTAINS_STRING (int): Selects substring matching (there is a match if the output contains the | ||
``content`` string). This is the default value for checks without a | ||
``matcher`` option, or where the value of ``matcher`` is | ||
``CONTENT_MATCHER_OPTION_UNSPECIFIED``. | ||
NOT_CONTAINS_STRING (int): Selects negation of substring matching (there is a match if the output | ||
does NOT contain the ``content`` string). | ||
MATCHES_REGEX (int): Selects regular expression matching (there is a match of the output | ||
matches the regular expression specified in the ``content`` string). | ||
NOT_MATCHES_REGEX (int): Selects negation of regular expression matching (there is a match if the | ||
output does NOT match the regular expression specified in the | ||
``content`` string). | ||
""" | ||
|
||
CONTENT_MATCHER_OPTION_UNSPECIFIED = 0 | ||
CONTAINS_STRING = 1 | ||
NOT_CONTAINS_STRING = 2 | ||
MATCHES_REGEX = 3 | ||
NOT_MATCHES_REGEX = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -599,6 +599,7 @@ def update_group( | |
def delete_group( | ||
self, | ||
name, | ||
recursive=None, | ||
retry=google.api_core.gapic_v1.method.DEFAULT, | ||
timeout=google.api_core.gapic_v1.method.DEFAULT, | ||
metadata=None, | ||
|
@@ -618,6 +619,9 @@ def delete_group( | |
Args: | ||
name (str): The group to delete. The format is | ||
``"projects/{project_id_or_number}/groups/{group_id}"``. | ||
recursive (bool): If this field is true, then the request means to delete a group with all | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add |
||
its descendants. Otherwise, the request means to delete a group only when | ||
it has no descendants. The default value is false. | ||
retry (Optional[google.api_core.retry.Retry]): A retry object used | ||
to retry requests. If ``None`` is specified, requests will | ||
be retried using a default configuration. | ||
|
@@ -648,7 +652,7 @@ def delete_group( | |
client_info=self._client_info, | ||
) | ||
|
||
request = group_service_pb2.DeleteGroupRequest(name=name) | ||
request = group_service_pb2.DeleteGroupRequest(name=name, recursive=recursive) | ||
if metadata is None: | ||
metadata = [] | ||
metadata = list(metadata) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add internal checker