@@ -8032,6 +8032,379 @@ public Patch set(String parameterName, Object value) {
8032
8032
}
8033
8033
}
8034
8034
8035
+ }
8036
+ /**
8037
+ * An accessor for creating requests from the Relations collection.
8038
+ *
8039
+ * <p>The typical use is:</p>
8040
+ * <pre>
8041
+ * {@code MigrationCenterAPI migrationcenter = new MigrationCenterAPI(...);}
8042
+ * {@code MigrationCenterAPI.Relations.List request = migrationcenter.relations().list(parameters ...)}
8043
+ * </pre>
8044
+ *
8045
+ * @return the resource collection
8046
+ */
8047
+ public Relations relations () {
8048
+ return new Relations ();
8049
+ }
8050
+
8051
+ /**
8052
+ * The "relations" collection of methods.
8053
+ */
8054
+ public class Relations {
8055
+
8056
+ /**
8057
+ * Gets the details of an relation.
8058
+ *
8059
+ * Create a request for the method "relations.get".
8060
+ *
8061
+ * This request holds the parameters needed by the migrationcenter server. After setting any
8062
+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
8063
+ *
8064
+ * @param name Required. Name of the resource.
8065
+ * @return the request
8066
+ */
8067
+ public Get get (java .lang .String name ) throws java .io .IOException {
8068
+ Get result = new Get (name );
8069
+ initialize (result );
8070
+ return result ;
8071
+ }
8072
+
8073
+ public class Get extends MigrationCenterAPIRequest <com .google .api .services .migrationcenter .v1 .model .Relation > {
8074
+
8075
+ private static final String REST_PATH = "v1/{+name}" ;
8076
+
8077
+ private final java .util .regex .Pattern NAME_PATTERN =
8078
+ java .util .regex .Pattern .compile ("^projects/[^/]+/locations/[^/]+/relations/[^/]+$" );
8079
+
8080
+ /**
8081
+ * Gets the details of an relation.
8082
+ *
8083
+ * Create a request for the method "relations.get".
8084
+ *
8085
+ * This request holds the parameters needed by the the migrationcenter server. After setting any
8086
+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. <p>
8087
+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
8088
+ * must be called to initialize this instance immediately after invoking the constructor. </p>
8089
+ *
8090
+ * @param name Required. Name of the resource.
8091
+ * @since 1.13
8092
+ */
8093
+ protected Get (java .lang .String name ) {
8094
+ super (MigrationCenterAPI .this , "GET" , REST_PATH , null , com .google .api .services .migrationcenter .v1 .model .Relation .class );
8095
+ this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
8096
+ if (!getSuppressPatternChecks ()) {
8097
+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
8098
+ "Parameter name must conform to the pattern " +
8099
+ "^projects/[^/]+/locations/[^/]+/relations/[^/]+$" );
8100
+ }
8101
+ }
8102
+
8103
+ @ Override
8104
+ public com .google .api .client .http .HttpResponse executeUsingHead () throws java .io .IOException {
8105
+ return super .executeUsingHead ();
8106
+ }
8107
+
8108
+ @ Override
8109
+ public com .google .api .client .http .HttpRequest buildHttpRequestUsingHead () throws java .io .IOException {
8110
+ return super .buildHttpRequestUsingHead ();
8111
+ }
8112
+
8113
+ @ Override
8114
+ public Get set$Xgafv (java .lang .String $Xgafv ) {
8115
+ return (Get ) super .set$Xgafv ($Xgafv );
8116
+ }
8117
+
8118
+ @ Override
8119
+ public Get setAccessToken (java .lang .String accessToken ) {
8120
+ return (Get ) super .setAccessToken (accessToken );
8121
+ }
8122
+
8123
+ @ Override
8124
+ public Get setAlt (java .lang .String alt ) {
8125
+ return (Get ) super .setAlt (alt );
8126
+ }
8127
+
8128
+ @ Override
8129
+ public Get setCallback (java .lang .String callback ) {
8130
+ return (Get ) super .setCallback (callback );
8131
+ }
8132
+
8133
+ @ Override
8134
+ public Get setFields (java .lang .String fields ) {
8135
+ return (Get ) super .setFields (fields );
8136
+ }
8137
+
8138
+ @ Override
8139
+ public Get setKey (java .lang .String key ) {
8140
+ return (Get ) super .setKey (key );
8141
+ }
8142
+
8143
+ @ Override
8144
+ public Get setOauthToken (java .lang .String oauthToken ) {
8145
+ return (Get ) super .setOauthToken (oauthToken );
8146
+ }
8147
+
8148
+ @ Override
8149
+ public Get setPrettyPrint (java .lang .Boolean prettyPrint ) {
8150
+ return (Get ) super .setPrettyPrint (prettyPrint );
8151
+ }
8152
+
8153
+ @ Override
8154
+ public Get setQuotaUser (java .lang .String quotaUser ) {
8155
+ return (Get ) super .setQuotaUser (quotaUser );
8156
+ }
8157
+
8158
+ @ Override
8159
+ public Get setUploadType (java .lang .String uploadType ) {
8160
+ return (Get ) super .setUploadType (uploadType );
8161
+ }
8162
+
8163
+ @ Override
8164
+ public Get setUploadProtocol (java .lang .String uploadProtocol ) {
8165
+ return (Get ) super .setUploadProtocol (uploadProtocol );
8166
+ }
8167
+
8168
+ /** Required. Name of the resource. */
8169
+ @ com .google .api .client .util .Key
8170
+ private java .lang .String name ;
8171
+
8172
+ /** Required. Name of the resource.
8173
+ */
8174
+ public java .lang .String getName () {
8175
+ return name ;
8176
+ }
8177
+
8178
+ /** Required. Name of the resource. */
8179
+ public Get setName (java .lang .String name ) {
8180
+ if (!getSuppressPatternChecks ()) {
8181
+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
8182
+ "Parameter name must conform to the pattern " +
8183
+ "^projects/[^/]+/locations/[^/]+/relations/[^/]+$" );
8184
+ }
8185
+ this .name = name ;
8186
+ return this ;
8187
+ }
8188
+
8189
+ @ Override
8190
+ public Get set (String parameterName , Object value ) {
8191
+ return (Get ) super .set (parameterName , value );
8192
+ }
8193
+ }
8194
+ /**
8195
+ * Lists all the relations in a given project and location.
8196
+ *
8197
+ * Create a request for the method "relations.list".
8198
+ *
8199
+ * This request holds the parameters needed by the migrationcenter server. After setting any
8200
+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
8201
+ *
8202
+ * @param parent Required. Parent value for `ListRelationsRequest`.
8203
+ * @return the request
8204
+ */
8205
+ public List list (java .lang .String parent ) throws java .io .IOException {
8206
+ List result = new List (parent );
8207
+ initialize (result );
8208
+ return result ;
8209
+ }
8210
+
8211
+ public class List extends MigrationCenterAPIRequest <com .google .api .services .migrationcenter .v1 .model .ListRelationsResponse > {
8212
+
8213
+ private static final String REST_PATH = "v1/{+parent}/relations" ;
8214
+
8215
+ private final java .util .regex .Pattern PARENT_PATTERN =
8216
+ java .util .regex .Pattern .compile ("^projects/[^/]+/locations/[^/]+$" );
8217
+
8218
+ /**
8219
+ * Lists all the relations in a given project and location.
8220
+ *
8221
+ * Create a request for the method "relations.list".
8222
+ *
8223
+ * This request holds the parameters needed by the the migrationcenter server. After setting any
8224
+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation. <p>
8225
+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
8226
+ * must be called to initialize this instance immediately after invoking the constructor. </p>
8227
+ *
8228
+ * @param parent Required. Parent value for `ListRelationsRequest`.
8229
+ * @since 1.13
8230
+ */
8231
+ protected List (java .lang .String parent ) {
8232
+ super (MigrationCenterAPI .this , "GET" , REST_PATH , null , com .google .api .services .migrationcenter .v1 .model .ListRelationsResponse .class );
8233
+ this .parent = com .google .api .client .util .Preconditions .checkNotNull (parent , "Required parameter parent must be specified." );
8234
+ if (!getSuppressPatternChecks ()) {
8235
+ com .google .api .client .util .Preconditions .checkArgument (PARENT_PATTERN .matcher (parent ).matches (),
8236
+ "Parameter parent must conform to the pattern " +
8237
+ "^projects/[^/]+/locations/[^/]+$" );
8238
+ }
8239
+ }
8240
+
8241
+ @ Override
8242
+ public com .google .api .client .http .HttpResponse executeUsingHead () throws java .io .IOException {
8243
+ return super .executeUsingHead ();
8244
+ }
8245
+
8246
+ @ Override
8247
+ public com .google .api .client .http .HttpRequest buildHttpRequestUsingHead () throws java .io .IOException {
8248
+ return super .buildHttpRequestUsingHead ();
8249
+ }
8250
+
8251
+ @ Override
8252
+ public List set$Xgafv (java .lang .String $Xgafv ) {
8253
+ return (List ) super .set$Xgafv ($Xgafv );
8254
+ }
8255
+
8256
+ @ Override
8257
+ public List setAccessToken (java .lang .String accessToken ) {
8258
+ return (List ) super .setAccessToken (accessToken );
8259
+ }
8260
+
8261
+ @ Override
8262
+ public List setAlt (java .lang .String alt ) {
8263
+ return (List ) super .setAlt (alt );
8264
+ }
8265
+
8266
+ @ Override
8267
+ public List setCallback (java .lang .String callback ) {
8268
+ return (List ) super .setCallback (callback );
8269
+ }
8270
+
8271
+ @ Override
8272
+ public List setFields (java .lang .String fields ) {
8273
+ return (List ) super .setFields (fields );
8274
+ }
8275
+
8276
+ @ Override
8277
+ public List setKey (java .lang .String key ) {
8278
+ return (List ) super .setKey (key );
8279
+ }
8280
+
8281
+ @ Override
8282
+ public List setOauthToken (java .lang .String oauthToken ) {
8283
+ return (List ) super .setOauthToken (oauthToken );
8284
+ }
8285
+
8286
+ @ Override
8287
+ public List setPrettyPrint (java .lang .Boolean prettyPrint ) {
8288
+ return (List ) super .setPrettyPrint (prettyPrint );
8289
+ }
8290
+
8291
+ @ Override
8292
+ public List setQuotaUser (java .lang .String quotaUser ) {
8293
+ return (List ) super .setQuotaUser (quotaUser );
8294
+ }
8295
+
8296
+ @ Override
8297
+ public List setUploadType (java .lang .String uploadType ) {
8298
+ return (List ) super .setUploadType (uploadType );
8299
+ }
8300
+
8301
+ @ Override
8302
+ public List setUploadProtocol (java .lang .String uploadProtocol ) {
8303
+ return (List ) super .setUploadProtocol (uploadProtocol );
8304
+ }
8305
+
8306
+ /** Required. Parent value for `ListRelationsRequest`. */
8307
+ @ com .google .api .client .util .Key
8308
+ private java .lang .String parent ;
8309
+
8310
+ /** Required. Parent value for `ListRelationsRequest`.
8311
+ */
8312
+ public java .lang .String getParent () {
8313
+ return parent ;
8314
+ }
8315
+
8316
+ /** Required. Parent value for `ListRelationsRequest`. */
8317
+ public List setParent (java .lang .String parent ) {
8318
+ if (!getSuppressPatternChecks ()) {
8319
+ com .google .api .client .util .Preconditions .checkArgument (PARENT_PATTERN .matcher (parent ).matches (),
8320
+ "Parameter parent must conform to the pattern " +
8321
+ "^projects/[^/]+/locations/[^/]+$" );
8322
+ }
8323
+ this .parent = parent ;
8324
+ return this ;
8325
+ }
8326
+
8327
+ /** Optional. Filtering results. */
8328
+ @ com .google .api .client .util .Key
8329
+ private java .lang .String filter ;
8330
+
8331
+ /** Optional. Filtering results.
8332
+ */
8333
+ public java .lang .String getFilter () {
8334
+ return filter ;
8335
+ }
8336
+
8337
+ /** Optional. Filtering results. */
8338
+ public List setFilter (java .lang .String filter ) {
8339
+ this .filter = filter ;
8340
+ return this ;
8341
+ }
8342
+
8343
+ /**
8344
+ * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
8345
+ */
8346
+ @ com .google .api .client .util .Key
8347
+ private java .lang .String orderBy ;
8348
+
8349
+ /** Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
8350
+ */
8351
+ public java .lang .String getOrderBy () {
8352
+ return orderBy ;
8353
+ }
8354
+
8355
+ /**
8356
+ * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
8357
+ */
8358
+ public List setOrderBy (java .lang .String orderBy ) {
8359
+ this .orderBy = orderBy ;
8360
+ return this ;
8361
+ }
8362
+
8363
+ /**
8364
+ * Optional. Requested page size. Server may return fewer items than requested. If
8365
+ * unspecified, server will pick an appropriate default.
8366
+ */
8367
+ @ com .google .api .client .util .Key
8368
+ private java .lang .Integer pageSize ;
8369
+
8370
+ /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server
8371
+ will pick an appropriate default.
8372
+ */
8373
+ public java .lang .Integer getPageSize () {
8374
+ return pageSize ;
8375
+ }
8376
+
8377
+ /**
8378
+ * Optional. Requested page size. Server may return fewer items than requested. If
8379
+ * unspecified, server will pick an appropriate default.
8380
+ */
8381
+ public List setPageSize (java .lang .Integer pageSize ) {
8382
+ this .pageSize = pageSize ;
8383
+ return this ;
8384
+ }
8385
+
8386
+ /** Optional. A token identifying a page of results the server should return. */
8387
+ @ com .google .api .client .util .Key
8388
+ private java .lang .String pageToken ;
8389
+
8390
+ /** Optional. A token identifying a page of results the server should return.
8391
+ */
8392
+ public java .lang .String getPageToken () {
8393
+ return pageToken ;
8394
+ }
8395
+
8396
+ /** Optional. A token identifying a page of results the server should return. */
8397
+ public List setPageToken (java .lang .String pageToken ) {
8398
+ this .pageToken = pageToken ;
8399
+ return this ;
8400
+ }
8401
+
8402
+ @ Override
8403
+ public List set (String parameterName , Object value ) {
8404
+ return (List ) super .set (parameterName , value );
8405
+ }
8406
+ }
8407
+
8035
8408
}
8036
8409
/**
8037
8410
* An accessor for creating requests from the ReportConfigs collection.
0 commit comments