Class: Google::Apis::RunV1alpha1::CloudAuditLogsSourceSpec
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::CloudAuditLogsSourceSpec
- 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
-
#ce_overrides ⇒ Google::Apis::RunV1alpha1::CloudEventOverrides
CloudEventOverrides defines arguments for a Source that control the output format of the CloudEvents produced by the Source.
-
#method_name ⇒ String
Required.
-
#resource_name ⇒ String
Optional.
-
#service_account_name ⇒ String
Optional.
-
#service_name ⇒ String
Required.
-
#sink ⇒ Google::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.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudAuditLogsSourceSpec
constructor
A new instance of CloudAuditLogsSourceSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_overrides ⇒ Google::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_name ⇒ String
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
365 366 367 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 365 def method_name @method_name end |
#resource_name ⇒ String
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
372 373 374 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 372 def resource_name @resource_name end |
#service_account_name ⇒ String
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
381 382 383 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 381 def service_account_name @service_account_name end |
#service_name ⇒ String
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
389 390 391 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 389 def service_name @service_name end |
#sink ⇒ Google::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 |