Skip to content

Commit bffa74b

Browse files
kryzthovlesv
authored andcommitted
Update deprecated commands for gcloud service-management (GoogleCloudPlatform#904)
- `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 f3e92b7 commit bffa74b

File tree

10 files changed

+18
-18
lines changed

10 files changed

+18
-18
lines changed

appengine-java8/endpoints-v2-backend/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ To deploy the sample API:
4141

4242
0. Invoke the `gcloud` command to deploy the API configuration file:
4343

44-
gcloud service-management deploy target/openapi-docs/openapi.json
44+
gcloud endpoints services deploy target/openapi-docs/openapi.json
4545

4646
0. Deploy the API implementation code by invoking:
4747

@@ -119,7 +119,7 @@ To deploy the sample API:
119119

120120
0. Invoke the `gcloud` command to deploy the API configuration file:
121121

122-
gcloud service-management deploy build/endpointsOpenApiDocs/openapi.json
122+
gcloud endpoints services deploy build/endpointsOpenApiDocs/openapi.json
123123

124124
0. Deploy the API implementation code by invoking:
125125

appengine-java8/endpoints-v2-backend/jenkins.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ sed -i'.bak' -e "s/YOUR_PROJECT_ID/${GOOGLE_PROJECT_ID}/g" pom.xml
3535

3636
mvn clean endpoints-framework:openApiDocs
3737

38-
gcloud service-management deploy target/openapi-docs/openapi.json
38+
gcloud endpoints services deploy target/openapi-docs/openapi.json
3939

4040
# Test with Maven
4141
mvn appengine:deploy \
@@ -55,7 +55,7 @@ sed -i'.bak' -e "s/YOUR_PROJECT_ID/${GOOGLE_PROJECT_ID}/g" build.gradle
5555

5656
gradle clean endpointsOpenApiDocs
5757

58-
gcloud service-management deploy build/endpointsOpenApiDocs/openapi.json
58+
gcloud endpoints services deploy build/endpointsOpenApiDocs/openapi.json
5959

6060
# Deploy Gradle
6161
gradle -Pappengine.deploy.promote=false \

appengine-java8/endpoints-v2-guice/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ To deploy the sample API:
4242

4343
0. Invoke the `gcloud` command to deploy the API configuration file:
4444

45-
gcloud service-management deploy target/openapi-docs/openapi.json
45+
gcloud endpoints services deploy target/openapi-docs/openapi.json
4646

4747
0. Deploy the API implementation code by invoking:
4848

@@ -121,7 +121,7 @@ To deploy the sample API:
121121

122122
0. Invoke the `gcloud` command to deploy the API configuration file:
123123

124-
gcloud service-management deploy build/endpointsOpenApiDocs/openapi.json
124+
gcloud endpoints services deploy build/endpointsOpenApiDocs/openapi.json
125125

126126
0. Deploy the API implementation code by invoking:
127127

appengine/endpoints-frameworks-v2/backend/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ To deploy the sample API:
4141

4242
0. Invoke the `gcloud` command to deploy the API configuration file:
4343

44-
gcloud service-management deploy target/openapi-docs/openapi.json
44+
gcloud endpoints services deploy target/openapi-docs/openapi.json
4545

4646
0. Deploy the API implementation code by invoking:
4747

@@ -119,7 +119,7 @@ To deploy the sample API:
119119

120120
0. Invoke the `gcloud` command to deploy the API configuration file:
121121

122-
gcloud service-management deploy build/endpointsOpenApiDocs/openapi.json
122+
gcloud endpoints services deploy build/endpointsOpenApiDocs/openapi.json
123123

124124
0. Deploy the API implementation code by invoking:
125125

appengine/endpoints-frameworks-v2/backend/jenkins.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ sed -i'.bak' -e "s/YOUR_PROJECT_ID/${GOOGLE_PROJECT_ID}/g" pom.xml
3535

3636
mvn clean endpoints-framework:openApiDocs
3737

38-
gcloud service-management deploy target/openapi-docs/openapi.json
38+
gcloud endpoints services deploy target/openapi-docs/openapi.json
3939

4040
# Test with Maven
4141
mvn appengine:deploy \
@@ -55,7 +55,7 @@ sed -i'.bak' -e "s/YOUR_PROJECT_ID/${GOOGLE_PROJECT_ID}/g" build.gradle
5555

5656
gradle clean endpointsOpenApiDocs
5757

58-
gcloud service-management deploy build/endpointsOpenApiDocs/openapi.json
58+
gcloud endpoints services deploy build/endpointsOpenApiDocs/openapi.json
5959

6060
# Deploy Gradle
6161
gradle -Pappengine.deploy.promote=false \

appengine/endpoints-frameworks-v2/guice-example/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ To deploy the sample API:
4242

4343
0. Invoke the `gcloud` command to deploy the API configuration file:
4444

45-
gcloud service-management deploy target/openapi-docs/openapi.json
45+
gcloud endpoints services deploy target/openapi-docs/openapi.json
4646

4747
0. Deploy the API implementation code by invoking:
4848

@@ -121,7 +121,7 @@ To deploy the sample API:
121121

122122
0. Invoke the `gcloud` command to deploy the API configuration file:
123123

124-
gcloud service-management deploy build/endpointsOpenApiDocs/openapi.json
124+
gcloud endpoints services deploy build/endpointsOpenApiDocs/openapi.json
125125

126126
0. Deploy the API implementation code by invoking:
127127

appengine/endpoints-frameworks-v2/guice-example/jenkins.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ sed -i'.bak' -e "s/YOUR_PROJECT_ID/${GOOGLE_PROJECT_ID}/g" pom.xml
3535

3636
mvn clean endpoints-framework:openApiDocs
3737

38-
gcloud service-management deploy target/openapi-docs/openapi.json
38+
gcloud endpoints services deploy target/openapi-docs/openapi.json
3939

4040
# Test with Maven
4141
mvn appengine:deploy \
@@ -55,7 +55,7 @@ sed -i'.bak' -e "s/YOUR_PROJECT_ID/${GOOGLE_PROJECT_ID}/g" build.gradle
5555

5656
gradle clean endpointsOpenApiDocs
5757

58-
gcloud service-management deploy build/endpointsOpenApiDocs/openapi.json
58+
gcloud endpoints services deploy build/endpointsOpenApiDocs/openapi.json
5959

6060
# Deploy Gradle
6161
gradle -Pappengine.deploy.promote=false \

endpoints/getting-started-grpc/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ and [SDK](https://cloud.google.com/sdk/) configured.
3737
1. Deploy your service config to Service Management:
3838

3939
```bash
40-
gcloud service-management deploy out.pb api_config.yaml
40+
gcloud endpoints services deploy out.pb api_config.yaml
4141
# The Config ID should be printed out, looks like: 2017-02-01r0, remember this
4242
4343
# set your project to make commands easier
4444
GCLOUD_PROJECT=<Your Project ID>
4545
4646
# Print out your Config ID again, in case you missed it
47-
gcloud service-management configs list --service hellogrpc.endpoints.${GCLOUD_PROJECT}.cloud.goog
47+
gcloud endpoints configs list --service hellogrpc.endpoints.${GCLOUD_PROJECT}.cloud.goog
4848
```
4949

5050
1. Also get an API key from the Console's API Manager for use in the client later. (https://console.cloud.google.com/apis/credentials)

endpoints/getting-started/src/main/appengine/app.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ handlers:
2222

2323
endpoints_api_service:
2424
# The following values are to be replaced by information from the output of
25-
# 'gcloud service-management deploy openapi.yaml' command.
25+
# 'gcloud endpoints services deploy openapi.yaml' command.
2626
name: ENDPOINTS-SERVICE-NAME
2727
config_id: ENDPOINTS-CONFIG-ID

endpoints/multiple-versions/src/main/appengine/app.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ handlers:
2222

2323
endpoints_api_service:
2424
# The following values are to be replaced by information from the output of
25-
# 'gcloud service-management deploy openapi-v1.yaml openapi-v2.yaml' command.
25+
# 'gcloud endpoints services deploy openapi-v1.yaml openapi-v2.yaml' command.
2626
name: ENDPOINTS-SERVICE-NAME
2727
config_id: ENDPOINTS-CONFIG-ID

0 commit comments

Comments
 (0)