Class: Cadenya::Types::UpdateAgentScheduleRequest
- Inherits:
-
Object
- Object
- Cadenya::Types::UpdateAgentScheduleRequest
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#agent_id ⇒ Object
readonly
Returns the value of attribute agent_id.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#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, agent_id: nil, id: nil, metadata: nil, spec: nil, update_mask: nil) ⇒ UpdateAgentScheduleRequest
constructor
A new instance of UpdateAgentScheduleRequest.
- #to_h ⇒ Object
Constructor Details
#initialize(workspace_id: nil, agent_id: nil, id: nil, metadata: nil, spec: nil, update_mask: nil) ⇒ UpdateAgentScheduleRequest
Returns a new instance of UpdateAgentScheduleRequest.
6660 6661 6662 6663 6664 6665 6666 6667 |
# File 'lib/cadenya/types.rb', line 6660 def initialize(workspace_id: nil, agent_id: nil, id: nil, metadata: nil, spec: nil, update_mask: nil) @workspace_id = workspace_id @agent_id = agent_id @id = id @metadata = @spec = spec @update_mask = update_mask end |
Instance Attribute Details
#agent_id ⇒ Object (readonly)
Returns the value of attribute agent_id.
6658 6659 6660 |
# File 'lib/cadenya/types.rb', line 6658 def agent_id @agent_id end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6658 6659 6660 |
# File 'lib/cadenya/types.rb', line 6658 def id @id end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
6658 6659 6660 |
# File 'lib/cadenya/types.rb', line 6658 def @metadata end |
#spec ⇒ Object (readonly)
Returns the value of attribute spec.
6658 6659 6660 |
# File 'lib/cadenya/types.rb', line 6658 def spec @spec end |
#update_mask ⇒ Object (readonly)
Returns the value of attribute update_mask.
6658 6659 6660 |
# File 'lib/cadenya/types.rb', line 6658 def update_mask @update_mask end |
#workspace_id ⇒ Object (readonly)
Returns the value of attribute workspace_id.
6658 6659 6660 |
# File 'lib/cadenya/types.rb', line 6658 def workspace_id @workspace_id end |
Class Method Details
.from_json(data) ⇒ Object
6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 |
# File 'lib/cadenya/types.rb', line 6669 def self.from_json(data) new( workspace_id: data["workspaceId"], agent_id: data["agentId"], id: data["id"], metadata: data["metadata"].nil? ? nil : Types::UpdateResourceMetadata.from_json(data["metadata"]), spec: data["spec"].nil? ? nil : Types::AgentScheduleSpec.from_json(data["spec"]), update_mask: data["updateMask"], ) end |
Instance Method Details
#to_h ⇒ Object
6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 |
# File 'lib/cadenya/types.rb', line 6680 def to_h { workspace_id: Util.plain(@workspace_id), agent_id: Util.plain(@agent_id), id: Util.plain(@id), metadata: Util.plain(@metadata), spec: Util.plain(@spec), update_mask: Util.plain(@update_mask), }.reject { |_k, v| v.nil? } end |