Lines Matching refs:name

31      * @param string $name     the name of the repository
41 public function registerRepository($name, $type, $settings = [])
48 return $this->request($name, Request::PUT, $data);
52 * Retrieve a repository record by name.
54 * @param string $name the name of the desired repository
63 public function getRepository($name)
66 $response = $this->request($name);
69 throw new NotFoundException("Repository '".$name."' does not exist.");
75 return $data[$name];
95 * @param string $repository the name of the repository in which this snapshot should be stored
96 * @param string $name the name of this snapshot
106 public function createSnapshot($repository, $name, $options = [], $waitForCompletion = false)
108 return $this->request($repository.'/'.$name, Request::PUT, $options, ['wait_for_completion' => $waitForCompletion]);
114 * @param string $repository the name of the repository from which to retrieve the snapshot
115 * @param string $name the name of the desired snapshot
124 public function getSnapshot($repository, $name)
127 $response = $this->request($repository.'/'.$name);
130 throw new NotFoundException("Snapshot '".$name."' does not exist in repository '".$repository."'.");
142 * @param string $repository the repository name
159 * @param string $name the name of the snapshot to be deleted
167 public function deleteSnapshot($repository, $name)
169 return $this->request($repository.'/'.$name, Request::DELETE);
175 * @param string $repository the name of the repository
176 * @param string $name the name of the snapshot
186 public function restoreSnapshot($repository, $name, $options = [], $waitForCompletion = false)
190 ->setSnapshot($name)