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



945
946
947
948
# File 'lib/vers_sdk/models.rb', line 945

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



950
951
952
953
954
955
956
# File 'lib/vers_sdk/models.rb', line 950

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



958
959
960
# File 'lib/vers_sdk/models.rb', line 958

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