Brak opisu

FirebaseRemoteConfig.php 2.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. /**
  18. * Service definition for FirebaseRemoteConfig (v1).
  19. *
  20. * <p>
  21. * Firebase Remote Config API allows the 3P clients to manage Remote Config
  22. * conditions and parameters for Firebase applications.</p>
  23. *
  24. * <p>
  25. * For more information about this service, see the API
  26. * <a href="https://firebase.google.com/docs/remote-config/" target="_blank">Documentation</a>
  27. * </p>
  28. *
  29. * @author Google, Inc.
  30. */
  31. class Google_Service_FirebaseRemoteConfig extends Google_Service
  32. {
  33. public $projects;
  34. /**
  35. * Constructs the internal representation of the FirebaseRemoteConfig service.
  36. *
  37. * @param Google_Client $client
  38. */
  39. public function __construct(Google_Client $client)
  40. {
  41. parent::__construct($client);
  42. $this->rootUrl = 'https://firebaseremoteconfig.googleapis.com/';
  43. $this->servicePath = '';
  44. $this->version = 'v1';
  45. $this->serviceName = 'firebaseremoteconfig';
  46. $this->projects = new Google_Service_FirebaseRemoteConfig_Resource_Projects(
  47. $this,
  48. $this->serviceName,
  49. 'projects',
  50. array(
  51. 'methods' => array(
  52. 'getRemoteConfig' => array(
  53. 'path' => 'v1/{+project}/remoteConfig',
  54. 'httpMethod' => 'GET',
  55. 'parameters' => array(
  56. 'project' => array(
  57. 'location' => 'path',
  58. 'type' => 'string',
  59. 'required' => true,
  60. ),
  61. ),
  62. ),'updateRemoteConfig' => array(
  63. 'path' => 'v1/{+project}/remoteConfig',
  64. 'httpMethod' => 'PUT',
  65. 'parameters' => array(
  66. 'project' => array(
  67. 'location' => 'path',
  68. 'type' => 'string',
  69. 'required' => true,
  70. ),
  71. 'validateOnly' => array(
  72. 'location' => 'query',
  73. 'type' => 'boolean',
  74. ),
  75. ),
  76. ),
  77. )
  78. )
  79. );
  80. }
  81. }