Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1AccessLoggingConfig

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

Access logging configuration enables customers to ship the access logs from the tenant projects to their own project's cloud logging. The feature is at the instance level ad disabled by default. It can be enabled during CreateInstance or UpdateInstance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1AccessLoggingConfig

Returns a new instance of GoogleCloudApigeeV1AccessLoggingConfig.



228
229
230
# File 'lib/google/apis/apigee_v1/classes.rb', line 228

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

Instance Attribute Details

#enabledBoolean Also known as: enabled?

Optional. Boolean flag that specifies whether the customer access log feature is enabled. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


216
217
218
# File 'lib/google/apis/apigee_v1/classes.rb', line 216

def enabled
  @enabled
end

#filterString

Optional. Ship the access log entries that match the status_code defined in the filter. The status_code is the only expected/supported filter field. (Ex: status_code) The filter will parse it to the Common Expression Language semantics for expression evaluation to build the filter condition. (Ex: " filter": status_code >= 200 && status_code < 300 ) Corresponds to the JSON property filter

Returns:

  • (String)


226
227
228
# File 'lib/google/apis/apigee_v1/classes.rb', line 226

def filter
  @filter
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



233
234
235
236
# File 'lib/google/apis/apigee_v1/classes.rb', line 233

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