class Organizations extends Resource (View source)

The "organizations" collection of methods.

Typical usage is:

 $securitycenterService = new Google\Service\SecurityCommandCenter(...);
 $organizations = $securitycenterService->organizations;

Methods

getOrganizationSettings(string $name, array $optParams = [])

Gets the settings for an organization.

updateOrganizationSettings(string $name, OrganizationSettings $postBody, array $optParams = [])

Updates an organization's settings.

Details

OrganizationSettings getOrganizationSettings(string $name, array $optParams = [])

Gets the settings for an organization.

(organizations.getOrganizationSettings)

Parameters

string $name

Required. Name of the organization to get organization settings for. Its format is organizations/[organization_id]/organizationSettings.

array $optParams

Optional parameters.

Return Value

OrganizationSettings

Exceptions

Exception

OrganizationSettings updateOrganizationSettings(string $name, OrganizationSettings $postBody, array $optParams = [])

Updates an organization's settings.

(organizations.updateOrganizationSettings)

Parameters

string $name

The relative resource name of the settings. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/organizationSettings".

OrganizationSettings $postBody
array $optParams

Optional parameters.

Return Value

OrganizationSettings

Exceptions

Exception