@@ -2598,6 +2598,138 @@ public Get set(String parameterName, Object value) {
25982598 return (Get ) super .set (parameterName , value );
25992599 }
26002600 }
2601+ /**
2602+ * Imports data to the cluster. Imperative only.
2603+ *
2604+ * Create a request for the method "clusters.import".
2605+ *
2606+ * This request holds the parameters needed by the alloydb server. After setting any optional
2607+ * parameters, call the {@link CloudAlloyDBAdminImport#execute()} method to invoke the remote
2608+ * operation.
2609+ *
2610+ * @param name Required. The resource name of the cluster.
2611+ * @param content the {@link com.google.api.services.alloydb.v1.model.ImportClusterRequest}
2612+ * @return the request
2613+ */
2614+ public CloudAlloyDBAdminImport alloydbImport (java .lang .String name , com .google .api .services .alloydb .v1 .model .ImportClusterRequest content ) throws java .io .IOException {
2615+ CloudAlloyDBAdminImport result = new CloudAlloyDBAdminImport (name , content );
2616+ initialize (result );
2617+ return result ;
2618+ }
2619+
2620+ public class CloudAlloyDBAdminImport extends CloudAlloyDBAdminRequest <com .google .api .services .alloydb .v1 .model .Operation > {
2621+
2622+ private static final String REST_PATH = "v1/{+name}:import" ;
2623+
2624+ private final java .util .regex .Pattern NAME_PATTERN =
2625+ java .util .regex .Pattern .compile ("^projects/[^/]+/locations/[^/]+/clusters/[^/]+$" );
2626+
2627+ /**
2628+ * Imports data to the cluster. Imperative only.
2629+ *
2630+ * Create a request for the method "clusters.import".
2631+ *
2632+ * This request holds the parameters needed by the the alloydb server. After setting any optional
2633+ * parameters, call the {@link CloudAlloyDBAdminImport#execute()} method to invoke the remote
2634+ * operation. <p> {@link CloudAlloyDBAdminImport#initialize(com.google.api.client.googleapis.servi
2635+ * ces.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
2636+ * invoking the constructor. </p>
2637+ *
2638+ * @param name Required. The resource name of the cluster.
2639+ * @param content the {@link com.google.api.services.alloydb.v1.model.ImportClusterRequest}
2640+ * @since 1.13
2641+ */
2642+ protected CloudAlloyDBAdminImport (java .lang .String name , com .google .api .services .alloydb .v1 .model .ImportClusterRequest content ) {
2643+ super (CloudAlloyDBAdmin .this , "POST" , REST_PATH , content , com .google .api .services .alloydb .v1 .model .Operation .class );
2644+ this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
2645+ if (!getSuppressPatternChecks ()) {
2646+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
2647+ "Parameter name must conform to the pattern " +
2648+ "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$" );
2649+ }
2650+ }
2651+
2652+ @ Override
2653+ public CloudAlloyDBAdminImport set$Xgafv (java .lang .String $Xgafv ) {
2654+ return (CloudAlloyDBAdminImport ) super .set$Xgafv ($Xgafv );
2655+ }
2656+
2657+ @ Override
2658+ public CloudAlloyDBAdminImport setAccessToken (java .lang .String accessToken ) {
2659+ return (CloudAlloyDBAdminImport ) super .setAccessToken (accessToken );
2660+ }
2661+
2662+ @ Override
2663+ public CloudAlloyDBAdminImport setAlt (java .lang .String alt ) {
2664+ return (CloudAlloyDBAdminImport ) super .setAlt (alt );
2665+ }
2666+
2667+ @ Override
2668+ public CloudAlloyDBAdminImport setCallback (java .lang .String callback ) {
2669+ return (CloudAlloyDBAdminImport ) super .setCallback (callback );
2670+ }
2671+
2672+ @ Override
2673+ public CloudAlloyDBAdminImport setFields (java .lang .String fields ) {
2674+ return (CloudAlloyDBAdminImport ) super .setFields (fields );
2675+ }
2676+
2677+ @ Override
2678+ public CloudAlloyDBAdminImport setKey (java .lang .String key ) {
2679+ return (CloudAlloyDBAdminImport ) super .setKey (key );
2680+ }
2681+
2682+ @ Override
2683+ public CloudAlloyDBAdminImport setOauthToken (java .lang .String oauthToken ) {
2684+ return (CloudAlloyDBAdminImport ) super .setOauthToken (oauthToken );
2685+ }
2686+
2687+ @ Override
2688+ public CloudAlloyDBAdminImport setPrettyPrint (java .lang .Boolean prettyPrint ) {
2689+ return (CloudAlloyDBAdminImport ) super .setPrettyPrint (prettyPrint );
2690+ }
2691+
2692+ @ Override
2693+ public CloudAlloyDBAdminImport setQuotaUser (java .lang .String quotaUser ) {
2694+ return (CloudAlloyDBAdminImport ) super .setQuotaUser (quotaUser );
2695+ }
2696+
2697+ @ Override
2698+ public CloudAlloyDBAdminImport setUploadType (java .lang .String uploadType ) {
2699+ return (CloudAlloyDBAdminImport ) super .setUploadType (uploadType );
2700+ }
2701+
2702+ @ Override
2703+ public CloudAlloyDBAdminImport setUploadProtocol (java .lang .String uploadProtocol ) {
2704+ return (CloudAlloyDBAdminImport ) super .setUploadProtocol (uploadProtocol );
2705+ }
2706+
2707+ /** Required. The resource name of the cluster. */
2708+ @ com .google .api .client .util .Key
2709+ private java .lang .String name ;
2710+
2711+ /** Required. The resource name of the cluster.
2712+ */
2713+ public java .lang .String getName () {
2714+ return name ;
2715+ }
2716+
2717+ /** Required. The resource name of the cluster. */
2718+ public CloudAlloyDBAdminImport setName (java .lang .String name ) {
2719+ if (!getSuppressPatternChecks ()) {
2720+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
2721+ "Parameter name must conform to the pattern " +
2722+ "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$" );
2723+ }
2724+ this .name = name ;
2725+ return this ;
2726+ }
2727+
2728+ @ Override
2729+ public CloudAlloyDBAdminImport set (String parameterName , Object value ) {
2730+ return (CloudAlloyDBAdminImport ) super .set (parameterName , value );
2731+ }
2732+ }
26012733 /**
26022734 * Lists Clusters in a given project and location.
26032735 *
0 commit comments