Class: VersSdk::CreateRepoTagRequest
- Inherits:
-
Object
- Object
- VersSdk::CreateRepoTagRequest
- Defined in:
- lib/vers_sdk/models.rb
Overview
Request body for creating a tag within a repository: POST /api/v1/repositories/repo_name/tags
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_json(json_str) ⇒ Object
362 363 364 365 |
# File 'lib/vers_sdk/models.rb', line 362 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
367 368 369 370 371 372 373 |
# File 'lib/vers_sdk/models.rb', line 367 def to_h { "commit_id" => @create_repo_tag_request, "description" => @create_repo_tag_request, "tag_name" => @create_repo_tag_request, } end |
#to_json(*args) ⇒ Object
375 376 377 |
# File 'lib/vers_sdk/models.rb', line 375 def to_json(*args) to_h.to_json(*args) end |