Class: Google::Apis::RunV2::GoogleDevtoolsCloudbuildV1MavenArtifact

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

A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleDevtoolsCloudbuildV1MavenArtifact

Returns a new instance of GoogleDevtoolsCloudbuildV1MavenArtifact.



4369
4370
4371
# File 'lib/google/apis/run_v2/classes.rb', line 4369

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

Instance Attribute Details

#artifact_idString

Maven artifactId value used when uploading the artifact to Artifact Registry. Corresponds to the JSON property artifactId

Returns:

  • (String)


4342
4343
4344
# File 'lib/google/apis/run_v2/classes.rb', line 4342

def artifact_id
  @artifact_id
end

#group_idString

Maven groupId value used when uploading the artifact to Artifact Registry. Corresponds to the JSON property groupId

Returns:

  • (String)


4347
4348
4349
# File 'lib/google/apis/run_v2/classes.rb', line 4347

def group_id
  @group_id
end

#pathString

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

Returns:

  • (String)


4355
4356
4357
# File 'lib/google/apis/run_v2/classes.rb', line 4355

def path
  @path
end

#repositoryString

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

Returns:

  • (String)


4362
4363
4364
# File 'lib/google/apis/run_v2/classes.rb', line 4362

def repository
  @repository
end

#versionString

Maven version value used when uploading the artifact to Artifact Registry. Corresponds to the JSON property version

Returns:

  • (String)


4367
4368
4369
# File 'lib/google/apis/run_v2/classes.rb', line 4367

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4374
4375
4376
4377
4378
4379
4380
# File 'lib/google/apis/run_v2/classes.rb', line 4374

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