Skip to content

Commit

Permalink
added management agents repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Matteo Miotello committed Jul 5, 2023
1 parent 9699303 commit aa2f6df
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/Repositories/ManagementAgentsRepository.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

namespace Shellrent\VeeamVspcApiClient\Repositories;

use Shellrent\VeeamVspcApiClient\Support\CreateGetRequest;
use Shellrent\VeeamVspcApiClient\Support\RequestBuilder;

class ManagementAgentsRepository implements Repository {
use CreateGetRequest;

public function getBaseRoute(): string {
return 'infrastructure/managementAgents';
}


public function downloadManagementAgentSetupFileForWindows(): RequestBuilder {
return $this->createGetRequest( '/packages/windows' );
}


public function downloadManagementAgentSetupFileForLinux(): RequestBuilder {
return $this->createGetRequest( '/packages/linux' );
}


public function downloadManagementAgentSetupFileForMacOS(): RequestBuilder {
return $this->createGetRequest( '/packages/mac' );
}
}

0 comments on commit aa2f6df

Please sign in to comment.