Class: Google::Apis::ServiceusageV1::DisableServiceRequest
- Inherits:
-
Object
- Object
- Google::Apis::ServiceusageV1::DisableServiceRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/serviceusage_v1/classes.rb,
lib/google/apis/serviceusage_v1/representations.rb,
lib/google/apis/serviceusage_v1/representations.rb
Overview
Request message for the DisableService
method.
Instance Attribute Summary collapse
-
#check_if_service_has_usage ⇒ String
Defines the behavior for checking service usage when disabling a service.
-
#disable_dependent_services ⇒ Boolean
(also: #disable_dependent_services?)
Indicates if services that are enabled and which depend on this service should also be disabled.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DisableServiceRequest
constructor
A new instance of DisableServiceRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DisableServiceRequest
Returns a new instance of DisableServiceRequest.
1231 1232 1233 |
# File 'lib/google/apis/serviceusage_v1/classes.rb', line 1231 def initialize(**args) update!(**args) end |
Instance Attribute Details
#check_if_service_has_usage ⇒ String
Defines the behavior for checking service usage when disabling a service.
Corresponds to the JSON property checkIfServiceHasUsage
1220 1221 1222 |
# File 'lib/google/apis/serviceusage_v1/classes.rb', line 1220 def check_if_service_has_usage @check_if_service_has_usage end |
#disable_dependent_services ⇒ Boolean Also known as: disable_dependent_services?
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.
Corresponds to the JSON property disableDependentServices
1228 1229 1230 |
# File 'lib/google/apis/serviceusage_v1/classes.rb', line 1228 def disable_dependent_services @disable_dependent_services end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1236 1237 1238 1239 |
# File 'lib/google/apis/serviceusage_v1/classes.rb', line 1236 def update!(**args) @check_if_service_has_usage = args[:check_if_service_has_usage] if args.key?(:check_if_service_has_usage) @disable_dependent_services = args[:disable_dependent_services] if args.key?(:disable_dependent_services) end |