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: migrate tasks/{v2,v2beta2,v2beta3} to the PHP microgenerator #3972

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all 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
12 changes: 5 additions & 7 deletions Tasks/src/V2/CloudTasksClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,18 @@

/*
* GENERATED CODE WARNING
* This file was generated from the file
* Generated by gapic-generator-php from the file
* https://github.com/google/googleapis/blob/master/google/cloud/tasks/v2/cloudtasks.proto
* and updates to that file get reflected here through a refresh process.
* Updates to the above are reflected here through a refresh process.
*/

namespace Google\Cloud\Tasks\V2;

use Google\Cloud\Tasks\V2\Gapic\CloudTasksGapicClient;

/**
* {@inheritdoc}
*/
/** {@inheritdoc} */
class CloudTasksClient extends CloudTasksGapicClient
{
// This class is intentionally empty, and is intended to hold manual
// additions to the generated {@see CloudTasksGapicClient} class.
// This class is intentionally empty, and is intended to hold manual additions to
// the generated {@see CloudTasksGapicClient} class.
}
1,382 changes: 700 additions & 682 deletions Tasks/src/V2/Gapic/CloudTasksGapicClient.php

Large diffs are not rendered by default.

98 changes: 98 additions & 0 deletions Tasks/src/V2/gapic_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"schema": "1.0",
"comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods",
"language": "php",
"protoPackage": "google.cloud.tasks.v2",
"libraryPackage": "Google\\Cloud\\Tasks\\V2",
"services": {
"CloudTasks": {
"clients": {
"grpc": {
"libraryClient": "CloudTasksGapicClient",
"rpcs": {
"CreateQueue": {
"methods": [
"createQueue"
]
},
"CreateTask": {
"methods": [
"createTask"
]
},
"DeleteQueue": {
"methods": [
"deleteQueue"
]
},
"DeleteTask": {
"methods": [
"deleteTask"
]
},
"GetIamPolicy": {
"methods": [
"getIamPolicy"
]
},
"GetQueue": {
"methods": [
"getQueue"
]
},
"GetTask": {
"methods": [
"getTask"
]
},
"ListQueues": {
"methods": [
"listQueues"
]
},
"ListTasks": {
"methods": [
"listTasks"
]
},
"PauseQueue": {
"methods": [
"pauseQueue"
]
},
"PurgeQueue": {
"methods": [
"purgeQueue"
]
},
"ResumeQueue": {
"methods": [
"resumeQueue"
]
},
"RunTask": {
"methods": [
"runTask"
]
},
"SetIamPolicy": {
"methods": [
"setIamPolicy"
]
},
"TestIamPermissions": {
"methods": [
"testIamPermissions"
]
},
"UpdateQueue": {
"methods": [
"updateQueue"
]
}
}
}
}
}
}
}
242 changes: 121 additions & 121 deletions Tasks/src/V2/resources/cloud_tasks_client_config.json
Original file line number Diff line number Diff line change
@@ -1,125 +1,125 @@
{
"interfaces": {
"google.cloud.tasks.v2.CloudTasks": {
"retry_codes": {
"retry_policy_1_codes": [
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"no_retry_codes": [],
"no_retry_1_codes": []
},
"retry_params": {
"retry_policy_1_params": {
"initial_retry_delay_millis": 100,
"retry_delay_multiplier": 1.3,
"max_retry_delay_millis": 10000,
"initial_rpc_timeout_millis": 10000,
"rpc_timeout_multiplier": 1.0,
"max_rpc_timeout_millis": 10000,
"total_timeout_millis": 10000
},
"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
},
"no_retry_1_params": {
"initial_retry_delay_millis": 0,
"retry_delay_multiplier": 0.0,
"max_retry_delay_millis": 0,
"initial_rpc_timeout_millis": 10000,
"rpc_timeout_multiplier": 1.0,
"max_rpc_timeout_millis": 10000,
"total_timeout_millis": 10000
"interfaces": {
"google.cloud.tasks.v2.CloudTasks": {
"retry_codes": {
"no_retry_codes": [],
"retry_policy_1_codes": [
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"no_retry_1_codes": []
},
"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": 100,
"retry_delay_multiplier": 1.3,
"max_retry_delay_millis": 10000,
"initial_rpc_timeout_millis": 10000,
"rpc_timeout_multiplier": 1.0,
"max_rpc_timeout_millis": 10000,
"total_timeout_millis": 10000
},
"no_retry_1_params": {
"initial_retry_delay_millis": 0,
"retry_delay_multiplier": 0.0,
"max_retry_delay_millis": 0,
"initial_rpc_timeout_millis": 10000,
"rpc_timeout_multiplier": 1.0,
"max_rpc_timeout_millis": 10000,
"total_timeout_millis": 10000
}
},
"methods": {
"CreateQueue": {
"timeout_millis": 10000,
"retry_codes_name": "no_retry_1_codes",
"retry_params_name": "no_retry_1_params"
},
"CreateTask": {
"timeout_millis": 10000,
"retry_codes_name": "no_retry_1_codes",
"retry_params_name": "no_retry_1_params"
},
"DeleteQueue": {
"timeout_millis": 10000,
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
"DeleteTask": {
"timeout_millis": 10000,
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
"GetIamPolicy": {
"timeout_millis": 10000,
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
"GetQueue": {
"timeout_millis": 10000,
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
"GetTask": {
"timeout_millis": 10000,
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
"ListQueues": {
"timeout_millis": 10000,
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
"ListTasks": {
"timeout_millis": 10000,
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
"PauseQueue": {
"timeout_millis": 10000,
"retry_codes_name": "no_retry_1_codes",
"retry_params_name": "no_retry_1_params"
},
"PurgeQueue": {
"timeout_millis": 10000,
"retry_codes_name": "no_retry_1_codes",
"retry_params_name": "no_retry_1_params"
},
"ResumeQueue": {
"timeout_millis": 10000,
"retry_codes_name": "no_retry_1_codes",
"retry_params_name": "no_retry_1_params"
},
"RunTask": {
"timeout_millis": 10000,
"retry_codes_name": "no_retry_1_codes",
"retry_params_name": "no_retry_1_params"
},
"SetIamPolicy": {
"timeout_millis": 10000,
"retry_codes_name": "no_retry_1_codes",
"retry_params_name": "no_retry_1_params"
},
"TestIamPermissions": {
"timeout_millis": 10000,
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
"UpdateQueue": {
"timeout_millis": 10000,
"retry_codes_name": "no_retry_1_codes",
"retry_params_name": "no_retry_1_params"
}
}
}
},
"methods": {
"ListQueues": {
"timeout_millis": 15000,
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
"GetQueue": {
"timeout_millis": 10000,
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
"CreateQueue": {
"timeout_millis": 10000,
"retry_codes_name": "no_retry_1_codes",
"retry_params_name": "no_retry_1_params"
},
"UpdateQueue": {
"timeout_millis": 10000,
"retry_codes_name": "no_retry_1_codes",
"retry_params_name": "no_retry_1_params"
},
"DeleteQueue": {
"timeout_millis": 10000,
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
"PurgeQueue": {
"timeout_millis": 10000,
"retry_codes_name": "no_retry_1_codes",
"retry_params_name": "no_retry_1_params"
},
"PauseQueue": {
"timeout_millis": 10000,
"retry_codes_name": "no_retry_1_codes",
"retry_params_name": "no_retry_1_params"
},
"ResumeQueue": {
"timeout_millis": 10000,
"retry_codes_name": "no_retry_1_codes",
"retry_params_name": "no_retry_1_params"
},
"GetIamPolicy": {
"timeout_millis": 10000,
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
"SetIamPolicy": {
"timeout_millis": 10000,
"retry_codes_name": "no_retry_1_codes",
"retry_params_name": "no_retry_1_params"
},
"TestIamPermissions": {
"timeout_millis": 10000,
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
"ListTasks": {
"timeout_millis": 10000,
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
"GetTask": {
"timeout_millis": 10000,
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
"CreateTask": {
"timeout_millis": 10000,
"retry_codes_name": "no_retry_1_codes",
"retry_params_name": "no_retry_1_params"
},
"DeleteTask": {
"timeout_millis": 10000,
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
"RunTask": {
"timeout_millis": 10000,
"retry_codes_name": "no_retry_1_codes",
"retry_params_name": "no_retry_1_params"
}
}
}
}
}
Loading