[e3d4e0a] | 1 | <?php
|
---|
| 2 | /*
|
---|
| 3 | * Copyright 2014 Google Inc.
|
---|
| 4 | *
|
---|
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
| 6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
| 7 | * the License at
|
---|
| 8 | *
|
---|
| 9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 10 | *
|
---|
| 11 | * Unless required by applicable law or agreed to in writing, software
|
---|
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
| 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
| 14 | * License for the specific language governing permissions and limitations under
|
---|
| 15 | * the License.
|
---|
| 16 | */
|
---|
| 17 |
|
---|
| 18 | namespace Google\Service\ChromeManagement\Resource;
|
---|
| 19 |
|
---|
| 20 | use Google\Service\ChromeManagement\GoogleChromeManagementV1ListTelemetryNotificationConfigsResponse;
|
---|
| 21 | use Google\Service\ChromeManagement\GoogleChromeManagementV1TelemetryNotificationConfig;
|
---|
| 22 | use Google\Service\ChromeManagement\GoogleProtobufEmpty;
|
---|
| 23 |
|
---|
| 24 | /**
|
---|
| 25 | * The "notificationConfigs" collection of methods.
|
---|
| 26 | * Typical usage is:
|
---|
| 27 | * <code>
|
---|
| 28 | * $chromemanagementService = new Google\Service\ChromeManagement(...);
|
---|
| 29 | * $notificationConfigs = $chromemanagementService->customers_telemetry_notificationConfigs;
|
---|
| 30 | * </code>
|
---|
| 31 | */
|
---|
| 32 | class CustomersTelemetryNotificationConfigs extends \Google\Service\Resource
|
---|
| 33 | {
|
---|
| 34 | /**
|
---|
| 35 | * Create a telemetry notification config. (notificationConfigs.create)
|
---|
| 36 | *
|
---|
| 37 | * @param string $parent Required. The parent resource where this notification
|
---|
| 38 | * config will be created. Format: `customers/{customer}`
|
---|
| 39 | * @param GoogleChromeManagementV1TelemetryNotificationConfig $postBody
|
---|
| 40 | * @param array $optParams Optional parameters.
|
---|
| 41 | * @return GoogleChromeManagementV1TelemetryNotificationConfig
|
---|
| 42 | * @throws \Google\Service\Exception
|
---|
| 43 | */
|
---|
| 44 | public function create($parent, GoogleChromeManagementV1TelemetryNotificationConfig $postBody, $optParams = [])
|
---|
| 45 | {
|
---|
| 46 | $params = ['parent' => $parent, 'postBody' => $postBody];
|
---|
| 47 | $params = array_merge($params, $optParams);
|
---|
| 48 | return $this->call('create', [$params], GoogleChromeManagementV1TelemetryNotificationConfig::class);
|
---|
| 49 | }
|
---|
| 50 | /**
|
---|
| 51 | * Delete a telemetry notification config. (notificationConfigs.delete)
|
---|
| 52 | *
|
---|
| 53 | * @param string $name Required. The name of the notification config to delete.
|
---|
| 54 | * Format:
|
---|
| 55 | * `customers/{customer}/telemetry/notificationConfigs/{notification_config}`
|
---|
| 56 | * @param array $optParams Optional parameters.
|
---|
| 57 | * @return GoogleProtobufEmpty
|
---|
| 58 | * @throws \Google\Service\Exception
|
---|
| 59 | */
|
---|
| 60 | public function delete($name, $optParams = [])
|
---|
| 61 | {
|
---|
| 62 | $params = ['name' => $name];
|
---|
| 63 | $params = array_merge($params, $optParams);
|
---|
| 64 | return $this->call('delete', [$params], GoogleProtobufEmpty::class);
|
---|
| 65 | }
|
---|
| 66 | /**
|
---|
| 67 | * List all telemetry notification configs.
|
---|
| 68 | * (notificationConfigs.listCustomersTelemetryNotificationConfigs)
|
---|
| 69 | *
|
---|
| 70 | * @param string $parent Required. The parent which owns the notification
|
---|
| 71 | * configs.
|
---|
| 72 | * @param array $optParams Optional parameters.
|
---|
| 73 | *
|
---|
| 74 | * @opt_param int pageSize The maximum number of notification configs to return.
|
---|
| 75 | * The service may return fewer than this value. If unspecified, at most 100
|
---|
| 76 | * notification configs will be returned. The maximum value is 100; values above
|
---|
| 77 | * 100 will be coerced to 100.
|
---|
| 78 | * @opt_param string pageToken A page token, received from a previous
|
---|
| 79 | * `ListTelemetryNotificationConfigs` call. Provide this to retrieve the
|
---|
| 80 | * subsequent page. When paginating, all other parameters provided to
|
---|
| 81 | * `ListTelemetryNotificationConfigs` must match the call that provided the page
|
---|
| 82 | * token.
|
---|
| 83 | * @return GoogleChromeManagementV1ListTelemetryNotificationConfigsResponse
|
---|
| 84 | * @throws \Google\Service\Exception
|
---|
| 85 | */
|
---|
| 86 | public function listCustomersTelemetryNotificationConfigs($parent, $optParams = [])
|
---|
| 87 | {
|
---|
| 88 | $params = ['parent' => $parent];
|
---|
| 89 | $params = array_merge($params, $optParams);
|
---|
| 90 | return $this->call('list', [$params], GoogleChromeManagementV1ListTelemetryNotificationConfigsResponse::class);
|
---|
| 91 | }
|
---|
| 92 | }
|
---|
| 93 |
|
---|
| 94 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 95 | class_alias(CustomersTelemetryNotificationConfigs::class, 'Google_Service_ChromeManagement_Resource_CustomersTelemetryNotificationConfigs');
|
---|