Exemple #1
0
 public function setSubscriptionAttribute(UpdateSubscriptionAttributes $attributes)
 {
     $attributes->setTopicName($this->topicName);
     $request = new SetSubscriptionAttributeRequest($attributes);
     $response = new SetSubscriptionAttributeResponse();
     return $this->client->sendRequest($request, $response);
 }
 public function __construct(UpdateSubscriptionAttributes $attributes = NULL)
 {
     parent::__construct('put', 'topics/' . $attributes->getTopicName() . '/subscriptions/' . $attributes->getSubscriptionName() . '?metaoverride=true');
     if ($attributes == NULL) {
         $attributes = new UpdateSubscriptionAttributes();
     }
     $this->attributes = $attributes;
 }