Skip to content

Commit

Permalink
Introduce HTTP 1.1/JSON support for GAPIC clients (#857)
Browse files Browse the repository at this point in the history
* refresh gapics with json-transport updates

* cs fix

* regenerate with fix for server streaming calls

* update spanner async delete call

* gapic refresh

* refresh gapics

* refresh gapics

* refresh gapics

* gapic refresh

* gapic refresh

* removes grpc-extension constants in favor of native ones

* fixes tests for Grpc connections

* gapic refresh

* add trace/oslogin

* refresh gapics

* readd partial veneer

* gapic refresh

* remove auth dependency, as it is already required by GAX

* rely on proto-client-php ^0.31

* use correct copyright year

* pin to gax 0.30
  • Loading branch information
dwsupplee authored Jan 22, 2018
1 parent 23c2956 commit 32d2af4
Show file tree
Hide file tree
Showing 8 changed files with 309 additions and 378 deletions.
6 changes: 3 additions & 3 deletions V2/Controller2Client.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
* Copyright 2017 Google LLC
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -21,8 +21,8 @@
* https://github.com/google/googleapis/blob/master/google/devtools/clouddebugger/v2/controller.proto
* and updates to that file get reflected here through a refresh process.
*
* EXPERIMENTAL: this client library class has not yet been declared GA (1.0). This means that
* even though we intent the surface to be stable, we may make backwards incompatible changes
* EXPERIMENTAL: This client library class has not yet been declared GA (1.0). This means that
* even though we intend the surface to be stable, we may make backwards incompatible changes
* if necessary.
*
* @experimental
Expand Down
6 changes: 3 additions & 3 deletions V2/Debugger2Client.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
* Copyright 2017 Google LLC
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -21,8 +21,8 @@
* https://github.com/google/googleapis/blob/master/google/devtools/clouddebugger/v2/debugger.proto
* and updates to that file get reflected here through a refresh process.
*
* EXPERIMENTAL: this client library class has not yet been declared GA (1.0). This means that
* even though we intent the surface to be stable, we may make backwards incompatible changes
* EXPERIMENTAL: This client library class has not yet been declared GA (1.0). This means that
* even though we intend the surface to be stable, we may make backwards incompatible changes
* if necessary.
*
* @experimental
Expand Down
245 changes: 80 additions & 165 deletions V2/Gapic/Controller2GapicClient.php

Large diffs are not rendered by default.

305 changes: 98 additions & 207 deletions V2/Gapic/Debugger2GapicClient.php

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions V2/resources/controller2_descriptor_config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

return [
'interfaces' => [
'google.devtools.clouddebugger.v2.Controller2' => [
],
],
];
42 changes: 42 additions & 0 deletions V2/resources/controller2_rest_client_config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php

return [
'interfaces' => [
'google.devtools.clouddebugger.v2.Controller2' => [
'RegisterDebuggee' => [
'method' => 'post',
'uriTemplate' => '/v2/controller/debuggees/register',
'body' => '*',
],
'ListActiveBreakpoints' => [
'method' => 'get',
'uriTemplate' => '/v2/controller/debuggees/{debuggee_id}/breakpoints',
'placeholders' => [
'debuggee_id' => [
'getters' => [
'getDebuggeeId',
],
],
],
],
'UpdateActiveBreakpoint' => [
'method' => 'put',
'uriTemplate' => '/v2/controller/debuggees/{debuggee_id}/breakpoints/{breakpoint.id}',
'body' => '*',
'placeholders' => [
'debuggee_id' => [
'getters' => [
'getDebuggeeId',
],
],
'breakpoint.id' => [
'getters' => [
'getBreakpoint',
'getId',
],
],
],
],
],
],
];
8 changes: 8 additions & 0 deletions V2/resources/debugger2_descriptor_config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

return [
'interfaces' => [
'google.devtools.clouddebugger.v2.Debugger2' => [
],
],
];
67 changes: 67 additions & 0 deletions V2/resources/debugger2_rest_client_config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?php

return [
'interfaces' => [
'google.devtools.clouddebugger.v2.Debugger2' => [
'SetBreakpoint' => [
'method' => 'post',
'uriTemplate' => '/v2/debugger/debuggees/{debuggee_id}/breakpoints/set',
'body' => 'breakpoint',
'placeholders' => [
'debuggee_id' => [
'getters' => [
'getDebuggeeId',
],
],
],
],
'GetBreakpoint' => [
'method' => 'get',
'uriTemplate' => '/v2/debugger/debuggees/{debuggee_id}/breakpoints/{breakpoint_id}',
'placeholders' => [
'debuggee_id' => [
'getters' => [
'getDebuggeeId',
],
],
'breakpoint_id' => [
'getters' => [
'getBreakpointId',
],
],
],
],
'DeleteBreakpoint' => [
'method' => 'delete',
'uriTemplate' => '/v2/debugger/debuggees/{debuggee_id}/breakpoints/{breakpoint_id}',
'placeholders' => [
'debuggee_id' => [
'getters' => [
'getDebuggeeId',
],
],
'breakpoint_id' => [
'getters' => [
'getBreakpointId',
],
],
],
],
'ListBreakpoints' => [
'method' => 'get',
'uriTemplate' => '/v2/debugger/debuggees/{debuggee_id}/breakpoints',
'placeholders' => [
'debuggee_id' => [
'getters' => [
'getDebuggeeId',
],
],
],
],
'ListDebuggees' => [
'method' => 'get',
'uriTemplate' => '/v2/debugger/debuggees',
],
],
],
];

0 comments on commit 32d2af4

Please sign in to comment.