Class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1Binding
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1Binding
- 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
Instance Attribute Summary collapse
-
#name ⇒ String
Corresponds to the JSON property
name. -
#ns ⇒ String
Corresponds to the JSON property
ns. -
#role ⇒ Google::Apis::SecuritycenterV1beta2::Role
Corresponds to the JSON property
role. -
#subjects ⇒ Array<Google::Apis::SecuritycenterV1beta2::Subject>
Corresponds to the JSON property
subjects.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudSecuritycenterV1Binding
constructor
A new instance of GoogleCloudSecuritycenterV1Binding.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudSecuritycenterV1Binding
Returns a new instance of GoogleCloudSecuritycenterV1Binding.
2991 2992 2993 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2991 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Corresponds to the JSON property name
2974 2975 2976 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2974 def name @name end |
#ns ⇒ String
Corresponds to the JSON property ns
2979 2980 2981 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2979 def ns @ns end |
#role ⇒ Google::Apis::SecuritycenterV1beta2::Role
Corresponds to the JSON property role
2984 2985 2986 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2984 def role @role end |
#subjects ⇒ Array<Google::Apis::SecuritycenterV1beta2::Subject>
Corresponds to the JSON property subjects
2989 2990 2991 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2989 def subjects @subjects end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2996 2997 2998 2999 3000 3001 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2996 def update!(**args) @name = args[:name] if args.key?(:name) @ns = args[:ns] if args.key?(:ns) @role = args[:role] if args.key?(:role) @subjects = args[:subjects] if args.key?(:subjects) end |