Discovery Engine API . projects . locations . userStores . userLicenses

Instance Methods

close()

Close httplib2 connections.

list(parent, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)

Lists the User Licenses.

list_next()

Retrieves the next page of results.

Method Details

close()
Close httplib2 connections.
list(parent, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)
Lists the User Licenses.

Args:
  parent: string, Required. The parent UserStore resource name, format: `projects/{project}/locations/{location}/userStores/{user_store_id}`. (required)
  orderBy: string, Optional. The order in which the UserLicenses are listed. The value must be a comma-separated list of fields. Default sorting order is ascending. To specify descending order for a field, append a " desc" suffix. Redundant space characters in the syntax are insignificant. Supported fields: * `license_assignment_state` * `user_principal` * `user_profile` * `last_login_date` * `update_time` If not set, the default ordering is by `user_principal`. Examples: * `user_principal desc` to order by `user_principal` in descending order. * `license_assignment_state` to order by `license_assignment_state` in ascending order. * `last_login_date desc` to order by `last_login_date` in descending order. * `update_time desc` to order by `update_time` in descending order. * `last_login_date desc, user_principal` to order by `last_login_date` in descending order and then by `user_principal` in ascending order.
  pageSize: integer, Optional. Requested page size. Server may return fewer items than requested. If unspecified, defaults to 10. The maximum value is 50; values above 50 will be coerced to 50. If this field is negative, an INVALID_ARGUMENT error is returned.
  pageToken: string, Optional. A page token, received from a previous `ListUserLicenses` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListUserLicenses` must match the call that provided the page token.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for UserLicenseService.ListUserLicenses.
  "nextPageToken": "A String", # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
  "userLicenses": [ # All the customer's UserLicenses.
    { # User License information assigned by the admin.
      "createTime": "A String", # Output only. User created timestamp.
      "lastLoginTime": "A String", # Output only. User last logged in time. If the user has not logged in yet, this field will be empty.
      "licenseAssignmentState": "A String", # Output only. License assignment state of the user. If the user is assigned with a license config, the user login will be assigned with the license; If the user's license assignment state is unassigned or unspecified, no license config will be associated to the user;
      "licenseConfig": "A String", # Optional. The full resource name of the Subscription(LicenseConfig) assigned to the user.
      "updateTime": "A String", # Output only. User update timestamp.
      "userPrincipal": "A String", # Required. Immutable. The user principal of the User, could be email address or other prinical identifier. This field is immutable. Admin assign licenses based on the user principal.
      "userProfile": "A String", # Optional. The user profile. We user user full name(First name + Last name) as user profile.
    },
  ],
}
list_next()
Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call 'execute()' on to request the next
          page. Returns None if there are no more items in the collection.