Class: Google::Apis::NetworksecurityV1beta1::GatewaySecurityPolicyRule

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

Overview

The GatewaySecurityPolicyRule resource is in a nested collection within a GatewaySecurityPolicy and represents a traffic matching condition and associated action to perform.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GatewaySecurityPolicyRule

Returns a new instance of GatewaySecurityPolicyRule.



1272
1273
1274
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1272

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

Instance Attribute Details

#application_matcherString

Optional. CEL expression for matching on L7/application level criteria. Corresponds to the JSON property applicationMatcher

Returns:

  • (String)


1219
1220
1221
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1219

def application_matcher
  @application_matcher
end

#basic_profileString

Required. Profile which tells what the primitive action should be. Corresponds to the JSON property basicProfile

Returns:

  • (String)


1224
1225
1226
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1224

def basic_profile
  @basic_profile
end

#create_timeString

Output only. Time when the rule was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1229
1230
1231
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1229

def create_time
  @create_time
end

#descriptionString

Optional. Free-text description of the resource. Corresponds to the JSON property description

Returns:

  • (String)


1234
1235
1236
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1234

def description
  @description
end

#enabledBoolean Also known as: enabled?

Required. Whether the rule is enforced. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


1239
1240
1241
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1239

def enabled
  @enabled
end

#nameString

Required. Immutable. Name of the resource. ame is the full resource name so projects/project/locations/location/gatewaySecurityPolicies/ gateway_security_policy/rules/rule rule should match the pattern: (^a-z?$). Corresponds to the JSON property name

Returns:

  • (String)


1248
1249
1250
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1248

def name
  @name
end

#priorityFixnum

Required. Priority of the rule. Lower number corresponds to higher precedence. Corresponds to the JSON property priority

Returns:

  • (Fixnum)


1253
1254
1255
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1253

def priority
  @priority
end

#session_matcherString

Required. CEL expression for matching on session criteria. Corresponds to the JSON property sessionMatcher

Returns:

  • (String)


1258
1259
1260
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1258

def session_matcher
  @session_matcher
end

#tls_inspection_enabledBoolean Also known as: tls_inspection_enabled?

Optional. Flag to enable TLS inspection of traffic matching on , can only be true if the parent GatewaySecurityPolicy references a TLSInspectionConfig. Corresponds to the JSON property tlsInspectionEnabled

Returns:

  • (Boolean)


1264
1265
1266
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1264

def tls_inspection_enabled
  @tls_inspection_enabled
end

#update_timeString

Output only. Time when the rule was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1270
1271
1272
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1270

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1277

def update!(**args)
  @application_matcher = args[:application_matcher] if args.key?(:application_matcher)
  @basic_profile = args[:basic_profile] if args.key?(:basic_profile)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @enabled = args[:enabled] if args.key?(:enabled)
  @name = args[:name] if args.key?(:name)
  @priority = args[:priority] if args.key?(:priority)
  @session_matcher = args[:session_matcher] if args.key?(:session_matcher)
  @tls_inspection_enabled = args[:tls_inspection_enabled] if args.key?(:tls_inspection_enabled)
  @update_time = args[:update_time] if args.key?(:update_time)
end