Workload Manager V1 API - Class Google::Cloud::WorkloadManager::V1::ResourceFilter (v0.2.0)

Reference documentation and code samples for the Workload Manager V1 API class Google::Cloud::WorkloadManager::V1::ResourceFilter.

Resource filter for an evaluation defining the scope of resources to be evaluated.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#gce_instance_filter

def gce_instance_filter() -> ::Google::Cloud::WorkloadManager::V1::GceInstanceFilter
Returns

#gce_instance_filter=

def gce_instance_filter=(value) -> ::Google::Cloud::WorkloadManager::V1::GceInstanceFilter
Parameter
Returns

#inclusion_labels

def inclusion_labels() -> ::Google::Protobuf::Map{::String => ::String}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — 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.

#inclusion_labels=

def inclusion_labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
  • value (::Google::Protobuf::Map{::String => ::String}) — 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.
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — 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.

#resource_id_patterns

def resource_id_patterns() -> ::Array<::String>
Returns
  • (::Array<::String>) — 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.

#resource_id_patterns=

def resource_id_patterns=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — 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.
Returns
  • (::Array<::String>) — 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.

#scopes

def scopes() -> ::Array<::String>
Returns
  • (::Array<::String>) —

    The scopes of evaluation resource. Format:

    • projects/{project_id}
    • folders/{folder_id}
    • organizations/{organization_id}

#scopes=

def scopes=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) —

    The scopes of evaluation resource. Format:

    • projects/{project_id}
    • folders/{folder_id}
    • organizations/{organization_id}
Returns
  • (::Array<::String>) —

    The scopes of evaluation resource. Format:

    • projects/{project_id}
    • folders/{folder_id}
    • organizations/{organization_id}