@@ -5693,289 +5693,6 @@ public UpgradeAppliance set(String parameterName, Object value) {
5693
5693
}
5694
5694
}
5695
5695
5696
- }
5697
- /**
5698
- * An accessor for creating requests from the DiskMigrationJobs collection.
5699
- *
5700
- * <p>The typical use is:</p>
5701
- * <pre>
5702
- * {@code VMMigrationService vmmigration = new VMMigrationService(...);}
5703
- * {@code VMMigrationService.DiskMigrationJobs.List request = vmmigration.diskMigrationJobs().list(parameters ...)}
5704
- * </pre>
5705
- *
5706
- * @return the resource collection
5707
- */
5708
- public DiskMigrationJobs diskMigrationJobs () {
5709
- return new DiskMigrationJobs ();
5710
- }
5711
-
5712
- /**
5713
- * The "diskMigrationJobs" collection of methods.
5714
- */
5715
- public class DiskMigrationJobs {
5716
-
5717
- /**
5718
- * Cancels the disk migration job.
5719
- *
5720
- * Create a request for the method "diskMigrationJobs.cancel".
5721
- *
5722
- * This request holds the parameters needed by the vmmigration server. After setting any optional
5723
- * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
5724
- *
5725
- * @param name Required. The name of the DiskMigrationJob.
5726
- * @param content the {@link com.google.api.services.vmmigration.v1.model.CancelDiskMigrationJobRequest}
5727
- * @return the request
5728
- */
5729
- public Cancel cancel (java .lang .String name , com .google .api .services .vmmigration .v1 .model .CancelDiskMigrationJobRequest content ) throws java .io .IOException {
5730
- Cancel result = new Cancel (name , content );
5731
- initialize (result );
5732
- return result ;
5733
- }
5734
-
5735
- public class Cancel extends VMMigrationServiceRequest <com .google .api .services .vmmigration .v1 .model .Operation > {
5736
-
5737
- private static final String REST_PATH = "v1/{+name}:cancel" ;
5738
-
5739
- private final java .util .regex .Pattern NAME_PATTERN =
5740
- java .util .regex .Pattern .compile ("^projects/[^/]+/locations/[^/]+/sources/[^/]+/diskMigrationJobs/[^/]+$" );
5741
-
5742
- /**
5743
- * Cancels the disk migration job.
5744
- *
5745
- * Create a request for the method "diskMigrationJobs.cancel".
5746
- *
5747
- * This request holds the parameters needed by the the vmmigration server. After setting any
5748
- * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
5749
- * <p> {@link
5750
- * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
5751
- * be called to initialize this instance immediately after invoking the constructor. </p>
5752
- *
5753
- * @param name Required. The name of the DiskMigrationJob.
5754
- * @param content the {@link com.google.api.services.vmmigration.v1.model.CancelDiskMigrationJobRequest}
5755
- * @since 1.13
5756
- */
5757
- protected Cancel (java .lang .String name , com .google .api .services .vmmigration .v1 .model .CancelDiskMigrationJobRequest content ) {
5758
- super (VMMigrationService .this , "POST" , REST_PATH , content , com .google .api .services .vmmigration .v1 .model .Operation .class );
5759
- this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
5760
- if (!getSuppressPatternChecks ()) {
5761
- com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
5762
- "Parameter name must conform to the pattern " +
5763
- "^projects/[^/]+/locations/[^/]+/sources/[^/]+/diskMigrationJobs/[^/]+$" );
5764
- }
5765
- }
5766
-
5767
- @ Override
5768
- public Cancel set$Xgafv (java .lang .String $Xgafv ) {
5769
- return (Cancel ) super .set$Xgafv ($Xgafv );
5770
- }
5771
-
5772
- @ Override
5773
- public Cancel setAccessToken (java .lang .String accessToken ) {
5774
- return (Cancel ) super .setAccessToken (accessToken );
5775
- }
5776
-
5777
- @ Override
5778
- public Cancel setAlt (java .lang .String alt ) {
5779
- return (Cancel ) super .setAlt (alt );
5780
- }
5781
-
5782
- @ Override
5783
- public Cancel setCallback (java .lang .String callback ) {
5784
- return (Cancel ) super .setCallback (callback );
5785
- }
5786
-
5787
- @ Override
5788
- public Cancel setFields (java .lang .String fields ) {
5789
- return (Cancel ) super .setFields (fields );
5790
- }
5791
-
5792
- @ Override
5793
- public Cancel setKey (java .lang .String key ) {
5794
- return (Cancel ) super .setKey (key );
5795
- }
5796
-
5797
- @ Override
5798
- public Cancel setOauthToken (java .lang .String oauthToken ) {
5799
- return (Cancel ) super .setOauthToken (oauthToken );
5800
- }
5801
-
5802
- @ Override
5803
- public Cancel setPrettyPrint (java .lang .Boolean prettyPrint ) {
5804
- return (Cancel ) super .setPrettyPrint (prettyPrint );
5805
- }
5806
-
5807
- @ Override
5808
- public Cancel setQuotaUser (java .lang .String quotaUser ) {
5809
- return (Cancel ) super .setQuotaUser (quotaUser );
5810
- }
5811
-
5812
- @ Override
5813
- public Cancel setUploadType (java .lang .String uploadType ) {
5814
- return (Cancel ) super .setUploadType (uploadType );
5815
- }
5816
-
5817
- @ Override
5818
- public Cancel setUploadProtocol (java .lang .String uploadProtocol ) {
5819
- return (Cancel ) super .setUploadProtocol (uploadProtocol );
5820
- }
5821
-
5822
- /** Required. The name of the DiskMigrationJob. */
5823
- @ com .google .api .client .util .Key
5824
- private java .lang .String name ;
5825
-
5826
- /** Required. The name of the DiskMigrationJob.
5827
- */
5828
- public java .lang .String getName () {
5829
- return name ;
5830
- }
5831
-
5832
- /** Required. The name of the DiskMigrationJob. */
5833
- public Cancel setName (java .lang .String name ) {
5834
- if (!getSuppressPatternChecks ()) {
5835
- com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
5836
- "Parameter name must conform to the pattern " +
5837
- "^projects/[^/]+/locations/[^/]+/sources/[^/]+/diskMigrationJobs/[^/]+$" );
5838
- }
5839
- this .name = name ;
5840
- return this ;
5841
- }
5842
-
5843
- @ Override
5844
- public Cancel set (String parameterName , Object value ) {
5845
- return (Cancel ) super .set (parameterName , value );
5846
- }
5847
- }
5848
- /**
5849
- * Runs the disk migration job.
5850
- *
5851
- * Create a request for the method "diskMigrationJobs.run".
5852
- *
5853
- * This request holds the parameters needed by the vmmigration server. After setting any optional
5854
- * parameters, call the {@link Run#execute()} method to invoke the remote operation.
5855
- *
5856
- * @param name Required. The name of the DiskMigrationJob.
5857
- * @param content the {@link com.google.api.services.vmmigration.v1.model.RunDiskMigrationJobRequest}
5858
- * @return the request
5859
- */
5860
- public Run run (java .lang .String name , com .google .api .services .vmmigration .v1 .model .RunDiskMigrationJobRequest content ) throws java .io .IOException {
5861
- Run result = new Run (name , content );
5862
- initialize (result );
5863
- return result ;
5864
- }
5865
-
5866
- public class Run extends VMMigrationServiceRequest <com .google .api .services .vmmigration .v1 .model .Operation > {
5867
-
5868
- private static final String REST_PATH = "v1/{+name}:run" ;
5869
-
5870
- private final java .util .regex .Pattern NAME_PATTERN =
5871
- java .util .regex .Pattern .compile ("^projects/[^/]+/locations/[^/]+/sources/[^/]+/diskMigrationJobs/[^/]+$" );
5872
-
5873
- /**
5874
- * Runs the disk migration job.
5875
- *
5876
- * Create a request for the method "diskMigrationJobs.run".
5877
- *
5878
- * This request holds the parameters needed by the the vmmigration server. After setting any
5879
- * optional parameters, call the {@link Run#execute()} method to invoke the remote operation. <p>
5880
- * {@link Run#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
5881
- * must be called to initialize this instance immediately after invoking the constructor. </p>
5882
- *
5883
- * @param name Required. The name of the DiskMigrationJob.
5884
- * @param content the {@link com.google.api.services.vmmigration.v1.model.RunDiskMigrationJobRequest}
5885
- * @since 1.13
5886
- */
5887
- protected Run (java .lang .String name , com .google .api .services .vmmigration .v1 .model .RunDiskMigrationJobRequest content ) {
5888
- super (VMMigrationService .this , "POST" , REST_PATH , content , com .google .api .services .vmmigration .v1 .model .Operation .class );
5889
- this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
5890
- if (!getSuppressPatternChecks ()) {
5891
- com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
5892
- "Parameter name must conform to the pattern " +
5893
- "^projects/[^/]+/locations/[^/]+/sources/[^/]+/diskMigrationJobs/[^/]+$" );
5894
- }
5895
- }
5896
-
5897
- @ Override
5898
- public Run set$Xgafv (java .lang .String $Xgafv ) {
5899
- return (Run ) super .set$Xgafv ($Xgafv );
5900
- }
5901
-
5902
- @ Override
5903
- public Run setAccessToken (java .lang .String accessToken ) {
5904
- return (Run ) super .setAccessToken (accessToken );
5905
- }
5906
-
5907
- @ Override
5908
- public Run setAlt (java .lang .String alt ) {
5909
- return (Run ) super .setAlt (alt );
5910
- }
5911
-
5912
- @ Override
5913
- public Run setCallback (java .lang .String callback ) {
5914
- return (Run ) super .setCallback (callback );
5915
- }
5916
-
5917
- @ Override
5918
- public Run setFields (java .lang .String fields ) {
5919
- return (Run ) super .setFields (fields );
5920
- }
5921
-
5922
- @ Override
5923
- public Run setKey (java .lang .String key ) {
5924
- return (Run ) super .setKey (key );
5925
- }
5926
-
5927
- @ Override
5928
- public Run setOauthToken (java .lang .String oauthToken ) {
5929
- return (Run ) super .setOauthToken (oauthToken );
5930
- }
5931
-
5932
- @ Override
5933
- public Run setPrettyPrint (java .lang .Boolean prettyPrint ) {
5934
- return (Run ) super .setPrettyPrint (prettyPrint );
5935
- }
5936
-
5937
- @ Override
5938
- public Run setQuotaUser (java .lang .String quotaUser ) {
5939
- return (Run ) super .setQuotaUser (quotaUser );
5940
- }
5941
-
5942
- @ Override
5943
- public Run setUploadType (java .lang .String uploadType ) {
5944
- return (Run ) super .setUploadType (uploadType );
5945
- }
5946
-
5947
- @ Override
5948
- public Run setUploadProtocol (java .lang .String uploadProtocol ) {
5949
- return (Run ) super .setUploadProtocol (uploadProtocol );
5950
- }
5951
-
5952
- /** Required. The name of the DiskMigrationJob. */
5953
- @ com .google .api .client .util .Key
5954
- private java .lang .String name ;
5955
-
5956
- /** Required. The name of the DiskMigrationJob.
5957
- */
5958
- public java .lang .String getName () {
5959
- return name ;
5960
- }
5961
-
5962
- /** Required. The name of the DiskMigrationJob. */
5963
- public Run setName (java .lang .String name ) {
5964
- if (!getSuppressPatternChecks ()) {
5965
- com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
5966
- "Parameter name must conform to the pattern " +
5967
- "^projects/[^/]+/locations/[^/]+/sources/[^/]+/diskMigrationJobs/[^/]+$" );
5968
- }
5969
- this .name = name ;
5970
- return this ;
5971
- }
5972
-
5973
- @ Override
5974
- public Run set (String parameterName , Object value ) {
5975
- return (Run ) super .set (parameterName , value );
5976
- }
5977
- }
5978
-
5979
5696
}
5980
5697
/**
5981
5698
* An accessor for creating requests from the MigratingVms collection.
0 commit comments