OAuthConfig.php 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. namespace Google\Service\Looker;
  18. class OAuthConfig extends \Google\Model
  19. {
  20. /**
  21. * Input only. Client ID from an external OAuth application. This is an input-
  22. * only field, and thus will not be set in any responses.
  23. *
  24. * @var string
  25. */
  26. public $clientId;
  27. /**
  28. * Input only. Client secret from an external OAuth application. This is an
  29. * input-only field, and thus will not be set in any responses.
  30. *
  31. * @var string
  32. */
  33. public $clientSecret;
  34. /**
  35. * Optional. Whether to use the shared OAuth client. Instances specifying this
  36. * field do not need to provide client_id and client_secret.
  37. *
  38. * @var bool
  39. */
  40. public $sharedOauthClientEnabled;
  41. /**
  42. * Input only. Client ID from an external OAuth application. This is an input-
  43. * only field, and thus will not be set in any responses.
  44. *
  45. * @param string $clientId
  46. */
  47. public function setClientId($clientId)
  48. {
  49. $this->clientId = $clientId;
  50. }
  51. /**
  52. * @return string
  53. */
  54. public function getClientId()
  55. {
  56. return $this->clientId;
  57. }
  58. /**
  59. * Input only. Client secret from an external OAuth application. This is an
  60. * input-only field, and thus will not be set in any responses.
  61. *
  62. * @param string $clientSecret
  63. */
  64. public function setClientSecret($clientSecret)
  65. {
  66. $this->clientSecret = $clientSecret;
  67. }
  68. /**
  69. * @return string
  70. */
  71. public function getClientSecret()
  72. {
  73. return $this->clientSecret;
  74. }
  75. /**
  76. * Optional. Whether to use the shared OAuth client. Instances specifying this
  77. * field do not need to provide client_id and client_secret.
  78. *
  79. * @param bool $sharedOauthClientEnabled
  80. */
  81. public function setSharedOauthClientEnabled($sharedOauthClientEnabled)
  82. {
  83. $this->sharedOauthClientEnabled = $sharedOauthClientEnabled;
  84. }
  85. /**
  86. * @return bool
  87. */
  88. public function getSharedOauthClientEnabled()
  89. {
  90. return $this->sharedOauthClientEnabled;
  91. }
  92. }
  93. // Adding a class alias for backwards compatibility with the previous class name.
  94. class_alias(OAuthConfig::class, 'Google_Service_Looker_OAuthConfig');