@@ -10706,6 +10706,258 @@ public UpdateSecurityMarks set(String parameterName, Object value) {
10706
10706
}
10707
10707
}
10708
10708
10709
+ }
10710
+ /**
10711
+ * An accessor for creating requests from the AttackPaths collection.
10712
+ *
10713
+ * <p>The typical use is:</p>
10714
+ * <pre>
10715
+ * {@code SecurityCommandCenter securitycenter = new SecurityCommandCenter(...);}
10716
+ * {@code SecurityCommandCenter.AttackPaths.List request = securitycenter.attackPaths().list(parameters ...)}
10717
+ * </pre>
10718
+ *
10719
+ * @return the resource collection
10720
+ */
10721
+ public AttackPaths attackPaths() {
10722
+ return new AttackPaths();
10723
+ }
10724
+
10725
+ /**
10726
+ * The "attackPaths" collection of methods.
10727
+ */
10728
+ public class AttackPaths {
10729
+
10730
+ /**
10731
+ * Lists the attack paths for a set of simulation results or valued resources and filter.
10732
+ *
10733
+ * Create a request for the method "attackPaths.list".
10734
+ *
10735
+ * This request holds the parameters needed by the securitycenter server. After setting any
10736
+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
10737
+ *
10738
+ * @param parent Required. Name of parent to list attack paths. Valid formats: `organizations/{organization}`,
10739
+ * `organizations/{organization}/simulations/{simulation}` `organizations/{organization}/simu
10740
+ * lations/{simulation}/attackExposureResults/{attack_exposure_result_v2}`
10741
+ * `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`
10742
+ * @return the request
10743
+ */
10744
+ public List list(java.lang.String parent) throws java.io.IOException {
10745
+ List result = new List(parent);
10746
+ initialize(result);
10747
+ return result;
10748
+ }
10749
+
10750
+ public class List extends SecurityCommandCenterRequest<com.google.api.services.securitycenter.v1.model.ListAttackPathsResponse> {
10751
+
10752
+ private static final String REST_PATH = "v1/{+parent}/attackPaths";
10753
+
10754
+ private final java.util.regex.Pattern PARENT_PATTERN =
10755
+ java.util.regex.Pattern.compile("^organizations/[^/]+$");
10756
+
10757
+ /**
10758
+ * Lists the attack paths for a set of simulation results or valued resources and filter.
10759
+ *
10760
+ * Create a request for the method "attackPaths.list".
10761
+ *
10762
+ * This request holds the parameters needed by the the securitycenter server. After setting any
10763
+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation. <p>
10764
+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
10765
+ * must be called to initialize this instance immediately after invoking the constructor. </p>
10766
+ *
10767
+ * @param parent Required. Name of parent to list attack paths. Valid formats: `organizations/{organization}`,
10768
+ * `organizations/{organization}/simulations/{simulation}` `organizations/{organization}/simu
10769
+ * lations/{simulation}/attackExposureResults/{attack_exposure_result_v2}`
10770
+ * `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`
10771
+ * @since 1.13
10772
+ */
10773
+ protected List(java.lang.String parent) {
10774
+ super(SecurityCommandCenter.this, "GET", REST_PATH, null, com.google.api.services.securitycenter.v1.model.ListAttackPathsResponse.class);
10775
+ this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
10776
+ if (!getSuppressPatternChecks()) {
10777
+ com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
10778
+ "Parameter parent must conform to the pattern " +
10779
+ "^organizations/[^/]+$");
10780
+ }
10781
+ }
10782
+
10783
+ @Override
10784
+ public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
10785
+ return super.executeUsingHead();
10786
+ }
10787
+
10788
+ @Override
10789
+ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
10790
+ return super.buildHttpRequestUsingHead();
10791
+ }
10792
+
10793
+ @Override
10794
+ public List set$Xgafv(java.lang.String $Xgafv) {
10795
+ return (List) super.set$Xgafv($Xgafv);
10796
+ }
10797
+
10798
+ @Override
10799
+ public List setAccessToken(java.lang.String accessToken) {
10800
+ return (List) super.setAccessToken(accessToken);
10801
+ }
10802
+
10803
+ @Override
10804
+ public List setAlt(java.lang.String alt) {
10805
+ return (List) super.setAlt(alt);
10806
+ }
10807
+
10808
+ @Override
10809
+ public List setCallback(java.lang.String callback) {
10810
+ return (List) super.setCallback(callback);
10811
+ }
10812
+
10813
+ @Override
10814
+ public List setFields(java.lang.String fields) {
10815
+ return (List) super.setFields(fields);
10816
+ }
10817
+
10818
+ @Override
10819
+ public List setKey(java.lang.String key) {
10820
+ return (List) super.setKey(key);
10821
+ }
10822
+
10823
+ @Override
10824
+ public List setOauthToken(java.lang.String oauthToken) {
10825
+ return (List) super.setOauthToken(oauthToken);
10826
+ }
10827
+
10828
+ @Override
10829
+ public List setPrettyPrint(java.lang.Boolean prettyPrint) {
10830
+ return (List) super.setPrettyPrint(prettyPrint);
10831
+ }
10832
+
10833
+ @Override
10834
+ public List setQuotaUser(java.lang.String quotaUser) {
10835
+ return (List) super.setQuotaUser(quotaUser);
10836
+ }
10837
+
10838
+ @Override
10839
+ public List setUploadType(java.lang.String uploadType) {
10840
+ return (List) super.setUploadType(uploadType);
10841
+ }
10842
+
10843
+ @Override
10844
+ public List setUploadProtocol(java.lang.String uploadProtocol) {
10845
+ return (List) super.setUploadProtocol(uploadProtocol);
10846
+ }
10847
+
10848
+ /**
10849
+ * Required. Name of parent to list attack paths. Valid formats:
10850
+ * `organizations/{organization}`, `organizations/{organization}/simulations/{simulation}` `
10851
+ * organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_expos
10852
+ * ure_result_v2}`
10853
+ * `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`
10854
+ */
10855
+ @com.google.api.client.util.Key
10856
+ private java.lang.String parent;
10857
+
10858
+ /** Required. Name of parent to list attack paths. Valid formats: `organizations/{organization}`,
10859
+ `organizations/{organization}/simulations/{simulation}` `organizations/{organization}/simulations/{
10860
+ simulation}/attackExposureResults/{attack_exposure_result_v2}`
10861
+ `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`
10862
+ */
10863
+ public java.lang.String getParent() {
10864
+ return parent;
10865
+ }
10866
+
10867
+ /**
10868
+ * Required. Name of parent to list attack paths. Valid formats:
10869
+ * `organizations/{organization}`, `organizations/{organization}/simulations/{simulation}` `
10870
+ * organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_expos
10871
+ * ure_result_v2}`
10872
+ * `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`
10873
+ */
10874
+ public List setParent(java.lang.String parent) {
10875
+ if (!getSuppressPatternChecks()) {
10876
+ com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
10877
+ "Parameter parent must conform to the pattern " +
10878
+ "^organizations/[^/]+$");
10879
+ }
10880
+ this.parent = parent;
10881
+ return this;
10882
+ }
10883
+
10884
+ /**
10885
+ * The filter expression that filters the attack path in the response. Supported fields: *
10886
+ * `valued_resources` supports =
10887
+ */
10888
+ @com.google.api.client.util.Key
10889
+ private java.lang.String filter;
10890
+
10891
+ /** The filter expression that filters the attack path in the response. Supported fields: *
10892
+ `valued_resources` supports =
10893
+ */
10894
+ public java.lang.String getFilter() {
10895
+ return filter;
10896
+ }
10897
+
10898
+ /**
10899
+ * The filter expression that filters the attack path in the response. Supported fields: *
10900
+ * `valued_resources` supports =
10901
+ */
10902
+ public List setFilter(java.lang.String filter) {
10903
+ this.filter = filter;
10904
+ return this;
10905
+ }
10906
+
10907
+ /**
10908
+ * The maximum number of results to return in a single response. Default is 10, minimum is
10909
+ * 1, maximum is 1000.
10910
+ */
10911
+ @com.google.api.client.util.Key
10912
+ private java.lang.Integer pageSize;
10913
+
10914
+ /** The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum
10915
+ is 1000.
10916
+ */
10917
+ public java.lang.Integer getPageSize() {
10918
+ return pageSize;
10919
+ }
10920
+
10921
+ /**
10922
+ * The maximum number of results to return in a single response. Default is 10, minimum is
10923
+ * 1, maximum is 1000.
10924
+ */
10925
+ public List setPageSize(java.lang.Integer pageSize) {
10926
+ this.pageSize = pageSize;
10927
+ return this;
10928
+ }
10929
+
10930
+ /**
10931
+ * The value returned by the last `ListAttackPathsResponse`; indicates that this is a
10932
+ * continuation of a prior `ListAttackPaths` call, and that the system should return the
10933
+ * next page of data.
10934
+ */
10935
+ @com.google.api.client.util.Key
10936
+ private java.lang.String pageToken;
10937
+
10938
+ /** The value returned by the last `ListAttackPathsResponse`; indicates that this is a continuation of
10939
+ a prior `ListAttackPaths` call, and that the system should return the next page of data.
10940
+ */
10941
+ public java.lang.String getPageToken() {
10942
+ return pageToken;
10943
+ }
10944
+
10945
+ /**
10946
+ * The value returned by the last `ListAttackPathsResponse`; indicates that this is a
10947
+ * continuation of a prior `ListAttackPaths` call, and that the system should return the
10948
+ * next page of data.
10949
+ */
10950
+ public List setPageToken(java.lang.String pageToken) {
10951
+ this.pageToken = pageToken;
10952
+ return this;
10953
+ }
10954
+
10955
+ @Override
10956
+ public List set(String parameterName, Object value) {
10957
+ return (List) super.set(parameterName, value);
10958
+ }
10959
+ }
10960
+
10709
10961
}
10710
10962
/**
10711
10963
* An accessor for creating requests from the BigQueryExports collection.
@@ -15745,7 +15997,7 @@ public class Operations {
15745
15997
* it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
15746
15998
* methods to check whether the cancellation succeeded or whether the operation completed despite
15747
15999
* cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
15748
- * operation with an Operation.error value with a google.rpc.Status.code of 1 , corresponding to
16000
+ * operation with an Operation.error value with a google.rpc.Status.code of `1` , corresponding to
15749
16001
* `Code.CANCELLED`.
15750
16002
*
15751
16003
* Create a request for the method "operations.cancel".
@@ -15775,7 +16027,7 @@ public class Cancel extends SecurityCommandCenterRequest<com.google.api.services
15775
16027
* it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
15776
16028
* methods to check whether the cancellation succeeded or whether the operation completed despite
15777
16029
* cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
15778
- * operation with an Operation.error value with a google.rpc.Status.code of 1 , corresponding to
16030
+ * operation with an Operation.error value with a google.rpc.Status.code of `1` , corresponding to
15779
16031
* `Code.CANCELLED`.
15780
16032
*
15781
16033
* Create a request for the method "operations.cancel".
0 commit comments