Skip to content

Commit b2d9551

Browse files
1 parent a3df2b1 commit b2d9551

File tree

5 files changed

+275
-33
lines changed

5 files changed

+275
-33
lines changed

clients/google-api-services-dlp/v2/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-dlp</artifactId>
25-
<version>v2-rev20240707-2.0.0</version>
25+
<version>v2-rev20240721-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-dlp:v2-rev20240707-2.0.0'
38+
implementation 'com.google.apis:google-api-services-dlp:v2-rev20240721-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-dlp/v2/2.0.0/com/google/api/services/dlp/v2/DLP.java

Lines changed: 242 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3411,6 +3411,210 @@ public Get set(String parameterName, Object value) {
34113411
return (Get) super.set(parameterName, value);
34123412
}
34133413
}
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+
}
34143618
/**
34153619
* Update a Connection.
34163620
*
@@ -3558,8 +3762,8 @@ public Patch set(String parameterName, Object value) {
35583762
* This request holds the parameters needed by the dlp server. After setting any optional
35593763
* parameters, call the {@link Search#execute()} method to invoke the remote operation.
35603764
*
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/-`.
35633767
* @return the request
35643768
*/
35653769
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
35853789
* Search#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
35863790
* be called to initialize this instance immediately after invoking the constructor. </p>
35873791
*
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/-`.
35903794
* @since 1.13
35913795
*/
35923796
protected Search(java.lang.String parent) {
@@ -3665,22 +3869,22 @@ public Search setUploadProtocol(java.lang.String uploadProtocol) {
36653869
}
36663870

36673871
/**
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/-`.
36703874
*/
36713875
@com.google.api.client.util.Key
36723876
private java.lang.String parent;
36733877

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/-`.
36763880
*/
36773881
public java.lang.String getParent() {
36783882
return parent;
36793883
}
36803884

36813885
/**
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/-`.
36843888
*/
36853889
public Search setParent(java.lang.String parent) {
36863890
if (!getSuppressPatternChecks()) {
@@ -16844,14 +17048,16 @@ public Get set(String parameterName, Object value) {
1684417048
}
1684517049
}
1684617050
/**
16847-
* Lists Connections in a parent.
17051+
* Lists Connections in a parent. Use SearchConnections to see all connections within an
17052+
* organization.
1684817053
*
1684917054
* Create a request for the method "connections.list".
1685017055
*
1685117056
* This request holds the parameters needed by the dlp server. After setting any optional
1685217057
* parameters, call the {@link List#execute()} method to invoke the remote operation.
1685317058
*
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`.
1685517061
* @return the request
1685617062
*/
1685717063
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
1686817074
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
1686917075

1687017076
/**
16871-
* Lists Connections in a parent.
17077+
* Lists Connections in a parent. Use SearchConnections to see all connections within an
17078+
* organization.
1687217079
*
1687317080
* Create a request for the method "connections.list".
1687417081
*
@@ -16877,7 +17084,8 @@ public class List extends DLPRequest<com.google.api.services.dlp.v2.model.Google
1687717084
* List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
1687817085
* called to initialize this instance immediately after invoking the constructor. </p>
1687917086
*
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`.
1688117089
* @since 1.13
1688217090
*/
1688317091
protected List(java.lang.String parent) {
@@ -16955,17 +17163,24 @@ public List setUploadProtocol(java.lang.String uploadProtocol) {
1695517163
return (List) super.setUploadProtocol(uploadProtocol);
1695617164
}
1695717165

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+
*/
1695917170
@com.google.api.client.util.Key
1696017171
private java.lang.String parent;
1696117172

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`.
1696317175
*/
1696417176
public java.lang.String getParent() {
1696517177
return parent;
1696617178
}
1696717179

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+
*/
1696917184
public List setParent(java.lang.String parent) {
1697017185
if (!getSuppressPatternChecks()) {
1697117186
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
@@ -17183,8 +17398,8 @@ public Patch set(String parameterName, Object value) {
1718317398
* This request holds the parameters needed by the dlp server. After setting any optional
1718417399
* parameters, call the {@link Search#execute()} method to invoke the remote operation.
1718517400
*
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/-`.
1718817403
* @return the request
1718917404
*/
1719017405
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
1721017425
* Search#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
1721117426
* be called to initialize this instance immediately after invoking the constructor. </p>
1721217427
*
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/-`.
1721517430
* @since 1.13
1721617431
*/
1721717432
protected Search(java.lang.String parent) {
@@ -17290,22 +17505,22 @@ public Search setUploadProtocol(java.lang.String uploadProtocol) {
1729017505
}
1729117506

1729217507
/**
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/-`.
1729517510
*/
1729617511
@com.google.api.client.util.Key
1729717512
private java.lang.String parent;
1729817513

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/-`.
1730117516
*/
1730217517
public java.lang.String getParent() {
1730317518
return parent;
1730417519
}
1730517520

1730617521
/**
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/-`.
1730917524
*/
1731017525
public Search setParent(java.lang.String parent) {
1731117526
if (!getSuppressPatternChecks()) {

0 commit comments

Comments
 (0)