Audit Manager API . folders . locations . resourceEnrollmentStatuses

Instance Methods

close()

Close httplib2 connections.

get(name, x__xgafv=None)

Gets a resource and its enrollment status.

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

Lists all the folders and projects in an organization or folder, along with their enrollments.

list_next(previous_request, previous_response)

Retrieves the next page of results.

Method Details

close()
Close httplib2 connections.
get(name, x__xgafv=None)
Gets a resource and its enrollment status.

Args:
  name: string, Required. Name of the resource enrollment status, in one of the following formats: * `folders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}` * `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}` * `organizations/{organization}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}` (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # An organization, folder, or project with its enrollment status.
  "displayName": "A String", # Output only. Display name for the organization, folder, or project.
  "enrolled": True or False, # Output only. Deprecated. Whether the organization, folder, or project is enrolled. Use `enrollment_state` instead.
  "enrollment": { # Organization, folder, or project to enroll for audit reports. # Output only. Enrolled destination details for the organization, folder, or project.
    "destinationDetails": [ # Output only. Cloud Storage buckets where you want to upload the audit reports.
      { # Cloud Storage bucket where the audit report is uploaded to.
        "gcsBucketUri": "A String", # URI for the Cloud Storage bucket, in the format `gs://{bucket_name}`.
      },
    ],
    "name": "A String", # Identifier. Name of the enrollment, in one of the following formats: * `projects/{project}/locations/{location}/enrollments/{enrollment}` * `folders/{folder}/locations/{location}/enrollments/{enrollment}` * `organizations/{organization}/locations/{location}/enrollments/{enrollment}`
  },
  "enrollmentState": "A String", # Output only. Enrollment state of the organization, folder, or project.
  "name": "A String", # Identifier. Name of the resource enrollment status, in one of the following formats: * `folders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}` * `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}` * `organizations/{organization}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}`
}
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
Lists all the folders and projects in an organization or folder, along with their enrollments.

Args:
  parent: string, Required. Parent organization or folder to list enrollment statuses for, in one of the following formats: * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` (required)
  pageSize: integer, Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100.
  pageToken: string, Optional. A page token, received from a previous call, to retrieve the next page of results.
  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 ListResourceEnrollmentStatuses.
  "nextPageToken": "A String", # Output only. A token that you can send as the `page_token` in a subsequent request to retrieve the next page of results. If this field is empty, there are no subsequent pages.
  "resourceEnrollmentStatuses": [ # Resources with their enrollment status.
    { # An organization, folder, or project with its enrollment status.
      "displayName": "A String", # Output only. Display name for the organization, folder, or project.
      "enrolled": True or False, # Output only. Deprecated. Whether the organization, folder, or project is enrolled. Use `enrollment_state` instead.
      "enrollment": { # Organization, folder, or project to enroll for audit reports. # Output only. Enrolled destination details for the organization, folder, or project.
        "destinationDetails": [ # Output only. Cloud Storage buckets where you want to upload the audit reports.
          { # Cloud Storage bucket where the audit report is uploaded to.
            "gcsBucketUri": "A String", # URI for the Cloud Storage bucket, in the format `gs://{bucket_name}`.
          },
        ],
        "name": "A String", # Identifier. Name of the enrollment, in one of the following formats: * `projects/{project}/locations/{location}/enrollments/{enrollment}` * `folders/{folder}/locations/{location}/enrollments/{enrollment}` * `organizations/{organization}/locations/{location}/enrollments/{enrollment}`
      },
      "enrollmentState": "A String", # Output only. Enrollment state of the organization, folder, or project.
      "name": "A String", # Identifier. Name of the resource enrollment status, in one of the following formats: * `folders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}` * `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}` * `organizations/{organization}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}`
    },
  ],
}
list_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.