Class: Google::Apis::ContaineranalysisV1alpha1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1alpha1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/containeranalysis_v1alpha1/classes.rb,
lib/google/apis/containeranalysis_v1alpha1/representations.rb,
lib/google/apis/containeranalysis_v1alpha1/representations.rb
Overview
Npm package to upload to Artifact Registry upon successful completion of all build steps.
Instance Attribute Summary collapse
-
#package_path ⇒ String
Path to the package.json.
-
#repository ⇒ String
Artifact Registry repository, in the form "https://$REGION-npm.pkg.dev/$ PROJECT/$REPOSITORY" Npm package in the workspace specified by path will be zipped and uploaded to Artifact Registry with this location as a prefix.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage
constructor
A new instance of ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage
Returns a new instance of ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage.
1428 1429 1430 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1428 def initialize(**args) update!(**args) end |
Instance Attribute Details
#package_path ⇒ String
Path to the package.json. e.g. workspace/path/to/package
Corresponds to the JSON property packagePath
1419 1420 1421 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1419 def package_path @package_path end |
#repository ⇒ String
Artifact Registry repository, in the form "https://$REGION-npm.pkg.dev/$
PROJECT/$REPOSITORY" Npm package in the workspace specified by path will be
zipped and uploaded to Artifact Registry with this location as a prefix.
Corresponds to the JSON property repository
1426 1427 1428 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1426 def repository @repository end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1433 1434 1435 1436 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1433 def update!(**args) @package_path = args[:package_path] if args.key?(:package_path) @repository = args[:repository] if args.key?(:repository) end |