Skip to content

Commit 3ad6e7d

Browse files
1 parent db160df commit 3ad6e7d

File tree

7 files changed

+204
-36
lines changed

7 files changed

+204
-36
lines changed

clients/google-api-services-artifactregistry/v1/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-artifactregistry</artifactId>
25-
<version>v1-rev20241010-2.0.0</version>
25+
<version>v1-rev20241011-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-artifactregistry:v1-rev20241010-2.0.0'
38+
implementation 'com.google.apis:google-api-services-artifactregistry:v1-rev20241011-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-artifactregistry/v1/2.0.0/com/google/api/services/artifactregistry/v1/ArtifactRegistry.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10122,8 +10122,8 @@ public List set(String parameterName, Object value) {
1012210122
* This request holds the parameters needed by the artifactregistry server. After setting any
1012310123
* optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
1012410124
*
10125-
* @param name The name of the rule, for example: "projects/p1/locations/us-
10126-
* central1/repositories/repo1/rules/rule1".
10125+
* @param name The name of the rule, for example: `projects/p1/locations/us-
10126+
* central1/repositories/repo1/rules/rule1`.
1012710127
* @param content the {@link com.google.api.services.artifactregistry.v1.model.GoogleDevtoolsArtifactregistryV1Rule}
1012810128
* @return the request
1012910129
*/
@@ -10151,8 +10151,8 @@ public class Patch extends ArtifactRegistryRequest<com.google.api.services.artif
1015110151
* Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
1015210152
* be called to initialize this instance immediately after invoking the constructor. </p>
1015310153
*
10154-
* @param name The name of the rule, for example: "projects/p1/locations/us-
10155-
* central1/repositories/repo1/rules/rule1".
10154+
* @param name The name of the rule, for example: `projects/p1/locations/us-
10155+
* central1/repositories/repo1/rules/rule1`.
1015610156
* @param content the {@link com.google.api.services.artifactregistry.v1.model.GoogleDevtoolsArtifactregistryV1Rule}
1015710157
* @since 1.13
1015810158
*/
@@ -10222,22 +10222,22 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) {
1022210222
}
1022310223

1022410224
/**
10225-
* The name of the rule, for example: "projects/p1/locations/us-
10226-
* central1/repositories/repo1/rules/rule1".
10225+
* The name of the rule, for example: `projects/p1/locations/us-
10226+
* central1/repositories/repo1/rules/rule1`.
1022710227
*/
1022810228
@com.google.api.client.util.Key
1022910229
private java.lang.String name;
1023010230

10231-
/** The name of the rule, for example: "projects/p1/locations/us-
10232-
central1/repositories/repo1/rules/rule1".
10231+
/** The name of the rule, for example: `projects/p1/locations/us-
10232+
central1/repositories/repo1/rules/rule1`.
1023310233
*/
1023410234
public java.lang.String getName() {
1023510235
return name;
1023610236
}
1023710237

1023810238
/**
10239-
* The name of the rule, for example: "projects/p1/locations/us-
10240-
* central1/repositories/repo1/rules/rule1".
10239+
* The name of the rule, for example: `projects/p1/locations/us-
10240+
* central1/repositories/repo1/rules/rule1`.
1024110241
*/
1024210242
public Patch setName(java.lang.String name) {
1024310243
if (!getSuppressPatternChecks()) {

clients/google-api-services-artifactregistry/v1/2.0.0/com/google/api/services/artifactregistry/v1/model/GoogleDevtoolsArtifactregistryV1Rule.java

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
package com.google.api.services.artifactregistry.v1.model;
1818

1919
/**
20-
* A Rule applies to repository or package level. It defines the deny or allow action of the
21-
* operation when the conditions in the rule are met.
20+
* A rule defines the deny or allow action of the operation it applies to and the conditions
21+
* required for the rule to apply. You can set one rule for an entire repository and one rule for
22+
* each package within.
2223
*
2324
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2425
* transmitted over HTTP when working with the Artifact Registry API. For a detailed explanation
@@ -32,23 +33,23 @@
3233
public final class GoogleDevtoolsArtifactregistryV1Rule extends com.google.api.client.json.GenericJson {
3334

3435
/**
35-
* The action this rule makes.
36+
* The action this rule takes.
3637
* The value may be {@code null}.
3738
*/
3839
@com.google.api.client.util.Key
3940
private java.lang.String action;
4041

4142
/**
42-
* Optional. The condition of the rule in CEL expression. If not provided, the rule matches all
43-
* the objects.
43+
* Optional. A CEL expression for conditions that must be met in order for the rule to apply. If
44+
* not provided, the rule matches all objects.
4445
* The value may be {@code null}.
4546
*/
4647
@com.google.api.client.util.Key
4748
private Expr condition;
4849

4950
/**
50-
* The name of the rule, for example: "projects/p1/locations/us-
51-
* central1/repositories/repo1/rules/rule1".
51+
* The name of the rule, for example: `projects/p1/locations/us-
52+
* central1/repositories/repo1/rules/rule1`.
5253
* The value may be {@code null}.
5354
*/
5455
@com.google.api.client.util.Key
@@ -61,23 +62,23 @@ public final class GoogleDevtoolsArtifactregistryV1Rule extends com.google.api.c
6162
private java.lang.String operation;
6263

6364
/**
64-
* The package ID the rule applies to. If empty, this rule applies to all the packages inside the
65+
* The package ID the rule applies to. If empty, this rule applies to all packages inside the
6566
* repository.
6667
* The value may be {@code null}.
6768
*/
6869
@com.google.api.client.util.Key
6970
private java.lang.String packageId;
7071

7172
/**
72-
* The action this rule makes.
73+
* The action this rule takes.
7374
* @return value or {@code null} for none
7475
*/
7576
public java.lang.String getAction() {
7677
return action;
7778
}
7879

7980
/**
80-
* The action this rule makes.
81+
* The action this rule takes.
8182
* @param action action or {@code null} for none
8283
*/
8384
public GoogleDevtoolsArtifactregistryV1Rule setAction(java.lang.String action) {
@@ -86,17 +87,17 @@ public GoogleDevtoolsArtifactregistryV1Rule setAction(java.lang.String action) {
8687
}
8788

8889
/**
89-
* Optional. The condition of the rule in CEL expression. If not provided, the rule matches all
90-
* the objects.
90+
* Optional. A CEL expression for conditions that must be met in order for the rule to apply. If
91+
* not provided, the rule matches all objects.
9192
* @return value or {@code null} for none
9293
*/
9394
public Expr getCondition() {
9495
return condition;
9596
}
9697

9798
/**
98-
* Optional. The condition of the rule in CEL expression. If not provided, the rule matches all
99-
* the objects.
99+
* Optional. A CEL expression for conditions that must be met in order for the rule to apply. If
100+
* not provided, the rule matches all objects.
100101
* @param condition condition or {@code null} for none
101102
*/
102103
public GoogleDevtoolsArtifactregistryV1Rule setCondition(Expr condition) {
@@ -105,17 +106,17 @@ public GoogleDevtoolsArtifactregistryV1Rule setCondition(Expr condition) {
105106
}
106107

107108
/**
108-
* The name of the rule, for example: "projects/p1/locations/us-
109-
* central1/repositories/repo1/rules/rule1".
109+
* The name of the rule, for example: `projects/p1/locations/us-
110+
* central1/repositories/repo1/rules/rule1`.
110111
* @return value or {@code null} for none
111112
*/
112113
public java.lang.String getName() {
113114
return name;
114115
}
115116

116117
/**
117-
* The name of the rule, for example: "projects/p1/locations/us-
118-
* central1/repositories/repo1/rules/rule1".
118+
* The name of the rule, for example: `projects/p1/locations/us-
119+
* central1/repositories/repo1/rules/rule1`.
119120
* @param name name or {@code null} for none
120121
*/
121122
public GoogleDevtoolsArtifactregistryV1Rule setName(java.lang.String name) {
@@ -139,7 +140,7 @@ public GoogleDevtoolsArtifactregistryV1Rule setOperation(java.lang.String operat
139140
}
140141

141142
/**
142-
* The package ID the rule applies to. If empty, this rule applies to all the packages inside the
143+
* The package ID the rule applies to. If empty, this rule applies to all packages inside the
143144
* repository.
144145
* @return value or {@code null} for none
145146
*/
@@ -148,7 +149,7 @@ public java.lang.String getPackageId() {
148149
}
149150

150151
/**
151-
* The package ID the rule applies to. If empty, this rule applies to all the packages inside the
152+
* The package ID the rule applies to. If empty, this rule applies to all packages inside the
152153
* repository.
153154
* @param packageId packageId or {@code null} for none
154155
*/

clients/google-api-services-artifactregistry/v1/2.0.0/com/google/api/services/artifactregistry/v1/model/Repository.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,13 @@ public final class Repository extends com.google.api.client.json.GenericJson {
173173
@com.google.api.client.util.Key
174174
private VirtualRepositoryConfig virtualRepositoryConfig;
175175

176+
/**
177+
* Optional. Config and state for vulnerability scanning of resources within this Repository.
178+
* The value may be {@code null}.
179+
*/
180+
@com.google.api.client.util.Key
181+
private VulnerabilityScanningConfig vulnerabilityScanningConfig;
182+
176183
/**
177184
* Optional. Cleanup policies for this repository. Cleanup policies indicate when certain package
178185
* versions can be automatically deleted. Map keys are policy IDs supplied by users during policy
@@ -501,6 +508,23 @@ public Repository setVirtualRepositoryConfig(VirtualRepositoryConfig virtualRepo
501508
return this;
502509
}
503510

511+
/**
512+
* Optional. Config and state for vulnerability scanning of resources within this Repository.
513+
* @return value or {@code null} for none
514+
*/
515+
public VulnerabilityScanningConfig getVulnerabilityScanningConfig() {
516+
return vulnerabilityScanningConfig;
517+
}
518+
519+
/**
520+
* Optional. Config and state for vulnerability scanning of resources within this Repository.
521+
* @param vulnerabilityScanningConfig vulnerabilityScanningConfig or {@code null} for none
522+
*/
523+
public Repository setVulnerabilityScanningConfig(VulnerabilityScanningConfig vulnerabilityScanningConfig) {
524+
this.vulnerabilityScanningConfig = vulnerabilityScanningConfig;
525+
return this;
526+
}
527+
504528
@Override
505529
public Repository set(String fieldName, Object value) {
506530
return (Repository) super.set(fieldName, value);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.artifactregistry.v1.model;
18+
19+
/**
20+
* Config on whether to perform vulnerability scanning for resources in this repository, as well as
21+
* output fields describing current state.
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Artifact Registry API. For a detailed explanation
25+
* see:
26+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
27+
* </p>
28+
*
29+
* @author Google, Inc.
30+
*/
31+
@SuppressWarnings("javadoc")
32+
public final class VulnerabilityScanningConfig extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* Optional. Config for whether this repository has vulnerability scanning disabled.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String enablementConfig;
40+
41+
/**
42+
* Output only. State of feature enablement, combining repository enablement config and API
43+
* enablement state.
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private java.lang.String enablementState;
48+
49+
/**
50+
* Output only. Reason for the repository state.
51+
* The value may be {@code null}.
52+
*/
53+
@com.google.api.client.util.Key
54+
private java.lang.String enablementStateReason;
55+
56+
/**
57+
* Output only. The last time this repository config was enabled.
58+
* The value may be {@code null}.
59+
*/
60+
@com.google.api.client.util.Key
61+
private String lastEnableTime;
62+
63+
/**
64+
* Optional. Config for whether this repository has vulnerability scanning disabled.
65+
* @return value or {@code null} for none
66+
*/
67+
public java.lang.String getEnablementConfig() {
68+
return enablementConfig;
69+
}
70+
71+
/**
72+
* Optional. Config for whether this repository has vulnerability scanning disabled.
73+
* @param enablementConfig enablementConfig or {@code null} for none
74+
*/
75+
public VulnerabilityScanningConfig setEnablementConfig(java.lang.String enablementConfig) {
76+
this.enablementConfig = enablementConfig;
77+
return this;
78+
}
79+
80+
/**
81+
* Output only. State of feature enablement, combining repository enablement config and API
82+
* enablement state.
83+
* @return value or {@code null} for none
84+
*/
85+
public java.lang.String getEnablementState() {
86+
return enablementState;
87+
}
88+
89+
/**
90+
* Output only. State of feature enablement, combining repository enablement config and API
91+
* enablement state.
92+
* @param enablementState enablementState or {@code null} for none
93+
*/
94+
public VulnerabilityScanningConfig setEnablementState(java.lang.String enablementState) {
95+
this.enablementState = enablementState;
96+
return this;
97+
}
98+
99+
/**
100+
* Output only. Reason for the repository state.
101+
* @return value or {@code null} for none
102+
*/
103+
public java.lang.String getEnablementStateReason() {
104+
return enablementStateReason;
105+
}
106+
107+
/**
108+
* Output only. Reason for the repository state.
109+
* @param enablementStateReason enablementStateReason or {@code null} for none
110+
*/
111+
public VulnerabilityScanningConfig setEnablementStateReason(java.lang.String enablementStateReason) {
112+
this.enablementStateReason = enablementStateReason;
113+
return this;
114+
}
115+
116+
/**
117+
* Output only. The last time this repository config was enabled.
118+
* @return value or {@code null} for none
119+
*/
120+
public String getLastEnableTime() {
121+
return lastEnableTime;
122+
}
123+
124+
/**
125+
* Output only. The last time this repository config was enabled.
126+
* @param lastEnableTime lastEnableTime or {@code null} for none
127+
*/
128+
public VulnerabilityScanningConfig setLastEnableTime(String lastEnableTime) {
129+
this.lastEnableTime = lastEnableTime;
130+
return this;
131+
}
132+
133+
@Override
134+
public VulnerabilityScanningConfig set(String fieldName, Object value) {
135+
return (VulnerabilityScanningConfig) super.set(fieldName, value);
136+
}
137+
138+
@Override
139+
public VulnerabilityScanningConfig clone() {
140+
return (VulnerabilityScanningConfig) super.clone();
141+
}
142+
143+
}

clients/google-api-services-artifactregistry/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-artifactregistry</artifactId>
11-
<version>v1-rev20241010-2.0.0</version>
12-
<name>Artifact Registry API v1-rev20241010-2.0.0</name>
11+
<version>v1-rev20241011-2.0.0</version>
12+
<name>Artifact Registry API v1-rev20241011-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

0 commit comments

Comments
 (0)