@@ -8827,6 +8827,375 @@ public Patch set(String parameterName, Object value) {
8827
8827
}
8828
8828
}
8829
8829
8830
+ }
8831
+ /**
8832
+ * An accessor for creating requests from the Relations collection.
8833
+ *
8834
+ * <p>The typical use is:</p>
8835
+ * <pre>
8836
+ * {@code MigrationCenterAPI migrationcenter = new MigrationCenterAPI(...);}
8837
+ * {@code MigrationCenterAPI.Relations.List request = migrationcenter.relations().list(parameters ...)}
8838
+ * </pre>
8839
+ *
8840
+ * @return the resource collection
8841
+ */
8842
+ public Relations relations() {
8843
+ return new Relations();
8844
+ }
8845
+
8846
+ /**
8847
+ * The "relations" collection of methods.
8848
+ */
8849
+ public class Relations {
8850
+
8851
+ /**
8852
+ * Gets the details of an relation.
8853
+ *
8854
+ * Create a request for the method "relations.get".
8855
+ *
8856
+ * This request holds the parameters needed by the migrationcenter server. After setting any
8857
+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
8858
+ *
8859
+ * @param name Required. Name of the resource.
8860
+ * @return the request
8861
+ */
8862
+ public Get get(java.lang.String name) throws java.io.IOException {
8863
+ Get result = new Get(name);
8864
+ initialize(result);
8865
+ return result;
8866
+ }
8867
+
8868
+ public class Get extends MigrationCenterAPIRequest<com.google.api.services.migrationcenter.v1alpha1.model.Relation> {
8869
+
8870
+ private static final String REST_PATH = "v1alpha1/{+name}";
8871
+
8872
+ private final java.util.regex.Pattern NAME_PATTERN =
8873
+ java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/relations/[^/]+$");
8874
+
8875
+ /**
8876
+ * Gets the details of an relation.
8877
+ *
8878
+ * Create a request for the method "relations.get".
8879
+ *
8880
+ * This request holds the parameters needed by the the migrationcenter server. After setting any
8881
+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. <p>
8882
+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
8883
+ * must be called to initialize this instance immediately after invoking the constructor. </p>
8884
+ *
8885
+ * @param name Required. Name of the resource.
8886
+ * @since 1.13
8887
+ */
8888
+ protected Get(java.lang.String name) {
8889
+ super(MigrationCenterAPI.this, "GET", REST_PATH, null, com.google.api.services.migrationcenter.v1alpha1.model.Relation.class);
8890
+ this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
8891
+ if (!getSuppressPatternChecks()) {
8892
+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
8893
+ "Parameter name must conform to the pattern " +
8894
+ "^projects/[^/]+/locations/[^/]+/relations/[^/]+$");
8895
+ }
8896
+ }
8897
+
8898
+ @Override
8899
+ public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
8900
+ return super.executeUsingHead();
8901
+ }
8902
+
8903
+ @Override
8904
+ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
8905
+ return super.buildHttpRequestUsingHead();
8906
+ }
8907
+
8908
+ @Override
8909
+ public Get set$Xgafv(java.lang.String $Xgafv) {
8910
+ return (Get) super.set$Xgafv($Xgafv);
8911
+ }
8912
+
8913
+ @Override
8914
+ public Get setAccessToken(java.lang.String accessToken) {
8915
+ return (Get) super.setAccessToken(accessToken);
8916
+ }
8917
+
8918
+ @Override
8919
+ public Get setAlt(java.lang.String alt) {
8920
+ return (Get) super.setAlt(alt);
8921
+ }
8922
+
8923
+ @Override
8924
+ public Get setCallback(java.lang.String callback) {
8925
+ return (Get) super.setCallback(callback);
8926
+ }
8927
+
8928
+ @Override
8929
+ public Get setFields(java.lang.String fields) {
8930
+ return (Get) super.setFields(fields);
8931
+ }
8932
+
8933
+ @Override
8934
+ public Get setKey(java.lang.String key) {
8935
+ return (Get) super.setKey(key);
8936
+ }
8937
+
8938
+ @Override
8939
+ public Get setOauthToken(java.lang.String oauthToken) {
8940
+ return (Get) super.setOauthToken(oauthToken);
8941
+ }
8942
+
8943
+ @Override
8944
+ public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
8945
+ return (Get) super.setPrettyPrint(prettyPrint);
8946
+ }
8947
+
8948
+ @Override
8949
+ public Get setQuotaUser(java.lang.String quotaUser) {
8950
+ return (Get) super.setQuotaUser(quotaUser);
8951
+ }
8952
+
8953
+ @Override
8954
+ public Get setUploadType(java.lang.String uploadType) {
8955
+ return (Get) super.setUploadType(uploadType);
8956
+ }
8957
+
8958
+ @Override
8959
+ public Get setUploadProtocol(java.lang.String uploadProtocol) {
8960
+ return (Get) super.setUploadProtocol(uploadProtocol);
8961
+ }
8962
+
8963
+ /** Required. Name of the resource. */
8964
+ @com.google.api.client.util.Key
8965
+ private java.lang.String name;
8966
+
8967
+ /** Required. Name of the resource.
8968
+ */
8969
+ public java.lang.String getName() {
8970
+ return name;
8971
+ }
8972
+
8973
+ /** Required. Name of the resource. */
8974
+ public Get setName(java.lang.String name) {
8975
+ if (!getSuppressPatternChecks()) {
8976
+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
8977
+ "Parameter name must conform to the pattern " +
8978
+ "^projects/[^/]+/locations/[^/]+/relations/[^/]+$");
8979
+ }
8980
+ this.name = name;
8981
+ return this;
8982
+ }
8983
+
8984
+ @Override
8985
+ public Get set(String parameterName, Object value) {
8986
+ return (Get) super.set(parameterName, value);
8987
+ }
8988
+ }
8989
+ /**
8990
+ * Lists all the relations in a given project and location.
8991
+ *
8992
+ * Create a request for the method "relations.list".
8993
+ *
8994
+ * This request holds the parameters needed by the migrationcenter server. After setting any
8995
+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
8996
+ *
8997
+ * @param parent Required. Parent value for `ListRelationsRequest`.
8998
+ * @return the request
8999
+ */
9000
+ public List list(java.lang.String parent) throws java.io.IOException {
9001
+ List result = new List(parent);
9002
+ initialize(result);
9003
+ return result;
9004
+ }
9005
+
9006
+ public class List extends MigrationCenterAPIRequest<com.google.api.services.migrationcenter.v1alpha1.model.ListRelationsResponse> {
9007
+
9008
+ private static final String REST_PATH = "v1alpha1/{+parent}/relations";
9009
+
9010
+ private final java.util.regex.Pattern PARENT_PATTERN =
9011
+ java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
9012
+
9013
+ /**
9014
+ * Lists all the relations in a given project and location.
9015
+ *
9016
+ * Create a request for the method "relations.list".
9017
+ *
9018
+ * This request holds the parameters needed by the the migrationcenter server. After setting any
9019
+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation. <p>
9020
+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
9021
+ * must be called to initialize this instance immediately after invoking the constructor. </p>
9022
+ *
9023
+ * @param parent Required. Parent value for `ListRelationsRequest`.
9024
+ * @since 1.13
9025
+ */
9026
+ protected List(java.lang.String parent) {
9027
+ super(MigrationCenterAPI.this, "GET", REST_PATH, null, com.google.api.services.migrationcenter.v1alpha1.model.ListRelationsResponse.class);
9028
+ this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
9029
+ if (!getSuppressPatternChecks()) {
9030
+ com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
9031
+ "Parameter parent must conform to the pattern " +
9032
+ "^projects/[^/]+/locations/[^/]+$");
9033
+ }
9034
+ }
9035
+
9036
+ @Override
9037
+ public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
9038
+ return super.executeUsingHead();
9039
+ }
9040
+
9041
+ @Override
9042
+ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
9043
+ return super.buildHttpRequestUsingHead();
9044
+ }
9045
+
9046
+ @Override
9047
+ public List set$Xgafv(java.lang.String $Xgafv) {
9048
+ return (List) super.set$Xgafv($Xgafv);
9049
+ }
9050
+
9051
+ @Override
9052
+ public List setAccessToken(java.lang.String accessToken) {
9053
+ return (List) super.setAccessToken(accessToken);
9054
+ }
9055
+
9056
+ @Override
9057
+ public List setAlt(java.lang.String alt) {
9058
+ return (List) super.setAlt(alt);
9059
+ }
9060
+
9061
+ @Override
9062
+ public List setCallback(java.lang.String callback) {
9063
+ return (List) super.setCallback(callback);
9064
+ }
9065
+
9066
+ @Override
9067
+ public List setFields(java.lang.String fields) {
9068
+ return (List) super.setFields(fields);
9069
+ }
9070
+
9071
+ @Override
9072
+ public List setKey(java.lang.String key) {
9073
+ return (List) super.setKey(key);
9074
+ }
9075
+
9076
+ @Override
9077
+ public List setOauthToken(java.lang.String oauthToken) {
9078
+ return (List) super.setOauthToken(oauthToken);
9079
+ }
9080
+
9081
+ @Override
9082
+ public List setPrettyPrint(java.lang.Boolean prettyPrint) {
9083
+ return (List) super.setPrettyPrint(prettyPrint);
9084
+ }
9085
+
9086
+ @Override
9087
+ public List setQuotaUser(java.lang.String quotaUser) {
9088
+ return (List) super.setQuotaUser(quotaUser);
9089
+ }
9090
+
9091
+ @Override
9092
+ public List setUploadType(java.lang.String uploadType) {
9093
+ return (List) super.setUploadType(uploadType);
9094
+ }
9095
+
9096
+ @Override
9097
+ public List setUploadProtocol(java.lang.String uploadProtocol) {
9098
+ return (List) super.setUploadProtocol(uploadProtocol);
9099
+ }
9100
+
9101
+ /** Required. Parent value for `ListRelationsRequest`. */
9102
+ @com.google.api.client.util.Key
9103
+ private java.lang.String parent;
9104
+
9105
+ /** Required. Parent value for `ListRelationsRequest`.
9106
+ */
9107
+ public java.lang.String getParent() {
9108
+ return parent;
9109
+ }
9110
+
9111
+ /** Required. Parent value for `ListRelationsRequest`. */
9112
+ public List setParent(java.lang.String parent) {
9113
+ if (!getSuppressPatternChecks()) {
9114
+ com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
9115
+ "Parameter parent must conform to the pattern " +
9116
+ "^projects/[^/]+/locations/[^/]+$");
9117
+ }
9118
+ this.parent = parent;
9119
+ return this;
9120
+ }
9121
+
9122
+ /** Filtering results. */
9123
+ @com.google.api.client.util.Key
9124
+ private java.lang.String filter;
9125
+
9126
+ /** Filtering results.
9127
+ */
9128
+ public java.lang.String getFilter() {
9129
+ return filter;
9130
+ }
9131
+
9132
+ /** Filtering results. */
9133
+ public List setFilter(java.lang.String filter) {
9134
+ this.filter = filter;
9135
+ return this;
9136
+ }
9137
+
9138
+ /** Field to sort by. See https://google.aip.dev/132#ordering for more details. */
9139
+ @com.google.api.client.util.Key
9140
+ private java.lang.String orderBy;
9141
+
9142
+ /** Field to sort by. See https://google.aip.dev/132#ordering for more details.
9143
+ */
9144
+ public java.lang.String getOrderBy() {
9145
+ return orderBy;
9146
+ }
9147
+
9148
+ /** Field to sort by. See https://google.aip.dev/132#ordering for more details. */
9149
+ public List setOrderBy(java.lang.String orderBy) {
9150
+ this.orderBy = orderBy;
9151
+ return this;
9152
+ }
9153
+
9154
+ /**
9155
+ * Requested page size. Server may return fewer items than requested. If unspecified,
9156
+ * server will pick an appropriate default.
9157
+ */
9158
+ @com.google.api.client.util.Key
9159
+ private java.lang.Integer pageSize;
9160
+
9161
+ /** Requested page size. Server may return fewer items than requested. If unspecified, server will pick
9162
+ an appropriate default.
9163
+ */
9164
+ public java.lang.Integer getPageSize() {
9165
+ return pageSize;
9166
+ }
9167
+
9168
+ /**
9169
+ * Requested page size. Server may return fewer items than requested. If unspecified,
9170
+ * server will pick an appropriate default.
9171
+ */
9172
+ public List setPageSize(java.lang.Integer pageSize) {
9173
+ this.pageSize = pageSize;
9174
+ return this;
9175
+ }
9176
+
9177
+ /** A token identifying a page of results the server should return. */
9178
+ @com.google.api.client.util.Key
9179
+ private java.lang.String pageToken;
9180
+
9181
+ /** A token identifying a page of results the server should return.
9182
+ */
9183
+ public java.lang.String getPageToken() {
9184
+ return pageToken;
9185
+ }
9186
+
9187
+ /** A token identifying a page of results the server should return. */
9188
+ public List setPageToken(java.lang.String pageToken) {
9189
+ this.pageToken = pageToken;
9190
+ return this;
9191
+ }
9192
+
9193
+ @Override
9194
+ public List set(String parameterName, Object value) {
9195
+ return (List) super.set(parameterName, value);
9196
+ }
9197
+ }
9198
+
8830
9199
}
8831
9200
/**
8832
9201
* An accessor for creating requests from the ReportConfigs collection.
0 commit comments