Class: VersSdk::CreateRepoTagResponse

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

Overview

Response body for POST /api/v1/repositories/repo_name/tags

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_json(json_str) ⇒ Object



684
685
686
687
# File 'lib/vers_sdk/models.rb', line 684

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



689
690
691
692
693
694
695
# File 'lib/vers_sdk/models.rb', line 689

def to_h
  {
    "commit_id" => @create_repo_tag_response,
    "reference" => @create_repo_tag_response,
    "tag_id" => @create_repo_tag_response,
  }
end

#to_json(*args) ⇒ Object



697
698
699
# File 'lib/vers_sdk/models.rb', line 697

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