|
| 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\GoogleHealthAPI; |
| 19 | + |
| 20 | +class CreateSubscriberPayload extends \Google\Collection |
| 21 | +{ |
| 22 | + protected $collection_key = 'subscriberConfigs'; |
| 23 | + protected $endpointAuthorizationType = EndpointAuthorization::class; |
| 24 | + protected $endpointAuthorizationDataType = ''; |
| 25 | + /** |
| 26 | + * Required. The full HTTPS URI where update notifications will be sent. The |
| 27 | + * URI must be a valid URL and use HTTPS as the scheme. This endpoint will be |
| 28 | + * verified during the `CreateSubscriber` call. See CreateSubscriber RPC |
| 29 | + * documentation for verification details. |
| 30 | + * |
| 31 | + * @var string |
| 32 | + */ |
| 33 | + public $endpointUri; |
| 34 | + protected $subscriberConfigsType = SubscriberConfig::class; |
| 35 | + protected $subscriberConfigsDataType = 'array'; |
| 36 | + |
| 37 | + /** |
| 38 | + * Required. Authorization mechanism for the subscriber endpoint. The `secret` |
| 39 | + * within this message is crucial for endpoint verification and for securing |
| 40 | + * webhook notifications. |
| 41 | + * |
| 42 | + * @param EndpointAuthorization $endpointAuthorization |
| 43 | + */ |
| 44 | + public function setEndpointAuthorization(EndpointAuthorization $endpointAuthorization) |
| 45 | + { |
| 46 | + $this->endpointAuthorization = $endpointAuthorization; |
| 47 | + } |
| 48 | + /** |
| 49 | + * @return EndpointAuthorization |
| 50 | + */ |
| 51 | + public function getEndpointAuthorization() |
| 52 | + { |
| 53 | + return $this->endpointAuthorization; |
| 54 | + } |
| 55 | + /** |
| 56 | + * Required. The full HTTPS URI where update notifications will be sent. The |
| 57 | + * URI must be a valid URL and use HTTPS as the scheme. This endpoint will be |
| 58 | + * verified during the `CreateSubscriber` call. See CreateSubscriber RPC |
| 59 | + * documentation for verification details. |
| 60 | + * |
| 61 | + * @param string $endpointUri |
| 62 | + */ |
| 63 | + public function setEndpointUri($endpointUri) |
| 64 | + { |
| 65 | + $this->endpointUri = $endpointUri; |
| 66 | + } |
| 67 | + /** |
| 68 | + * @return string |
| 69 | + */ |
| 70 | + public function getEndpointUri() |
| 71 | + { |
| 72 | + return $this->endpointUri; |
| 73 | + } |
| 74 | + /** |
| 75 | + * Optional. Configuration for the subscriber. |
| 76 | + * |
| 77 | + * @param SubscriberConfig[] $subscriberConfigs |
| 78 | + */ |
| 79 | + public function setSubscriberConfigs($subscriberConfigs) |
| 80 | + { |
| 81 | + $this->subscriberConfigs = $subscriberConfigs; |
| 82 | + } |
| 83 | + /** |
| 84 | + * @return SubscriberConfig[] |
| 85 | + */ |
| 86 | + public function getSubscriberConfigs() |
| 87 | + { |
| 88 | + return $this->subscriberConfigs; |
| 89 | + } |
| 90 | +} |
| 91 | + |
| 92 | +// Adding a class alias for backwards compatibility with the previous class name. |
| 93 | +class_alias(CreateSubscriberPayload::class, 'Google_Service_GoogleHealthAPI_CreateSubscriberPayload'); |
0 commit comments