@@ -8,7 +8,9 @@ namespace Microsoft.Azure.Management.DataFactory.Models
88 using System . Linq ;
99
1010 /// <summary>
11- /// QuickBooks server linked service.
11+ /// QuickBooks server linked service. This linked service has supported version
12+ /// property. The Version 1.0 is scheduled for deprecation while your pipeline
13+ /// will continue to run after EOL but without any bug fix or new features.
1214 /// </summary>
1315 [ Newtonsoft . Json . JsonObject ( "QuickBooks" ) ]
1416 [ Microsoft . Rest . Serialization . JsonTransformation ]
@@ -55,26 +57,30 @@ public QuickBooksLinkedService()
5557 /// <param name="companyId">The company ID of the QuickBooks company to authorize.
5658 /// </param>
5759
58- /// <param name="consumerKey">The consumer key for OAuth 1 .0 authentication.
60+ /// <param name="consumerKey">The consumer key for OAuth 2 .0 authentication.
5961 /// </param>
6062
61- /// <param name="consumerSecret">The consumer secret for OAuth 1 .0 authentication.
63+ /// <param name="consumerSecret">The consumer secret for OAuth 2 .0 authentication.
6264 /// </param>
6365
64- /// <param name="accessToken">The access token for OAuth 1 .0 authentication.
66+ /// <param name="accessToken">The access token for OAuth 2 .0 authentication.
6567 /// </param>
6668
67- /// <param name="accessTokenSecret">The access token secret for OAuth 1.0 authentication.
69+ /// <param name="accessTokenSecret">The access token secret is deprecated for OAuth 1.0 authentication. Only
70+ /// used for version 1.0.
71+ /// </param>
72+
73+ /// <param name="refreshToken">The refresh token for OAuth 2.0 authentication.
6874 /// </param>
6975
7076 /// <param name="useEncryptedEndpoints">Specifies whether the data source endpoints are encrypted using HTTPS. The
71- /// default value is true.
77+ /// default value is true. Only used for version 1.0.
7278 /// </param>
7379
7480 /// <param name="encryptedCredential">The encrypted credential used for authentication. Credentials are encrypted
7581 /// using the integration runtime credential manager. Type: string.
7682 /// </param>
77- public QuickBooksLinkedService ( System . Collections . Generic . IDictionary < string , object > additionalProperties = default ( System . Collections . Generic . IDictionary < string , object > ) , string version = default ( string ) , IntegrationRuntimeReference connectVia = default ( IntegrationRuntimeReference ) , string description = default ( string ) , System . Collections . Generic . IDictionary < string , ParameterSpecification > parameters = default ( System . Collections . Generic . IDictionary < string , ParameterSpecification > ) , System . Collections . Generic . IList < object > annotations = default ( System . Collections . Generic . IList < object > ) , object connectionProperties = default ( object ) , object endpoint = default ( object ) , object companyId = default ( object ) , object consumerKey = default ( object ) , SecretBase consumerSecret = default ( SecretBase ) , SecretBase accessToken = default ( SecretBase ) , SecretBase accessTokenSecret = default ( SecretBase ) , object useEncryptedEndpoints = default ( object ) , string encryptedCredential = default ( string ) )
83+ public QuickBooksLinkedService ( System . Collections . Generic . IDictionary < string , object > additionalProperties = default ( System . Collections . Generic . IDictionary < string , object > ) , string version = default ( string ) , IntegrationRuntimeReference connectVia = default ( IntegrationRuntimeReference ) , string description = default ( string ) , System . Collections . Generic . IDictionary < string , ParameterSpecification > parameters = default ( System . Collections . Generic . IDictionary < string , ParameterSpecification > ) , System . Collections . Generic . IList < object > annotations = default ( System . Collections . Generic . IList < object > ) , object connectionProperties = default ( object ) , object endpoint = default ( object ) , object companyId = default ( object ) , object consumerKey = default ( object ) , SecretBase consumerSecret = default ( SecretBase ) , SecretBase accessToken = default ( SecretBase ) , SecretBase accessTokenSecret = default ( SecretBase ) , SecretBase refreshToken = default ( SecretBase ) , object useEncryptedEndpoints = default ( object ) , string encryptedCredential = default ( string ) )
7884
7985 : base ( additionalProperties , version , connectVia , description , parameters , annotations )
8086 {
@@ -85,6 +91,7 @@ public QuickBooksLinkedService()
8591 this . ConsumerSecret = consumerSecret ;
8692 this . AccessToken = accessToken ;
8793 this . AccessTokenSecret = accessTokenSecret ;
94+ this . RefreshToken = refreshToken ;
8895 this . UseEncryptedEndpoints = useEncryptedEndpoints ;
8996 this . EncryptedCredential = encryptedCredential ;
9097 CustomInit ( ) ;
@@ -117,32 +124,39 @@ public QuickBooksLinkedService()
117124 public object CompanyId { get ; set ; }
118125
119126 /// <summary>
120- /// Gets or sets the consumer key for OAuth 1 .0 authentication.
127+ /// Gets or sets the consumer key for OAuth 2 .0 authentication.
121128 /// </summary>
122129 [ Newtonsoft . Json . JsonProperty ( PropertyName = "typeProperties.consumerKey" ) ]
123130 public object ConsumerKey { get ; set ; }
124131
125132 /// <summary>
126- /// Gets or sets the consumer secret for OAuth 1 .0 authentication.
133+ /// Gets or sets the consumer secret for OAuth 2 .0 authentication.
127134 /// </summary>
128135 [ Newtonsoft . Json . JsonProperty ( PropertyName = "typeProperties.consumerSecret" ) ]
129136 public SecretBase ConsumerSecret { get ; set ; }
130137
131138 /// <summary>
132- /// Gets or sets the access token for OAuth 1 .0 authentication.
139+ /// Gets or sets the access token for OAuth 2 .0 authentication.
133140 /// </summary>
134141 [ Newtonsoft . Json . JsonProperty ( PropertyName = "typeProperties.accessToken" ) ]
135142 public SecretBase AccessToken { get ; set ; }
136143
137144 /// <summary>
138- /// Gets or sets the access token secret for OAuth 1.0 authentication.
145+ /// Gets or sets the access token secret is deprecated for OAuth 1.0
146+ /// authentication. Only used for version 1.0.
139147 /// </summary>
140148 [ Newtonsoft . Json . JsonProperty ( PropertyName = "typeProperties.accessTokenSecret" ) ]
141149 public SecretBase AccessTokenSecret { get ; set ; }
142150
151+ /// <summary>
152+ /// Gets or sets the refresh token for OAuth 2.0 authentication.
153+ /// </summary>
154+ [ Newtonsoft . Json . JsonProperty ( PropertyName = "typeProperties.refreshToken" ) ]
155+ public SecretBase RefreshToken { get ; set ; }
156+
143157 /// <summary>
144158 /// Gets or sets specifies whether the data source endpoints are encrypted
145- /// using HTTPS. The default value is true.
159+ /// using HTTPS. The default value is true. Only used for version 1.0.
146160 /// </summary>
147161 [ Newtonsoft . Json . JsonProperty ( PropertyName = "typeProperties.useEncryptedEndpoints" ) ]
148162 public object UseEncryptedEndpoints { get ; set ; }
@@ -172,6 +186,7 @@ public override void Validate()
172186
173187
174188
189+
175190 }
176191 }
177192}
0 commit comments