Class: Google::Apis::ArtifactregistryV1::UploadFileRequest
- Inherits:
-
Object
- Object
- Google::Apis::ArtifactregistryV1::UploadFileRequest
- 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 file.
Instance Attribute Summary collapse
-
#file_id ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UploadFileRequest
constructor
A new instance of UploadFileRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UploadFileRequest
Returns a new instance of UploadFileRequest.
2823 2824 2825 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2823 def initialize(**args) update!(**args) end |
Instance Attribute Details
#file_id ⇒ String
Optional. The ID of the file. If left empty will default to sha256 digest of
the content uploaded.
Corresponds to the JSON property fileId
2821 2822 2823 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2821 def file_id @file_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2828 2829 2830 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2828 def update!(**args) @file_id = args[:file_id] if args.key?(:file_id) end |