-
Notifications
You must be signed in to change notification settings - Fork 130
Refactor PHP discovery snippetgen for MVVM #714
Conversation
e45c22c
to
548ec88
Compare
|
||
@Override | ||
public String getSampleApplicationName(String apiTypeName) { | ||
// Unfortunate replacement that's necessary because the API type name is of a special format. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
if (typeInfo.isMessage()) { | ||
return new TypeName(apiTypeName + "_" + typeInfo.message().typeName()); | ||
} | ||
return getTypeNameForElementType(typeInfo); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
||
// TODO: Change placeholder below to desired API key: | ||
$client->setDeveloperKey('{MY-API-KEY}'); | ||
$client->setDeveloperKey(''); // TODO: Update placeholder with desired API key. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
// The text to detect | ||
$q = []; | ||
|
||
$q = array(); // TODO: Update placeholder value. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Current coverage is 80.91% (diff: 90.28%)@@ master #714 diff @@
==========================================
Files 291 296 +5
Lines 11074 11293 +219
Methods 0 0
Messages 0 0
Branches 1459 1490 +31
==========================================
+ Hits 9008 9138 +130
- Misses 1669 1749 +80
- Partials 397 406 +9
|
Storagetransfer storagetransferService = createStoragetransferService(); | ||
Storagetransfer.GoogleServiceAccounts.Get request = storagetransferService.googleServiceAccounts().get(projectId); | ||
Storagetransfer.V1.GetGoogleServiceAccount request = storagetransferService.v1().getGoogleServiceAccount(); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
foreach ($response['datasets'] as $dataset_list._datasets) { | ||
// TODO: Change code below to process each `dataset_list._datasets` resource: | ||
echo '<pre>', var_export($dataset_list._datasets, true), '</pre>', "\n"; | ||
foreach ($response['datasets'] as $datasets) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
||
$optParams = []; | ||
do { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
||
$optParams = []; | ||
// TODO: To download media content, use: |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
No description provided.