Class: Google::Apis::ComputeAlpha::BackendServiceAppEngineBackend

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb

Overview

Configuration of a App Engine backend.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BackendServiceAppEngineBackend

Returns a new instance of BackendServiceAppEngineBackend



3431
3432
3433
# File 'generated/google/apis/compute_alpha/classes.rb', line 3431

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

Instance Attribute Details

#app_engine_serviceString

Optional. App Engine app service name. Corresponds to the JSON property appEngineService

Returns:

  • (String)


3417
3418
3419
# File 'generated/google/apis/compute_alpha/classes.rb', line 3417

def app_engine_service
  @app_engine_service
end

#target_projectString

Required. Project ID of the project hosting the app. This is the project ID of this project. Reference to another project is not allowed. Corresponds to the JSON property targetProject

Returns:

  • (String)


3423
3424
3425
# File 'generated/google/apis/compute_alpha/classes.rb', line 3423

def target_project
  @target_project
end

#versionString

Optional. Version of App Engine app service. When empty, App Engine will do its normal traffic split. Corresponds to the JSON property version

Returns:

  • (String)


3429
3430
3431
# File 'generated/google/apis/compute_alpha/classes.rb', line 3429

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3436
3437
3438
3439
3440
# File 'generated/google/apis/compute_alpha/classes.rb', line 3436

def update!(**args)
  @app_engine_service = args[:app_engine_service] if args.key?(:app_engine_service)
  @target_project = args[:target_project] if args.key?(:target_project)
  @version = args[:version] if args.key?(:version)
end