Class: Google::Cloud::ServiceUsage::V1::DisableServiceRequest

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/api/serviceusage/v1/serviceusage.rb

Overview

Request message for the DisableService method.

Defined Under Namespace

Modules: CheckIfServiceHasUsage

Instance Attribute Summary collapse

Instance Attribute Details

#check_if_service_has_usage::Google::Cloud::ServiceUsage::V1::DisableServiceRequest::CheckIfServiceHasUsage

Returns Defines the behavior for checking service usage when disabling a service.

Returns:



74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'proto_docs/google/api/serviceusage/v1/serviceusage.rb', line 74

class DisableServiceRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Enum to determine if service usage should be checked when disabling a
  # service.
  module CheckIfServiceHasUsage
    # When unset, the default behavior is used, which is SKIP.
    CHECK_IF_SERVICE_HAS_USAGE_UNSPECIFIED = 0

    # If set, skip checking service usage when disabling a service.
    SKIP = 1

    # 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.
    CHECK = 2
  end
end

#disable_dependent_services::Boolean

Returns Indicates if services that are enabled and which depend on this service should also be disabled. If not set, an error will be generated if any enabled services depend on the service to be disabled. When set, the service, and any enabled services that depend on it, will be disabled together.

Returns:

  • (::Boolean)

    Indicates if services that are enabled and which depend on this service should also be disabled. If not set, an error will be generated if any enabled services depend on the service to be disabled. When set, the service, and any enabled services that depend on it, will be disabled together.



74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'proto_docs/google/api/serviceusage/v1/serviceusage.rb', line 74

class DisableServiceRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Enum to determine if service usage should be checked when disabling a
  # service.
  module CheckIfServiceHasUsage
    # When unset, the default behavior is used, which is SKIP.
    CHECK_IF_SERVICE_HAS_USAGE_UNSPECIFIED = 0

    # If set, skip checking service usage when disabling a service.
    SKIP = 1

    # 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.
    CHECK = 2
  end
end

#name::String

Returns Name of the consumer and service to disable the service on.

The enable and disable methods currently only support projects.

An example name would be: projects/123/services/serviceusage.googleapis.com where 123 is the project number.

Returns:

  • (::String)

    Name of the consumer and service to disable the service on.

    The enable and disable methods currently only support projects.

    An example name would be: projects/123/services/serviceusage.googleapis.com where 123 is the project number.



74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'proto_docs/google/api/serviceusage/v1/serviceusage.rb', line 74

class DisableServiceRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Enum to determine if service usage should be checked when disabling a
  # service.
  module CheckIfServiceHasUsage
    # When unset, the default behavior is used, which is SKIP.
    CHECK_IF_SERVICE_HAS_USAGE_UNSPECIFIED = 0

    # If set, skip checking service usage when disabling a service.
    SKIP = 1

    # 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.
    CHECK = 2
  end
end