@@ -1719,6 +1719,38 @@ public Provision setParent(java.lang.String parent) {
17191719 return this ;
17201720 }
17211721
1722+ /** number of duration units to be included. */
1723+ @ com .google .api .client .util .Key ("cycleOptions.initialCycleDuration.count" )
1724+ private java .lang .Integer cycleOptionsInitialCycleDurationCount ;
1725+
1726+ /** number of duration units to be included.
1727+ */
1728+ public java .lang .Integer getCycleOptionsInitialCycleDurationCount () {
1729+ return cycleOptionsInitialCycleDurationCount ;
1730+ }
1731+
1732+ /** number of duration units to be included. */
1733+ public Provision setCycleOptionsInitialCycleDurationCount (java .lang .Integer cycleOptionsInitialCycleDurationCount ) {
1734+ this .cycleOptionsInitialCycleDurationCount = cycleOptionsInitialCycleDurationCount ;
1735+ return this ;
1736+ }
1737+
1738+ /** The unit used for the duration */
1739+ @ com .google .api .client .util .Key ("cycleOptions.initialCycleDuration.unit" )
1740+ private java .lang .String cycleOptionsInitialCycleDurationUnit ;
1741+
1742+ /** The unit used for the duration
1743+ */
1744+ public java .lang .String getCycleOptionsInitialCycleDurationUnit () {
1745+ return cycleOptionsInitialCycleDurationUnit ;
1746+ }
1747+
1748+ /** The unit used for the duration */
1749+ public Provision setCycleOptionsInitialCycleDurationUnit (java .lang .String cycleOptionsInitialCycleDurationUnit ) {
1750+ this .cycleOptionsInitialCycleDurationUnit = cycleOptionsInitialCycleDurationUnit ;
1751+ return this ;
1752+ }
1753+
17221754 /**
17231755 * Required. Identifies the subscription resource on the Partner side. The value is
17241756 * restricted to 63 ASCII characters at the maximum. If a subscription was previously
@@ -2186,6 +2218,194 @@ public UndoCancel set(String parameterName, Object value) {
21862218 }
21872219 }
21882220
2221+ /**
2222+ * An accessor for creating requests from the LineItems collection.
2223+ *
2224+ * <p>The typical use is:</p>
2225+ * <pre>
2226+ * {@code PaymentsResellerSubscription paymentsresellersubscription = new PaymentsResellerSubscription(...);}
2227+ * {@code PaymentsResellerSubscription.LineItems.List request = paymentsresellersubscription.lineItems().list(parameters ...)}
2228+ * </pre>
2229+ *
2230+ * @return the resource collection
2231+ */
2232+ public LineItems lineItems () {
2233+ return new LineItems ();
2234+ }
2235+
2236+ /**
2237+ * The "lineItems" collection of methods.
2238+ */
2239+ public class LineItems {
2240+
2241+ /**
2242+ * Updates a line item of a subscription. It should be autenticated with a service account.
2243+ *
2244+ * Create a request for the method "lineItems.patch".
2245+ *
2246+ * This request holds the parameters needed by the paymentsresellersubscription server. After
2247+ * setting any optional parameters, call the {@link Patch#execute()} method to invoke the remote
2248+ * operation.
2249+ *
2250+ * @param name Identifier. Resource name of the line item. Format:
2251+ * partners/{partner}/subscriptions/{subscription}/lineItems/{lineItem}
2252+ * @param content the {@link com.google.api.services.paymentsresellersubscription.v1.model.SubscriptionLineItem}
2253+ * @return the request
2254+ */
2255+ public Patch patch (java .lang .String name , com .google .api .services .paymentsresellersubscription .v1 .model .SubscriptionLineItem content ) throws java .io .IOException {
2256+ Patch result = new Patch (name , content );
2257+ initialize (result );
2258+ return result ;
2259+ }
2260+
2261+ public class Patch extends PaymentsResellerSubscriptionRequest <com .google .api .services .paymentsresellersubscription .v1 .model .SubscriptionLineItem > {
2262+
2263+ private static final String REST_PATH = "v1/{+name}" ;
2264+
2265+ private final java .util .regex .Pattern NAME_PATTERN =
2266+ java .util .regex .Pattern .compile ("^partners/[^/]+/subscriptions/[^/]+/lineItems/[^/]+$" );
2267+
2268+ /**
2269+ * Updates a line item of a subscription. It should be autenticated with a service account.
2270+ *
2271+ * Create a request for the method "lineItems.patch".
2272+ *
2273+ * This request holds the parameters needed by the the paymentsresellersubscription server. After
2274+ * setting any optional parameters, call the {@link Patch#execute()} method to invoke the remote
2275+ * operation. <p> {@link
2276+ * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
2277+ * be called to initialize this instance immediately after invoking the constructor. </p>
2278+ *
2279+ * @param name Identifier. Resource name of the line item. Format:
2280+ * partners/{partner}/subscriptions/{subscription}/lineItems/{lineItem}
2281+ * @param content the {@link com.google.api.services.paymentsresellersubscription.v1.model.SubscriptionLineItem}
2282+ * @since 1.13
2283+ */
2284+ protected Patch (java .lang .String name , com .google .api .services .paymentsresellersubscription .v1 .model .SubscriptionLineItem content ) {
2285+ super (PaymentsResellerSubscription .this , "PATCH" , REST_PATH , content , com .google .api .services .paymentsresellersubscription .v1 .model .SubscriptionLineItem .class );
2286+ this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
2287+ if (!getSuppressPatternChecks ()) {
2288+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
2289+ "Parameter name must conform to the pattern " +
2290+ "^partners/[^/]+/subscriptions/[^/]+/lineItems/[^/]+$" );
2291+ }
2292+ }
2293+
2294+ @ Override
2295+ public Patch set$Xgafv (java .lang .String $Xgafv ) {
2296+ return (Patch ) super .set$Xgafv ($Xgafv );
2297+ }
2298+
2299+ @ Override
2300+ public Patch setAccessToken (java .lang .String accessToken ) {
2301+ return (Patch ) super .setAccessToken (accessToken );
2302+ }
2303+
2304+ @ Override
2305+ public Patch setAlt (java .lang .String alt ) {
2306+ return (Patch ) super .setAlt (alt );
2307+ }
2308+
2309+ @ Override
2310+ public Patch setCallback (java .lang .String callback ) {
2311+ return (Patch ) super .setCallback (callback );
2312+ }
2313+
2314+ @ Override
2315+ public Patch setFields (java .lang .String fields ) {
2316+ return (Patch ) super .setFields (fields );
2317+ }
2318+
2319+ @ Override
2320+ public Patch setKey (java .lang .String key ) {
2321+ return (Patch ) super .setKey (key );
2322+ }
2323+
2324+ @ Override
2325+ public Patch setOauthToken (java .lang .String oauthToken ) {
2326+ return (Patch ) super .setOauthToken (oauthToken );
2327+ }
2328+
2329+ @ Override
2330+ public Patch setPrettyPrint (java .lang .Boolean prettyPrint ) {
2331+ return (Patch ) super .setPrettyPrint (prettyPrint );
2332+ }
2333+
2334+ @ Override
2335+ public Patch setQuotaUser (java .lang .String quotaUser ) {
2336+ return (Patch ) super .setQuotaUser (quotaUser );
2337+ }
2338+
2339+ @ Override
2340+ public Patch setUploadType (java .lang .String uploadType ) {
2341+ return (Patch ) super .setUploadType (uploadType );
2342+ }
2343+
2344+ @ Override
2345+ public Patch setUploadProtocol (java .lang .String uploadProtocol ) {
2346+ return (Patch ) super .setUploadProtocol (uploadProtocol );
2347+ }
2348+
2349+ /**
2350+ * Identifier. Resource name of the line item. Format:
2351+ * partners/{partner}/subscriptions/{subscription}/lineItems/{lineItem}
2352+ */
2353+ @ com .google .api .client .util .Key
2354+ private java .lang .String name ;
2355+
2356+ /** Identifier. Resource name of the line item. Format:
2357+ partners/{partner}/subscriptions/{subscription}/lineItems/{lineItem}
2358+ */
2359+ public java .lang .String getName () {
2360+ return name ;
2361+ }
2362+
2363+ /**
2364+ * Identifier. Resource name of the line item. Format:
2365+ * partners/{partner}/subscriptions/{subscription}/lineItems/{lineItem}
2366+ */
2367+ public Patch setName (java .lang .String name ) {
2368+ if (!getSuppressPatternChecks ()) {
2369+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
2370+ "Parameter name must conform to the pattern " +
2371+ "^partners/[^/]+/subscriptions/[^/]+/lineItems/[^/]+$" );
2372+ }
2373+ this .name = name ;
2374+ return this ;
2375+ }
2376+
2377+ /**
2378+ * Required. The list of fields to update. Only a limited set of fields can be updated.
2379+ * The allowed fields are the following: -
2380+ * `product_payload.googleHomePayload.googleStructureId`
2381+ */
2382+ @ com .google .api .client .util .Key
2383+ private String updateMask ;
2384+
2385+ /** Required. The list of fields to update. Only a limited set of fields can be updated. The allowed
2386+ fields are the following: - `product_payload.googleHomePayload.googleStructureId`
2387+ */
2388+ public String getUpdateMask () {
2389+ return updateMask ;
2390+ }
2391+
2392+ /**
2393+ * Required. The list of fields to update. Only a limited set of fields can be updated.
2394+ * The allowed fields are the following: -
2395+ * `product_payload.googleHomePayload.googleStructureId`
2396+ */
2397+ public Patch setUpdateMask (String updateMask ) {
2398+ this .updateMask = updateMask ;
2399+ return this ;
2400+ }
2401+
2402+ @ Override
2403+ public Patch set (String parameterName , Object value ) {
2404+ return (Patch ) super .set (parameterName , value );
2405+ }
2406+ }
2407+
2408+ }
21892409 }
21902410 /**
21912411 * An accessor for creating requests from the UserSessions collection.
0 commit comments