Class: Google::Apis::ArtifactregistryV1::UploadGenericArtifactRequest
- Inherits:
-
Object
- Object
- Google::Apis::ArtifactregistryV1::UploadGenericArtifactRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/artifactregistry_v1/classes.rb,
lib/google/apis/artifactregistry_v1/representations.rb,
lib/google/apis/artifactregistry_v1/representations.rb more...
Overview
The request to upload a generic artifact. The created GenericArtifact will
have the resource name parent
/genericArtifacts/package_id:version_id. The
created file will have the resource name parent
/files/package_id:version_id:
filename.
Instance Attribute Summary collapse
-
#filename ⇒ String
The name of the file of the generic artifact to be uploaded.
-
#package_id ⇒ String
The ID of the package of the generic artifact.
-
#version_id ⇒ String
The ID of the version of the generic artifact.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UploadGenericArtifactRequest
constructor
A new instance of UploadGenericArtifactRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UploadGenericArtifactRequest
Returns a new instance of UploadGenericArtifactRequest.
2622 2623 2624 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2622 def initialize(**args) update!(**args) end |
Instance Attribute Details
#filename ⇒ String
The name of the file of the generic artifact to be uploaded. E.g. example-
file.zip
The filename is limited to letters, numbers, and url safe characters,
i.e. [a-zA-Z0-9-_.~@].
Corresponds to the JSON property filename
2603 2604 2605 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2603 def filename @filename end |
#package_id ⇒ String
The ID of the package of the generic artifact. If the package does not exist,
a new package will be created. The package_id
must start with a letter, end
with a letter or number, only contain letters, numbers, hyphens and periods i.
e. [a-z0-9-.], and cannot exceed 256 characters.
Corresponds to the JSON property packageId
2611 2612 2613 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2611 def package_id @package_id end |
#version_id ⇒ String
The ID of the version of the generic artifact. If the version does not exist,
a new version will be created. The version_id must start and end with a letter
or number, can only contain lowercase letters, numbers, hyphens and periods, i.
e. [a-z0-9-.] and cannot exceed a total of 128 characters. Creating a version
called latest
is not allowed.
Corresponds to the JSON property versionId
2620 2621 2622 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2620 def version_id @version_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2627 2628 2629 2630 2631 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2627 def update!(**args) @filename = args[:filename] if args.key?(:filename) @package_id = args[:package_id] if args.key?(:package_id) @version_id = args[:version_id] if args.key?(:version_id) end |