Google_Service_SecurityCommandCenter_Resource_OrganizationsSources
extends Google_Service_Resource
in package
The "sources" collection of methods.
Typical usage is:
$securitycenterService = new Google_Service_SecurityCommandCenter(...);
$sources = $securitycenterService->sources;
Table of Contents
- $client : Google_Client
- $methods : array<string|int, mixed>
- $resourceName : string
- $rootUrl : string
- $serviceName : string
- $servicePath : string
- $stackParameters : mixed
- __construct() : mixed
- call() : Google_Http_Request|expectedClass
- TODO: This function needs simplifying.
- create() : Google_Service_SecurityCommandCenter_Source
- Creates a source. (sources.create)
- createRequestUri() : string
- Parse/expand request parameters and create a fully qualified request uri.
- get() : Google_Service_SecurityCommandCenter_Source
- Gets a source. (sources.get)
- getIamPolicy() : Google_Service_SecurityCommandCenter_Policy
- Gets the access control policy on the specified Source.
- listOrganizationsSources() : Google_Service_SecurityCommandCenter_ListSourcesResponse
- Lists all sources belonging to an organization.
- patch() : Google_Service_SecurityCommandCenter_Source
- Updates a source. (sources.patch)
- setIamPolicy() : Google_Service_SecurityCommandCenter_Policy
- Sets the access control policy on the specified Source.
- testIamPermissions() : Google_Service_SecurityCommandCenter_TestIamPermissionsResponse
- Returns the permissions that a caller has on the specified source.
- convertToArrayAndStripNulls() : mixed
Properties
$client
private
Google_Client
$client
$methods
private
array<string|int, mixed>
$methods
$resourceName
private
string
$resourceName
$rootUrl
private
string
$rootUrl
$serviceName
private
string
$serviceName
$servicePath
private
string
$servicePath
$stackParameters
private
mixed
$stackParameters
= array('alt' => array('type' => 'string', 'location' => 'query'), 'fields' => array('type' => 'string', 'location' => 'query'), 'trace' => array('type' => 'string', 'location' => 'query'), 'userIp' => array('type' => 'string', 'location' => 'query'), 'quotaUser' => array('type' => 'string', 'location' => 'query'), 'data' => array('type' => 'string', 'location' => 'body'), 'mimeType' => array('type' => 'string', 'location' => 'header'), 'uploadType' => array('type' => 'string', 'location' => 'query'), 'mediaUpload' => array('type' => 'complex', 'location' => 'query'), 'prettyPrint' => array('type' => 'string', 'location' => 'query'))
Methods
__construct()
public
__construct(mixed $service, mixed $serviceName, mixed $resourceName, mixed $resource) : mixed
Parameters
- $service : mixed
- $serviceName : mixed
- $resourceName : mixed
- $resource : mixed
Return values
mixed —call()
TODO: This function needs simplifying.
public
call( $name, $arguments[, $expectedClass = null ]) : Google_Http_Request|expectedClass
Parameters
Tags
Return values
Google_Http_Request|expectedClass —create()
Creates a source. (sources.create)
public
create(string $parent, Google_Service_SecurityCommandCenter_Source $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_SecurityCommandCenter_Source
Parameters
- $parent : string
-
Required. Resource name of the new source's parent. Its format should be "organizations/[organization_id]".
- $postBody : Google_Service_SecurityCommandCenter_Source
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_SecurityCommandCenter_Source —createRequestUri()
Parse/expand request parameters and create a fully qualified request uri.
public
createRequestUri(string $restPath, array<string|int, mixed> $params) : string
Parameters
- $restPath : string
- $params : array<string|int, mixed>
Tags
Return values
string —$requestUrl
get()
Gets a source. (sources.get)
public
get(string $name[, array<string|int, mixed> $optParams = array() ]) : Google_Service_SecurityCommandCenter_Source
Parameters
- $name : string
-
Required. Relative resource name of the source. Its format is "organizations/[organization_id]/source/[source_id]".
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_SecurityCommandCenter_Source —getIamPolicy()
Gets the access control policy on the specified Source.
public
getIamPolicy(string $resource, Google_Service_SecurityCommandCenter_GetIamPolicyRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_SecurityCommandCenter_Policy
(sources.getIamPolicy)
Parameters
- $resource : string
-
REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.
- $postBody : Google_Service_SecurityCommandCenter_GetIamPolicyRequest
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_SecurityCommandCenter_Policy —listOrganizationsSources()
Lists all sources belonging to an organization.
public
listOrganizationsSources(string $parent[, array<string|int, mixed> $optParams = array() ]) : Google_Service_SecurityCommandCenter_ListSourcesResponse
(sources.listOrganizationsSources)
Parameters
- $parent : string
-
Required. Resource name of the parent of sources to list. Its format should be "organizations/[organization_id]".
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_SecurityCommandCenter_ListSourcesResponse —patch()
Updates a source. (sources.patch)
public
patch(string $name, Google_Service_SecurityCommandCenter_Source $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_SecurityCommandCenter_Source
Parameters
- $name : string
-
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}"
- $postBody : Google_Service_SecurityCommandCenter_Source
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_SecurityCommandCenter_Source —setIamPolicy()
Sets the access control policy on the specified Source.
public
setIamPolicy(string $resource, Google_Service_SecurityCommandCenter_SetIamPolicyRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_SecurityCommandCenter_Policy
(sources.setIamPolicy)
Parameters
- $resource : string
-
REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.
- $postBody : Google_Service_SecurityCommandCenter_SetIamPolicyRequest
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_SecurityCommandCenter_Policy —testIamPermissions()
Returns the permissions that a caller has on the specified source.
public
testIamPermissions(string $resource, Google_Service_SecurityCommandCenter_TestIamPermissionsRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_SecurityCommandCenter_TestIamPermissionsResponse
(sources.testIamPermissions)
Parameters
- $resource : string
-
REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.
- $postBody : Google_Service_SecurityCommandCenter_TestIamPermissionsRequest
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_SecurityCommandCenter_TestIamPermissionsResponse —convertToArrayAndStripNulls()
protected
convertToArrayAndStripNulls(mixed $o) : mixed
Parameters
- $o : mixed