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
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.
2897 2898 2899 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2897 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
2878 2879 2880 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2878 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
should start and end with a
letter or number, only contain letters, numbers, hyphens, underscores, and
periods, and not exceed 256 characters.
Corresponds to the JSON property packageId
2886 2887 2888 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2886 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
2895 2896 2897 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2895 def version_id @version_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2902 2903 2904 2905 2906 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2902 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 |