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.



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

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



2465
2466
2467
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2465

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



2470
2471
2472
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2470

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



2475
2476
2477
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2475

def gke_workload
  @gke_workload
end

#google_cloud_runGoogle::Apis::DeveloperconnectV1::GoogleCloudRun

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



2480
2481
2482
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2480

def google_cloud_run
  @google_cloud_run
end

#stateString

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

Returns:

  • (String)


2485
2486
2487
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2485

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)


2491
2492
2493
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2491

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2498
2499
2500
2501
2502
2503
2504
2505
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2498

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