Class: Google::Apis::RunV1alpha1::OwnerReference

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

OwnerReference contains enough information to let you identify an owning object. Currently, an owning object must be in the same namespace, so there is no namespace field.

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) ⇒ OwnerReference

Returns a new instance of OwnerReference.



3212
3213
3214
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3212

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

Instance Attribute Details

#api_versionString

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

Returns:

  • (String)


3172
3173
3174
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3172

def api_version
  @api_version
end

#block_owner_deletionBoolean Also known as: block_owner_deletion?

If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. +optional Corresponds to the JSON property blockOwnerDeletion

Returns:

  • (Boolean)


3183
3184
3185
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3183

def block_owner_deletion
  @block_owner_deletion
end

#controllerBoolean Also known as: controller?

If true, this reference points to the managing controller. +optional Corresponds to the JSON property controller

Returns:

  • (Boolean)


3190
3191
3192
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3190

def controller
  @controller
end

#kindString

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

Returns:

  • (String)


3198
3199
3200
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3198

def kind
  @kind
end

#nameString

Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names Corresponds to the JSON property name

Returns:

  • (String)


3204
3205
3206
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3204

def name
  @name
end

#uidString

UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids Corresponds to the JSON property uid

Returns:

  • (String)


3210
3211
3212
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3210

def uid
  @uid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3217
3218
3219
3220
3221
3222
3223
3224
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3217

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