Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Jan 30, 2025
1 parent 382220a commit 0743a24
Show file tree
Hide file tree
Showing 335 changed files with 12 additions and 52,146 deletions.
5 changes: 4 additions & 1 deletion Bigtable/src/Admin/V2/Client/BigtableInstanceAdminClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,10 @@ private function setDefaultEmulatorConfig(array $options): array
}

$options['apiEndpoint'] ??= $emulatorHost;
$options['transportConfig']['grpc']['stubOpts']['credentials'] ??= ChannelCredentials::createInsecure();
if (class_exists(ChannelCredentials::class)) {
$options['transportConfig']['grpc']['stubOpts']['credentials'] ??= ChannelCredentials::createInsecure();
}

$options['credentials'] ??= new InsecureCredentialsWrapper();
return $options;
}
Expand Down
5 changes: 4 additions & 1 deletion Bigtable/src/Admin/V2/Client/BigtableTableAdminClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,10 @@ private function setDefaultEmulatorConfig(array $options): array
}

$options['apiEndpoint'] ??= $emulatorHost;
$options['transportConfig']['grpc']['stubOpts']['credentials'] ??= ChannelCredentials::createInsecure();
if (class_exists(ChannelCredentials::class)) {
$options['transportConfig']['grpc']['stubOpts']['credentials'] ??= ChannelCredentials::createInsecure();
}

$options['credentials'] ??= new InsecureCredentialsWrapper();
return $options;
}
Expand Down
5 changes: 4 additions & 1 deletion Bigtable/src/V2/Client/BigtableClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,10 @@ private function setDefaultEmulatorConfig(array $options): array
}

$options['apiEndpoint'] ??= $emulatorHost;
$options['transportConfig']['grpc']['stubOpts']['credentials'] ??= ChannelCredentials::createInsecure();
if (class_exists(ChannelCredentials::class)) {
$options['transportConfig']['grpc']['stubOpts']['credentials'] ??= ChannelCredentials::createInsecure();
}

$options['credentials'] ??= new InsecureCredentialsWrapper();
return $options;
}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 0743a24

Please sign in to comment.