Class: Google::Apis::RunV1alpha1::ObjectReference
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::ObjectReference
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/run_v1alpha1/classes.rb,
lib/google/apis/run_v1alpha1/representations.rb,
lib/google/apis/run_v1alpha1/representations.rb
Overview
ObjectReference contains enough information to let you inspect or modify the referred object.
Instance Attribute Summary collapse
-
#api_version ⇒ String
API version of the referent.
-
#field_path ⇒ String
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.
-
#kind ⇒ String
Kind of the referent.
-
#name ⇒ String
Name of the referent.
-
#namespace ⇒ String
Namespace of the referent.
-
#resource_version ⇒ String
Specific resourceVersion to which this reference is made, if any.
-
#uid ⇒ String
UID of the referent.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ObjectReference
constructor
A new instance of ObjectReference.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ObjectReference
Returns a new instance of ObjectReference.
3396 3397 3398 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 3396 def initialize(**args) update!(**args) end |
Instance Attribute Details
#api_version ⇒ String
API version of the referent. +optional
Corresponds to the JSON property apiVersion
3351 3352 3353 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 3351 def api_version @api_version end |
#field_path ⇒ String
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
3363 3364 3365 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 3363 def field_path @field_path end |
#kind ⇒ String
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
3369 3370 3371 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 3369 def kind @kind end |
#name ⇒ String
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/
working-with-objects/names/#names +optional
Corresponds to the JSON property name
3375 3376 3377 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 3375 def name @name end |
#namespace ⇒ String
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/
overview/working-with-objects/namespaces/ +optional
Corresponds to the JSON property namespace
3381 3382 3383 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 3381 def namespace @namespace end |
#resource_version ⇒ String
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
3388 3389 3390 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 3388 def resource_version @resource_version end |
#uid ⇒ String
UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/
working-with-objects/names/#uids +optional
Corresponds to the JSON property uid
3394 3395 3396 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 3394 def uid @uid end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3401 3402 3403 3404 3405 3406 3407 3408 3409 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 3401 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 |