@@ -23,10 +23,10 @@ public class GuardianEntity extends BaseManagementEntity {
2323
2424 /**
2525 * Create a new Guardian Enrollment Ticket. A token with scope create:guardian_enrollment_tickets is needed.
26- * See https://auth0.com/docs/api/management/v2#!/Guardian/post_ticket
2726 *
2827 * @param enrollmentTicket the enrollment ticket data to set.
2928 * @return a Request to execute.
29+ * @see <a href="https://auth0.com/docs/api/management/v2#!/Guardian/post_ticket">Management API2 docs</a>
3030 */
3131 public Request <EnrollmentTicket > createEnrollmentTicket (EnrollmentTicket enrollmentTicket ) {
3232 Asserts .assertNotNull (enrollmentTicket , "enrollment ticket" );
@@ -46,10 +46,10 @@ public Request<EnrollmentTicket> createEnrollmentTicket(EnrollmentTicket enrollm
4646
4747 /**
4848 * Delete an existing Guardian Enrollment. A token with scope delete:guardian_enrollments is needed.
49- * See https://auth0.com/docs/api/management/v2#!/Guardian/delete_enrollments_by_id
5049 *
5150 * @param enrollmentId the id of the enrollment to retrieve.
5251 * @return a Request to execute.
52+ * @see <a href="https://auth0.com/docs/api/management/v2#!/Guardian/delete_enrollments_by_id">Management API2 docs</a>
5353 */
5454 public Request deleteEnrollment (String enrollmentId ) {
5555 Asserts .assertNotNull (enrollmentId , "enrollment id" );
@@ -66,10 +66,11 @@ public Request deleteEnrollment(String enrollmentId) {
6666 }
6767
6868 /**
69- * Request the Guardian enrollment and verification Templates. A token with scope read:guardian_factors is needed .
70- * See https://auth0.com/docs/api/management/v2#!/Guardian/get_templates
69+ * Request the Guardian SMS enrollment and verification templates .
70+ * A token with scope read:guardian_factors is needed.
7171 *
7272 * @return a Request to execute.
73+ * @see <a href="https://auth0.com/docs/api/management/v2#!/Guardian/get_templates">Management API2 docs</a>
7374 */
7475 public Request <GuardianTemplates > getTemplates () {
7576 String url = baseUrl
@@ -84,11 +85,12 @@ public Request<GuardianTemplates> getTemplates() {
8485 }
8586
8687 /**
87- * Updates the existing Guardian enrollment and verification Templates. A token with scope update:guardian_factors is needed .
88- * See https://auth0.com/docs/api/management/v2#!/Guardian/put_templates
88+ * Updates the existing Guardian SMS enrollment and verification templates .
89+ * A token with scope update:guardian_factors is needed.
8990 *
9091 * @param guardianTemplates the templates data to set.
9192 * @return a Request to execute.
93+ * @see <a href="https://auth0.com/docs/api/management/v2#!/Guardian/put_templates">Management API2 docs</a>
9294 */
9395 public Request <GuardianTemplates > updateTemplates (GuardianTemplates guardianTemplates ) {
9496 Asserts .assertNotNull (guardianTemplates , "guardian templates" );
@@ -107,9 +109,9 @@ public Request<GuardianTemplates> updateTemplates(GuardianTemplates guardianTemp
107109
108110 /**
109111 * Request all the Guardian Factors. A token with scope read:guardian_factors is needed.
110- * See https://auth0.com/docs/api/management/v2#!/Guardian/get_factors
111112 *
112113 * @return a Request to execute.
114+ * @see <a href="https://auth0.com/docs/api/management/v2#!/Guardian/get_factors">Management API2 docs</a>
113115 */
114116 public Request <List <Factor >> listFactors () {
115117 String url = baseUrl
@@ -125,11 +127,11 @@ public Request<List<Factor>> listFactors() {
125127
126128 /**
127129 * Update an existing Guardian Factor. A token with scope update:guardian_factors is needed.
128- * See https://auth0.com/docs/api/management/v2#!/Guardian/put_factors_by_name
129130 *
130131 * @param name the name of the Factor to update.
131132 * @param enabled whether to enable or disable the Factor.
132133 * @return a Request to execute.
134+ * @see <a href="https://auth0.com/docs/api/management/v2#!/Guardian/put_factors_by_name">Management API2 docs</a>
133135 */
134136 public Request <Factor > updateFactor (String name , Boolean enabled ) {
135137 Asserts .assertNotNull (name , "name" );
@@ -149,10 +151,10 @@ public Request<Factor> updateFactor(String name, Boolean enabled) {
149151 }
150152
151153 /**
152- * Request the Guardian's Twilio Factor Provider. A token with scope read:guardian_factors is needed.
153- * See https://auth0.com/docs/api/management/v2#!/Guardian/get_twilio
154+ * Request Guardian's Twilio SMS Factor Provider settings. A token with scope read:guardian_factors is needed.
154155 *
155156 * @return a Request to execute.
157+ * @see <a href="https://auth0.com/docs/api/management/v2#!/Guardian/get_twilio">Management API2 docs</a>
156158 */
157159 public Request <TwilioFactorProvider > getTwilioFactorProvider () {
158160
@@ -168,11 +170,11 @@ public Request<TwilioFactorProvider> getTwilioFactorProvider() {
168170 }
169171
170172 /**
171- * Update the existing Guardian's Twilio Factor Provider. A token with scope update:guardian_factors is needed.
172- * See https://auth0.com/docs/api/management/v2#!/Guardian/put_twilio
173+ * Update Guardian's Twilio SMS Factor Provider. A token with scope update:guardian_factors is needed.
173174 *
174175 * @param provider the provider data to set.
175176 * @return a Request to execute.
177+ * @see <a href="https://auth0.com/docs/api/management/v2#!/Guardian/put_twilio">Management API2 docs</a>
176178 */
177179 public Request <TwilioFactorProvider > updateTwilioFactorProvider (TwilioFactorProvider provider ) {
178180 Asserts .assertNotNull (provider , "provider" );
@@ -190,10 +192,21 @@ public Request<TwilioFactorProvider> updateTwilioFactorProvider(TwilioFactorProv
190192 }
191193
192194 /**
193- * Request the Guardian's Sns Factor Provider. A token with scope read:guardian_factors is needed .
194- * See https://auth0.com/docs/api/management/v2#!/Guardian/get_sns
195+ * Reset Guardian's Twilio SMS Factor Provider to the defaults .
196+ * A token with scope update:guardian_factors is needed.
195197 *
196198 * @return a Request to execute.
199+ * @see <a href="https://auth0.com/docs/api/management/v2#!/Guardian/put_twilio">Management API2 docs</a>
200+ */
201+ public Request <TwilioFactorProvider > resetTwilioFactorProvider () {
202+ return updateTwilioFactorProvider (new TwilioFactorProvider (null , null , null , null ));
203+ }
204+
205+ /**
206+ * Request Guardian's SNS push-notification Factor Provider. A token with scope read:guardian_factors is needed.
207+ *
208+ * @return a Request to execute.
209+ * @see <a href="https://auth0.com/docs/api/management/v2#!/Guardian/get_sns">Management API2 docs</a>
197210 */
198211 public Request <SNSFactorProvider > getSNSFactorProvider () {
199212
@@ -209,11 +222,11 @@ public Request<SNSFactorProvider> getSNSFactorProvider() {
209222 }
210223
211224 /**
212- * Update the existing Guardian's Sns Factor Provider. A token with scope update:guardian_factors is needed.
213- * See https://auth0.com/docs/api/management/v2#!/Guardian/put_sns
225+ * Update Guardian's SNS push-notification Factor Provider. A token with scope update:guardian_factors is needed.
214226 *
215227 * @param provider the provider data to set.
216228 * @return a Request to execute.
229+ * @see <a href="https://auth0.com/docs/api/management/v2#!/Guardian/put_sns">Management API2 docs</a>
217230 */
218231 public Request <SNSFactorProvider > updateSNSFactorProvider (SNSFactorProvider provider ) {
219232 Asserts .assertNotNull (provider , "provider" );
@@ -229,4 +242,15 @@ public Request<SNSFactorProvider> updateSNSFactorProvider(SNSFactorProvider prov
229242 request .setBody (provider );
230243 return request ;
231244 }
245+
246+ /**
247+ * Reset Guardian's SNS push-notification Factor Provider to the defaults.
248+ * A token with scope update:guardian_factors is needed.
249+ *
250+ * @return a Request to execute.
251+ * @see <a href="https://auth0.com/docs/api/management/v2#!/Guardian/put_sns">Management API2 docs</a>
252+ */
253+ public Request <SNSFactorProvider > resetSNSFactorProvider () {
254+ return updateSNSFactorProvider (new SNSFactorProvider (null , null , null , null , null ));
255+ }
232256}
0 commit comments