All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.directory.Directory.Orgunits.html Maven / Gradle / Ivy

There is a newer version: directory_v1-rev20240709-2.0.0
Show newest version






Directory.Orgunits (Admin SDK API directory_v1-rev20220125-1.32.1)












com.google.api.services.directory

Class Directory.Orgunits

  • Enclosing class:
    Directory


    public class Directory.Orgunits
    extends Object
    The "orgunits" collection of methods.
    • Constructor Detail

      • Orgunits

        public Orgunits()
    • Method Detail

      • delete

        public Directory.Orgunits.Delete delete(String customerId,
                                                String orgUnitPath)
                                         throws IOException
        Removes an organizational unit. Create a request for the method "orgunits.delete". This request holds the parameters needed by the admin server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        customerId - The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](/admin-sdk/directory/v1/reference/users).
        orgUnitPath - The full path of the organizational unit (minus the leading `/`) or its unique ID.
        Returns:
        the request
        Throws:
        IOException
      • get

        public Directory.Orgunits.Get get(String customerId,
                                          String orgUnitPath)
                                   throws IOException
        Retrieves an organizational unit. Create a request for the method "orgunits.get". This request holds the parameters needed by the admin server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        customerId - The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](/admin-sdk/directory/v1/reference/users).
        orgUnitPath - The full path of the organizational unit (minus the leading `/`) or its unique ID.
        Returns:
        the request
        Throws:
        IOException
      • insert

        public Directory.Orgunits.Insert insert(String customerId,
                                                OrgUnit content)
                                         throws IOException
        Adds an organizational unit. Create a request for the method "orgunits.insert". This request holds the parameters needed by the admin server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        customerId - The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](/admin-sdk/directory/v1/reference/users).
        content - the OrgUnit
        Returns:
        the request
        Throws:
        IOException
      • list

        public Directory.Orgunits.List list(String customerId)
                                     throws IOException
        Retrieves a list of all organizational units for an account. Create a request for the method "orgunits.list". This request holds the parameters needed by the admin server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        customerId - The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](/admin-sdk/directory/v1/reference/users).
        Returns:
        the request
        Throws:
        IOException
      • patch

        public Directory.Orgunits.Patch patch(String customerId,
                                              String orgUnitPath,
                                              OrgUnit content)
                                       throws IOException
        Updates an organizational unit. This method supports [patch semantics](/admin- sdk/directory/v1/guides/performance#patch) Create a request for the method "orgunits.patch". This request holds the parameters needed by the admin server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        customerId - The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](/admin-sdk/directory/v1/reference/users).
        orgUnitPath - The full path of the organizational unit (minus the leading `/`) or its unique ID.
        content - the OrgUnit
        Returns:
        the request
        Throws:
        IOException
      • update

        public Directory.Orgunits.Update update(String customerId,
                                                String orgUnitPath,
                                                OrgUnit content)
                                         throws IOException
        Updates an organizational unit. Create a request for the method "orgunits.update". This request holds the parameters needed by the admin server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        customerId - The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](/admin-sdk/directory/v1/reference/users).
        orgUnitPath - The full path of the organizational unit (minus the leading `/`) or its unique ID.
        content - the OrgUnit
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2022 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy