Class: Google::Apis::SecuritycenterV1beta1::Subject
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta1::Subject
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1beta1/classes.rb,
lib/google/apis/securitycenter_v1beta1/representations.rb,
lib/google/apis/securitycenter_v1beta1/representations.rb
Overview
Represents a Kubernetes subject.
Instance Attribute Summary collapse
-
#kind ⇒ String
Authentication type for the subject.
-
#name ⇒ String
Name for the subject.
-
#ns ⇒ String
Namespace for the subject.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Subject
constructor
A new instance of Subject.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Subject
Returns a new instance of Subject.
8914 8915 8916 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 8914 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
Authentication type for the subject.
Corresponds to the JSON property kind
8902 8903 8904 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 8902 def kind @kind end |
#name ⇒ String
Name for the subject.
Corresponds to the JSON property name
8907 8908 8909 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 8907 def name @name end |
#ns ⇒ String
Namespace for the subject.
Corresponds to the JSON property ns
8912 8913 8914 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 8912 def ns @ns end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8919 8920 8921 8922 8923 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 8919 def update!(**args) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @ns = args[:ns] if args.key?(:ns) end |