Re: [google-appengine] Re: Datastore export permission only

2019-01-29 Thread Rajesh Gupta
Hi Dan McGrath,
When will this feature be released?

Rajesh
*www.GainERP.com *
*Field Service Software on Google Cloud Platform and Mobile*

On Thu, Dec 20, 2018 at 12:01 PM Rajesh Gupta <
rajesh.gu...@veersoftsolutions.com> wrote:

> Appreciate your reply.  Hope to see the feature soon.
>
> On Wed, Dec 19, 2018 at 12:48 AM 'Dan McGrath' via Google App Engine <
> google-appengine@googlegroups.com> wrote:
>
>> Thanks for the feedback Rajesh. I'm the product manager for Cloud
>> Datastore, and want to note we agree with you. We're working through some
>> implementation details for custom roles at the moment, and unfortunately
>> don't have dates to share. It's definitely in our plans to make this
>> available though.
>>
>> Regards,
>> Dan
>>
>> On Monday, December 17, 2018 at 10:18:43 PM UTC-7, Rajesh Gupta wrote:
>>>
>>> It is risky to give  the comple datastore.importExportAdmin for
>>> upcoming or new engineers.  Even experienced engineer can make a mistake
>>> importing instead of exporting.
>>> When is the permission “datastore.databases.export” supported for the
>>> custom roles.
>>>
>>> Rajesh
>>> *www.GainERP.com *
>>> *Field Service Software on Google Cloud Platform and Mobile*
>>>
>>>
>>> On Sat, Dec 15, 2018 at 6:22 AM 'Mohammad I (Cloud Platform Support)'
>>> via Google App Engine  wrote:
>>>
 Hello Rajesh,

 Thank you for the message. Usually by creating a custom role
 
 certain permission can be assigned to users. You can get more details about
 IAM custom role here
 .
 Unfortunately at this moment “datastore.databases.export” is not supported
 for custom roles. You can find detailed list of all permissions and support
 levels here
 .


 On Friday, December 14, 2018 at 5:46:19 AM UTC-5, Rajesh Gupta wrote:
>
> any idea on how to setup a user with only datastore.databased.export
> permission?
>
> On Wed, Dec 12, 2018 at 7:40 PM Rajesh Gupta <
> raj@veersoftsolutions.com> wrote:
>
>> Hello,
>> I am setting up a new user in the IAM.
>> I want only the datastore.databases.export  permission.
>>
>> I don't want the  ROLE datastore.importExportAdmin
>>
>> Rajesh
>> *www.GainERP.com *
>> *Accounting/Inventory/Orders/Sales/Purchase on Google Cloud Platform
>> and Mobile*
>>
>>
>>
> Rajesh
> *www.GainERP.com *
> *Field Service Software on Google Cloud Platform and Mobile*
>
>
> --
 You received this message because you are subscribed to the Google
 Groups "Google App Engine" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to google-appengi...@googlegroups.com.
 To post to this group, send email to google-a...@googlegroups.com.
 Visit this group at https://groups.google.com/group/google-appengine.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/google-appengine/2ecc601c-d61e-4d1f-b564-c089776a8f26%40googlegroups.com
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>
>>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-appengine+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-appengine@googlegroups.com.
>> Visit this group at https://groups.google.com/group/google-appengine.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/google-appengine/749caae6-f0ae-4645-86a4-0e03857e30ed%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -
>
>
>
>

-- 
Rajesh
*www.GainERP.com *
*Field Service Software on Google Cloud Platform and Mobile*

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 

[google-appengine] Re: GAE Flex Instance Went Down at 4:30 PM MST

2019-01-29 Thread Robert Pettique
It's magically back up.

On Tuesday, January 29, 2019 at 5:34:03 PM UTC-7, Robert Pettique wrote:
>
> All of my GAE Flex instances in different projects went down around 4:30 
> PM MST. When you view the instances tab, the instances don't have id's but 
> are spinning. On one of my other projects, I tried to stop and restart the 
> versions to no avail. They keep failing. We haven't made any changes or 
> done anything. These projects have been running fine for months. Any ideas? 
> Is Google Cloud experiencing issues?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f50cbcef-283a-4fe1-a65d-af046b155ab0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] GAE Flex Instance Went Down at 4:30 PM MST

2019-01-29 Thread Robert Pettique
All of my GAE Flex instances in different projects went down around 4:30 PM 
MST. When you view the instances tab, the instances don't have id's but are 
spinning. On one of my other projects, I tried to stop and restart the 
versions to no avail. They keep failing. We haven't made any changes or 
done anything. These projects have been running fine for months. Any ideas? 
Is Google Cloud experiencing issues?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a37d3ffe-613b-4bc4-bc87-4622cbf9edc9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Migrating GAE app stored user information to GAE Python 3.0 without Users API

2019-01-29 Thread 'George (Cloud Platform Support)' via Google App Engine
Hello Marcel, 

Documentation does not indicate restrictions on user ID's, you may check 
"Getting profile information" page 
 for related 
details. You can choose IDs or pattern for IDs that might correlate to the 
old App Engine IDs. This might not prove of any advantage in the end, as in 
Google Identity Platform you are not supposed to use these IDs to validate 
user log-ins. Same applies to emails and email variants such as 
joh...@gmail.com and jo...@gmail.com. You may check the "Send the ID token 
to your server" on the "Authenticate with a backend server" page 
. 

To reply to your second question, on the same documentation page you'll 
notice that the get method for email profile.getEmail() does not allow for 
multiple email values within the same user identity profile. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/5c683983-4761-4757-b4dd-e1414751e918%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Parallel calls to a same function on Google App Engine (Concurrency)

2019-01-29 Thread 'George (Cloud Platform Support)' via Google App Engine
Hello Amruth, 

You could pass the whole list as an array in a call to your function, as 
described in the "Passing arrays via HTTP GET?" posting 

 
in Groups. You'll be able then to process your list at once. 

This discussion group is oriented more towards general opinions, trends, 
and issues of general nature touching the app engine. For coding and 
programming architecture, as well as parallel processing in Cloud 
Functions, you may be better served in dedicated forums such as 
stackoverflow, where experienced programmers are within reach and ready to 
help. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/866558e1-b92d-4a74-9649-287e21b716e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Migrating GAE app stored user information to GAE Python 3.0 without Users API

2019-01-29 Thread marcel
Hello,

We are currently tracking Google account based users in our GAE 2.7 app 
using the User Service's User.user_id as recommended 
by https://cloud.google.com/appengine/docs/standard/python/users/userobjects. 
This was beneficial over storing email addresses as it would canonicalize 
accounts where aliases were used or variations of emails with and without 
dots (e.g. joh...@gmail.com and jo...@gmail.com). 

If we migrate to the Google identity platform (GIP) as recommended 
by https://cloud.google.com/appengine/docs/standard/python3/python-differences, 
would we be able to correlate the old app engine ids to what comes out of 
GIP? 
Note that there's already a difference between the App Engine side user id 
and, if the same user is stored in our corporate Google directory, the 
directory side user id. Does GIP introduce a 3rd variant?

A second question: how would be able to look up the GIP user id from a 
given email (e.g. to find out whether  joh...@gmail.com and jo...@gmail.com 
are the same account)?

Thanks!
Marcel

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/02f90acd-1e74-41f9-ac61-6a390af7c366%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Parallel calls to a same function on Google App Engine (Concurrency)

2019-01-29 Thread Amruth Kiran
 

I am trying to build a web app on Google App Engine (GAE) using python and 
Flask. I want to know how to call a function within the app multiple times 
simultaneously. For example, I have a function which returns the square of 
an element. Now, I wrap this function under a URL like this:

@app.route('/single_number',methods = ['GET','POST']) 
def square(): 
x = request.form.get('input_number') 
return x*x

 Now, I want to do this on a list of numbers but concurrently on '
http://localhost:8080/list_of_numbers'. Say, I have a list of 'n' numbers 
and I want to calculate the square of each number simultaneously (if not 
all 'n' together but at least what Google App Engine allows). I have used 
multiprocessing library of Python but got no performance improvement 
because of the single core used in Google App Engine instance and 
apparently, multithreading is equally futile. So, upon reading some more I 
was led to Cloud Tasks of GAE. But I am not able to wrap my head around 
executing this on Cloud Tasks. Any sample/tutorial related to this will be 
greatly appreciated. If you think that Cloud Tasks is not the right way for 
this problem, is it possible to create a function under handler 
'/list_of_numbers', which will send multiple numbers of the list to the 
'/single_number' handler simultaneously? Or do you suggest any other method?

I am new to web-app building and GAE. So, any help would be greatly 
appreciated.

Thanks in advance 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2e8edc65-c307-4eed-8d03-ac6e921201a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Troubleshooting downtime (potentially autoscaling-related) issues - causes 500

2019-01-29 Thread 'Goran (Google Cloud Platform Support)' via Google App Engine


Hello,

App Engine scales instances up when the volume of incoming requests 
increases and scales instances down when this volume decreases. This 
scaling helps ensure that all of your application's current instances are 
being used to optimal efficiency and cost effectiveness. For more 
information please see the documentation for scaling dynamic instances [1].

You can use several settings in the application configuration file to 
adjust the trade-off between performance and resource load. For the list of 
the available auto-scaling parameters, please see ‘Using performance 
settings’ section of this article [2].

A good recommendation is to benchmark performance with default scaling 
settings then run a new benchmark after each change. See this article[2] 
for some best practices to ensure that your app will scale efficiently to 
the volume of incoming requests.

[1] 
https://cloud.google.com/appengine/docs/standard/python/how-instances-are-managed#scaling_dynamic_instances

[2] https://cloud.google.com/appengine/articles/scalability

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/47a34ca7-f8c8-4c07-92c5-42a2428fb57b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Upgraded my account by mistake

2019-01-29 Thread davidcharles via Google App Engine


Hello,


After you upgrade your account, any remaining, unexpired free trial credit 
will remain in your account and you will only be charged for resources used 
in excess of what’s covered by any remaining credit. Hence, you may incur 
charges after you use all of your remaining credits depending on the 
resources you are using. You can read more about this in our Google Cloud 
Platform Free Tier Documentation 
.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a0967d0a-b8ec-42f8-9c68-b546d9ced584%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] GCP Load Balancer Health Check

2019-01-29 Thread Ricardo Vieira
Hello Everyone,

I am configuring an LB to later use CDN but I am not able to finish it 
because of a failing Health Check.

All backend instances are OK, running and I am able to connect to them 
without any issue, all firewalls are open to the IP address of the health 
check machines. Have increased timeout time to exclude that as well.

Any tip on this?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3e518c2d-ce70-4664-a163-caa37f5d3c3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.