Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(bazel): [LongRunning] configure stand-alone LongRunning client for PHP #5414

Merged
merged 5 commits into from
Aug 3, 2022
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified LongRunning/metadata/Longrunning/Operations.php
Binary file not shown.
469 changes: 258 additions & 211 deletions LongRunning/src/ApiCore/LongRunning/Gapic/OperationsGapicClient.php

Large diffs are not rendered by default.

20 changes: 6 additions & 14 deletions LongRunning/src/ApiCore/LongRunning/OperationsClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,18 @@

/*
* GENERATED CODE WARNING
* This file was generated from the file
* https://github.com/google/googleapis/blob/master/google/longrunning/operations.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 intend the surface to be stable, we may make backwards incompatible changes
* if necessary.
*
* @experimental
* Generated by gapic-generator-php from the file
* https://github.com/googleapis/googleapis/blob/master/google/longrunning/operations.proto
* Updates to the above are reflected here through a refresh process.
*/

namespace Google\ApiCore\LongRunning;

use Google\ApiCore\LongRunning\Gapic\OperationsGapicClient;

/**
* {@inheritdoc}
*/
/** {@inheritdoc} */
class OperationsClient extends OperationsGapicClient
{
// This class is intentionally empty, and is intended to hold manual
// additions to the generated {@see OperationsGapicClient} class.
// This class is intentionally empty, and is intended to hold manual additions to
// the generated {@see OperationsGapicClient} class.
}
43 changes: 43 additions & 0 deletions LongRunning/src/ApiCore/LongRunning/gapic_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"schema": "1.0",
"comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods",
"language": "php",
"protoPackage": "google.longrunning",
"libraryPackage": "Google\\LongRunning",
"services": {
"Operations": {
"clients": {
"grpc": {
"libraryClient": "OperationsGapicClient",
"rpcs": {
"CancelOperation": {
"methods": [
"cancelOperation"
]
},
"DeleteOperation": {
"methods": [
"deleteOperation"
]
},
"GetOperation": {
"methods": [
"getOperation"
]
},
"ListOperations": {
"methods": [
"listOperations"
]
},
"WaitOperation": {
"methods": [
"waitOperation"
]
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,46 +1,59 @@
{
"interfaces": {
"google.longrunning.Operations": {
"retry_codes": {
"idempotent": [
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"non_idempotent": []
},
"retry_params": {
"default": {
"initial_retry_delay_millis": 100,
"retry_delay_multiplier": 1.3,
"max_retry_delay_millis": 60000,
"initial_rpc_timeout_millis": 90000,
"rpc_timeout_multiplier": 1.0,
"max_rpc_timeout_millis": 90000,
"total_timeout_millis": 600000
"interfaces": {
"google.longrunning.Operations": {
"retry_codes": {
"no_retry_codes": [],
"retry_policy_1_codes": [
"UNAVAILABLE"
]
},
"retry_params": {
"no_retry_params": {
"initial_retry_delay_millis": 0,
"retry_delay_multiplier": 0.0,
"max_retry_delay_millis": 0,
"initial_rpc_timeout_millis": 0,
"rpc_timeout_multiplier": 1.0,
"max_rpc_timeout_millis": 0,
"total_timeout_millis": 0
},
"retry_policy_1_params": {
"initial_retry_delay_millis": 500,
"retry_delay_multiplier": 2.0,
"max_retry_delay_millis": 10000,
"initial_rpc_timeout_millis": 10000,
"rpc_timeout_multiplier": 1.0,
"max_rpc_timeout_millis": 10000,
"total_timeout_millis": 10000
}
},
"methods": {
"CancelOperation": {
"timeout_millis": 10000,
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
"DeleteOperation": {
"timeout_millis": 10000,
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
"GetOperation": {
"timeout_millis": 10000,
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
"ListOperations": {
"timeout_millis": 10000,
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
"WaitOperation": {
"timeout_millis": 60000,
"retry_codes_name": "no_retry_codes",
"retry_params_name": "no_retry_params"
}
}
}
},
"methods": {
"GetOperation": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default"
},
"ListOperations": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default"
},
"CancelOperation": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default"
},
"DeleteOperation": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
return [
'interfaces' => [
'google.longrunning.Operations' => [
'GetOperation' => [
'method' => 'get',
'uriTemplate' => '/v1/{name=operations/**}',
'CancelOperation' => [
'method' => 'post',
'uriTemplate' => '/v1/{name=operations/**}:cancel',
'body' => '*',
'placeholders' => [
'name' => [
'getters' => [
Expand All @@ -14,9 +15,9 @@
],
],
],
'ListOperations' => [
'method' => 'get',
'uriTemplate' => '/v1/{name=operations}',
'DeleteOperation' => [
'method' => 'delete',
'uriTemplate' => '/v1/{name=operations/**}',
'placeholders' => [
'name' => [
'getters' => [
Expand All @@ -25,10 +26,9 @@
],
],
],
'CancelOperation' => [
'method' => 'post',
'uriTemplate' => '/v1/{name=operations/**}:cancel',
'body' => '*',
'GetOperation' => [
'method' => 'get',
'uriTemplate' => '/v1/{name=operations/**}',
'placeholders' => [
'name' => [
'getters' => [
Expand All @@ -37,16 +37,19 @@
],
],
],
'DeleteOperation' => [
'method' => 'delete',
'uriTemplate' => '/v1/{name=operations/**}',
'ListOperations' => [
'method' => 'get',
'uriTemplate' => '/v1/{name=operations}',
'placeholders' => [
'name' => [
'getters' => [
'getName',
],
],
],
'queryParams' => [
'filter',
],
],
],
],
Expand Down
8 changes: 4 additions & 4 deletions LongRunning/src/LongRunning/ListOperationsRequest.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions LongRunning/src/LongRunning/ListOperationsResponse.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading