Class: Google::Apis::AppengineV1beta4::Application
- Inherits:
-
Object
- Object
- Google::Apis::AppengineV1beta4::Application
- 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
An Application contains the top-level configuration of an App Engine application.
Instance Attribute Summary collapse
-
#code_bucket ⇒ String
A Google Cloud Storage bucket which can be used for storing files associated with an application.
-
#default_bucket ⇒ String
A Google Cloud Storage bucket which can be used by the application to store content.
-
#dispatch_rules ⇒ Array<Google::Apis::AppengineV1beta4::UrlDispatchRule>
HTTP path dispatch rules for requests to the app that do not explicitly target a module or version.
-
#id ⇒ String
The relative name/path of the application.
-
#location ⇒ String
The location from which the application will be run.
-
#name ⇒ String
The full path to the application in the API.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Application
constructor
A new instance of Application.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Application
Returns a new instance of Application
69 70 71 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 69 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code_bucket ⇒ String
A Google Cloud Storage bucket which can be used for storing files associated
with an application. This bucket is associated with the application and can be
used by the gcloud deployment commands. @OutputOnly
Corresponds to the JSON property codeBucket
61 62 63 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 61 def code_bucket @code_bucket end |
#default_bucket ⇒ String
A Google Cloud Storage bucket which can be used by the application to store
content. @OutputOnly
Corresponds to the JSON property defaultBucket
67 68 69 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 67 def default_bucket @default_bucket end |
#dispatch_rules ⇒ Array<Google::Apis::AppengineV1beta4::UrlDispatchRule>
HTTP path dispatch rules for requests to the app that do not explicitly target
a module or version. The rules are order-dependent.
Corresponds to the JSON property dispatchRules
45 46 47 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 45 def dispatch_rules @dispatch_rules end |
#id ⇒ String
The relative name/path of the application. Example: "myapp". @OutputOnly
Corresponds to the JSON property id
39 40 41 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 39 def id @id end |
#location ⇒ String
The location from which the application will be run. Choices are "us-central"
for United States and "europe-west" for European Union. Application instances
will run out of data centers in the chosen location and all of the application'
s End User Content will be stored at rest in the chosen location. The default
is "us-central".
Corresponds to the JSON property location
54 55 56 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 54 def location @location end |
#name ⇒ String
The full path to the application in the API. Example: "apps/myapp". @
OutputOnly
Corresponds to the JSON property name
34 35 36 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 34 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
74 75 76 77 78 79 80 81 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 74 def update!(**args) @name = args[:name] if args.key?(:name) @id = args[:id] if args.key?(:id) @dispatch_rules = args[:dispatch_rules] if args.key?(:dispatch_rules) @location = args[:location] if args.key?(:location) @code_bucket = args[:code_bucket] if args.key?(:code_bucket) @default_bucket = args[:default_bucket] if args.key?(:default_bucket) end |