Class: Google::Apis::RunV1alpha1::CloudAuditLogsSourceSpec

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

Overview

The desired state of the CloudAuditLogsSource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudAuditLogsSourceSpec

Returns a new instance of CloudAuditLogsSourceSpec.



335
336
337
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 335

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

Instance Attribute Details

#ce_overridesGoogle::Apis::RunV1alpha1::CloudEventOverrides

CloudEventOverrides defines arguments for a Source that control the output format of the CloudEvents produced by the Source. Corresponds to the JSON property ceOverrides



298
299
300
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 298

def ce_overrides
  @ce_overrides
end

#method_nameString

Required. The method name at the service API. This must match "methodName" in Cloud Audit Logs. Regex or Wildcards (*) are not supported. Example: "google. cloud.bigquery.job.create". Corresponds to the JSON property methodName

Returns:

  • (String)


305
306
307
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 305

def method_name
  @method_name
end

#resource_nameString

Optional. The resource specification. This must match "methodName" in Cloud Audit Logs. Regex or Wildcards (*) are not supported. Example: "projects/my- project/jobs/foo". Corresponds to the JSON property resourceName

Returns:

  • (String)


312
313
314
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 312

def resource_name
  @resource_name
end

#service_account_nameString

Optional. Email address of the IAM service account associated with the source. The service account represents the identity of the source, and determines what permissions the source has. If not provided, the source will use the project's default service account. Corresponds to the JSON property serviceAccountName

Returns:

  • (String)


320
321
322
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 320

def 
  @service_account_name
end

#service_nameString

Required. The GCP service name. This must match "serviceName" in Cloud Audit Logs. Regex or Wildcards (*) are not supported. Example: "bigquery.googleapis. com". Corresponds to the JSON property serviceName

Returns:

  • (String)


327
328
329
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 327

def service_name
  @service_name
end

#sinkGoogle::Apis::RunV1alpha1::Destination

Sink is a reference to an object that will resolve to a domain name or a URI directly to use as the sink. Corresponds to the JSON property sink



333
334
335
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 333

def sink
  @sink
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



340
341
342
343
344
345
346
347
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 340

def update!(**args)
  @ce_overrides = args[:ce_overrides] if args.key?(:ce_overrides)
  @method_name = args[:method_name] if args.key?(:method_name)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @service_account_name = args[:service_account_name] if args.key?(:service_account_name)
  @service_name = args[:service_name] if args.key?(:service_name)
  @sink = args[:sink] if args.key?(:sink)
end