Class: Google::Apis::CloudbuildV1::PythonPackage
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1::PythonPackage
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v1/classes.rb,
lib/google/apis/cloudbuild_v1/representations.rb,
lib/google/apis/cloudbuild_v1/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) ⇒ PythonPackage
constructor
A new instance of PythonPackage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PythonPackage
Returns a new instance of PythonPackage.
3488 3489 3490 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3488 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
3479 3480 3481 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3479 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
3486 3487 3488 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3486 def repository @repository end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3493 3494 3495 3496 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3493 def update!(**args) @paths = args[:paths] if args.key?(:paths) @repository = args[:repository] if args.key?(:repository) end |