Class: Google::Apis::CloudbuildV1alpha1::PythonPackage

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudbuild_v1alpha1/classes.rb,
lib/google/apis/cloudbuild_v1alpha1/representations.rb,
lib/google/apis/cloudbuild_v1alpha1/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PythonPackage

Returns a new instance of PythonPackage.



2017
2018
2019
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 2017

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

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

Returns:

  • (Array<String>)


2008
2009
2010
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 2008

def paths
  @paths
end

#repositoryString

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

Returns:

  • (String)


2015
2016
2017
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 2015

def repository
  @repository
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2022
2023
2024
2025
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 2022

def update!(**args)
  @paths = args[:paths] if args.key?(:paths)
  @repository = args[:repository] if args.key?(:repository)
end