@@ -9600,6 +9600,154 @@ public Mode mode() {
9600
9600
*/
9601
9601
public class Mode {
9602
9602
9603
+ /**
9604
+ * Delete schema mode for a subject.
9605
+ *
9606
+ * Create a request for the method "mode.delete".
9607
+ *
9608
+ * This request holds the parameters needed by the managedkafka server. After setting any optional
9609
+ * parameters, call the {@link Delete#execute()} method to invoke the remote operation.
9610
+ *
9611
+ * @param name Required. The resource name of subject to delete the mode for. The format is *
9612
+ * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/mode/{subject}
9613
+ * * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{con
9614
+ * text}/mode/{subject}
9615
+ * @return the request
9616
+ */
9617
+ public Delete delete(java.lang.String name) throws java.io.IOException {
9618
+ Delete result = new Delete(name);
9619
+ initialize(result);
9620
+ return result;
9621
+ }
9622
+
9623
+ public class Delete extends ManagedKafkaRequest<com.google.api.services.managedkafka.v1.model.SchemaMode> {
9624
+
9625
+ private static final String REST_PATH = "v1/{+name}";
9626
+
9627
+ private final java.util.regex.Pattern NAME_PATTERN =
9628
+ java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/mode/.*$");
9629
+
9630
+ /**
9631
+ * Delete schema mode for a subject.
9632
+ *
9633
+ * Create a request for the method "mode.delete".
9634
+ *
9635
+ * This request holds the parameters needed by the the managedkafka server. After setting any
9636
+ * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
9637
+ * <p> {@link
9638
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
9639
+ * be called to initialize this instance immediately after invoking the constructor. </p>
9640
+ *
9641
+ * @param name Required. The resource name of subject to delete the mode for. The format is *
9642
+ * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/mode/{subject}
9643
+ * * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{con
9644
+ * text}/mode/{subject}
9645
+ * @since 1.13
9646
+ */
9647
+ protected Delete(java.lang.String name) {
9648
+ super(ManagedKafka.this, "DELETE", REST_PATH, null, com.google.api.services.managedkafka.v1.model.SchemaMode.class);
9649
+ this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
9650
+ if (!getSuppressPatternChecks()) {
9651
+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
9652
+ "Parameter name must conform to the pattern " +
9653
+ "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/mode/.*$");
9654
+ }
9655
+ }
9656
+
9657
+ @Override
9658
+ public Delete set$Xgafv(java.lang.String $Xgafv) {
9659
+ return (Delete) super.set$Xgafv($Xgafv);
9660
+ }
9661
+
9662
+ @Override
9663
+ public Delete setAccessToken(java.lang.String accessToken) {
9664
+ return (Delete) super.setAccessToken(accessToken);
9665
+ }
9666
+
9667
+ @Override
9668
+ public Delete setAlt(java.lang.String alt) {
9669
+ return (Delete) super.setAlt(alt);
9670
+ }
9671
+
9672
+ @Override
9673
+ public Delete setCallback(java.lang.String callback) {
9674
+ return (Delete) super.setCallback(callback);
9675
+ }
9676
+
9677
+ @Override
9678
+ public Delete setFields(java.lang.String fields) {
9679
+ return (Delete) super.setFields(fields);
9680
+ }
9681
+
9682
+ @Override
9683
+ public Delete setKey(java.lang.String key) {
9684
+ return (Delete) super.setKey(key);
9685
+ }
9686
+
9687
+ @Override
9688
+ public Delete setOauthToken(java.lang.String oauthToken) {
9689
+ return (Delete) super.setOauthToken(oauthToken);
9690
+ }
9691
+
9692
+ @Override
9693
+ public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
9694
+ return (Delete) super.setPrettyPrint(prettyPrint);
9695
+ }
9696
+
9697
+ @Override
9698
+ public Delete setQuotaUser(java.lang.String quotaUser) {
9699
+ return (Delete) super.setQuotaUser(quotaUser);
9700
+ }
9701
+
9702
+ @Override
9703
+ public Delete setUploadType(java.lang.String uploadType) {
9704
+ return (Delete) super.setUploadType(uploadType);
9705
+ }
9706
+
9707
+ @Override
9708
+ public Delete setUploadProtocol(java.lang.String uploadProtocol) {
9709
+ return (Delete) super.setUploadProtocol(uploadProtocol);
9710
+ }
9711
+
9712
+ /**
9713
+ * Required. The resource name of subject to delete the mode for. The format is * proj
9714
+ * ects/{project}/locations/{location}/schemaRegistries/{schema_registry}/mode/{subjec
9715
+ * t} * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/con
9716
+ * texts/{context}/mode/{subject}
9717
+ */
9718
+ @com.google.api.client.util.Key
9719
+ private java.lang.String name;
9720
+
9721
+ /** Required. The resource name of subject to delete the mode for. The format is *
9722
+ projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/mode/{subject} * project
9723
+ s/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/mode/{subjec
9724
+ t}
9725
+ */
9726
+ public java.lang.String getName() {
9727
+ return name;
9728
+ }
9729
+
9730
+ /**
9731
+ * Required. The resource name of subject to delete the mode for. The format is * proj
9732
+ * ects/{project}/locations/{location}/schemaRegistries/{schema_registry}/mode/{subjec
9733
+ * t} * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/con
9734
+ * texts/{context}/mode/{subject}
9735
+ */
9736
+ public Delete setName(java.lang.String name) {
9737
+ if (!getSuppressPatternChecks()) {
9738
+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
9739
+ "Parameter name must conform to the pattern " +
9740
+ "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/mode/.*$");
9741
+ }
9742
+ this.name = name;
9743
+ return this;
9744
+ }
9745
+
9746
+ @Override
9747
+ public Delete set(String parameterName, Object value) {
9748
+ return (Delete) super.set(parameterName, value);
9749
+ }
9750
+ }
9603
9751
/**
9604
9752
* Get mode at global level or for a subject.
9605
9753
*
@@ -12553,6 +12701,154 @@ public Mode mode() {
12553
12701
*/
12554
12702
public class Mode {
12555
12703
12704
+ /**
12705
+ * Delete schema mode for a subject.
12706
+ *
12707
+ * Create a request for the method "mode.delete".
12708
+ *
12709
+ * This request holds the parameters needed by the managedkafka server. After setting any optional
12710
+ * parameters, call the {@link Delete#execute()} method to invoke the remote operation.
12711
+ *
12712
+ * @param name Required. The resource name of subject to delete the mode for. The format is *
12713
+ * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/mode/{subject}
12714
+ * * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{con
12715
+ * text}/mode/{subject}
12716
+ * @return the request
12717
+ */
12718
+ public Delete delete(java.lang.String name) throws java.io.IOException {
12719
+ Delete result = new Delete(name);
12720
+ initialize(result);
12721
+ return result;
12722
+ }
12723
+
12724
+ public class Delete extends ManagedKafkaRequest<com.google.api.services.managedkafka.v1.model.SchemaMode> {
12725
+
12726
+ private static final String REST_PATH = "v1/{+name}";
12727
+
12728
+ private final java.util.regex.Pattern NAME_PATTERN =
12729
+ java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/mode/.*$");
12730
+
12731
+ /**
12732
+ * Delete schema mode for a subject.
12733
+ *
12734
+ * Create a request for the method "mode.delete".
12735
+ *
12736
+ * This request holds the parameters needed by the the managedkafka server. After setting any
12737
+ * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
12738
+ * <p> {@link
12739
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
12740
+ * be called to initialize this instance immediately after invoking the constructor. </p>
12741
+ *
12742
+ * @param name Required. The resource name of subject to delete the mode for. The format is *
12743
+ * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/mode/{subject}
12744
+ * * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{con
12745
+ * text}/mode/{subject}
12746
+ * @since 1.13
12747
+ */
12748
+ protected Delete(java.lang.String name) {
12749
+ super(ManagedKafka.this, "DELETE", REST_PATH, null, com.google.api.services.managedkafka.v1.model.SchemaMode.class);
12750
+ this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
12751
+ if (!getSuppressPatternChecks()) {
12752
+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
12753
+ "Parameter name must conform to the pattern " +
12754
+ "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/mode/.*$");
12755
+ }
12756
+ }
12757
+
12758
+ @Override
12759
+ public Delete set$Xgafv(java.lang.String $Xgafv) {
12760
+ return (Delete) super.set$Xgafv($Xgafv);
12761
+ }
12762
+
12763
+ @Override
12764
+ public Delete setAccessToken(java.lang.String accessToken) {
12765
+ return (Delete) super.setAccessToken(accessToken);
12766
+ }
12767
+
12768
+ @Override
12769
+ public Delete setAlt(java.lang.String alt) {
12770
+ return (Delete) super.setAlt(alt);
12771
+ }
12772
+
12773
+ @Override
12774
+ public Delete setCallback(java.lang.String callback) {
12775
+ return (Delete) super.setCallback(callback);
12776
+ }
12777
+
12778
+ @Override
12779
+ public Delete setFields(java.lang.String fields) {
12780
+ return (Delete) super.setFields(fields);
12781
+ }
12782
+
12783
+ @Override
12784
+ public Delete setKey(java.lang.String key) {
12785
+ return (Delete) super.setKey(key);
12786
+ }
12787
+
12788
+ @Override
12789
+ public Delete setOauthToken(java.lang.String oauthToken) {
12790
+ return (Delete) super.setOauthToken(oauthToken);
12791
+ }
12792
+
12793
+ @Override
12794
+ public Delete setPrettyPrint(java.lang.Boolean prettyPrint) {
12795
+ return (Delete) super.setPrettyPrint(prettyPrint);
12796
+ }
12797
+
12798
+ @Override
12799
+ public Delete setQuotaUser(java.lang.String quotaUser) {
12800
+ return (Delete) super.setQuotaUser(quotaUser);
12801
+ }
12802
+
12803
+ @Override
12804
+ public Delete setUploadType(java.lang.String uploadType) {
12805
+ return (Delete) super.setUploadType(uploadType);
12806
+ }
12807
+
12808
+ @Override
12809
+ public Delete setUploadProtocol(java.lang.String uploadProtocol) {
12810
+ return (Delete) super.setUploadProtocol(uploadProtocol);
12811
+ }
12812
+
12813
+ /**
12814
+ * Required. The resource name of subject to delete the mode for. The format is * projec
12815
+ * ts/{project}/locations/{location}/schemaRegistries/{schema_registry}/mode/{subject} *
12816
+ * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{
12817
+ * context}/mode/{subject}
12818
+ */
12819
+ @com.google.api.client.util.Key
12820
+ private java.lang.String name;
12821
+
12822
+ /** Required. The resource name of subject to delete the mode for. The format is *
12823
+ projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/mode/{subject} * project
12824
+ s/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/mode/{subjec
12825
+ t}
12826
+ */
12827
+ public java.lang.String getName() {
12828
+ return name;
12829
+ }
12830
+
12831
+ /**
12832
+ * Required. The resource name of subject to delete the mode for. The format is * projec
12833
+ * ts/{project}/locations/{location}/schemaRegistries/{schema_registry}/mode/{subject} *
12834
+ * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{
12835
+ * context}/mode/{subject}
12836
+ */
12837
+ public Delete setName(java.lang.String name) {
12838
+ if (!getSuppressPatternChecks()) {
12839
+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
12840
+ "Parameter name must conform to the pattern " +
12841
+ "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/mode/.*$");
12842
+ }
12843
+ this.name = name;
12844
+ return this;
12845
+ }
12846
+
12847
+ @Override
12848
+ public Delete set(String parameterName, Object value) {
12849
+ return (Delete) super.set(parameterName, value);
12850
+ }
12851
+ }
12556
12852
/**
12557
12853
* Get mode at global level or for a subject.
12558
12854
*
0 commit comments