Skip to content

Commit 42a19d6

Browse files
Google APIscopybara-github
authored andcommitted
feat!: Remove EnableService and DisableService RPC methods and related protos from service management API
BREAKING CHANGE: PiperOrigin-RevId: 428693468
1 parent d19f69b commit 42a19d6

4 files changed

Lines changed: 63 additions & 147 deletions

File tree

google/api/servicemanagement/v1/BUILD.bazel

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
# This file was automatically generated by BuildFileGenerator
2+
# https://github.com/googleapis/rules_gapic/tree/master/bazel
3+
4+
# Most of the manual changes to this file will be overwritten.
5+
# It's **only** allowed to change the following rule attribute values:
6+
# - names of *_gapic_assembly_* rules
7+
# - certain parameters of *_gapic_library rules, including but not limited to:
8+
# * extra_protoc_parameters
9+
# * extra_protoc_file_parameters
10+
# The complete list of preserved parameters can be found in the source code.
211

312
# This is an API workspace, having public visibility by default makes perfect sense.
413
package(default_visibility = ["//visibility:public"])
@@ -20,13 +29,9 @@ proto_library(
2029
"//google/api:client_proto",
2130
"//google/api:config_change_proto",
2231
"//google/api:field_behavior_proto",
23-
"//google/api:metric_proto",
24-
"//google/api:quota_proto",
2532
"//google/api:service_proto",
2633
"//google/longrunning:operations_proto",
27-
"//google/rpc:status_proto",
2834
"@com_google_protobuf//:any_proto",
29-
"@com_google_protobuf//:field_mask_proto",
3035
"@com_google_protobuf//:timestamp_proto",
3136
],
3237
)
@@ -67,6 +72,7 @@ java_gapic_library(
6772
srcs = [":servicemanagement_proto_with_info"],
6873
gapic_yaml = "servicemanagement_gapic.yaml",
6974
grpc_service_config = "servicemanagement_grpc_service_config.json",
75+
service_yaml = "servicemanagement_v1.yaml",
7076
test_deps = [
7177
":servicemanagement_java_grpc",
7278
],
@@ -114,10 +120,8 @@ go_proto_library(
114120
deps = [
115121
"//google/api:annotations_go_proto",
116122
"//google/api:configchange_go_proto",
117-
"//google/api:metric_go_proto",
118123
"//google/api:serviceconfig_go_proto",
119124
"//google/longrunning:longrunning_go_proto",
120-
"//google/rpc:status_go_proto",
121125
],
122126
)
123127

@@ -126,6 +130,7 @@ go_gapic_library(
126130
srcs = [":servicemanagement_proto_with_info"],
127131
grpc_service_config = "servicemanagement_grpc_service_config.json",
128132
importpath = "cloud.google.com/go/api/servicemanagement/apiv1;servicemanagement",
133+
metadata = True,
129134
service_yaml = "servicemanagement_v1.yaml",
130135
deps = [
131136
":servicemanagement_go_proto",
@@ -149,6 +154,7 @@ go_gapic_assembly_pkg(
149154
name = "gapi-cloud-api-servicemanagement-v1-go",
150155
deps = [
151156
":servicemanagement_go_gapic",
157+
":servicemanagement_go_gapic_srcjar-metadata.srcjar",
152158
":servicemanagement_go_gapic_srcjar-test.srcjar",
153159
":servicemanagement_go_proto",
154160
],
@@ -168,10 +174,10 @@ py_gapic_library(
168174
srcs = [":servicemanagement_proto"],
169175
grpc_service_config = "servicemanagement_grpc_service_config.json",
170176
opt_args = [
171-
"warehouse-package-name=google-cloud-service-management",
172-
"python-gapic-namespace=google.cloud",
173177
"python-gapic-name=servicemanagement",
174-
]
178+
"python-gapic-namespace=google.cloud",
179+
"warehouse-package-name=google-cloud-service-management",
180+
],
175181
)
176182

177183
# Open Source Packages
@@ -279,12 +285,13 @@ ruby_cloud_gapic_library(
279285
name = "servicemanagement_ruby_gapic",
280286
srcs = [":servicemanagement_proto_with_info"],
281287
extra_protoc_parameters = [
282-
"ruby-cloud-gem-name=google-cloud-service_management-v1",
283-
"ruby-cloud-env-prefix=SERVICE_MANAGEMENT",
284-
"ruby-cloud-product-url=https://cloud.google.com/service-infrastructure/docs/overview/",
285288
"ruby-cloud-api-id=servicemanagement.googleapis.com",
286289
"ruby-cloud-api-shortname=servicemanagement",
290+
"ruby-cloud-env-prefix=SERVICE_MANAGEMENT",
291+
"ruby-cloud-gem-name=google-cloud-service_management-v1",
292+
"ruby-cloud-product-url=https://cloud.google.com/service-infrastructure/docs/overview/",
287293
],
294+
grpc_service_config = "servicemanagement_grpc_service_config.json",
288295
ruby_cloud_description = "Google Service Management allows service producers to publish their services on Google Cloud Platform so that they can be discovered and used by service consumers.",
289296
ruby_cloud_title = "Service Management API V1",
290297
deps = [

google/api/servicemanagement/v1/resources.proto

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Google LLC.
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -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-
//
1514

1615
syntax = "proto3";
1716

@@ -33,7 +32,7 @@ option ruby_package = "Google::Cloud::ServiceManagement::V1";
3332
// The full representation of a Service that is managed by
3433
// Google Service Management.
3534
message ManagedService {
36-
// The name of the service. See the [overview](https://cloud.google.com/service-management/overview)
35+
// The name of the service. See the [overview](/service-management/overview)
3736
// for naming requirements.
3837
string service_name = 2;
3938

google/api/servicemanagement/v1/servicemanagement_v1.yaml

Lines changed: 21 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
type: google.api.Service
2-
config_version: 2
2+
config_version: 3
33
name: servicemanagement.googleapis.com
44
title: Service Management API
55

@@ -9,8 +9,6 @@ apis:
99
types:
1010
- name: google.api.servicemanagement.v1.ConfigRef
1111
- name: google.api.servicemanagement.v1.ConfigSource
12-
- name: google.api.servicemanagement.v1.DisableServiceResponse
13-
- name: google.api.servicemanagement.v1.EnableServiceResponse
1412
- name: google.api.servicemanagement.v1.OperationMetadata
1513
- name: google.api.servicemanagement.v1.Rollout
1614
- name: google.api.servicemanagement.v1.SubmitConfigSourceResponse
@@ -33,12 +31,12 @@ documentation:
3331
support the managed services.
3432
3533
If you are a service producer, you can use the Google Service Management
36-
API and [Google Cloud SDK (gcloud)](/sdk) to publish and manage your
37-
services.
38-
Each managed service has a service configuration which declares various
39-
aspects of the service such as its API surface, along with parameters to
40-
configure the supporting backend systems, such as logging and monitoring.
41-
If you build your service using
34+
API and [Google Cloud SDK (gcloud)](https://cloud.google.com/sdk) to
35+
publish and manage your services. Each managed service has a service
36+
configuration which declares various aspects of the service such as its
37+
API surface, along with parameters to configure the supporting
38+
backend
39+
systems, such as logging and monitoring. If you build your service using
4240
[Google Cloud Endpoints](https://cloud.google.com/endpoints/), the service
4341
configuration will be handled automatically.
4442
@@ -54,9 +52,8 @@ documentation:
5452
REST URL:
5553
`https://servicemanagement.googleapis.com/v1/services/{service-name}` <br
5654
/> REST schema is defined
57-
[here](/service-management/reference/rest/v1/services).
58-
59-
A managed service refers to a network service managed by
55+
[here](https://cloud.google.com/service-management/reference/rest/v1/services). A
56+
managed service refers to a network service managed by
6057
Service Management. Each managed service has a unique name, such as
6158
`example.googleapis.com`, which must be a valid fully-qualified DNS name,
6259
as per RFC 1035.
@@ -66,9 +63,7 @@ documentation:
6663
services.
6764
6865
Service producers can use methods, such as
69-
[services.create](/service-management/reference/rest/v1/services/create),
70-
[services.delete](/service-management/reference/rest/v1/services/delete),
71-
[services.undelete](/service-management/reference/rest/v1/services/undelete), to
66+
[services.create](https://cloud.google.com/service-management/reference/rest/v1/services/create), [services.delete](https://cloud.google.com/service-management/reference/rest/v1/services/delete), [services.undelete](https://cloud.google.com/service-management/reference/rest/v1/services/undelete), to
7267
manipulate their managed services.
7368
7469
## Service producers
@@ -88,10 +83,9 @@ documentation:
8883
REST URL:
8984
`https://servicemanagement.googleapis.com/v1/services/{service-name}/configs/{config_id}`
9085
<br /> REST schema is defined
91-
[here](/service-management/reference/rest/v1/services.configs).
92-
93-
Each managed service is described by a service configuration which covers
94-
a wide range of features, including its name, title, RPC API
86+
[here](https://cloud.google.com/service-management/reference/rest/v1/services.configs). Each
87+
managed service is described by a service configuration which covers a
88+
wide range of features, including its name, title, RPC API
9589
definitions,
9690
REST API definitions, documentation, authentication, and more.
9791
@@ -102,8 +96,8 @@ documentation:
10296
service configurations, making it possible to easily retrace how a
10397
service's configuration evolved over time. Service configurations can be
10498
published
105-
using the [services.configs.create](/service-management/reference/rest/v1/services.configs/create) or
106-
[services.configs.submit](/service-management/reference/rest/v1/services.configs/submit) methods. Alternatively,
99+
using the [services.configs.create](https://cloud.google.com/service-management/reference/rest/v1/services.configs/create) or
100+
[services.configs.submit](https://cloud.google.com/service-management/reference/rest/v1/services.configs/submit) methods. Alternatively,
107101
`services.configs.submit` allows publishing an
108102
[OpenAPI](https://github.com/OAI/OpenAPI-Specification) specification,
109103
formerly known as the Swagger Specification, which is automatically
@@ -114,9 +108,8 @@ documentation:
114108
REST URL:
115109
`https://servicemanagement.googleapis.com/v1/services/{service-name}/rollouts/{rollout-id}`
116110
<br /> REST schema is defined
117-
[here](/service-management/reference/rest/v1/services.rollouts).
118-
119-
A `Rollout` defines how Google Service Management should deploy service
111+
[here](https://cloud.google.com/service-management/reference/rest/v1/services.rollouts). A
112+
`Rollout` defines how Google Service Management should deploy service
120113
configurations to backend systems and how the configurations take effect
121114
at runtime. It lets service producers specify multiple service
122115
configuration
@@ -137,8 +130,7 @@ documentation:
137130
Service Management keeps a history of rollouts so that service
138131
producers can undo to previous configuration versions. You can rollback a
139132
configuration by initiating a new `Rollout` that clones a previously
140-
submitted
141-
rollout record.
133+
submitted rollout record.
142134
rules:
143135
- selector: google.iam.v1.IAMPolicy.GetIamPolicy
144136
description: |-
@@ -150,14 +142,14 @@ documentation:
150142
Sets the access control policy on the specified resource. Replaces
151143
any existing policy.
152144
153-
Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and
154-
PERMISSION_DENIED
145+
Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`
146+
errors.
155147
156148
- selector: google.iam.v1.IAMPolicy.TestIamPermissions
157149
description: |-
158150
Returns permissions that a caller has on the specified resource. If the
159151
resource does not exist, this will return an empty set of
160-
permissions, not a NOT_FOUND error.
152+
permissions, not a `NOT_FOUND` error.
161153
162154
Note: This operation is designed to be used for building
163155
permission-aware UIs and command-line tools, not for authorization

0 commit comments

Comments
 (0)