Class: Google::Apis::AppengineV1beta4::Application

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

An Application contains the top-level configuration of an App Engine application.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

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_bucketString

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

Returns:

  • (String)

61
62
63
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 61

def code_bucket
  @code_bucket
end

#default_bucketString

A Google Cloud Storage bucket which can be used by the application to store content. @OutputOnly Corresponds to the JSON property defaultBucket

Returns:

  • (String)

67
68
69
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 67

def default_bucket
  @default_bucket
end

#dispatch_rulesArray<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

#idString

The relative name/path of the application. Example: "myapp". @OutputOnly Corresponds to the JSON property id

Returns:

  • (String)

39
40
41
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 39

def id
  @id
end

#locationString

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

Returns:

  • (String)

54
55
56
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 54

def location
  @location
end

#nameString

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

Returns:

  • (String)

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