Class: Google::Apis::AppengineV1beta4::Module

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

Overview

A module is a component of an application that provides a single service or configuration. A module has a collection of versions that define a specific set of code used to implement the functionality of that module.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Module

Returns a new instance of Module.


1387
1388
1389
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1387

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

Instance Attribute Details

#idString

The relative name/path of the module within the application. Example: "default" Corresponds to the JSON property id

Returns:

  • (String)

1377
1378
1379
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1377

def id
  @id
end

#nameString

The full path to the Module resource in the API. Example: "apps/myapp/modules/ default" @OutputOnly Corresponds to the JSON property name

Returns:

  • (String)

1371
1372
1373
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1371

def name
  @name
end

#splitGoogle::Apis::AppengineV1beta4::TrafficSplit

Configuration for traffic splitting for versions within a single module. Traffic splitting allows traffic directed to the module to be assigned to one of several versions in a fractional way, enabling experiments and canarying new builds, for example. Corresponds to the JSON property split


1385
1386
1387
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1385

def split
  @split
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1392
1393
1394
1395
1396
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1392

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @id = args[:id] if args.key?(:id)
  @split = args[:split] if args.key?(:split)
end