@@ -2105,6 +2105,338 @@ public RestrictAllowedResources set(String parameterName, Object value) {
21052105 }
21062106 }
21072107
2108+ /**
2109+ * An accessor for creating requests from the Updates collection.
2110+ *
2111+ * <p>The typical use is:</p>
2112+ * <pre>
2113+ * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
2114+ * {@code Assuredworkloads.Updates.List request = assuredworkloads.updates().list(parameters ...)}
2115+ * </pre>
2116+ *
2117+ * @return the resource collection
2118+ */
2119+ public Updates updates () {
2120+ return new Updates ();
2121+ }
2122+
2123+ /**
2124+ * The "updates" collection of methods.
2125+ */
2126+ public class Updates {
2127+
2128+ /**
2129+ * This endpoint creates a new operation to apply the given update.
2130+ *
2131+ * Create a request for the method "updates.apply".
2132+ *
2133+ * This request holds the parameters needed by the assuredworkloads server. After setting any
2134+ * optional parameters, call the {@link Apply#execute()} method to invoke the remote operation.
2135+ *
2136+ * @param name Required. The resource name of the update. Format:
2137+ * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}/updates/{update_id}
2138+ * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1ApplyWorkloadUpdateRequest}
2139+ * @return the request
2140+ */
2141+ public Apply apply (java .lang .String name , com .google .api .services .assuredworkloads .v1beta1 .model .GoogleCloudAssuredworkloadsV1beta1ApplyWorkloadUpdateRequest content ) throws java .io .IOException {
2142+ Apply result = new Apply (name , content );
2143+ initialize (result );
2144+ return result ;
2145+ }
2146+
2147+ public class Apply extends AssuredworkloadsRequest <com .google .api .services .assuredworkloads .v1beta1 .model .GoogleLongrunningOperation > {
2148+
2149+ private static final String REST_PATH = "v1beta1/{+name}:apply" ;
2150+
2151+ private final java .util .regex .Pattern NAME_PATTERN =
2152+ java .util .regex .Pattern .compile ("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/updates/[^/]+$" );
2153+
2154+ /**
2155+ * This endpoint creates a new operation to apply the given update.
2156+ *
2157+ * Create a request for the method "updates.apply".
2158+ *
2159+ * This request holds the parameters needed by the the assuredworkloads server. After setting any
2160+ * optional parameters, call the {@link Apply#execute()} method to invoke the remote operation.
2161+ * <p> {@link
2162+ * Apply#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
2163+ * be called to initialize this instance immediately after invoking the constructor. </p>
2164+ *
2165+ * @param name Required. The resource name of the update. Format:
2166+ * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}/updates/{update_id}
2167+ * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1ApplyWorkloadUpdateRequest}
2168+ * @since 1.13
2169+ */
2170+ protected Apply (java .lang .String name , com .google .api .services .assuredworkloads .v1beta1 .model .GoogleCloudAssuredworkloadsV1beta1ApplyWorkloadUpdateRequest content ) {
2171+ super (Assuredworkloads .this , "POST" , REST_PATH , content , com .google .api .services .assuredworkloads .v1beta1 .model .GoogleLongrunningOperation .class );
2172+ this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
2173+ if (!getSuppressPatternChecks ()) {
2174+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
2175+ "Parameter name must conform to the pattern " +
2176+ "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/updates/[^/]+$" );
2177+ }
2178+ }
2179+
2180+ @ Override
2181+ public Apply set$Xgafv (java .lang .String $Xgafv ) {
2182+ return (Apply ) super .set$Xgafv ($Xgafv );
2183+ }
2184+
2185+ @ Override
2186+ public Apply setAccessToken (java .lang .String accessToken ) {
2187+ return (Apply ) super .setAccessToken (accessToken );
2188+ }
2189+
2190+ @ Override
2191+ public Apply setAlt (java .lang .String alt ) {
2192+ return (Apply ) super .setAlt (alt );
2193+ }
2194+
2195+ @ Override
2196+ public Apply setCallback (java .lang .String callback ) {
2197+ return (Apply ) super .setCallback (callback );
2198+ }
2199+
2200+ @ Override
2201+ public Apply setFields (java .lang .String fields ) {
2202+ return (Apply ) super .setFields (fields );
2203+ }
2204+
2205+ @ Override
2206+ public Apply setKey (java .lang .String key ) {
2207+ return (Apply ) super .setKey (key );
2208+ }
2209+
2210+ @ Override
2211+ public Apply setOauthToken (java .lang .String oauthToken ) {
2212+ return (Apply ) super .setOauthToken (oauthToken );
2213+ }
2214+
2215+ @ Override
2216+ public Apply setPrettyPrint (java .lang .Boolean prettyPrint ) {
2217+ return (Apply ) super .setPrettyPrint (prettyPrint );
2218+ }
2219+
2220+ @ Override
2221+ public Apply setQuotaUser (java .lang .String quotaUser ) {
2222+ return (Apply ) super .setQuotaUser (quotaUser );
2223+ }
2224+
2225+ @ Override
2226+ public Apply setUploadType (java .lang .String uploadType ) {
2227+ return (Apply ) super .setUploadType (uploadType );
2228+ }
2229+
2230+ @ Override
2231+ public Apply setUploadProtocol (java .lang .String uploadProtocol ) {
2232+ return (Apply ) super .setUploadProtocol (uploadProtocol );
2233+ }
2234+
2235+ /**
2236+ * Required. The resource name of the update. Format: organizations/{org_id}/locations/{
2237+ * location_id}/workloads/{workload_id}/updates/{update_id}
2238+ */
2239+ @ com .google .api .client .util .Key
2240+ private java .lang .String name ;
2241+
2242+ /** Required. The resource name of the update. Format:
2243+ organizations/{org_id}/locations/{location_id}/workloads/{workload_id}/updates/{update_id}
2244+ */
2245+ public java .lang .String getName () {
2246+ return name ;
2247+ }
2248+
2249+ /**
2250+ * Required. The resource name of the update. Format: organizations/{org_id}/locations/{
2251+ * location_id}/workloads/{workload_id}/updates/{update_id}
2252+ */
2253+ public Apply setName (java .lang .String name ) {
2254+ if (!getSuppressPatternChecks ()) {
2255+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
2256+ "Parameter name must conform to the pattern " +
2257+ "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/updates/[^/]+$" );
2258+ }
2259+ this .name = name ;
2260+ return this ;
2261+ }
2262+
2263+ @ Override
2264+ public Apply set (String parameterName , Object value ) {
2265+ return (Apply ) super .set (parameterName , value );
2266+ }
2267+ }
2268+ /**
2269+ * This endpoint lists all updates for the given workload.
2270+ *
2271+ * Create a request for the method "updates.list".
2272+ *
2273+ * This request holds the parameters needed by the assuredworkloads server. After setting any
2274+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
2275+ *
2276+ * @param parent Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
2277+ * @return the request
2278+ */
2279+ public List list (java .lang .String parent ) throws java .io .IOException {
2280+ List result = new List (parent );
2281+ initialize (result );
2282+ return result ;
2283+ }
2284+
2285+ public class List extends AssuredworkloadsRequest <com .google .api .services .assuredworkloads .v1beta1 .model .GoogleCloudAssuredworkloadsV1beta1ListWorkloadUpdatesResponse > {
2286+
2287+ private static final String REST_PATH = "v1beta1/{+parent}/updates" ;
2288+
2289+ private final java .util .regex .Pattern PARENT_PATTERN =
2290+ java .util .regex .Pattern .compile ("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$" );
2291+
2292+ /**
2293+ * This endpoint lists all updates for the given workload.
2294+ *
2295+ * Create a request for the method "updates.list".
2296+ *
2297+ * This request holds the parameters needed by the the assuredworkloads server. After setting any
2298+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation. <p>
2299+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
2300+ * must be called to initialize this instance immediately after invoking the constructor. </p>
2301+ *
2302+ * @param parent Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
2303+ * @since 1.13
2304+ */
2305+ protected List (java .lang .String parent ) {
2306+ super (Assuredworkloads .this , "GET" , REST_PATH , null , com .google .api .services .assuredworkloads .v1beta1 .model .GoogleCloudAssuredworkloadsV1beta1ListWorkloadUpdatesResponse .class );
2307+ this .parent = com .google .api .client .util .Preconditions .checkNotNull (parent , "Required parameter parent must be specified." );
2308+ if (!getSuppressPatternChecks ()) {
2309+ com .google .api .client .util .Preconditions .checkArgument (PARENT_PATTERN .matcher (parent ).matches (),
2310+ "Parameter parent must conform to the pattern " +
2311+ "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$" );
2312+ }
2313+ }
2314+
2315+ @ Override
2316+ public com .google .api .client .http .HttpResponse executeUsingHead () throws java .io .IOException {
2317+ return super .executeUsingHead ();
2318+ }
2319+
2320+ @ Override
2321+ public com .google .api .client .http .HttpRequest buildHttpRequestUsingHead () throws java .io .IOException {
2322+ return super .buildHttpRequestUsingHead ();
2323+ }
2324+
2325+ @ Override
2326+ public List set$Xgafv (java .lang .String $Xgafv ) {
2327+ return (List ) super .set$Xgafv ($Xgafv );
2328+ }
2329+
2330+ @ Override
2331+ public List setAccessToken (java .lang .String accessToken ) {
2332+ return (List ) super .setAccessToken (accessToken );
2333+ }
2334+
2335+ @ Override
2336+ public List setAlt (java .lang .String alt ) {
2337+ return (List ) super .setAlt (alt );
2338+ }
2339+
2340+ @ Override
2341+ public List setCallback (java .lang .String callback ) {
2342+ return (List ) super .setCallback (callback );
2343+ }
2344+
2345+ @ Override
2346+ public List setFields (java .lang .String fields ) {
2347+ return (List ) super .setFields (fields );
2348+ }
2349+
2350+ @ Override
2351+ public List setKey (java .lang .String key ) {
2352+ return (List ) super .setKey (key );
2353+ }
2354+
2355+ @ Override
2356+ public List setOauthToken (java .lang .String oauthToken ) {
2357+ return (List ) super .setOauthToken (oauthToken );
2358+ }
2359+
2360+ @ Override
2361+ public List setPrettyPrint (java .lang .Boolean prettyPrint ) {
2362+ return (List ) super .setPrettyPrint (prettyPrint );
2363+ }
2364+
2365+ @ Override
2366+ public List setQuotaUser (java .lang .String quotaUser ) {
2367+ return (List ) super .setQuotaUser (quotaUser );
2368+ }
2369+
2370+ @ Override
2371+ public List setUploadType (java .lang .String uploadType ) {
2372+ return (List ) super .setUploadType (uploadType );
2373+ }
2374+
2375+ @ Override
2376+ public List setUploadProtocol (java .lang .String uploadProtocol ) {
2377+ return (List ) super .setUploadProtocol (uploadProtocol );
2378+ }
2379+
2380+ /** Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */
2381+ @ com .google .api .client .util .Key
2382+ private java .lang .String parent ;
2383+
2384+ /** Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
2385+ */
2386+ public java .lang .String getParent () {
2387+ return parent ;
2388+ }
2389+
2390+ /** Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */
2391+ public List setParent (java .lang .String parent ) {
2392+ if (!getSuppressPatternChecks ()) {
2393+ com .google .api .client .util .Preconditions .checkArgument (PARENT_PATTERN .matcher (parent ).matches (),
2394+ "Parameter parent must conform to the pattern " +
2395+ "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$" );
2396+ }
2397+ this .parent = parent ;
2398+ return this ;
2399+ }
2400+
2401+ /** Page size. The default value is 20 and the max allowed value is 100. */
2402+ @ com .google .api .client .util .Key
2403+ private java .lang .Integer pageSize ;
2404+
2405+ /** Page size. The default value is 20 and the max allowed value is 100.
2406+ */
2407+ public java .lang .Integer getPageSize () {
2408+ return pageSize ;
2409+ }
2410+
2411+ /** Page size. The default value is 20 and the max allowed value is 100. */
2412+ public List setPageSize (java .lang .Integer pageSize ) {
2413+ this .pageSize = pageSize ;
2414+ return this ;
2415+ }
2416+
2417+ /** Page token returned from previous request. */
2418+ @ com .google .api .client .util .Key
2419+ private java .lang .String pageToken ;
2420+
2421+ /** Page token returned from previous request.
2422+ */
2423+ public java .lang .String getPageToken () {
2424+ return pageToken ;
2425+ }
2426+
2427+ /** Page token returned from previous request. */
2428+ public List setPageToken (java .lang .String pageToken ) {
2429+ this .pageToken = pageToken ;
2430+ return this ;
2431+ }
2432+
2433+ @ Override
2434+ public List set (String parameterName , Object value ) {
2435+ return (List ) super .set (parameterName , value );
2436+ }
2437+ }
2438+
2439+ }
21082440 /**
21092441 * An accessor for creating requests from the Violations collection.
21102442 *
0 commit comments