Class: VersSdk::UpdateRepoTagRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/vers_sdk/models.rb

Overview

Request body for PATCH /api/v1/repositories/repo_name/tags/tag_name

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_json(json_str) ⇒ Object



1535
1536
1537
1538
# File 'lib/vers_sdk/models.rb', line 1535

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_hObject



1540
1541
1542
1543
1544
1545
# File 'lib/vers_sdk/models.rb', line 1540

def to_h
  {
    "commit_id" => @update_repo_tag_request,
    "description" => @update_repo_tag_request,
  }
end

#to_json(*args) ⇒ Object



1547
1548
1549
# File 'lib/vers_sdk/models.rb', line 1547

def to_json(*args)
  to_h.to_json(*args)
end