Class: Google::Apis::RunV1alpha1::CloudPubSubSource
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::CloudPubSubSource
- 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
-
#api_version ⇒ String
The API version for this call such as "events.cloud.google.com/v1alpha1".
-
#kind ⇒ String
The kind of resource, in this case "CloudPubSubSource".
-
#metadata ⇒ Google::Apis::RunV1alpha1::ObjectMeta
ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
-
#spec ⇒ Google::Apis::RunV1alpha1::CloudPubSubSourceSpec
The desired state of the CloudPubSubSource.
-
#status ⇒ Google::Apis::RunV1alpha1::CloudPubSubSourceStatus
CloudPubSubSourceStatus represents the current state of a CloudPubSubSource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudPubSubSource
constructor
A new instance of CloudPubSubSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CloudPubSubSource
Returns a new instance of CloudPubSubSource.
501 502 503 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 501 def initialize(**args) update!(**args) end |
Instance Attribute Details
#api_version ⇒ String
The API version for this call such as "events.cloud.google.com/v1alpha1".
Corresponds to the JSON property apiVersion
478 479 480 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 478 def api_version @api_version end |
#kind ⇒ String
The kind of resource, in this case "CloudPubSubSource".
Corresponds to the JSON property kind
483 484 485 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 483 def kind @kind end |
#metadata ⇒ Google::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
489 490 491 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 489 def @metadata end |
#spec ⇒ Google::Apis::RunV1alpha1::CloudPubSubSourceSpec
The desired state of the CloudPubSubSource.
Corresponds to the JSON property spec
494 495 496 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 494 def spec @spec end |
#status ⇒ Google::Apis::RunV1alpha1::CloudPubSubSourceStatus
CloudPubSubSourceStatus represents the current state of a CloudPubSubSource.
Corresponds to the JSON property status
499 500 501 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 499 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
506 507 508 509 510 511 512 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 506 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 |