Class: Cadenya::Types::CreateAIProviderKeyRequest
- Inherits:
-
Object
- Object
- Cadenya::Types::CreateAIProviderKeyRequest
- 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) ⇒ CreateAIProviderKeyRequest
constructor
A new instance of CreateAIProviderKeyRequest.
- #to_h ⇒ Object
Constructor Details
#initialize(workspace_id: nil, metadata: nil, spec: nil) ⇒ CreateAIProviderKeyRequest
Returns a new instance of CreateAIProviderKeyRequest.
1451 1452 1453 1454 1455 |
# File 'lib/cadenya/types.rb', line 1451 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.
1449 1450 1451 |
# File 'lib/cadenya/types.rb', line 1449 def @metadata end |
#spec ⇒ Object (readonly)
Returns the value of attribute spec.
1449 1450 1451 |
# File 'lib/cadenya/types.rb', line 1449 def spec @spec end |
#workspace_id ⇒ Object (readonly)
Returns the value of attribute workspace_id.
1449 1450 1451 |
# File 'lib/cadenya/types.rb', line 1449 def workspace_id @workspace_id end |
Class Method Details
.from_json(data) ⇒ Object
1457 1458 1459 1460 1461 1462 1463 |
# File 'lib/cadenya/types.rb', line 1457 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::AIProviderKeySpec.from_json(data["spec"]), ) end |