Class: Google::Apis::WorkloadmanagerV1::Rule

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

Overview

Message represent a rule

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Rule

Returns a new instance of Rule.



994
995
996
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 994

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

Instance Attribute Details

#descriptionString

descrite rule in plain language Corresponds to the JSON property description

Returns:

  • (String)


942
943
944
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 942

def description
  @description
end

#display_nameString

the name display in UI Corresponds to the JSON property displayName

Returns:

  • (String)


947
948
949
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 947

def display_name
  @display_name
end

#error_messageString

the message template for rule Corresponds to the JSON property errorMessage

Returns:

  • (String)


952
953
954
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 952

def error_message
  @error_message
end

#nameString

rule name Corresponds to the JSON property name

Returns:

  • (String)


957
958
959
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 957

def name
  @name
end

#primary_categoryString

the primary category Corresponds to the JSON property primaryCategory

Returns:

  • (String)


962
963
964
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 962

def primary_category
  @primary_category
end

#remediationString

the remediation for the rule Corresponds to the JSON property remediation

Returns:

  • (String)


967
968
969
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 967

def remediation
  @remediation
end

#revision_idString

Output only. the version of the rule Corresponds to the JSON property revisionId

Returns:

  • (String)


972
973
974
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 972

def revision_id
  @revision_id
end

#secondary_categoryString

the secondary category Corresponds to the JSON property secondaryCategory

Returns:

  • (String)


977
978
979
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 977

def secondary_category
  @secondary_category
end

#severityString

the severity of the rule Corresponds to the JSON property severity

Returns:

  • (String)


982
983
984
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 982

def severity
  @severity
end

#tagsArray<String>

List of user-defined tags Corresponds to the JSON property tags

Returns:

  • (Array<String>)


987
988
989
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 987

def tags
  @tags
end

#uriString

the docuement url for the rule Corresponds to the JSON property uri

Returns:

  • (String)


992
993
994
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 992

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 999

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @error_message = args[:error_message] if args.key?(:error_message)
  @name = args[:name] if args.key?(:name)
  @primary_category = args[:primary_category] if args.key?(:primary_category)
  @remediation = args[:remediation] if args.key?(:remediation)
  @revision_id = args[:revision_id] if args.key?(:revision_id)
  @secondary_category = args[:secondary_category] if args.key?(:secondary_category)
  @severity = args[:severity] if args.key?(:severity)
  @tags = args[:tags] if args.key?(:tags)
  @uri = args[:uri] if args.key?(:uri)
end