@@ -254,6 +254,157 @@ public CreateAndConfigure set(String parameterName, Object value) {
254254 return (CreateAndConfigure ) super .set (parameterName , value );
255255 }
256256 }
257+ /**
258+ * Creates a Merchant Center test account. Test accounts are intended for development and testing
259+ * purposes, such as validating API integrations or new feature behavior. Key characteristics and
260+ * limitations of test accounts: - Immutable Type: A test account cannot be converted into a regular
261+ * (live) Merchant Center account. Likewise, a regular account cannot be converted into a test
262+ * account. - Non-Serving Products: Any products, offers, or data created within a test account will
263+ * not be published or made visible to end-users on any Google surfaces. They are strictly for
264+ * testing environments. - Separate Environment: Test accounts operate in a sandbox-like manner,
265+ * isolated from live serving and real user traffic.
266+ *
267+ * Create a request for the method "accounts.createTestAccount".
268+ *
269+ * This request holds the parameters needed by the merchantapi server. After setting any optional
270+ * parameters, call the {@link CreateTestAccount#execute()} method to invoke the remote operation.
271+ *
272+ * @param parent Required. The account resource name to create the test account under. Format: accounts/{account}
273+ * @param content the {@link com.google.api.services.merchantapi.accounts_v1beta.model.Account}
274+ * @return the request
275+ */
276+ public CreateTestAccount createTestAccount (java .lang .String parent , com .google .api .services .merchantapi .accounts_v1beta .model .Account content ) throws java .io .IOException {
277+ CreateTestAccount result = new CreateTestAccount (parent , content );
278+ initialize (result );
279+ return result ;
280+ }
281+
282+ public class CreateTestAccount extends MerchantRequest <com .google .api .services .merchantapi .accounts_v1beta .model .Account > {
283+
284+ private static final String REST_PATH = "accounts/v1beta/{+parent}:createTestAccount" ;
285+
286+ private final java .util .regex .Pattern PARENT_PATTERN =
287+ java .util .regex .Pattern .compile ("^accounts/[^/]+$" );
288+
289+ /**
290+ * Creates a Merchant Center test account. Test accounts are intended for development and testing
291+ * purposes, such as validating API integrations or new feature behavior. Key characteristics and
292+ * limitations of test accounts: - Immutable Type: A test account cannot be converted into a
293+ * regular (live) Merchant Center account. Likewise, a regular account cannot be converted into a
294+ * test account. - Non-Serving Products: Any products, offers, or data created within a test
295+ * account will not be published or made visible to end-users on any Google surfaces. They are
296+ * strictly for testing environments. - Separate Environment: Test accounts operate in a sandbox-
297+ * like manner, isolated from live serving and real user traffic.
298+ *
299+ * Create a request for the method "accounts.createTestAccount".
300+ *
301+ * This request holds the parameters needed by the the merchantapi server. After setting any
302+ * optional parameters, call the {@link CreateTestAccount#execute()} method to invoke the remote
303+ * operation. <p> {@link CreateTestAccount#initialize(com.google.api.client.googleapis.services.Ab
304+ * stractGoogleClientRequest)} must be called to initialize this instance immediately after
305+ * invoking the constructor. </p>
306+ *
307+ * @param parent Required. The account resource name to create the test account under. Format: accounts/{account}
308+ * @param content the {@link com.google.api.services.merchantapi.accounts_v1beta.model.Account}
309+ * @since 1.13
310+ */
311+ protected CreateTestAccount (java .lang .String parent , com .google .api .services .merchantapi .accounts_v1beta .model .Account content ) {
312+ super (Merchant .this , "POST" , REST_PATH , content , com .google .api .services .merchantapi .accounts_v1beta .model .Account .class );
313+ this .parent = com .google .api .client .util .Preconditions .checkNotNull (parent , "Required parameter parent must be specified." );
314+ if (!getSuppressPatternChecks ()) {
315+ com .google .api .client .util .Preconditions .checkArgument (PARENT_PATTERN .matcher (parent ).matches (),
316+ "Parameter parent must conform to the pattern " +
317+ "^accounts/[^/]+$" );
318+ }
319+ }
320+
321+ @ Override
322+ public CreateTestAccount set$Xgafv (java .lang .String $Xgafv ) {
323+ return (CreateTestAccount ) super .set$Xgafv ($Xgafv );
324+ }
325+
326+ @ Override
327+ public CreateTestAccount setAccessToken (java .lang .String accessToken ) {
328+ return (CreateTestAccount ) super .setAccessToken (accessToken );
329+ }
330+
331+ @ Override
332+ public CreateTestAccount setAlt (java .lang .String alt ) {
333+ return (CreateTestAccount ) super .setAlt (alt );
334+ }
335+
336+ @ Override
337+ public CreateTestAccount setCallback (java .lang .String callback ) {
338+ return (CreateTestAccount ) super .setCallback (callback );
339+ }
340+
341+ @ Override
342+ public CreateTestAccount setFields (java .lang .String fields ) {
343+ return (CreateTestAccount ) super .setFields (fields );
344+ }
345+
346+ @ Override
347+ public CreateTestAccount setKey (java .lang .String key ) {
348+ return (CreateTestAccount ) super .setKey (key );
349+ }
350+
351+ @ Override
352+ public CreateTestAccount setOauthToken (java .lang .String oauthToken ) {
353+ return (CreateTestAccount ) super .setOauthToken (oauthToken );
354+ }
355+
356+ @ Override
357+ public CreateTestAccount setPrettyPrint (java .lang .Boolean prettyPrint ) {
358+ return (CreateTestAccount ) super .setPrettyPrint (prettyPrint );
359+ }
360+
361+ @ Override
362+ public CreateTestAccount setQuotaUser (java .lang .String quotaUser ) {
363+ return (CreateTestAccount ) super .setQuotaUser (quotaUser );
364+ }
365+
366+ @ Override
367+ public CreateTestAccount setUploadType (java .lang .String uploadType ) {
368+ return (CreateTestAccount ) super .setUploadType (uploadType );
369+ }
370+
371+ @ Override
372+ public CreateTestAccount setUploadProtocol (java .lang .String uploadProtocol ) {
373+ return (CreateTestAccount ) super .setUploadProtocol (uploadProtocol );
374+ }
375+
376+ /**
377+ * Required. The account resource name to create the test account under. Format:
378+ * accounts/{account}
379+ */
380+ @ com .google .api .client .util .Key
381+ private java .lang .String parent ;
382+
383+ /** Required. The account resource name to create the test account under. Format: accounts/{account}
384+ */
385+ public java .lang .String getParent () {
386+ return parent ;
387+ }
388+
389+ /**
390+ * Required. The account resource name to create the test account under. Format:
391+ * accounts/{account}
392+ */
393+ public CreateTestAccount setParent (java .lang .String parent ) {
394+ if (!getSuppressPatternChecks ()) {
395+ com .google .api .client .util .Preconditions .checkArgument (PARENT_PATTERN .matcher (parent ).matches (),
396+ "Parameter parent must conform to the pattern " +
397+ "^accounts/[^/]+$" );
398+ }
399+ this .parent = parent ;
400+ return this ;
401+ }
402+
403+ @ Override
404+ public CreateTestAccount set (String parameterName , Object value ) {
405+ return (CreateTestAccount ) super .set (parameterName , value );
406+ }
407+ }
257408 /**
258409 * Deletes the specified account regardless of its type: standalone, advanced account or sub-
259410 * account. Deleting an advanced account leads to the deletion of all of its sub-accounts. This also
0 commit comments