Class: Google::Apis::RunV2::GoogleCloudRunV2BuildpacksBuild
- Inherits:
-
Object
- Object
- Google::Apis::RunV2::GoogleCloudRunV2BuildpacksBuild
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/run_v2/classes.rb,
lib/google/apis/run_v2/representations.rb,
lib/google/apis/run_v2/representations.rb
Overview
Build the source using Buildpacks.
Instance Attribute Summary collapse
-
#base_image ⇒ String
Optional.
-
#cache_image_uri ⇒ String
Optional.
-
#enable_automatic_updates ⇒ Boolean
(also: #enable_automatic_updates?)
Optional.
-
#environment_variables ⇒ Hash<String,String>
Optional.
-
#function_target ⇒ String
Optional.
-
#runtime ⇒ String
The runtime name, e.g.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRunV2BuildpacksBuild
constructor
A new instance of GoogleCloudRunV2BuildpacksBuild.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRunV2BuildpacksBuild
Returns a new instance of GoogleCloudRunV2BuildpacksBuild.
104 105 106 |
# File 'lib/google/apis/run_v2/classes.rb', line 104 def initialize(**args) update!(**args) end |
Instance Attribute Details
#base_image ⇒ String
Optional. The base image used to opt into automatic base image updates.
Corresponds to the JSON property baseImage
69 70 71 |
# File 'lib/google/apis/run_v2/classes.rb', line 69 def base_image @base_image end |
#cache_image_uri ⇒ String
Optional. cache_image_uri is the GCR/AR URL where the cache image will be
stored. cache_image_uri is optional and omitting it will disable caching. This
URL must be stable across builds. It is used to derive a build-specific
temporary URL by substituting the tag with the build ID. The build will clean
up the temporary image on a best-effort basis.
Corresponds to the JSON property cacheImageUri
78 79 80 |
# File 'lib/google/apis/run_v2/classes.rb', line 78 def cache_image_uri @cache_image_uri end |
#enable_automatic_updates ⇒ Boolean Also known as: enable_automatic_updates?
Optional. Whether or not the application container will be enrolled in
automatic base image updates. When true, the application will be built on a
scratch base image, so the base layers can be appended at run time.
Corresponds to the JSON property enableAutomaticUpdates
85 86 87 |
# File 'lib/google/apis/run_v2/classes.rb', line 85 def enable_automatic_updates @enable_automatic_updates end |
#environment_variables ⇒ Hash<String,String>
Optional. User-provided build-time environment variables.
Corresponds to the JSON property environmentVariables
91 92 93 |
# File 'lib/google/apis/run_v2/classes.rb', line 91 def environment_variables @environment_variables end |
#function_target ⇒ String
Optional. Name of the function target if the source is a function source.
Required for function builds.
Corresponds to the JSON property functionTarget
97 98 99 |
# File 'lib/google/apis/run_v2/classes.rb', line 97 def function_target @function_target end |
#runtime ⇒ String
The runtime name, e.g. 'go113'. Leave blank for generic builds.
Corresponds to the JSON property runtime
102 103 104 |
# File 'lib/google/apis/run_v2/classes.rb', line 102 def runtime @runtime end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
109 110 111 112 113 114 115 116 |
# File 'lib/google/apis/run_v2/classes.rb', line 109 def update!(**args) @base_image = args[:base_image] if args.key?(:base_image) @cache_image_uri = args[:cache_image_uri] if args.key?(:cache_image_uri) @enable_automatic_updates = args[:enable_automatic_updates] if args.key?(:enable_automatic_updates) @environment_variables = args[:environment_variables] if args.key?(:environment_variables) @function_target = args[:function_target] if args.key?(:function_target) @runtime = args[:runtime] if args.key?(:runtime) end |