@@ -2209,9 +2209,10 @@ public Delete set(String parameterName, Object value) {
2209
2209
* This request holds the parameters needed by the chat server. After setting any optional
2210
2210
* parameters, call the {@link Get#execute()} method to invoke the remote operation.
2211
2211
*
2212
- * @param name Required. Resource name of the membership to retrieve. To get the app's own membership, you can
2213
- * optionally use `spaces/{space}/members/app`. Format: `spaces/{space}/members/{member}` or
2214
- * `spaces/{space}/members/app` When [authenticated as a
2212
+ * @param name Required. Resource name of the membership to retrieve. To get the app's own membership [by using
2213
+ * user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-
2214
+ * chat-user), you can optionally use `spaces/{space}/members/app`. Format:
2215
+ * `spaces/{space}/members/{member}` or `spaces/{space}/members/app` When [authenticated as a
2215
2216
* user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), you
2216
2217
* can use the user's email as an alias for `{member}`. For example,
2217
2218
* `spaces/{space}/members/[email protected] ` where `[email protected] ` is the email of the
@@ -2246,9 +2247,10 @@ public class Get extends HangoutsChatRequest<com.google.api.services.chat.v1.mod
2246
2247
* Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
2247
2248
* called to initialize this instance immediately after invoking the constructor. </p>
2248
2249
*
2249
- * @param name Required. Resource name of the membership to retrieve. To get the app's own membership, you can
2250
- * optionally use `spaces/{space}/members/app`. Format: `spaces/{space}/members/{member}` or
2251
- * `spaces/{space}/members/app` When [authenticated as a
2250
+ * @param name Required. Resource name of the membership to retrieve. To get the app's own membership [by using
2251
+ * user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-
2252
+ * chat-user), you can optionally use `spaces/{space}/members/app`. Format:
2253
+ * `spaces/{space}/members/{member}` or `spaces/{space}/members/app` When [authenticated as a
2252
2254
* user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), you
2253
2255
* can use the user's email as an alias for `{member}`. For example,
2254
2256
* `spaces/{space}/members/[email protected] ` where `[email protected] ` is the email of the
@@ -2331,8 +2333,9 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) {
2331
2333
}
2332
2334
2333
2335
/**
2334
- * Required. Resource name of the membership to retrieve. To get the app's own membership,
2335
- * you can optionally use `spaces/{space}/members/app`. Format:
2336
+ * Required. Resource name of the membership to retrieve. To get the app's own membership
2337
+ * [by using user authentication](https://developers.google.com/workspace/chat/authenticate-
2338
+ * authorize-chat-user), you can optionally use `spaces/{space}/members/app`. Format:
2336
2339
* `spaces/{space}/members/{member}` or `spaces/{space}/members/app` When [authenticated as
2337
2340
* a user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
2338
2341
* you can use the user's email as an alias for `{member}`. For example,
@@ -2342,9 +2345,10 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) {
2342
2345
@ com .google .api .client .util .Key
2343
2346
private java .lang .String name ;
2344
2347
2345
- /** Required. Resource name of the membership to retrieve. To get the app's own membership, you can
2346
- optionally use `spaces/{space}/members/app`. Format: `spaces/{space}/members/{member}` or
2347
- `spaces/{space}/members/app` When [authenticated as a
2348
+ /** Required. Resource name of the membership to retrieve. To get the app's own membership [by using
2349
+ user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-
2350
+ user), you can optionally use `spaces/{space}/members/app`. Format:
2351
+ `spaces/{space}/members/{member}` or `spaces/{space}/members/app` When [authenticated as a
2348
2352
user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), you can use
2349
2353
the user's email as an alias for `{member}`. For example,
2350
2354
`spaces/{space}/members/[email protected] ` where `[email protected] ` is the email of the Google
@@ -2355,8 +2359,9 @@ public java.lang.String getName() {
2355
2359
}
2356
2360
2357
2361
/**
2358
- * Required. Resource name of the membership to retrieve. To get the app's own membership,
2359
- * you can optionally use `spaces/{space}/members/app`. Format:
2362
+ * Required. Resource name of the membership to retrieve. To get the app's own membership
2363
+ * [by using user authentication](https://developers.google.com/workspace/chat/authenticate-
2364
+ * authorize-chat-user), you can optionally use `spaces/{space}/members/app`. Format:
2360
2365
* `spaces/{space}/members/{member}` or `spaces/{space}/members/app` When [authenticated as
2361
2366
* a user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
2362
2367
* you can use the user's email as an alias for `{member}`. For example,
@@ -2709,6 +2714,167 @@ public List set(String parameterName, Object value) {
2709
2714
return (List ) super .set (parameterName , value );
2710
2715
}
2711
2716
}
2717
+ /**
2718
+ * Updates a membership. Requires [user authentication](https://developers.google.com/workspace/chat
2719
+ * /authenticate-authorize-chat-user).
2720
+ *
2721
+ * Create a request for the method "members.patch".
2722
+ *
2723
+ * This request holds the parameters needed by the chat server. After setting any optional
2724
+ * parameters, call the {@link Patch#execute()} method to invoke the remote operation.
2725
+ *
2726
+ * @param name Resource name of the membership, assigned by the server. Format: `spaces/{space}/members/{member}`
2727
+ * @param content the {@link com.google.api.services.chat.v1.model.Membership}
2728
+ * @return the request
2729
+ */
2730
+ public Patch patch (java .lang .String name , com .google .api .services .chat .v1 .model .Membership content ) throws java .io .IOException {
2731
+ Patch result = new Patch (name , content );
2732
+ initialize (result );
2733
+ return result ;
2734
+ }
2735
+
2736
+ public class Patch extends HangoutsChatRequest <com .google .api .services .chat .v1 .model .Membership > {
2737
+
2738
+ private static final String REST_PATH = "v1/{+name}" ;
2739
+
2740
+ private final java .util .regex .Pattern NAME_PATTERN =
2741
+ java .util .regex .Pattern .compile ("^spaces/[^/]+/members/[^/]+$" );
2742
+
2743
+ /**
2744
+ * Updates a membership. Requires [user
2745
+ * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
2746
+ *
2747
+ * Create a request for the method "members.patch".
2748
+ *
2749
+ * This request holds the parameters needed by the the chat server. After setting any optional
2750
+ * parameters, call the {@link Patch#execute()} method to invoke the remote operation. <p> {@link
2751
+ * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
2752
+ * be called to initialize this instance immediately after invoking the constructor. </p>
2753
+ *
2754
+ * @param name Resource name of the membership, assigned by the server. Format: `spaces/{space}/members/{member}`
2755
+ * @param content the {@link com.google.api.services.chat.v1.model.Membership}
2756
+ * @since 1.13
2757
+ */
2758
+ protected Patch (java .lang .String name , com .google .api .services .chat .v1 .model .Membership content ) {
2759
+ super (HangoutsChat .this , "PATCH" , REST_PATH , content , com .google .api .services .chat .v1 .model .Membership .class );
2760
+ this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
2761
+ if (!getSuppressPatternChecks ()) {
2762
+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
2763
+ "Parameter name must conform to the pattern " +
2764
+ "^spaces/[^/]+/members/[^/]+$" );
2765
+ }
2766
+ }
2767
+
2768
+ @ Override
2769
+ public Patch set$Xgafv (java .lang .String $Xgafv ) {
2770
+ return (Patch ) super .set$Xgafv ($Xgafv );
2771
+ }
2772
+
2773
+ @ Override
2774
+ public Patch setAccessToken (java .lang .String accessToken ) {
2775
+ return (Patch ) super .setAccessToken (accessToken );
2776
+ }
2777
+
2778
+ @ Override
2779
+ public Patch setAlt (java .lang .String alt ) {
2780
+ return (Patch ) super .setAlt (alt );
2781
+ }
2782
+
2783
+ @ Override
2784
+ public Patch setCallback (java .lang .String callback ) {
2785
+ return (Patch ) super .setCallback (callback );
2786
+ }
2787
+
2788
+ @ Override
2789
+ public Patch setFields (java .lang .String fields ) {
2790
+ return (Patch ) super .setFields (fields );
2791
+ }
2792
+
2793
+ @ Override
2794
+ public Patch setKey (java .lang .String key ) {
2795
+ return (Patch ) super .setKey (key );
2796
+ }
2797
+
2798
+ @ Override
2799
+ public Patch setOauthToken (java .lang .String oauthToken ) {
2800
+ return (Patch ) super .setOauthToken (oauthToken );
2801
+ }
2802
+
2803
+ @ Override
2804
+ public Patch setPrettyPrint (java .lang .Boolean prettyPrint ) {
2805
+ return (Patch ) super .setPrettyPrint (prettyPrint );
2806
+ }
2807
+
2808
+ @ Override
2809
+ public Patch setQuotaUser (java .lang .String quotaUser ) {
2810
+ return (Patch ) super .setQuotaUser (quotaUser );
2811
+ }
2812
+
2813
+ @ Override
2814
+ public Patch setUploadType (java .lang .String uploadType ) {
2815
+ return (Patch ) super .setUploadType (uploadType );
2816
+ }
2817
+
2818
+ @ Override
2819
+ public Patch setUploadProtocol (java .lang .String uploadProtocol ) {
2820
+ return (Patch ) super .setUploadProtocol (uploadProtocol );
2821
+ }
2822
+
2823
+ /**
2824
+ * Resource name of the membership, assigned by the server. Format:
2825
+ * `spaces/{space}/members/{member}`
2826
+ */
2827
+ @ com .google .api .client .util .Key
2828
+ private java .lang .String name ;
2829
+
2830
+ /** Resource name of the membership, assigned by the server. Format: `spaces/{space}/members/{member}`
2831
+ */
2832
+ public java .lang .String getName () {
2833
+ return name ;
2834
+ }
2835
+
2836
+ /**
2837
+ * Resource name of the membership, assigned by the server. Format:
2838
+ * `spaces/{space}/members/{member}`
2839
+ */
2840
+ public Patch setName (java .lang .String name ) {
2841
+ if (!getSuppressPatternChecks ()) {
2842
+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
2843
+ "Parameter name must conform to the pattern " +
2844
+ "^spaces/[^/]+/members/[^/]+$" );
2845
+ }
2846
+ this .name = name ;
2847
+ return this ;
2848
+ }
2849
+
2850
+ /**
2851
+ * Required. The field paths to update. Separate multiple values with commas or use `*` to
2852
+ * update all field paths. Currently supported field paths: - `role`
2853
+ */
2854
+ @ com .google .api .client .util .Key
2855
+ private String updateMask ;
2856
+
2857
+ /** Required. The field paths to update. Separate multiple values with commas or use `*` to update all
2858
+ field paths. Currently supported field paths: - `role`
2859
+ */
2860
+ public String getUpdateMask () {
2861
+ return updateMask ;
2862
+ }
2863
+
2864
+ /**
2865
+ * Required. The field paths to update. Separate multiple values with commas or use `*` to
2866
+ * update all field paths. Currently supported field paths: - `role`
2867
+ */
2868
+ public Patch setUpdateMask (String updateMask ) {
2869
+ this .updateMask = updateMask ;
2870
+ return this ;
2871
+ }
2872
+
2873
+ @ Override
2874
+ public Patch set (String parameterName , Object value ) {
2875
+ return (Patch ) super .set (parameterName , value );
2876
+ }
2877
+ }
2712
2878
2713
2879
}
2714
2880
/**
0 commit comments