Google Cloud Service Usage V1 Client - Class CheckIfServiceHasUsage (2.1.1)

Reference documentation and code samples for the Google Cloud Service Usage V1 Client class CheckIfServiceHasUsage.

Enum to determine if service usage should be checked when disabling a service.

Protobuf type google.api.serviceusage.v1.DisableServiceRequest.CheckIfServiceHasUsage

Namespace

Google \ Cloud \ ServiceUsage \ V1 \ DisableServiceRequest

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

CHECK_IF_SERVICE_HAS_USAGE_UNSPECIFIED

Value: 0

When unset, the default behavior is used, which is SKIP.

Generated from protobuf enum CHECK_IF_SERVICE_HAS_USAGE_UNSPECIFIED = 0;

SKIP

Value: 1

If set, skip checking service usage when disabling a service.

Generated from protobuf enum SKIP = 1;

CHECK

Value: 2

If set, service usage is checked when disabling the service. If a service, or its dependents, has usage in the last 30 days, the request returns a FAILED_PRECONDITION error.

Generated from protobuf enum CHECK = 2;

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.