class OrganizationsSources extends Resource (View source)

The "sources" collection of methods.

Typical usage is:

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

Methods

create(string $parent, Source $postBody, array $optParams = [])

Creates a source. (sources.create)

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

Gets a source. (sources.get)

getIamPolicy(string $resource, GetIamPolicyRequest $postBody, array $optParams = [])

Gets the access control policy on the specified Source.

listOrganizationsSources(string $parent, array $optParams = [])

Lists all sources belonging to an organization.

patch(string $name, Source $postBody, array $optParams = [])

Updates a source. (sources.patch)

setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])

Sets the access control policy on the specified Source.

testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])

Returns the permissions that a caller has on the specified source.

Details

Source create(string $parent, Source $postBody, array $optParams = [])

Creates a source. (sources.create)

Parameters

string $parent

Required. Resource name of the new source's parent. Its format should be organizations/[organization_id].

Source $postBody
array $optParams

Optional parameters.

Return Value

Source

Exceptions

Exception

Source get(string $name, array $optParams = [])

Gets a source. (sources.get)

Parameters

string $name

Required. Relative resource name of the source. Its format is organizations/[organization_id]/source/[source_id].

array $optParams

Optional parameters.

Return Value

Source

Exceptions

Exception

Policy getIamPolicy(string $resource, GetIamPolicyRequest $postBody, array $optParams = [])

Gets the access control policy on the specified Source.

(sources.getIamPolicy)

Parameters

string $resource

REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.

GetIamPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

ListSourcesResponse listOrganizationsSources(string $parent, array $optParams = [])

Lists all sources belonging to an organization.

(sources.listOrganizationsSources)

Parameters

string $parent

Required. Resource name of the parent of sources to list. Its format should be organizations/[organization_id], folders/[folder_id], or projects/[project_id].

array $optParams

Optional parameters.

Return Value

ListSourcesResponse

Exceptions

Exception

Source patch(string $name, Source $postBody, array $optParams = [])

Updates a source. (sources.patch)

Parameters

string $name

The relative resource name of this source. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/sources/{source_id}"

Source $postBody
array $optParams

Optional parameters.

Return Value

Source

Exceptions

Exception

Policy setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])

Sets the access control policy on the specified Source.

(sources.setIamPolicy)

Parameters

string $resource

REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.

SetIamPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

TestIamPermissionsResponse testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])

Returns the permissions that a caller has on the specified source.

(sources.testIamPermissions)

Parameters

string $resource

REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.

TestIamPermissionsRequest $postBody
array $optParams

Optional parameters.

Return Value

TestIamPermissionsResponse

Exceptions

Exception