Add support for GEE service account credentials
@kevinlacaille ci sta già lavorando.
Dal 16/11/2022.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Is your feature request related to a problem? Please describe.
In order for a user to bring their own GCS service account, we must supply them with somewhere to input that SA's credentials in
order_request.google_earth_engine()
We already show support for the credentials field on our Dev Center's example request JSON.
Describe the solution you'd like
Current Google Earth Engine configuration:
def google_earth_engine(project: str, collection: str) -> dict:
'''Google Earth Engine configuration.
Parameters:
project: GEE project name.
collection: GEE Image Collection name.
'''
cloud_details = {
'project': project,
'collection': collection,
}
return {'google_earth_engine': cloud_details}
Proposed solution:
def google_earth_engine(project: str, collection: str, credentials: str) -> dict:
'''Google Earth Engine configuration.
Parameters:
project: GEE project name.
collection: GEE Image Collection name.
credentials: Base64-encoded credentials for the GEE service account
'''
cloud_details = {
'project': project,
'collection': collection,
'credentials': credentials,
}
return {'google_earth_engine': cloud_details}
def test_google_earth_engine():
gee_config = order_request.google_earth_engine('project', 'collection')
expected = {
'google_earth_engine': {
'project': 'project',
'collection': 'collection',
}
}
assert gee_config == expected
Proposed test:
def test_google_earth_engine():
gee_config = order_request.google_earth_engine('project', 'collection', 'credentials')
expected = {
'google_earth_engine': {
'project': 'project',
'collection': 'collection',
'credentials': '<REDACTED>',
}
}
assert gee_config == expected
Additional context
Many users like to bring their own service account over using Planet's, so this feature is likely to be used.
- Lingua principale
- Python
- Stelle
- 299
- Fork
- 100
- Merge medio
- 7g 8h
- PR unite (30g)
- 2
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di planetlabs/planet-client-python
-
better-testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
planetlabs/planet-client-python#1110 ·
-
proposal
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
planetlabs/planet-client-python#1221 ·
-
proposal
Difficoltà 3/5 1-2 giorni Idoneità per principianti 57/100
planetlabs/planet-client-python#1214 ·
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
planetlabs/planet-client-python#1197 · 1 commento · 1 reazione ·
-
Quota API Apertaai-claude
planetlabs/planet-client-python#1191 · 1 commento · 1 assegnatario ·
Tutte le issue di planetlabs/planet-client-python
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
use-agent-os/agent-os#3314 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
BasedHardware/omi#15662 · 1 commento ·
-
documentation help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
AiursoftWeb/AnduinOS-2#19 ·