Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
/**
* The "debug" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $debug = $cloudsearchService->debug;
* </code>
*/
class Debug extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Debug::class, 'Google_Service_CloudSearch_Resource_Debug');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
/**
* The "datasources" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $datasources = $cloudsearchService->debug_datasources;
* </code>
*/
class DebugDatasources extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DebugDatasources::class, 'Google_Service_CloudSearch_Resource_DebugDatasources');

View File

@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
use Google\Service\CloudSearch\CheckAccessResponse;
use Google\Service\CloudSearch\Principal;
use Google\Service\CloudSearch\SearchItemsByViewUrlRequest;
use Google\Service\CloudSearch\SearchItemsByViewUrlResponse;
/**
* The "items" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $items = $cloudsearchService->debug_datasources_items;
* </code>
*/
class DebugDatasourcesItems extends \Google\Service\Resource
{
/**
* Checks whether an item is accessible by specified principal. Principal must
* be a user; groups and domain values aren't supported. **Note:** This API
* requires an admin account to execute. (items.checkAccess)
*
* @param string $name Item name, format:
* datasources/{source_id}/items/{item_id}
* @param Principal $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool debugOptions.enableDebugging If you are asked by Google to
* help with debugging, set this field. Otherwise, ignore this field.
* @return CheckAccessResponse
* @throws \Google\Service\Exception
*/
public function checkAccess($name, Principal $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('checkAccess', [$params], CheckAccessResponse::class);
}
/**
* Fetches the item whose viewUrl exactly matches that of the URL provided in
* the request. **Note:** This API requires an admin account to execute.
* (items.searchByViewUrl)
*
* @param string $name Source name, format: datasources/{source_id}
* @param SearchItemsByViewUrlRequest $postBody
* @param array $optParams Optional parameters.
* @return SearchItemsByViewUrlResponse
* @throws \Google\Service\Exception
*/
public function searchByViewUrl($name, SearchItemsByViewUrlRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('searchByViewUrl', [$params], SearchItemsByViewUrlResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DebugDatasourcesItems::class, 'Google_Service_CloudSearch_Resource_DebugDatasourcesItems');

View File

@@ -0,0 +1,59 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
use Google\Service\CloudSearch\ListUnmappedIdentitiesResponse;
/**
* The "unmappedids" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $unmappedids = $cloudsearchService->debug_datasources_items_unmappedids;
* </code>
*/
class DebugDatasourcesItemsUnmappedids extends \Google\Service\Resource
{
/**
* List all unmapped identities for a specific item. **Note:** This API requires
* an admin account to execute.
* (unmappedids.listDebugDatasourcesItemsUnmappedids)
*
* @param string $parent The name of the item, in the following format:
* datasources/{source_id}/items/{ID}
* @param array $optParams Optional parameters.
*
* @opt_param bool debugOptions.enableDebugging If you are asked by Google to
* help with debugging, set this field. Otherwise, ignore this field.
* @opt_param int pageSize Maximum number of items to fetch in a request.
* Defaults to 100.
* @opt_param string pageToken The next_page_token value returned from a
* previous List request, if any.
* @return ListUnmappedIdentitiesResponse
* @throws \Google\Service\Exception
*/
public function listDebugDatasourcesItemsUnmappedids($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListUnmappedIdentitiesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DebugDatasourcesItemsUnmappedids::class, 'Google_Service_CloudSearch_Resource_DebugDatasourcesItemsUnmappedids');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
/**
* The "identitysources" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $identitysources = $cloudsearchService->debug_identitysources;
* </code>
*/
class DebugIdentitysources extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DebugIdentitysources::class, 'Google_Service_CloudSearch_Resource_DebugIdentitysources');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
use Google\Service\CloudSearch\ListItemNamesForUnmappedIdentityResponse;
/**
* The "items" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $items = $cloudsearchService->debug_identitysources_items;
* </code>
*/
class DebugIdentitysourcesItems extends \Google\Service\Resource
{
/**
* Lists names of items associated with an unmapped identity. **Note:** This API
* requires an admin account to execute. (items.listForunmappedidentity)
*
* @param string $parent The name of the identity source, in the following
* format: identitysources/{source_id}}
* @param array $optParams Optional parameters.
*
* @opt_param bool debugOptions.enableDebugging If you are asked by Google to
* help with debugging, set this field. Otherwise, ignore this field.
* @opt_param string groupResourceName
* @opt_param int pageSize Maximum number of items to fetch in a request.
* Defaults to 100.
* @opt_param string pageToken The next_page_token value returned from a
* previous List request, if any.
* @opt_param string userResourceName
* @return ListItemNamesForUnmappedIdentityResponse
* @throws \Google\Service\Exception
*/
public function listForunmappedidentity($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('listForunmappedidentity', [$params], ListItemNamesForUnmappedIdentityResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DebugIdentitysourcesItems::class, 'Google_Service_CloudSearch_Resource_DebugIdentitysourcesItems');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
use Google\Service\CloudSearch\ListUnmappedIdentitiesResponse;
/**
* The "unmappedids" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $unmappedids = $cloudsearchService->debug_identitysources_unmappedids;
* </code>
*/
class DebugIdentitysourcesUnmappedids extends \Google\Service\Resource
{
/**
* Lists unmapped user identities for an identity source. **Note:** This API
* requires an admin account to execute.
* (unmappedids.listDebugIdentitysourcesUnmappedids)
*
* @param string $parent The name of the identity source, in the following
* format: identitysources/{source_id}
* @param array $optParams Optional parameters.
*
* @opt_param bool debugOptions.enableDebugging If you are asked by Google to
* help with debugging, set this field. Otherwise, ignore this field.
* @opt_param int pageSize Maximum number of items to fetch in a request.
* Defaults to 100.
* @opt_param string pageToken The next_page_token value returned from a
* previous List request, if any.
* @opt_param string resolutionStatusCode Limit users selection to this status.
* @return ListUnmappedIdentitiesResponse
* @throws \Google\Service\Exception
*/
public function listDebugIdentitysourcesUnmappedids($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListUnmappedIdentitiesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DebugIdentitysourcesUnmappedids::class, 'Google_Service_CloudSearch_Resource_DebugIdentitysourcesUnmappedids');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
/**
* The "indexing" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $indexing = $cloudsearchService->indexing;
* </code>
*/
class Indexing extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Indexing::class, 'Google_Service_CloudSearch_Resource_Indexing');

View File

@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
use Google\Service\CloudSearch\Operation;
use Google\Service\CloudSearch\Schema;
use Google\Service\CloudSearch\UpdateSchemaRequest;
/**
* The "datasources" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $datasources = $cloudsearchService->indexing_datasources;
* </code>
*/
class IndexingDatasources extends \Google\Service\Resource
{
/**
* Deletes the schema of a data source. **Note:** This API requires an admin or
* service account to execute. (datasources.deleteSchema)
*
* @param string $name The name of the data source to delete Schema. Format:
* datasources/{source_id}
* @param array $optParams Optional parameters.
*
* @opt_param bool debugOptions.enableDebugging If you are asked by Google to
* help with debugging, set this field. Otherwise, ignore this field.
* @return Operation
* @throws \Google\Service\Exception
*/
public function deleteSchema($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('deleteSchema', [$params], Operation::class);
}
/**
* Gets the schema of a data source. **Note:** This API requires an admin or
* service account to execute. (datasources.getSchema)
*
* @param string $name The name of the data source to get Schema. Format:
* datasources/{source_id}
* @param array $optParams Optional parameters.
*
* @opt_param bool debugOptions.enableDebugging If you are asked by Google to
* help with debugging, set this field. Otherwise, ignore this field.
* @return Schema
* @throws \Google\Service\Exception
*/
public function getSchema($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getSchema', [$params], Schema::class);
}
/**
* Updates the schema of a data source. This method does not perform incremental
* updates to the schema. Instead, this method updates the schema by overwriting
* the entire schema. **Note:** This API requires an admin or service account to
* execute. (datasources.updateSchema)
*
* @param string $name The name of the data source to update Schema. Format:
* datasources/{source_id}
* @param UpdateSchemaRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function updateSchema($name, UpdateSchemaRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateSchema', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IndexingDatasources::class, 'Google_Service_CloudSearch_Resource_IndexingDatasources');

View File

@@ -0,0 +1,256 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
use Google\Service\CloudSearch\DeleteQueueItemsRequest;
use Google\Service\CloudSearch\IndexItemRequest;
use Google\Service\CloudSearch\Item;
use Google\Service\CloudSearch\ListItemsResponse;
use Google\Service\CloudSearch\Operation;
use Google\Service\CloudSearch\PollItemsRequest;
use Google\Service\CloudSearch\PollItemsResponse;
use Google\Service\CloudSearch\PushItemRequest;
use Google\Service\CloudSearch\StartUploadItemRequest;
use Google\Service\CloudSearch\UnreserveItemsRequest;
use Google\Service\CloudSearch\UploadItemRef;
/**
* The "items" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $items = $cloudsearchService->indexing_datasources_items;
* </code>
*/
class IndexingDatasourcesItems extends \Google\Service\Resource
{
/**
* Deletes Item resource for the specified resource name. This API requires an
* admin or service account to execute. The service account used is the one
* whitelisted in the corresponding data source. (items.delete)
*
* @param string $name Required. The name of the item to delete. Format:
* datasources/{source_id}/items/{item_id}
* @param array $optParams Optional parameters.
*
* @opt_param string connectorName The name of connector making this call.
* Format: datasources/{source_id}/connectors/{ID}
* @opt_param bool debugOptions.enableDebugging If you are asked by Google to
* help with debugging, set this field. Otherwise, ignore this field.
* @opt_param string mode Required. The RequestMode for this request.
* @opt_param string version Required. The incremented version of the item to
* delete from the index. The indexing system stores the version from the
* datasource as a byte string and compares the Item version in the index to the
* version of the queued Item using lexical ordering. Cloud Search Indexing
* won't delete any queued item with a version value that is less than or equal
* to the version of the currently indexed item. The maximum length for this
* field is 1024 bytes. For information on how item version affects the deletion
* process, refer to [Handle revisions after manual
* deletes](https://developers.google.com/cloud-search/docs/guides/operations).
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Deletes all items in a queue. This method is useful for deleting stale items.
* This API requires an admin or service account to execute. The service account
* used is the one whitelisted in the corresponding data source.
* (items.deleteQueueItems)
*
* @param string $name The name of the Data Source to delete items in a queue.
* Format: datasources/{source_id}
* @param DeleteQueueItemsRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function deleteQueueItems($name, DeleteQueueItemsRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('deleteQueueItems', [$params], Operation::class);
}
/**
* Gets Item resource by item name. This API requires an admin or service
* account to execute. The service account used is the one whitelisted in the
* corresponding data source. (items.get)
*
* @param string $name The name of the item to get info. Format:
* datasources/{source_id}/items/{item_id}
* @param array $optParams Optional parameters.
*
* @opt_param string connectorName The name of connector making this call.
* Format: datasources/{source_id}/connectors/{ID}
* @opt_param bool debugOptions.enableDebugging If you are asked by Google to
* help with debugging, set this field. Otherwise, ignore this field.
* @return Item
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Item::class);
}
/**
* Updates Item ACL, metadata, and content. It will insert the Item if it does
* not exist. This method does not support partial updates. Fields with no
* provided values are cleared out in the Cloud Search index. This API requires
* an admin or service account to execute. The service account used is the one
* whitelisted in the corresponding data source. (items.index)
*
* @param string $name The name of the Item. Format:
* datasources/{source_id}/items/{item_id} This is a required field. The maximum
* length is 1536 characters.
* @param IndexItemRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function index($name, IndexItemRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('index', [$params], Operation::class);
}
/**
* Lists all or a subset of Item resources. This API requires an admin or
* service account to execute. The service account used is the one whitelisted
* in the corresponding data source. (items.listIndexingDatasourcesItems)
*
* @param string $name The name of the Data Source to list Items. Format:
* datasources/{source_id}
* @param array $optParams Optional parameters.
*
* @opt_param bool brief When set to true, the indexing system only populates
* the following fields: name, version, queue. metadata.hash, metadata.title,
* metadata.sourceRepositoryURL, metadata.objectType, metadata.createTime,
* metadata.updateTime, metadata.contentLanguage, metadata.mimeType,
* structured_data.hash, content.hash, itemType, itemStatus.code,
* itemStatus.processingError.code, itemStatus.repositoryError.type, If this
* value is false, then all the fields are populated in Item.
* @opt_param string connectorName The name of connector making this call.
* Format: datasources/{source_id}/connectors/{ID}
* @opt_param bool debugOptions.enableDebugging If you are asked by Google to
* help with debugging, set this field. Otherwise, ignore this field.
* @opt_param int pageSize Maximum number of items to fetch in a request. The
* max value is 1000 when brief is true. The max value is 10 if brief is false.
* The default value is 10
* @opt_param string pageToken The next_page_token value returned from a
* previous List request, if any.
* @return ListItemsResponse
* @throws \Google\Service\Exception
*/
public function listIndexingDatasourcesItems($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListItemsResponse::class);
}
/**
* Polls for unreserved items from the indexing queue and marks a set as
* reserved, starting with items that have the oldest timestamp from the highest
* priority ItemStatus. The priority order is as follows: ERROR MODIFIED
* NEW_ITEM ACCEPTED Reserving items ensures that polling from other threads
* cannot create overlapping sets. After handling the reserved items, the client
* should put items back into the unreserved state, either by calling index, or
* by calling push with the type REQUEUE. Items automatically become available
* (unreserved) after 4 hours even if no update or push method is called. This
* API requires an admin or service account to execute. The service account used
* is the one whitelisted in the corresponding data source. (items.poll)
*
* @param string $name The name of the Data Source to poll items. Format:
* datasources/{source_id}
* @param PollItemsRequest $postBody
* @param array $optParams Optional parameters.
* @return PollItemsResponse
* @throws \Google\Service\Exception
*/
public function poll($name, PollItemsRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('poll', [$params], PollItemsResponse::class);
}
/**
* Pushes an item onto a queue for later polling and updating. This API requires
* an admin or service account to execute. The service account used is the one
* whitelisted in the corresponding data source. (items.push)
*
* @param string $name The name of the item to push into the indexing queue.
* Format: datasources/{source_id}/items/{ID} This is a required field. The
* maximum length is 1536 characters.
* @param PushItemRequest $postBody
* @param array $optParams Optional parameters.
* @return Item
* @throws \Google\Service\Exception
*/
public function push($name, PushItemRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('push', [$params], Item::class);
}
/**
* Unreserves all items from a queue, making them all eligible to be polled.
* This method is useful for resetting the indexing queue after a connector has
* been restarted. This API requires an admin or service account to execute. The
* service account used is the one whitelisted in the corresponding data source.
* (items.unreserve)
*
* @param string $name The name of the Data Source to unreserve all items.
* Format: datasources/{source_id}
* @param UnreserveItemsRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function unreserve($name, UnreserveItemsRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('unreserve', [$params], Operation::class);
}
/**
* Creates an upload session for uploading item content. For items smaller than
* 100 KB, it's easier to embed the content inline within an index request. This
* API requires an admin or service account to execute. The service account used
* is the one whitelisted in the corresponding data source. (items.upload)
*
* @param string $name The name of the Item to start a resumable upload. Format:
* datasources/{source_id}/items/{item_id}. The maximum length is 1536 bytes.
* @param StartUploadItemRequest $postBody
* @param array $optParams Optional parameters.
* @return UploadItemRef
* @throws \Google\Service\Exception
*/
public function upload($name, StartUploadItemRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('upload', [$params], UploadItemRef::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IndexingDatasourcesItems::class, 'Google_Service_CloudSearch_Resource_IndexingDatasourcesItems');

View File

@@ -0,0 +1,65 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
use Google\Service\CloudSearch\Media as MediaModel;
/**
* The "media" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $media = $cloudsearchService->media;
* </code>
*/
class Media extends \Google\Service\Resource
{
/**
* Uploads media for indexing. The upload endpoint supports direct and resumable
* upload protocols and is intended for large items that can not be [inlined
* during index requests](https://developers.google.com/cloud-
* search/docs/reference/rest/v1/indexing.datasources.items#itemcontent). To
* index large content: 1. Call indexing.datasources.items.upload with the item
* name to begin an upload session and retrieve the UploadItemRef. 1. Call
* media.upload to upload the content, as a streaming request, using the same
* resource name from the UploadItemRef from step 1. 1. Call
* indexing.datasources.items.index to index the item. Populate the
* [ItemContent](/cloud-
* search/docs/reference/rest/v1/indexing.datasources.items#ItemContent) with
* the UploadItemRef from step 1. For additional information, see [Create a
* content connector using the REST API](https://developers.google.com/cloud-
* search/docs/guides/content-connector#rest). **Note:** This API requires a
* service account to execute. (media.upload)
*
* @param string $resourceName Name of the media that is being downloaded. See
* ReadRequest.resource_name.
* @param MediaModel $postBody
* @param array $optParams Optional parameters.
* @return MediaModel
* @throws \Google\Service\Exception
*/
public function upload($resourceName, MediaModel $postBody, $optParams = [])
{
$params = ['resourceName' => $resourceName, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('upload', [$params], MediaModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Media::class, 'Google_Service_CloudSearch_Resource_Media');

View File

@@ -0,0 +1,51 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
use Google\Service\CloudSearch\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $operations = $cloudsearchService->operations;
* </code>
*/
class Operations extends \Google\Service\Resource
{
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operations::class, 'Google_Service_CloudSearch_Resource_Operations');

View File

@@ -0,0 +1,55 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
use Google\Service\CloudSearch\ListOperationsResponse;
/**
* The "lro" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $lro = $cloudsearchService->operations_lro;
* </code>
*/
class OperationsLro extends \Google\Service\Resource
{
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (lro.listOperationsLro)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listOperationsLro($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationsLro::class, 'Google_Service_CloudSearch_Resource_OperationsLro');

View File

@@ -0,0 +1,121 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
use Google\Service\CloudSearch\DebugResponse;
use Google\Service\CloudSearch\RemoveActivityRequest;
use Google\Service\CloudSearch\RemoveActivityResponse;
use Google\Service\CloudSearch\SearchRequest;
use Google\Service\CloudSearch\SearchResponse;
use Google\Service\CloudSearch\SuggestRequest;
use Google\Service\CloudSearch\SuggestResponse;
/**
* The "query" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $query = $cloudsearchService->query;
* </code>
*/
class Query extends \Google\Service\Resource
{
/**
* Returns Debug information for Cloud Search Query API provides the search
* method. **Note:** This API requires a standard end user account to execute. A
* service account can't perform Query API requests directly; to use a service
* account to perform queries, set up [Google Workspace domain-wide delegation
* of authority](https://developers.google.com/cloud-
* search/docs/guides/delegation/). (query.debugSearch)
*
* @param SearchRequest $postBody
* @param array $optParams Optional parameters.
* @return DebugResponse
* @throws \Google\Service\Exception
*/
public function debugSearch(SearchRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('debugSearch', [$params], DebugResponse::class);
}
/**
* Provides functionality to remove logged activity for a user. Currently to be
* used only for Chat 1p clients **Note:** This API requires a standard end user
* account to execute. A service account can't perform Remove Activity requests
* directly; to use a service account to perform queries, set up [Google
* Workspace domain-wide delegation of
* authority](https://developers.google.com/cloud-
* search/docs/guides/delegation/). (query.removeActivity)
*
* @param RemoveActivityRequest $postBody
* @param array $optParams Optional parameters.
* @return RemoveActivityResponse
* @throws \Google\Service\Exception
*/
public function removeActivity(RemoveActivityRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('removeActivity', [$params], RemoveActivityResponse::class);
}
/**
* The Cloud Search Query API provides the search method, which returns the most
* relevant results from a user query. The results can come from Google
* Workspace apps, such as Gmail or Google Drive, or they can come from data
* that you have indexed from a third party. **Note:** This API requires a
* standard end user account to execute. A service account can't perform Query
* API requests directly; to use a service account to perform queries, set up
* [Google Workspace domain-wide delegation of
* authority](https://developers.google.com/cloud-
* search/docs/guides/delegation/). (query.search)
*
* @param SearchRequest $postBody
* @param array $optParams Optional parameters.
* @return SearchResponse
* @throws \Google\Service\Exception
*/
public function search(SearchRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('search', [$params], SearchResponse::class);
}
/**
* Provides suggestions for autocompleting the query. **Note:** This API
* requires a standard end user account to execute. A service account can't
* perform Query API requests directly; to use a service account to perform
* queries, set up [Google Workspace domain-wide delegation of
* authority](https://developers.google.com/cloud-
* search/docs/guides/delegation/). (query.suggest)
*
* @param SuggestRequest $postBody
* @param array $optParams Optional parameters.
* @return SuggestResponse
* @throws \Google\Service\Exception
*/
public function suggest(SuggestRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('suggest', [$params], SuggestResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Query::class, 'Google_Service_CloudSearch_Resource_Query');

View File

@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
use Google\Service\CloudSearch\ListQuerySourcesResponse;
/**
* The "sources" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $sources = $cloudsearchService->query_sources;
* </code>
*/
class QuerySources extends \Google\Service\Resource
{
/**
* Returns list of sources that user can use for Search and Suggest APIs.
* **Note:** This API requires a standard end user account to execute. A service
* account can't perform Query API requests directly; to use a service account
* to perform queries, set up [Google Workspace domain-wide delegation of
* authority](https://developers.google.com/cloud-
* search/docs/guides/delegation/). (sources.listQuerySources)
*
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken Number of sources to return in the response.
* @opt_param bool requestOptions.debugOptions.enableDebugging If you are asked
* by Google to help with debugging, set this field. Otherwise, ignore this
* field.
* @opt_param string requestOptions.languageCode The BCP-47 language code, such
* as "en-US" or "sr-Latn". For more information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. For
* translations. Set this field using the language set in browser or for the
* page. In the event that the user's language preference is known, set this
* field to the known user language. When specified, the documents in search
* results are biased towards the specified language. The Suggest API uses this
* field as a hint to make better third-party autocomplete predictions.
* @opt_param string requestOptions.searchApplicationId The ID generated when
* you create a search application using the [admin
* console](https://support.google.com/a/answer/9043922).
* @opt_param string requestOptions.timeZone Current user's time zone id, such
* as "America/Los_Angeles" or "Australia/Sydney". These IDs are defined by
* [Unicode Common Locale Data Repository (CLDR)](http://cldr.unicode.org/)
* project, and currently available in the file [timezone.xml](http://unicode.or
* g/repos/cldr/trunk/common/bcp47/timezone.xml). This field is used to
* correctly interpret date and time queries. If this field is not specified,
* the default time zone (UTC) is used.
* @return ListQuerySourcesResponse
* @throws \Google\Service\Exception
*/
public function listQuerySources($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListQuerySourcesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QuerySources::class, 'Google_Service_CloudSearch_Resource_QuerySources');

View File

@@ -0,0 +1,71 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
use Google\Service\CloudSearch\CustomerSettings;
use Google\Service\CloudSearch\Operation;
/**
* The "settings" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $settings = $cloudsearchService->settings;
* </code>
*/
class Settings extends \Google\Service\Resource
{
/**
* Get customer settings. **Note:** This API requires an admin account to
* execute. (settings.getCustomer)
*
* @param array $optParams Optional parameters.
* @return CustomerSettings
* @throws \Google\Service\Exception
*/
public function getCustomer($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('getCustomer', [$params], CustomerSettings::class);
}
/**
* Update customer settings. **Note:** This API requires an admin account to
* execute. (settings.updateCustomer)
*
* @param CustomerSettings $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Update mask to control which fields get updated.
* If you specify a field in the update_mask but don't specify its value here,
* that field will be cleared. If the mask is not present or empty, all fields
* will be updated. Currently supported field paths: vpc_settings and
* audit_logging_settings
* @return Operation
* @throws \Google\Service\Exception
*/
public function updateCustomer(CustomerSettings $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateCustomer', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Settings::class, 'Google_Service_CloudSearch_Resource_Settings');

View File

@@ -0,0 +1,157 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
use Google\Service\CloudSearch\DataSource;
use Google\Service\CloudSearch\ListDataSourceResponse;
use Google\Service\CloudSearch\Operation;
use Google\Service\CloudSearch\UpdateDataSourceRequest;
/**
* The "datasources" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $datasources = $cloudsearchService->settings_datasources;
* </code>
*/
class SettingsDatasources extends \Google\Service\Resource
{
/**
* Creates a datasource. **Note:** This API requires an admin account to
* execute. (datasources.create)
*
* @param DataSource $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create(DataSource $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a datasource. **Note:** This API requires an admin account to
* execute. (datasources.delete)
*
* @param string $name The name of the datasource. Format:
* datasources/{source_id}.
* @param array $optParams Optional parameters.
*
* @opt_param bool debugOptions.enableDebugging If you are asked by Google to
* help with debugging, set this field. Otherwise, ignore this field.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets a datasource. **Note:** This API requires an admin account to execute.
* (datasources.get)
*
* @param string $name The name of the datasource resource. Format:
* datasources/{source_id}.
* @param array $optParams Optional parameters.
*
* @opt_param bool debugOptions.enableDebugging If you are asked by Google to
* help with debugging, set this field. Otherwise, ignore this field.
* @return DataSource
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], DataSource::class);
}
/**
* Lists datasources. **Note:** This API requires an admin account to execute.
* (datasources.listSettingsDatasources)
*
* @param array $optParams Optional parameters.
*
* @opt_param bool debugOptions.enableDebugging If you are asked by Google to
* help with debugging, set this field. Otherwise, ignore this field.
* @opt_param int pageSize Maximum number of datasources to fetch in a request.
* The max value is 1000. The default value is 1000.
* @opt_param string pageToken Starting index of the results.
* @return ListDataSourceResponse
* @throws \Google\Service\Exception
*/
public function listSettingsDatasources($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDataSourceResponse::class);
}
/**
* Updates a datasource. **Note:** This API requires an admin account to
* execute. (datasources.patch)
*
* @param string $name The name of the datasource resource. Format:
* datasources/{source_id}. The name is ignored when creating a datasource.
* @param DataSource $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool debugOptions.enableDebugging If you are asked by Google to
* help with debugging, set this field. Otherwise, ignore this field.
* @opt_param string updateMask Only applies to
* [`settings.datasources.patch`](https://developers.google.com/cloud-
* search/docs/reference/rest/v1/settings.datasources/patch). Update mask to
* control which fields to update. Example field paths: `name`, `displayName`. *
* If `update_mask` is non-empty, then only the fields specified in the
* `update_mask` are updated. * If you specify a field in the `update_mask`, but
* don't specify its value in the source, that field is cleared. * If the
* `update_mask` is not present or empty or has the value `*`, then all fields
* are updated.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, DataSource $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Updates a datasource. **Note:** This API requires an admin account to
* execute. (datasources.update)
*
* @param string $name The name of the datasource resource. Format:
* datasources/{source_id}. The name is ignored when creating a datasource.
* @param UpdateDataSourceRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function update($name, UpdateDataSourceRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SettingsDatasources::class, 'Google_Service_CloudSearch_Resource_SettingsDatasources');

View File

@@ -0,0 +1,185 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
use Google\Service\CloudSearch\ListSearchApplicationsResponse;
use Google\Service\CloudSearch\Operation;
use Google\Service\CloudSearch\ResetSearchApplicationRequest;
use Google\Service\CloudSearch\SearchApplication;
/**
* The "searchapplications" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $searchapplications = $cloudsearchService->settings_searchapplications;
* </code>
*/
class SettingsSearchapplications extends \Google\Service\Resource
{
/**
* Creates a search application. **Note:** This API requires an admin account to
* execute. (searchapplications.create)
*
* @param SearchApplication $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create(SearchApplication $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a search application. **Note:** This API requires an admin account to
* execute. (searchapplications.delete)
*
* @param string $name The name of the search application to be deleted. Format:
* applications/{application_id}.
* @param array $optParams Optional parameters.
*
* @opt_param bool debugOptions.enableDebugging If you are asked by Google to
* help with debugging, set this field. Otherwise, ignore this field.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets the specified search application. **Note:** This API requires an admin
* account to execute. (searchapplications.get)
*
* @param string $name The name of the search application. Format:
* searchapplications/{application_id}.
* @param array $optParams Optional parameters.
*
* @opt_param bool debugOptions.enableDebugging If you are asked by Google to
* help with debugging, set this field. Otherwise, ignore this field.
* @return SearchApplication
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], SearchApplication::class);
}
/**
* Lists all search applications. **Note:** This API requires an admin account
* to execute. (searchapplications.listSettingsSearchapplications)
*
* @param array $optParams Optional parameters.
*
* @opt_param bool debugOptions.enableDebugging If you are asked by Google to
* help with debugging, set this field. Otherwise, ignore this field.
* @opt_param int pageSize The maximum number of items to return.
* @opt_param string pageToken The next_page_token value returned from a
* previous List request, if any. The default value is 10
* @return ListSearchApplicationsResponse
* @throws \Google\Service\Exception
*/
public function listSettingsSearchapplications($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSearchApplicationsResponse::class);
}
/**
* Updates a search application. **Note:** This API requires an admin account to
* execute. (searchapplications.patch)
*
* @param string $name The name of the Search Application. Format:
* searchapplications/{application_id}.
* @param SearchApplication $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Only applies to
* [`settings.searchapplications.patch`](https://developers.google.com/cloud-
* search/docs/reference/rest/v1/settings.searchapplications/patch). Update mask
* to control which fields to update. Example field paths:
* `search_application.name`, `search_application.displayName`. * If
* `update_mask` is non-empty, then only the fields specified in the
* `update_mask` are updated. * If you specify a field in the `update_mask`, but
* don't specify its value in the `search_application`, then that field is
* cleared. * If the `update_mask` is not present or empty or has the value `*`,
* then all fields are updated.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, SearchApplication $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Resets a search application to default settings. This will return an empty
* response. **Note:** This API requires an admin account to execute.
* (searchapplications.reset)
*
* @param string $name The name of the search application to be reset. Format:
* applications/{application_id}.
* @param ResetSearchApplicationRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function reset($name, ResetSearchApplicationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('reset', [$params], Operation::class);
}
/**
* Updates a search application. **Note:** This API requires an admin account to
* execute. (searchapplications.update)
*
* @param string $name The name of the Search Application. Format:
* searchapplications/{application_id}.
* @param SearchApplication $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Only applies to
* [`settings.searchapplications.patch`](https://developers.google.com/cloud-
* search/docs/reference/rest/v1/settings.searchapplications/patch). Update mask
* to control which fields to update. Example field paths:
* `search_application.name`, `search_application.displayName`. * If
* `update_mask` is non-empty, then only the fields specified in the
* `update_mask` are updated. * If you specify a field in the `update_mask`, but
* don't specify its value in the `search_application`, then that field is
* cleared. * If the `update_mask` is not present or empty or has the value `*`,
* then all fields are updated.
* @return Operation
* @throws \Google\Service\Exception
*/
public function update($name, SearchApplication $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SettingsSearchapplications::class, 'Google_Service_CloudSearch_Resource_SettingsSearchapplications');

View File

@@ -0,0 +1,157 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
use Google\Service\CloudSearch\GetCustomerIndexStatsResponse;
use Google\Service\CloudSearch\GetCustomerQueryStatsResponse;
use Google\Service\CloudSearch\GetCustomerSearchApplicationStatsResponse;
use Google\Service\CloudSearch\GetCustomerSessionStatsResponse;
use Google\Service\CloudSearch\GetCustomerUserStatsResponse;
/**
* The "stats" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $stats = $cloudsearchService->stats;
* </code>
*/
class Stats extends \Google\Service\Resource
{
/**
* Gets indexed item statistics aggreggated across all data sources. This API
* only returns statistics for previous dates; it doesn't return statistics for
* the current day. **Note:** This API requires a standard end user account to
* execute. (stats.getIndex)
*
* @param array $optParams Optional parameters.
*
* @opt_param int fromDate.day Day of month. Must be from 1 to 31 and valid for
* the year and month.
* @opt_param int fromDate.month Month of date. Must be from 1 to 12.
* @opt_param int fromDate.year Year of date. Must be from 1 to 9999.
* @opt_param int toDate.day Day of month. Must be from 1 to 31 and valid for
* the year and month.
* @opt_param int toDate.month Month of date. Must be from 1 to 12.
* @opt_param int toDate.year Year of date. Must be from 1 to 9999.
* @return GetCustomerIndexStatsResponse
* @throws \Google\Service\Exception
*/
public function getIndex($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('getIndex', [$params], GetCustomerIndexStatsResponse::class);
}
/**
* Get the query statistics for customer. **Note:** This API requires a standard
* end user account to execute. (stats.getQuery)
*
* @param array $optParams Optional parameters.
*
* @opt_param int fromDate.day Day of month. Must be from 1 to 31 and valid for
* the year and month.
* @opt_param int fromDate.month Month of date. Must be from 1 to 12.
* @opt_param int fromDate.year Year of date. Must be from 1 to 9999.
* @opt_param int toDate.day Day of month. Must be from 1 to 31 and valid for
* the year and month.
* @opt_param int toDate.month Month of date. Must be from 1 to 12.
* @opt_param int toDate.year Year of date. Must be from 1 to 9999.
* @return GetCustomerQueryStatsResponse
* @throws \Google\Service\Exception
*/
public function getQuery($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('getQuery', [$params], GetCustomerQueryStatsResponse::class);
}
/**
* Get search application stats for customer. **Note:** This API requires a
* standard end user account to execute. (stats.getSearchapplication)
*
* @param array $optParams Optional parameters.
*
* @opt_param int endDate.day Day of month. Must be from 1 to 31 and valid for
* the year and month.
* @opt_param int endDate.month Month of date. Must be from 1 to 12.
* @opt_param int endDate.year Year of date. Must be from 1 to 9999.
* @opt_param int startDate.day Day of month. Must be from 1 to 31 and valid for
* the year and month.
* @opt_param int startDate.month Month of date. Must be from 1 to 12.
* @opt_param int startDate.year Year of date. Must be from 1 to 9999.
* @return GetCustomerSearchApplicationStatsResponse
* @throws \Google\Service\Exception
*/
public function getSearchapplication($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('getSearchapplication', [$params], GetCustomerSearchApplicationStatsResponse::class);
}
/**
* Get the # of search sessions, % of successful sessions with a click query
* statistics for customer. **Note:** This API requires a standard end user
* account to execute. (stats.getSession)
*
* @param array $optParams Optional parameters.
*
* @opt_param int fromDate.day Day of month. Must be from 1 to 31 and valid for
* the year and month.
* @opt_param int fromDate.month Month of date. Must be from 1 to 12.
* @opt_param int fromDate.year Year of date. Must be from 1 to 9999.
* @opt_param int toDate.day Day of month. Must be from 1 to 31 and valid for
* the year and month.
* @opt_param int toDate.month Month of date. Must be from 1 to 12.
* @opt_param int toDate.year Year of date. Must be from 1 to 9999.
* @return GetCustomerSessionStatsResponse
* @throws \Google\Service\Exception
*/
public function getSession($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('getSession', [$params], GetCustomerSessionStatsResponse::class);
}
/**
* Get the users statistics for customer. **Note:** This API requires a standard
* end user account to execute. (stats.getUser)
*
* @param array $optParams Optional parameters.
*
* @opt_param int fromDate.day Day of month. Must be from 1 to 31 and valid for
* the year and month.
* @opt_param int fromDate.month Month of date. Must be from 1 to 12.
* @opt_param int fromDate.year Year of date. Must be from 1 to 9999.
* @opt_param int toDate.day Day of month. Must be from 1 to 31 and valid for
* the year and month.
* @opt_param int toDate.month Month of date. Must be from 1 to 12.
* @opt_param int toDate.year Year of date. Must be from 1 to 9999.
* @return GetCustomerUserStatsResponse
* @throws \Google\Service\Exception
*/
public function getUser($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('getUser', [$params], GetCustomerUserStatsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Stats::class, 'Google_Service_CloudSearch_Resource_Stats');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
/**
* The "index" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $index = $cloudsearchService->stats_index;
* </code>
*/
class StatsIndex extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StatsIndex::class, 'Google_Service_CloudSearch_Resource_StatsIndex');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
use Google\Service\CloudSearch\GetDataSourceIndexStatsResponse;
/**
* The "datasources" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $datasources = $cloudsearchService->stats_index_datasources;
* </code>
*/
class StatsIndexDatasources extends \Google\Service\Resource
{
/**
* Gets indexed item statistics for a single data source. **Note:** This API
* requires a standard end user account to execute. (datasources.get)
*
* @param string $name The resource id of the data source to retrieve statistics
* for, in the following format: "datasources/{source_id}"
* @param array $optParams Optional parameters.
*
* @opt_param int fromDate.day Day of month. Must be from 1 to 31 and valid for
* the year and month.
* @opt_param int fromDate.month Month of date. Must be from 1 to 12.
* @opt_param int fromDate.year Year of date. Must be from 1 to 9999.
* @opt_param int toDate.day Day of month. Must be from 1 to 31 and valid for
* the year and month.
* @opt_param int toDate.month Month of date. Must be from 1 to 12.
* @opt_param int toDate.year Year of date. Must be from 1 to 9999.
* @return GetDataSourceIndexStatsResponse
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GetDataSourceIndexStatsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StatsIndexDatasources::class, 'Google_Service_CloudSearch_Resource_StatsIndexDatasources');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
/**
* The "query" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $query = $cloudsearchService->stats_query;
* </code>
*/
class StatsQuery extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StatsQuery::class, 'Google_Service_CloudSearch_Resource_StatsQuery');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
use Google\Service\CloudSearch\GetSearchApplicationQueryStatsResponse;
/**
* The "searchapplications" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $searchapplications = $cloudsearchService->stats_query_searchapplications;
* </code>
*/
class StatsQuerySearchapplications extends \Google\Service\Resource
{
/**
* Get the query statistics for search application. **Note:** This API requires
* a standard end user account to execute. (searchapplications.get)
*
* @param string $name The resource id of the search application query stats, in
* the following format: searchapplications/{application_id}
* @param array $optParams Optional parameters.
*
* @opt_param int fromDate.day Day of month. Must be from 1 to 31 and valid for
* the year and month.
* @opt_param int fromDate.month Month of date. Must be from 1 to 12.
* @opt_param int fromDate.year Year of date. Must be from 1 to 9999.
* @opt_param int toDate.day Day of month. Must be from 1 to 31 and valid for
* the year and month.
* @opt_param int toDate.month Month of date. Must be from 1 to 12.
* @opt_param int toDate.year Year of date. Must be from 1 to 9999.
* @return GetSearchApplicationQueryStatsResponse
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GetSearchApplicationQueryStatsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StatsQuerySearchapplications::class, 'Google_Service_CloudSearch_Resource_StatsQuerySearchapplications');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
/**
* The "session" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $session = $cloudsearchService->stats_session;
* </code>
*/
class StatsSession extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StatsSession::class, 'Google_Service_CloudSearch_Resource_StatsSession');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
use Google\Service\CloudSearch\GetSearchApplicationSessionStatsResponse;
/**
* The "searchapplications" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $searchapplications = $cloudsearchService->stats_session_searchapplications;
* </code>
*/
class StatsSessionSearchapplications extends \Google\Service\Resource
{
/**
* Get the # of search sessions, % of successful sessions with a click query
* statistics for search application. **Note:** This API requires a standard end
* user account to execute. (searchapplications.get)
*
* @param string $name The resource id of the search application session stats,
* in the following format: searchapplications/{application_id}
* @param array $optParams Optional parameters.
*
* @opt_param int fromDate.day Day of month. Must be from 1 to 31 and valid for
* the year and month.
* @opt_param int fromDate.month Month of date. Must be from 1 to 12.
* @opt_param int fromDate.year Year of date. Must be from 1 to 9999.
* @opt_param int toDate.day Day of month. Must be from 1 to 31 and valid for
* the year and month.
* @opt_param int toDate.month Month of date. Must be from 1 to 12.
* @opt_param int toDate.year Year of date. Must be from 1 to 9999.
* @return GetSearchApplicationSessionStatsResponse
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GetSearchApplicationSessionStatsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StatsSessionSearchapplications::class, 'Google_Service_CloudSearch_Resource_StatsSessionSearchapplications');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
/**
* The "user" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $user = $cloudsearchService->stats_user;
* </code>
*/
class StatsUser extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StatsUser::class, 'Google_Service_CloudSearch_Resource_StatsUser');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
use Google\Service\CloudSearch\GetSearchApplicationUserStatsResponse;
/**
* The "searchapplications" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $searchapplications = $cloudsearchService->stats_user_searchapplications;
* </code>
*/
class StatsUserSearchapplications extends \Google\Service\Resource
{
/**
* Get the users statistics for search application. **Note:** This API requires
* a standard end user account to execute. (searchapplications.get)
*
* @param string $name The resource id of the search application session stats,
* in the following format: searchapplications/{application_id}
* @param array $optParams Optional parameters.
*
* @opt_param int fromDate.day Day of month. Must be from 1 to 31 and valid for
* the year and month.
* @opt_param int fromDate.month Month of date. Must be from 1 to 12.
* @opt_param int fromDate.year Year of date. Must be from 1 to 9999.
* @opt_param int toDate.day Day of month. Must be from 1 to 31 and valid for
* the year and month.
* @opt_param int toDate.month Month of date. Must be from 1 to 12.
* @opt_param int toDate.year Year of date. Must be from 1 to 9999.
* @return GetSearchApplicationUserStatsResponse
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GetSearchApplicationUserStatsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StatsUserSearchapplications::class, 'Google_Service_CloudSearch_Resource_StatsUserSearchapplications');

View File

@@ -0,0 +1,51 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudSearch\Resource;
use Google\Service\CloudSearch\InitializeCustomerRequest;
use Google\Service\CloudSearch\Operation;
/**
* The "v1" collection of methods.
* Typical usage is:
* <code>
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $v1 = $cloudsearchService->v1;
* </code>
*/
class V1 extends \Google\Service\Resource
{
/**
* Enables `third party` support in Google Cloud Search. **Note:** This API
* requires an admin account to execute. (v1.initializeCustomer)
*
* @param InitializeCustomerRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function initializeCustomer(InitializeCustomerRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('initializeCustomer', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(V1::class, 'Google_Service_CloudSearch_Resource_V1');