Class: Google::Apis::RunV2::GoogleDevtoolsCloudbuildV1MavenArtifact
- Inherits:
-
Object
- Object
- Google::Apis::RunV2::GoogleDevtoolsCloudbuildV1MavenArtifact
- 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
A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.
Instance Attribute Summary collapse
-
#artifact_id ⇒ String
Maven
artifactId
value used when uploading the artifact to Artifact Registry. -
#group_id ⇒ String
Maven
groupId
value used when uploading the artifact to Artifact Registry. -
#path ⇒ String
Path to an artifact in the build's workspace to be uploaded to Artifact Registry.
-
#repository ⇒ String
Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$ PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.
-
#version ⇒ String
Maven
version
value used when uploading the artifact to Artifact Registry.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleDevtoolsCloudbuildV1MavenArtifact
constructor
A new instance of GoogleDevtoolsCloudbuildV1MavenArtifact.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleDevtoolsCloudbuildV1MavenArtifact
Returns a new instance of GoogleDevtoolsCloudbuildV1MavenArtifact.
4302 4303 4304 |
# File 'lib/google/apis/run_v2/classes.rb', line 4302 def initialize(**args) update!(**args) end |
Instance Attribute Details
#artifact_id ⇒ String
Maven artifactId
value used when uploading the artifact to Artifact Registry.
Corresponds to the JSON property artifactId
4275 4276 4277 |
# File 'lib/google/apis/run_v2/classes.rb', line 4275 def artifact_id @artifact_id end |
#group_id ⇒ String
Maven groupId
value used when uploading the artifact to Artifact Registry.
Corresponds to the JSON property groupId
4280 4281 4282 |
# File 'lib/google/apis/run_v2/classes.rb', line 4280 def group_id @group_id end |
#path ⇒ String
Path to an artifact in the build's workspace to be uploaded to Artifact
Registry. This can be either an absolute path, e.g. /workspace/my-app/target/
my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/
my-app-1.0.SNAPSHOT.jar.
Corresponds to the JSON property path
4288 4289 4290 |
# File 'lib/google/apis/run_v2/classes.rb', line 4288 def path @path end |
#repository ⇒ String
Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$
PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be
uploaded to Artifact Registry with this location as a prefix.
Corresponds to the JSON property repository
4295 4296 4297 |
# File 'lib/google/apis/run_v2/classes.rb', line 4295 def repository @repository end |
#version ⇒ String
Maven version
value used when uploading the artifact to Artifact Registry.
Corresponds to the JSON property version
4300 4301 4302 |
# File 'lib/google/apis/run_v2/classes.rb', line 4300 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4307 4308 4309 4310 4311 4312 4313 |
# File 'lib/google/apis/run_v2/classes.rb', line 4307 def update!(**args) @artifact_id = args[:artifact_id] if args.key?(:artifact_id) @group_id = args[:group_id] if args.key?(:group_id) @path = args[:path] if args.key?(:path) @repository = args[:repository] if args.key?(:repository) @version = args[:version] if args.key?(:version) end |