Class ServicesResource.SearchRequest
Search tenancy units for a managed service.
Inheritance
Inherited Members
Namespace: Google.Apis.ServiceConsumerManagement.v1
Assembly: Google.Apis.ServiceConsumerManagement.v1.dll
Syntax
public class ServicesResource.SearchRequest : ServiceConsumerManagementBaseServiceRequest<SearchTenancyUnitsResponse>, IClientServiceRequest<SearchTenancyUnitsResponse>, IClientServiceRequest
Constructors
SearchRequest(IClientService, string)
Constructs a new Search request.
Declaration
public SearchRequest(IClientService service, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | parent |
Properties
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
Optional. The maximum number of results returned by this request. Currently, the default maximum is set
to 1000. If page_size
isn't provided or the size provided is a number larger than 1000, it's
automatically set to 1000.
Declaration
[RequestParameter("pageSize", RequestParameterType.Query)]
public virtual int? PageSize { get; set; }
Property Value
Type | Description |
---|---|
int? |
PageToken
Optional. The continuation token, which is used to page through large result sets. To get the next page
of results, set this parameter to the value of nextPageToken
from the previous response.
Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
Type | Description |
---|---|
string |
Parent
Required. Service for which search is performed. services/{service} {service} the name of a service, for example 'service.googleapis.com'.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
string |
Query
Optional. Set a query {expression}
for querying tenancy units. Your {expression}
must be in the
format: field_name=literal_string
. The field_name
is the name of the field you want to compare.
Supported fields are tenant_resources.tag
and tenant_resources.resource
. For example, to search
tenancy units that contain at least one tenant resource with a given tag 'xyz', use the query
tenant_resources.tag=xyz
. To search tenancy units that contain at least one tenant resource with a
given resource name 'projects/123456', use the query tenant_resources.resource=projects/123456
.
Multiple expressions can be joined with AND
s. Tenancy units must match all expressions to be included
in the result set. For example, tenant_resources.tag=xyz AND tenant_resources.resource=projects/123456
Declaration
[RequestParameter("query", RequestParameterType.Query)]
public virtual string Query { get; set; }
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 Search parameter list.
Declaration
protected override void InitParameters()