* $walletobjectsService = new Google\Service\Walletobjects(...); * $genericclass = $walletobjectsService->genericclass; * */ class Genericclass extends \Google\Service\Resource { /** * Adds a message to the generic class referenced by the given class ID. * (genericclass.addmessage) * * @param string $resourceId The unique identifier for a class. This ID must be * unique across all classes from an issuer. This value should follow the format * issuer ID. identifier where the former is issued by Google and latter is * chosen by you. Your unique identifier should only include alphanumeric * characters, '.', '_', or '-'. * @param AddMessageRequest $postBody * @param array $optParams Optional parameters. * @return GenericClassAddMessageResponse * @throws \Google\Service\Exception */ public function addmessage($resourceId, AddMessageRequest $postBody, $optParams = []) { $params = ['resourceId' => $resourceId, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('addmessage', [$params], GenericClassAddMessageResponse::class); } /** * Returns the generic class with the given class ID. (genericclass.get) * * @param string $resourceId The unique identifier for a class. This ID must be * unique across all classes from an issuer. This value needs to follow the * format `issuerID.identifier` where `issuerID` is issued by Google and * `identifier` is chosen by you. The unique identifier can only include * alphanumeric characters, `.`, `_`, or `-`. * @param array $optParams Optional parameters. * @return GenericClassModel * @throws \Google\Service\Exception */ public function get($resourceId, $optParams = []) { $params = ['resourceId' => $resourceId]; $params = array_merge($params, $optParams); return $this->call('get', [$params], GenericClassModel::class); } /** * Inserts a generic class with the given ID and properties. * (genericclass.insert) * * @param GenericClassModel $postBody * @param array $optParams Optional parameters. * @return GenericClassModel * @throws \Google\Service\Exception */ public function insert(GenericClassModel $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('insert', [$params], GenericClassModel::class); } /** * Returns a list of all generic classes for a given issuer ID. * (genericclass.listGenericclass) * * @param array $optParams Optional parameters. * * @opt_param string issuerId The ID of the issuer authorized to list classes. * @opt_param int maxResults Identifies the max number of results returned by a * list. All results are returned if `maxResults` isn't defined. * @opt_param string token Used to get the next set of results if `maxResults` * is specified, but more than `maxResults` classes are available in a list. For * example, if you have a list of 200 classes and you call list with * `maxResults` set to 20, list will return the first 20 classes and a token. * Call list again with `maxResults` set to 20 and the token to get the next 20 * classes. * @return GenericClassListResponse * @throws \Google\Service\Exception */ public function listGenericclass($optParams = []) { $params = []; $params = array_merge($params, $optParams); return $this->call('list', [$params], GenericClassListResponse::class); } /** * Updates the generic class referenced by the given class ID. This method * supports patch semantics. (genericclass.patch) * * @param string $resourceId The unique identifier for a class. This ID must be * unique across all classes from an issuer. This value needs to follow the * format `issuerID.identifier` where `issuerID` is issued by Google and * `identifier` is chosen by you. The unique identifier can only include * alphanumeric characters, `.`, `_`, or `-`. * @param GenericClassModel $postBody * @param array $optParams Optional parameters. * @return GenericClassModel * @throws \Google\Service\Exception */ public function patch($resourceId, GenericClassModel $postBody, $optParams = []) { $params = ['resourceId' => $resourceId, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('patch', [$params], GenericClassModel::class); } /** * Updates the Generic class referenced by the given class ID. * (genericclass.update) * * @param string $resourceId The unique identifier for a class. This ID must be * unique across all classes from an issuer. This value needs to follow the * format `issuerID.identifier` where `issuerID` is issued by Google and * `identifier` is chosen by you. The unique identifier can only include * alphanumeric characters, `.`, `_`, or `-`. * @param GenericClassModel $postBody * @param array $optParams Optional parameters. * @return GenericClassModel * @throws \Google\Service\Exception */ public function update($resourceId, GenericClassModel $postBody, $optParams = []) { $params = ['resourceId' => $resourceId, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('update', [$params], GenericClassModel::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Genericclass::class, 'Google_Service_Walletobjects_Resource_Genericclass');