ResourceFilter(mapping=None, *, ignore_unknown_fields=False, **kwargs)Resource filter for an evaluation defining the scope of resources to be evaluated.
Attributes |
|
|---|---|
| Name | Description |
scopes |
MutableSequence[str]
The scopes of evaluation resource. Format: - projects/{project_id}
- folders/{folder_id}
- organizations/{organization_id}
|
resource_id_patterns |
MutableSequence[str]
The pattern to filter resources by their id For example, a pattern of ".\ *prod-cluster.*" will match all resources that contain "prod-cluster" in their ID. |
inclusion_labels |
MutableMapping[str, str]
Labels to filter resources by. Each key-value pair in the map must exist on the resource for it to be included (e.g. VM instance labels). For example, specifying { "env": "prod", "database": "nosql" } will only include
resources that have labels env=prod and
database=nosql.
|
gce_instance_filter |
google.cloud.workloadmanager_v1.types.GceInstanceFilter
Filter compute engine resources. |
Classes
InclusionLabelsEntry
InclusionLabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)The abstract base class for a message.
| Parameters | |
|---|---|
| Name | Description |
kwargs |
dict
Keys and values corresponding to the fields of the message. |
mapping |
Union[dict,
A dictionary or message to be used to determine the values for this message. |
ignore_unknown_fields |
Optional(bool)
If True, do not raise errors for unknown fields. Only applied if |