Skip to content

Commit b63415e

Browse files
1 parent c6ce246 commit b63415e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+3209
-18
lines changed

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

clients/google-api-services-securitycenter/v1/2.0.0/com/google/api/services/securitycenter/v1/SecurityCommandCenter.java

Lines changed: 281 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23977,6 +23977,287 @@ public Patch set(String parameterName, Object value) {
2397723977
}
2397823978
}
2397923979
}
23980+
/**
23981+
* An accessor for creating requests from the ValuedResources collection.
23982+
*
23983+
* <p>The typical use is:</p>
23984+
* <pre>
23985+
* {@code SecurityCommandCenter securitycenter = new SecurityCommandCenter(...);}
23986+
* {@code SecurityCommandCenter.ValuedResources.List request = securitycenter.valuedResources().list(parameters ...)}
23987+
* </pre>
23988+
*
23989+
* @return the resource collection
23990+
*/
23991+
public ValuedResources valuedResources() {
23992+
return new ValuedResources();
23993+
}
23994+
23995+
/**
23996+
* The "valuedResources" collection of methods.
23997+
*/
23998+
public class ValuedResources {
23999+
24000+
/**
24001+
* Lists the valued resources for a set of simulation results and filter.
24002+
*
24003+
* Create a request for the method "valuedResources.list".
24004+
*
24005+
* This request holds the parameters needed by the securitycenter server. After setting any
24006+
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
24007+
*
24008+
* @param parent Required. Name of parent to list valued resources. Valid formats: `organizations/{organization}`,
24009+
* `organizations/{organization}/simulations/{simulation}` `organizations/{organization}/simu
24010+
* lations/{simulation}/attackExposureResults/{attack_exposure_result_v2}`
24011+
* @return the request
24012+
*/
24013+
public List list(java.lang.String parent) throws java.io.IOException {
24014+
List result = new List(parent);
24015+
initialize(result);
24016+
return result;
24017+
}
24018+
24019+
public class List extends SecurityCommandCenterRequest<com.google.api.services.securitycenter.v1.model.ListValuedResourcesResponse> {
24020+
24021+
private static final String REST_PATH = "v1/{+parent}/valuedResources";
24022+
24023+
private final java.util.regex.Pattern PARENT_PATTERN =
24024+
java.util.regex.Pattern.compile("^organizations/[^/]+$");
24025+
24026+
/**
24027+
* Lists the valued resources for a set of simulation results and filter.
24028+
*
24029+
* Create a request for the method "valuedResources.list".
24030+
*
24031+
* This request holds the parameters needed by the the securitycenter server. After setting any
24032+
* optional parameters, call the {@link List#execute()} method to invoke the remote operation. <p>
24033+
* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
24034+
* must be called to initialize this instance immediately after invoking the constructor. </p>
24035+
*
24036+
* @param parent Required. Name of parent to list valued resources. Valid formats: `organizations/{organization}`,
24037+
* `organizations/{organization}/simulations/{simulation}` `organizations/{organization}/simu
24038+
* lations/{simulation}/attackExposureResults/{attack_exposure_result_v2}`
24039+
* @since 1.13
24040+
*/
24041+
protected List(java.lang.String parent) {
24042+
super(SecurityCommandCenter.this, "GET", REST_PATH, null, com.google.api.services.securitycenter.v1.model.ListValuedResourcesResponse.class);
24043+
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
24044+
if (!getSuppressPatternChecks()) {
24045+
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
24046+
"Parameter parent must conform to the pattern " +
24047+
"^organizations/[^/]+$");
24048+
}
24049+
}
24050+
24051+
@Override
24052+
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
24053+
return super.executeUsingHead();
24054+
}
24055+
24056+
@Override
24057+
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
24058+
return super.buildHttpRequestUsingHead();
24059+
}
24060+
24061+
@Override
24062+
public List set$Xgafv(java.lang.String $Xgafv) {
24063+
return (List) super.set$Xgafv($Xgafv);
24064+
}
24065+
24066+
@Override
24067+
public List setAccessToken(java.lang.String accessToken) {
24068+
return (List) super.setAccessToken(accessToken);
24069+
}
24070+
24071+
@Override
24072+
public List setAlt(java.lang.String alt) {
24073+
return (List) super.setAlt(alt);
24074+
}
24075+
24076+
@Override
24077+
public List setCallback(java.lang.String callback) {
24078+
return (List) super.setCallback(callback);
24079+
}
24080+
24081+
@Override
24082+
public List setFields(java.lang.String fields) {
24083+
return (List) super.setFields(fields);
24084+
}
24085+
24086+
@Override
24087+
public List setKey(java.lang.String key) {
24088+
return (List) super.setKey(key);
24089+
}
24090+
24091+
@Override
24092+
public List setOauthToken(java.lang.String oauthToken) {
24093+
return (List) super.setOauthToken(oauthToken);
24094+
}
24095+
24096+
@Override
24097+
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
24098+
return (List) super.setPrettyPrint(prettyPrint);
24099+
}
24100+
24101+
@Override
24102+
public List setQuotaUser(java.lang.String quotaUser) {
24103+
return (List) super.setQuotaUser(quotaUser);
24104+
}
24105+
24106+
@Override
24107+
public List setUploadType(java.lang.String uploadType) {
24108+
return (List) super.setUploadType(uploadType);
24109+
}
24110+
24111+
@Override
24112+
public List setUploadProtocol(java.lang.String uploadProtocol) {
24113+
return (List) super.setUploadProtocol(uploadProtocol);
24114+
}
24115+
24116+
/**
24117+
* Required. Name of parent to list valued resources. Valid formats:
24118+
* `organizations/{organization}`, `organizations/{organization}/simulations/{simulation}` `
24119+
* organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_expos
24120+
* ure_result_v2}`
24121+
*/
24122+
@com.google.api.client.util.Key
24123+
private java.lang.String parent;
24124+
24125+
/** Required. Name of parent to list valued resources. Valid formats: `organizations/{organization}`,
24126+
`organizations/{organization}/simulations/{simulation}` `organizations/{organization}/simulations/{
24127+
simulation}/attackExposureResults/{attack_exposure_result_v2}`
24128+
*/
24129+
public java.lang.String getParent() {
24130+
return parent;
24131+
}
24132+
24133+
/**
24134+
* Required. Name of parent to list valued resources. Valid formats:
24135+
* `organizations/{organization}`, `organizations/{organization}/simulations/{simulation}` `
24136+
* organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_expos
24137+
* ure_result_v2}`
24138+
*/
24139+
public List setParent(java.lang.String parent) {
24140+
if (!getSuppressPatternChecks()) {
24141+
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
24142+
"Parameter parent must conform to the pattern " +
24143+
"^organizations/[^/]+$");
24144+
}
24145+
this.parent = parent;
24146+
return this;
24147+
}
24148+
24149+
/**
24150+
* The filter expression that filters the valued resources in the response. Supported
24151+
* fields: * `resource_value` supports = * `resource_type` supports =
24152+
*/
24153+
@com.google.api.client.util.Key
24154+
private java.lang.String filter;
24155+
24156+
/** The filter expression that filters the valued resources in the response. Supported fields: *
24157+
`resource_value` supports = * `resource_type` supports =
24158+
*/
24159+
public java.lang.String getFilter() {
24160+
return filter;
24161+
}
24162+
24163+
/**
24164+
* The filter expression that filters the valued resources in the response. Supported
24165+
* fields: * `resource_value` supports = * `resource_type` supports =
24166+
*/
24167+
public List setFilter(java.lang.String filter) {
24168+
this.filter = filter;
24169+
return this;
24170+
}
24171+
24172+
/**
24173+
* Optional. The fields by which to order the valued resources response. Supported fields: *
24174+
* `exposed_score` * `resource_value` * `resource_type` * `resource` * `display_name` Values
24175+
* should be a comma separated list of fields. For example: `exposed_score,resource_value`.
24176+
* The default sorting order is descending. To specify ascending or descending order for a
24177+
* field, append a ` ASC` or a ` DESC` suffix, respectively; for example: `exposed_score
24178+
* DESC`.
24179+
*/
24180+
@com.google.api.client.util.Key
24181+
private java.lang.String orderBy;
24182+
24183+
/** Optional. The fields by which to order the valued resources response. Supported fields: *
24184+
`exposed_score` * `resource_value` * `resource_type` * `resource` * `display_name` Values should be
24185+
a comma separated list of fields. For example: `exposed_score,resource_value`. The default sorting
24186+
order is descending. To specify ascending or descending order for a field, append a ` ASC` or a `
24187+
DESC` suffix, respectively; for example: `exposed_score DESC`.
24188+
*/
24189+
public java.lang.String getOrderBy() {
24190+
return orderBy;
24191+
}
24192+
24193+
/**
24194+
* Optional. The fields by which to order the valued resources response. Supported fields: *
24195+
* `exposed_score` * `resource_value` * `resource_type` * `resource` * `display_name` Values
24196+
* should be a comma separated list of fields. For example: `exposed_score,resource_value`.
24197+
* The default sorting order is descending. To specify ascending or descending order for a
24198+
* field, append a ` ASC` or a ` DESC` suffix, respectively; for example: `exposed_score
24199+
* DESC`.
24200+
*/
24201+
public List setOrderBy(java.lang.String orderBy) {
24202+
this.orderBy = orderBy;
24203+
return this;
24204+
}
24205+
24206+
/**
24207+
* The maximum number of results to return in a single response. Default is 10, minimum is
24208+
* 1, maximum is 1000.
24209+
*/
24210+
@com.google.api.client.util.Key
24211+
private java.lang.Integer pageSize;
24212+
24213+
/** The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum
24214+
is 1000.
24215+
*/
24216+
public java.lang.Integer getPageSize() {
24217+
return pageSize;
24218+
}
24219+
24220+
/**
24221+
* The maximum number of results to return in a single response. Default is 10, minimum is
24222+
* 1, maximum is 1000.
24223+
*/
24224+
public List setPageSize(java.lang.Integer pageSize) {
24225+
this.pageSize = pageSize;
24226+
return this;
24227+
}
24228+
24229+
/**
24230+
* The value returned by the last `ListValuedResourcesResponse`; indicates that this is a
24231+
* continuation of a prior `ListValuedResources` call, and that the system should return the
24232+
* next page of data.
24233+
*/
24234+
@com.google.api.client.util.Key
24235+
private java.lang.String pageToken;
24236+
24237+
/** The value returned by the last `ListValuedResourcesResponse`; indicates that this is a continuation
24238+
of a prior `ListValuedResources` call, and that the system should return the next page of data.
24239+
*/
24240+
public java.lang.String getPageToken() {
24241+
return pageToken;
24242+
}
24243+
24244+
/**
24245+
* The value returned by the last `ListValuedResourcesResponse`; indicates that this is a
24246+
* continuation of a prior `ListValuedResources` call, and that the system should return the
24247+
* next page of data.
24248+
*/
24249+
public List setPageToken(java.lang.String pageToken) {
24250+
this.pageToken = pageToken;
24251+
return this;
24252+
}
24253+
24254+
@Override
24255+
public List set(String parameterName, Object value) {
24256+
return (List) super.set(parameterName, value);
24257+
}
24258+
}
24259+
24260+
}
2398024261
}
2398124262

2398224263
/**

clients/google-api-services-securitycenter/v1/2.0.0/com/google/api/services/securitycenter/v1/model/AzureMetadata.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ public final class AzureMetadata extends com.google.api.client.json.GenericJson
5959
@com.google.api.client.util.Key
6060
private AzureSubscription subscription;
6161

62+
/**
63+
* The Azure Entra tenant associated with the resource.
64+
* The value may be {@code null}.
65+
*/
66+
@com.google.api.client.util.Key
67+
private AzureTenant tenant;
68+
6269
/**
6370
* A list of Azure management groups associated with the resource, ordered from lowest level
6471
* (closest to the subscription) to highest level.
@@ -112,6 +119,23 @@ public AzureMetadata setSubscription(AzureSubscription subscription) {
112119
return this;
113120
}
114121

122+
/**
123+
* The Azure Entra tenant associated with the resource.
124+
* @return value or {@code null} for none
125+
*/
126+
public AzureTenant getTenant() {
127+
return tenant;
128+
}
129+
130+
/**
131+
* The Azure Entra tenant associated with the resource.
132+
* @param tenant tenant or {@code null} for none
133+
*/
134+
public AzureMetadata setTenant(AzureTenant tenant) {
135+
this.tenant = tenant;
136+
return this;
137+
}
138+
115139
@Override
116140
public AzureMetadata set(String fieldName, Object value) {
117141
return (AzureMetadata) super.set(fieldName, value);

0 commit comments

Comments
 (0)