View Source GoogleApi.PolicyAnalyzer.V1.Api.Organizations (google_api_policy_analyzer v0.3.0)

API calls for all endpoints tagged Organizations.

Summary

Functions

Link to this function

policyanalyzer_organizations_locations_activity_types_activities_query(connection, parent, optional_params \\ [], opts \\ [])

View Source
@spec policyanalyzer_organizations_locations_activity_types_activities_query(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok,
   GoogleApi.PolicyAnalyzer.V1.Model.GoogleCloudPolicyanalyzerV1QueryActivityResponse.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Queries policy activities on Google Cloud resources.

Parameters

  • connection (type: GoogleApi.PolicyAnalyzer.V1.Connection.t) - Connection to server
  • parent (type: String.t) - Required. The container resource on which to execute the request. Acceptable formats: projects/[PROJECT_ID|PROJECT_NUMBER]/locations/[LOCATION]/activityTypes/[ACTIVITY_TYPE] LOCATION here refers to Google Cloud Locations: https://cloud.google.com/about/locations/
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
    • :filter (type: String.t) - Optional. Filter expression to restrict the activities returned. For serviceAccountLastAuthentication activities, supported filters are: - activities.full_resource_name {=} [STRING] - activities.fullResourceName {=} [STRING] where [STRING] is the full resource name of the service account. For serviceAccountKeyLastAuthentication activities, supported filters are: - activities.full_resource_name {=} [STRING] - activities.fullResourceName {=} [STRING] where [STRING] is the full resource name of the service account key.
    • :pageSize (type: integer()) - Optional. The maximum number of results to return from this request. Max limit is 1000. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.
    • :pageToken (type: String.t) - Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.PolicyAnalyzer.V1.Model.GoogleCloudPolicyanalyzerV1QueryActivityResponse{}} on success
  • {:error, info} on failure