Class: Google::Apis::CloudbuildV1::PythonPackage

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PythonPackage

Returns a new instance of PythonPackage.



3374
3375
3376
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3374

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>)


3365
3366
3367
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3365

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)


3372
3373
3374
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3372

def repository
  @repository
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3379
3380
3381
3382
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3379

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