Class: Google::Apis::GkehubV1beta::ConfigManagementErrorResource

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v1beta/classes.rb,
lib/google/apis/gkehub_v1beta/representations.rb,
lib/google/apis/gkehub_v1beta/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConfigManagementErrorResource

Returns a new instance of ConfigManagementErrorResource.



1219
1220
1221
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1219

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#resource_gvkGoogle::Apis::GkehubV1beta::ConfigManagementGroupVersionKind

A Kubernetes object's GVK Corresponds to the JSON property resourceGvk



1202
1203
1204
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1202

def resource_gvk
  @resource_gvk
end

#resource_nameString

Metadata name of the resource that is causing an error Corresponds to the JSON property resourceName

Returns:

  • (String)


1207
1208
1209
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1207

def resource_name
  @resource_name
end

#resource_namespaceString

Namespace of the resource that is causing an error Corresponds to the JSON property resourceNamespace

Returns:

  • (String)


1212
1213
1214
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1212

def resource_namespace
  @resource_namespace
end

#source_pathString

Path in the git repo of the erroneous config Corresponds to the JSON property sourcePath

Returns:

  • (String)


1217
1218
1219
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1217

def source_path
  @source_path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1224
1225
1226
1227
1228
1229
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1224

def update!(**args)
  @resource_gvk = args[:resource_gvk] if args.key?(:resource_gvk)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @resource_namespace = args[:resource_namespace] if args.key?(:resource_namespace)
  @source_path = args[:source_path] if args.key?(:source_path)
end