PageRenderTime 59ms CodeModel.GetById 29ms RepoModel.GetById 1ms app.codeStats 0ms

/application/third_party/google-api/vendor/google/apiclient-services/src/Google/Service/IdentityToolkit/Resource/Relyingparty.php

https://gitlab.com/Anas7232/Layout-Changes
PHP | 292 lines | 124 code | 1 blank | 167 comment | 0 complexity | ed2b73ed0dda99c3bf3c33f556888f07 MD5 | raw file
  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. * The "relyingparty" collection of methods.
  19. * Typical usage is:
  20. * <code>
  21. * $identitytoolkitService = new Google_Service_IdentityToolkit(...);
  22. * $relyingparty = $identitytoolkitService->relyingparty;
  23. * </code>
  24. */
  25. class Google_Service_IdentityToolkit_Resource_Relyingparty extends Google_Service_Resource
  26. {
  27. /**
  28. * Creates the URI used by the IdP to authenticate the user.
  29. * (relyingparty.createAuthUri)
  30. *
  31. * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyCreateAuthUriRequest $postBody
  32. * @param array $optParams Optional parameters.
  33. * @return Google_Service_IdentityToolkit_CreateAuthUriResponse
  34. */
  35. public function createAuthUri(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyCreateAuthUriRequest $postBody, $optParams = array())
  36. {
  37. $params = array('postBody' => $postBody);
  38. $params = array_merge($params, $optParams);
  39. return $this->call('createAuthUri', array($params), "Google_Service_IdentityToolkit_CreateAuthUriResponse");
  40. }
  41. /**
  42. * Delete user account. (relyingparty.deleteAccount)
  43. *
  44. * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDeleteAccountRequest $postBody
  45. * @param array $optParams Optional parameters.
  46. * @return Google_Service_IdentityToolkit_DeleteAccountResponse
  47. */
  48. public function deleteAccount(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDeleteAccountRequest $postBody, $optParams = array())
  49. {
  50. $params = array('postBody' => $postBody);
  51. $params = array_merge($params, $optParams);
  52. return $this->call('deleteAccount', array($params), "Google_Service_IdentityToolkit_DeleteAccountResponse");
  53. }
  54. /**
  55. * Batch download user accounts. (relyingparty.downloadAccount)
  56. *
  57. * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDownloadAccountRequest $postBody
  58. * @param array $optParams Optional parameters.
  59. * @return Google_Service_IdentityToolkit_DownloadAccountResponse
  60. */
  61. public function downloadAccount(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDownloadAccountRequest $postBody, $optParams = array())
  62. {
  63. $params = array('postBody' => $postBody);
  64. $params = array_merge($params, $optParams);
  65. return $this->call('downloadAccount', array($params), "Google_Service_IdentityToolkit_DownloadAccountResponse");
  66. }
  67. /**
  68. * Reset password for a user. (relyingparty.emailLinkSignin)
  69. *
  70. * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyEmailLinkSigninRequest $postBody
  71. * @param array $optParams Optional parameters.
  72. * @return Google_Service_IdentityToolkit_EmailLinkSigninResponse
  73. */
  74. public function emailLinkSignin(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyEmailLinkSigninRequest $postBody, $optParams = array())
  75. {
  76. $params = array('postBody' => $postBody);
  77. $params = array_merge($params, $optParams);
  78. return $this->call('emailLinkSignin', array($params), "Google_Service_IdentityToolkit_EmailLinkSigninResponse");
  79. }
  80. /**
  81. * Returns the account info. (relyingparty.getAccountInfo)
  82. *
  83. * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetAccountInfoRequest $postBody
  84. * @param array $optParams Optional parameters.
  85. * @return Google_Service_IdentityToolkit_GetAccountInfoResponse
  86. */
  87. public function getAccountInfo(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetAccountInfoRequest $postBody, $optParams = array())
  88. {
  89. $params = array('postBody' => $postBody);
  90. $params = array_merge($params, $optParams);
  91. return $this->call('getAccountInfo', array($params), "Google_Service_IdentityToolkit_GetAccountInfoResponse");
  92. }
  93. /**
  94. * Get a code for user action confirmation.
  95. * (relyingparty.getOobConfirmationCode)
  96. *
  97. * @param Google_Service_IdentityToolkit_Relyingparty $postBody
  98. * @param array $optParams Optional parameters.
  99. * @return Google_Service_IdentityToolkit_GetOobConfirmationCodeResponse
  100. */
  101. public function getOobConfirmationCode(Google_Service_IdentityToolkit_Relyingparty $postBody, $optParams = array())
  102. {
  103. $params = array('postBody' => $postBody);
  104. $params = array_merge($params, $optParams);
  105. return $this->call('getOobConfirmationCode', array($params), "Google_Service_IdentityToolkit_GetOobConfirmationCodeResponse");
  106. }
  107. /**
  108. * Get project configuration. (relyingparty.getProjectConfig)
  109. *
  110. * @param array $optParams Optional parameters.
  111. *
  112. * @opt_param string delegatedProjectNumber Delegated GCP project number of the
  113. * request.
  114. * @opt_param string projectNumber GCP project number of the request.
  115. * @return Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetProjectConfigResponse
  116. */
  117. public function getProjectConfig($optParams = array())
  118. {
  119. $params = array();
  120. $params = array_merge($params, $optParams);
  121. return $this->call('getProjectConfig', array($params), "Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetProjectConfigResponse");
  122. }
  123. /**
  124. * Get token signing public key. (relyingparty.getPublicKeys)
  125. *
  126. * @param array $optParams Optional parameters.
  127. * @return Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetPublicKeysResponse
  128. */
  129. public function getPublicKeys($optParams = array())
  130. {
  131. $params = array();
  132. $params = array_merge($params, $optParams);
  133. return $this->call('getPublicKeys', array($params), "Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetPublicKeysResponse");
  134. }
  135. /**
  136. * Get recaptcha secure param. (relyingparty.getRecaptchaParam)
  137. *
  138. * @param array $optParams Optional parameters.
  139. * @return Google_Service_IdentityToolkit_GetRecaptchaParamResponse
  140. */
  141. public function getRecaptchaParam($optParams = array())
  142. {
  143. $params = array();
  144. $params = array_merge($params, $optParams);
  145. return $this->call('getRecaptchaParam', array($params), "Google_Service_IdentityToolkit_GetRecaptchaParamResponse");
  146. }
  147. /**
  148. * Reset password for a user. (relyingparty.resetPassword)
  149. *
  150. * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyResetPasswordRequest $postBody
  151. * @param array $optParams Optional parameters.
  152. * @return Google_Service_IdentityToolkit_ResetPasswordResponse
  153. */
  154. public function resetPassword(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyResetPasswordRequest $postBody, $optParams = array())
  155. {
  156. $params = array('postBody' => $postBody);
  157. $params = array_merge($params, $optParams);
  158. return $this->call('resetPassword', array($params), "Google_Service_IdentityToolkit_ResetPasswordResponse");
  159. }
  160. /**
  161. * Send SMS verification code. (relyingparty.sendVerificationCode)
  162. *
  163. * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySendVerificationCodeRequest $postBody
  164. * @param array $optParams Optional parameters.
  165. * @return Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySendVerificationCodeResponse
  166. */
  167. public function sendVerificationCode(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySendVerificationCodeRequest $postBody, $optParams = array())
  168. {
  169. $params = array('postBody' => $postBody);
  170. $params = array_merge($params, $optParams);
  171. return $this->call('sendVerificationCode', array($params), "Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySendVerificationCodeResponse");
  172. }
  173. /**
  174. * Set account info for a user. (relyingparty.setAccountInfo)
  175. *
  176. * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetAccountInfoRequest $postBody
  177. * @param array $optParams Optional parameters.
  178. * @return Google_Service_IdentityToolkit_SetAccountInfoResponse
  179. */
  180. public function setAccountInfo(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetAccountInfoRequest $postBody, $optParams = array())
  181. {
  182. $params = array('postBody' => $postBody);
  183. $params = array_merge($params, $optParams);
  184. return $this->call('setAccountInfo', array($params), "Google_Service_IdentityToolkit_SetAccountInfoResponse");
  185. }
  186. /**
  187. * Set project configuration. (relyingparty.setProjectConfig)
  188. *
  189. * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetProjectConfigRequest $postBody
  190. * @param array $optParams Optional parameters.
  191. * @return Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetProjectConfigResponse
  192. */
  193. public function setProjectConfig(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetProjectConfigRequest $postBody, $optParams = array())
  194. {
  195. $params = array('postBody' => $postBody);
  196. $params = array_merge($params, $optParams);
  197. return $this->call('setProjectConfig', array($params), "Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetProjectConfigResponse");
  198. }
  199. /**
  200. * Sign out user. (relyingparty.signOutUser)
  201. *
  202. * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignOutUserRequest $postBody
  203. * @param array $optParams Optional parameters.
  204. * @return Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignOutUserResponse
  205. */
  206. public function signOutUser(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignOutUserRequest $postBody, $optParams = array())
  207. {
  208. $params = array('postBody' => $postBody);
  209. $params = array_merge($params, $optParams);
  210. return $this->call('signOutUser', array($params), "Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignOutUserResponse");
  211. }
  212. /**
  213. * Signup new user. (relyingparty.signupNewUser)
  214. *
  215. * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignupNewUserRequest $postBody
  216. * @param array $optParams Optional parameters.
  217. * @return Google_Service_IdentityToolkit_SignupNewUserResponse
  218. */
  219. public function signupNewUser(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignupNewUserRequest $postBody, $optParams = array())
  220. {
  221. $params = array('postBody' => $postBody);
  222. $params = array_merge($params, $optParams);
  223. return $this->call('signupNewUser', array($params), "Google_Service_IdentityToolkit_SignupNewUserResponse");
  224. }
  225. /**
  226. * Batch upload existing user accounts. (relyingparty.uploadAccount)
  227. *
  228. * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyUploadAccountRequest $postBody
  229. * @param array $optParams Optional parameters.
  230. * @return Google_Service_IdentityToolkit_UploadAccountResponse
  231. */
  232. public function uploadAccount(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyUploadAccountRequest $postBody, $optParams = array())
  233. {
  234. $params = array('postBody' => $postBody);
  235. $params = array_merge($params, $optParams);
  236. return $this->call('uploadAccount', array($params), "Google_Service_IdentityToolkit_UploadAccountResponse");
  237. }
  238. /**
  239. * Verifies the assertion returned by the IdP. (relyingparty.verifyAssertion)
  240. *
  241. * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyAssertionRequest $postBody
  242. * @param array $optParams Optional parameters.
  243. * @return Google_Service_IdentityToolkit_VerifyAssertionResponse
  244. */
  245. public function verifyAssertion(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyAssertionRequest $postBody, $optParams = array())
  246. {
  247. $params = array('postBody' => $postBody);
  248. $params = array_merge($params, $optParams);
  249. return $this->call('verifyAssertion', array($params), "Google_Service_IdentityToolkit_VerifyAssertionResponse");
  250. }
  251. /**
  252. * Verifies the developer asserted ID token. (relyingparty.verifyCustomToken)
  253. *
  254. * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyCustomTokenRequest $postBody
  255. * @param array $optParams Optional parameters.
  256. * @return Google_Service_IdentityToolkit_VerifyCustomTokenResponse
  257. */
  258. public function verifyCustomToken(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyCustomTokenRequest $postBody, $optParams = array())
  259. {
  260. $params = array('postBody' => $postBody);
  261. $params = array_merge($params, $optParams);
  262. return $this->call('verifyCustomToken', array($params), "Google_Service_IdentityToolkit_VerifyCustomTokenResponse");
  263. }
  264. /**
  265. * Verifies the user entered password. (relyingparty.verifyPassword)
  266. *
  267. * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyPasswordRequest $postBody
  268. * @param array $optParams Optional parameters.
  269. * @return Google_Service_IdentityToolkit_VerifyPasswordResponse
  270. */
  271. public function verifyPassword(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyPasswordRequest $postBody, $optParams = array())
  272. {
  273. $params = array('postBody' => $postBody);
  274. $params = array_merge($params, $optParams);
  275. return $this->call('verifyPassword', array($params), "Google_Service_IdentityToolkit_VerifyPasswordResponse");
  276. }
  277. /**
  278. * Verifies ownership of a phone number and creates/updates the user account
  279. * accordingly. (relyingparty.verifyPhoneNumber)
  280. *
  281. * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest $postBody
  282. * @param array $optParams Optional parameters.
  283. * @return Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse
  284. */
  285. public function verifyPhoneNumber(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest $postBody, $optParams = array())
  286. {
  287. $params = array('postBody' => $postBody);
  288. $params = array_merge($params, $optParams);
  289. return $this->call('verifyPhoneNumber', array($params), "Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse");
  290. }
  291. }