Skip to content

Commit 2ce745c

Browse files
feat: [google-cloud-service-control] ServiceController V2 APIs are out of private preview (#14123)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 785492473 Source-Link: googleapis/googleapis@80f547b Source-Link: googleapis/googleapis-gen@2e8a3aa Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlcnZpY2UtY29udHJvbC8uT3dsQm90LnlhbWwiLCJoIjoiMmU4YTNhYTMzOWRmNGRkYjYxNzk0YjNhY2RkZWYzM2UzODQ0NjViMiJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 51f86b0 commit 2ce745c

File tree

6 files changed

+21
-64
lines changed

6 files changed

+21
-64
lines changed

packages/google-cloud-service-control/google/cloud/servicecontrol_v2/services/service_controller/async_client.py

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ class ServiceControllerAsyncClient:
6666
"""`Service Control API
6767
v2 <https://cloud.google.com/service-infrastructure/docs/service-control/access-control>`__
6868
69-
Private Preview. This feature is only available for approved
70-
services.
71-
7269
This API provides admission control and telemetry reporting for
7370
services that are integrated with `Service
7471
Infrastructure <https://cloud.google.com/service-infrastructure>`__.
@@ -307,10 +304,7 @@ async def check(
307304
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
308305
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
309306
) -> service_controller.CheckResponse:
310-
r"""Private Preview. This feature is only available for approved
311-
services.
312-
313-
This method provides admission control for services that are
307+
r"""This method provides admission control for services that are
314308
integrated with `Service
315309
Infrastructure <https://cloud.google.com/service-infrastructure>`__.
316310
It checks whether an operation should be allowed based on the
@@ -414,20 +408,16 @@ async def report(
414408
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
415409
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
416410
) -> service_controller.ReportResponse:
417-
r"""Private Preview. This feature is only available for approved
418-
services.
419-
420-
This method provides telemetry reporting for services that are
411+
r"""This method provides telemetry reporting for services that are
421412
integrated with `Service
422413
Infrastructure <https://cloud.google.com/service-infrastructure>`__.
423414
It reports a list of operations that have occurred on a service.
424415
It must be called after the operations have been executed. For
425416
more information, see `Telemetry
426417
Reporting <https://cloud.google.com/service-infrastructure/docs/telemetry-reporting>`__.
427418
428-
NOTE: The telemetry reporting has a hard limit of 1000
429-
operations and 1MB per Report call. It is recommended to have no
430-
more than 100 operations per call.
419+
NOTE: The telemetry reporting has a hard limit of 100 operations
420+
and 1MB per Report call.
431421
432422
This method requires the ``servicemanagement.services.report``
433423
permission on the specified service. For more information, see

packages/google-cloud-service-control/google/cloud/servicecontrol_v2/services/service_controller/client.py

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,6 @@ class ServiceControllerClient(metaclass=ServiceControllerClientMeta):
112112
"""`Service Control API
113113
v2 <https://cloud.google.com/service-infrastructure/docs/service-control/access-control>`__
114114
115-
Private Preview. This feature is only available for approved
116-
services.
117-
118115
This API provides admission control and telemetry reporting for
119116
services that are integrated with `Service
120117
Infrastructure <https://cloud.google.com/service-infrastructure>`__.
@@ -711,10 +708,7 @@ def check(
711708
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
712709
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
713710
) -> service_controller.CheckResponse:
714-
r"""Private Preview. This feature is only available for approved
715-
services.
716-
717-
This method provides admission control for services that are
711+
r"""This method provides admission control for services that are
718712
integrated with `Service
719713
Infrastructure <https://cloud.google.com/service-infrastructure>`__.
720714
It checks whether an operation should be allowed based on the
@@ -818,20 +812,16 @@ def report(
818812
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
819813
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
820814
) -> service_controller.ReportResponse:
821-
r"""Private Preview. This feature is only available for approved
822-
services.
823-
824-
This method provides telemetry reporting for services that are
815+
r"""This method provides telemetry reporting for services that are
825816
integrated with `Service
826817
Infrastructure <https://cloud.google.com/service-infrastructure>`__.
827818
It reports a list of operations that have occurred on a service.
828819
It must be called after the operations have been executed. For
829820
more information, see `Telemetry
830821
Reporting <https://cloud.google.com/service-infrastructure/docs/telemetry-reporting>`__.
831822
832-
NOTE: The telemetry reporting has a hard limit of 1000
833-
operations and 1MB per Report call. It is recommended to have no
834-
more than 100 operations per call.
823+
NOTE: The telemetry reporting has a hard limit of 100 operations
824+
and 1MB per Report call.
835825
836826
This method requires the ``servicemanagement.services.report``
837827
permission on the specified service. For more information, see

packages/google-cloud-service-control/google/cloud/servicecontrol_v2/services/service_controller/transports/grpc.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,6 @@ class ServiceControllerGrpcTransport(ServiceControllerTransport):
113113
`Service Control API
114114
v2 <https://cloud.google.com/service-infrastructure/docs/service-control/access-control>`__
115115
116-
Private Preview. This feature is only available for approved
117-
services.
118-
119116
This API provides admission control and telemetry reporting for
120117
services that are integrated with `Service
121118
Infrastructure <https://cloud.google.com/service-infrastructure>`__.
@@ -333,9 +330,6 @@ def check(
333330
) -> Callable[[service_controller.CheckRequest], service_controller.CheckResponse]:
334331
r"""Return a callable for the check method over gRPC.
335332
336-
Private Preview. This feature is only available for approved
337-
services.
338-
339333
This method provides admission control for services that are
340334
integrated with `Service
341335
Infrastructure <https://cloud.google.com/service-infrastructure>`__.
@@ -384,9 +378,6 @@ def report(
384378
]:
385379
r"""Return a callable for the report method over gRPC.
386380
387-
Private Preview. This feature is only available for approved
388-
services.
389-
390381
This method provides telemetry reporting for services that are
391382
integrated with `Service
392383
Infrastructure <https://cloud.google.com/service-infrastructure>`__.
@@ -395,9 +386,8 @@ def report(
395386
more information, see `Telemetry
396387
Reporting <https://cloud.google.com/service-infrastructure/docs/telemetry-reporting>`__.
397388
398-
NOTE: The telemetry reporting has a hard limit of 1000
399-
operations and 1MB per Report call. It is recommended to have no
400-
more than 100 operations per call.
389+
NOTE: The telemetry reporting has a hard limit of 100 operations
390+
and 1MB per Report call.
401391
402392
This method requires the ``servicemanagement.services.report``
403393
permission on the specified service. For more information, see

packages/google-cloud-service-control/google/cloud/servicecontrol_v2/services/service_controller/transports/grpc_asyncio.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,6 @@ class ServiceControllerGrpcAsyncIOTransport(ServiceControllerTransport):
119119
`Service Control API
120120
v2 <https://cloud.google.com/service-infrastructure/docs/service-control/access-control>`__
121121
122-
Private Preview. This feature is only available for approved
123-
services.
124-
125122
This API provides admission control and telemetry reporting for
126123
services that are integrated with `Service
127124
Infrastructure <https://cloud.google.com/service-infrastructure>`__.
@@ -343,9 +340,6 @@ def check(
343340
]:
344341
r"""Return a callable for the check method over gRPC.
345342
346-
Private Preview. This feature is only available for approved
347-
services.
348-
349343
This method provides admission control for services that are
350344
integrated with `Service
351345
Infrastructure <https://cloud.google.com/service-infrastructure>`__.
@@ -394,9 +388,6 @@ def report(
394388
]:
395389
r"""Return a callable for the report method over gRPC.
396390
397-
Private Preview. This feature is only available for approved
398-
services.
399-
400391
This method provides telemetry reporting for services that are
401392
integrated with `Service
402393
Infrastructure <https://cloud.google.com/service-infrastructure>`__.
@@ -405,9 +396,8 @@ def report(
405396
more information, see `Telemetry
406397
Reporting <https://cloud.google.com/service-infrastructure/docs/telemetry-reporting>`__.
407398
408-
NOTE: The telemetry reporting has a hard limit of 1000
409-
operations and 1MB per Report call. It is recommended to have no
410-
more than 100 operations per call.
399+
NOTE: The telemetry reporting has a hard limit of 100 operations
400+
and 1MB per Report call.
411401
412402
This method requires the ``servicemanagement.services.report``
413403
permission on the specified service. For more information, see

packages/google-cloud-service-control/google/cloud/servicecontrol_v2/services/service_controller/transports/rest.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,6 @@ class ServiceControllerRestTransport(_BaseServiceControllerRestTransport):
208208
`Service Control API
209209
v2 <https://cloud.google.com/service-infrastructure/docs/service-control/access-control>`__
210210
211-
Private Preview. This feature is only available for approved
212-
services.
213-
214211
This API provides admission control and telemetry reporting for
215212
services that are integrated with `Service
216213
Infrastructure <https://cloud.google.com/service-infrastructure>`__.

packages/google-cloud-service-control/google/cloud/servicecontrol_v2/types/service_controller.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,16 @@ class ResourceInfo(proto.Message):
105105
For Google Cloud APIs, the resource container must be one of
106106
the following formats: -
107107
``projects/<project-id or project-number>`` -
108-
``folders/<folder-id>`` -
109-
``organizations/<organization-id>`` For the policy
110-
enforcement on the container level (VPCSC and Location
111-
Policy check), this field takes precedence on the container
112-
extracted from name when presents.
108+
``folders/<folder-number>`` -
109+
``organizations/<organization-number>`` Required for the
110+
policy enforcement on the container level (e.g. VPCSC,
111+
Location Policy check, Org Policy check).
113112
location (str):
114-
Optional. The location of the resource. The
115-
value must be a valid zone, region or
116-
multiregion. For example: "europe-west4" or
117-
"northamerica-northeast1-a".
113+
Optional. The location of the resource, it
114+
must be a valid zone, region or multiregion, for
115+
example: "europe-west4",
116+
"northamerica-northeast1-a". Required for
117+
location policy check.
118118
"""
119119

120120
name: str = proto.Field(

0 commit comments

Comments
 (0)