@@ -3411,6 +3411,210 @@ public Get set(String parameterName, Object value) {
3411
3411
return (Get) super.set(parameterName, value);
3412
3412
}
3413
3413
}
3414
+ /**
3415
+ * Lists Connections in a parent. Use SearchConnections to see all connections within an
3416
+ * organization.
3417
+ *
3418
+ * Create a request for the method "connections.list".
3419
+ *
3420
+ * This request holds the parameters needed by the dlp server. After setting any optional
3421
+ * parameters, call the {@link List#execute()} method to invoke the remote operation.
3422
+ *
3423
+ * @param parent Required. Resource name of the organization or project, for example
3424
+ * `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`.
3425
+ * @return the request
3426
+ */
3427
+ public List list(java.lang.String parent) throws java.io.IOException {
3428
+ List result = new List(parent);
3429
+ initialize(result);
3430
+ return result;
3431
+ }
3432
+
3433
+ public class List extends DLPRequest<com.google.api.services.dlp.v2.model.GooglePrivacyDlpV2ListConnectionsResponse> {
3434
+
3435
+ private static final String REST_PATH = "v2/{+parent}/connections";
3436
+
3437
+ private final java.util.regex.Pattern PARENT_PATTERN =
3438
+ java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$");
3439
+
3440
+ /**
3441
+ * Lists Connections in a parent. Use SearchConnections to see all connections within an
3442
+ * organization.
3443
+ *
3444
+ * Create a request for the method "connections.list".
3445
+ *
3446
+ * This request holds the parameters needed by the the dlp server. After setting any optional
3447
+ * parameters, call the {@link List#execute()} method to invoke the remote operation. <p> {@link
3448
+ * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
3449
+ * called to initialize this instance immediately after invoking the constructor. </p>
3450
+ *
3451
+ * @param parent Required. Resource name of the organization or project, for example
3452
+ * `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`.
3453
+ * @since 1.13
3454
+ */
3455
+ protected List(java.lang.String parent) {
3456
+ super(DLP.this, "GET", REST_PATH, null, com.google.api.services.dlp.v2.model.GooglePrivacyDlpV2ListConnectionsResponse.class);
3457
+ this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
3458
+ if (!getSuppressPatternChecks()) {
3459
+ com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
3460
+ "Parameter parent must conform to the pattern " +
3461
+ "^organizations/[^/]+/locations/[^/]+$");
3462
+ }
3463
+ }
3464
+
3465
+ @Override
3466
+ public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
3467
+ return super.executeUsingHead();
3468
+ }
3469
+
3470
+ @Override
3471
+ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
3472
+ return super.buildHttpRequestUsingHead();
3473
+ }
3474
+
3475
+ @Override
3476
+ public List set$Xgafv(java.lang.String $Xgafv) {
3477
+ return (List) super.set$Xgafv($Xgafv);
3478
+ }
3479
+
3480
+ @Override
3481
+ public List setAccessToken(java.lang.String accessToken) {
3482
+ return (List) super.setAccessToken(accessToken);
3483
+ }
3484
+
3485
+ @Override
3486
+ public List setAlt(java.lang.String alt) {
3487
+ return (List) super.setAlt(alt);
3488
+ }
3489
+
3490
+ @Override
3491
+ public List setCallback(java.lang.String callback) {
3492
+ return (List) super.setCallback(callback);
3493
+ }
3494
+
3495
+ @Override
3496
+ public List setFields(java.lang.String fields) {
3497
+ return (List) super.setFields(fields);
3498
+ }
3499
+
3500
+ @Override
3501
+ public List setKey(java.lang.String key) {
3502
+ return (List) super.setKey(key);
3503
+ }
3504
+
3505
+ @Override
3506
+ public List setOauthToken(java.lang.String oauthToken) {
3507
+ return (List) super.setOauthToken(oauthToken);
3508
+ }
3509
+
3510
+ @Override
3511
+ public List setPrettyPrint(java.lang.Boolean prettyPrint) {
3512
+ return (List) super.setPrettyPrint(prettyPrint);
3513
+ }
3514
+
3515
+ @Override
3516
+ public List setQuotaUser(java.lang.String quotaUser) {
3517
+ return (List) super.setQuotaUser(quotaUser);
3518
+ }
3519
+
3520
+ @Override
3521
+ public List setUploadType(java.lang.String uploadType) {
3522
+ return (List) super.setUploadType(uploadType);
3523
+ }
3524
+
3525
+ @Override
3526
+ public List setUploadProtocol(java.lang.String uploadProtocol) {
3527
+ return (List) super.setUploadProtocol(uploadProtocol);
3528
+ }
3529
+
3530
+ /**
3531
+ * Required. Resource name of the organization or project, for example
3532
+ * `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`.
3533
+ */
3534
+ @com.google.api.client.util.Key
3535
+ private java.lang.String parent;
3536
+
3537
+ /** Required. Resource name of the organization or project, for example
3538
+ `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`.
3539
+ */
3540
+ public java.lang.String getParent() {
3541
+ return parent;
3542
+ }
3543
+
3544
+ /**
3545
+ * Required. Resource name of the organization or project, for example
3546
+ * `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`.
3547
+ */
3548
+ public List setParent(java.lang.String parent) {
3549
+ if (!getSuppressPatternChecks()) {
3550
+ com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
3551
+ "Parameter parent must conform to the pattern " +
3552
+ "^organizations/[^/]+/locations/[^/]+$");
3553
+ }
3554
+ this.parent = parent;
3555
+ return this;
3556
+ }
3557
+
3558
+ /** Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR */
3559
+ @com.google.api.client.util.Key
3560
+ private java.lang.String filter;
3561
+
3562
+ /** Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR
3563
+ */
3564
+ public java.lang.String getFilter() {
3565
+ return filter;
3566
+ }
3567
+
3568
+ /** Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR */
3569
+ public List setFilter(java.lang.String filter) {
3570
+ this.filter = filter;
3571
+ return this;
3572
+ }
3573
+
3574
+ /** Optional. Number of results per page, max 1000. */
3575
+ @com.google.api.client.util.Key
3576
+ private java.lang.Integer pageSize;
3577
+
3578
+ /** Optional. Number of results per page, max 1000.
3579
+ */
3580
+ public java.lang.Integer getPageSize() {
3581
+ return pageSize;
3582
+ }
3583
+
3584
+ /** Optional. Number of results per page, max 1000. */
3585
+ public List setPageSize(java.lang.Integer pageSize) {
3586
+ this.pageSize = pageSize;
3587
+ return this;
3588
+ }
3589
+
3590
+ /**
3591
+ * Optional. Page token from a previous page to return the next set of results. If set,
3592
+ * all other request fields must match the original request.
3593
+ */
3594
+ @com.google.api.client.util.Key
3595
+ private java.lang.String pageToken;
3596
+
3597
+ /** Optional. Page token from a previous page to return the next set of results. If set, all other
3598
+ request fields must match the original request.
3599
+ */
3600
+ public java.lang.String getPageToken() {
3601
+ return pageToken;
3602
+ }
3603
+
3604
+ /**
3605
+ * Optional. Page token from a previous page to return the next set of results. If set,
3606
+ * all other request fields must match the original request.
3607
+ */
3608
+ public List setPageToken(java.lang.String pageToken) {
3609
+ this.pageToken = pageToken;
3610
+ return this;
3611
+ }
3612
+
3613
+ @Override
3614
+ public List set(String parameterName, Object value) {
3615
+ return (List) super.set(parameterName, value);
3616
+ }
3617
+ }
3414
3618
/**
3415
3619
* Update a Connection.
3416
3620
*
@@ -3558,8 +3762,8 @@ public Patch set(String parameterName, Object value) {
3558
3762
* This request holds the parameters needed by the dlp server. After setting any optional
3559
3763
* parameters, call the {@link Search#execute()} method to invoke the remote operation.
3560
3764
*
3561
- * @param parent Required. Parent name, typically an organization, without location. For example:
3562
- * `organizations/12345678 `.
3765
+ * @param parent Required. Resource name of the organization or project with a wildcard location, for example
3766
+ * `organizations/433245324/locations/-` or `projects/project-id/locations/- `.
3563
3767
* @return the request
3564
3768
*/
3565
3769
public Search search(java.lang.String parent) throws java.io.IOException {
@@ -3585,8 +3789,8 @@ public class Search extends DLPRequest<com.google.api.services.dlp.v2.model.Goog
3585
3789
* Search#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
3586
3790
* be called to initialize this instance immediately after invoking the constructor. </p>
3587
3791
*
3588
- * @param parent Required. Parent name, typically an organization, without location. For example:
3589
- * `organizations/12345678 `.
3792
+ * @param parent Required. Resource name of the organization or project with a wildcard location, for example
3793
+ * `organizations/433245324/locations/-` or `projects/project-id/locations/- `.
3590
3794
* @since 1.13
3591
3795
*/
3592
3796
protected Search(java.lang.String parent) {
@@ -3665,22 +3869,22 @@ public Search setUploadProtocol(java.lang.String uploadProtocol) {
3665
3869
}
3666
3870
3667
3871
/**
3668
- * Required. Parent name, typically an organization, without location. For example:
3669
- * `organizations/12345678 `.
3872
+ * Required. Resource name of the organization or project with a wildcard location, for
3873
+ * example `organizations/433245324/locations/-` or `projects/project-id/locations/- `.
3670
3874
*/
3671
3875
@com.google.api.client.util.Key
3672
3876
private java.lang.String parent;
3673
3877
3674
- /** Required. Parent name, typically an organization, without location. For example:
3675
- `organizations/12345678 `.
3878
+ /** Required. Resource name of the organization or project with a wildcard location, for example
3879
+ `organizations/433245324/locations/-` or `projects/project-id/locations/- `.
3676
3880
*/
3677
3881
public java.lang.String getParent() {
3678
3882
return parent;
3679
3883
}
3680
3884
3681
3885
/**
3682
- * Required. Parent name, typically an organization, without location. For example:
3683
- * `organizations/12345678 `.
3886
+ * Required. Resource name of the organization or project with a wildcard location, for
3887
+ * example `organizations/433245324/locations/-` or `projects/project-id/locations/- `.
3684
3888
*/
3685
3889
public Search setParent(java.lang.String parent) {
3686
3890
if (!getSuppressPatternChecks()) {
@@ -16844,14 +17048,16 @@ public Get set(String parameterName, Object value) {
16844
17048
}
16845
17049
}
16846
17050
/**
16847
- * Lists Connections in a parent.
17051
+ * Lists Connections in a parent. Use SearchConnections to see all connections within an
17052
+ * organization.
16848
17053
*
16849
17054
* Create a request for the method "connections.list".
16850
17055
*
16851
17056
* This request holds the parameters needed by the dlp server. After setting any optional
16852
17057
* parameters, call the {@link List#execute()} method to invoke the remote operation.
16853
17058
*
16854
- * @param parent Required. Parent name, for example: `projects/project-id/locations/global`.
17059
+ * @param parent Required. Resource name of the organization or project, for example
17060
+ * `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`.
16855
17061
* @return the request
16856
17062
*/
16857
17063
public List list(java.lang.String parent) throws java.io.IOException {
@@ -16868,7 +17074,8 @@ public class List extends DLPRequest<com.google.api.services.dlp.v2.model.Google
16868
17074
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
16869
17075
16870
17076
/**
16871
- * Lists Connections in a parent.
17077
+ * Lists Connections in a parent. Use SearchConnections to see all connections within an
17078
+ * organization.
16872
17079
*
16873
17080
* Create a request for the method "connections.list".
16874
17081
*
@@ -16877,7 +17084,8 @@ public class List extends DLPRequest<com.google.api.services.dlp.v2.model.Google
16877
17084
* List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
16878
17085
* called to initialize this instance immediately after invoking the constructor. </p>
16879
17086
*
16880
- * @param parent Required. Parent name, for example: `projects/project-id/locations/global`.
17087
+ * @param parent Required. Resource name of the organization or project, for example
17088
+ * `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`.
16881
17089
* @since 1.13
16882
17090
*/
16883
17091
protected List(java.lang.String parent) {
@@ -16955,17 +17163,24 @@ public List setUploadProtocol(java.lang.String uploadProtocol) {
16955
17163
return (List) super.setUploadProtocol(uploadProtocol);
16956
17164
}
16957
17165
16958
- /** Required. Parent name, for example: `projects/project-id/locations/global`. */
17166
+ /**
17167
+ * Required. Resource name of the organization or project, for example
17168
+ * `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`.
17169
+ */
16959
17170
@com.google.api.client.util.Key
16960
17171
private java.lang.String parent;
16961
17172
16962
- /** Required. Parent name, for example: `projects/project-id/locations/global`.
17173
+ /** Required. Resource name of the organization or project, for example
17174
+ `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`.
16963
17175
*/
16964
17176
public java.lang.String getParent() {
16965
17177
return parent;
16966
17178
}
16967
17179
16968
- /** Required. Parent name, for example: `projects/project-id/locations/global`. */
17180
+ /**
17181
+ * Required. Resource name of the organization or project, for example
17182
+ * `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`.
17183
+ */
16969
17184
public List setParent(java.lang.String parent) {
16970
17185
if (!getSuppressPatternChecks()) {
16971
17186
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
@@ -17183,8 +17398,8 @@ public Patch set(String parameterName, Object value) {
17183
17398
* This request holds the parameters needed by the dlp server. After setting any optional
17184
17399
* parameters, call the {@link Search#execute()} method to invoke the remote operation.
17185
17400
*
17186
- * @param parent Required. Parent name, typically an organization, without location. For example:
17187
- * `organizations/12345678 `.
17401
+ * @param parent Required. Resource name of the organization or project with a wildcard location, for example
17402
+ * `organizations/433245324/locations/-` or `projects/project-id/locations/- `.
17188
17403
* @return the request
17189
17404
*/
17190
17405
public Search search(java.lang.String parent) throws java.io.IOException {
@@ -17210,8 +17425,8 @@ public class Search extends DLPRequest<com.google.api.services.dlp.v2.model.Goog
17210
17425
* Search#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
17211
17426
* be called to initialize this instance immediately after invoking the constructor. </p>
17212
17427
*
17213
- * @param parent Required. Parent name, typically an organization, without location. For example:
17214
- * `organizations/12345678 `.
17428
+ * @param parent Required. Resource name of the organization or project with a wildcard location, for example
17429
+ * `organizations/433245324/locations/-` or `projects/project-id/locations/- `.
17215
17430
* @since 1.13
17216
17431
*/
17217
17432
protected Search(java.lang.String parent) {
@@ -17290,22 +17505,22 @@ public Search setUploadProtocol(java.lang.String uploadProtocol) {
17290
17505
}
17291
17506
17292
17507
/**
17293
- * Required. Parent name, typically an organization, without location. For example:
17294
- * `organizations/12345678 `.
17508
+ * Required. Resource name of the organization or project with a wildcard location, for
17509
+ * example `organizations/433245324/locations/-` or `projects/project-id/locations/- `.
17295
17510
*/
17296
17511
@com.google.api.client.util.Key
17297
17512
private java.lang.String parent;
17298
17513
17299
- /** Required. Parent name, typically an organization, without location. For example:
17300
- `organizations/12345678 `.
17514
+ /** Required. Resource name of the organization or project with a wildcard location, for example
17515
+ `organizations/433245324/locations/-` or `projects/project-id/locations/- `.
17301
17516
*/
17302
17517
public java.lang.String getParent() {
17303
17518
return parent;
17304
17519
}
17305
17520
17306
17521
/**
17307
- * Required. Parent name, typically an organization, without location. For example:
17308
- * `organizations/12345678 `.
17522
+ * Required. Resource name of the organization or project with a wildcard location, for
17523
+ * example `organizations/433245324/locations/-` or `projects/project-id/locations/- `.
17309
17524
*/
17310
17525
public Search setParent(java.lang.String parent) {
17311
17526
if (!getSuppressPatternChecks()) {
0 commit comments