Class ProjectsResource.ServiceAccountsResource.KeysResource.ListRequest
Lists every ServiceAccountKey for a service account.
Inheritance
Inherited Members
Namespace: Google.Apis.Iam.v1
Assembly: Google.Apis.Iam.v1.dll
Syntax
public class ProjectsResource.ServiceAccountsResource.KeysResource.ListRequest : IamBaseServiceRequest<ListServiceAccountKeysResponse>, IClientServiceRequest<ListServiceAccountKeysResponse>, IClientServiceRequest
Constructors
ListRequest(IClientService, string)
Constructs a new List request.
Declaration
public ListRequest(IClientService service, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
KeyTypes
Filters the types of keys the user wants to include in the list response. Duplicate key types are not allowed. If no key type is provided, all keys are returned.
Declaration
[RequestParameter("keyTypes", RequestParameterType.Query)]
public virtual ProjectsResource.ServiceAccountsResource.KeysResource.ListRequest.KeyTypesEnum? KeyTypes { get; set; }
Property Value
Type | Description |
---|---|
ProjectsResource.ServiceAccountsResource.KeysResource.ListRequest.KeyTypesEnum? |
Remarks
Use this property to set a single value for the parameter, or KeyTypesList to set multiple values. Do not set both properties.
KeyTypesList
Filters the types of keys the user wants to include in the list response. Duplicate key types are not allowed. If no key type is provided, all keys are returned.
Declaration
[RequestParameter("keyTypes", RequestParameterType.Query)]
public virtual Repeatable<ProjectsResource.ServiceAccountsResource.KeysResource.ListRequest.KeyTypesEnum> KeyTypesList { get; set; }
Property Value
Type | Description |
---|---|
Repeatable<ProjectsResource.ServiceAccountsResource.KeysResource.ListRequest.KeyTypesEnum> |
Remarks
Use this property to set one or more values for the parameter. Do not set both this property and KeyTypes.
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Name
Required. The resource name of the service account. Use one of the following formats: *
projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}
*
projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}
As an alternative, you can use the -
wildcard character instead of the project ID: * projects/-/serviceAccounts/{EMAIL_ADDRESS}
*
projects/-/serviceAccounts/{UNIQUE_ID}
When possible, avoid using the -
wildcard character,
because it can cause response messages to contain misleading error codes. For example, if you
try to access the service account projects/-/serviceAccounts/fake@example.com
, which does not
exist, the response contains an HTTP 403 Forbidden
error instead of a 404 Not Found
error.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { 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()