Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiSecurityConfig

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

Configurations of the API Security add-on.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1ApiSecurityConfig

Returns a new instance of GoogleCloudApigeeV1ApiSecurityConfig.



1330
1331
1332
# File 'lib/google/apis/apigee_v1/classes.rb', line 1330

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

Instance Attribute Details

#enabledBoolean Also known as: enabled?

Flag that specifies whether the API security add-on is enabled. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


1321
1322
1323
# File 'lib/google/apis/apigee_v1/classes.rb', line 1321

def enabled
  @enabled
end

#expires_atFixnum

Output only. Time at which the API Security add-on expires in in milliseconds since epoch. If unspecified, the add-on will never expire. Corresponds to the JSON property expiresAt

Returns:

  • (Fixnum)


1328
1329
1330
# File 'lib/google/apis/apigee_v1/classes.rb', line 1328

def expires_at
  @expires_at
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1335
1336
1337
1338
# File 'lib/google/apis/apigee_v1/classes.rb', line 1335

def update!(**args)
  @enabled = args[:enabled] if args.key?(:enabled)
  @expires_at = args[:expires_at] if args.key?(:expires_at)
end