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.
3089 3090 3091 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3089 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
3087 3088 3089 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3087 def file_id @file_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3094 3095 3096 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3094 def update!(**args) @file_id = args[:file_id] if args.key?(:file_id) end |