@@ -5718,6 +5718,290 @@ public Deprecate set(String parameterName, Object value) {
5718
5718
return (Deprecate) super.set(parameterName, value);
5719
5719
}
5720
5720
}
5721
+ /**
5722
+ * Publish request for the CustomConnectorVersion. Once approved, the CustomConnectorVersion will be
5723
+ * published as PartnerConnector.
5724
+ *
5725
+ * Create a request for the method "customConnectorVersions.publish".
5726
+ *
5727
+ * This request holds the parameters needed by the connectors server. After setting any optional
5728
+ * parameters, call the {@link Publish#execute()} method to invoke the remote operation.
5729
+ *
5730
+ * @param name Required. Resource name of the form: `projects/{project}/locations/{location}/customConnectors/{cust
5731
+ * om_connector}/customConnectorVersions/{custom_connector_version}`
5732
+ * @param content the {@link com.google.api.services.connectors.v1.model.PublishCustomConnectorVersionRequest}
5733
+ * @return the request
5734
+ */
5735
+ public Publish publish(java.lang.String name, com.google.api.services.connectors.v1.model.PublishCustomConnectorVersionRequest content) throws java.io.IOException {
5736
+ Publish result = new Publish(name, content);
5737
+ initialize(result);
5738
+ return result;
5739
+ }
5740
+
5741
+ public class Publish extends ConnectorsRequest<com.google.api.services.connectors.v1.model.Operation> {
5742
+
5743
+ private static final String REST_PATH = "v1/{+name}:publish";
5744
+
5745
+ private final java.util.regex.Pattern NAME_PATTERN =
5746
+ java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/customConnectors/[^/]+/customConnectorVersions/[^/]+$");
5747
+
5748
+ /**
5749
+ * Publish request for the CustomConnectorVersion. Once approved, the CustomConnectorVersion will
5750
+ * be published as PartnerConnector.
5751
+ *
5752
+ * Create a request for the method "customConnectorVersions.publish".
5753
+ *
5754
+ * This request holds the parameters needed by the the connectors server. After setting any
5755
+ * optional parameters, call the {@link Publish#execute()} method to invoke the remote operation.
5756
+ * <p> {@link
5757
+ * Publish#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
5758
+ * be called to initialize this instance immediately after invoking the constructor. </p>
5759
+ *
5760
+ * @param name Required. Resource name of the form: `projects/{project}/locations/{location}/customConnectors/{cust
5761
+ * om_connector}/customConnectorVersions/{custom_connector_version}`
5762
+ * @param content the {@link com.google.api.services.connectors.v1.model.PublishCustomConnectorVersionRequest}
5763
+ * @since 1.13
5764
+ */
5765
+ protected Publish(java.lang.String name, com.google.api.services.connectors.v1.model.PublishCustomConnectorVersionRequest content) {
5766
+ super(Connectors.this, "POST", REST_PATH, content, com.google.api.services.connectors.v1.model.Operation.class);
5767
+ this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
5768
+ if (!getSuppressPatternChecks()) {
5769
+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
5770
+ "Parameter name must conform to the pattern " +
5771
+ "^projects/[^/]+/locations/[^/]+/customConnectors/[^/]+/customConnectorVersions/[^/]+$");
5772
+ }
5773
+ }
5774
+
5775
+ @Override
5776
+ public Publish set$Xgafv(java.lang.String $Xgafv) {
5777
+ return (Publish) super.set$Xgafv($Xgafv);
5778
+ }
5779
+
5780
+ @Override
5781
+ public Publish setAccessToken(java.lang.String accessToken) {
5782
+ return (Publish) super.setAccessToken(accessToken);
5783
+ }
5784
+
5785
+ @Override
5786
+ public Publish setAlt(java.lang.String alt) {
5787
+ return (Publish) super.setAlt(alt);
5788
+ }
5789
+
5790
+ @Override
5791
+ public Publish setCallback(java.lang.String callback) {
5792
+ return (Publish) super.setCallback(callback);
5793
+ }
5794
+
5795
+ @Override
5796
+ public Publish setFields(java.lang.String fields) {
5797
+ return (Publish) super.setFields(fields);
5798
+ }
5799
+
5800
+ @Override
5801
+ public Publish setKey(java.lang.String key) {
5802
+ return (Publish) super.setKey(key);
5803
+ }
5804
+
5805
+ @Override
5806
+ public Publish setOauthToken(java.lang.String oauthToken) {
5807
+ return (Publish) super.setOauthToken(oauthToken);
5808
+ }
5809
+
5810
+ @Override
5811
+ public Publish setPrettyPrint(java.lang.Boolean prettyPrint) {
5812
+ return (Publish) super.setPrettyPrint(prettyPrint);
5813
+ }
5814
+
5815
+ @Override
5816
+ public Publish setQuotaUser(java.lang.String quotaUser) {
5817
+ return (Publish) super.setQuotaUser(quotaUser);
5818
+ }
5819
+
5820
+ @Override
5821
+ public Publish setUploadType(java.lang.String uploadType) {
5822
+ return (Publish) super.setUploadType(uploadType);
5823
+ }
5824
+
5825
+ @Override
5826
+ public Publish setUploadProtocol(java.lang.String uploadProtocol) {
5827
+ return (Publish) super.setUploadProtocol(uploadProtocol);
5828
+ }
5829
+
5830
+ /**
5831
+ * Required. Resource name of the form: `projects/{project}/locations/{location}/customC
5832
+ * onnectors/{custom_connector}/customConnectorVersions/{custom_connector_version}`
5833
+ */
5834
+ @com.google.api.client.util.Key
5835
+ private java.lang.String name;
5836
+
5837
+ /** Required. Resource name of the form: `projects/{project}/locations/{location}/customConnectors/{cus
5838
+ tom_connector}/customConnectorVersions/{custom_connector_version}`
5839
+ */
5840
+ public java.lang.String getName() {
5841
+ return name;
5842
+ }
5843
+
5844
+ /**
5845
+ * Required. Resource name of the form: `projects/{project}/locations/{location}/customC
5846
+ * onnectors/{custom_connector}/customConnectorVersions/{custom_connector_version}`
5847
+ */
5848
+ public Publish setName(java.lang.String name) {
5849
+ if (!getSuppressPatternChecks()) {
5850
+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
5851
+ "Parameter name must conform to the pattern " +
5852
+ "^projects/[^/]+/locations/[^/]+/customConnectors/[^/]+/customConnectorVersions/[^/]+$");
5853
+ }
5854
+ this.name = name;
5855
+ return this;
5856
+ }
5857
+
5858
+ @Override
5859
+ public Publish set(String parameterName, Object value) {
5860
+ return (Publish) super.set(parameterName, value);
5861
+ }
5862
+ }
5863
+ /**
5864
+ * Withdraw the publish request for the CustomConnectorVersion. This can only be used before the
5865
+ * CustomConnectorVersion is published.
5866
+ *
5867
+ * Create a request for the method "customConnectorVersions.withdraw".
5868
+ *
5869
+ * This request holds the parameters needed by the connectors server. After setting any optional
5870
+ * parameters, call the {@link Withdraw#execute()} method to invoke the remote operation.
5871
+ *
5872
+ * @param name Required. Resource name of the form: `projects/{project}/locations/{location}/customConnectors/{cust
5873
+ * om_connector}/customConnectorVersions/{custom_connector_version}`
5874
+ * @param content the {@link com.google.api.services.connectors.v1.model.WithdrawCustomConnectorVersionRequest}
5875
+ * @return the request
5876
+ */
5877
+ public Withdraw withdraw(java.lang.String name, com.google.api.services.connectors.v1.model.WithdrawCustomConnectorVersionRequest content) throws java.io.IOException {
5878
+ Withdraw result = new Withdraw(name, content);
5879
+ initialize(result);
5880
+ return result;
5881
+ }
5882
+
5883
+ public class Withdraw extends ConnectorsRequest<com.google.api.services.connectors.v1.model.Operation> {
5884
+
5885
+ private static final String REST_PATH = "v1/{+name}:withdraw";
5886
+
5887
+ private final java.util.regex.Pattern NAME_PATTERN =
5888
+ java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/customConnectors/[^/]+/customConnectorVersions/[^/]+$");
5889
+
5890
+ /**
5891
+ * Withdraw the publish request for the CustomConnectorVersion. This can only be used before the
5892
+ * CustomConnectorVersion is published.
5893
+ *
5894
+ * Create a request for the method "customConnectorVersions.withdraw".
5895
+ *
5896
+ * This request holds the parameters needed by the the connectors server. After setting any
5897
+ * optional parameters, call the {@link Withdraw#execute()} method to invoke the remote operation.
5898
+ * <p> {@link
5899
+ * Withdraw#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
5900
+ * must be called to initialize this instance immediately after invoking the constructor. </p>
5901
+ *
5902
+ * @param name Required. Resource name of the form: `projects/{project}/locations/{location}/customConnectors/{cust
5903
+ * om_connector}/customConnectorVersions/{custom_connector_version}`
5904
+ * @param content the {@link com.google.api.services.connectors.v1.model.WithdrawCustomConnectorVersionRequest}
5905
+ * @since 1.13
5906
+ */
5907
+ protected Withdraw(java.lang.String name, com.google.api.services.connectors.v1.model.WithdrawCustomConnectorVersionRequest content) {
5908
+ super(Connectors.this, "POST", REST_PATH, content, com.google.api.services.connectors.v1.model.Operation.class);
5909
+ this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
5910
+ if (!getSuppressPatternChecks()) {
5911
+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
5912
+ "Parameter name must conform to the pattern " +
5913
+ "^projects/[^/]+/locations/[^/]+/customConnectors/[^/]+/customConnectorVersions/[^/]+$");
5914
+ }
5915
+ }
5916
+
5917
+ @Override
5918
+ public Withdraw set$Xgafv(java.lang.String $Xgafv) {
5919
+ return (Withdraw) super.set$Xgafv($Xgafv);
5920
+ }
5921
+
5922
+ @Override
5923
+ public Withdraw setAccessToken(java.lang.String accessToken) {
5924
+ return (Withdraw) super.setAccessToken(accessToken);
5925
+ }
5926
+
5927
+ @Override
5928
+ public Withdraw setAlt(java.lang.String alt) {
5929
+ return (Withdraw) super.setAlt(alt);
5930
+ }
5931
+
5932
+ @Override
5933
+ public Withdraw setCallback(java.lang.String callback) {
5934
+ return (Withdraw) super.setCallback(callback);
5935
+ }
5936
+
5937
+ @Override
5938
+ public Withdraw setFields(java.lang.String fields) {
5939
+ return (Withdraw) super.setFields(fields);
5940
+ }
5941
+
5942
+ @Override
5943
+ public Withdraw setKey(java.lang.String key) {
5944
+ return (Withdraw) super.setKey(key);
5945
+ }
5946
+
5947
+ @Override
5948
+ public Withdraw setOauthToken(java.lang.String oauthToken) {
5949
+ return (Withdraw) super.setOauthToken(oauthToken);
5950
+ }
5951
+
5952
+ @Override
5953
+ public Withdraw setPrettyPrint(java.lang.Boolean prettyPrint) {
5954
+ return (Withdraw) super.setPrettyPrint(prettyPrint);
5955
+ }
5956
+
5957
+ @Override
5958
+ public Withdraw setQuotaUser(java.lang.String quotaUser) {
5959
+ return (Withdraw) super.setQuotaUser(quotaUser);
5960
+ }
5961
+
5962
+ @Override
5963
+ public Withdraw setUploadType(java.lang.String uploadType) {
5964
+ return (Withdraw) super.setUploadType(uploadType);
5965
+ }
5966
+
5967
+ @Override
5968
+ public Withdraw setUploadProtocol(java.lang.String uploadProtocol) {
5969
+ return (Withdraw) super.setUploadProtocol(uploadProtocol);
5970
+ }
5971
+
5972
+ /**
5973
+ * Required. Resource name of the form: `projects/{project}/locations/{location}/customC
5974
+ * onnectors/{custom_connector}/customConnectorVersions/{custom_connector_version}`
5975
+ */
5976
+ @com.google.api.client.util.Key
5977
+ private java.lang.String name;
5978
+
5979
+ /** Required. Resource name of the form: `projects/{project}/locations/{location}/customConnectors/{cus
5980
+ tom_connector}/customConnectorVersions/{custom_connector_version}`
5981
+ */
5982
+ public java.lang.String getName() {
5983
+ return name;
5984
+ }
5985
+
5986
+ /**
5987
+ * Required. Resource name of the form: `projects/{project}/locations/{location}/customC
5988
+ * onnectors/{custom_connector}/customConnectorVersions/{custom_connector_version}`
5989
+ */
5990
+ public Withdraw setName(java.lang.String name) {
5991
+ if (!getSuppressPatternChecks()) {
5992
+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
5993
+ "Parameter name must conform to the pattern " +
5994
+ "^projects/[^/]+/locations/[^/]+/customConnectors/[^/]+/customConnectorVersions/[^/]+$");
5995
+ }
5996
+ this.name = name;
5997
+ return this;
5998
+ }
5999
+
6000
+ @Override
6001
+ public Withdraw set(String parameterName, Object value) {
6002
+ return (Withdraw) super.set(parameterName, value);
6003
+ }
6004
+ }
5721
6005
5722
6006
}
5723
6007
}
@@ -9109,7 +9393,7 @@ public class Operations {
9109
9393
* it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
9110
9394
* methods to check whether the cancellation succeeded or whether the operation completed despite
9111
9395
* cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
9112
- * operation with an Operation.error value with a google.rpc.Status.code of 1 , corresponding to
9396
+ * operation with an Operation.error value with a google.rpc.Status.code of `1` , corresponding to
9113
9397
* `Code.CANCELLED`.
9114
9398
*
9115
9399
* Create a request for the method "operations.cancel".
@@ -9140,7 +9424,7 @@ public class Cancel extends ConnectorsRequest<com.google.api.services.connectors
9140
9424
* it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
9141
9425
* methods to check whether the cancellation succeeded or whether the operation completed despite
9142
9426
* cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
9143
- * operation with an Operation.error value with a google.rpc.Status.code of 1 , corresponding to
9427
+ * operation with an Operation.error value with a google.rpc.Status.code of `1` , corresponding to
9144
9428
* `Code.CANCELLED`.
9145
9429
*
9146
9430
* Create a request for the method "operations.cancel".
0 commit comments