Skip to content

Commit 2ea2c2f

Browse files
authored
Update Region Tags (#1198)
* appidentity region tags * region tag removal * region tags * remove region tags
1 parent 7378792 commit 2ea2c2f

File tree

22 files changed

+5
-54
lines changed

22 files changed

+5
-54
lines changed

appengine/analytics/src/main/java/com/example/appengine/analytics/AnalyticsServlet.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import javax.servlet.http.HttpServletResponse;
2929
import org.apache.http.client.utils.URIBuilder;
3030

31-
// [START example]
3231
@SuppressWarnings("serial")
3332
public class AnalyticsServlet extends HttpServlet {
3433

@@ -58,4 +57,3 @@ public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOExc
5857
resp.getWriter().println("Event tracked.");
5958
}
6059
}
61-
// [END example]

appengine/helloworld-new-plugins/build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14-
// [START gradle]
14+
1515
buildscript { // Configuration for building
1616
repositories {
1717
jcenter() // Bintray's repository - a fast Maven Central mirror & more
@@ -42,7 +42,7 @@ dependencies {
4242

4343
}
4444

45-
// [START model]
45+
// [START gae_maven_model]
4646
appengine { // App Engine tasks configuration
4747
run { // local (dev_appserver) configuration (standard environments only)
4848
port = 8080 // default
@@ -53,11 +53,10 @@ appengine { // App Engine tasks configuration
5353
promote = true // default - & make this the current version
5454
}
5555
}
56-
// [END model]
56+
// [END gae_maven_model]
5757

5858
group = 'com.example.appengine' // Generated output GroupId
5959
version = '1.0-SNAPSHOT' // Version in generated output
6060

6161
sourceCompatibility = 1.7 // App Engine Standard uses Java 7
6262
targetCompatibility = 1.7 // App Engine Standard uses Java 7
63-
// [END gradle]

appengine/logs/src/main/java/com/example/appengine/logs/LogsServlet.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
* See the License for the specific language governing permissions and
1313
* limitations under the License.
1414
*/
15-
// [START logs_API_example]
1615

1716
package com.example.appengine.logs;
1817

@@ -91,5 +90,3 @@ public void doGet(HttpServletRequest req, HttpServletResponse resp)
9190
writer.println(String.format("<br><a href=\"/?offset=%s\">Next</a>", lastOffset));
9291
}
9392
}
94-
// [END logs_API_example]
95-

appengine/oauth2/src/main/java/com/example/appengine/HelloServlet.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import javax.servlet.http.HttpServletRequest;
2929
import javax.servlet.http.HttpServletResponse;
3030

31-
// [START example]
3231
@SuppressWarnings("serial")
3332
public class HelloServlet extends HttpServlet {
3433

@@ -53,4 +52,3 @@ public void doPost(final HttpServletRequest req, final HttpServletResponse resp)
5352
out.print("Hello world, welcome to Oauth2: " + user.getEmail());
5453
}
5554
}
56-
// [END example]

appengine/oauth2/src/main/java/com/example/appengine/Oauth2Filter.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ public void init(final FilterConfig config) throws ServletException {
5252
this.context = config.getServletContext();
5353
}
5454

55-
// [START oauth2]
5655
@Override
5756
public void doFilter(
5857
final ServletRequest servletReq, final ServletResponse servletResp, final FilterChain chain)
@@ -91,7 +90,6 @@ public void doFilter(
9190
}
9291
chain.doFilter(servletReq, servletResp); // continue processing
9392
}
94-
// [END oauth2]
9593

9694
@Override
9795
public void destroy() { }

appengine/pusher-chat/src/main/java/com/example/appengine/pusher/AuthorizeServlet.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
*
3838
* @see <a href="https://pusher.com/docs/authenticating_users">Pusher Authentication Docs</a>
3939
*/
40-
// [START pusher_authorize]
4140
public class AuthorizeServlet extends HttpServlet {
4241

4342
@Override
@@ -92,4 +91,3 @@ private static Map<String, String> splitQuery(String query) throws UnsupportedEn
9291
return queryPairs;
9392
}
9493
}
95-
// [END pusher_authorize]

appengine/pusher-chat/src/main/java/com/example/appengine/pusher/PusherService.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import com.pusher.rest.Pusher;
2020

21-
// [START pusher_server_initialize]
2221
public abstract class PusherService {
2322

2423
public static final String APP_KEY = System.getenv("PUSHER_APP_KEY");
@@ -40,4 +39,3 @@ static Pusher getDefaultInstance() {
4039
return pusher;
4140
}
4241
}
43-
// [END pusher_server_initialize]

appengine/pusher-chat/src/main/java/com/example/appengine/pusher/SendMessageServlet.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
* <ahref="https://pusher.com/docs/server_api_guide/server_excluding_recipients">Excluding
3737
* Recipients</ahref>}
3838
*/
39-
// [START pusher_server_send_message]
4039
public class SendMessageServlet extends HttpServlet {
4140

4241
private Gson gson = new GsonBuilder().create();
@@ -81,4 +80,3 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr
8180
response.getWriter().println(gson.toJson(messageData));
8281
}
8382
}
84-
// [END pusher_server_send_message]

flexible/async-rest/src/main/appengine/app.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
# [START appyaml]
1514
runtime: custom
1615
env: flex
1716

@@ -22,5 +21,3 @@ handlers:
2221

2322
env_variables:
2423
PLACES_APPKEY: 'YOUR_PLACES_APP_KEY'
25-
26-
# [END appyaml]

flexible/cloud-tasks/pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
See the License for the specific language governing permissions and
1414
limitations under the License.
1515
-->
16-
<!-- [START project] -->
1716
<project>
1817
<modelVersion>4.0.0</modelVersion>
1918
<packaging>war</packaging>
@@ -85,4 +84,3 @@
8584
</plugins>
8685
</build>
8786
</project>
88-
<!-- [END project] -->

0 commit comments

Comments
 (0)