Class: Google::Apis::RunV1::Route

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/run_v1/classes.rb,
generated/google/apis/run_v1/representations.rb,
generated/google/apis/run_v1/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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Route

Returns a new instance of Route.



2569
2570
2571
# File 'generated/google/apis/run_v1/classes.rb', line 2569

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

Instance Attribute Details

#api_versionString

The API version for this call such as "serving.knative.dev/v1". Corresponds to the JSON property apiVersion

Returns:

  • (String)


2545
2546
2547
# File 'generated/google/apis/run_v1/classes.rb', line 2545

def api_version
  @api_version
end

#kindString

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

Returns:

  • (String)


2550
2551
2552
# File 'generated/google/apis/run_v1/classes.rb', line 2550

def kind
  @kind
end

#metadataGoogle::Apis::RunV1::ObjectMeta

k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Corresponds to the JSON property metadata



2556
2557
2558
# File 'generated/google/apis/run_v1/classes.rb', line 2556

def 
  @metadata
end

#specGoogle::Apis::RunV1::RouteSpec

RouteSpec holds the desired state of the Route (from the client). Corresponds to the JSON property spec



2561
2562
2563
# File 'generated/google/apis/run_v1/classes.rb', line 2561

def spec
  @spec
end

#statusGoogle::Apis::RunV1::RouteStatus

RouteStatus communicates the observed state of the Route (from the controller). Corresponds to the JSON property status



2567
2568
2569
# File 'generated/google/apis/run_v1/classes.rb', line 2567

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2574
2575
2576
2577
2578
2579
2580
# File 'generated/google/apis/run_v1/classes.rb', line 2574

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