8000 Update deprecated commands for `gcloud service-management` (#1187) · johnmanong/python-docs-samples@580a3ce · GitHub
[go: up one dir, main page]

Skip to content

Commit 580a3ce

Browse files
kryzthovJon Wayne Parrott
authored andcommitted
Update deprecated commands for gcloud service-management (GoogleCloudPlatform#1187)
- `gcloud service-management deploy` becomes `gcloud endpoints deploy` - `gcloud service-management enable` becomes `gcloud services enable` - `gcloud service-management configs` becomes `gcloud endpoints configs`
1 parent c169207 commit 580a3ce

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

appengine/standard/endpoints-frameworks-v2/echo/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Remember to replace [YOUR-PROJECT-ID] with your project ID.
1818

1919
To set up OAuth2, replace `your-oauth-client-id.com` under `audiences` in the annotation for `get_user_email` with your OAuth2 client ID. If you want to use Google OAuth2 Playground, use `407408718192.apps.googleusercontent.com` as your audience. To generate a JWT, go to the following address: `https://developers.google.com/oauthplayground`.
2020

21-
Deploy the generated swagger spec to Google Cloud Service Management: `gcloud alpha service-management deploy echo-v1_swagger.json`
21+
Deploy the generated swagger spec to Google Cloud Service Management: `gcloud endpoints services deploy echo-v1_swagger.json`
2222

2323
The command returns several lines of information, including a line similar to the following:
2424

appengine/standard/endpoints-frameworks-v2/echo/app.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ libraries:
2828
# [START env_vars]
2929
env_variables:
3030
# The following values are to be replaced by information from the output of
31-
# 'gcloud service-management deploy swagger.json' command.
31+
# 'gcloud endpoints services deploy swagger.json' command.
3232
ENDPOINTS_SERVICE_NAME: YOUR-PROJECT-ID.appspot.com
3333
ENDPOINTS_SERVICE_VERSION: 2016-08-01r0
3434
# [END env_vars]

appengine/standard/endpoints-frameworks-v2/quickstart/app.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ libraries:
2323

2424
env_variables:
2525
# The following values are to be replaced by information from the output of
26-
# 'gcloud service-management deploy swagger.json' command.
26+
# 'gcloud endpoints services deploy swagger.json' command.
2727
ENDPOINTS_SERVICE_NAME: greeting-api.endpoints.[YOUR-PROJECT-ID].cloud.goog
2828
ENDPOINTS_SERVICE_VERSION: 2016-08-01r0

codelabs/flex_and_vision/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ Change directory to the sample code location:
4040

4141
Enable the APIs:
4242

43-
gcloud service-management enable vision.googleapis.com
44-
gcloud service-management enable storage-component.googleapis.com
45-
gcloud service-management enable datastore.googleapis.com
43+
gcloud services enable vision.googleapis.com
44+
gcloud services enable storage-component.googleapis.com
45+
gcloud services enable datastore.googleapis.com
4646

4747
Create a Service Account to access the Google Cloud APIs when testing locally:
4848

endpoints/getting-started-grpc/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ Cloud account and [SDK](https://cloud.google.com/sdk/) configured.
4242
1. Deploy your service config to Service Management:
4343

4444
```bash
45-
gcloud service-management deploy out.pb api_config.yaml
45+
gcloud endpoints services deploy out.pb api_config.yaml
4646
# The Config ID should be printed out, looks like: 2017-02-01r0, remember this
4747
4848
# Set your project ID as a variable to make commands easier:
4949
GCLOUD_PROJECT=<Your Project ID>
5050
5151
# Print out your Config ID again, in case you missed it:
52-
gcloud service-management configs list --service hellogrpc.endpoints.${GCLOUD_PROJECT}.cloud.goog
52+
gcloud endpoints configs list --service hellogrpc.endpoints.${GCLOUD_PROJECT}.cloud.goog
5353
```
5454

5555
1. Also get an API key from the Console's API Manager for use in the
@@ -58,7 +58,7 @@ Cloud account and [SDK](https://cloud.google.com/sdk/) configured.
5858
1. Enable the Cloud Build API:
5959
6060
```bash
61-
gcloud service-management enable cloudbuild.googleapis.com
61+
gcloud services enable cloudbuild.googleapis.com
6262
```
6363
6464
1. Build a docker image for your gRPC server, and store it in your Registry:
@@ -74,7 +74,7 @@ Cloud account and [SDK](https://cloud.google.com/sdk/) configured.
7474
1. Enable the Compute Engine API:
7575
7676
```bash
77-
gcloud service-management enable compute-component.googleapis.com
77+
gcloud services enable compute-component.googleapis.com
7878
```
7979
8080
1. Create your instance and ssh in:
@@ -150,7 +150,7 @@ Cloud account and [SDK](https://cloud.google.com/sdk/) configured.
150150
GCLOUD_PROJECT with your project ID.
151151
152152
```bash
153-
gcloud service-management configs list --service hellogrpc.endpoints.GCLOUD_PROJECT.cloud.goog
153+
gcloud endpoints configs list --service hellogrpc.endpoints.GCLOUD_PROJECT.cloud.goog
154154
```
155155
156156
1. Deploy to GKE:

endpoints/getting-started/app.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ runtime_config:
77

88
endpoints_api_service:
99
# The following values are to be replaced by information from the output of
10-
# 'gcloud service-management deploy openapi.yaml' command.
10+
# 'gcloud endpoints services deploy openapi.yaml' command.
1111
name: ENDPOINTS SERVICE-NAME
1212
config_id: ENDPOINTS CONFIG-ID

0 commit comments

Comments
 (0)
0