public sealed class DisableServiceRequest : IMessage<DisableServiceRequest>, IEquatable<DisableServiceRequest>, IDeepCloneable<DisableServiceRequest>, IBufferMessage, IMessage
public bool DisableDependentServices { get; set; }
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis page details the \u003ccode\u003eDisableServiceRequest\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.ServiceUsage.V1\u003c/code\u003e namespace, specifically version 2.0.0, for managing service disabling requests.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDisableServiceRequest\u003c/code\u003e is a request message used for the \u003ccode\u003eDisableService\u003c/code\u003e method, and it implements multiple interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class allows specifying the behavior for checking service usage via the \u003ccode\u003eCheckIfServiceHasUsage\u003c/code\u003e property and defines whether dependent services should also be disabled with the \u003ccode\u003eDisableDependentServices\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eName\u003c/code\u003e property of the \u003ccode\u003eDisableServiceRequest\u003c/code\u003e class specifies the target service and consumer to disable, supporting only projects in the format \u003ccode\u003eprojects/123/services/serviceusage.googleapis.com\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation provides links to previous versions of \u003ccode\u003eDisableServiceRequest\u003c/code\u003e starting from 1.0.0 up until the most recent version being 2.5.0.\u003c/p\u003e\n"]]],[],null,[]]