Class: Google::Apis::RunV1alpha1::ObjectReference

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

Overview

ObjectReference contains enough information to let you inspect or modify the referred object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ObjectReference

Returns a new instance of ObjectReference.


2938
2939
2940
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2938

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

Instance Attribute Details

#api_versionString

API version of the referent. +optional Corresponds to the JSON property apiVersion

Returns:

  • (String)

2893
2894
2895
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2893

def api_version
  @api_version
end

#field_pathString

If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState. manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containersname" (where " name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. Corresponds to the JSON property fieldPath

Returns:

  • (String)

2905
2906
2907
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2905

def field_path
  @field_path
end

#kindString

Kind of the referent. More info: https://git.k8s.io/community/contributors/ devel/api-conventions.md#types-kinds +optional Corresponds to the JSON property kind

Returns:

  • (String)

2911
2912
2913
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2911

def kind
  @kind
end

#nameString

Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/ working-with-objects/names/#names +optional Corresponds to the JSON property name

Returns:

  • (String)

2917
2918
2919
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2917

def name
  @name
end

#namespaceString

Namespace of the referent. More info: https://kubernetes.io/docs/concepts/ overview/working-with-objects/namespaces/ +optional Corresponds to the JSON property namespace

Returns:

  • (String)

2923
2924
2925
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2923

def namespace
  @namespace
end

#resource_versionString

Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency- control-and-consistency +optional Corresponds to the JSON property resourceVersion

Returns:

  • (String)

2930
2931
2932
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2930

def resource_version
  @resource_version
end

#uidString

UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/ working-with-objects/names/#uids +optional Corresponds to the JSON property uid

Returns:

  • (String)

2936
2937
2938
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2936

def uid
  @uid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2943
2944
2945
2946
2947
2948
2949
2950
2951
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2943

def update!(**args)
  @api_version = args[:api_version] if args.key?(:api_version)
  @field_path = args[:field_path] if args.key?(:field_path)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @namespace = args[:namespace] if args.key?(:namespace)
  @resource_version = args[:resource_version] if args.key?(:resource_version)
  @uid = args[:uid] if args.key?(:uid)
end