You are here

public function CliService::createEdgeRoleForDrupal in Apigee Edge 8

Create an Apigee role for Drupal use.

Parameters

\Symfony\Component\Console\Style\StyleInterface $io: The IO interface of the CLI tool calling the method.

callable $t: The translation function akin to t().

string $org: The organization to connect to.

string $email: The email of an Edge user with org admin role to make Edge API calls.

string $password: The password of an Edge user with org admin role to make Edge API calls.

string|null $base_url: The base url of the Edge API.

string|null $role_name: The role name to add the permissions to.

bool|null $force: Force permissions to be set even if role exists.

Overrides CliServiceInterface::createEdgeRoleForDrupal

File

src/CliService.php, line 76

Class

CliService
A CLI service which defines all the commands logic and delegates the methods.

Namespace

Drupal\apigee_edge

Code

public function createEdgeRoleForDrupal(StyleInterface $io, callable $t, string $org, string $email, string $password, ?string $base_url, ?string $role_name, ?bool $force) {
  $this->apigeeEdgeManagementCliService
    ->createEdgeRoleForDrupal($io, $t, $org, $email, $password, $base_url, $role_name, $force);
}