Class: Cadenya::Types::CreateWidgetSessionRequest
- Inherits:
-
Object
- Object
- Cadenya::Types::CreateWidgetSessionRequest
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#secrets ⇒ Object
readonly
Returns the value of attribute secrets.
-
#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, secrets: nil) ⇒ CreateWidgetSessionRequest
constructor
A new instance of CreateWidgetSessionRequest.
- #to_h ⇒ Object
Constructor Details
#initialize(workspace_id: nil, metadata: nil, spec: nil, secrets: nil) ⇒ CreateWidgetSessionRequest
Returns a new instance of CreateWidgetSessionRequest.
1964 1965 1966 1967 1968 1969 |
# File 'lib/cadenya/types.rb', line 1964 def initialize(workspace_id: nil, metadata: nil, spec: nil, secrets: nil) @workspace_id = workspace_id @metadata = @spec = spec @secrets = secrets end |
Instance Attribute Details
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
1962 1963 1964 |
# File 'lib/cadenya/types.rb', line 1962 def @metadata end |
#secrets ⇒ Object (readonly)
Returns the value of attribute secrets.
1962 1963 1964 |
# File 'lib/cadenya/types.rb', line 1962 def secrets @secrets end |
#spec ⇒ Object (readonly)
Returns the value of attribute spec.
1962 1963 1964 |
# File 'lib/cadenya/types.rb', line 1962 def spec @spec end |
#workspace_id ⇒ Object (readonly)
Returns the value of attribute workspace_id.
1962 1963 1964 |
# File 'lib/cadenya/types.rb', line 1962 def workspace_id @workspace_id end |
Class Method Details
.from_json(data) ⇒ Object
1971 1972 1973 1974 1975 1976 1977 1978 |
# File 'lib/cadenya/types.rb', line 1971 def self.from_json(data) new( workspace_id: data["workspaceId"], metadata: data["metadata"].nil? ? nil : Types::CreateOperationMetadata.from_json(data["metadata"]), spec: data["spec"].nil? ? nil : Types::WidgetSessionSpec.from_json(data["spec"]), secrets: data["secrets"].nil? ? nil : (data["secrets"]).map { |item| Types::CreateWidgetSessionRequest_Secret.from_json(item) }, ) end |