Class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Resource

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1/classes.rb,
lib/google/apis/securitycenter_v1/representations.rb,
lib/google/apis/securitycenter_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV1p1beta1Resource

Returns a new instance of GoogleCloudSecuritycenterV1p1beta1Resource.



4517
4518
4519
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 4517

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#foldersArray<Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Folder>

Corresponds to the JSON property folders



4490
4491
4492
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 4490

def folders
  @folders
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


4495
4496
4497
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 4495

def name
  @name
end

#parentString

Corresponds to the JSON property parent

Returns:

  • (String)


4500
4501
4502
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 4500

def parent
  @parent
end

#parent_display_nameString

Corresponds to the JSON property parentDisplayName

Returns:

  • (String)


4505
4506
4507
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 4505

def parent_display_name
  @parent_display_name
end

#projectString

Corresponds to the JSON property project

Returns:

  • (String)


4510
4511
4512
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 4510

def project
  @project
end

#project_display_nameString

Corresponds to the JSON property projectDisplayName

Returns:

  • (String)


4515
4516
4517
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 4515

def project_display_name
  @project_display_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4522
4523
4524
4525
4526
4527
4528
4529
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 4522

def update!(**args)
  @folders = args[:folders] if args.key?(:folders)
  @name = args[:name] if args.key?(:name)
  @parent = args[:parent] if args.key?(:parent)
  @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
  @project = args[:project] if args.key?(:project)
  @project_display_name = args[:project_display_name] if args.key?(:project_display_name)
end