Class: Rafflesia::ArtifactUploadRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ArtifactUploadRequest
- Defined in:
- lib/rafflesia/registry/artifact_upload_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ artifact_id: :artifact_id, binding_id: :binding_id, content_base64: :content_base_64, filename: :filename, resource_group_id: :resource_group_id, source_uri: :source_uri }.freeze
Instance Attribute Summary collapse
-
#artifact_id ⇒ Object
Returns the value of attribute artifact_id.
-
#binding_id ⇒ Object
Returns the value of attribute binding_id.
-
#content_base_64 ⇒ Object
Returns the value of attribute content_base_64.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#resource_group_id ⇒ Object
Returns the value of attribute resource_group_id.
-
#source_uri ⇒ Object
Returns the value of attribute source_uri.
Instance Method Summary collapse
-
#initialize(json) ⇒ ArtifactUploadRequest
constructor
A new instance of ArtifactUploadRequest.
Constructor Details
#initialize(json) ⇒ ArtifactUploadRequest
Returns a new instance of ArtifactUploadRequest.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rafflesia/registry/artifact_upload_request.rb', line 25 def initialize(json) super() hash = self.class.normalize(json) @artifact_id = hash[:artifact_id] @binding_id = hash[:binding_id] @content_base_64 = hash[:content_base64] @filename = hash[:filename] @resource_group_id = hash[:resource_group_id] @source_uri = hash[:source_uri] end |
Instance Attribute Details
#artifact_id ⇒ Object
Returns the value of attribute artifact_id.
17 18 19 |
# File 'lib/rafflesia/registry/artifact_upload_request.rb', line 17 def artifact_id @artifact_id end |
#binding_id ⇒ Object
Returns the value of attribute binding_id.
17 18 19 |
# File 'lib/rafflesia/registry/artifact_upload_request.rb', line 17 def binding_id @binding_id end |
#content_base_64 ⇒ Object
Returns the value of attribute content_base_64.
17 18 19 |
# File 'lib/rafflesia/registry/artifact_upload_request.rb', line 17 def content_base_64 @content_base_64 end |
#filename ⇒ Object
Returns the value of attribute filename.
17 18 19 |
# File 'lib/rafflesia/registry/artifact_upload_request.rb', line 17 def filename @filename end |
#resource_group_id ⇒ Object
Returns the value of attribute resource_group_id.
17 18 19 |
# File 'lib/rafflesia/registry/artifact_upload_request.rb', line 17 def resource_group_id @resource_group_id end |
#source_uri ⇒ Object
Returns the value of attribute source_uri.
17 18 19 |
# File 'lib/rafflesia/registry/artifact_upload_request.rb', line 17 def source_uri @source_uri end |