lib/jss/api_object/patch_policy.rb
# Create a new PatchPolicy in the JSS
#
# @return [Integer] the id of the new policy
#
Create a new PatchPolicy in the JSS
Create a new PatchPolicy in the JSS
def create
      validate_for_saving
      orig_rsrc = @rest_rsrc
      @rest_rsrc = "#{RSRC_BY_PATCH_TITLE}#{CGI.escape patch_title_id.to_s}"
      super
      @rest_rsrc = orig_rsrc
      refetch_version_info
      id
    end
def create validate_for_saving orig_rsrc = @rest_rsrc @rest_rsrc = "#{RSRC_BY_PATCH_TITLE}#{CGI.escape patch_title_id.to_s}" super @rest_rsrc = orig_rsrc refetch_version_info id end
Create a new PatchPolicy in the JSS
Create a new PatchPolicy in the JSS
# TODO: prepare for more cases where the POST rsrc is # different from the PUT/GET/DELETE.
the id of the new policy
the id of the new policy
Integer