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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CloudAuditLogsSourceSpec

Returns a new instance of CloudAuditLogsSourceSpec.



397
398
399
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 397

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



357
358
359
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 357

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)


365
366
367
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 365

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)


372
373
374
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 372

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)


381
382
383
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 381

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)


389
390
391
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 389

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



395
396
397
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 395

def sink
  @sink
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



402
403
404
405
406
407
408
409
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 402

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