Class: Google::Apis::RunV1alpha1::Route
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::Route
- 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
Route is responsible for configuring ingress over a collection of Revisions. Some of the Revisions a Route distributes traffic over may be specified by referencing the Configuration responsible for creating them; in these cases the Route is additionally responsible for monitoring the Configuration for "latest ready" revision changes, and smoothly rolling out latest revisions. See also: https://github.com/knative/serving/blob/master/docs/spec/overview.md#route Cloud Run currently supports referencing a single Configuration to automatically deploy the "latest ready" Revision from that Configuration.
Instance Attribute Summary collapse
-
#api_version ⇒ String
The API version for this call such as "serving.knative.dev/v1alpha1".
-
#kind ⇒ String
The kind of this resource, in this case always "Route".
-
#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::RouteSpec
RouteSpec holds the desired state of the Route (from the client).
-
#status ⇒ Google::Apis::RunV1alpha1::RouteStatus
RouteStatus communicates the observed state of the Route (from the controller).
Instance Method Summary collapse
-
#initialize(**args) ⇒ Route
constructor
A new instance of Route.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Route
Returns a new instance of Route.
3544 3545 3546 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3544 def initialize(**args) update!(**args) end |
Instance Attribute Details
#api_version ⇒ String
The API version for this call such as "serving.knative.dev/v1alpha1".
Corresponds to the JSON property apiVersion
3520 3521 3522 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3520 def api_version @api_version end |
#kind ⇒ String
The kind of this resource, in this case always "Route".
Corresponds to the JSON property kind
3525 3526 3527 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3525 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
3531 3532 3533 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3531 def @metadata end |
#spec ⇒ Google::Apis::RunV1alpha1::RouteSpec
RouteSpec holds the desired state of the Route (from the client).
Corresponds to the JSON property spec
3536 3537 3538 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3536 def spec @spec end |
#status ⇒ Google::Apis::RunV1alpha1::RouteStatus
RouteStatus communicates the observed state of the Route (from the
controller).
Corresponds to the JSON property status
3542 3543 3544 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3542 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3549 3550 3551 3552 3553 3554 3555 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3549 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 |