Class: Google::Apis::SecuritycenterV1beta2::GcpMetadata

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) ⇒ GcpMetadata

Returns a new instance of GcpMetadata.



3020
3021
3022
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3020

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

Instance Attribute Details

#foldersArray<Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2Folder>

Corresponds to the JSON property folders



2993
2994
2995
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2993

def folders
  @folders
end

#organizationString

Corresponds to the JSON property organization

Returns:

  • (String)


2998
2999
3000
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2998

def organization
  @organization
end

#parentString

Corresponds to the JSON property parent

Returns:

  • (String)


3003
3004
3005
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3003

def parent
  @parent
end

#parent_display_nameString

Corresponds to the JSON property parentDisplayName

Returns:

  • (String)


3008
3009
3010
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3008

def parent_display_name
  @parent_display_name
end

#projectString

Corresponds to the JSON property project

Returns:

  • (String)


3013
3014
3015
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3013

def project
  @project
end

#project_display_nameString

Corresponds to the JSON property projectDisplayName

Returns:

  • (String)


3018
3019
3020
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3018

def project_display_name
  @project_display_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3025
3026
3027
3028
3029
3030
3031
3032
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3025

def update!(**args)
  @folders = args[:folders] if args.key?(:folders)
  @organization = args[:organization] if args.key?(:organization)
  @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