Class: Google::Apis::RunV1alpha1::CloudPubSubSource

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) ⇒ CloudPubSubSource

Returns a new instance of CloudPubSubSource.



437
438
439
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 437

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)


414
415
416
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 414

def api_version
  @api_version
end

#kindString

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

Returns:

  • (String)


419
420
421
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 419

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



425
426
427
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 425

def 
  @metadata
end

#specGoogle::Apis::RunV1alpha1::CloudPubSubSourceSpec

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



430
431
432
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 430

def spec
  @spec
end

#statusGoogle::Apis::RunV1alpha1::CloudPubSubSourceStatus

CloudPubSubSourceStatus represents the current state of a CloudPubSubSource. Corresponds to the JSON property status



435
436
437
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 435

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



442
443
444
445
446
447
448
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 442

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