Class: Google::Apis::RunV2::GoogleDevtoolsCloudbuildV1NpmPackage

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/run_v2/classes.rb,
lib/google/apis/run_v2/representations.rb,
lib/google/apis/run_v2/representations.rb

Overview

Npm package to upload to Artifact Registry upon successful completion of all build steps.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleDevtoolsCloudbuildV1NpmPackage

Returns a new instance of GoogleDevtoolsCloudbuildV1NpmPackage.



4333
4334
4335
# File 'lib/google/apis/run_v2/classes.rb', line 4333

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

Instance Attribute Details

#package_pathString

Path to the package.json. e.g. workspace/path/to/package Corresponds to the JSON property packagePath

Returns:

  • (String)


4324
4325
4326
# File 'lib/google/apis/run_v2/classes.rb', line 4324

def package_path
  @package_path
end

#repositoryString

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

Returns:

  • (String)


4331
4332
4333
# File 'lib/google/apis/run_v2/classes.rb', line 4331

def repository
  @repository
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4338
4339
4340
4341
# File 'lib/google/apis/run_v2/classes.rb', line 4338

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