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

Get-GSCalendar fails with Method invocation failed because [Google.Apis.Calendar.v3.CalendarsResource] does not contain a method named 'List' #240

Closed
felixfbecker opened this issue Oct 4, 2019 · 2 comments
Assignees
Labels

Comments

@felixfbecker
Copy link

Describe the bug
Any call without arguments fails with an error.

To Reproduce
Steps to reproduce the behavior:
Run

> Get-GSCalendar
Get-GSCalendar : Method invocation failed because [Google.Apis.Calendar.v3.CalendarsResource] does not contain a method named 'List'.
At line:1 char:1
+ Get-GSCalendar
+ ~~~~~~~~~~~~~~

Expected behavior
Not error

Environment (please complete the following information):

  • OS: macOS
  • PowerShell Version: 6.2.3
  • PSGSuite Version: 2.33.0
@scrthq
Copy link
Member

scrthq commented Oct 5, 2019

Thanks for opening this up, @felixfbecker !! While I get this fixed, you'll probably want to use Get-GSCalendarSubscription. The previous versions actually had that same underlying call replicated between both Get-GSCalendar and Get-GSCalendarSubscription, so I've been working on cleaning up Get-GSCalendar to point at the correct endpoint (Calendar vs CalendarList). Calendars are a bit of a maze in Google's API

@scrthq scrthq self-assigned this Oct 5, 2019
@scrthq scrthq added the bug label Oct 5, 2019
scrthq added a commit that referenced this issue Oct 6, 2019
## 2.33.1 - 2019-10-06

* [Issue #235](#235)
    * Removed: `Name` parameter from `Start-GSDriveFileUpload` as it was unused in the function and doesnt make sense when uploading an array of files.
* [Issue #238](#238)
    * Added: `Get-GSDataTransfer` to Get/List current Data Transfers
* [Issue #239](#239)
    * Removed: `Update-GSResource` `Id` parameter as it was non-applicable (duplicate of `ResourceId` and not writable per API docs)
    * Cleaned up function help and examples to match changes
* [Issue #240](#240)
    * Fixed: `Get-GSCalendar` now properly resolves single calendar metadata retrieval and passes List requests to `Get-GSCalendarSubscription` since the `Calendars` service does not support List requests.
* Miscellaneous
    * Updated Google .NET SDKs to latest versions
    * Cleaned up build.ps1 script
scrthq added a commit that referenced this issue Oct 6, 2019
## 2.33.1 - 2019-10-06

* [Issue #235](#235)
    * Removed: `Name` parameter from `Start-GSDriveFileUpload` as it was unused in the function and doesnt make sense when uploading an array of files.
* [Issue #238](#238)
    * Added: `Get-GSDataTransfer` to Get/List current Data Transfers
* [Issue #239](#239)
    * Removed: `Update-GSResource` `Id` parameter as it was non-applicable (duplicate of `ResourceId` and not writable per API docs)
    * Cleaned up function help and examples to match changes
* [Issue #240](#240)
    * Fixed: `Get-GSCalendar` now properly resolves single calendar metadata retrieval and passes List requests to `Get-GSCalendarSubscription` since the `Calendars` service does not support List requests.
* Miscellaneous
    * Updated Google .NET SDKs to latest versions
    * Cleaned up build.ps1 script
@scrthq
Copy link
Member

scrthq commented Oct 7, 2019

hey @felixfbecker - Fix pushed! You should no longer see those errors. Update to the latest version and let me know =]

@scrthq scrthq closed this as completed Dec 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants