@@ -10,7 +10,7 @@ namespace Contentstack.Management.Core.Models
1010 /// </summary>
1111 public class Taxonomy : BaseModel < TaxonomyModel >
1212 {
13- internal Taxonomy ( Stack stack , string uid = null )
13+ internal Taxonomy ( Stack stack , string ? uid = null )
1414 : base ( stack , "taxonomy" , uid )
1515 {
1616 resourcePath = uid == null ? "/taxonomies" : $ "/taxonomies/{ uid } ";
@@ -33,71 +33,71 @@ public Query Query()
3333 /// <summary>
3434 /// Create a taxonomy.
3535 /// </summary>
36- public override ContentstackResponse Create ( TaxonomyModel model , ParameterCollection collection = null )
36+ public override ContentstackResponse Create ( TaxonomyModel model , ParameterCollection ? collection = null )
3737 {
3838 return base . Create ( model , collection ) ;
3939 }
4040
4141 /// <summary>
4242 /// Create a taxonomy asynchronously.
4343 /// </summary>
44- public override Task < ContentstackResponse > CreateAsync ( TaxonomyModel model , ParameterCollection collection = null )
44+ public override Task < ContentstackResponse > CreateAsync ( TaxonomyModel model , ParameterCollection ? collection = null )
4545 {
4646 return base . CreateAsync ( model , collection ) ;
4747 }
4848
4949 /// <summary>
5050 /// Update an existing taxonomy.
5151 /// </summary>
52- public override ContentstackResponse Update ( TaxonomyModel model , ParameterCollection collection = null )
52+ public override ContentstackResponse Update ( TaxonomyModel model , ParameterCollection ? collection = null )
5353 {
5454 return base . Update ( model , collection ) ;
5555 }
5656
5757 /// <summary>
5858 /// Update an existing taxonomy asynchronously.
5959 /// </summary>
60- public override Task < ContentstackResponse > UpdateAsync ( TaxonomyModel model , ParameterCollection collection = null )
60+ public override Task < ContentstackResponse > UpdateAsync ( TaxonomyModel model , ParameterCollection ? collection = null )
6161 {
6262 return base . UpdateAsync ( model , collection ) ;
6363 }
6464
6565 /// <summary>
6666 /// Fetch a single taxonomy.
6767 /// </summary>
68- public override ContentstackResponse Fetch ( ParameterCollection collection = null )
68+ public override ContentstackResponse Fetch ( ParameterCollection ? collection = null )
6969 {
7070 return base . Fetch ( collection ) ;
7171 }
7272
7373 /// <summary>
7474 /// Fetch a single taxonomy asynchronously.
7575 /// </summary>
76- public override Task < ContentstackResponse > FetchAsync ( ParameterCollection collection = null )
76+ public override Task < ContentstackResponse > FetchAsync ( ParameterCollection ? collection = null )
7777 {
7878 return base . FetchAsync ( collection ) ;
7979 }
8080
8181 /// <summary>
8282 /// Delete a taxonomy.
8383 /// </summary>
84- public override ContentstackResponse Delete ( ParameterCollection collection = null )
84+ public override ContentstackResponse Delete ( ParameterCollection ? collection = null )
8585 {
8686 return base . Delete ( collection ) ;
8787 }
8888
8989 /// <summary>
9090 /// Delete a taxonomy asynchronously.
9191 /// </summary>
92- public override Task < ContentstackResponse > DeleteAsync ( ParameterCollection collection = null )
92+ public override Task < ContentstackResponse > DeleteAsync ( ParameterCollection ? collection = null )
9393 {
9494 return base . DeleteAsync ( collection ) ;
9595 }
9696
9797 /// <summary>
9898 /// Export taxonomy. GET {resourcePath}/export with optional query parameters.
9999 /// </summary>
100- public ContentstackResponse Export ( ParameterCollection collection = null )
100+ public ContentstackResponse Export ( ParameterCollection ? collection = null )
101101 {
102102 stack . ThrowIfNotLoggedIn ( ) ;
103103 ThrowIfUidEmpty ( ) ;
@@ -108,7 +108,7 @@ public ContentstackResponse Export(ParameterCollection collection = null)
108108 /// <summary>
109109 /// Export taxonomy asynchronously.
110110 /// </summary>
111- public Task < ContentstackResponse > ExportAsync ( ParameterCollection collection = null )
111+ public Task < ContentstackResponse > ExportAsync ( ParameterCollection ? collection = null )
112112 {
113113 stack . ThrowIfNotLoggedIn ( ) ;
114114 ThrowIfUidEmpty ( ) ;
@@ -119,7 +119,7 @@ public Task<ContentstackResponse> ExportAsync(ParameterCollection collection = n
119119 /// <summary>
120120 /// Get taxonomy locales. GET {resourcePath}/locales.
121121 /// </summary>
122- public ContentstackResponse Locales ( ParameterCollection collection = null )
122+ public ContentstackResponse Locales ( ParameterCollection ? collection = null )
123123 {
124124 stack . ThrowIfNotLoggedIn ( ) ;
125125 ThrowIfUidEmpty ( ) ;
@@ -130,7 +130,7 @@ public ContentstackResponse Locales(ParameterCollection collection = null)
130130 /// <summary>
131131 /// Get taxonomy locales asynchronously.
132132 /// </summary>
133- public Task < ContentstackResponse > LocalesAsync ( ParameterCollection collection = null )
133+ public Task < ContentstackResponse > LocalesAsync ( ParameterCollection ? collection = null )
134134 {
135135 stack . ThrowIfNotLoggedIn ( ) ;
136136 ThrowIfUidEmpty ( ) ;
@@ -141,7 +141,7 @@ public Task<ContentstackResponse> LocalesAsync(ParameterCollection collection =
141141 /// <summary>
142142 /// Localize taxonomy. POST to resourcePath with body { taxonomy: model } and query params (e.g. locale).
143143 /// </summary>
144- public ContentstackResponse Localize ( TaxonomyModel model , ParameterCollection collection = null )
144+ public ContentstackResponse Localize ( TaxonomyModel model , ParameterCollection ? collection = null )
145145 {
146146 stack . ThrowIfNotLoggedIn ( ) ;
147147 ThrowIfUidEmpty ( ) ;
@@ -152,7 +152,7 @@ public ContentstackResponse Localize(TaxonomyModel model, ParameterCollection co
152152 /// <summary>
153153 /// Localize taxonomy asynchronously.
154154 /// </summary>
155- public Task < ContentstackResponse > LocalizeAsync ( TaxonomyModel model , ParameterCollection collection = null )
155+ public Task < ContentstackResponse > LocalizeAsync ( TaxonomyModel model , ParameterCollection ? collection = null )
156156 {
157157 stack . ThrowIfNotLoggedIn ( ) ;
158158 ThrowIfUidEmpty ( ) ;
@@ -163,7 +163,7 @@ public Task<ContentstackResponse> LocalizeAsync(TaxonomyModel model, ParameterCo
163163 /// <summary>
164164 /// Import taxonomy. POST /taxonomies/import with multipart form (taxonomy file).
165165 /// </summary>
166- public ContentstackResponse Import ( TaxonomyImportModel model , ParameterCollection collection = null )
166+ public ContentstackResponse Import ( TaxonomyImportModel model , ParameterCollection ? collection = null )
167167 {
168168 stack . ThrowIfNotLoggedIn ( ) ;
169169 ThrowIfUidNotEmpty ( ) ;
@@ -175,7 +175,7 @@ public ContentstackResponse Import(TaxonomyImportModel model, ParameterCollectio
175175 /// <summary>
176176 /// Import taxonomy asynchronously.
177177 /// </summary>
178- public Task < ContentstackResponse > ImportAsync ( TaxonomyImportModel model , ParameterCollection collection = null )
178+ public Task < ContentstackResponse > ImportAsync ( TaxonomyImportModel model , ParameterCollection ? collection = null )
179179 {
180180 stack . ThrowIfNotLoggedIn ( ) ;
181181 ThrowIfUidNotEmpty ( ) ;
@@ -194,7 +194,7 @@ public Task<ContentstackResponse> ImportAsync(TaxonomyImportModel model, Paramet
194194 /// stack.Taxonomy("taxonomy_uid").Terms("term_uid").Fetch();
195195 /// </code>
196196 /// </example>
197- public Term Terms ( string termUid = null )
197+ public Term Terms ( string ? termUid = null )
198198 {
199199 ThrowIfUidEmpty ( ) ;
200200 return new Term ( stack , Uid , termUid ) ;
0 commit comments