Class: Google::Apis::RunV2::GoogleDevtoolsCloudbuildV1PythonPackage
- Inherits:
-
Object
- Object
- Google::Apis::RunV2::GoogleDevtoolsCloudbuildV1PythonPackage
- 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
Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository.
Instance Attribute Summary collapse
-
#paths ⇒ Array<String>
Path globs used to match files in the build's workspace.
-
#repository ⇒ String
Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$ PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleDevtoolsCloudbuildV1PythonPackage
constructor
A new instance of GoogleDevtoolsCloudbuildV1PythonPackage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleDevtoolsCloudbuildV1PythonPackage
Returns a new instance of GoogleDevtoolsCloudbuildV1PythonPackage.
4401 4402 4403 |
# File 'lib/google/apis/run_v2/classes.rb', line 4401 def initialize(**args) update!(**args) end |
Instance Attribute Details
#paths ⇒ Array<String>
Path globs used to match files in the build's workspace. For Python/ Twine,
this is usually dist/*
, and sometimes additionally an .asc
file.
Corresponds to the JSON property paths
4392 4393 4394 |
# File 'lib/google/apis/run_v2/classes.rb', line 4392 def paths @paths end |
#repository ⇒ String
Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$
PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be
uploaded to Artifact Registry with this location as a prefix.
Corresponds to the JSON property repository
4399 4400 4401 |
# File 'lib/google/apis/run_v2/classes.rb', line 4399 def repository @repository end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4406 4407 4408 4409 |
# File 'lib/google/apis/run_v2/classes.rb', line 4406 def update!(**args) @paths = args[:paths] if args.key?(:paths) @repository = args[:repository] if args.key?(:repository) end |