public sealed class ResourceFilter : IMessage<ResourceFilter>, IEquatable<ResourceFilter>, IDeepCloneable<ResourceFilter>, IBufferMessage, IMessageReference documentation and code samples for the Workload Manager v1 API class ResourceFilter.
Resource filter for an evaluation defining the scope of resources to be evaluated.
Implements
IMessageResourceFilter, IEquatableResourceFilter, IDeepCloneableResourceFilter, IBufferMessage, IMessageNamespace
Google.Cloud.WorkloadManager.V1Assembly
Google.Cloud.WorkloadManager.V1.dll
Constructors
ResourceFilter()
public ResourceFilter()ResourceFilter(ResourceFilter)
public ResourceFilter(ResourceFilter other)| Parameter | |
|---|---|
| Name | Description |
other |
ResourceFilter |
Properties
GceInstanceFilter
public GceInstanceFilter GceInstanceFilter { get; set; }Filter compute engine resources.
| Property Value | |
|---|---|
| Type | Description |
GceInstanceFilter |
|
InclusionLabels
public MapField<string, string> InclusionLabels { get; }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.
| Property Value | |
|---|---|
| Type | Description |
MapFieldstringstring |
|
ResourceIdPatterns
public RepeatedField<string> ResourceIdPatterns { get; }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.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldstring |
|
Scopes
public RepeatedField<string> Scopes { get; }The scopes of evaluation resource. Format:
projects/{project_id}folders/{folder_id}organizations/{organization_id}
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldstring |
|