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



777
778
779
780
# File 'lib/vers_sdk/models.rb', line 777

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



782
783
784
785
786
787
# File 'lib/vers_sdk/models.rb', line 782

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

#to_json(*args) ⇒ Object



789
790
791
# File 'lib/vers_sdk/models.rb', line 789

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