@@ -10485,6 +10485,240 @@ public Debug set(String parameterName, Object value) {
1048510485 return (Debug ) super .set (parameterName , value );
1048610486 }
1048710487 }
10488+ /**
10489+ * Stops a running instance.The instance might be automatically recreated based on the scaling
10490+ * settings of the version. For more information, see "How Instances are Managed" (standard
10491+ * environment (https://cloud.google.com/appengine/docs/standard/python/how-instances-are-managed) |
10492+ * flexible environment (https://cloud.google.com/appengine/docs/flexible/python/how-instances-are-
10493+ * managed)).To ensure that instances are not re-created and avoid getting billed, you can stop all
10494+ * instances within the target version by changing the serving status of the version to STOPPED with
10495+ * the apps.services.versions.patch (https://cloud.google.com/appengine/docs/admin-
10496+ * api/reference/rest/v1/apps.services.versions/patch) method.
10497+ *
10498+ * Create a request for the method "instances.delete".
10499+ *
10500+ * This request holds the parameters needed by the appengine server. After setting any optional
10501+ * parameters, call the {@link Delete#execute()} method to invoke the remote operation.
10502+ *
10503+ * @param projectsId Part of `name`. Required. Name of the resource requested. Example:
10504+ * apps/myapp/services/default/versions/v1/instances/instance-1.
10505+ * @param locationsId Part of `name`. See documentation of `projectsId`.
10506+ * @param applicationsId Part of `name`. See documentation of `projectsId`.
10507+ * @param servicesId Part of `name`. See documentation of `projectsId`.
10508+ * @param versionsId Part of `name`. See documentation of `projectsId`.
10509+ * @param instancesId Part of `name`. See documentation of `projectsId`.
10510+ * @return the request
10511+ */
10512+ public Delete delete (java .lang .String projectsId , java .lang .String locationsId , java .lang .String applicationsId , java .lang .String servicesId , java .lang .String versionsId , java .lang .String instancesId ) throws java .io .IOException {
10513+ Delete result = new Delete (projectsId , locationsId , applicationsId , servicesId , versionsId , instancesId );
10514+ initialize (result );
10515+ return result ;
10516+ }
10517+
10518+ public class Delete extends AppengineRequest <com .google .api .services .appengine .v1 .model .Operation > {
10519+
10520+ private static final String REST_PATH = "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}" ;
10521+
10522+ /**
10523+ * Stops a running instance.The instance might be automatically recreated based on the scaling
10524+ * settings of the version. For more information, see "How Instances are Managed" (standard
10525+ * environment (https://cloud.google.com/appengine/docs/standard/python/how-instances-are-managed)
10526+ * | flexible environment (https://cloud.google.com/appengine/docs/flexible/python/how-instances-
10527+ * are-managed)).To ensure that instances are not re-created and avoid getting billed, you can
10528+ * stop all instances within the target version by changing the serving status of the version to
10529+ * STOPPED with the apps.services.versions.patch (https://cloud.google.com/appengine/docs/admin-
10530+ * api/reference/rest/v1/apps.services.versions/patch) method.
10531+ *
10532+ * Create a request for the method "instances.delete".
10533+ *
10534+ * This request holds the parameters needed by the the appengine server. After setting any
10535+ * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
10536+ * <p> {@link
10537+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
10538+ * be called to initialize this instance immediately after invoking the constructor. </p>
10539+ *
10540+ * @param projectsId Part of `name`. Required. Name of the resource requested. Example:
10541+ * apps/myapp/services/default/versions/v1/instances/instance-1.
10542+ * @param locationsId Part of `name`. See documentation of `projectsId`.
10543+ * @param applicationsId Part of `name`. See documentation of `projectsId`.
10544+ * @param servicesId Part of `name`. See documentation of `projectsId`.
10545+ * @param versionsId Part of `name`. See documentation of `projectsId`.
10546+ * @param instancesId Part of `name`. See documentation of `projectsId`.
10547+ * @since 1.13
10548+ */
10549+ protected Delete (java .lang .String projectsId , java .lang .String locationsId , java .lang .String applicationsId , java .lang .String servicesId , java .lang .String versionsId , java .lang .String instancesId ) {
10550+ super (Appengine .this , "DELETE" , REST_PATH , null , com .google .api .services .appengine .v1 .model .Operation .class );
10551+ this .projectsId = com .google .api .client .util .Preconditions .checkNotNull (projectsId , "Required parameter projectsId must be specified." );
10552+ this .locationsId = com .google .api .client .util .Preconditions .checkNotNull (locationsId , "Required parameter locationsId must be specified." );
10553+ this .applicationsId = com .google .api .client .util .Preconditions .checkNotNull (applicationsId , "Required parameter applicationsId must be specified." );
10554+ this .servicesId = com .google .api .client .util .Preconditions .checkNotNull (servicesId , "Required parameter servicesId must be specified." );
10555+ this .versionsId = com .google .api .client .util .Preconditions .checkNotNull (versionsId , "Required parameter versionsId must be specified." );
10556+ this .instancesId = com .google .api .client .util .Preconditions .checkNotNull (instancesId , "Required parameter instancesId must be specified." );
10557+ }
10558+
10559+ @ Override
10560+ public Delete set$Xgafv (java .lang .String $Xgafv ) {
10561+ return (Delete ) super .set$Xgafv ($Xgafv );
10562+ }
10563+
10564+ @ Override
10565+ public Delete setAccessToken (java .lang .String accessToken ) {
10566+ return (Delete ) super .setAccessToken (accessToken );
10567+ }
10568+
10569+ @ Override
10570+ public Delete setAlt (java .lang .String alt ) {
10571+ return (Delete ) super .setAlt (alt );
10572+ }
10573+
10574+ @ Override
10575+ public Delete setCallback (java .lang .String callback ) {
10576+ return (Delete ) super .setCallback (callback );
10577+ }
10578+
10579+ @ Override
10580+ public Delete setFields (java .lang .String fields ) {
10581+ return (Delete ) super .setFields (fields );
10582+ }
10583+
10584+ @ Override
10585+ public Delete setKey (java .lang .String key ) {
10586+ return (Delete ) super .setKey (key );
10587+ }
10588+
10589+ @ Override
10590+ public Delete setOauthToken (java .lang .String oauthToken ) {
10591+ return (Delete ) super .setOauthToken (oauthToken );
10592+ }
10593+
10594+ @ Override
10595+ public Delete setPrettyPrint (java .lang .Boolean prettyPrint ) {
10596+ return (Delete ) super .setPrettyPrint (prettyPrint );
10597+ }
10598+
10599+ @ Override
10600+ public Delete setQuotaUser (java .lang .String quotaUser ) {
10601+ return (Delete ) super .setQuotaUser (quotaUser );
10602+ }
10603+
10604+ @ Override
10605+ public Delete setUploadType (java .lang .String uploadType ) {
10606+ return (Delete ) super .setUploadType (uploadType );
10607+ }
10608+
10609+ @ Override
10610+ public Delete setUploadProtocol (java .lang .String uploadProtocol ) {
10611+ return (Delete ) super .setUploadProtocol (uploadProtocol );
10612+ }
10613+
10614+ /**
10615+ * Part of `name`. Required. Name of the resource requested. Example:
10616+ * apps/myapp/services/default/versions/v1/instances/instance-1.
10617+ */
10618+ @ com .google .api .client .util .Key
10619+ private java .lang .String projectsId ;
10620+
10621+ /** Part of `name`. Required. Name of the resource requested. Example:
10622+ apps/myapp/services/default/versions/v1/instances/instance-1.
10623+ */
10624+ public java .lang .String getProjectsId () {
10625+ return projectsId ;
10626+ }
10627+
10628+ /**
10629+ * Part of `name`. Required. Name of the resource requested. Example:
10630+ * apps/myapp/services/default/versions/v1/instances/instance-1.
10631+ */
10632+ public Delete setProjectsId (java .lang .String projectsId ) {
10633+ this .projectsId = projectsId ;
10634+ return this ;
10635+ }
10636+
10637+ /** Part of `name`. See documentation of `projectsId`. */
10638+ @ com .google .api .client .util .Key
10639+ private java .lang .String locationsId ;
10640+
10641+ /** Part of `name`. See documentation of `projectsId`.
10642+ */
10643+ public java .lang .String getLocationsId () {
10644+ return locationsId ;
10645+ }
10646+
10647+ /** Part of `name`. See documentation of `projectsId`. */
10648+ public Delete setLocationsId (java .lang .String locationsId ) {
10649+ this .locationsId = locationsId ;
10650+ return this ;
10651+ }
10652+
10653+ /** Part of `name`. See documentation of `projectsId`. */
10654+ @ com .google .api .client .util .Key
10655+ private java .lang .String applicationsId ;
10656+
10657+ /** Part of `name`. See documentation of `projectsId`.
10658+ */
10659+ public java .lang .String getApplicationsId () {
10660+ return applicationsId ;
10661+ }
10662+
10663+ /** Part of `name`. See documentation of `projectsId`. */
10664+ public Delete setApplicationsId (java .lang .String applicationsId ) {
10665+ this .applicationsId = applicationsId ;
10666+ return this ;
10667+ }
10668+
10669+ /** Part of `name`. See documentation of `projectsId`. */
10670+ @ com .google .api .client .util .Key
10671+ private java .lang .String servicesId ;
10672+
10673+ /** Part of `name`. See documentation of `projectsId`.
10674+ */
10675+ public java .lang .String getServicesId () {
10676+ return servicesId ;
10677+ }
10678+
10679+ /** Part of `name`. See documentation of `projectsId`. */
10680+ public Delete setServicesId (java .lang .String servicesId ) {
10681+ this .servicesId = servicesId ;
10682+ return this ;
10683+ }
10684+
10685+ /** Part of `name`. See documentation of `projectsId`. */
10686+ @ com .google .api .client .util .Key
10687+ private java .lang .String versionsId ;
10688+
10689+ /** Part of `name`. See documentation of `projectsId`.
10690+ */
10691+ public java .lang .String getVersionsId () {
10692+ return versionsId ;
10693+ }
10694+
10695+ /** Part of `name`. See documentation of `projectsId`. */
10696+ public Delete setVersionsId (java .lang .String versionsId ) {
10697+ this .versionsId = versionsId ;
10698+ return this ;
10699+ }
10700+
10701+ /** Part of `name`. See documentation of `projectsId`. */
10702+ @ com .google .api .client .util .Key
10703+ private java .lang .String instancesId ;
10704+
10705+ /** Part of `name`. See documentation of `projectsId`.
10706+ */
10707+ public java .lang .String getInstancesId () {
10708+ return instancesId ;
10709+ }
10710+
10711+ /** Part of `name`. See documentation of `projectsId`. */
10712+ public Delete setInstancesId (java .lang .String instancesId ) {
10713+ this .instancesId = instancesId ;
10714+ return this ;
10715+ }
10716+
10717+ @ Override
10718+ public Delete set (String parameterName , Object value ) {
10719+ return (Delete ) super .set (parameterName , value );
10720+ }
10721+ }
1048810722
1048910723 }
1049010724 }
0 commit comments