Reference documentation and code samples for the Google Cloud Gke Backup V1 Client class ResourceFilter.
ResourceFilter specifies matching criteria to limit the scope of a
change to a specific set of kubernetes resources that are selected for
restoration from a backup.
Generated from protobuf message google.cloud.gkebackup.v1.RestoreConfig.ResourceFilter
Namespace
Google \ Cloud \ GkeBackup \ V1 \ RestoreConfig
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ namespaces
array
Optional. (Filtering parameter) Any resource subject to transformation must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for transformation).
Optional. (Filtering parameter) Any resource subject to transformation must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).
↳ json_path
string
Optional. This is a JSONPath expression that matches specific fields of candidate resources and it operates as a filtering parameter (resources that are not matched with this expression will not be candidates for transformation).
getNamespaces
Optional. (Filtering parameter) Any resource subject to transformation
must be contained within one of the listed Kubernetes Namespace in the
Backup. If this field is not provided, no namespace filtering will be
performed (all resources in all Namespaces, including all cluster-scoped
resources, will be candidates for transformation).
Optional. (Filtering parameter) Any resource subject to transformation
must be contained within one of the listed Kubernetes Namespace in the
Backup. If this field is not provided, no namespace filtering will be
performed (all resources in all Namespaces, including all cluster-scoped
resources, will be candidates for transformation).
Parameter
Name
Description
var
string[]
Returns
Type
Description
$this
getGroupKinds
Optional. (Filtering parameter) Any resource subject to transformation
must belong to one of the listed "types". If this field is not provided,
no type filtering will be performed (all resources of all types matching
previous filtering parameters will be candidates for transformation).
Optional. (Filtering parameter) Any resource subject to transformation
must belong to one of the listed "types". If this field is not provided,
no type filtering will be performed (all resources of all types matching
previous filtering parameters will be candidates for transformation).
Optional. This is a JSONPath
expression that matches specific fields of candidate
resources and it operates as a filtering parameter (resources that
are not matched with this expression will not be candidates for
transformation).
Returns
Type
Description
string
setJsonPath
Optional. This is a JSONPath
expression that matches specific fields of candidate
resources and it operates as a filtering parameter (resources that
are not matched with this expression will not be candidates for
transformation).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Gke Backup V1 Client - Class ResourceFilter (1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/php/docs/reference/cloud-gke-backup/latest/V1.RestoreConfig.ResourceFilter)\n- [1.2.0](/php/docs/reference/cloud-gke-backup/1.2.0/V1.RestoreConfig.ResourceFilter)\n- [1.0.3](/php/docs/reference/cloud-gke-backup/1.0.3/V1.RestoreConfig.ResourceFilter)\n- [0.8.1](/php/docs/reference/cloud-gke-backup/0.8.1/V1.RestoreConfig.ResourceFilter)\n- [0.7.2](/php/docs/reference/cloud-gke-backup/0.7.2/V1.RestoreConfig.ResourceFilter)\n- [0.6.0](/php/docs/reference/cloud-gke-backup/0.6.0/V1.RestoreConfig.ResourceFilter)\n- [0.5.3](/php/docs/reference/cloud-gke-backup/0.5.3/V1.RestoreConfig.ResourceFilter)\n- [0.4.0](/php/docs/reference/cloud-gke-backup/0.4.0/V1.RestoreConfig.ResourceFilter)\n- [0.3.1](/php/docs/reference/cloud-gke-backup/0.3.1/V1.RestoreConfig.ResourceFilter)\n- [0.2.0](/php/docs/reference/cloud-gke-backup/0.2.0/V1.RestoreConfig.ResourceFilter)\n- [0.1.7](/php/docs/reference/cloud-gke-backup/0.1.7/V1.RestoreConfig.ResourceFilter) \nReference documentation and code samples for the Google Cloud Gke Backup V1 Client class ResourceFilter.\n\nResourceFilter specifies matching criteria to limit the scope of a\nchange to a specific set of kubernetes resources that are selected for\nrestoration from a backup.\n\nGenerated from protobuf message `google.cloud.gkebackup.v1.RestoreConfig.ResourceFilter`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ GkeBackup \\\\ V1 \\\\ RestoreConfig\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getNamespaces\n\nOptional. (Filtering parameter) Any resource subject to transformation\nmust be contained within one of the listed Kubernetes Namespace in the\nBackup. If this field is not provided, no namespace filtering will be\nperformed (all resources in all Namespaces, including all cluster-scoped\nresources, will be candidates for transformation).\n\n### setNamespaces\n\nOptional. (Filtering parameter) Any resource subject to transformation\nmust be contained within one of the listed Kubernetes Namespace in the\nBackup. If this field is not provided, no namespace filtering will be\nperformed (all resources in all Namespaces, including all cluster-scoped\nresources, will be candidates for transformation).\n\n### getGroupKinds\n\nOptional. (Filtering parameter) Any resource subject to transformation\nmust belong to one of the listed \"types\". If this field is not provided,\nno type filtering will be performed (all resources of all types matching\nprevious filtering parameters will be candidates for transformation).\n\n### setGroupKinds\n\nOptional. (Filtering parameter) Any resource subject to transformation\nmust belong to one of the listed \"types\". If this field is not provided,\nno type filtering will be performed (all resources of all types matching\nprevious filtering parameters will be candidates for transformation).\n\n### getJsonPath\n\nOptional. This is a [JSONPath](https://github.com/json-path/JsonPath/blob/master/README.md)\nexpression that matches specific fields of candidate\nresources and it operates as a filtering parameter (resources that\nare not matched with this expression will not be candidates for\ntransformation).\n\n### setJsonPath\n\nOptional. This is a [JSONPath](https://github.com/json-path/JsonPath/blob/master/README.md)\nexpression that matches specific fields of candidate\nresources and it operates as a filtering parameter (resources that\nare not matched with this expression will not be candidates for\ntransformation)."]]