@@ -1902,6 +1902,160 @@ public Attachments attachments() {
1902
1902
*/
1903
1903
public class Attachments {
1904
1904
1905
+ /**
1906
+ * Retrieve an attachment associated with a support case. EXAMPLES: cURL: ```shell
1907
+ * attachment="projects/some-project/cases/23598314/attachments/0684M00000P3h1fQAB" curl \ --header
1908
+ * "Authorization: Bearer $(gcloud auth print-access-token)" \
1909
+ * "https://cloudsupport.googleapis.com/v2/$attachment" ``` Python: ```python import
1910
+ * googleapiclient.discovery api_version = "v2beta" supportApiService =
1911
+ * googleapiclient.discovery.build( serviceName="cloudsupport", version=api_version,
1912
+ * discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}",
1913
+ * ) request = ( supportApiService.cases() .attachments() .get(name="projects/some-
1914
+ * project/cases/43595344/attachments/0684M00000P3h1fQAB") ) print(request.execute()) ```
1915
+ *
1916
+ * Create a request for the method "attachments.get".
1917
+ *
1918
+ * This request holds the parameters needed by the cloudsupport server. After setting any optional
1919
+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.
1920
+ *
1921
+ * @param name Required. The name of the attachment to get.
1922
+ * @return the request
1923
+ */
1924
+ public Get get (java .lang .String name ) throws java .io .IOException {
1925
+ Get result = new Get (name );
1926
+ initialize (result );
1927
+ return result ;
1928
+ }
1929
+
1930
+ public class Get extends CloudSupportRequest <com .google .api .services .cloudsupport .v2beta .model .Attachment > {
1931
+
1932
+ private static final String REST_PATH = "v2beta/{+name}" ;
1933
+
1934
+ private final java .util .regex .Pattern NAME_PATTERN =
1935
+ java .util .regex .Pattern .compile ("^[^/]+/[^/]+/cases/[^/]+/attachments/[^/]+$" );
1936
+
1937
+ /**
1938
+ * Retrieve an attachment associated with a support case. EXAMPLES: cURL: ```shell
1939
+ * attachment="projects/some-project/cases/23598314/attachments/0684M00000P3h1fQAB" curl \
1940
+ * --header "Authorization: Bearer $(gcloud auth print-access-token)" \
1941
+ * "https://cloudsupport.googleapis.com/v2/$attachment" ``` Python: ```python import
1942
+ * googleapiclient.discovery api_version = "v2beta" supportApiService =
1943
+ * googleapiclient.discovery.build( serviceName="cloudsupport", version=api_version, discoveryServ
1944
+ * iceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", ) request
1945
+ * = ( supportApiService.cases() .attachments() .get(name="projects/some-
1946
+ * project/cases/43595344/attachments/0684M00000P3h1fQAB") ) print(request.execute()) ```
1947
+ *
1948
+ * Create a request for the method "attachments.get".
1949
+ *
1950
+ * This request holds the parameters needed by the the cloudsupport server. After setting any
1951
+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. <p>
1952
+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
1953
+ * must be called to initialize this instance immediately after invoking the constructor. </p>
1954
+ *
1955
+ * @param name Required. The name of the attachment to get.
1956
+ * @since 1.13
1957
+ */
1958
+ protected Get (java .lang .String name ) {
1959
+ super (CloudSupport .this , "GET" , REST_PATH , null , com .google .api .services .cloudsupport .v2beta .model .Attachment .class );
1960
+ this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
1961
+ if (!getSuppressPatternChecks ()) {
1962
+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
1963
+ "Parameter name must conform to the pattern " +
1964
+ "^[^/]+/[^/]+/cases/[^/]+/attachments/[^/]+$" );
1965
+ }
1966
+ }
1967
+
1968
+ @ Override
1969
+ public com .google .api .client .http .HttpResponse executeUsingHead () throws java .io .IOException {
1970
+ return super .executeUsingHead ();
1971
+ }
1972
+
1973
+ @ Override
1974
+ public com .google .api .client .http .HttpRequest buildHttpRequestUsingHead () throws java .io .IOException {
1975
+ return super .buildHttpRequestUsingHead ();
1976
+ }
1977
+
1978
+ @ Override
1979
+ public Get set$Xgafv (java .lang .String $Xgafv ) {
1980
+ return (Get ) super .set$Xgafv ($Xgafv );
1981
+ }
1982
+
1983
+ @ Override
1984
+ public Get setAccessToken (java .lang .String accessToken ) {
1985
+ return (Get ) super .setAccessToken (accessToken );
1986
+ }
1987
+
1988
+ @ Override
1989
+ public Get setAlt (java .lang .String alt ) {
1990
+ return (Get ) super .setAlt (alt );
1991
+ }
1992
+
1993
+ @ Override
1994
+ public Get setCallback (java .lang .String callback ) {
1995
+ return (Get ) super .setCallback (callback );
1996
+ }
1997
+
1998
+ @ Override
1999
+ public Get setFields (java .lang .String fields ) {
2000
+ return (Get ) super .setFields (fields );
2001
+ }
2002
+
2003
+ @ Override
2004
+ public Get setKey (java .lang .String key ) {
2005
+ return (Get ) super .setKey (key );
2006
+ }
2007
+
2008
+ @ Override
2009
+ public Get setOauthToken (java .lang .String oauthToken ) {
2010
+ return (Get ) super .setOauthToken (oauthToken );
2011
+ }
2012
+
2013
+ @ Override
2014
+ public Get setPrettyPrint (java .lang .Boolean prettyPrint ) {
2015
+ return (Get ) super .setPrettyPrint (prettyPrint );
2016
+ }
2017
+
2018
+ @ Override
2019
+ public Get setQuotaUser (java .lang .String quotaUser ) {
2020
+ return (Get ) super .setQuotaUser (quotaUser );
2021
+ }
2022
+
2023
+ @ Override
2024
+ public Get setUploadType (java .lang .String uploadType ) {
2025
+ return (Get ) super .setUploadType (uploadType );
2026
+ }
2027
+
2028
+ @ Override
2029
+ public Get setUploadProtocol (java .lang .String uploadProtocol ) {
2030
+ return (Get ) super .setUploadProtocol (uploadProtocol );
2031
+ }
2032
+
2033
+ /** Required. The name of the attachment to get. */
2034
+ @ com .google .api .client .util .Key
2035
+ private java .lang .String name ;
2036
+
2037
+ /** Required. The name of the attachment to get.
2038
+ */
2039
+ public java .lang .String getName () {
2040
+ return name ;
2041
+ }
2042
+
2043
+ /** Required. The name of the attachment to get. */
2044
+ public Get setName (java .lang .String name ) {
2045
+ if (!getSuppressPatternChecks ()) {
2046
+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
2047
+ "Parameter name must conform to the pattern " +
2048
+ "^[^/]+/[^/]+/cases/[^/]+/attachments/[^/]+$" );
2049
+ }
2050
+ this .name = name ;
2051
+ return this ;
2052
+ }
2053
+
2054
+ @ Override
2055
+ public Get set (String parameterName , Object value ) {
2056
+ return (Get ) super .set (parameterName , value );
2057
+ }
2058
+ }
1905
2059
/**
1906
2060
* List all the attachments associated with a support case. EXAMPLES: cURL: ```shell
1907
2061
* case="projects/some-project/cases/23598314" curl \ --header "Authorization: Bearer $(gcloud auth
@@ -2278,6 +2432,158 @@ public Create set(String parameterName, Object value) {
2278
2432
return (Create ) super .set (parameterName , value );
2279
2433
}
2280
2434
}
2435
+ /**
2436
+ * Retrieve a comment. EXAMPLES: cURL: ```shell comment="projects/some-
2437
+ * project/cases/43595344/comments/234567890" curl \ --header "Authorization: Bearer $(gcloud auth
2438
+ * print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$comment" ``` Python: ```python
2439
+ * import googleapiclient.discovery api_version = "v2beta" supportApiService =
2440
+ * googleapiclient.discovery.build( serviceName="cloudsupport", version=api_version,
2441
+ * discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}",
2442
+ * ) request = supportApiService.cases().comments().get( name="projects/some-
2443
+ * project/cases/43595344/comments/234567890", ) print(request.execute()) ```
2444
+ *
2445
+ * Create a request for the method "comments.get".
2446
+ *
2447
+ * This request holds the parameters needed by the cloudsupport server. After setting any optional
2448
+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.
2449
+ *
2450
+ * @param name Required. The name of the comment to retrieve.
2451
+ * @return the request
2452
+ */
2453
+ public Get get (java .lang .String name ) throws java .io .IOException {
2454
+ Get result = new Get (name );
2455
+ initialize (result );
2456
+ return result ;
2457
+ }
2458
+
2459
+ public class Get extends CloudSupportRequest <com .google .api .services .cloudsupport .v2beta .model .Comment > {
2460
+
2461
+ private static final String REST_PATH = "v2beta/{+name}" ;
2462
+
2463
+ private final java .util .regex .Pattern NAME_PATTERN =
2464
+ java .util .regex .Pattern .compile ("^[^/]+/[^/]+/cases/[^/]+/comments/[^/]+$" );
2465
+
2466
+ /**
2467
+ * Retrieve a comment. EXAMPLES: cURL: ```shell comment="projects/some-
2468
+ * project/cases/43595344/comments/234567890" curl \ --header "Authorization: Bearer $(gcloud auth
2469
+ * print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$comment" ``` Python: ```python
2470
+ * import googleapiclient.discovery api_version = "v2beta" supportApiService =
2471
+ * googleapiclient.discovery.build( serviceName="cloudsupport", version=api_version, discoveryServ
2472
+ * iceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", ) request
2473
+ * = supportApiService.cases().comments().get( name="projects/some-
2474
+ * project/cases/43595344/comments/234567890", ) print(request.execute()) ```
2475
+ *
2476
+ * Create a request for the method "comments.get".
2477
+ *
2478
+ * This request holds the parameters needed by the the cloudsupport server. After setting any
2479
+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. <p>
2480
+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
2481
+ * must be called to initialize this instance immediately after invoking the constructor. </p>
2482
+ *
2483
+ * @param name Required. The name of the comment to retrieve.
2484
+ * @since 1.13
2485
+ */
2486
+ protected Get (java .lang .String name ) {
2487
+ super (CloudSupport .this , "GET" , REST_PATH , null , com .google .api .services .cloudsupport .v2beta .model .Comment .class );
2488
+ this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
2489
+ if (!getSuppressPatternChecks ()) {
2490
+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
2491
+ "Parameter name must conform to the pattern " +
2492
+ "^[^/]+/[^/]+/cases/[^/]+/comments/[^/]+$" );
2493
+ }
2494
+ }
2495
+
2496
+ @ Override
2497
+ public com .google .api .client .http .HttpResponse executeUsingHead () throws java .io .IOException {
2498
+ return super .executeUsingHead ();
2499
+ }
2500
+
2501
+ @ Override
2502
+ public com .google .api .client .http .HttpRequest buildHttpRequestUsingHead () throws java .io .IOException {
2503
+ return super .buildHttpRequestUsingHead ();
2504
+ }
2505
+
2506
+ @ Override
2507
+ public Get set$Xgafv (java .lang .String $Xgafv ) {
2508
+ return (Get ) super .set$Xgafv ($Xgafv );
2509
+ }
2510
+
2511
+ @ Override
2512
+ public Get setAccessToken (java .lang .String accessToken ) {
2513
+ return (Get ) super .setAccessToken (accessToken );
2514
+ }
2515
+
2516
+ @ Override
2517
+ public Get setAlt (java .lang .String alt ) {
2518
+ return (Get ) super .setAlt (alt );
2519
+ }
2520
+
2521
+ @ Override
2522
+ public Get setCallback (java .lang .String callback ) {
2523
+ return (Get ) super .setCallback (callback );
2524
+ }
2525
+
2526
+ @ Override
2527
+ public Get setFields (java .lang .String fields ) {
2528
+ return (Get ) super .setFields (fields );
2529
+ }
2530
+
2531
+ @ Override
2532
+ public Get setKey (java .lang .String key ) {
2533
+ return (Get ) super .setKey (key );
2534
+ }
2535
+
2536
+ @ Override
2537
+ public Get setOauthToken (java .lang .String oauthToken ) {
2538
+ return (Get ) super .setOauthToken (oauthToken );
2539
+ }
2540
+
2541
+ @ Override
2542
+ public Get setPrettyPrint (java .lang .Boolean prettyPrint ) {
2543
+ return (Get ) super .setPrettyPrint (prettyPrint );
2544
+ }
2545
+
2546
+ @ Override
2547
+ public Get setQuotaUser (java .lang .String quotaUser ) {
2548
+ return (Get ) super .setQuotaUser (quotaUser );
2549
+ }
2550
+
2551
+ @ Override
2552
+ public Get setUploadType (java .lang .String uploadType ) {
2553
+ return (Get ) super .setUploadType (uploadType );
2554
+ }
2555
+
2556
+ @ Override
2557
+ public Get setUploadProtocol (java .lang .String uploadProtocol ) {
2558
+ return (Get ) super .setUploadProtocol (uploadProtocol );
2559
+ }
2560
+
2561
+ /** Required. The name of the comment to retrieve. */
2562
+ @ com .google .api .client .util .Key
2563
+ private java .lang .String name ;
2564
+
2565
+ /** Required. The name of the comment to retrieve.
2566
+ */
2567
+ public java .lang .String getName () {
2568
+ return name ;
2569
+ }
2570
+
2571
+ /** Required. The name of the comment to retrieve. */
2572
+ public Get setName (java .lang .String name ) {
2573
+ if (!getSuppressPatternChecks ()) {
2574
+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
2575
+ "Parameter name must conform to the pattern " +
2576
+ "^[^/]+/[^/]+/cases/[^/]+/comments/[^/]+$" );
2577
+ }
2578
+ this .name = name ;
2579
+ return this ;
2580
+ }
2581
+
2582
+ @ Override
2583
+ public Get set (String parameterName , Object value ) {
2584
+ return (Get ) super .set (parameterName , value );
2585
+ }
2586
+ }
2281
2587
/**
2282
2588
* List all the comments associated with a case. EXAMPLES: cURL: ```shell case="projects/some-
2283
2589
* project/cases/43595344" curl \ --header "Authorization: Bearer $(gcloud auth print-access-token)"
0 commit comments