3030@ SuppressWarnings ("javadoc" )
3131public final class OAuthSettings extends com .google .api .client .json .GenericJson {
3232
33+ /**
34+ * Optional. OAuth 2.0 client ID used in the OAuth flow to generate an access token. If this field
35+ * is set, you can skip obtaining the OAuth credentials in this step:
36+ * https://developers.google.com/identity/protocols/OAuth2?hl=en_US#1.-obtain-
37+ * oauth-2.0-credentials-from-the-google-api-console. However, this could allow for client
38+ * sharing. The risks of client sharing are outlined here:
39+ * https://cloud.google.com/iap/docs/sharing-oauth-clients#risks.
40+ * The value may be {@code null}.
41+ */
42+ @ com .google .api .client .util .Key
43+ private java .lang .String clientId ;
44+
45+ /**
46+ * Optional. Input only. OAuth secret paired with client ID
47+ * The value may be {@code null}.
48+ */
49+ @ com .google .api .client .util .Key
50+ private java .lang .String clientSecret ;
51+
52+ /**
53+ * Output only. OAuth secret sha256 paired with client ID
54+ * The value may be {@code null}.
55+ */
56+ @ com .google .api .client .util .Key
57+ private java .lang .String clientSecretSha256 ;
58+
3359 /**
3460 * Domain hint to send as hd=? parameter in OAuth request flow. Enables redirect to primary IDP by
3561 * skipping Google's login screen.
@@ -48,6 +74,67 @@ public final class OAuthSettings extends com.google.api.client.json.GenericJson
4874 @ com .google .api .client .util .Key
4975 private java .util .List <java .lang .String > programmaticClients ;
5076
77+ /**
78+ * Optional. OAuth 2.0 client ID used in the OAuth flow to generate an access token. If this field
79+ * is set, you can skip obtaining the OAuth credentials in this step:
80+ * https://developers.google.com/identity/protocols/OAuth2?hl=en_US#1.-obtain-
81+ * oauth-2.0-credentials-from-the-google-api-console. However, this could allow for client
82+ * sharing. The risks of client sharing are outlined here:
83+ * https://cloud.google.com/iap/docs/sharing-oauth-clients#risks.
84+ * @return value or {@code null} for none
85+ */
86+ public java .lang .String getClientId () {
87+ return clientId ;
88+ }
89+
90+ /**
91+ * Optional. OAuth 2.0 client ID used in the OAuth flow to generate an access token. If this field
92+ * is set, you can skip obtaining the OAuth credentials in this step:
93+ * https://developers.google.com/identity/protocols/OAuth2?hl=en_US#1.-obtain-
94+ * oauth-2.0-credentials-from-the-google-api-console. However, this could allow for client
95+ * sharing. The risks of client sharing are outlined here:
96+ * https://cloud.google.com/iap/docs/sharing-oauth-clients#risks.
97+ * @param clientId clientId or {@code null} for none
98+ */
99+ public OAuthSettings setClientId (java .lang .String clientId ) {
100+ this .clientId = clientId ;
101+ return this ;
102+ }
103+
104+ /**
105+ * Optional. Input only. OAuth secret paired with client ID
106+ * @return value or {@code null} for none
107+ */
108+ public java .lang .String getClientSecret () {
109+ return clientSecret ;
110+ }
111+
112+ /**
113+ * Optional. Input only. OAuth secret paired with client ID
114+ * @param clientSecret clientSecret or {@code null} for none
115+ */
116+ public OAuthSettings setClientSecret (java .lang .String clientSecret ) {
117+ this .clientSecret = clientSecret ;
118+ return this ;
119+ }
120+
121+ /**
122+ * Output only. OAuth secret sha256 paired with client ID
123+ * @return value or {@code null} for none
124+ */
125+ public java .lang .String getClientSecretSha256 () {
126+ return clientSecretSha256 ;
127+ }
128+
129+ /**
130+ * Output only. OAuth secret sha256 paired with client ID
131+ * @param clientSecretSha256 clientSecretSha256 or {@code null} for none
132+ */
133+ public OAuthSettings setClientSecretSha256 (java .lang .String clientSecretSha256 ) {
134+ this .clientSecretSha256 = clientSecretSha256 ;
135+ return this ;
136+ }
137+
51138 /**
52139 * Domain hint to send as hd=? parameter in OAuth request flow. Enables redirect to primary IDP by
53140 * skipping Google's login screen.
0 commit comments