-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathGraphConstants.php
More file actions
50 lines (42 loc) · 1.6 KB
/
GraphConstants.php
File metadata and controls
50 lines (42 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved.
* Licensed under the MIT License. See License in the project root
* for license information.
*
* Constants File
* PHP version 7
*
* @category Library
* @package Microsoft.Graph
* @copyright 2020 Microsoft Corporation
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
namespace Microsoft\Graph\Core;
final class GraphConstants
{
const BETA_API_VERSION = "beta";
const V1_API_VERSION = "v1.0";
// These can be overwritten in setters in the Graph object
const REST_ENDPOINT = "https://graph.microsoft.com/";
// Define HTTP request constants
// x-release-please-start-version
const SDK_VERSION = "2.4.0";
// x-release-please-end
// Define error constants
const MAX_PAGE_SIZE = 999;
const MAX_PAGE_SIZE_ERROR = "Page size must be less than " . self::MAX_PAGE_SIZE;
const TIMEOUT = "Timeout error";
// Define error message constants
const BASE_URL_MISSING = "Base URL cannot be null or empty.";
const REQUEST_TIMED_OUT = "The request timed out.";
const UNABLE_TO_CREATE_INSTANCE_OF_TYPE = "Unable to create instance of type";
// Define user error constants
const INVALID_FILE = "Unable to open file stream for the given path.";
const NO_ACCESS_TOKEN = "No access token has been provided.";
const NO_APP_ID = "No app ID has been provided.";
const NO_APP_SECRET = "No app secret has been provided.";
// Define server error constants
const UNABLE_TO_PARSE_RESPONSE = "The HTTP client sent back an invalid response";
}