Class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1Binding

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


2974
2975
2976
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2974

def name
  @name
end

#nsString

Corresponds to the JSON property ns

Returns:

  • (String)


2979
2980
2981
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2979

def ns
  @ns
end

#roleGoogle::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

#subjectsArray<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