Class: Cadenya::Types::CreateUploadRequest
- Inherits:
-
Object
- Object
- Cadenya::Types::CreateUploadRequest
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#spec ⇒ Object
readonly
Returns the value of attribute spec.
-
#workspace_id ⇒ Object
readonly
Returns the value of attribute workspace_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(workspace_id: nil, metadata: nil, spec: nil) ⇒ CreateUploadRequest
constructor
A new instance of CreateUploadRequest.
- #to_h ⇒ Object
Constructor Details
#initialize(workspace_id: nil, metadata: nil, spec: nil) ⇒ CreateUploadRequest
Returns a new instance of CreateUploadRequest.
1912 1913 1914 1915 1916 |
# File 'lib/cadenya/types.rb', line 1912 def initialize(workspace_id: nil, metadata: nil, spec: nil) @workspace_id = workspace_id @metadata = @spec = spec end |
Instance Attribute Details
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
1910 1911 1912 |
# File 'lib/cadenya/types.rb', line 1910 def @metadata end |
#spec ⇒ Object (readonly)
Returns the value of attribute spec.
1910 1911 1912 |
# File 'lib/cadenya/types.rb', line 1910 def spec @spec end |
#workspace_id ⇒ Object (readonly)
Returns the value of attribute workspace_id.
1910 1911 1912 |
# File 'lib/cadenya/types.rb', line 1910 def workspace_id @workspace_id end |
Class Method Details
.from_json(data) ⇒ Object
1918 1919 1920 1921 1922 1923 1924 |
# File 'lib/cadenya/types.rb', line 1918 def self.from_json(data) new( workspace_id: data["workspaceId"], metadata: data["metadata"].nil? ? nil : Types::CreateResourceMetadata.from_json(data["metadata"]), spec: data["spec"].nil? ? nil : Types::UploadSpec.from_json(data["spec"]), ) end |