Sha256: 4d7a634b54d04a5ec0d33116b3ff782bc4023d0f6bc855879cb6662b6d2ff8b8
Contents?: true
Size: 1.35 KB
Versions: 4
Compression:
Stored size: 1.35 KB
Contents
require 'fog/huaweicloud/models/model' module Fog module DNS class HuaweiCloud class V2 class ZoneTransferRequest < Fog::HuaweiCloud::Model identity :id attribute :project_id attribute :description attribute :status attribute :zone_id attribute :zone_name attribute :key attribute :target_project_id attribute :created_at attribute :updated_at attribute :version def save if persisted? update(description: description, target_project_id: target_project_id) else merge_attributes(ervice.create_zone_transfer_request(zone_id, { :target_project_id => target_project_id, :description => description, :project_id => project_id })) end true end def update(options = nil) requires :id merge_attributes(ervice.update_zone_transfer_request(id,options[:description],{ :target_project_id => options[:target_project_id] })) self end def destroy(options = {}) requires :id service.delete_zone_transfer_request(id) true end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems