Class ServicesResource.ListRequest
List all services available to the specified project, and the current state of those services with respect
to the project. The list includes all public services, all services for which the calling user has the
servicemanagement.services.bind
permission, and all services that have already been enabled on the
project. The list can be filtered to only include services in a specific state, for example to only include
services enabled on the project. WARNING: If you need to query enabled services frequently or across an
organization, you should use Cloud Asset Inventory
API, which provides higher throughput and richer
filtering capability.
Inheritance
Inherited Members
Namespace: Google.Apis.ServiceUsage.v1
Assembly: Google.Apis.ServiceUsage.v1.dll
Syntax
public class ServicesResource.ListRequest : ServiceUsageBaseServiceRequest<ListServicesResponse>, IClientServiceRequest<ListServicesResponse>, IClientServiceRequest
Constructors
ListRequest(IClientService, string)
Constructs a new List request.
Declaration
public ListRequest(IClientService service, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | parent |
Properties
Filter
Only list services that conform to the given filter. The allowed filter strings are state:ENABLED
and
state:DISABLED
.
Declaration
[RequestParameter("filter", RequestParameterType.Query)]
public virtual string Filter { get; set; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
PageSize
Requested size of the next page of data. Requested page size cannot exceed 200. If not set, the default page size is 50.
Declaration
[RequestParameter("pageSize", RequestParameterType.Query)]
public virtual int? PageSize { get; set; }
Property Value
Type | Description |
---|---|
int? |
PageToken
Token identifying which result to start with, which is returned by a previous list call.
Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
Type | Description |
---|---|
string |
Parent
Parent to search for services on. An example name would be: projects/123
where 123
is the project
number.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
InitParameters()
Initializes List parameter list.
Declaration
protected override void InitParameters()