class Google::Apis::RunV1alpha1::OwnerReference

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.

Attributes

api_version[RW]

API version of the referent. Corresponds to the JSON property `apiVersion` @return [String]

block_owner_deletion[RW]

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` @return [Boolean]

block_owner_deletion?[RW]

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` @return [Boolean]

controller[RW]

If true, this reference points to the managing controller. +optional Corresponds to the JSON property `controller` @return [Boolean]

controller?[RW]

If true, this reference points to the managing controller. +optional Corresponds to the JSON property `controller` @return [Boolean]

kind[RW]

Kind of the referent. More info: git.k8s.io/community/contributors/ devel/sig-architecture/api-conventions.md#types-kinds Corresponds to the JSON property `kind` @return [String]

name[RW]

Name of the referent. More info: kubernetes.io/docs/user-guide/ identifiers#names Corresponds to the JSON property `name` @return [String]

uid[RW]

UID of the referent. More info: kubernetes.io/docs/user-guide/ identifiers#uids Corresponds to the JSON property `uid` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/run_v1alpha1/classes.rb, line 1325
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/run_v1alpha1/classes.rb, line 1330
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