@@ -20,10 +20,16 @@ sealed class UpdateConnectorRequest {
2020 */
2121 @Json(name = " scope" )
2222 val scope : List <String >? = null ,
23+ /* *
24+ * The ID of the active credential for this connector (for multi-credential setups)
25+ */
26+ @Json(name = " active_credential_id" )
27+ val activeCredentialId : String? = null ,
2328 ) : UpdateConnectorRequest() {
2429 class Builder {
2530 private var settings: GoogleConnectorSettings ? = null
2631 private var scope: List <String >? = null
32+ private var activeCredentialId: String? = null
2733
2834 /* *
2935 * Set the Google OAuth provider credentials and settings
@@ -39,11 +45,18 @@ sealed class UpdateConnectorRequest {
3945 */
4046 fun scope (scope : List <String >) = apply { this .scope = scope }
4147
48+ /* *
49+ * Set the active credential ID for this connector
50+ * @param activeCredentialId The active credential ID
51+ * @return The builder
52+ */
53+ fun activeCredentialId (activeCredentialId : String ) = apply { this .activeCredentialId = activeCredentialId }
54+
4255 /* *
4356 * Build the Google connector creation request
4457 * @return The Google connector creation request
4558 */
46- fun build () = Google (settings, scope)
59+ fun build () = Google (settings, scope, activeCredentialId )
4760 }
4861 }
4962
@@ -61,10 +74,16 @@ sealed class UpdateConnectorRequest {
6174 */
6275 @Json(name = " scope" )
6376 val scope : List <String >? = null ,
77+ /* *
78+ * The ID of the active credential for this connector (for multi-credential setups)
79+ */
80+ @Json(name = " active_credential_id" )
81+ val activeCredentialId : String? = null ,
6482 ) : UpdateConnectorRequest() {
6583 class Builder {
6684 private var settings: MicrosoftConnectorSettings ? = null
6785 private var scope: List <String >? = null
86+ private var activeCredentialId: String? = null
6887
6988 /* *
7089 * Set the Microsoft OAuth provider credentials and settings
@@ -80,11 +99,18 @@ sealed class UpdateConnectorRequest {
8099 */
81100 fun scope (scope : List <String >) = apply { this .scope = scope }
82101
102+ /* *
103+ * Set the active credential ID for this connector
104+ * @param activeCredentialId The active credential ID
105+ * @return The builder
106+ */
107+ fun activeCredentialId (activeCredentialId : String ) = apply { this .activeCredentialId = activeCredentialId }
108+
83109 /* *
84110 * Build the Microsoft connector creation request
85111 * @return The Microsoft connector creation request
86112 */
87- fun build () = Microsoft (settings, scope)
113+ fun build () = Microsoft (settings, scope, activeCredentialId )
88114 }
89115 }
90116}
0 commit comments