Service Usage v1 API - Class EnableServiceRequest (2.6.0)

public sealed class EnableServiceRequest : IMessage<EnableServiceRequest>, IEquatable<EnableServiceRequest>, IDeepCloneable<EnableServiceRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Service Usage v1 API class EnableServiceRequest.

Request message for the EnableService method.

Inheritance

object > EnableServiceRequest

Namespace

Google.Cloud.ServiceUsage.V1

Assembly

Google.Cloud.ServiceUsage.V1.dll

Constructors

EnableServiceRequest()

public EnableServiceRequest()

EnableServiceRequest(EnableServiceRequest)

public EnableServiceRequest(EnableServiceRequest other)
Parameter
Name Description
other EnableServiceRequest

Properties

Name

public string Name { get; set; }

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

The EnableService and DisableService methods currently only support projects.

Enabling a service requires that the service is public or is shared with the user enabling the service.

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

Property Value
Type Description
string

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年11月06日 UTC.