getLoginProfile method
Retrieves the profile information used for logging in to a virtual machine on Google Compute Engine.
Request parameters:
name
- Required. The unique ID for the user in format users/{user}
.
Value must have pattern ^users/\[^/\]+$
.
projectId
- The project ID of the Google Cloud Platform project.
systemId
- A system ID for filtering the results of the request.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a LoginProfile.
Completes with a commons.ApiRequestError if the API endpoint returned an error.
If the used http.Client
completes with an error when making a REST call,
this method will complete with the same error.
Implementation
async.Future<LoginProfile> getLoginProfile(
core.String name, {
core.String? projectId,
core.String? systemId,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (projectId != null) 'projectId': [projectId],
if (systemId != null) 'systemId': [systemId],
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v1/' + core.Uri.encodeFull('$name') + '/loginProfile';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return LoginProfile.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}