Class: Google::Apis::NetworksecurityV1::GatewaySecurityPolicy

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

Overview

The GatewaySecurityPolicy resource contains a collection of GatewaySecurityPolicyRules and associated metadata.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GatewaySecurityPolicy

Returns a new instance of GatewaySecurityPolicy.



1493
1494
1495
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 1493

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

Instance Attribute Details

#create_timeString

Output only. The timestamp when the resource was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1467
1468
1469
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 1467

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


1472
1473
1474
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 1472

def description
  @description
end

#nameString

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

Returns:

  • (String)


1480
1481
1482
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 1480

def name
  @name
end

#tls_inspection_policyString

Optional. Name of a TLS Inspection Policy resource that defines how TLS inspection will be performed for any rule(s) which enables it. Corresponds to the JSON property tlsInspectionPolicy

Returns:

  • (String)


1486
1487
1488
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 1486

def tls_inspection_policy
  @tls_inspection_policy
end

#update_timeString

Output only. The timestamp when the resource was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1491
1492
1493
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 1491

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1498
1499
1500
1501
1502
1503
1504
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 1498

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