Access Approval API . folders

Instance Methods

approvalRequests()

Returns the approvalRequests Resource.

getAccessApprovalSettings(name, x__xgafv=None)

Gets the settings associated with a project, folder, or organization.

updateAccessApprovalSettings(name, body, x__xgafv=None)

Updates the settings associated with a project, folder, or organization.

Method Details

getAccessApprovalSettings(name, x__xgafv=None)
Gets the settings associated with a project, folder, or organization.

Args:
  name: string, Name of the AccessApprovalSettings to retrieve. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Settings on a Project/Folder/Organization related to Access Approval.
    "notificationEmails": [ # A list of email addresses to which notifications relating to approval
        # requests should be sent. Notifications relating to a resource will be sent
        # to all emails in the settings of ancestor resources of that resource.
      "A String",
    ],
    "name": "A String", # The resource name of the settings. Format is one of:
        # 
    #
  1. "projects/{project_id}/accessApprovalSettings"
  2. #
  3. "folders/{folder_id}/accessApprovalSettings"
  4. #
  5. "organizations/{organization_id}/accessApprovalSettings"
  6. #
      }
updateAccessApprovalSettings(name, body, x__xgafv=None)
Updates the settings associated with a project, folder, or organization.
Completely replaces the existing settings.

Args:
  name: string, The resource name of the settings. Format is one of:
  1. "projects/{project_id}/accessApprovalSettings"
  2. "folders/{folder_id}/accessApprovalSettings"
  3. "organizations/{organization_id}/accessApprovalSettings"
    1. (required) body: object, The request body. (required) The object takes the form of: { # Settings on a Project/Folder/Organization related to Access Approval. "notificationEmails": [ # A list of email addresses to which notifications relating to approval # requests should be sent. Notifications relating to a resource will be sent # to all emails in the settings of ancestor resources of that resource. "A String", ], "name": "A String", # The resource name of the settings. Format is one of: #
        #
      1. "projects/{project_id}/accessApprovalSettings"
      2. #
      3. "folders/{folder_id}/accessApprovalSettings"
      4. #
      5. "organizations/{organization_id}/accessApprovalSettings"
      6. #
          } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Settings on a Project/Folder/Organization related to Access Approval. "notificationEmails": [ # A list of email addresses to which notifications relating to approval # requests should be sent. Notifications relating to a resource will be sent # to all emails in the settings of ancestor resources of that resource. "A String", ], "name": "A String", # The resource name of the settings. Format is one of: #
            #
          1. "projects/{project_id}/accessApprovalSettings"
          2. #
          3. "folders/{folder_id}/accessApprovalSettings"
          4. #
          5. "organizations/{organization_id}/accessApprovalSettings"
          6. #
              }