Documentation

Google_Service_ServiceUser_Resource_ProjectsServices extends Google_Service_Resource
in package

The "services" collection of methods.

Typical usage is: $serviceuserService = new Google_Service_ServiceUser(...); $services = $serviceuserService->services;

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.
createRequestUri()  : string
Parse/expand request parameters and create a fully qualified request uri.
disable()  : Google_Service_ServiceUser_Operation
Disable a service so it can no longer be used with a project. This prevents unintended usage that may cause unexpected billing charges or security leaks.
enable()  : Google_Service_ServiceUser_Operation
Enable a service so it can be used with a project. See [Cloud Auth Guide](https://cloud.google.com/docs/authentication) for more information.
listProjectsServices()  : Google_Service_ServiceUser_ListEnabledServicesResponse
List enabled services for the specified consumer.
convertToArrayAndStripNulls()  : mixed

Properties

$methods

private array<string|int, mixed> $methods

$resourceName

private string $resourceName

$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
$name :
$arguments :
$expectedClass : = null
  • optional, the expected class name
Tags
throws
Google_Exception
Return values
Google_Http_Request|expectedClass

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
static
Return values
string

$requestUrl

disable()

Disable a service so it can no longer be used with a project. This prevents unintended usage that may cause unexpected billing charges or security leaks.

public disable(string $name, Google_Service_ServiceUser_DisableServiceRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_ServiceUser_Operation

Operation (services.disable)

Parameters
$name : string

Name of the consumer and the service to disable for that consumer.

The Service User implementation accepts the following forms for consumer: - "project:"

A valid path would be: - projects/my- project/services/servicemanagement.googleapis.com

$postBody : Google_Service_ServiceUser_DisableServiceRequest
$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_ServiceUser_Operation

enable()

Enable a service so it can be used with a project. See [Cloud Auth Guide](https://cloud.google.com/docs/authentication) for more information.

public enable(string $name, Google_Service_ServiceUser_EnableServiceRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_ServiceUser_Operation

Operation (services.enable)

Parameters
$name : string

Name of the consumer and the service to enable for that consumer.

A valid path would be: - projects/my- project/services/servicemanagement.googleapis.com

$postBody : Google_Service_ServiceUser_EnableServiceRequest
$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_ServiceUser_Operation

listProjectsServices()

List enabled services for the specified consumer.

public listProjectsServices(string $parent[, array<string|int, mixed> $optParams = array() ]) : Google_Service_ServiceUser_ListEnabledServicesResponse

(services.listProjectsServices)

Parameters
$parent : string

List enabled services for the specified parent.

An example valid parent would be: - projects/my-project

$optParams : array<string|int, mixed> = array()

Optional parameters.

Tags
opt_param

string pageToken Token identifying which result to start with; returned by a previous list call.

opt_param

int pageSize Requested size of the next page of data.

Return values
Google_Service_ServiceUser_ListEnabledServicesResponse

convertToArrayAndStripNulls()

protected convertToArrayAndStripNulls(mixed $o) : mixed
Parameters
$o : mixed
Return values
mixed

Search results