reCAPTCHA Enterprise API . projects . relatedaccountgroupmemberships

Instance Methods

close()

Close httplib2 connections.

search(project, body=None, x__xgafv=None)

Search group memberships related to a given account.

search_next(previous_request, previous_response)

Retrieves the next page of results.

Method Details

close()
Close httplib2 connections.
search(project, body=None, x__xgafv=None)
Search group memberships related to a given account.

Args:
  project: string, Required. The name of the project to search related account group memberships from, in the format "projects/{project}". (required)
  body: object, The request body.
    The object takes the form of:

{ # The request message to search related account group memberships.
  "hashedAccountId": "A String", # Optional. The unique stable hashed user identifier we should search connections to. The identifier should correspond to a `hashed_account_id` provided in a previous CreateAssessment or AnnotateAssessment call.
  "pageSize": 42, # Optional. The maximum number of groups to return. The service may return fewer than this value. If unspecified, at most 50 groups will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
  "pageToken": "A String", # Optional. A page token, received from a previous `SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `SearchRelatedAccountGroupMemberships` 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:

    { # The response to a `SearchRelatedAccountGroupMemberships` call.
  "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.
  "relatedAccountGroupMemberships": [ # The queried memberships.
    { # A membership in a group of related accounts.
      "hashedAccountId": "A String", # The unique stable hashed user identifier of the member. The identifier corresponds to a `hashed_account_id` provided in a previous CreateAssessment or AnnotateAssessment call.
      "name": "A String", # Required. The resource name for this membership in the format `projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}`.
    },
  ],
}
search_next(previous_request, previous_response)
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.