Class: Cadenya::Types::UpdateWorkspaceRequest
- Inherits:
-
Object
- Object
- Cadenya::Types::UpdateWorkspaceRequest
- 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.
-
#update_mask ⇒ Object
readonly
Returns the value of attribute update_mask.
-
#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, update_mask: nil) ⇒ UpdateWorkspaceRequest
constructor
A new instance of UpdateWorkspaceRequest.
- #to_h ⇒ Object
Constructor Details
#initialize(workspace_id: nil, metadata: nil, spec: nil, update_mask: nil) ⇒ UpdateWorkspaceRequest
Returns a new instance of UpdateWorkspaceRequest.
6989 6990 6991 6992 6993 6994 |
# File 'lib/cadenya/types.rb', line 6989 def initialize(workspace_id: nil, metadata: nil, spec: nil, update_mask: nil) @workspace_id = workspace_id @metadata = @spec = spec @update_mask = update_mask end |
Instance Attribute Details
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
6987 6988 6989 |
# File 'lib/cadenya/types.rb', line 6987 def @metadata end |
#spec ⇒ Object (readonly)
Returns the value of attribute spec.
6987 6988 6989 |
# File 'lib/cadenya/types.rb', line 6987 def spec @spec end |
#update_mask ⇒ Object (readonly)
Returns the value of attribute update_mask.
6987 6988 6989 |
# File 'lib/cadenya/types.rb', line 6987 def update_mask @update_mask end |
#workspace_id ⇒ Object (readonly)
Returns the value of attribute workspace_id.
6987 6988 6989 |
# File 'lib/cadenya/types.rb', line 6987 def workspace_id @workspace_id end |
Class Method Details
.from_json(data) ⇒ Object
6996 6997 6998 6999 7000 7001 7002 7003 |
# File 'lib/cadenya/types.rb', line 6996 def self.from_json(data) new( workspace_id: data["workspaceId"], metadata: data["metadata"].nil? ? nil : Types::UpdateAccountResourceMetadata.from_json(data["metadata"]), spec: data["spec"].nil? ? nil : Types::WorkspaceSpec.from_json(data["spec"]), update_mask: data["updateMask"], ) end |