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.



3488
3489
3490
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3488

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


3479
3480
3481
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3479

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)


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