def create_access_policy(name:'Policy', duration_minutes:300, permission:2)
      warn("DEPRECATION WARNING: Service#create_access_policy is deprecated. Use AzureMediaService::AccessPolicy.create() instead.")
      post_body = {
        "Name" => name,
        "DurationInMinutes" => duration_minutes,
        "Permissions" => permission
      }
      res = @request.post("AccessPolicies", post_body)
      AccessPolicy.new(res["d"])
    end
def create_access_policy(name:'Policy', duration_minutes:300, permission:2)
      warn("DEPRECATION WARNING: Service#create_access_policy is deprecated. Use AzureMediaService::AccessPolicy.create() instead.")
      post_body = {
        "Name" => name,
        "DurationInMinutes" => duration_minutes,
        "Permissions" => permission
      }
      res = @request.post("AccessPolicies", post_body)
      AccessPolicy.new(res["d"])
    end
access policy create