Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityProfileV2

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

Overview

Security profile for risk assessment version 2.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1SecurityProfileV2

Returns a new instance of GoogleCloudApigeeV1SecurityProfileV2.



11715
11716
11717
# File 'lib/google/apis/apigee_v1/classes.rb', line 11715

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

Instance Attribute Details

#create_timeString

Output only. The time of the security profile creation. Corresponds to the JSON property createTime

Returns:

  • (String)


11679
11680
11681
# File 'lib/google/apis/apigee_v1/classes.rb', line 11679

def create_time
  @create_time
end

#descriptionString

Optional. The description of the security profile. Corresponds to the JSON property description

Returns:

  • (String)


11684
11685
11686
# File 'lib/google/apis/apigee_v1/classes.rb', line 11684

def description
  @description
end

#google_definedBoolean Also known as: google_defined?

Output only. Whether the security profile is google defined. Corresponds to the JSON property googleDefined

Returns:

  • (Boolean)


11689
11690
11691
# File 'lib/google/apis/apigee_v1/classes.rb', line 11689

def google_defined
  @google_defined
end

#nameString

Identifier. Name of the security profile v2 resource. Format: organizations/ org/securityProfilesV2/profile Corresponds to the JSON property name

Returns:

  • (String)


11696
11697
11698
# File 'lib/google/apis/apigee_v1/classes.rb', line 11696

def name
  @name
end

#profile_assessment_configsHash<String,Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityProfileV2ProfileAssessmentConfig>

Required. The configuration for each assessment in this profile. Key is the name/id of the assessment. Corresponds to the JSON property profileAssessmentConfigs



11702
11703
11704
# File 'lib/google/apis/apigee_v1/classes.rb', line 11702

def profile_assessment_configs
  @profile_assessment_configs
end

#risk_assessment_typeString

Optional. The risk assessment type of the security profile. Defaults to ADVANCED_API_SECURITY. Corresponds to the JSON property riskAssessmentType

Returns:

  • (String)


11708
11709
11710
# File 'lib/google/apis/apigee_v1/classes.rb', line 11708

def risk_assessment_type
  @risk_assessment_type
end

#update_timeString

Output only. The time of the security profile update. Corresponds to the JSON property updateTime

Returns:

  • (String)


11713
11714
11715
# File 'lib/google/apis/apigee_v1/classes.rb', line 11713

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11720
11721
11722
11723
11724
11725
11726
11727
11728
# File 'lib/google/apis/apigee_v1/classes.rb', line 11720

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @google_defined = args[:google_defined] if args.key?(:google_defined)
  @name = args[:name] if args.key?(:name)
  @profile_assessment_configs = args[:profile_assessment_configs] if args.key?(:profile_assessment_configs)
  @risk_assessment_type = args[:risk_assessment_type] if args.key?(:risk_assessment_type)
  @update_time = args[:update_time] if args.key?(:update_time)
end