Class: Google::Apis::RunV1alpha1::PubSub
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::PubSub
- 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 "PubSub".
-
#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::PubSubSpec
The desired state of the PubSub.
-
#status ⇒ Google::Apis::RunV1alpha1::PubSubStatus
PubSubStatus represents the current state of a PubSub.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PubSub
constructor
A new instance of PubSub.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PubSub
Returns a new instance of PubSub
2859 2860 2861 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2859 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
2836 2837 2838 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2836 def api_version @api_version end |
#kind ⇒ String
The kind of resource, in this case "PubSub".
Corresponds to the JSON property kind
2841 2842 2843 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2841 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
2847 2848 2849 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2847 def @metadata end |
#spec ⇒ Google::Apis::RunV1alpha1::PubSubSpec
The desired state of the PubSub.
Corresponds to the JSON property spec
2852 2853 2854 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2852 def spec @spec end |
#status ⇒ Google::Apis::RunV1alpha1::PubSubStatus
PubSubStatus represents the current state of a PubSub.
Corresponds to the JSON property status
2857 2858 2859 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2857 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2864 2865 2866 2867 2868 2869 2870 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2864 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 |