Class: Google::Apis::SecuritycenterV1beta2::Subject
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta2::Subject
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1beta2/classes.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb
Overview
Represents a Kubernetes Subject.
Instance Attribute Summary collapse
-
#kind ⇒ String
Authentication type for subject.
-
#name ⇒ String
Name for subject.
-
#ns ⇒ String
Namespace for 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.
3083 3084 3085 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3083 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
Authentication type for subject.
Corresponds to the JSON property kind
3071 3072 3073 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3071 def kind @kind end |
#name ⇒ String
Name for subject.
Corresponds to the JSON property name
3076 3077 3078 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3076 def name @name end |
#ns ⇒ String
Namespace for subject.
Corresponds to the JSON property ns
3081 3082 3083 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3081 def ns @ns end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3088 3089 3090 3091 3092 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3088 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 |