From 85c7b4c1351d1c695dff16991c85d30301f951d2 Mon Sep 17 00:00:00 2001 From: YAEGASHI Takeshi Date: Sat, 22 Feb 2020 03:12:24 +0900 Subject: [PATCH 1/2] Update README.md --- README.md | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 4c85189d..fdcd356f 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # msgraph.go -(Online reference generation is broken due to huge number of files in the package) +[![](https://github.com/yaegashi/msgraph.go/workflows/go%20generate%20test/badge.svg?branch=master)](https://github.com/yaegashi/msgraph.go/actions) |v1.0|beta| |---|---| -|[![GoDoc](https://godoc.org/github.com/yaegashi/msgraph.go/v1.0?status.svg)](https://godoc.org/github.com/yaegashi/msgraph.go/v1.0)|[![GoDoc](https://godoc.org/github.com/yaegashi/msgraph.go/beta?status.svg)](https://godoc.org/github.com/yaegashi/msgraph.go/beta)| +|[![go.dev](https://img.shields.io/badge/go.dev-reference-000000?logo=go)](https://pkg.go.dev/github.com/yaegashi/msgraph.go/v1.0)|[![go.dev](https://img.shields.io/badge/go.dev-reference_(missing)-000000?logo=go)](https://pkg.go.dev/github.com/yaegashi/msgraph.go/beta)| -[![](https://github.com/yaegashi/msgraph.go/workflows/go%20generate%20test/badge.svg?branch=master)](https://github.com/yaegashi/msgraph.go/actions) +(Online reference generation is broken due to huge number of files in the package) ## Introduction @@ -20,14 +20,15 @@ The code generator is written in pure Go, in contrast to [the official code generator][Microsoft Graph SDK Code Generator] heavily relying on C# and non-portable .NET Framework. -## Changes +## v0.x.x releases -- **2019-11-02 Library API breaking changes:** - - [#1][PR1] every request method should take a ctx for the first arg - - [#2][PR2] package auth renamed to msauth and API changed +See [GitHub releases](https://github.com/yaegashi/msgraph.go/releases) +for all release tags and release notes, +and [pkg.go.dev](https://pkg.go.dev/mod/github.com/yaegashi/msgraph.go) +for all Go module versions available for your applications. -[PR1]: https://github.com/yaegashi/msgraph.go/pull/1 -[PR2]: https://github.com/yaegashi/msgraph.go/pull/2 +Until v1.0.0, all types of changes might be included in every release: +bug fixes, new features, even incompatible API updates. ## Usage @@ -90,13 +91,13 @@ $ go generate ./gen - [x] Provide easy way to generate pointers to constants - [x] Provide easy way to add queries like `$expand` `$select` `$filter` - [x] Every request method should take a ctx as the first arg for better control -- [ ] Online API docs (the output is too big for godoc.org to handle) +- [ ] Online API docs (the output is too big for pkg.go.dev to handle) - [ ] Unit tests - [x] CI - [x] Persist OAuth2 tokens in file - [x] OAuth2 device auth grant - [x] OAuth2 client credentials grant -- [ ] OAuth2 authorization code grant +- [ ] Use string for EnumType (pointed out in #6) ## References @@ -115,3 +116,7 @@ $ go generate ./gen [GitHub repository search for msgraph in Go]: https://github.com/search?l=Go&q=msgraph&type=Repositories [Microsoft Graph API Library for Go]: https://www.slideshare.net/yaegashi/microsoft-graph-api-library-for-go [msgraph.go demo - SharePoint Online + Microsoft Flow + GitLab CI]: https://www.youtube.com/watch?v=DwKk405XyF4 + +## Applications + +- [Terraform Provider for Microsoft Graph](https://github.com/yaegashi/terraform-provider-msgraph) From 7a7a651991bdf0f6b7af148a76238d5443ae1a0f Mon Sep 17 00:00:00 2001 From: YAEGASHI Takeshi Date: Sat, 22 Feb 2020 04:48:36 +0900 Subject: [PATCH 2/2] Go modules update and tidy --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index b4b97d9d..cad6ce43 100644 --- a/go.mod +++ b/go.mod @@ -4,5 +4,5 @@ go 1.12 require ( github.com/google/uuid v1.1.1 - golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 + golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d ) diff --git a/go.sum b/go.sum index 2237825b..db2c2f23 100644 --- a/go.sum +++ b/go.sum @@ -6,8 +6,8 @@ github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+ golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0= -golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d h1:TzXSXBo42m9gQenoE3b9BGiEpg5IG2JkU5FkPIawgtw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=