Cancels a failed domain action

@param \Transip\Model\Domain $domain the domain to cancel the action for
@example examples/DomainService-DomainService-domainActions.php
@throws ApiException
558797
public function cancelDomainAction(\Transip\Model\Domain $domain)
    {
        return $this->getSoapClient(array_merge(array($domain), array('__method' => 'cancelDomainAction')))->cancelDomainAction($domain);
    }
1248495
public function domain($domain = null)
    {
        if (is_null($domain)) {
            return $this->getDomain();
        }

        $this->action['domain'] = $domain;

        return $this;
    }
871258
public function addDomain($domain)
    {
        if (!isset($this->domains[$domain])) {
            $this->domains[$domain] = $domain;
        }

        return $this;
    }
220565
protected function stripProtocol($domain)
    {
        if (Str::contains($domain, '://')) {
            $domain = \substr($domain, \strpos($domain, '://') + 3);
        }

        return $domain;
    }
1358645
public function addDomain(Domain $domain)
    {
        $domain->setSite($this);

        $this->domains[] = $domain;

        return $this;
    }
854210
public function setDomain(Domain $domain)
    {
        $this->domain = $domain;
        $this->domainId = $domain->getDomainId();
    }
200643
public function removeFromCache($domain = null, $locale = null) {
		if ($this->cache === null) {
			return true;
		}
		
		if ($domain === null) {
			$domain = $this->domain;
		}
		
		if ($locale === null) {
			$locale = $this->getLocale();
		}
		
		return $this->cache->removeCatalogs($locale, $domain);
	}
594664
public function helo($domain)
    {
        if (PEAR::isError($error = $this->put('HELO', $domain))) {
            return $error;
        }
        if (PEAR::isError($error = $this->parseResponse(250))) {
            return $error;
        }

        return true;
    }
103112
public function domain($domain = null)
    {
        deprecationWarning('Email::domain() is deprecated. Use Email::setDomain() or Email::getDomain() instead.');

        if ($domain === null) {
            return $this->getDomain();
        }

        return $this->setDomain($domain);
    }
136612
public function deleteLink($name1, $name2, ...$domain)
    {
        if (1 == \count($domain)) {
            $name1 = $domain[0].'::'.$name1;
            $name2 = $domain[0].'::'.$name2;
        } elseif (\count($domain) > 1) {
            throw new CasbinException('error: domain should be 1 parameter');
        }

        if (!$this->hasRole($name1) || !$this->hasRole($name2)) {
            throw new CasbinException('error: name1 or name2 does not exist');
        }

        $role1 = $this->createRole($name1);
        $role2 = $this->createRole($name2);
        $role1->deleteRole($role2);
    }
905406
public function unassign(string $domain, string $ip)
    {
        Assert::stringNotEmpty($domain);
        Assert::ip($ip);

        $response = $this->httpDelete(sprintf('/v3/domains/%s/ips/%s', $domain, $ip));

        return $this->hydrateResponse($response, UpdateResponse::class);
    }
631988
public function setError($descriptor, $domain = null)
    {
        $this->adapter->setDomain($domain);
        $this->addError($this->adapter->getDescription($descriptor), $this->adapter->getCode($descriptor));
        return $this;
    }
575835
protected function startScan($domain)
    {
        $result = $this->eye->api()->sslStart($domain);

        if (isset($result['multiple_ips']) && isset($result['token'])) {
            $result = $this->eye->api()->sslStart($domain, $result['multiple_ips'], $result['token']);
        }

        if (isset($result['error'])) {
            return $this->eye->logger()->error('SSL API scan error', $result['error'], $domain);
        }

        if (($result['status_id'] == "1") && (isset($result['job_id']))) {
            Cache::put('eyewitness_ssl_job_id_'.$domain, $result['job_id'], 50);
        } else {
            $this->eye->logger()->error('SSL API invalid result', print_r($result, true), $domain);
        }
    }
435944
public function setPrimaryDomain(Domain $domain = null)
    {
        if ($domain === null) {
            $this->primaryDomain = null;
            return;
        }

        if (!$domain->getActive()) {
            return;
        }

        $this->primaryDomain = $domain;
        if (!$this->domains->contains($domain)) {
            $this->domains->add($domain);
        }
    }
1026393
public function deleteAction(Request $request, $key, $domain)
    {

        $form = $this->createDeleteForm($key, $domain);
        $form->handleRequest($request);

        if ($form->isSubmitted() && $form->isValid()) {
            $translation = $this->get('asm_translation_loader.translation_manager')
                ->findTranslationBy(
                    array(
                        'transKey' => $key,
                        'transLocale' => $request->getLocale(),
                        'messageDomain' => $domain,
                    )
                );
            $this->get('asm_translation_loader.translation_manager')->removeTranslation($translation);
            $this->get('session')->getFlashBag()->add('success', 'translation.deleted');
        }

        return $this->redirectToRoute('core_translation_index');
    }
383344
def remove(domain, action)
      fail Mailgun::ParameterError('Domain not provided to remove webhook from') unless domain
      fail Mailgun::ParameterError('Action not provided to identify webhook to remove') unless action
      @client.delete("domains/#{domain}/webhooks/#{action}").to_h['message'] == 'Webhook has been deleted'
    rescue Mailgun::CommunicationError
      false
    end
1208564
private void removeDomain(Long domainId, boolean reverse) throws GloboDnsException {
		if (domainId == null) {
			throw new GloboDnsException("Domain id cannot be null");
		}
		
		GloboDnsRoot<Domain> globoDnsRoot = this.delete("/domains/" + domainId + ".json" + (reverse ? "?reverse=true" : ""), false);
		if (globoDnsRoot == null) {
			throw new GloboDnsException("Invalid response");
		}
		return;
	}