@@ -23977,6 +23977,287 @@ public Patch set(String parameterName, Object value) {
23977
23977
}
23978
23978
}
23979
23979
}
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
+ }
23980
24261
}
23981
24262
23982
24263
/**
0 commit comments