Google Cloud Gke Hub V1 Client - Class ErrorResource (0.8.2)

Reference documentation and code samples for the Google Cloud Gke Hub V1 Client class ErrorResource.

Model for a config file in the git repo with an associated Sync error

Generated from protobuf message google.cloud.gkehub.configmanagement.v1.ErrorResource

Namespace

Google \ Cloud \ GkeHub \ ConfigManagement \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ source_path string

Path in the git repo of the erroneous config

↳ resource_name string

Metadata name of the resource that is causing an error

↳ resource_namespace string

Namespace of the resource that is causing an error

↳ resource_gvk Google\Cloud\GkeHub\ConfigManagement\V1\GroupVersionKind

Group/version/kind of the resource that is causing an error

getSourcePath

Path in the git repo of the erroneous config

Returns
TypeDescription
string

setSourcePath

Path in the git repo of the erroneous config

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getResourceName

Metadata name of the resource that is causing an error

Returns
TypeDescription
string

setResourceName

Metadata name of the resource that is causing an error

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getResourceNamespace

Namespace of the resource that is causing an error

Returns
TypeDescription
string

setResourceNamespace

Namespace of the resource that is causing an error

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getResourceGvk

Group/version/kind of the resource that is causing an error

Returns
TypeDescription
Google\Cloud\GkeHub\ConfigManagement\V1\GroupVersionKind|null

hasResourceGvk

clearResourceGvk

setResourceGvk

Group/version/kind of the resource that is causing an error

Parameter
NameDescription
var Google\Cloud\GkeHub\ConfigManagement\V1\GroupVersionKind
Returns
TypeDescription
$this