Class: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties

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

Overview

Cloud SCC managed properties. These properties are managed by Cloud SCC and cannot be modified by the user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties

Returns a new instance of GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties.



533
534
535
# File 'generated/google/apis/securitycenter_v1p1alpha1/classes.rb', line 533

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

Instance Attribute Details

#resource_display_nameString

The user defined display name for this resource. Corresponds to the JSON property resourceDisplayName

Returns:

  • (String)


489
490
491
# File 'generated/google/apis/securitycenter_v1p1alpha1/classes.rb', line 489

def resource_display_name
  @resource_display_name
end

#resource_nameString

The full resource name of the GCP resource this asset represents. This field is immutable after create time. See: https://cloud.google.com/apis/design/resource_names#full_resource_name Corresponds to the JSON property resourceName

Returns:

  • (String)


496
497
498
# File 'generated/google/apis/securitycenter_v1p1alpha1/classes.rb', line 496

def resource_name
  @resource_name
end

#resource_ownersArray<String>

Owners of the Google Cloud resource. Corresponds to the JSON property resourceOwners

Returns:

  • (Array<String>)


501
502
503
# File 'generated/google/apis/securitycenter_v1p1alpha1/classes.rb', line 501

def resource_owners
  @resource_owners
end

#resource_parentString

The full resource name of the immediate parent of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name Corresponds to the JSON property resourceParent

Returns:

  • (String)


507
508
509
# File 'generated/google/apis/securitycenter_v1p1alpha1/classes.rb', line 507

def resource_parent
  @resource_parent
end

#resource_parent_display_nameString

The user defined display name for the parent of this resource. Corresponds to the JSON property resourceParentDisplayName

Returns:

  • (String)


512
513
514
# File 'generated/google/apis/securitycenter_v1p1alpha1/classes.rb', line 512

def resource_parent_display_name
  @resource_parent_display_name
end

#resource_projectString

The full resource name of the project the resource belongs to. See: https://cloud.google.com/apis/design/resource_names#full_resource_name Corresponds to the JSON property resourceProject

Returns:

  • (String)


518
519
520
# File 'generated/google/apis/securitycenter_v1p1alpha1/classes.rb', line 518

def resource_project
  @resource_project
end

#resource_project_display_nameString

The user defined display name for the project of this resource. Corresponds to the JSON property resourceProjectDisplayName

Returns:

  • (String)


523
524
525
# File 'generated/google/apis/securitycenter_v1p1alpha1/classes.rb', line 523

def resource_project_display_name
  @resource_project_display_name
end

#resource_typeString

The type of the GCP resource. Examples include: APPLICATION, PROJECT, and ORGANIZATION. This is a case insensitive field defined by Cloud SCC and/or the producer of the resource and is immutable after create time. Corresponds to the JSON property resourceType

Returns:

  • (String)


531
532
533
# File 'generated/google/apis/securitycenter_v1p1alpha1/classes.rb', line 531

def resource_type
  @resource_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



538
539
540
541
542
543
544
545
546
547
# File 'generated/google/apis/securitycenter_v1p1alpha1/classes.rb', line 538

def update!(**args)
  @resource_display_name = args[:resource_display_name] if args.key?(:resource_display_name)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @resource_owners = args[:resource_owners] if args.key?(:resource_owners)
  @resource_parent = args[:resource_parent] if args.key?(:resource_parent)
  @resource_parent_display_name = args[:resource_parent_display_name] if args.key?(:resource_parent_display_name)
  @resource_project = args[:resource_project] if args.key?(:resource_project)
  @resource_project_display_name = args[:resource_project_display_name] if args.key?(:resource_project_display_name)
  @resource_type = args[:resource_type] if args.key?(:resource_type)
end