def create_locator(policy_id:,asset_id:,type:1)
      warn("DEPRECATION WARNING: Service#create_locator is deprecated. Use AzureMediaService::Locator.create() instead.")
      post_body = {
        "AccessPolicyId" => policy_id,
        "AssetId" => asset_id,
        "Type" => type,
        "StartTime" => (Time.now - 5*60).gmtime.strftime('%Y-%m-%dT%H:%M:%SZ')
      }
      res = @request.post("Locators", post_body)
      Locator.new(res["d"])
    end
def create_locator(policy_id:,asset_id:,type:1)
      warn("DEPRECATION WARNING: Service#create_locator is deprecated. Use AzureMediaService::Locator.create() instead.")
      post_body = {
        "AccessPolicyId" => policy_id,
        "AssetId" => asset_id,
        "Type" => type,
        "StartTime" => (Time.now - 5*60).gmtime.strftime('%Y-%m-%dT%H:%M:%SZ')
      }
      res = @request.post("Locators", post_body)
      Locator.new(res["d"])
    end
locator create