Class: VersSdk::UpdateTagRequest
- Inherits:
-
Object
- Object
- VersSdk::UpdateTagRequest
- Defined in:
- lib/vers_sdk/models.rb
Overview
Request body for PATCH /api/v1/commit_tags/tag_name For ‘description`: - Field absent from JSON → don’t change the description - Field present as ‘null` → clear the description - Field present as `’text’‘ → set the description to ’text’
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_json(json_str) ⇒ Object
1122 1123 1124 1125 |
# File 'lib/vers_sdk/models.rb', line 1122 def self.from_json(json_str) obj = json_str.is_a?(String) ? JSON.parse(json_str) : json_str new(obj) end |
Instance Method Details
#to_h ⇒ Object
1127 1128 1129 1130 1131 1132 |
# File 'lib/vers_sdk/models.rb', line 1127 def to_h { "commit_id" => @update_tag_request, "description" => @update_tag_request, } end |
#to_json(*args) ⇒ Object
1134 1135 1136 |
# File 'lib/vers_sdk/models.rb', line 1134 def to_json(*args) to_h.to_json(*args) end |