Class: Google::Apis::DeveloperconnectV1::RuntimeConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/developerconnect_v1/classes.rb,
lib/google/apis/developerconnect_v1/representations.rb,
lib/google/apis/developerconnect_v1/representations.rb

Overview

RuntimeConfig represents the runtimes where the application is deployed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RuntimeConfig

Returns a new instance of RuntimeConfig.



2501
2502
2503
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2501

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

Instance Attribute Details

#app_hub_serviceGoogle::Apis::DeveloperconnectV1::AppHubService

AppHubService represents the App Hub Service. Corresponds to the JSON property appHubService



2473
2474
2475
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2473

def app_hub_service
  @app_hub_service
end

#app_hub_workloadGoogle::Apis::DeveloperconnectV1::AppHubWorkload

AppHubWorkload represents the App Hub Workload. Corresponds to the JSON property appHubWorkload



2478
2479
2480
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2478

def app_hub_workload
  @app_hub_workload
end

#gke_workloadGoogle::Apis::DeveloperconnectV1::GkeWorkload

GKEWorkload represents the Google Kubernetes Engine runtime. Corresponds to the JSON property gkeWorkload



2483
2484
2485
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2483

def gke_workload
  @gke_workload
end

#google_cloud_runGoogle::Apis::DeveloperconnectV1::GoogleCloudRun

GoogleCloudRun represents the Cloud Run runtime. Corresponds to the JSON property googleCloudRun



2488
2489
2490
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2488

def google_cloud_run
  @google_cloud_run
end

#stateString

Output only. The state of the Runtime. Corresponds to the JSON property state

Returns:

  • (String)


2493
2494
2495
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2493

def state
  @state
end

#uriString

Required. Immutable. The URI of the runtime configuration. For GKE, this is the cluster name. For Cloud Run, this is the service name. Corresponds to the JSON property uri

Returns:

  • (String)


2499
2500
2501
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2499

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2506
2507
2508
2509
2510
2511
2512
2513
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2506

def update!(**args)
  @app_hub_service = args[:app_hub_service] if args.key?(:app_hub_service)
  @app_hub_workload = args[:app_hub_workload] if args.key?(:app_hub_workload)
  @gke_workload = args[:gke_workload] if args.key?(:gke_workload)
  @google_cloud_run = args[:google_cloud_run] if args.key?(:google_cloud_run)
  @state = args[:state] if args.key?(:state)
  @uri = args[:uri] if args.key?(:uri)
end