@@ -1849,6 +1849,154 @@ public Tests tests() {
18491849 */
18501850 public class Tests {
18511851
1852+ /**
1853+ * Abort automated test run on release.
1854+ *
1855+ * Create a request for the method "tests.cancel".
1856+ *
1857+ * This request holds the parameters needed by the firebaseappdistribution server. After setting
1858+ * any optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
1859+ *
1860+ * @param name Required. The name of the release test resource. Format:
1861+ * `projects/{project_number}/apps/{app_id}/releases/{release_id}/tests/{test_id}`
1862+ * @return the request
1863+ */
1864+ public Cancel cancel (java .lang .String name ) throws java .io .IOException {
1865+ Cancel result = new Cancel (name );
1866+ initialize (result );
1867+ return result ;
1868+ }
1869+
1870+ public class Cancel extends FirebaseAppDistributionRequest <com .google .api .services .firebaseappdistribution .v1alpha .model .GoogleFirebaseAppdistroV1alphaCancelReleaseTestResponse > {
1871+
1872+ private static final String REST_PATH = "v1alpha/{+name}:cancel" ;
1873+
1874+ private final java .util .regex .Pattern NAME_PATTERN =
1875+ java .util .regex .Pattern .compile ("^projects/[^/]+/apps/[^/]+/releases/[^/]+/tests/[^/]+$" );
1876+
1877+ /**
1878+ * Abort automated test run on release.
1879+ *
1880+ * Create a request for the method "tests.cancel".
1881+ *
1882+ * This request holds the parameters needed by the the firebaseappdistribution server. After
1883+ * setting any optional parameters, call the {@link Cancel#execute()} method to invoke the remote
1884+ * operation. <p> {@link
1885+ * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
1886+ * be called to initialize this instance immediately after invoking the constructor. </p>
1887+ *
1888+ * @param name Required. The name of the release test resource. Format:
1889+ * `projects/{project_number}/apps/{app_id}/releases/{release_id}/tests/{test_id}`
1890+ * @since 1.13
1891+ */
1892+ protected Cancel (java .lang .String name ) {
1893+ super (FirebaseAppDistribution .this , "GET" , REST_PATH , null , com .google .api .services .firebaseappdistribution .v1alpha .model .GoogleFirebaseAppdistroV1alphaCancelReleaseTestResponse .class );
1894+ this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
1895+ if (!getSuppressPatternChecks ()) {
1896+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
1897+ "Parameter name must conform to the pattern " +
1898+ "^projects/[^/]+/apps/[^/]+/releases/[^/]+/tests/[^/]+$" );
1899+ }
1900+ }
1901+
1902+ @ Override
1903+ public com .google .api .client .http .HttpResponse executeUsingHead () throws java .io .IOException {
1904+ return super .executeUsingHead ();
1905+ }
1906+
1907+ @ Override
1908+ public com .google .api .client .http .HttpRequest buildHttpRequestUsingHead () throws java .io .IOException {
1909+ return super .buildHttpRequestUsingHead ();
1910+ }
1911+
1912+ @ Override
1913+ public Cancel set$Xgafv (java .lang .String $Xgafv ) {
1914+ return (Cancel ) super .set$Xgafv ($Xgafv );
1915+ }
1916+
1917+ @ Override
1918+ public Cancel setAccessToken (java .lang .String accessToken ) {
1919+ return (Cancel ) super .setAccessToken (accessToken );
1920+ }
1921+
1922+ @ Override
1923+ public Cancel setAlt (java .lang .String alt ) {
1924+ return (Cancel ) super .setAlt (alt );
1925+ }
1926+
1927+ @ Override
1928+ public Cancel setCallback (java .lang .String callback ) {
1929+ return (Cancel ) super .setCallback (callback );
1930+ }
1931+
1932+ @ Override
1933+ public Cancel setFields (java .lang .String fields ) {
1934+ return (Cancel ) super .setFields (fields );
1935+ }
1936+
1937+ @ Override
1938+ public Cancel setKey (java .lang .String key ) {
1939+ return (Cancel ) super .setKey (key );
1940+ }
1941+
1942+ @ Override
1943+ public Cancel setOauthToken (java .lang .String oauthToken ) {
1944+ return (Cancel ) super .setOauthToken (oauthToken );
1945+ }
1946+
1947+ @ Override
1948+ public Cancel setPrettyPrint (java .lang .Boolean prettyPrint ) {
1949+ return (Cancel ) super .setPrettyPrint (prettyPrint );
1950+ }
1951+
1952+ @ Override
1953+ public Cancel setQuotaUser (java .lang .String quotaUser ) {
1954+ return (Cancel ) super .setQuotaUser (quotaUser );
1955+ }
1956+
1957+ @ Override
1958+ public Cancel setUploadType (java .lang .String uploadType ) {
1959+ return (Cancel ) super .setUploadType (uploadType );
1960+ }
1961+
1962+ @ Override
1963+ public Cancel setUploadProtocol (java .lang .String uploadProtocol ) {
1964+ return (Cancel ) super .setUploadProtocol (uploadProtocol );
1965+ }
1966+
1967+ /**
1968+ * Required. The name of the release test resource. Format:
1969+ * `projects/{project_number}/apps/{app_id}/releases/{release_id}/tests/{test_id}`
1970+ */
1971+ @ com .google .api .client .util .Key
1972+ private java .lang .String name ;
1973+
1974+ /** Required. The name of the release test resource. Format:
1975+ `projects/{project_number}/apps/{app_id}/releases/{release_id}/tests/{test_id}`
1976+ */
1977+ public java .lang .String getName () {
1978+ return name ;
1979+ }
1980+
1981+ /**
1982+ * Required. The name of the release test resource. Format:
1983+ * `projects/{project_number}/apps/{app_id}/releases/{release_id}/tests/{test_id}`
1984+ */
1985+ public Cancel setName (java .lang .String name ) {
1986+ if (!getSuppressPatternChecks ()) {
1987+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
1988+ "Parameter name must conform to the pattern " +
1989+ "^projects/[^/]+/apps/[^/]+/releases/[^/]+/tests/[^/]+$" );
1990+ }
1991+ this .name = name ;
1992+ return this ;
1993+ }
1994+
1995+ @ Override
1996+ public Cancel set (String parameterName , Object value ) {
1997+ return (Cancel ) super .set (parameterName , value );
1998+ }
1999+ }
18522000 /**
18532001 * Run automated test(s) on release.
18542002 *
0 commit comments