Updated gam create datatransfer to handle API change

This commit is contained in:
Ross Scroggs
2025-07-14 08:22:58 -07:00
parent 6c4b481eb1
commit 11e0f1c760
3 changed files with 10 additions and 5 deletions

View File

@@ -3444,8 +3444,7 @@ gam print|show transferapps
<DataTransferService> ::=
calendar|
currents|
datastudio|lookerstudio|"google data studio"|
datastudio|lookerstudio|"looker studio"|
googledrive|gdrive|drive|"drive and docs"
<DataTransferServiceList> ::= "<DataTransferService>(,<DataTransferService>)*"

View File

@@ -2,6 +2,12 @@
Fixed bug in `gam create chromeprofilecommand` where `select|filter` were not recognized.
Updated `gam create datatransfer <OldOwnerID> datastudio <NewOwnerID>` that generated the following
error due to an unhandled API change.
```
ERROR: Invalid choice (google data studio): Expected <calendar|looker studio|drive and docs>
```
7.13.01
Enhanced `gam create|print|show chromeprofilecommand` to allow specification

View File

@@ -17071,14 +17071,14 @@ def _convertTransferAppIDtoName(apps, appID):
return f'applicationId: {appID}'
DRIVE_AND_DOCS_APP_NAME = 'drive and docs'
GOOGLE_DATA_STUDIO_APP_NAME = 'google data studio'
GOOGLE_LOOKER_STUDIO_APP_NAME = 'looker studio'
SERVICE_NAME_CHOICE_MAP = {
'datastudio': GOOGLE_DATA_STUDIO_APP_NAME,
'datastudio': GOOGLE_LOOKER_STUDIO_APP_NAME,
'drive': DRIVE_AND_DOCS_APP_NAME,
'googledrive': DRIVE_AND_DOCS_APP_NAME,
'gdrive': DRIVE_AND_DOCS_APP_NAME,
'lookerstudio': GOOGLE_DATA_STUDIO_APP_NAME,
'lookerstudio': GOOGLE_LOOKER_STUDIO_APP_NAME,
}
def _validateTransferAppName(apps, appName):