class Google::Apis::IamV1::LogConfig

Specifies what kind of log the caller must write Increment a streamz counter with the specified metric and field names. Metric names should start with a '/' , generally be lowercase-only, and end in “_count”. Field names should not contain an initial slash. The actual exported metric names will have “/iam/ policy” prepended. Field names correspond to IAM request parameters and field values are their respective values. At present only “iam_principal”, corresponding to IAMContext.principal, is supported. Examples: counter ` metric: “/debug_access_count” field: “iam_principal” ` ==> increment counter / iam/policy/backend_debug_access_count `iam_principal=[value of IAMContext. principal]` At this time we do not support: * multiple field names (though this may be supported in the future) * decrementing the counter * incrementing it by anything other than 1

Attributes

cloud_audit[RW]

Write a Cloud Audit log Corresponds to the JSON property `cloudAudit` @return [Google::Apis::IamV1::CloudAuditOptions]

counter[RW]

Options for counters Corresponds to the JSON property `counter` @return [Google::Apis::IamV1::CounterOptions]

data_access[RW]

Write a Data Access (Gin) log Corresponds to the JSON property `dataAccess` @return [Google::Apis::IamV1::DataAccessOptions]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/iam_v1/classes.rb, line 533
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/iam_v1/classes.rb, line 538
def update!(**args)
  @counter = args[:counter] if args.key?(:counter)
  @data_access = args[:data_access] if args.key?(:data_access)
  @cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit)
end