Class: Google::Apis::RunV1alpha1::OwnerReference
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::OwnerReference
- 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
-
#api_version ⇒ String
API version of the referent.
-
#block_owner_deletion ⇒ Boolean
(also: #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.
-
#controller ⇒ Boolean
(also: #controller?)
If true, this reference points to the managing controller.
-
#kind ⇒ String
Kind of the referent.
-
#name ⇒ String
Name of the referent.
-
#uid ⇒ String
UID of the referent.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OwnerReference
constructor
A new instance of OwnerReference.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ OwnerReference
Returns a new instance of OwnerReference.
2902 2903 2904 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2902 def initialize(**args) update!(**args) end |
Instance Attribute Details
#api_version ⇒ String
API version of the referent.
Corresponds to the JSON property apiVersion
2862 2863 2864 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2862 def api_version @api_version end |
#block_owner_deletion ⇒ Boolean 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
2873 2874 2875 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2873 def block_owner_deletion @block_owner_deletion end |
#controller ⇒ Boolean Also known as: controller?
If true, this reference points to the managing controller.
+optional
Corresponds to the JSON property controller
2880 2881 2882 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2880 def controller @controller end |
#kind ⇒ String
Kind of the referent.
More info:
https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
Corresponds to the JSON property kind
2888 2889 2890 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2888 def kind @kind end |
#name ⇒ String
Name of the referent.
More info: http://kubernetes.io/docs/user-guide/identifiers#names
Corresponds to the JSON property name
2894 2895 2896 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2894 def name @name end |
#uid ⇒ String
UID of the referent.
More info: http://kubernetes.io/docs/user-guide/identifiers#uids
Corresponds to the JSON property uid
2900 2901 2902 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2900 def uid @uid end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2907 2908 2909 2910 2911 2912 2913 2914 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2907 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 |