Class: Google::Apis::RunV1alpha1::CloudAuditLogsSource

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudAuditLogsSource

Returns a new instance of CloudAuditLogsSource.



276
277
278
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 276

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

Instance Attribute Details

#api_versionString

The API version for this call such as "events.cloud.google.com/v1alpha1". Corresponds to the JSON property apiVersion

Returns:

  • (String)


252
253
254
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 252

def api_version
  @api_version
end

#kindString

The kind of resource, in this case "CloudAuditLogsSource". Corresponds to the JSON property kind

Returns:

  • (String)


257
258
259
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 257

def kind
  @kind
end

#metadataGoogle::Apis::RunV1alpha1::ObjectMeta

ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Corresponds to the JSON property metadata



263
264
265
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 263

def 
  @metadata
end

#specGoogle::Apis::RunV1alpha1::CloudAuditLogsSourceSpec

The desired state of the CloudAuditLogsSource. Corresponds to the JSON property spec



268
269
270
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 268

def spec
  @spec
end

#statusGoogle::Apis::RunV1alpha1::CloudAuditLogsSourceStatus

CloudAuditLogsSourceStatus represents the current state of a CloudAuditLogsSource. Corresponds to the JSON property status



274
275
276
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 274

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



281
282
283
284
285
286
287
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 281

def update!(**args)
  @api_version = args[:api_version] if args.key?(:api_version)
  @kind = args[:kind] if args.key?(:kind)
  @metadata = args[:metadata] if args.key?(:metadata)
  @spec = args[:spec] if args.key?(:spec)
  @status = args[:status] if args.key?(:status)
end