2020class OAuthSettings extends \Google \Collection
2121{
2222 protected $ collection_key = 'programmaticClients ' ;
23+ /**
24+ * Optional. OAuth 2.0 client ID used in the OAuth flow to generate an access
25+ * token. If this field is set, you can skip obtaining the OAuth credentials
26+ * in this step:
27+ * https://developers.google.com/identity/protocols/OAuth2?hl=en_US#1.-obtain-
28+ * oauth-2.0-credentials-from-the-google-api-console. However, this could
29+ * allow for client sharing. The risks of client sharing are outlined here:
30+ * https://cloud.google.com/iap/docs/sharing-oauth-clients#risks.
31+ *
32+ * @var string
33+ */
34+ public $ clientId ;
35+ /**
36+ * Optional. Input only. OAuth secret paired with client ID
37+ *
38+ * @var string
39+ */
40+ public $ clientSecret ;
41+ /**
42+ * Output only. OAuth secret sha256 paired with client ID
43+ *
44+ * @var string
45+ */
46+ public $ clientSecretSha256 ;
2347 /**
2448 * Domain hint to send as hd=? parameter in OAuth request flow. Enables
2549 * redirect to primary IDP by skipping Google's login screen.
@@ -37,6 +61,60 @@ class OAuthSettings extends \Google\Collection
3761 */
3862 public $ programmaticClients ;
3963
64+ /**
65+ * Optional. OAuth 2.0 client ID used in the OAuth flow to generate an access
66+ * token. If this field is set, you can skip obtaining the OAuth credentials
67+ * in this step:
68+ * https://developers.google.com/identity/protocols/OAuth2?hl=en_US#1.-obtain-
69+ * oauth-2.0-credentials-from-the-google-api-console. However, this could
70+ * allow for client sharing. The risks of client sharing are outlined here:
71+ * https://cloud.google.com/iap/docs/sharing-oauth-clients#risks.
72+ *
73+ * @param string $clientId
74+ */
75+ public function setClientId ($ clientId )
76+ {
77+ $ this ->clientId = $ clientId ;
78+ }
79+ /**
80+ * @return string
81+ */
82+ public function getClientId ()
83+ {
84+ return $ this ->clientId ;
85+ }
86+ /**
87+ * Optional. Input only. OAuth secret paired with client ID
88+ *
89+ * @param string $clientSecret
90+ */
91+ public function setClientSecret ($ clientSecret )
92+ {
93+ $ this ->clientSecret = $ clientSecret ;
94+ }
95+ /**
96+ * @return string
97+ */
98+ public function getClientSecret ()
99+ {
100+ return $ this ->clientSecret ;
101+ }
102+ /**
103+ * Output only. OAuth secret sha256 paired with client ID
104+ *
105+ * @param string $clientSecretSha256
106+ */
107+ public function setClientSecretSha256 ($ clientSecretSha256 )
108+ {
109+ $ this ->clientSecretSha256 = $ clientSecretSha256 ;
110+ }
111+ /**
112+ * @return string
113+ */
114+ public function getClientSecretSha256 ()
115+ {
116+ return $ this ->clientSecretSha256 ;
117+ }
40118 /**
41119 * Domain hint to send as hd=? parameter in OAuth request flow. Enables
42120 * redirect to primary IDP by skipping Google's login screen.
0 commit comments