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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
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 resource is a logical component of an application that can share state and communicate in a secure fashion with other modules. For example, an application that handles customer requests might include separate modules to handle tasks such as backend data analysis or API requests from mobile devices. Each 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::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Module

Returns a new instance of Module



1068
1069
1070
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1068

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

Instance Attribute Details

#idString

Relative name of the module within the application. Example: default.@ OutputOnly Corresponds to the JSON property id

Returns:

  • (String)


1054
1055
1056
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1054

def id
  @id
end

#nameString

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

Returns:

  • (String)


1060
1061
1062
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1060

def name
  @name
end

#splitGoogle::Apis::AppengineV1beta4::TrafficSplit

Traffic routing configuration for versions within a single module. Traffic splits define how traffic directed to the module is assigned to versions. Corresponds to the JSON property split



1066
1067
1068
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1066

def split
  @split
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1073
1074
1075
1076
1077
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1073

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